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

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

Advertisement

Data of the size of the storage RcvDat is received and the rest of data is retained in the receive buffer.
The retained data can be received when the next SerialRcv instruction is executed.
For example, when 10-byte data exists in the receive buffer and the capacity of the receive data storage
RcvDat is 5 bytes, 5-byte data is received and other 5-byte data is retained in the receive buffer. The
value of the RcvSize output variable will be 5 bytes, which represents the size of data that is stored.
1st byte
2nd byte
3rd byte
4th byte
5th byte
6th byte
7th byte
8th byte
9th byte
10th byte
Interruption of Instruction Execution
If Abort is changed to TRUE during instruction execution, the execution is interrupted.
When the instruction execution is interrupted, CommandAborted changes to TRUE.
If the change of Abort is too late to interrupt the execution, Done changes to TRUE and the instruction
ends normally.
If both Abort and Execute are changed to TRUE, CommandAborted changes to TRUE.
This interruption operation only finishes the Busy processing, and it does not clear the receive buffer. To
clear the buffer, use the NX_SerialBufClear instruction.
Timing Charts
The following figures show the timing charts.
 Normal end
TRUE
Execute
FALSE
TRUE
Abort
FALSE
TRUE
Busy
FALSE
TRUE
Done
FALSE
TRUE
Error
FALSE
Command
TRUE
Aborted
FALSE
ErrorID
*1 Receive processing
*2 Data is received in No-protocol mode.

NY-series Instructions Reference Manual (W560)

Receive buffer
Receive processing is performed. 1
Cannot be stored in RcvDat. Data
is retained in the receive buffer.
Receive processing for the data
is performed when the next
NX_SerialRcv instruction is exe-
cuted.
*2
*1
Cleared to 0.
Updated to result. (16#0000: Normal)
2 Instruction Descriptions
Receive data stor-
age RcvDat[ ]
2
3
4
5
---
2
2-1175

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents