5 Setup
MaxiScan 1000 - Integration Guide
23
To restart the M1000 after changing the interface configuration, send the "restart"
command 0x68 0x4C 0x41 0x60 0x53 0x6A (this is equivalent to deconnecting and
reconnecting the M1000).
Calculating the checksum
If you do not use "display data string mode", you will have to calculate the checksum
yourself :
1. Use the EasySet "View - Data String" command to obtain the data strings for the
setup commands you want to send to the M1000.
Example: command "Code 39 – active" = \41\4C\60
2. 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 :
1
1
2
3
weight * value :
(1 * 0x68) + (1 * 0x41) + (2 * 0x4C) + (3 * 0x60)
=
0x261
3. Calculate the modulo 103 value (modulo 67 hex) of the sum:
0x261 modulo 0x67 = 0x5E (= checksum)
(0x261 / 0x67 = 0x5 with remainder 0x5E)
4. Add the checksum to the data string
Example: "Code 39 - active" = \41\4C\60\5E
Debug slave mode
1. Use the EasySet "View - Data String" command to obtain the data strings for the
setup commands you want to send to the M1000.
Example: command "Code 39 – active" = \41\4C\60
If you use "display data string mode" (see above), do not use the last 2 digits
(checksum).
2. Activate the debug slave mode (if not already active) and set the RS-232 output
parameters to suit your system (if required).
debug slave mode (9600, 7, E, 2) – interface n° 109
\41\4A\01\2D\60
3. Send the commands in ASCII format from the host terminal to the M1000.
To save the new configuration, send the "update current configuration" command to
the M1000 (\46\41\02\60).