Writing to Input registers of Virtual Modbus TCP server
Writing to Input registers of Virtual Modbus TCP server
Is it possible to write to Input registers (Holding registers) of Virtual Modbus TCP server?
Re: Writing to Input registers of Virtual Modbus TCP server
Hi MaltarLED, have a look at the tutorial How to Use RevPi Core as Modbus TCP Master.
The FC "READ_HOLDING_REGISTERS" is implemented (Read an whole 16-bit input/output register). You can write and read to and from the input of the ModbusTCP Master "Input_Word_1" as follows:
The FC "READ_HOLDING_REGISTERS" is implemented (Read an whole 16-bit input/output register). You can write and read to and from the input of the ModbusTCP Master "Input_Word_1" as follows:
Code: Select all
pi@RevPi39627:~ $ piTest -w Input_Word_1,1
Write value 1 dez (=0001 hex) to offset 11
pi@RevPi39627:~ $ piTest -r Input_Word_1,1
2 Byte-Value of Input_Word_1: 1 dez (=0001 hex)