I am experimenting with using a RevPi core as a Modbus TCP slave and am experiencing some unexpected behaviour which I was hoping someone could explain.
I can set up the virtual TCP slave adapter in PiCtory and when I run
Code: Select all
piTest -d
Code: Select all
Address: 64 module type: 24577 (0x6001) ModbusTCP Slave Adapter V0.0
Module is present
input offset: 124 length: 64
output offset: 188 length: 64
Code: Select all
piTest -w Command,5
Code: Select all
Write value 5 dez (=0005 hex) to offset 124.
Code: Select all
piTest -r Command
Code: Select all
...
2 Byte-Value of Command: 5 dez (=0005 hex)
2 Byte-Value of Command: 5 dez (=0005 hex)
2 Byte-Value of Command: 5 dez (=0005 hex)
2 Byte-Value of Command: 5 dez (=0005 hex)
2 Byte-Value of Command: 5 dez (=0005 hex)
2 Byte-Value of Command: 5 dez (=0005 hex)
2 Byte-Value of Command: 0 dez (=0000 hex)
2 Byte-Value of Command: 0 dez (=0000 hex)
2 Byte-Value of Command: 0 dez (=0000 hex)
2 Byte-Value of Command: 0 dez (=0000 hex)
Thanks very much!