3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

get_modbus_inputs_list()

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

  • DR_MODBUS_REG_INPUT

  • DR_MODBUS_REG_OUTPUT

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]

Keyword

get_ / modbus / get_modbus / modbus_inputs / modbus_inputs_list