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

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

Advertisement

Sample Programming
In this sample, an NX-series Communications Interface Unit (NX-CIF210) is connected to an EtherCAT
Coupler Unit (NX-ECC203).
The unit number of the NX-CIF210 is set to 1.
For the Unit operation settings of the NX-CIF210, set Ch2 Number of Characters to Determine the
End to 35. The number of characters is regarded as 3.5 during operation because the unit for setting
the Number of Characters to Determine the End is 0.1 character.
Built-in EtherCAT port
EtherCAT Coupler Unit
NX-ECC203
A Modbus-RTU command is sent from serial port 2 of the NX-CIF210.
When ModbusCmdRequestTrigger turns ON, a holding register starting from address 32
(BYTE#16#0020) in slave address 1 is read.
General commands are sent/received to read a variable.
Internal
Vari-
ables
NX_ModbusRtuCm-
d_instance
ModbusCmdDat
ModbusDatSize
Done
Busy
ModbusStage
RspSize
RespDat
Error
ErrorID

NY-series Instructions Reference Manual (W560)

NX-series
Communications
Interface Unit
NX-CIF210
Variable
Data type
NX_ModbusRtuCmd
ARRAY[0..19] OF
BYTE
UINT
BOOL
BOOL
INT
UINT
ARRAY[0..275] OF
BYTE
BOOL
WORD
2 Instruction Descriptions
Initial value
[6(16#0)]
MODBUS command data
MODBUS command data
UINT#0
total size (byte)
BOOL#FALSE
BOOL#FALSE
MODBUS communica-
INT#0
tions status
Actually received data
UINT#0
size (byte)
Received data storage
[6(16#0)]
area
2
Comment
2-1191

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents