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
*2 If you omit an input parameter, the default value is not applied. A building error will occur.
*3 Set the total number of bytes for the function code and command data. The number of bytes for the function code is one.
*4 The total number of bytes for the function code and read data is stored. The number of bytes for the function code is one.
Bit strings
DevicePort
SlaveAdr
CmdDat[]
OK
(array)
CmdSize
Option
Abort
OK
Resp-
OK
Dat[]array
Command-
OK
Aborted
RespSize
Function
The NX_ModbusRtuCmd instruction sends general commands from a serial port on an NX-series Com-
munications Interface Unit or Option Board to Modbus-RTU slaves using Modbus-RTU protocol.
This instruction ends normally when a normal response to the sent command is received.
When a command is broadcasted, this instruction ends normally without waiting for responses from
slaves.
The data type of the DevicePort input variable is structure _sDEVICE_PORT. The specifications are as
follows:
Name
DevicePort
DeviceType
NxUnit
EcatSlave
OptBoard
Reserved
PortNo
2-1184
Refer to Function for details on the structure _sDEVICE_PORT.
OK
OK
Refer to Function for details on the structure _sSERIAL_MODBUSRTU_OPTION.
OK
Meaning
Description
Object that rep-
Device port
resents a device port
Type of the device to
Device type
specify
Specified Unit
NX Unit to control
EtherCAT slave to
Specified slave
control
Specified
Option Board to
Option Board
control
Reserved
Reserved
Port number
Port number
1: Port 1
2: Port 2
Integers
Data type
_sDEVICE_PORT
_eDEVICE_TYPE
_sNXUNIT_ID
_sECAT_ID
_sOPTBOARD_ID
Reserved
USINT

NY-series Instructions Reference Manual (W560)

Times, durations,
dates, and text strings
Valid range
Unit Default
---
---
---
_DeviceNXUnit
_DeviceEcat-
Slave
---
---
_DeviceOption-
Board
---
---
---
---
---
---
---
---
---
---
---
---
Depends on
---
---
data type.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents