80
SECT
IO
N
7
S
e
ri
al I
n
te
rf
ace
V530-R2000
User’s Manual
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
·
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.
The Write Flag will change to 0 at the first reading after turning ON the power supply, so store F
as the initial value.
·
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-
tion exceeding the limit will be truncated.
·
Single-byte characters: 56 letters
·
Double-byte characters: 28 letters
·
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 one reading.
Reading ends when the reading is correctly performed (OK).
The reading result is output to the Write Area.
Begin read
word
Data
Description
+0
0
0
1
0
Command code
Begin write
word
Data
Description
+0
Write Flag
0
0
0
Write Flag
+1
Read data byte 1
Read data byte 2
Read data
+2
Read data byte 3
Read data byte 4
to
to
to
+27
Read data byte 53
Read data byte 54
+28
Read data byte 55
Read data byte 56
Function
Performs continuous reading.
The reading result is output to the Write Area.
Begin read
word
Data
Description
+0
0
0
1
1
Command code
Data output to the Write Area is the same as for the One-short Reading
command (0010).
Содержание V530-R2000
Страница 1: ...USER MANUAL Cat No Q134 E1 1A V530 R2000 2D Code Reader Fixed...
Страница 33: ...16 V530 R2000 User s Manual SECTION 2 MEMO...
Страница 55: ...38 V530 R2000 User s Manual SECTION 4 MEMO...
Страница 63: ...46 V530 R2000 User s Manual SECTION 5 MEMO...
Страница 111: ...94 V530 R2000 User s Manual SECTION 7 MEMO...