Definition
get_modbus_inputs_list(iobus_list)
Features
It is the command for reading multiple register type open signals from an external Modbus Slave unit.
Parameter
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
iobus_list |
list(string) |
- |
Modbus input name list (configured at TP) Available only with the following signal types
|
Return
|
Value |
Description |
|---|---|
|
res |
Number values read |
|
val_list |
List of multiple signal values read simultaneously |
Exception
|
Exception |
Description |
|---|---|
|
DR_Error (DR_ERROR_TYPE) |
Parameter data error occurred |
|
DR_Error (DR_ERROR_VALUE) |
Parameter value is invalid |
|
DR_Error (DR_ERROR_RUNTIME) |
C Extension module error occurred |
|
DR_Error (DR_ERROR_STOP) |
Program terminated forcefully |
Example
Python
# Modbus Register I/O "Holding1" is 1234, "Input1" is 567,
# and "Holding2" is 9876
res, val_list = get_modbus_inputs_list(iobus_list=[ "Holding1", "Input1", "Holding2"])
#res expected value = 3
#val_list expected value = [1234, 567, 9876]