The text of a manual · part 4 of 14
SnapShot Bar Code Laser Scanners User's Guide for Decoded Models: Programming the Percon SnapShot, pages 26 to 34
Pages 26 to 34 of 118, from SnapShot Bar Code Laser Scanners User's Guide for Decoded Models
The original document is the PDF (2.2 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 PSC Snapshot and Datalogic Snapshot
Page 26
(- - '
UPC-A 0 ENABLE=1 1 TRANSMIT SYSTEM DIGIT=1 2 TRANSMIT CHECKSUM=0 3 CONVERT UPC-A TO EAN-13=0 UPC-E 4 SYSTEM DIGIT 0 ENABLE=1 5 SYSTEM DIGIT 1 ENABLE=1 6 CONVERT UPC-E TO UPC-A=0 7 TRANSMIT SYSTEM DIGIT=0 8 TRANSMIT CHECKSUM=0 EAN/JAN 9 EAN/JAN-8 ENABLE=1 A EAN/JAN-13 ENABLE=1 B CONVERT EAN-13 TO ISBN=0 F TRANSMIT EAN/JAN CHECKSUM=1 EXTENSIONS C ALLOW 2 DIGIT EXTENSIONS=1 D ALLOW 5 DIGIT EXTENSIONS=0 E REQUIRE EXTENSIONS=0 (0-E):
6 - -
A ENABLE UPC-A (0¦1):
% -
Page 27
Displaying and Printing Current Settings
N O TE
To leave on-screen programming without saving any changes, type EF at the main-menu prompt and press Enter.
8. When you are finished checking or changing parameter settings, type EE at the main-menu prompt and press Enter. This will save your changes and exit on-screen programming.
9. If you are working in DOS, press Ctri+Z to return to the DOS prompt.
Displaying and Printing Current Settings
While you are in on-screen programming mode, you can display the current settings for all the parameters. At the main menu prompt, type E and press Enter, and then type D and press Enter again. At the next prompt, type 1 and press Enter. A list of all the parameters will appear on your screen. To pause the display of the list at any time, press the Pause key on your keyboard; then press any key to continue the display.
If you are using a text editor, you can use commands in the editor’s menu to print the list of settings or save it to a file. If you are working from the DOS prompt, you can also save or print the list of settings. To print or save the list, follow steps 1 through 9 above, with the following changes in step 2:
_} To print the list, use the following command: copy con prn.
_} To save the list as a file, use the following command: copy con filename, replacing filename with the name you want to use for the file.
Percon SnapShot User’s Guide 21
Page 28
Programming the Percon SnapShot
Serial Batch Programming
The serial batch method of programming involves creating an ASCII file of programming commands and then transmitting the ASCII file to the Percon Snap- Shot. Create the file in DOS or a text editor (Microsoft Notepad, for example), and download it to the computer with a communications program (Procomm or Hyperterminal, for example). The SnapShot must be connected to a serial port on the host computer, and its serial parameter settings must match the host's settings. The SnapShot'’s setting for start-program enable (I.D. #BO) must be either 01 or 03.
Follow these guidelines when creating ASCII files for serial batch programming:
__} The first line of the file must begin with $+$-. This is the SnapShot’s “trigger” to enter programming mode.
L) Valid characters for the first character in a line (except the first line) are programming variables or a semicolon.
_} A semicolon as the first character in a line indicates the beginning of a comment. A semicolon anywhere else in a string is treated as a normal character. An end-of-line character (CR or CR/LF) marks the end of the comment. (Comments contain information useful to you or anyone else reading the file. They have no effect on the SnapShot.)
(_} Data must appear in a line in a specific order: the programming |.D. number for the parameter followed by a value for the parameter setting. If the parameter type is a string, the string characters must be followed by two slashes (//) to terminate the string. (You can use strings as values for preambles, postambles, and extra fields in input editing.)
L) You must enter control or “action” characters (for example, tabs, line feeds, or function keys) as a “mnemonic” word enclosed in parentheses (see appendix B). For example, to enter a horizontal tab, you would type (TABR).
L) The file must end with EE followed by an end-of-line character (CR or CR/LF) for the programming changes to be saved and the SnapShot to exit programming mode.
22 Percon SnapShot User’s Guide
Page 29
$+$;This is a file example with comments ;The first line started programming mode ;Use predefined default D0 D0 ;Enable Code 39--00 is Code 39 enable/disable, ; 1 = enable 001 ;Set Code 39 minimum length (01) TO 4 (04) 0104 ;Set postamble (B7) to a right tab B7(TABR)// ;Save changes and exit programming mode EE
-
-
$+$-D00010104B7(TABR)//EE
-
- - - -
-
- 7 7
Page 30
Programming the Percon SnapShot
BaAub RATE (I.D. #C1) This parameter determines the communication speed. The setting you use for the SnapShot must match the setting that the host uses.
DarA Bits (1.D. #C2) This parameter specifies the number of data bits in each character.
Parity (I.D. #C3) This parameter specifies the parity of the data characters.
Stop Bits (I.D. #C4) This parameter selects the minimum space between data characters.
XON/XOFF HANDSHAKING (I.D. #C5) This parameter is used for software data-flow control. The host can send the Xon character (ASCII 11h) to allow transmission and send the Xoff character (ASCII 13h) to stop transmission.
PROTOCOL (I.D. #CA) This parameter specifies the format of the data records (groups of data characters) transmitted and received.
In EOR-only protocol, a record consists of data characters followed by the end-of-record (EOR) character. (The Xon/Xoff command characters are received with no EOR character appended.) When the protocol parameter is set to 00 (EOR only), the data records are received according to both the EOR-character (I.D. #CC) and timeout (I.D. #CD) settings. Records received with the EOR character appended are processed immediately. If the timeout setting is between 01 and 99 (10 to 990 milliseconds), then the data is processed if either an EOR character is received or a timeout occurs.
In ACK/NAK protocol, a record consists of data characters followed by the end-of-record (EOR) character and a check character. This protocol transmits and receives ASCII ACK/NAK (ACK = 06h, NAK = 15h) characters for data integrity control.
24 Percon SnapShot User’s Guide
Page 31
Serial Programming Parameters
A data record must have an EOR character and a check character (mod 256 sum of all data characters and the EOR character) appended to be considered good. (The EOR-character setting, |.D. #CC, cannot be 00.) If the record is good, an ACK character is transmitted to inform the host that the data arrived successfully. If the record is bad, a NAK character is transmitted to the host.
If the NAK character is received or a timeout occurs, the data record is retrans-mitted. Up to ten attempts will be made. If a communications error occurs, a nine-beep error signal is issued and the SnapShot is reset.
The interfunction delay setting (I.D. #BE; the default is 00) determines the delay between the receipt of the data record and the transmission of the ACK/NAK response. The length of time the SnapShot will wait before checking for a valid record after each character is received is determined by the timeout setting. If the timeout setting is between 01 and 99, the delay is between 10 milliseconds and 990 milliseconds; if the timeout setting is 00, the delay is 2.55 seconds.
REQUIRE HosT RESPONSE (I.D. #CE) Host response records can be either host-controlled indicator records (see below) or serial batch programming records. If this parameter is set to on, the SnapShot will wait after sending a packet of data, and the host must respond with a host-controlled indicator record before the SnapShot can continue decoding.
HosT-CONTROLLED INDICATORS (I.D. #CF) Host-controlled indicator (HCI) data consists of special ASCII records either transmitted to the SnapShot through the serial communications interface or sent to the system through output redirection (see “Redirecting Output” on page 38). Turning this parameter setting to on provides the host with a method to indicate, through the serial port, the sta-tus (good or bad) of a read by changing the light-emitting diode (LED), sounding the beeper, or both. You can also use HCI to include delays between LED and beep events, visible laser feedback, and trigger disabling.
Table 3-1 lists HCl command assignments. All commands are human-readable ASCII characters. An example of a host-controlled indicator command block appears after the table.
Percon SnapShot User’s Guide 25
Page 32
Programming the Percon SnapShot
TABLE 3-1 Host-Controlled
Indicator Commands
Type Command Meaning Delay (control character D followed by a value DO No delay from 0 through 254, representing 10- D1 10-millisecond millisecond increments) delay D254 2,540-millisecond delay Beep volume (control character B followed by a BO Off value from 0 through 3) BI Low B2 Medium B3 Loud Beep tone (control character T followed by a TO 2400Hz value from 0 through 7) TH 3618Hz T2 2880Hz T3 3200Hz T4 3600Hz T5 3840Hz T6 4114Hz T7 4430Hz LED (control character L followed by a value LO Off from 0 through 2) rr Red L2 Green CTRL high/low for pin 10 on 25-pin connector CO Low (control character C followed by 0 or 1) CI High table continues
26
Percon SnapShot User’s Guide
Page 33
Serial Programming Parameters
Type Command Meaning Laser feedback (Left, Middle, and Right FO LMR segments in bold are visible)* F1 LMR *A laser feedback command must be followed by F2 LMR a delay command. For example, F5D50 will turn L the left and middle laser segments on for 500mS F3 MR (delay=50 x 10mS). The SnapShot will reject a F4 LMR command of F5. F5 LMR F6 LMR Trigger enabled/disabled 10 Enabled i Disabled
The SnapShot can receive up to 115 bytes of control data, which can be sent from the host at any time. By default, after a bar code has been read successfully, the red LED on the SnapShot lights up, the SnapShot beeps (unless the volume setting is 0), and the data is sent to the host. If the require-host-response parameter is set to on, the SnapShot will wait for the host to respond with a valid packet of data before reading additional bar code input.
The following example of a host-controlled indicator command block will set the SnapShot’s beeper tone to 3840Hz, turn the beeper on at full volume, turn the green LED on, wait 50 milliseconds, turn the green LED off, wait 50 milliseconds, turn the green LED on again, wait 50 milliseconds, turn the LED off, wait 50 milliseconds, and turn the beeper off:
T5B3L2D5LOD5L2D5L0D5BO0
Percon SnapShot User’s Guide 27