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

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

Advertisement

To set options, use the Option input variable.
The data type of the Option input variable is structure _eSERIAL_RCV_OPTION. The specifications
are as follows:
Name
Option
*1
TimeOut
LastDatRcv
(Reserved)
ClearBuf
*1 An error occurs if the processing does not ends normally within the specified time.
If TimeOut is set to 0, the completion of processing will be waited indefinitely.
*2 Always set the value to FALSE.
An error occurs if this instruction is executed for Units other than NX-series Communications Interface
Units and Option Boards.
Operation of Start Code and End Code
Use the RcvCfg.StartTrig input variable to set the start code condition for the receive data, and use the
RcvCfg.EndTrig input variable to set the end code condition for the receive data.
The following table shows operation based on combination of StartTrig and EndTrig.
StartTrig
_SERIAL_START_NONE

NY-series Instructions Reference Manual (W560)

Meaning
Description
Option
Option
Timeout time
Timeout time
Last data
Last data reception
reception
Receive buf-
Receive buffer clear
fer clear con-
condition
dition
_SERIAL_END_NONE
_SERIAL_END_ENDCODE1
_SERIAL_END_ENDCODE2
_SERIAL_END_TERMINA-
TION_CHAR
_SERIAL_END_RCV_SIZE
Data type
_sSERI-
AL_RCV_OP-
TION
UINT
BOOL
BOOL
EndTrig
Data in the receive buffer is received. If
there is no receive data in the receive
buffer, 0 byte is output to the RcvSize out-
put variable and the receive instruction
ends normally.
If this condition is set, the data of the stor-
age size that is remaining in the receive
buffer is read.
The following range of data is received
from the receive buffer: from the begin-
ning to the end code.
Example: ETX
The following range of data is received
from the receive buffer: from the begin-
ning to the data detected as the end.
The following range of data is received
from the receive buffer: from the begin-
ning to the receive size specified in Rcv-
SizeCfg.
Processing is performed only after the
specified amount of data is accumulated
in the buffer.
2 Instruction Descriptions
Valid range
Unit
Default
---
---
---
Depends on
0.1 s 20
data type.
*2
---
FALSE
FALSE
Depends on
---
FALSE
data type.
Operation
2-1173
2
*1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents