beautypg.com

KEYENCE N-410 User Manual

Page 124

background image

7-8

PLC

Link

7

7-2

Device Assignments

• The A+01 address contains the ID number of the code reader that did the reading. The A+02

address contains the data size in binary.

• The A+03 to +130 addresses contain the barcode or ASCII data (in two-space hexadecimal) that was

read in.

• The A+03 to +130 addresses for a single DM are written in high byte, low byte order. When writing

odd-byte data, the last digit (the low byte of the last piece of data) will be written as 00h. Data after
the last digit will be the remains of the previous data.

• If a read error occurs, "ERROR" will be written.
• If there is a buffer overflow on a code reader, "OVER" will be written.

Up to 255 digits worth of data can be saved in this data area.
BL Series devices can only store up to 96 digits worth of data (when using BL-210RK), but
SR Series devices can store 2D code data far more than 255 digits (up to 7089 digits: QR
code).
However, note that when using a PLC link, data over 255 digits cannot be stored into a
PLC.

The BL Series device with ID number 12 reads a barcode "KE12"

The BL Series device with ID number 5 has encountered a read error (ERROR)

A+01 to +130
Data write area (ID number, digits, data)

A+01

ID number (1 to 31)

A+02

Code digits(1 to 255)

A+03

1st and 2nd digits of read data

:

:

A+130

255th digit of read data

DM

A+01

A+02

A+03

A+04

Data

12

4

4B45h

3132h

DM

A+01

A+02

A+03

A+04

A+05

Data

5

5

4552h

524Fh

5200h

Note

(Example1)

(Example2)