Understanding the process image and pitest
Posted: 09 Jun 2019, 20:22
I am using the RevPi Connect with some sensors connected as RTU slaves.
I am reading 20 word-sized registers (some of which to be interpreted as IEE754 later) from them.
I put the read values in Input_Word_1, Input_Word_21, Input_Word_21 etc just adding the number of registers read each time.
I am not sure I understand how the pitest and registers from process image actually works.
I want to read the registers from the sensors every 1 minute and write the values to a file.
I have configured the RTU Master correctly I think, but are the actual values stored in Input_Word_1, Input_Word_2, Input_Word_3.... etc naming words 1..20 or are the Input Words only pointers into a structure/array that I have to acces using the info in Input_Word_1, Input_Word_21, Input_Word_41 .. ??
Clarification ; I have used a loop writing Input_Word_$i where i goes from 1 to 20, but this tutorial - https://revolution.kunbus.com/tutorials ... tu-master/ seems to indicate that the input Input_Word_1 must be accessed and parsed to access the actual data ?
I am reading 20 word-sized registers (some of which to be interpreted as IEE754 later) from them.
I put the read values in Input_Word_1, Input_Word_21, Input_Word_21 etc just adding the number of registers read each time.
I am not sure I understand how the pitest and registers from process image actually works.
I want to read the registers from the sensors every 1 minute and write the values to a file.
I have configured the RTU Master correctly I think, but are the actual values stored in Input_Word_1, Input_Word_2, Input_Word_3.... etc naming words 1..20 or are the Input Words only pointers into a structure/array that I have to acces using the info in Input_Word_1, Input_Word_21, Input_Word_41 .. ??
Clarification ; I have used a loop writing Input_Word_$i where i goes from 1 to 20, but this tutorial - https://revolution.kunbus.com/tutorials ... tu-master/ seems to indicate that the input Input_Word_1 must be accessed and parsed to access the actual data ?