KEYENCE N-400 User Manual
Page 120

Chapter 6 PLC Link
112
6
A + 02
4
A + 03
5
A + 04
$0045
A + 05
$0052
A + 06
$0052
A + 07
$004F
A + 08
$0052
ID number
Number of digits
Specified by ASCII codes
(hexadecimal numbers)
"E"
"R"
"R"
"R"
"O"
•
The ID number of the BL series that read the data is stored in the A +02 ad-
dress. The number of data digits is stored in the A +03 address as binary data.
•
The read bar code data is stored in the A+04 to +258 addresses using the ASCII
codes (Hexadecimal numbers in two digits) by the digit. (
➮
See the ASCII code
table on p134.)
•
If a read error occurs, the “ERROR” code is stored in the corresponding area.
(The read error code can be easily changed according to the BL series’ setting.)
•
If the buffer overflow error occurs with the BL series, the “OVER” code is stored
in the corresponding area.
Note: These data areas accept up to 255 digits. However, the BL series can read
only 32 digits. Therefore, all of the areas for 255 digits are not used for the N-400.
Only the areas corresponding to the number of the data digits are used.
Example: When the BL series with ID No. 12 reads bar code data as “KE12”:
Example: When a read error (ERROR) occurs in the BL series with ID No. 4:
A +02 to +258
Data (ID number, number of digits, data) memory area
A+02
ID number (1 to 31)
A+03
Number of digits of bar code data (1 to 255)
A+04
1st digit of read data
A+05
2nd digit of read data
:
:
A+258
255th digit of read data
A + 02
12
A + 03
4
A + 04
$004B
A + 05
$0045
A + 06
$0031
A + 07
$0032
ID number
Number of digits
Specified by ASCII codes
(hexadecimal numbers)
"K"
"E"
"E"
"2"