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 SlaveAdr input variable to specify the address of a Modbus-RTU slave.
To broadcast commands to Modbus-RTU slaves, set the SlaveAdr input variable to 0.
Set the command data with the CmdDat input variable, and set the size of command data with the
CmdSize input variable.
CRC is attached by the instruction.
Use the RespDat in-out variable to specify the variable to store the read data.
The RespSize output variable represents the size of received data.
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, and it does not clear the send or receive
buffer. To clear the buffer, use the NX_SerialBufClear instruction.
2-1186
Meaning
Description
Option
Option
Send delay
Send delay time in units
time
of 0.01 s
2.0 s when the timeout
Timeout time
time is set to 0
• Set TRUE when no
response is waited for
the send command.
• If TRUE is set, this
No response
instruction sends a
command and ends
normally without wait-
ing for the elapse of
the timeout time.
Retry count
Retry count
Data type
Valid range
_sSERIAL_-
MODBUSR-
---
TU_OPTION
Depends on
UINT
data type.
Depends on
UINT
data type.
Depends on
BOOL
data type.
USINT
0 to 15

NY-series Instructions Reference Manual (W560)

Unit
Default
---
---
0.01 s
0
0.1 s
20
---
FALSE
---
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents