5 Setup
22
MaxiScan 1000 - Integration Guide
Slave mode
You can control or configure your M1000 directly from the terminal host system using
the slave mode. In this mode all the setup commands available as configuration
barcodes can be sent directly to the M1000 through the RS-232 input port. The default
mode is security slave mode.
•
Security slave mode is based on Code 128. It includes start/stop characters and
a checksum described in the document AFNOR Z63.300/EN 799 /USS.
•
Debug slave mode is easy to monitor but less secure than the security mode (no
start/stop characters or checksum).
Security slave mode
1. Find the data string and checksum of the setup commands you want to send to
the M1000. Activate the "display data string mode" to display the data string and
checksum on a terminal screen (or calculate the checksum yourself, see the
Calculating the checksum
section below)
display data string
\46\4E\60
This mode remains active until you switch off the M1000.
Example: command "Code 39 – active" = \41\4C\60\5E (5E = checksum)
2. Remove the backslash separator characters from the data strings and adapt
each string to the security slave mode format:
start
command
checksum
stop
0x68
x...x
x x
0x6A
Example: command "Code 39 – active" = 68 41 4C 60 5E 6A
3. Activate the security slave mode (if not already active) and set the RS-232 output
parameters to suit your system (if required)
security slave mode (9600, 7, E, 2) – interface n° 105
\41\4A\01\29\60
4. Send the setup commands from the host terminal to the M1000.
Note: the values displayed in "display data string mode" are hexadecimal values,
make sure that the values you send from the host system correspond to these
values. In our example, the M1000 must receive the hexadecimal value 41 or its
equivalent (ASCII character "A" for example), not the decimal value "41".
To save the new configuration, send the "update current configuration" command to
the M1000 (0x68 0x46 0x41 0x02 0x60 0x4C 0x6A).