Difference between revisions of "Blocks MODBUS TCP"

From IPLOG
Jump to: navigation, search
(Created page with "===== MODBUS_TCP_R_COIL ===== Reads one coil register {| class="wikitable" | colspan="5" |Asynchronous interface |- |in |IP |string | |IP address...")
 
 
Line 1: Line 1:
 +
== [[Libraries for IEC 61131-3|Back to Libraries]] ==
 +
 
===== MODBUS_TCP_R_COIL =====
 
===== MODBUS_TCP_R_COIL =====
 
Reads one coil register
 
Reads one coil register
 
{| class="wikitable"
 
{| class="wikitable"
| colspan="5" |[[#Asynchronous operations|Asynchronous interface]]
+
| colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]]
 
|-
 
|-
 
|in
 
|in
Line 44: Line 46:
 
Read one discrete discrete input register
 
Read one discrete discrete input register
 
{| class="wikitable"
 
{| class="wikitable"
| colspan="5" |[[#Asynchronous operations|Asynchronous interface]]
+
| colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]]
 
|-
 
|-
 
|in
 
|in
Line 86: Line 88:
 
Reads one holding register
 
Reads one holding register
 
{| class="wikitable"
 
{| class="wikitable"
| colspan="5" |[[#Asynchronous operations|Asynchronous interface]]
+
| colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]]
 
|-
 
|-
 
|in
 
|in
Line 128: Line 130:
 
Reads one input register
 
Reads one input register
 
{| class="wikitable"
 
{| class="wikitable"
| colspan="5" |[[#Asynchronous operations|Asynchronous interface]]
+
| colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]]
 
|-
 
|-
 
|in
 
|in
Line 170: Line 172:
 
Writes value to one coil register
 
Writes value to one coil register
 
{| class="wikitable"
 
{| class="wikitable"
| colspan="5" |[[#Asynchronous operations|Asynchronous interface]]
+
| colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]]
 
|-
 
|-
 
|in
 
|in
Line 212: Line 214:
 
Writes value to one holding register
 
Writes value to one holding register
 
{| class="wikitable"
 
{| class="wikitable"
| colspan="5" |[[#Asynchronous operations|Asynchronous interface]]
+
| colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]]
 
|-
 
|-
 
|in
 
|in

Latest revision as of 13:52, 12 November 2018

Back to Libraries

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