The text of a manual · part 7 of 9
MaxiScan 3100 Fixed Station Scanner Installation Guide: Slave mode
Pages 31 to 34 of 50, from MaxiScan 3100 Fixed Station Scanner Installation Guide
The original document is the PDF (1.0 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 3100
Page 31
6 Slave mode You can control or configure your MaxiScan 3100 directly from the terminal host system using slave mode. In this mode all the setup commands can be sent directly to the MaxiScan 3100 through the RS-232 input port. The default slave 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 MaxiScan 3100. 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
This mode remains active until you switch off the MaxiScan 3100. 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 xx
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
MaxiScan 3100 - Installation Guide
31
Page 32
6 Slave mode 4. Send the setup commands from the host terminal to the MaxiScan 3100. 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 MaxiScan 3100 must receive the hexadecimal value 41 or its equivalent (ASCII character “A” for example), not the decimal value “41”. To restart the MaxiScan 3100 after changing the interface configuration, send the "restart" command 0x68 0x4C 0x41 0x60 0x53 0x6A (this is equivalent to deconnecting and reconnecting the MaxiScan 3100).
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 MaxiScan 3100. 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 : w eight :
startB
0x41
0x4C
0x60
1
1
2
3 w eight * 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
32
MaxiScan 3100 - Installation Guide
Page 33
6 Slave mode
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 MaxiScan 3100. 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
3. Send the commands in ASCII format from the host terminal to the MaxiScan 3100. To save the new configuration, send the "update current configuration" command to the MaxiScan 3100 (\46\41\02\60).
MaxiScan 3100 - Installation Guide
33
Page 34
6 Slave mode
34
MaxiScan 3100 - Installation Guide