Blocks MODBUS TCP
Revision as of 12:50, 12 November 2018 by Z033 (talk | contribs) (Created page with "===== MODBUS_TCP_R_COIL ===== Reads one coil register {| class="wikitable" | colspan="5" |Asynchronous interface |- |in |IP |string | |IP address...")
Contents
MODBUS_TCP_R_COIL
Reads one coil register
Asynchronous interface | ||||
in | IP | string | IP address of slave device (syntax: "aaa.bbb.ccc.ddd") | |
in | Port | int | TCP port of slave device (default: 502) | |
in | UnitID | byte | Device bus address (default: 1) | |
in | OfsAdr | word | register address (1-9999) | |
in | Timeout | byte | timeout in seconds | |
out | Q | bool | readed value |
MODBUS_TCP_R_DISCRETE
Read one discrete discrete input register
Asynchronous interface | ||||
in | IP | string | IP address of slave device (syntax: "aaa.bbb.ccc.ddd") | |
in | Port | int | TCP port of slave device (default: 502) | |
in | UnitID | byte | Device bus address (default: 1) | |
in | OfsAdr | word | register address (1-9999) | |
in | Timeout | byte | timeout in seconds | |
out | Q | bool | readed value |
MODBUS_TCP_R_HOLDING
Reads one holding register
Asynchronous interface | ||||
in | IP | string | IP address of slave device (syntax: "aaa.bbb.ccc.ddd") | |
in | Port | int | TCP port of slave device (default: 502) | |
in | UnitID | byte | Device bus address (default: 1) | |
in | OfsAdr | word | register address (1-9999) | |
in | Timeout | byte | timeout in seconds | |
out | Q | word | readed value |
MODBUS_TCP_R_INPUT
Reads one input register
Asynchronous interface | ||||
in | IP | string | IP address of slave device (syntax: "aaa.bbb.ccc.ddd") | |
in | Port | int | TCP port of slave device (default: 502) | |
in | UnitID | byte | Device bus address (default: 1) | |
in | OfsAdr | word | register address (1-9999) | |
in | Timeout | byte | timeout in seconds | |
out | Q | word | readed value |
MODBUS_TCP_W_COIL
Writes value to one coil register
Asynchronous interface | ||||
in | IP | string | IP address of slave device (syntax: "aaa.bbb.ccc.ddd") | |
in | Port | int | TCP port of slave device (default: 502) | |
in | UnitID | byte | Device bus address (default: 1) | |
in | OfsAdr | word | register address (1-9999) | |
in | Timeout | byte | timeout in seconds | |
in | VAL | bool | value to write |
MODBUS_TCP_W_HOLDING
Writes value to one holding register
Asynchronous interface | ||||
in | IP | string | IP address of slave device (syntax: "aaa.bbb.ccc.ddd") | |
in | Port | int | TCP port of slave device (default: 502) | |
in | UnitID | byte | Device bus address (default: 1) | |
in | OfsAdr | word | register address (1-9999) | |
in | Timeout | byte | timeout in seconds | |
in | VAL | word | value to write |