issue reading Process Image byte variables
Posted: 28 Jun 2021, 05:39
Hi,
I am having an issue reading any of the Process Image byte variables ... ie. DIn_Status, DOut_Status, RevPiLED all return 00000000 regardless of the actual state.
Example
Success - Activates OUT 0 LED on the unit
Success - Returns "1"
Fail - Returns "00000000"
I Expected - "10000000" from this. Have I got something wrong here? How can I read all the DOut_x bits in one piTest command?
I posted about this last week here viewtopic.php?f=6&t=2884#p10472, but still haven't got a response. I'm really hoping someone can help me here as I've got quite a tight deadline to get this project working. I've also just plugged in a ModBus slave and am having a similar issue with that... I can read BOOL variables ie Input_Bit_1 = 1 but not WORD variables ie Input_Word_1 = 00000000 00000000.
Thanks for any suggestions!
I am having an issue reading any of the Process Image byte variables ... ie. DIn_Status, DOut_Status, RevPiLED all return 00000000 regardless of the actual state.
Example
Code: Select all
piTest -w DOutBit_1,1
Code: Select all
piTest -1 -q -r DOutBit_1
Code: Select all
piTest -1 -q -r DOut_Status,b
I Expected - "10000000" from this. Have I got something wrong here? How can I read all the DOut_x bits in one piTest command?
I posted about this last week here viewtopic.php?f=6&t=2884#p10472, but still haven't got a response. I'm really hoping someone can help me here as I've got quite a tight deadline to get this project working. I've also just plugged in a ModBus slave and am having a similar issue with that... I can read BOOL variables ie Input_Bit_1 = 1 but not WORD variables ie Input_Word_1 = 00000000 00000000.
Thanks for any suggestions!