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_slave()

Definition

get_modbus_slave(address)

Features

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

Parameters

Parameter Name

Data Type

Default Value

Description

address

int

-

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

Return

Value

Description

value

Corresponding register value

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

Keyword

get_ / modbus / slave / get_modbus / modbus_slave