Forum Replies Created
-
AuthorPosts
-
October 12, 2018 at 5:25 pm in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4432
IncineratorX2
ParticipantYeah i will 🙂 first finding the hardware… Thread may be closed.
October 11, 2018 at 6:41 pm in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4415IncineratorX2
ParticipantThank 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/closedWe didn’t enum text it yet. As i wanted to see the value.
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 7 years ago by
IncineratorX2.
-
This reply was modified 7 years ago by
IncineratorX2.
-
This reply was modified 7 years ago by
IncineratorX2. Reason: image links broken
October 11, 2018 at 6:28 pm in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4412IncineratorX2
Participantwe are testing, looking good.
October 11, 2018 at 8:35 am in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4397IncineratorX2
ParticipantThe 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.-
This reply was modified 7 years ago by
IncineratorX2.
-
This reply was modified 7 years ago by
IncineratorX2.
-
This reply was modified 7 years ago by
IncineratorX2.
October 11, 2018 at 8:19 am in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4396IncineratorX2
ParticipantUnfortunatly, 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.
October 10, 2018 at 10:19 pm in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4394IncineratorX2
ParticipantYed thank you! I get my wished results 🙂
October 10, 2018 at 3:00 pm in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4389IncineratorX2
ParticipantSo 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 7 years ago by
IncineratorX2.
October 10, 2018 at 12:31 pm in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4383IncineratorX2
ParticipantOk 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.
IncineratorX2
Participantsorry i replied on the wrong thread.
October 10, 2018 at 10:04 am in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4379IncineratorX2
ParticipantSomehow the calculation engine fails on the Getbit formula.
input channels configuration in Administrator : https://imgur.com/a/SGEmJFS2018-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.IncineratorX2
Participant– edit – sorry wrhong thread
-
This reply was modified 7 years ago by
IncineratorX2.
October 9, 2018 at 11:21 pm in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4374IncineratorX2
ParticipantUpdate :
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/1JbnVwiOctober 8, 2018 at 11:21 pm in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4364IncineratorX2
ParticipantHi 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.October 5, 2018 at 3:29 pm in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4352IncineratorX2
ParticipantOK, so:
the inputs are on Holding registers (4X), Start 9 Element count 1, 2 bytes ushortCommunicator 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?October 5, 2018 at 11:47 am in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4347IncineratorX2
ParticipantHi 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. -
This reply was modified 7 years ago by
-
AuthorPosts