The text of a manual · part 4 of 8
SCANTEAM 3700 CCD Technical Manual, pages 31 to 40
Pages 31 to 40 of 76
The original document is the PDF (454 KB). 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 HHP ST3700
Page 31
4.4
Configuration Commands Fifteen configuration commands recognized by the SCANTEAM 3700 are: Ka – sets communication port Kd – sets preamble Ke – sets postamble Kf – sets communications protocol Kg – sets trigger mode Kh – sets read timeout Kk – sets no read message Km – sets votes Kp – sets Code 39 Kq – sets Codabar Kr – sets I 2 of 5 Ks – sets UPD A/E and EAN 8/13 Kt – sets Code 128 Ku – sets beeper mode Kv – scan rate Explanations and ASCII characters for the configuration commands follow. Note:
The commands in this section are shown in ASCII format only. Refer to Appendix D for an ASCII conversion chart.
Format for a Configuration Comand <K mode_global , mode_port_1 , mode_port_2>
(2)(3)
(4)
(5) (1)
(1) Configuration commands start with “<” and end with “>.” (2) Configuration commands include “K” as the start of the command text string. The “K” must be upper case. (3) The next letter in the command string defines the function and must be lower case. (4) Where applicable, the “mode_global” portion of the command defines the selection for the particular command (for both scanner inputs) unless specified otherwise in the following mode portions of the command.
Note:
(5) “Mode_port_1” and “mode_port_2” refer to the configuration for the particular scanner input. The 3700 CCD is port 1, and so is controlled by Mode 1. A second (optional) external digital scanner input is configured as Mode 2. Default configuration indicated by asterisk “*” following default configuration. Default options (if applicable) will follow in parenthesis.
(6) No more than five (5) seconds may pass between keystrokes or the decoder will not recognize the command as a single string of characters. (7) If an incorrect keystroke is entered, end the string with a “>” and enter the string over from the beginning.
Configuring the SCANTEAM 3700
4–5
Page 32
Set Communications Port Command Ka COMMAND
<Ka baud, parity, stop bits, data bits>
Parameter ASCII Option Baud
Parity
Stop Bits Data Bits
0 1 2 3 4 5 6 0 1 2 0 1 0 1
600 1200 2400 4800 9600 * 19,200 38,400 none even * odd one * two seven * eight
Sending the configuration command Ka sets the communications port parameters. Baud rate, parity, stop bits and data bits may be selected. For example, if you wanted to set the baud rate to 2400, the parity to none, the stop bits to two, and the data bits to eight; you would send the following command: <Ka 2, 0, 1, 1>. If you only wanted to set the baud rate to 4800, leaving the other parameters unchanged, you could send the following abbreviated command: <Ka 3>. If you only wanted to set the stop bits to two, leaving the other parameters unchanged, you could send the following command: <Ka , , 1>. The default setting is 9600 baud, even parity, one stop bit, and seven data bits. Tip:
4–6
The Ka command does not become effective until the 3700 is reset. Since reset causes the 3700 to use the configuration saved in non–volatile memory, the Ka command should be followed by a Save Configuration command <Z> and a Reset command <A>.
Configuring the SCANTEAM 3700
Page 33
Set Preamble Command Kd COMMAND
<Kd enable, data>
Parameter ASCII
Option
Enable no yes * (Port ID, Code ID) one to four ASCII characters
0 1
Data
Sending the configuration command Kd sets the preamble characters. The preamble option may be enabled or disabled; if enabled, up to four preamble characters may be defined. Any ASCII character can be specified except NUL, ACK, NAK, DC1, DC2, DC3, DC4 or DEL. The character SUB should only be used as the first character in a pair, with the second character being either a 1 or a 2. SUB 1 causes the 3700 to include the Port ID in the preamble, while SUB 2 specifies that the Code ID should be included. Table 4.1 lists the Code ID values. The default setting is preamble enabled, Port ID and Code ID characters sent with data strings. Tip:
When character pairs SUB 1 and SUB 2 are specified in the preamble, the SUB characters are not counted toward the maximum number of ASCII characters allowed (four).
Code ID Value
Definition a
Codabar b
Code 39 e
Interleaved 2 of 5 j
Code 128 c
UPC d
EAN
SPACE
No code
Table 4.1 SCANTEAM 3700 Code ID Values
Configuring the SCANTEAM 3700
4–7
Page 34
Set Postamble Command Ke COMMAND
<Ke enable, data>
Parameter ASCII
Option
Enable no yes * (CR, LF) one to four ASCII characters
Data
0 1
Sending the configuration command Ke sets the postamble characters. The postamble option may be enabled or disabled; if enabled, up to four postamble characters may be defined. Any ASCII character can be specified except NUL, ACK, NAK, DC1, DC2, DC3, DC4 or DEL. The character SUB should only be used as the first character in a pair, with the second character being either a 1 or a 2. SUB 1 causes the 3700 to include the Port ID in the postamble, while SUB 2 specifies that the Code ID should be included. Port ID is always 1. Table 4.1 lists the Code ID values. The default setting is postamble enabled, CR and LF characters sent with data strings. Tip:
4–8
When character pairs SUB 1 and SUB 2 are specified in the postamble, the SUB characters are not counted toward the maximum number of ASCII characters allowed (four).
Configuring the SCANTEAM 3700
Page 35
Set Communications Protocol Command Kf COMMAND
<Kf mode>
Parameter ASCII Option Mode
0
Disable RTS/CTS * Disable XON/XOFF * Disable ACK/NAK *
Mode
1
Enable RTS/CTS Disable XON/XOFF Disable ACK/NAK
Mode
2
Disable RTS/CTS Enable XON/XOFF Disable ACK/NAK
Mode
3
Enable RTS/CTS Enable XON/XOFF Disable ACK/NAK
Mode
4
Disable RTS/CTS Disable XON/XOFF Enable ACK/NAK
Mode
5
Enable RTS/CTS Disable XON/XOFF Enable ACK/NAK
Mode
6
Disable RTS/CTS Enable XON/XOFF Enable ACK/NAK
Mode
7
Enable RTS/CTS Enable XON/XOFF Enable ACK/NAK
Sending the configuration command Kf sets the communications protocol. The default setting is Mode 0, with RTS/CTS, XON/XOFF, and ACK/NAK disabled.
Configuring the SCANTEAM 3700
4–9
Page 36
Set Trigger Mode Command Kg COMMAND
<Kg mode_global, mode_port_1, mode_port_2, #>
Parameter ASCII Option Mode Mode Mode Mode Mode Mode
0 1 2 3 4 5
Continuous Read Continuous Read, Send Once, Clear on Timeout External Trigger, Read While Active External Trigger, Read Once Serial Trigger Serial Trigger or External Trigger, Read Once *
Sending the configuration command Kg sets the trigger mode. The command string is interpreted left to right. For example, if you send the following command: <Kg 4, 0>, both ports will be set to mode 4, then port 1 changes back to mode 0. Likewise, if you send the following command: <Kg , 0, 4>, port 1 is set to mode 0 and port 2 is set to mode 4. Both commands have the same end result; port 1 will be in continuous read mode and port 2 will be in serial trigger mode. The default setting is Mode_global 5, selecting a serial trigger or an external trigger, one read. Tip 1: Careful consideration must be taken when configuring multiple ports to a continuous trigger mode. The 3700 decodes from only one port at a time. With multiple ports triggered, the 3700 will select each in turn and attempt to read. If no bar code label is present at the selected port, the 3700 will wait for read timeout to expire before stepping to the next port. If read timeout is set to a value near or greater than the time it takes a bar code label to pass by a scanner, then the label will often be missed.
Set Read Timeout Command Kh COMMAND
<Kh mode_global, time_global, mode_port_1, time_port_1, mode_port_2, time_port_2, #, #>
Parameter ASCII
Option
Mode Time
Timeout Ends a Read Attempt * (150) one to five ASCII digits, range of 10 to 65000
0
Sending the configuration command Kh sets the read timeout. One to five ASCII digits in the range of 10 to 65,000 determine the number of 10ms increments of time that the 3700 will, once triggered, wait while attempting to read from a port. For example, if you wanted to set port 1 to timeout ends a read attempt after 100ms; you would send the following command: <Kh , , 0, 10>. Port 2 is not changed. The default setting is Mode_global 0 and Time_global 150 (150 x 10 msec = 1.5 seconds).
4–10
Configuring the SCANTEAM 3700
Page 37
Set No Read Message Command Kk COMMAND
<Kk enable, data>
Parameter ASCII
Option
Enable no yes * (NR) one to seven ASCII characters
0 1
Data
Sending the configuration command Kk sets the no read message. Any ASCII character can be specified except NUL, ACK, NAK, DC1, DC2, DC3, DC4 or DEL. The default setting is NR (no read). Tip:
The No Read Message is not sent for scanner ports that are configured for a continuous trigger mode.
Set Votes Command Km COMMAND
<Km data_global, data_port_1, data_port_2, #>
Parameter ASCII
Option
Data one or two ASCII digits range of 1 to 31 * (3, 1)
Sending the configuration command Km sets the votes. One or two ASCII digits in the range of 1 to 31 determine the number of consecutive identical decodes required for a valid read. A selection of 1 means that no voting will take place. The default setting is Data_port_1, 3 and Data_port_2, 1, which means voting is set to 3 for port 1 and set to 1 for port 2. Tip:
When using the voting feature for additional decode security, a value of three is generally adequate in most applications.
Configuring the SCANTEAM 3700
4–11
Page 38
Set Code 39 Command Kp COMMAND
<Kp enable, require checksum, send checksum, minimum length, maximum length>
Parameter
ASCII Option
Enable
0 1 0 1 0 1
Require Checksum Send Checksum Minimum Length Maximum Length no yes * no * yes no * yes Set from 1 to 48 * (1) Set from 1 to 48 * (48)
Sending the configuration command Kp sets Code 39 and all its parameters: enable/disable, require checksum, send checksum, minimum length, and maximum length. The default setting is Code 39 enabled, doesn’t require or send checksum, minimum length 1, and maximum length 48. Set Codabar Command Kq COMMAND
<Kq enable, send start/stop, minimum length, maximum length>
Parameter
ASCII Option
Enable
0 1 0 1
Send Start/Stop Minimum Length Maximum Length no yes * no yes * Set from 1 to 60 * (6) Set from 1 to 60 * (60)
Sending the configuration command Kq sets Codabar and all its parameters: enable/disable, send start/stop, minimum length, and maximum length. The default setting is Codabar enabled, send start/stop, minimum length 6, and maximum length 60.
4–12
Configuring the SCANTEAM 3700
Page 39
Set I 2 of 5 Command Kr COMMAND
<Kr enable, require checksum, send checksum, minimum length, maximum length>
Parameter
ASCII Option
Enable
0 1 0 1 0 1
Require Checksum Send Checksum no * yes no * yes no * yes Set from 2 to 80 * (6) Set from 2 to 80 * (80)
Minimum Length Maximum Length
Sending the configuration command Kr sets I 2 of 5 and all its parameters: enable/disable, require checksum, send checksum, minimum length, and maximum length. The default setting is I 2 of 5 disabled, doesn’t require or send checksum, minimum length 6, and maximum length 80. Tip 1: To require a fixed length, set the minimum and maximum lengths to the same value. Tip 2: An Interleaved 2 of 5 symbol must always have an even number of characters encoded in it. However, if you have configured the 3700 to require a checksum but not send the checksum, the 3700 will reduce the number of characters output by one to an odd value. The minimum and maximum lengths will be checked after the checksum is removed and so must be set to allow a symbol length that is one less than actually encoded in the label to be read.
Set UPC A/E, EAN 8/13 Command Ks COMMAND
<Ks enable UPC, enable EAN>
Parameter
ASCII Option
Enable UPC
0 1 0 1
Enable EAN no yes * no yes *
Sending the configuration command Ks sets UPC A/E and EAN 8/13 to enable or disable. The default setting is UPC A/E and EAN 8/13 enabled.
Configuring the SCANTEAM 3700
4–13
Page 40
Set Code 128 Command Kt COMMAND
<Kt enable, minimum length, maximum length>
Parameter
ASCII Option
Enable
0 1
Minimum Length Maximum Length no yes * Set from 1 to 80 * (1) Set from 1 to 80 * (80)
Sending the configuration command Kt sets Code 128 and all its parameters: enable/disable, minimum length, and maximum length. The default setting is Code 128 enabled, minimum length 1, and maximum length 80. Set Beeper Mode Command Ku COMMAND
<Ku mode_global, mode_port_1, mode_port_2, #>
Parameter ASCII Option Mode Mode Mode
0 1 2
Disable beeper * Enable beeper on valid read Enable beeper on failed read
Sending the configuration command Ku sets the beeper mode. For example, if you wanted to enable the beeper for good reads on port 1; you would send the following command: <Ku , 1>. The default setting is Mode_global 0, with beeper disabled. Set Scan Rate Command Kv COMMAND
<Kv rate, reserved, reserved>
Parameter ASCII Option Rate Rate Rate
0 1 3
50 scans per second 100 scans per second 200 scans per second
The Kv command has been retained in the 3700 for compatibility with the SCANTEAM 3600, but the 3700 scan rate is fixed at the time of manufacture and cannot be changed by the Kv command. The <Kv?> status request (see next section) will report the scan rate setting.
4–14
Configuring the SCANTEAM 3700