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
Bit strings
DevicePort
SlaveAdr
ReadCmd
Option
Abort
OK
OK
OK
ReadDat[]
(array)
Command-
OK
Aborted
ReadSize
Function
The NX_ModbusRtuRead instruction sends read commands from a serial port on an NX-series Com-
munications Interface Unit or Option Board to Modbus-RTU slaves using Modbus-RTU protocol. The
requested data are read from the Modbus-RTU slaves.
This instruction ends normally when a normal response to the sent command is received.
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
Use DeviceType to specify the device type. Set this to _DeviceNXUnit for an NX Unit and _DeviceOp-
tionBoard for an Option Board. The variable used to specify the device is determined by the specified
device type.
To specify an NX Unit, use NxUnit to specify the device.
2-1194
Refer to Function for details on the structure _sDEVICE_PORT.
OK
Refer to Function for details on the structure _sSERIAL_MODBUSRTU_READ.
Refer to Function for details on the structure _sSERIAL_MODBUSRTU_OPTION.
An array can also be specified.
OK
Meaning
Description
Object that represents a
Device port
device port
Type of the device to
Device type
specify
Specified Unit
NX Unit to control
Specified
EtherCAT slave to con-
slave
trol
Specified
Option Board to control
Option Board
Reserved
Reserved
Port number
Port number
1: Port 1
2: Port 2
Integers
Data type
_sDE-
VICE_PORT
_eDEVICE_-
TYPE
_sNXUNIT_ID ---
_sECAT_ID
_sOPTBOAR
D_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