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

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

Advertisement

Use the ReadDat in-out variable to specify the variable to store the read data.
The data type that you can use for ReadDat differs depending on the function code.
The specifications are as follows:
Function code
_MDB_READ_COILS
_MDB_READ_DISCRETE_INPUTS
_MDB_READ_HOLDING_REGISTERS
_MDB_READ_INPUT_REGISTERS
The ReadSize output variable represents the size of data that was read.
To set options, use the Option input variable.
The data type of the Option input variable is structure _sSERIAL_MODBUSRTU_OPTION. The specifi-
cations are as follows:
Name
Option
SendDelay
TimeOut
NoResponse
Retry
An error occurs if this instruction is executed for Units other than NX-series Communications Interface
Units and Option Boards.
Interruption of Instruction Execution
If Abort is changed to TRUE during instruction execution, the execution is interrupted.
When the instruction execution is interrupted, CommandAborted changes to TRUE.
If the change of Abort is too late to interrupt the execution, Done changes to TRUE and the instruction
ends normally.
If both Abort and Execute are changed to TRUE, CommandAborted changes to TRUE.
This interruption operation only finishes the Busy processing for the instruction, and it does not clear
the send or receive buffer. To clear the buffer, use the NX_SerialBufClear instruction.

NY-series Instructions Reference Manual (W560)

BOOL
BOOL[]
BOOL
BOOL[]
WORD
WORD[]
WORD
WORD[]
Meaning
Description
Option
Option
Send delay
Send delay time
time
2.0 s when the timeout
Timeout time
time is set to 0
Not used in this instruc-
No response
tion.
Retry count
Retry count
2 Instruction Descriptions
Data type
Data type
_sSERIAL_
MODBUSR-
---
TU_
OPTION
Depends on
UINT
data type.
Depends on
UINT
data type.
Depends on
BOOL
data type.
USINT
0 to 15
Valid range
Unit
Default
---
---
0.01 s
0
0.1 s
20
---
FALSE
---
0
2-1197
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents