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
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, the status of an output starting from address 19 in slave
address 1 is read.
A read command is sent to read a variable.
Internal
Vari-
ables
NX_ModbusR-
tuRead_instance
Done
Busy
ModbusStage
Error
ErrorID
ModbusCmdRequest-
Trigger
SlaveAdr
DevicePort
ReadCmd
ReadDat
ReadSize
2-1202
NX-series
Communications
Interface Unit
NX-CIF210
Variable
Data type
NX_ModbusRtuRead
BOOL
BOOL
INT
BOOL
WORD
BOOL
UINT
_sDEVICE_PORT
_sSERIAL_MODBUS-
RTU_READ
BOOL
UINT
Initial value
MODBUS communica-
INT#0
tions status
FALSE
Execution condition
UINT#0
Slave address
Port settings
[6(16#0)]
UINT#0

NY-series Instructions Reference Manual (W560)

Comment

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents