Arduino-modbusRead
Reading values from the internal Modbus register card of the server.
blockType: CFunction
|
Path in the library:
|
Description
| To work with the block, install/update the support package. equipment. |
Block Arduino-modbusRead reads values from the internal Modbus register card of the server.
| To use this unit, you must first configure the Modbus parameters of the server and the data link. To configure them, use the block Arduino-modbusSetup. |
Ports
Input
#
conn
—
connection descriptor
true | false
Details
Waiting to exit the block Arduino-modbusSetup.
| Data types |
|
| Complex numbers support |
No |
Output
#
data
—
data
scalar
Details
A readable bit (Coil) or 2 bytes (Register).
| Data types |
|
| Complex numbers support |
No |
#
status
—
data reception status
scalar
Details
Returns 1 if a data reception register exists (its value can always be successfully read).
Returns 0 if this register does not exist in the register map (going outside the address space when trying to read the register).
| Data types |
|
| Complex numbers support |
No |
Parameters
Main group
#
Функция: —
Modbus protocol reading function
Read Coil | Read Discrete Input | Read Holding register | Read Input register
Details
Modbus protocol reading function.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Адрес: — the address for reading a bit or register into the Modbus server’s internal register card
Details
The address for reading a bit or register into the Modbus server’s internal register card.
The address space is divided into 4 groups:
-
0000–9999forRead Coil; -
10000–19999forRead Discrete Input; -
30000–39999forRead Holding register; -
40000–49999forRead Input register.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Шаг расчёта: — the period for which the block will be called
Details
The period for which this block will be called.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
