105
V500-R521B2/C2
User’s Manual
Sec
tion
5
How to Use Command
L
in
k
Un
it
V7
00-
L1
2
Section 5
Example of System Configuration
Command specification
Command to control the link unit (in case of one-to-N procedure dedicated to OMRON)
is explained in this section. Transmit so that distance between each character of the
command is less than 200 ms. When the distance is 200 ms or more, it is recognized
as separation of commands.
Item
Description
SOH (Start Of Header)
Control code ($01) indicating the head of a frame
Machine No.
Machine No. (1 to 32, 99) set with the DIP-SW. When the machine No. is 99,
all units are regarded as own machine.
Bar code reader and
communication data
Upper equipment > link unit
Command data to transmit to the bar code reader. However, in case when the
first character is DLE (10 h), it is handled as link unit process command
defined by the next character.
• P (50 h): Polling (Invalid in case of through procedure)
• R (52 h): Resend request
• C (43 h): Buffer clear
Link unit > Upper equipment
Response data from the bar code reader
Check code
2 characters of 8-bit from the character immediately after SOH to immediately
before the check code, removing each exclusive OR (ExOR) which is
converted to ASCII code.
E.g.: In case of [SOH]01020000000600 (check code) [CR]
Check code = "05"
30h (ExOR) 31h (ExOR) 30h (ExOR) 32h (ExOR) 30h (ExOR) 30h (ExOR) 30h
(ExOR) 30h (ExOR) 30h (ExOR) 30h (ExOR) 30h (ExOR) 36h (ExOR) 30h (ExOR)
30h = 05h
(ASCII conversion)
↓
"0" (30h) "5" (35h)
CR (Carriage Return)
Control code ($0D) indicating the end of a frame
Communication data with the bar code reader
Machine No.
$01
SOH
CR
Check code
Designation of link unit process (DLE) command
V500-R521.book 105 ページ 2008年7月18日 金曜日 午後1時1分