Modbus Read
This function block is used to read data from a Modbus server via a specified client, offering flexibility in accessing various data types.
๐ฅ Inputs
Enable
This boolean input activates the Modbus reading process. If false, the reading is halted.
Modbus Client
This input provides the client needed to communicate with the Modbus server.
๐ค Outputs
Data
This output contains the data read from the specified Modbus address, depending on the chosen data type.
๐น๏ธ Controls
Address
A text input field to specify the Modbus register address to read from.
Quantity
A text input field to define how many registers or coils to read.
Data Type
A dropdown menu to select the type of data to be read, which can include:
Coil
Discrete Input
Input Register
Holding Register
๐จ Features
Asynchronous Communication
The block uses async functions to ensure non-blocking reads from the Modbus server, improving efficiency.
Error Logging
If there are issues during the read process, error messages will be logged by the tool, allowing for quick troubleshooting.
๐ Usage Instructions
Connect the Modbus Client: Ensure that you connect a valid Modbus client to the
Modbus Client
input.Set Address: Enter the desired Modbus address in the
Address
text input.Set Quantity: Define how many items to read by entering a value in the
Quantity
text input.Select Data Type: Use the dropdown menu to select the desired data type you want to read.
Enable Reading: Send a
true
signal to theEnable
input to start reading from the specified Modbus address.
๐ Evaluation
When activated, this function block reads data from the Modbus server based on the specified parameters and returns the data.
๐ก Tips and Tricks
๐ ๏ธ Troubleshooting
Last updated