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
When the receive data includes start or end code, you must set the RcvCfg input variable.
The data type of RcvCfg input variable is structure _sSERIAL_CFG. The specifications are as follows:
Name
RcvCfg
StartTrig
StartCode
EndTrig
EndCode
RcvSizeCfg
The data type of StartTrig is enumerated type _eSERIAL_START.
The meanings of the enumerators of enumerated type _eSERIAL_START are as follows:
Enumerator
_SERIAL_START_NONE
_SERIAL_START_STARTCODE1
_SERIAL_START_STARTCODE2
The data type of EndTrig is enumerated type _eSERIAL_END.
The meanings of the enumerators of enumerated type _eSERIAL_END are as follows:
Enumerator
_SERIAL_END_NONE
_SERIAL_END_ENDCODE1
_SERIAL_END_ENDCODE2
_SERIAL_END_TERMINATION_CHAR
_SERIAL_END_RCV_SIZE
Refer to Operation of Start Code and End Code on page 2-1173 for details on the operation of start
code and end code.
2-1172
Meaning
Description
Recep-
tion com-
Reception com-
pletion
pletion setting
setting
Start code
Start code exis-
existence
tence
Start code Start code
End code
End code exis-
existence
tence
End code
End code
Receive size
specified when
Receive
end code is
size
_SERI-
AL_END_RCV_
SIZE
None
1-byte code
2-byte code
None
1-byte code
2-byte code
Termination condition
Receive size
Data type
Valid range
_sSERI-
---
AL_CFG
_SERIAL_START_NONE
_SERIAL_START_START-
_eSERI-
CODE1
AL_START
_SERIAL_START_START-
CODE2
BYTE[2]
Depends on data type.
_SERIAL_END_NONE
_SERIAL_END_ENDCODE1
_eSERI-
_SERIAL_END_ENDCODE2
AL_END
_SERIAL_END_TERMINA-
TION_CHAR
_SERIAL_END_RCV_SIZE
BYTE[2]
Depends on data type.
UINT
0 to 4,096
Meaning
Meaning

NY-series Instructions Reference Manual (W560)

Unit
Default
---
---
_SERIAL_
---
START_-
NONE
---
[2(16#0)]
_SERI-
---
AL_END_-
NONE
---
[2(16#0)]
Bytes
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents