Omron SYSMAC CS1W-SCB41-V1 Operation Manual page 660

Sysmac cs series; sysmac cj series. serial communications boards and serial communications units
Table of Contents

Advertisement

V500/V520 Bar Code Reader Protocol
Receive Data Word Allocation (4th Operand of PMCR(260))
None.
General-purpose Command 2 (Sequence No. 366 (Hex 016E))
This general-purpose command is used to send data with a specified data length, and receive back ACK in
addition to other receive data. The frame format of the receive data, however, has to contain STX and ETX.
STX and ETX are automatically attached to the send data.
Send Data Word Allocation (3rd Operand of PMCR(260))
First word of
send data
Receive Data Storage Word Allocation (4th Operand of PMCR(260))
Receive data
storage words
Note Shown below is the receive data frame format. The reception data without ACK, STX, and ETX is stored.
ACK
Offset
Contents (data format)
+0
Number of send data words
(4 digits Hex)
+1
Send data byte length
(4 digits Hex)
+2 to
Send data (ASCII)
+249
+0
Number of send data words
Send data byte length
+1
+2
Send data
Send data
+3
~
+248
Send data
+249
Send data
Offset
Contents (data format)
+0
Number of send data words
(4 digits Hex)
+1
Send data byte length
(4 digits Hex)
+2 to
Send data (ASCII)
+128
+0
Number of receive data words
Receive data
+1
Receive data
+2
~
+126
Receive data
Receive data
+127
Offset
Contents (data format)
+0
Number of receive data
words (4 digits Hex)
+1 to
Receive data (ASCII)
+127
Receive data (498 bytes max.)
STX
Data
0003 to 00FA (3 to 250 decimal)
0001 to 01F0 (1 to 496 decimal)
The byte length of the send data excluding STX and
ETX.
Inscribe send data up to 496 bytes (max.) by ASCII.
~
Data
0003 to 00FA (3 to 250 decimal)
0001 to 01F0 (1 to 496 decimal)
The byte length of the send data excluding STX and
ETX.
Set send data up to 496 bytes (max.) by ASCII.
~
Data
0001 to 00FA (1 to 250 decimal)
Up to 498 bytes of ASCII receive data are stored.
Appendix M
ETX
631

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents