Modbus Read Coil Status
Page in progress. |
Reading multiple consecutive bits.
blockType: CFunction
Path in the library:
|
Description
The Modbus Read Coil Status block is used to read multiple consecutive bits.
Modbus functions: 2 (0x02)
Ports
Output
#
Data
—
received data
vector
Details
Vector of 8-bit unsigned integers
Data types |
|
Complex numbers support |
No |
#
Status
—
transaction status
scalar
Details
Designed for error control and error handling in the model. Error codes:
-
-1
- operation error.
If the operation is successful, the number of read bits will be returned.
Data types |
|
Complex numbers support |
No |
Parameters
Параметры
# Идентификатор сервера — slave device ID
Details
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |
# Начальный адрес чтения — initial address for reading, not including the offset
Details
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |
# Количество регистров — number of registers to read
Details
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |
# Шаг расчёта, с — calculation step in seconds to obtain data in a real-time application
Details
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |