FMT1000 SeriesProgrammer’s Guide70-16674-01Revision AOctober 1995
2FMT1000 Series Programmer’s GuideKey Conventions for the FMT1000 Series Programmer's GuideKeys and key sequences are printed in <lowercase>
2-80FMT1000 Series Programmer’s GuideS28, R28 – Set and Return Code 128 ModeFormat S28 0 | 10=Off 1=On *SummaryEnables or disables the decoding of bar
2-81I/O System ProgrammingSSC, RSC – Set and Return Concatenate ModeFormatSSC 0 | 10=Off * 1=OnSummarySelects whether to concatenate bar codes or not.
2-82FMT1000 Series Programmer’s GuideSSM, RSM – Set and Return String Match LengthFormat SSM <0-80>0=Off (no length matching)Min length for matc
2-83I/O System ProgrammingSSB, RSB – Set and Return Read Beep EnableFormat SSB 0 | 1 0=Off 1=On*Summary Enables or disables a beep upon successful dec
2-84FMT1000 Series Programmer’s GuideSPE, RPE – Set and Return Peripheral Port EnableFormat SPE 0 | 10=Off 1=On *Summary Enables or disables transmiss
2-85I/O System ProgrammingSystem CommandsThe system commands include commands for controlling the keyboard and display and various other internal func
2-86FMT1000 Series Programmer’s GuideThe following are miscellaneous other commands:SKR, RKR Set and Return Keyboard Repeat 2-98SKC, RKC Set and Retu
2-87I/O System ProgrammingSIT, RIT – Set and Return Internal Command Response TagFormatSIT <string> Length: 1Summary Sets a unique ID tag to pre
2-88FMT1000 Series Programmer’s GuideSIP, RIP – Set and Return Internal Command Response PrefixFormat SIP <string> Max length: 16Summary Sets th
2-89I/O System ProgrammingSIS, RIS – Set and Return Internal Command Response SuffixFormatSIS <string> Max length: 16Summary Sets the string to
1-1Chapter 1 FMT1000 ArchitectureIntroductionThe FMT1000 Series includes three models:•the compact FMT1020•the rugged FMT1040•the FMT1060 for time cl
2-90FMT1000 Series Programmer’s GuideSEI, REI – Set Internal Command Response AutoEnter ModeFormat SEI <0-3> 0=Off * 1=CR (carriage return) 2=CR
2-91I/O System ProgrammingSRI, RRI – Set and Return Internal Command Response PathFormat SRI 0 | 1 0=Keyboard *1=COM2 host portSummary Sets the intern
2-92FMT1000 Series Programmer’s Guide SBL, RBL – Set BacklightFormat SBL <0-2>0 = Off 1 = On2 = Automatic *Summary Sets the LCD display backligh
2-93I/O System ProgrammingSVA, RVA – Set and Return Viewing AngleFormat SVA <0-100>Summary Sets the viewing angle for the LCD display.This setti
2-94FMT1000 Series Programmer’s GuideSAD, RAD – Set and Return Keyboard Auto DetectFormatSAD 0 | 1 0=disable auto detect 1=enable auto detect*Summary
2-95I/O System ProgrammingSKH, RKH – Set and Return Keyboard Hardware Reset EnableFormat SKH 0 | 10=Off1=On *Summary This key combination enables or d
2-96FMT1000 Series Programmer’s GuideSKE, RKE – Set and Return Keyboard Enable ModeFormat SKE 0 | 1 0=Off 1=On *Summary Enables or disables the keyboa
2-97I/O System ProgrammingSKT, RKT – Set and Return Keyboard TypeFormat SKT <0-4> 0=FMT1020 QWERTY * 1=FMT1020 Alpha-numeric 2=FMT1020 Numeric3=
2-98FMT1000 Series Programmer’s GuideSKR, RKR – Set and Return Keyboard RepeatFormat SKR 0 | 1 0=Off 1=On *Summary Enables or disables key repeat for
2-99I/O System ProgrammingSKC, RKC – Set and Return Keyboard ClickFormat SKC 0 | 10=Disabled 1=Enabled*SummaryEnables or disables the click speaker so
1-2FMT1000 Series Programmer’s Guideinformation coming from I/O devices, either by using the keyboard port, making the data appear as though it had be
2-100FMT1000 Series Programmer’s GuideSCD, RCD – Set and Return Keyboard Intercharacter DelayFormatSCD <0-255>SummarySets the delay in tens of m
2-101I/O System ProgrammingSnD, SnU – Set User Defined Key Up and Down Scan Codes RnD, RnU – Return User Defined Key Up and Down Scan CodesNote:n = 1,
2-102FMT1000 Series Programmer’s GuideExample (SnD and SnU):To implement <control><break> on UDK1, the following commands would be used:Im
2-103I/O System ProgrammingRVR – Return Firmware VersionFormat RVRSummary Returns the current firmware revision level of the I/O coprocessorReturns A
2-104FMT1000 Series Programmer’s GuideSFD – Reset to Factory DefaultsFormat SFDSummary Resets I/O configuration parameters to their factory defaults.R
2-105I/O System ProgrammingSEE – Write Setup to EEPROMFormat SEESummary Writes the I/O configuration data to the EEPROM.Returns Single beep if success
2-106FMT1000 Series Programmer’s GuideRER – Return Error CodeFormat RERSummary Returns an error code relating to the last command.Returns Error code,
2-107I/O System ProgrammingReturn CodeError/Status Description1(command error) indicates that the last command mnemonic was incorrect or inappropriate
2-108FMT1000 Series Programmer’s GuideSBP – Set Beeper TonesFormat SBP <0-5>0=high pitch 1=high, low pitches 2=high, high pitches 3=high, low, h
2-109I/O System ProgrammingSSS, RSS – Set and Return Startup StringFormat SSS <string>Max length: 16Summary Sets a string that may be recalled u
1-3FMT1000 ArchitecturePlease continue to refer to Figure 1-1 as the other architectural features of the FMT1000 Series computer are described below.C
2-110FMT1000 Series Programmer’s GuideRES – Echo String Via Current Internal Response Path Format RES <string> Max length: 80SummaryEchoes the s
2-111I/O System ProgrammingROB – Return State of Battery SenseFormat ROBSummary Returns an integer that indicates on-battery operation.ReturnsBattery
2-112FMT1000 Series Programmer’s GuideSBE, RBE – Set and Return Battery Sense EnableFormat SBE 0 | 1 0=disable 1=enableSummary Enables or disables aut
2-113I/O System ProgrammingSBS, RBS – Set and Return Switched to Battery StringFormat SBS<string>Maximum string length: 16 charactersSummary Set
2-114FMT1000 Series Programmer’s Guide
A-1Appendix A Sample ApplicationsSample applications are included on the Network Drivers and Utilities diskette provided with the FMT1000 Series comp
A-2FMT1000 Series Programmer’s Guide4.Interfacing with RS-232 Devices through COM1 (COM1DEMO.BAS): This application shows how to communicate with an R
B-1Appendix B XT 101 Keyboard Scan CodesFor the sake of legibility, the keyboard scan codes are divided into two graphics: •Section A Keyboard•Sectio
B-2FMT1000 Series Programmer’s GuideFigure B-1. Sections of the Keyboard
B-3XT 101 Keyboard Scan CodesFigure B-2. Section A Keyboard Scan Codes
1-4FMT1000 Series Programmer’s GuideMemoryThe FMT1000 Series computer contains 1 MB of RAM. This memory may be exploited in various ways to afford opt
B-4FMT1000 Series Programmer’s GuideFigure B-3. Section B Keyboard Scan CodesNOTES:1. PRINT SCREEN key: DOWN code is E0 2A E0 7C. UP code is E0 B7 E0
B-5XT 101 Keyboard Scan CodesKeyboard Redefinition Using ANSI.SYSIn DOS version 5.0 and higher, individual keys may be redefined using the ANSI.SYS dr
B-6FMT1000 Series Programmer’s Guide
1-5FMT1000 Architecture•Configuration A allows a base memory partition of 640 KB, which is the norm for PC-compatible computers. •Configuration B exte
1-6FMT1000 Series Programmer’s Guide•HIDOS.SYS, the simpler of the two, is the one which must be used if Expanded Memory is also required. HIDOS.SYS p
1-7FMT1000 ArchitectureDisplay ProgrammingAs can be seen from Figure 1-1, the LCD display is connected to the LPT1 port of the CPU via the I/O chip. T
1-8FMT1000 Series Programmer’s GuideAdditional functions have been provided (for each function, DX=0 and all functions are in hex):Function in Hexadec
1-9FMT1000 ArchitectureAH 16 Return cursor position. Returns the position of the cursor in the screen: BH=Row (0 or 1) BL=Column (0-39)AH 17 Set cu
ii 1995 by Symbol Technologies, Inc. All rights reserved.No part of this publication may be reproduced or used in any form, or by any electrical or m
1-10FMT1000 Series Programmer’s GuideAH 20 Set new tracking mode in BL 1: 1x80 fixed 2: 1x80 follow cursor row 3: 2x40 fixed 4:2x40 left justifie
2-1Chapter 2 I/O System ProgrammingI/O system programming consists mainly of selecting the configuration options for the many features of the I/O cop
2-2FMT1000 Series Programmer’s Guide- Can transmit its data directly to the keyboard port of the CPU, eliminating the need for any special programming
2-3I/O System ProgrammingBasics of Coprocessor CommunicationsCommunicating with the coprocessor has two parts: •sending commands to the processor•rece
2-4FMT1000 Series Programmer’s GuideMany parameters accept string arguments. To embed nonprinting control characters in these strings, use the format
2-5I/O System Programming•Limit the total characters to fewer than 100. This is often adequate, as most coprocessor commands are short, and the defaul
2-6FMT1000 Series Programmer’s GuideCoprocessor Reply Format All replies coming from the coprocessor have a common format: <tag><prefix>&l
2-7I/O System ProgrammingPrefixes and Suffixes in RS-232 Auxiliary Port Operations The coprocessor manipulates strings for many operations to make the
2-8FMT1000 Series Programmer’s Guide A dialing command could then be sent using: SOWDT5551212Creative use of auxiliary prefixes and suffixes can great
2-9I/O System ProgrammingI/O Processor CommandsThe subsequent pages contain a list of I/O controller mnemonics. Each page describes one command. Certa
iiiSymbol Support CenterFor service information, warranty information, or technical assistance in the U.S.A., call:SYMBOL SUPPORT CENTER1-800-653-5350
2-10FMT1000 Series Programmer’s GuideCommand ListCommand Type Pg.# Command Type Pg.#R1DSystem 2-101RDAAuxiliary 2-27R1MDigital 2-65RDEDigital 2-67R1US
2-11I/O System ProgrammingRITSystem 2-87RS2Digital 2-60RKCSystem 2-99RSIAuxiliary 2-34RKESystem 2-96RSAAuxiliary 2-28RKHSystem 2-95RSBBar Code 2-83RKR
2-12FMT1000 Series Programmer’s GuideS4DSystem 2-101SHAAuxiliary 2-29S4USystem 2-101SHHHost 2-18SADSystem 2-94SI1Digital 2-59SAEAuxiliary 2-50SI2Digit
2-13I/O System ProgrammingSPIAuxiliary 2-33SSBBar Code 2-83SPOAuxiliary 2-31SSCBar Code 2-81SPPBar Code 2-72SSHHost 2-17SPSBar Code 2-73SSIAuxiliary 2
2-14FMT1000 Series Programmer’s GuideHost Comm Port CommandsThe host comm port commands configure the coprocessor port that is connected to COM2 of th
2-15I/O System ProgrammingSBH, RBH – Set and Return Host Baud RateFormat SBH <0-6> 0=300 baud 1=600 2=1200 3=2400 4=4800 5=9600 * 6=19200Summary
2-16FMT1000 Series Programmer’s GuideSDH, RDH – Set and Return Host Data Bits and ParityFormat SDH <0-6>0=7 bits, even parity 1=7 bits, odd pari
2-17I/O System ProgrammingSSH, RSH – Set and Return Host Stop BitsFormat SSH 0 | 10 = 1 stop bit * 1 = 2 stop bitsSummary Sets the number of stop bits
2-18FMT1000 Series Programmer’s GuideSHH, RHH – Set and Return Host Handshake TypeFormat SHH 0 | 1 0=None 1=XON/XOFF *Summary Sets the type of hardwar
2-19I/O System ProgrammingAuxiliary RS-232 Port CommandsThere are many modes of auxiliary port operation. Using combinations of the features described
2-20FMT1000 Series Programmer’s GuideThe RS-232 auxiliary port can perform I/O asynchronously while the CPU does other tasks. Input can occur continuo
2-21I/O System ProgrammingSAT, RAT – Set and Return Aux Comm Response TagFormatSAT <string> Length: 1Summary Sets a unique ID tag to prefix all
2-22FMT1000 Series Programmer’s GuideSAP, RAP – Set and Return Aux Response PrefixFormat SAP <string> Max length: 16SummarySets the string to be
2-23I/O System ProgrammingSAS, RAS – Set and Return Aux Response SuffixFormat SAS <string> Max length: 16Summary Sets the string to be appended
2-24FMT1000 Series Programmer’s GuideSEA, REA – Set and Return Aux Response AutoEnter ModeFormat SEA <0-3>0=Off * 1=CR (carriage return)2=CR/LF
2-25I/O System ProgrammingSRA, RRA – Set and Return Aux Comm Response PathFormat SRA 0 | 10=Keyboard * 1=COM2 host portSummary Sets the RS-232 auxilia
2-26FMT1000 Series Programmer’s GuideSBA, RBA – Set and Return Aux Baud RateFormat SBA <0-6> 0=300 bits per second (bps) 1=600 2=12003=2400 4=48
2-27I/O System ProgrammingSDA, RDA – Set and Return Aux Data Bits and ParityFormat SDA <0-6>0=7 bits, even parity1=7 bits, odd parity 2=7 bits,
2-28FMT1000 Series Programmer’s GuideSSA, RSA – Set and Return Aux Stop BitsFormat SSA 0 | 1 0=1 stop bit * 1=2 stop bitsSummary Sets the number of st
2-29I/O System ProgrammingSHA, RHA – Set and Return Aux Handshake TypeFormat SHA 0 | 1 | 2 0=None 1=XON/XOFF * 2=RTS/CTS hardware handshakingSummary S
vContentsAbout This GuideIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-30FMT1000 Series Programmer’s GuideNote:If CTS is not connected, it does not appear to be asserted, and nothing is transmitted. You should not selec
2-31I/O System ProgrammingSPO, RPO – Set and Return Aux Output PrefixFormat SPO <string> Max length of the character string: 16SummarySets the s
2-32FMT1000 Series Programmer’s GuideSSO, RSO – Set and Return Aux Output SuffixFormat SSO <string> Max length: 16Summary Sets the string to be
2-33I/O System ProgrammingSPI, RPI – Set and Return Aux Input PrefixFormat SPI <string> Max length: 16Summary Sets the string that will be remov
2-34FMT1000 Series Programmer’s GuideSSI, RSI – Set and Return Aux Input SuffixFormat SSI <string>Max length: 16Summary Sets the string to be re
2-35I/O System ProgrammingSIC – Aux Input CancelFormat SICSummary Cancels the current input request.Returns N/ADescription Cancels an outstanding requ
2-36FMT1000 Series Programmer’s GuideSIO, RIO – Set and Return Aux Input TimeoutFormat SIO <0-255>Summary Set the length to wait for input, in s
2-37I/O System ProgrammingSIM, RIM – Set and Return Input String LengthFormat SIM <0-80> (Factory default is 80)Summary Sets the an exact size o
2-38FMT1000 Series Programmer’s GuideSII – Input Buffer InitializeFormat SIISummary Resets the auxiliary serial input buffer to empty.Returns N/ADescr
2-39I/O System ProgrammingSIB, RIB – Input Beep EnableFormat SIB 0 | 10=OFF * 1=ONSummary Enables or disables the beep when input is received.This set
viSDA, RDA – Set and Return Aux Data Bits and Parity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-27SSA, RSA – Set and Return Aux Stop B
2-40FMT1000 Series Programmer’s GuideSIR, RIR – Set and Return Input Read ModeFormat SIR 0 | 1 0=Single Read 1=Continuous ReadsSummary Sets the mode b
2-41I/O System ProgrammingRIN – Return Input StatusFormat RINSummary Returns the input status of the communications port.Returns Integer, 0-5 0=no err
2-42FMT1000 Series Programmer’s Guide Return CodeError/Status Description1(command error) indicates that the last command mnemonic was incorrect or in
2-43I/O System ProgrammingSOW – Set Output WriteFormat SOW <string>Length: 1-80 charactersSummaryInitiates an output write to the RS-232 auxilia
2-44FMT1000 Series Programmer’s GuideSOC – Aux Output CancelFormat SOCSummary Cancels the current output request.Returns N/ADescription Cancels an out
2-45I/O System ProgrammingSOO, ROO – Set and Return Aux Output TimeoutFormat SOO <0-255>SummarySet the length to wait for output, in seconds.Thi
2-46FMT1000 Series Programmer’s GuideROU – Return Output StatusFormatROUSummary Returns the output status of the RS-232 auxiliary port.Returns Integer
2-47I/O System ProgrammingReturn CodeError/Status Description1(command error) indicates that the last command mnemonic was incorrect or inappropriatel
2-48FMT1000 Series Programmer’s GuideSPA, RPA – Set or Return Aux Passthrough ModeFormat SPA 0 | 10=off *1=onSummary Sets the I/O processor passthroug
2-49I/O System ProgrammingSTC, RTC – Set and Return Passthrough Termination CharactersFormatSTC <string> Length: 3 charactersSummary Sets the ch
viiSRP, RRP – Set and Return Peripheral Port Response Path . . . . . . . . . . . . . . . . . . . . . . . . 2-75S39, R39 – Set and Return Code 3 of 9
2-50FMT1000 Series Programmer’s GuideSAE, RAE – Set and Return Aux Communications Port EnableFormat SAE 0 | 10=Off1=On *SummaryEnables or disables tra
2-51I/O System ProgrammingDigital I/O and Counter CommandsFMT1000 Series computers have two digital inputs and two digital outputs. These are often us
2-52FMT1000 Series Programmer’s GuideNote:The terminology on and off is used in regard to digital inputs. The actual inputs are optical isolators. On
2-53I/O System ProgrammingOne other digital I/O command is used:This command enables or disables the transmission of digital I/O response if the FMT10
2-54FMT1000 Series Programmer’s GuideSDT, RDT – Set and Return Digital I/O Response TagFormat SDT <string> Length: 1Summary Sets a unique ID tag
2-55I/O System ProgrammingSDP, RDP – Set and Return Digital I/O Response PrefixFormat SDP <string> Max length: 16Summary Sets the string to be p
2-56FMT1000 Series Programmer’s GuideSDS, RDS – Set and Return Digital I/O Response SuffixFormat SDS <string> Max length: 16Summary Sets the str
2-57I/O System ProgrammingSED, RED – Set and Return Digital I/O Response AutoEnter ModeFormatSED <0-3>0=Off *1=CR (carriage return) 2=CR/LF (car
2-58FMT1000 Series Programmer’s GuideSRD, RRD – Set and Return Digital I/O Response PathFormat SRD 0 | 10=Keyboard *1=COM2 host portSummary Sets the d
2-59I/O System ProgrammingSI1, RI1, SI2, RI2 – Set and Return Input No. 1 or No. 2 Response StringFormatSI1 <string>SI2 <string> RI1RI2 Ma
viii
2-60FMT1000 Series Programmer’s GuideRS1, RS2 – Return State of Input No. 1 or No. 2Format RS1 RS2Summary Returns the binary state of digital input No
2-61I/O System ProgrammingSR1, SR2 – Reset Counter No. 1 or No. 2Format: SR1 SR2SummaryResets to 0 the value of the counter for input line No. 1 or No
2-62FMT1000 Series Programmer’s GuideRE1, RE2 – Read Counter No. 1 or No. 2FormatRE1 RE2Summary Returns the value of the counter for input line No. 1
2-63I/O System ProgrammingRR1, RR2 – Read and Reset Counter No. 1 or No. 2Format RR1RR2Summary Returns the value of the input counter for line No. 1 o
2-64FMT1000 Series Programmer’s GuideSM1, SM2, RM1, RM2 – Set and Return Counter No. 1 or No. 2 Value MatchFormat SM1<0-1,000,000> SM2<0-1,00
2-65I/O System ProgrammingS1M, R1M, S2M, R2M – Set and Return Counter No. 1 or No. 2 Response StringFormat S1M<string> S2M<string> R1MR2M
2-66FMT1000 Series Programmer’s GuideST1, RT1, ST2, RT2 – Set and Return Momentary Timeout for Output No. 1 and No. 2Format ST1 <0-999>0=Off 999
2-67I/O System ProgrammingSDE, RDE – Set and Return Digital I/O Response EnableFormat SDE 0 | 1 0=Off 1=On *Summary Enables or disables the response t
2-68FMT1000 Series Programmer’s GuideBar Code and Wand Control CommandsThese commands control the peripheral inputs to the I/O coprocessor. These inpu
2-69I/O System ProgrammingThe last set of commands sets various control parameters for peripheral input.Command Description Pg.#SSC, RSC Set and Retu
1About This GuideIntroductionThis manual is intended for programmers who are creating programs that will run on the FMT1000 Series of data collection
2-70FMT1000 Series Programmer’s GuideSP5, RP5, SP9, RP9 – Set and Return Peripheral (5-Pin Connector) Tag and (9-Pin Connector) TagFormatSP5<string
2-71I/O System ProgrammingSPT, RPT – Set and Return Peripheral Response TagFormat SPT <string>Length: 1Summary Sets a unique ID tag to prefix al
2-72FMT1000 Series Programmer’s GuideSPP, RPP – Set and Return Peripheral Response PrefixFormat SPP <string> Max length: 16Summary Sets the stri
2-73I/O System ProgrammingSPS, RPS – Set and Return Peripheral Response SuffixFormat SPS <string> Max length: 16Summary Sets the string to be ap
2-74FMT1000 Series Programmer’s GuideSEP, REP – Set and Return Peripheral Response AutoEnter ModeFormat SEP <0-3>0=Off *1=CR (carriage return)2=
2-75I/O System ProgrammingSRP, RRP – Set and Return Peripheral Port Response PathFormat SRP 0 | 1 0=Keyboard *1=COM2 host portSummary Sets the periphe
2-76FMT1000 Series Programmer’s GuideS39, R39 – Set and Return Code 3 of 9 ModeFormatS39 <0-3>0=Off 1=Code 3 of 9 * 2=Code 3 of 9 Mod 433=Full A
2-77I/O System ProgrammingS25, R25 – Set and Return Interleave 2 of 5 ModeFormat S25 0 | 1 0=Off 1=On *Summary Enable or disable bar code type Interle
2-78FMT1000 Series Programmer’s GuideSCB, RCB – Set and Return Codabar ModeFormat SCB 0 | 1 0=Off 1=On *Summary Enables or disables the decoding of ba
2-79I/O System ProgrammingSUP, RUP – Set and Return UPC ModeFormat SUP 0 | 1 0=Off1=On *Summary Enables or disables the decoding of bar code type UPC.
Commentaires sur ces manuels