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
• This instruction does not check the communications protocol and wiring conditions. Check the wiring
conditions and communications protocol before you use this instruction.
• "CIF Unit Initialized" may occur when the NX-series Communications Interface Unit is restarted. Send
or receive the data again, if necessary.
• If you use this instruction, do not assign device variables to any I/O ports that are indicated by "W"
under the R/W column on the I/O Map Tab Page in the Sysmac Studio for the applicable NX-series
Communications Interface Unit.
• An error will occur in the following cases. Error will change to TRUE.
• A value that is out of range was set for BufKind, DevicePort.DevicePortType, or Device-
Port.PortNo.
• The Unit, Option Board, or port specified with DevicePort does not exist.
• If more than 32 instructions from the NX_SerialSend instruction, NX_SerialRcv instruction, NX_-
ModbusRtuCmd instruction, NX_ModbusRtuRead instruction, NX_ModbusRtuWrite instruction,
NX_SerialSigCtl instruction, NX_SerialSigRead instruction, NX_SerialStatusRead instruction,
NX_SerialBufClear instruction, NX_SerialStartMon instruction and NX_SerialStopMon instruction
are executed at the same time.
• This instruction is executed with a device port variable that is the same as the one specified for
the instruction which is still being executed. In this case, the instruction which is still being exe-
cuted is one of the followings.
The NX_SerialSend instruction, NX_SerialRcv instruction, NX_ModbusRtuCmd instruction, NX_-
ModbusRtuRead instruction, NX_ModbusRtuWrite instruction, NX_SerialSigCtl instruction,
NX_SerialSigRead instruction, NX_SerialStatusRead instruction, NX_SerialBufClear instruction,
NX_SerialStartMon instruction, and NX_SerialStopMon instruction.
• Timeout time elapsed during serial communications.
• This instruction is executed for Units other than NX-series Communications Interface Units and
Option Boards.
• The serial communications mode of the specified Option Board is not No-protocol or Modbus-
RTU master.
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.
Built-in EtherCAT port
EtherCAT Coupler Unit
NX-ECC203
This instruction clears the receive buffer of serial port 2 on NX-CIF210. When clear processing is com-
pleted, the instruction waits for data that does not have start code and has the CR end code.
2-1228
NX-series
Communications
Interface Unit
NX-CIF210

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents