Skip to main content
Skip table of contents

get_modbus_data_list()

Features

Returns all currently set MODBUS information.

Parameters

None

Return

Value

Data Types

Description

ret

class.modbus_data_list

 All set MODBUS data

Class

class.modbus_data_list

Field

Data Types

Description

obj

list

Object information for that class 

count

int

Number of registered signals 

reg

class.modbus_data[100]

Registered MODBUS information (up to 100)

Information

The modbus_data class is a class organized in C++'s union union structure, which returns a different class depending on the type.


class.modbus_data

type

Field

Data Types

Description


obj

list

Object information for that class 


type

str

tool name

0

tcp

class.write_modbus_tcp_data

modbus tcp register information

1

rtu

class.write_modbus_rtu_data

modbus rtu register information

class.write_modbus_tcp_data

Field

Data Types

Description

obj

list

Object information for that class 

symbol

str

signal name

ip

str

ip address

port

int

port number

slave_id

int

(0~255) slave id

reg_type

int

register type

0 : discrete input

1 : Coil

2 : input register

3 : holding register

reg_index

int

Register number

reg_value

int

Register value

class.write_modbus_rtu_data

Field

Data Types

Description

obj

list

Object information for that class 

symbol

str

signal name

port

str

ip address

slave_id

int

port number

baudrate

int

(0~255) slave id

byte_size

int

Number of data bits

parity

str

Parity checks

stop_bit

int

stop bit 수

reg_type

int

Register type

0 : discrete input

1 : Coil

2 : input register

3 : holding register

reg_value

int

Register value

Example

PY
ret = get_modbus_data_list()

Related commands

  • None
JavaScript errors detected

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

If this problem persists, please contact our support.