
6AW5451-6XX01-1K
ES 030-K Manual
3 - 34
Subject to change without prior notice
RD: 08.2000
(4)J31069-D0136-U001-A0-7618
3.4.6
Bar Code
Description
A bar code interface is available for connecting bar code
reading devices.
Setting the Parameters in DB 1
Bar code type
Driver selection
Supplied by
DL 70
User
DR 70
User
Bar code-receiving
data address
DW 71 (DB,DW)
User
Bar code-receiving
buffer size
DR 72
User
Bar code-actual
length of the data
DR 73
System
Error number
during command
processing
DL 72
System
Parameter
Address
(For the description of the data contents,
see Chapters 3.2.1.13 and 3.2.1.14)
Actions/Reactions
The input is enabled by setting flag 20.0 (waiting for an input).
Independent of the user program cycle, F 20.0 will be reset,
F 20.1 will be set, and the actual number of received characters
entered into DR 73 by the system within 50 ms after an input
has occurred. The characters read will be stored in DB(DL 71)
beginning with DW(DR71) indicated in DW 71.
Additionally, in case of an error, F 20.2 will be set and the error
number will be entered in DL 72.
Caution:
Changes in DW 70 will only be recognised
after voltage return.
Special Features for Bar Code
The minimum number of bar code characters to be read is 3.
After reading a bar code, the reader is disabled for 1 second in
order to avoid reading the same code twice.
When setting
“
data transfer after reading twice" (DR 70 bit 3
= 1), a pause of longer than 1/2 seconds is not permitted be
tween two readings (for instance, reading in the forward direc
tion and immediately reading in the backward direction is per
missible). The two readings will be compared and found to be
valid if they coincide.
The automatic bar code recognition (type 11) can lead to
reading errors if the reading pen is positioned incorrectly (for
instance, placing the pen in the middle of the bar code).
DL 70 bit 4
switches on a checkbyte (cross-check sum)
DL 70 bit 5
determines, if switched on, whether the check
byte is included in the transmission to the user
or not.
The actual number in DR 73 is calculated without the check
byte for the setting
“
check on",
“
transmission off".
3.4.6.1 Example Program
FB 1: BAR CODE
Segment 1
:AN F 1.0
Voltage return
:JC=ANF
:A F 1.0
:R F 1.1
System start
:R F 1.0
Voltage return
:S F 20.0
Start bar code
ANF :
:A F 20.0
Acknowledge bar code has
been read
:S F 20.0
Start bar code
:R F 20.1
:S F 11.0
Enable display
:BE
DB 1
:
0:
KH = 0000
.
.
.
9:
KY = 001,100 Display parameter DB,DW
10: KY
=
000,040
Display
parameter number of
.
bytes
.
70:
KH = 3B29
Bar code type, driver
71:
KY = 001,100 Bar code parameter DB, DW
72:
KY = 000,010 Error code, max. number of
bytes
73:
KY = 000,000 ---, actual number
Description of the Example:
The bar code is processed without check, with automatic code
recognition of all codes except industrial 2 of 5, normal bar
code, single reading, and "signal tone on". With this setting, a
maximum of 10 bytes can be read. The data are stored in DB 1
beginning at DW 100.
Also, a bar code that has been read will be shown on the
display.
Содержание MOBY ES030-K
Страница 1: ...s MOBY ES 030 K Acquisition Station Manual Release 08 2000 ...
Страница 2: ......
Страница 99: ......