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

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

Advertisement

Bit strings
DevicePort
SlaveAdr
WriteCmd
OK
OK
WriteDat[]
(array)
Option
Abort
OK
Command-
OK
Aborted
Function
The NX_ModbusRtuWrite instruction sends write 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
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.

NY-series Instructions Reference Manual (W560)

Refer to Function for details on the structure _sDEVICE_PORT.
OK
Refer to Function for details on the structure _sSERIAL_MODBUSRTU_WRITE.
An array can also be specified.
Refer to Function for details on the structure _sSERIAL_MODBUSRTU_OPTION.
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
2 Instruction Descriptions
Times, durations,
dates, and text strings
Valid range
Unit
Default
---
---
---
_DeviceNXUnit
_DeviceEcat-
Slave
---
---
_DeviceOption-
Board
---
---
---
---
---
---
---
---
---
---
---
Depends on
---
---
data type.
2-1205
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents