Omron V530-R2000 User Manual page 97

2d code reader (fixed)
Table of Contents

Advertisement

SECTION 7
Host Communications
§ Specific Command Formats
Command formats are explained here in order of command codes.
The commands are input in BCD. Set the command in the begin read word in the Read
Area.
0010: One-shot Reading
Function Performs one reading.
· The Write Flag changes between 0 and F each time data is output
This flag can be monitored to confirm when data has been written.
· There is a limit to the amount of data that can be sent at one time in Host Link Mode.
The maximum data quantities for code are as given below. If these limits are exceeded, the por-
· Add a space (ASCII 20) when the number of read data bytes is odd.
· An error code will be output to the +1 word for NG readings.
0011: Continuous Reading
Function Performs continuous reading.
V530-R2000
80
User's Manual
Reading ends when the reading is correctly performed (OK).
The reading result is output to the Write Area.
Begin read
word
+0
0
Begin write
word
+0
Write Flag
+1
Read data byte 1
+2
Read data byte 3
to
+27
Read data byte 53
+28
Read data byte 55
The Write Flag will change to 0 at the first reading after turning ON the power supply, so store F
as the initial value.
tion exceeding the limit will be truncated.
· Single-byte characters: 56 letters
· Double-byte characters: 28 letters
The reading result is output to the Write Area.
Begin read
word
+0
0
Data output to the Write Area is the same as for the One-short Reading
command (0010).
Data
0
1
Data
0
0
Read data byte 2
Read data byte 4
to
to
Read data byte 54
Read data byte 56
Data
0
1
Description
0
Command code
Description
0
Write Flag
Read data
Description
1
Command code

Advertisement

Table of Contents
loading

Table of Contents