Datalogic Scanning DS1100 SH2347, DS2200 SH2348 Serial Commands, General Serial Command Format

Page 39

Serial Commands

General Serial Command Format

Serial Commands are only accepted by the PSC scanner when in serial communications mode.

Serial commands take the form: STX ESC LT1 LT2 <optional param-

eters>ETX (Note: STX = ^B; ETX = ^C)

STX, ESC, and ETX are ASCII codes whose values are 02H, 1BH, and 03H, respectively. LT1 and LT2 are uppercase ASCII letters (commer- cial A and @ are the same as those printed in earlier sections of this manual under their corresponding menu bar code labels). The ESC code that follows the STX code identifies this as a command. Some commands require parameters such as minimum and maximum code lengths, and strings of hexadecimal characters. When parameters are required by the command, they immediately follow LT2. There are never spaces within serial commands.

ACK/NAK

The scanner provides ACK/NAK protocol during serial program- ming in order to provide feedback to the host computer which is pro- gramming the scanner.

ACK/NAK protocol provides two vital functions. First, it provides the host with positive acknowledgment that its commands are being accepted and acted upon. Second, and perhaps more important, it ensures that the host will not issue commands to the scanner more quickly than the scanner can process them. For example, every time the scanner receives a correct command, it modifies its internal EEPROM, a function that takes about one second. At 9600 baud, the host can easily issue commands to the scanner faster than they can be processed. If after issuing each command the host waits to receive an ACK or NAK code before issuing the next command, the scanner cannot be overrun. If XON/XOFF or CTS/RTS Protocol is being used, the scanner cannot be overrun by programming commands. How- ever, the host is not provided with feedback as to the outcome of its commands.

The ACK/NAK protocol is quite simple. Whenever the scanner receives a correctly formatted command, it sends a confirmation mes- sage followed by an ACK (06H) code.

06656

31

Image 39
Contents User’s / Programming Guide Disclaimer PSC IncPage Page Table of Contents Wand Emulation Parameters Serial CommandsKeyboard Wedge Parameters Symbologies Message FormattingTechnical Support IiiMemory Module Scanner LabelingUser’s / Programming Guide Introduction Keyboard Wedge InstallationCable Installation UnpackingScanning Reset to Default ZA will cause the PSC scan Connecting the Power SupplyConnecting a Magnetic Stripe Reader Terminal Power-Up SequenceSerial TTL Mode Serial RS232 ModeSerial Communications AutoSense Operation Scanner holder Stand base Enable AutoSense Disable AutoSenseCode Type = Same Code Wand Emulation Enable Wedge Enable Serial ModeWand Emulation Operation Same Code Wand EmulationSetup Overview Wedge Mode OptionsWand Emulation Options Stop Bits Serial Communication and Wedge OptionsData Synchronization Baud Rate Protocol ParityVice representative SymbologiesCode Interleaved 2 Standard 2 Codabar CodeBeeper On Volume Low Parameters Selection GuidelinesExamples User’s / Programming Guide Select Serial Output Reset DefaultSerial Communication Baud RateData Transmission Bit Options Data Stop Bits ParityOdd Even Mark Space Mark Space Inverted Serial Communications Bit, No ParityCommunications Protocol NoneCTS Disable Stop/Go Protocol Enable Stop/Go Protocol Full Buffering No Buffering One Label Buffering Enable No Read Disable No ReadLabel Buffering No Read OptionExternal Trigger Operation Menu Commands Parameter MessagesEnable Parameter Messages Disable Parameter Messages Disable External Trigger#*@ External Trigger+External Trigger Intercharacter DelayNo interlabel delay *@ Set interlabel delay 0-9.9 seconds General ParametersSystem Status Transmission ModeLaser Redundancy Power ConsumptionDisplay Configuration Enable Continuous@ Full Power Enable Standby *#Beeper Operation Laser TimeoutEnable 4 Times Laser Redundancy Beeper Off Beeper On Volume LowProgrammable options do not apply in Wand Emu Lation Beeper On Volume Medium Beeper On Volume Loud *#@Message Formatting Prefixes and SuffixesPrefix SuffixPrefix = None*# Prefix = STX Prefix = SOH Terminal ID Select Suffix = ETB NUL Suffix = CR and LFCode Identifier Characters Code Identifier0,0 hexadecimal Preamble or Postamble SelectionPreamble PostambleUser’s / Programming Guide General Serial Command Format Serial CommandsCommand Function Enable I 2 of 5 with check digitBeeper Off CR-LF Ack Power Standby and Serial Commands Communication Parameter ChangesManual Scanning Interaction Keyboard Wedge Parameters Wedge Mode Enable @06656 User’s / Programming Guide Explained in Appendix a Symbologies Disable UPC both a and EUPC a and E Disable Expanded UPC-E *#@ Enable Expanded UPC-E User’s / Programming Guide Disable UPC-E Enable transmissionof UPC-E check digitEAN/JAN Disable EAN/JAN 8 or 13 Digit #@Disable EAN-8 independently Code Disable CodeDo Not Xmit Start and STOP*#@ Transmit Start and Stop Following are only valid if CHK Char is enabledDisable Interleaved Code 2 of 5*#@ Code 2 of 5 InterleavedMaximum Length I 2 of 5 specified by two digits Code 2 of 5 Standard Minimum Length specified by two digits Enable Code 128 *#@Disable Codabar *#@ Enable CodabarMaximum Length specified by two digits Enable Transmission of START/ Stop CharacterMSI/Plessey Enable Code Standard Code 16K Enable 16K Code Disable 16K CodeDigit Selection Symbol Function Symbology Identifiers06656 Bology identifiers Programming SymbolMSI/Plessey Symbology IdentifiersEAN-13 Code Standard 2/5 CodeTransmission Rate Wand Emulation ParametersSelect Code Type Bar Code PolarityInches per second# Data Synchronization Disable Data # Synchronization Enable Data SynchronizationActive # Polarity High Active Polarity Low Memory Module Disable Memory Module*# Enable Memory Module SetupMarker Beam Enable Marker Beam Disable Marker Beam06656 Service and Warranty Scanner LabelingHazardous visible light exposure Maintenance CleaningInspection Telephone Technical Support Technical SupportPSC Website Support PSC Website TekForum Reseller Technical SupportHexadecimal Conversion Table Appendix aPart a Part B Ascii HEX Function Primary Function Key TablePC/AT, PC/XT, IBM 3151, and IBM PS/2 Model 57/25 Secondary Function Key TablesIBM 3171/3181/3191 and IBM VT220/320/420 Apple MacIntosh 06656 User’s / Programming Guide Declaration of Conformity PSC Inc