Modbus Write
This function block is used to write data to a Modbus server, facilitating communication between devices in automation systems. It allows the user to specify the address and type of data to be written.
📥 Inputs
Enable
A boolean input that activates or deactivates the Modbus write operation.
Modbus Client
This input connects to the Modbus client used for communication with the server.
Data
The actual data or value to be written to the specified address on the Modbus server.
📤 Outputs
This function block does not produce any outputs.
🕹️ Controls
Address
A field to specify the Modbus address where the data will be written.
Data Type
A dropdown menu that allows the user to select the type of data being written, either Coil
or Holding Register
.
🎨 Features
Dynamic Data Writing
Users can specify which address and data type to write to in real-time.
Error Logging
The block automatically logs errors encountered during the write process, aiding in troubleshooting.
📝 Usage Instructions
Enable the Operation: Ensure the
Enable
input is set toTrue
.Specify Address: Enter the Modbus address in the
Address
input field where you want to write the data.Select Data Type: Choose the appropriate data type (either
Coil
orHolding Register
) from theData Type
dropdown.Provide Data: Connect the desired data to the
Data
input.Execute the Write: The write operation will be triggered automatically when the inputs are configured and the block is evaluated.
📊 Evaluation
Upon execution, the block will write the specified data to the Modbus server at the defined address and log any errors that occur during the process.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated