Modbus Write Coils
Writing values in multiple bits.
blockType: EngeeFunction
|
Path in the library:
|
Description
| To work with the block, install/update the support package. equipment. |
Block Modbus Write Coils It is used to write values in multiple bits.
Modbus function: 15 (0x0F).
Ports
Input
#
Data
—
scalar or vector of 8-bit unsigned integers to be recorded
scalar | vector
Details
The length of the vector must not exceed 1968.
| Data types |
|
| Complex numbers support |
No |
#
Number of bits
—
Number of bits for writing
scalar
Details
| Data types |
|
| Complex numbers support |
No |
Output
#
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 written bits will be returned.
| Data types |
|
| Complex numbers support |
No |
Parameters
Параметры
# Server ID: — slave device ID
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Адрес: — initial address for writing, without taking into account the offset
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Шаг расчёта, с: — calculation step in seconds for sending data from a real-time application
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
