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

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

Advertisement

Precautions for Correct Use
• When Abort remains FALSE, this instruction is executed until the completion of processing even if
Execute changes to FALSE or the execution time exceeds the task period.
The value of Done changes to TRUE when processing is completed. Use this to confirm normal com-
pletion of processing. If Abort is changed to TRUE during instruction execution, CommandAborted or
Done changes to TRUE.
• Data is not received when RcvCfg.EndTrig is _SERIAL_END_RCV_SIZE and the value of the
RcvCfg.RcvSizeCfg input variable is 0. In this case, the value of Done changes to TRUE at instruc-
tion execution.
• A compiling error will occur if you use this instruction in an event task. Do not use this instruction in
event tasks.
• "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 is set for RcvCfg.RcvSizeCfg while RcvCfg.EndTrig is set to _SERI-
AL_END_RCV_SIZE.
• A value that is out of range is set for Size, DevicePort.DevicePortType or DevicePort.PortNo.
• Option.LastDatRcv is TRUE.
• The array variable specified with the RcvDat in-out variable is smaller than the size specified with
the Size input variable.
• The storage size that is specified by Size for saving the data in RcvDat is smaller than the actually
received data.
• The Unit, Option Board, or port specified with DevicePort does not exist.
• The data type of DevicePort is invalid.
• _SERIAL_END_TERMINATION_CHAR is selected with RcvCfg.EndTrig when an Option Board is
specified with DevicePort.
• 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.
• The receive buffer is full.
• 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_SerialRcv instruction, NX_ModbusRtuCmd instruction,
NX_ModbusRtuRead instruction, and NX_ModbusRtuWrite instruction.
• A parity error occurred in the data received.
• A framing error occurred in the data received.
• An overrun error occurred in the data received.
• Timeout time elapsed.
• 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.

NY-series Instructions Reference Manual (W560)

2 Instruction Descriptions
2-1177
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents