Skip to main content
Skip table of contents

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 NameData TypeDefault ValueDescription

iobus_list

list(string)

-

Modbus input name list (configured at TP)

Available only with the following signal types

  • DR_MODBUS_REG_INPUT
  • DR_MODBUS_REG_OUTPUT

Return

ValueDescription

res

Number values read

val_list

List of multiple signal values read simultaneously

Exception

ExceptionDescription

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

PY
# 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]
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.