Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
Use the ReadCmd input variable to specify the read command.
CRC is attached by the instruction.
The data type of ReadCmd input variable is structure _sSERIAL_MODBUSRTU_READ. The specifica-
tions are as follows:
Name
ReadCmd
Fun
ReadAdr
ReadSize
*1 The unit is the same as the unit of read data specified with ReadCmd.Fun.
The data type of Fun is enumerated type _eMDB_FUN.
The meanings of the enumerators of enumerated type _eMDB_FUN are as follows:
Enumerator
_MDB_READ_COILS
_MDB_READ_DISCRETE_INPUTS
_MDB_READ_HOLDING_REGISTERS
_MDB_READ_INPUT_REGISTERS
The valid range that you can specify with ReadSize varies depending on the function code.
Each value is determined by the size of data that is read and the maximum command length.
The specifications are as follows:
Function code
_MDB_READ_COILS
_MDB_READ_DISCRETE_INPUTS
_MDB_READ_HOLDING_REGISTERS
_MDB_READ_INPUT_REGISTERS
2-1196
Meaning
Description
Read com-
Read command
mand
Function code Function code
Read address Read start address
Read size
Read size
Read outputs (bit)
Read inputs (bit)
Read holding registers (word)
Read input registers (word)
1 to 2,000 (bit)
1 to 2,000 (bit)
1 to 125 (word)
1 to 125 (word)
Data type
_sSERIAL_-
MODBUSR-
---
TU_READ
_MDB_READ_
COILS
_MDB_READ_
DISCRETE_
INPUTS
_MDB_READ_
_eMDB_FUN
HOLDING_
REGISTERS
_MD-
B_READ_IN-
PUT_REGISTE
RS
Depends on
UINT
data type.
Depends on
UINT
function code.
Meaning
ReadSize

NY-series Instructions Reference Manual (W560)

Valid range
Unit
Default
---
---
_MDB_
---
READ_-
COILS
---
0
_MDB_
*1
READ_-
---
COILS

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents