Skip to main content
Skip table of contents

get_modbus_slave(address)

Features

It is used to import values by approaching the General Purpose Register area of the Modbus TCP Slave.

Parameter

Parameter NameData TypeDefault ValueDescription

address

int

-

Address value of the GPR area to read (128~255)

Return

ValueDescription

value

Corresponding register value

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
value1 = get_modbus_slave(128)
value2 = get_modbus_slave(255)
JavaScript errors detected

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

If this problem persists, please contact our support.