Unitech MR350MKII manual General Control Commands

Page 5

 

2B

 

Set System date

3-50

 

2C

 

Get System clock

3-50

 

2D

 

Set System clock

3-51

 

3.9.

File Manager

3-51

 

3C

 

Create or truncate file

3-51

 

3D

 

Open file

3-52

 

3E

 

Close file

3-52

 

3F

 

Read file

3-53

 

40

 

Write file

3-53

 

41

 

Delete file

3-54

 

42

 

Move file pointer

3-54

 

43

 

Get file attribute

3-55

 

56

 

Rename a file

3-55

 

48

 

Allocate specified number of paragraphs memory

3-56

 

49

 

Free allocated memory

3-56

 

4A

 

Modify allocated block

3-56

4.

Host ESC Commands

4-58

 

4.1.

General Control Commands

4-58

 

 

17.

Get terminal ID (ESC R)

4-61

 

 

This commcand can get terminal ID. The default terminal ID is "MR350"

4-61

 

 

18.

Get terminal ID and version no (ESC v)

4-61

 

 

This commcand can get terminal ID and version no. The default terminal ID is "MR350 V4.xx".

 

 

.......................................................................................................................................

4-61

 

4.2.

Configuration Commands

4-61

 

4.3.

File Transfer Commands

4-63

 

4.4.

Multipoint Protocol

4-63

 

4.4.1.

Protocol Operation

4-65

 

4.4.2.

Commands

4-66

 

 

ESC 0 - Application data

4-66

 

 

ESC A - Soft Reset, Restart, or Abort

4-67

 

 

ESC B - Enable/disable the decoding of barcode symbologies:

4-67

 

 

ESC C - Write communication configuration table to MR350MKII

4-67

 

 

ESC D - Read directory of RAM disk to host

4-68

 

 

ESC D/ROM - Read directory of Flash ROM to host

4-68

 

 

ESC E - Erase a file from the MR350MKII directory

4-68

 

 

ESC F - Disable UPS battery to supply power

4-68

 

 

ESC G - Get MR350MKII's RAM size

4-68

 

 

ESC G/ROM - Get MR350MKII's Flash ROM size

4-69

 

 

ESC H - Hard Reset and initiate power on test

4-69

 

 

ESC I - Get filename of current executing program

4-69

 

 

ESC J - Check if file existed or not

4-69

 

 

ESC K - Set keyboard locking

4-70

 

 

ESC L - Transfer file to MR350MKII

4-70

 

 

ESC M - Write date and time to MR350MKII

4-70

 

 

ESC O - Set auto-execution program

4-70

 

 

ESC P - Set supervisor password (maxi. 8 characters)

4-71

 

 

ESC R - Terminal ID

4-71

 

 

ESC T - Write terminal configuration table to MR350MKII

4-71

 

 

ESC U - Transfer file from MR350MKII

4-71

 

 

ESC V - Write device configuration table to MR350MKII

4-71

 

 

ESC v - Get Terminal ID and version no

4-72

 

 

ESC X - Start program execution

4-72

 

 

 

1-4

 

