3 command communication, Setting communication strings – KEYENCE BL-180 User Manual
Page 67

4.3 Command Communication
59
Setting Communication strings
To set communication strings, send the following command.
Example 1: Set the communication data format to SOH 01 Bar Code Data ACR .
Example 2: Set the read error code to “BR”.
Example 3: Set no read error code.
Utility Setting (Buzzer, OK/NG output duration, Preset data for compare)
To register the preset data, send the following command.
Example: Register “ABC123” as preset data.
WP68ABC123CR
Function
command being sent
Response
Description
Error
Code
Setting header
Change
WP51hhh...
OK
hhh...= Header (Up to 5 characters)
* Specify characters in HEX (hexadecimal) code.
* To set no header, hhh...=FF.
00, 02
05, 06
10, 12
14
Confirm
RP51
51hhh...
Setting delimiter
Change
WP52hhh...
OK
hhh...= Delimiter (Up to 5 characters)
* Specify characters in HEX (hexadecimal) code.
* To set no delimiter, hhh...=FF.
Confirm
RP52
52hhh...
Setting partition mark when
additional information is used.
Change
WP50hh
OK
hh= Partition mark(1 character)
* Specify the mark in HEX (hexadecimal) code.
* To set no mark, hh=FF.
Confirm
RP50
50hh
Setting intermediate delimiter
when multi label reading
mode 2 or 3 is used.
Change
WP54hhh...
OK
hhh...=Intermediate delimiter (Up to 5 charac-
ters)
* Specify characters in HEX (hexadecimal) code.
* To set no intermediate delimiter, hhh...=FF.
Confirm
RP54
54hhh...
Setting read error code
Change
WP55hhh...
OK
hhh...= Read error code (Up to 8 characters)
* Specify characters in HEX (hexadecimal) code.
* To set no read error code, hhh...=FF.
Confirm
RP55
55hhh...
Note
WP51013031CR
0
0
SOH
WP52410DCR
CR
A
SOH=01h, 0=30h, 1=31h, A=41h, CR=0Dh
WP554252CR
R
B
B=42h, R=52h
WP55FFCR
Function
command being sent
Response
Description
Error
Code
Setting buzzer
Change
WP15n
OK
n= 0: on
1: on when OK output turns on.
2: on when NG output turns on.
3: off
00, 02
05, 07
14
Confirm
RP15
15n
Setting OK/NG output duration Change
WP40nnn
OK
nnn= 001 to 255
(by 10 ms step)
00, 02
05, 09
14
Confirm
RP40
40nnn
Registration of preset data for
compare
Change
WP68aaa...
OK
aaa...= Preset data (Up to 32 characters)
* For CODE128, see page 70.
* To delete the preset data, send WP68.
00, 02
05, 12
13, 14
17, 18
Confirm
RP68
68aaa...
Note