IncineratorX2

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4432
    IncineratorX2
    Participant

    Yeah i will 🙂 first finding the hardware… Thread may be closed.

    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4415
    IncineratorX2
    Participant

    Thank you very much, this was the problem.

    We’ve created a Virt. Channel 32 – Discrete, which reads the device input 9.

    And we’ve filled out each virtual channel per bit, with the GetBit(Val(9),n)
    And this works! Tested with several open/closed

    We didn’t enum text it yet. As i wanted to see the value.
    Administrator

    Scada webpage output

    Up to the next challenge, read out aprox 20x Current (0-20mA) sensor channels into Scada. (Thinking of raspberri/adruino via i2c and tranport via modbusTCP)

    • This reply was modified 5 years, 6 months ago by IncineratorX2.
    • This reply was modified 5 years, 6 months ago by IncineratorX2.
    • This reply was modified 5 years, 6 months ago by IncineratorX2. Reason: image links broken
    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4412
    IncineratorX2
    Participant

    we are testing, looking good.

    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4397
    IncineratorX2
    Participant

    Administration

    SCADA Web interface

    The current input value 0FFD -> 1111 1111 1101 (So IN2 is closed)
    The Scada web interface shows IN1 closed, IN4 closed. Where did he get this from..?
    If we physical change an input (closing it or opening it), nothing changes.

    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4396
    IncineratorX2
    Participant

    Unfortunatly, i found out.. the table values are not changing.
    So my first check (by remote) looked to give the right values but after more testing the channel values don’t change at al.

    I’ll come with more detail.

    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4394
    IncineratorX2
    Participant

    Yed thank you! I get my wished results 🙂

    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4389
    IncineratorX2
    Participant

    So if i would like to check the first bit in de data value (1111 1111 1110) from signal 9, i should use : GetBit(9,1) and then invert it if needed.

    • This reply was modified 5 years, 6 months ago by IncineratorX2.
    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4383
    IncineratorX2
    Participant

    Ok formula is excepted,

    But i am having troubles understanding the function GetBit(a,b)
    What does GetBit do exact? how does this function ticks?
    Is the assumption, a = position and b = value to compare?

    So if binvalue=1001 (binairy)
    So GetBit(4,1) on binvalue, will result in GetBit being 1?
    And GetBit (3,1) on binvalue, will result in GetBit being 0?

    In the given formula, we check if GetBit > 0.
    And after this test we flip the boolean by 0:1?

    Sorry i have very very little C(++) experience 20 years ago, and lost that so i am trying to understand the function/way of thinking in this case.

    in reply to: Any questions about Rapid SCADA and Raspberry Pi #4380
    IncineratorX2
    Participant

    sorry i replied on the wrong thread.

    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4379
    IncineratorX2
    Participant

    Somehow the calculation engine fails on the Getbit formula.
    input channels configuration in Administrator : https://imgur.com/a/SGEmJFS

    2018-10-10 09:07:57 <PMI-SCADA><SYSTEM><ACT> ScadaServerService 5.1.0.2 is started
    2018-10-10 09:07:57 <PMI-SCADA><SYSTEM><ACT> Check the existence of the data directories is completed successfully
    2018-10-10 09:07:57 <PMI-SCADA><SYSTEM><ACT> Check the existence of the configuration database files is completed successfully
    2018-10-10 09:07:57 <PMI-SCADA><SYSTEM><ACT> Input channels are read from the configuration database. Active channel count: 59
    2018-10-10 09:07:57 <PMI-SCADA><SYSTEM><ACT> Ouput channels are read from the configuration database
    2018-10-10 09:07:57 <PMI-SCADA><SYSTEM><ACT> Users are read from the configuration database
    2018-10-10 09:07:57 <PMI-SCADA><SYSTEM><ACT> Formulas are read from the configuration database
    2018-10-10 09:07:57 <PMI-SCADA><SYSTEM><ERR> Error compiling the source code of the formulas:
    Line 505, column 56: error CS0103: The name ‘Getbit’ does not exist in the current context
    See the file C:\SCADA\ScadaServer\Log\CalcEngine.cs with the source code
    2018-10-10 09:07:57 <PMI-SCADA><SYSTEM><ERR> Normal program execution is impossible.

    in reply to: Any questions about Rapid SCADA and Raspberry Pi #4375
    IncineratorX2
    Participant

    – edit – sorry wrhong thread

    • This reply was modified 5 years, 6 months ago by IncineratorX2.
    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4374
    IncineratorX2
    Participant

    Update :

    Communicator Device 1010 POC : https://imgur.com/LZdkK9s
    Device template : https://imgur.com/SpXX8cX
    Device template input : https://imgur.com/pzHHEbV
    Input channel properties : https://imgur.com/1IpzLPv
    Table overview in SCADA website : https://imgur.com/1JbnVwi

    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4364
    IncineratorX2
    Participant

    Hi Mikhail, All

    sorry for the late reply, i will make the screen dumps today and will share them with you.
    Unfortunatly i didn’t had time nor access to the test setup this Monday.

    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4352
    IncineratorX2
    Participant

    OK, so:
    the inputs are on Holding registers (4X), Start 9 Element count 1, 2 bytes ushort

    Communicator log gives the decimal 4094 (so in1 is 0 closed)

    Created in Administator, extra channel 19, in order of apperance :
    19,
    Active yes,
    Digital IN1,
    Calculated Discrete,
    no object,
    POC Device, (our name of the test device)
    Signal 9, (get the data from channel 9?)
    Formula used yes,
    Formula : Getbit(1,1) (first bit in the row)
    Averaging : No
    Quantity : State
    Format : D
    Unit : Off – on
    no else configured.

    For now it’s ok, i should invert the Getbit as 0 is on, 1 is resting state off.
    That is for later concern.
    Unfortunatly, i get the complete decimal 4094 -> 11111111110 or F FE from channel 9. Instead of the formula result..
    What am i missing?

    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4347
    IncineratorX2
    Participant

    Hi Manjey73,

    thanks for the tips, but can you elaborate on the Unsinged read?
    As i can only set a X byte in the Elements settings in the GUI.

Viewing 15 posts - 1 through 15 (of 15 total)