Image 5
Contents September 2001 Programming Reference ManualIntroduction Table of Contents RS-485 port serial I/O using General Control Commands Error! Bookmark not defined Application Programming Interface System KernelDisplay Subsystem Keypad SubsystemMulti-point mode Point to point modeCommunication Subsystem Real time clock subsystemBar code / Magnetic stripe / Proximity / ICC Download Program in Point-to-point mode? MS-KermitSEND file name ? MS-KermitGET file nameCOM1-4? Download Program in Multi-point modeMR350MKII Then, the screen will displaySet beepers volume Page Data Structure DevconfigDevice Control Table Type DefinitionType Definition BarcodeconfigBarcode Control Table Communication Control Table of Host port ComconfigByte WordTerminal Control Table available for host port only Page Page LCD Display INT 10H O Function CallsClear screen Set cursor typeScroll screen 1A Enable/disable LCD Backlight INT 21HGet cursor position 1C Select COM1 or COM2 as the host port Communication Environment Setup1C Set serial port flow control Set host port protocolXON/XOFF CTS/RTS1C Set polling timeout duration 1C Setup multi-point addressSet COM1 port as RS485 or modem Host Port for Multi-point Protocol I/O INT21HCheck if Busy-port Read host portOutput data Input data RS-232 port serial I/O using INT 34HSerial I/O for RS-232 and RS-485 BIT # Disable RS-232 portSet Communication parameters Page RS-485 port serial I/O using INT 33H Set RTS signal of RS-232 portRead CTS signal of RS-232 port Disable RS-485 port for serial I/O Enable RS-485 port for serial I/OInt860x33,s,s Open RS-485 multi-bus to send out data Close RS-485 multi-bus release RS-485 bus Set LED indicator ON/OFF Relay Output / Digit Input / Buzzer / LED IndicatorRead Photo Coupler Level state INT 08H LOWOpen Activate/Deactivate Relay ports INT 09HClose 1A Buzzer On/OffGet Security state 1A Set buzzer volumeAlarm On/Off 21H Internal/ External reader Port INT 21H Enable/Disable External reader portCodabar Read Internal portEnable/disable Internal reader 1F Get Decoder status of Wiegand Format Proximity reader 1A Check lithium battery level 1F Enable the decoding of a barcode symbologyEAN/UPC Miscellaneous INT 21HGet interrupt vector 1B Get Address ID of the terminalSet interrupt vector 1E Change the Keyboard map Get free disk clusterAscii code vs. scan code cross reference table numeric mode Ascii code corresponded to scan code in Numeric modeWrite stdout Ascii code corresponded to scan code in Alphabetic modeDOS Manager Read / Write stdin or return 0 if none is ready Read stdaux COM2 RS-232 portWrite stdaux COM2 RS-232 port Write character string to stdout Read stdin wait if no keyKeyhit check 0A Keyboard buffer inputDate/Time 2A Get System date2C Get System clock Set System date3C Create or truncate file 2D Set System clockFile Manager Close file 3D Open fileWrite file 3F Read fileMove file pointer Delete fileRename a file Get file attributeModify allocated block Free allocated memoryThis page is blank General Control Commands Host ESC CommandsExecute ESC X filename Abort ESC aExecute Flash ROM program ESC X/ROM filename Directory ESC DPassword ESC P password Autoboot ESC O program nameDisable UPS battery ESC F Get RAM size ESC GConfiguration Commands Date/Time Configuration ESC M Device Configuration ESCBarcode symbology Configuration ESC B Download ESC L filename File Transfer CommandsUpload ESC U filename Multipoint ProtocolCS1 CMDCS2 STX ESC L a . E X E CS1 CS2 AddrProtocol Operation Host TransmissionsTerminal Transmissions STX ESC CommandsESC 0 Application data ESC a Soft Reset, Restart, or Abort ESC 9 Send diagnostic test dataESC B Enable/disable the decoding of barcode symbologies ESC C Write communication configuration table to MR350MKIIESC D Read directory of RAM disk to host ESC F Disable UPS battery to supply powerESC D/ROM Read directory of Flash ROM to host ESC E Erase a file from the MR350MKII directoryESC G/ROM Get MR350MKIIs Flash ROM size ESC H Hard Reset and initiate power on testESC I Get filename of current executing program ESC J Check if file existed or notESC K Set keyboard locking ESC N Set Buzzer VolumeESC L Transfer file to MR350MKII ESC M Write date and time to MR350MKIIESC T Write terminal configuration table to MR350MKII ESC P Set supervisor password maxi charactersESC V Write device configuration table to MR350MKII ESC O/ROM Set auto-execution program on ROMESC v Get Terminal ID and version no ESC Commands Added for MV1100 Fingerprint ModuleESC X Start program execution ESC X Start program execution on ROMNAK Result STX ESC $D CS1 CS2 AddrSTX ESC $D Result CS1 CS2 ETX ESC $E Erase Template STX ESC $F Result QUALITY, Content CS1 CS2 ETX NAKSTX ESC $E Result CS1 CS2 ETX NAK ESC $F Enroll and Store Template on MR350 MkiiESC $H Verify Template ESC $G Enroll and Store Template on MV1100ESC $L Download Template ESC $I Verify IDESC $S Get Globe Threshold ESC $S Set Globe ThresholdESC $V Get Version ESC $U Upload TemplatePage Programming MR350 Mkii How to programning ?Programming by C/C++ Programming by JobGen PROProgramming communication program Contains of the Demo Disk Character Classification and Conversion Buffer ManipulationData Conversion File HandlingPorcess Control exit Searching and Sorting Memory AllocationString Manipulation MS-DOS Interface