Please enable JavaScript to view this site.

This keyword allows a variable of type STRU_MODBUS to be defined.

It is used by modbus management functions.

It consists of the following information:

Field

Type

Description

status

I32

Must be set = 0 for initialization.

Output contains error code or 1 if waiting for completion of operation (such as the result of functions using this structure)

address

I32

Index of the first address to be read/write

quantity

I32

Number of address to be read/write

endian

I32

Type of endian to be used:

EM_B_16 = 0 Big Endian in single word (default)

EM_L_16 = 1 Little Endian in single word

EM_B_32 = 2 Big Endian in 32 bit

EM_L_32 = 3 Little Endian in 32 bit

EM_MB_32 = 4 Middle Big Endian in 32 bit

EM_ML_32 = 5 Middle little Endian in 32 bit

EM_B_64 = 6 Big Endian in 64 bit

EM_L_64 = 7 Little Endian in 64 bit

EM_MB_64 = 8 Middle Big Endian in 64 bit

EM_ML_64 = 9 Middle little Endian in 64 bit

res_1

I32

trans_id

unitId

I32

unit_id

res_3

REAL

time_stamp

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC