3. Terminal / cash register used in your application predefined terminal selections
22
ScanPlus 1800 - Installation Manual
slave mode (9600, 7, E, 2)
\41\4A\01\29\60
- for RS-232 C and RS-232 TTL with logical 0 = 0V
- allows the ScanPlus 1800 to be configured or controlled directly by the host system via
the RS-232 serial port
- optimized high-security Code 128 transmission (start/stop, hexadecimal characters,
checksum)
1. use "display data string mode" (see section 7 "Configuration modes and utilities") to
display on a terminal screen the data string and checksum for the setup commands you
want to send to the ScanPlus 1800 in slave mode (the EasySet "View - Data String"
command displays the command data strings but does not display the checksum !)
Example: "Code 39 - active" = \ 41 \ 4C \ 60 \ 5E ("5E" = checksum)
Calculating the checksum
1. Calculate the weighted sum of the data string values (weight increases by 1 for each
successive value) and include startB with weight 1 at the beginning :
data string :
startB 0x41 0x4C 0x60
weight :
1123
weight * value :
(1 * 0x68) + (1 * 0x41) + (2 * 0x4C) + (3 * 0x60) = 0x261
2. Calculate the modulo 103 value (modulo 67 hex) of the sum:
0x261 modulo 0x67 = 0x5E (= checksum)
(0x261 / 0x67 = 0x5 with remainder 0x5E)
3. Add the checksum to the data string
Example: "Code 39 - active" = \41\4C\60\5E
2. remove the backslash separator characters from the data strings and adapt each string
to slave mode format :
<start> <command> <checksum> <stop>
< 6 8 > x x x x x x x x < 6 A >
Example: slave mode command = 68 41 4C 60 5E 6A