The text of a manual · part 1 of 9
PT630 Portable Terminal Programming Reference Guide, pages 1 to 4
Pages 1 to 4 of 73
The original document is the PDF (2.0 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 Unitech PT630
Page 1
PT630 Programming Reference Guide Page 1 of 59
PT630 Portable Terminal
Programming Reference Guide
Munitech
V1.1
Page 2
PT630 Programming Reference Guide Page 2 of 59 -----------------------------------------------------------------------------------------------------------------CHAPTER 1.
BIOS AND SYSTEM FUNCTIONS ...................................................................................................5
1.1 INTERRUPT VECTOR ASSIGNMENT FOR I/OS .................................................................................................5 1.2 DISPLAY FONT FUNCTIONS ( INT 09H ) ......................................................................................................5 2.4.1 Select Large Font .......................................................................................................................................5 2.4.2 Select Small Font .......................................................................................................................................5 2.4.3 Set Font Type..............................................................................................................................................6 2.4.4 Get Font Type ..............................................................................................................................................6 2.4.5 Set User-Defined Font for All Characters...................................................................................................6 2.4.6 Get Font Data for All Characters ...............................................................................................................7 2.4.7 Set User-Defined Font for One Character ..................................................................................................7 2.4.8 Get Font Data for One Characters .............................................................................................................8 1.3 KERMIT SERVER FUNCTION ( INT 0FH ) ......................................................................................................8 1.4 LCD CONTROL FUNCTIONS ( INT 10H ) .......................................................................................................9 2.4.1 Clear LCD Screen .......................................................................................................................................9 2.4.2 Enable/Disable Screen Scroll......................................................................................................................9 2.4.3 Set Cursor Position .....................................................................................................................................9 2.4.4 Get Cursor Position ..................................................................................................................................10 2.4.5 Display 16x16 Bitmap ...............................................................................................................................10 2.4.6 Set Cursor On/Off......................................................................................................................................12 2.4.7 Enable/Disable Power-on Logo Display...................................................................................................12 2.4.8 Display Character .....................................................................................................................................13 2.4.9 Display 16*16 Bitmap at Current Cursor Position ...................................................................................13 2.4.10 Read Pixel from screen .........................................................................................................................13 2.4.11 Write Pixel to screen.............................................................................................................................14 1.5 SYSTEM FUNCTIONS ( INT 21H ) .................................................................................................................15 2.4.1 Terminate Program ...................................................................................................................................15 2.4.2 Read Keypad (wait if no key) and Write to LCD .......................................................................................15 2.4.3 Write LCD .................................................................................................................................................15 2.4.4 Read RS232 (wait if no character) ............................................................................................................15 2.4.5 Write RS232...............................................................................................................................................16 2.4.6 Direct Console I/O ....................................................................................................................................16 2.4.7 Read Keypad (wait if no key) ....................................................................................................................16 2.4.8 Read Keypad (wait if no key) ....................................................................................................................17 2.4.9 Write Character String to LCD .................................................................................................................17 2.4.10 Buffered Keypad Input..........................................................................................................................17 2.4.11 Check Keypad Status ............................................................................................................................17 2.4.12 LCD Backlight ON/OFF Control ........................................................... Error! Bookmark not defined. 2.4.13 Buzzer ON/OFF Control ........................................................................ Error! Bookmark not defined. 2.4.14 Beeper Volume ......................................................................................................................................18 2.4.15 Enable/Disable RS232 Port..................................................................................................................19 2.4.16 Enable/Disable Key or Key Function ...................................................................................................19 2.4.17 Set Keypad Language ...........................................................................................................................20 2.4.18 Check Main Battery Status ...................................................................................................................21 2.4.19 Check Backup Battery Status................................................................................................................21 2.4.20 Set Good-read LED ..............................................................................................................................21 2.4.21 Set Laser Scanner Trigger Mode ..........................................................................................................22 2.4.22 Enable/Disable Double Verification When Read Bar Code Label........................................................22 2.4.23 Check Laser Scanner............................................................................................................................22 2.4.24 Get Scanner Port Status .......................................................................................................................23 2.4.25 Get MULTIPOINT Address ..................................................................................................................23 2.4.26 Set Communication Parameters ...........................................................................................................24 2.4.27 Software Control Flow .........................................................................................................................25 2.4.28 Hardware Control Flow .......................................................................................................................26 2.4.29 Set Communication Protocol................................................................................................................26 2.4.30 Get MULTIPOINT Address ..................................................................................................................26
Page 3
PT630 Programming Reference Guide Page 3 of 59 -----------------------------------------------------------------------------------------------------------------2.4.31 Set MULTIPOINT Address ...................................................................................................................27 2.4.32 Set File-Uploading Message ON/OFF .................................................................................................27 2.4.33 Set Terminal ID.....................................................................................................................................28 2.4.34 Set ONLINE/LOCAL in Terminal Mode ...............................................................................................28 2.4.35 Set ECHO ON/OFF in Terminal Mode.................................................................................................28 2.4.36 Set AUTOLF ON/OFF in Terminal Mode.............................................................................................29 2.4.37 Set CHARACTER/BLOCK in Terminal Mode ......................................................................................29 2.4.38 Define LINE Character in Terminal Mode ...........................................................................................29 2.4.39 Define Page Character in Terminal Mode............................................................................................30 2.4.40 Set User-defined Key-map ....................................................................................................................30 2.4.41 Get System Key-map.............................................................................................................................31 2.4.42 Enable/Disable Decoding of a Barcode Symbology.............................................................................32 2.4.43 Get Decoding Status of a Barcode Symbology .....................................................................................32 2.4.44 Code 39 Settings...................................................................................................................................32 2.4.45 Interleaved 2 of 5 Settings ....................................................................................................................33 2.4.46 Codabar Settings ..................................................................................................................................33 2.4.47 Code 128 Setting ..................................................................................................................................33 2.4.48 EAN 128 Setting ...................................................................................................................................34 2.4.49 Code 93 Setting ....................................................................................................................................34 2.4.50 UPC-A Settings.....................................................................................................................................34 2.4.51 UPC-E Settings.....................................................................................................................................34 2.4.52 EAN-13 Settings ...................................................................................................................................34 2.4.53 EAN-8 Settings .....................................................................................................................................35 2.4.54 User Code 1 Setting (TRIOPTIC Code) ...............................................................................................35 2.4.55 User Code 2 Setting (TOSHIBA code)..................................................................................................35 2.4.56 Set Interrupt Vector...............................................................................................................................36 2.4.57 Get System Date ...................................................................................................................................36 2.4.58 Set System Date ....................................................................................................................................36 2.4.59 Get System Time ...................................................................................................................................37 2.4.60 Set System Time ....................................................................................................................................37 2.4.61 Set Alarm Date .....................................................................................................................................37 2.4.62 Set Alarm Time .....................................................................................................................................38 2.4.63 Get DOS and Firmware Version Number .............................................................................................38 2.4.64 Get Interrupt Vector..............................................................................................................................39 2.4.65 Get Free Disk Cluster...........................................................................................................................39 2.4.66 Create File with Handle .......................................................................................................................39 2.4.67 Open File with Handle .........................................................................................................................40 2.4.68 Close File with Handle.........................................................................................................................40 2.4.69 Read File with Handle..........................................................................................................................41 2.4.70 Write File with Handle .........................................................................................................................41 2.4.71 Delete File ............................................................................................................................................42 2.4.72 Move File Pointer.................................................................................................................................42 2.4.73 Search Character Beginning at the Current File Position ...................................................................43 2.4.74 Search String in Formatted Data File Beginning at the Current Position ...........................................43 2.4.75 Insert / Delete Data Block to / from File at the Current Position.........................................................44 2.4.76 Allocate Memory ..................................................................................................................................45 2.4.77 Free Allocated Memory ........................................................................................................................45 2.4.78 Modify Allocated Memory Block ..........................................................................................................46 2.4.79 Run specified program..........................................................................................................................46 2.4.80 End Program ........................................................................................................................................46 2.4.81 Read Data from Scanner Port ..............................................................................................................47 2.4.82 Set Scanner Port...................................................................................................................................47 2.4.83 Rename File..........................................................................................................................................44 2.4.84 Create New File....................................................................................................................................44 2.4.85 Receive Data from RS232 Port in MULTIPOINT Protocol..................................................................48 2.4.86 Send Data to RS232 Port in MULTIPOINT Protocol (Buffered Output)...........................................48 2.4.87 Check RS232 Output Buffer Status in MULTIPOINT Protocol ............................................................49 1.6 POWER MANAGEMENT FUNCTION ( INT 22H )...........................................................................................50
Page 4
PT630 Programming Reference Guide Page 4 of 59 -----------------------------------------------------------------------------------------------------------------1.7 BEEPER CONTROL FUNCTION ( INT 31H ) ..................................................................................................51 1.8 RS232 CONTROL FUNCTIONS ( INT 33H ) ..................................................................................................52 2.4.1 Set Communication Parameters................................................................................................................52 2.4.2 Get Character from RS232 Port................................................................................................................53 2.4.3 Send Character to RS232 Port ..................................................................................................................54 2.4.4 Enable RS-232 Port...................................................................................................................................54 2.4.5 Disable RS-232 Port..................................................................................................................................54 2.4.6 Set RTS/DTR Signal of RS232 Port...........................................................................................................55 2.4.7 Get CTS Signal Status of RS232 Port........................................................................................................55 CHAPTER 2.
MULTIPOINT COMMUNICATION ...............................................................................................59
2.1 MULTIPOINT COMMUNICATION PROTOCOL ............................................................................................59 2.4.1 Symbols in Transmission Packet ...............................................................................................................59 2.4.2 Host Transmission Packet .........................................................................................................................59 2.4.3 PT630 Transmissions Packet.....................................................................................................................60 2.4.4 Data Conversion Rules in Packet..............................................................................................................60 2.4.5 Data Checksum Calculation in Packet......................................................................................................60 2.4.6 Example packet of command to send the file named A.EXE to PT630 with address ‘A’...........................60 2.2 DATA COMMUNICATION IN MULTIPOINT PROTOCOL ..............................................................................62 2.2.1 Host Send Data to PT630 (ESC 0)...........................................................................................................62 2.2.2 Host Requests Data from the PT630 ( Polling ) ......................................................................................62 2.3 FILE COMMUNICATION IN MULTIPOINT PROTOCOL ...............................................................................62 2.3.1 Host Send File to PT630 ( Download )....................................................................................................62 2.3.2 Cancel Current Downloading File Command (ESC z)...........................................................................63 2.3.3 Host Requests File from the PT630 ( Upload )........................................................................................63 2.3.4 Cancel Current Uploading File Command (ESC y)................................................................................63 2.4 HOST COMMANDS ..........................................................................................................................................64 2.4.1 Set MULTIPOINT Address ( ESC 5) ......................................................................................................59 2.4.2 Warm Start ( ESC A )..............................................................................................................................64 2.4.3 Enable/Disable Barcode Symbologies ( ESC B ) ...................................................................................64 2.4.4 Communication Configuration ( ESC C ) ..............................................................................................65 2.4.5 Get File Directory in RAM Disk ( ESC D ) .........................................................................................65 2.4.6 Get Program Name in FLASH Memory (ESC D/ROM) ............................................................................66 2.4.7 Erase File ( ESC E )..................................................................................................................................66 2.4.8 Change EXEC Area Size (ESC F) .............................................................................................................66 2.4.9 Get RAM Memory Configuration (ESC G) ...............................................................................................66 2.4.10 Get FLASH Memory Configuration (ESC G/ROM) .............................................................................66 2.4.11 Cold Start ( ESC H ) ..........................................................................................................................66 2.4.12 Get the Name of Current Running Program (ESC I)............................................................................67 2.4.13 Check whether File/Program Exists (ESC J)........................................................................................67 2.4.14 Enter Kermit Server Mode (ESC k) ......................................................................................................67 2.4.15 Set Date/Time ( ESC M ) ................................................................................................................68 2.4.16 Set Buzzer Volume (ESC N) ..................................................................................................................68 2.4.17 Change Password ( ESC P ) ...........................................................................................................68 2.4.18 Get Terminal ID (ESC R)......................................................................................................................68 2.4.19 Terminal Mode Configuration ( ESC T ) ..............................................................................................69 2.4.20 Device Configuration ( ESC V ) ........................................................................................................69 2.4.21 Get Portable Model Number and BIOS Version Number (ESC v)........................................................70 2.4.22 Run Program in RAM or FLASH memory ( ESC X ).........................................................................70 2.4.23 Run Program in FLASH memory (ESC X/ROM)..................................................................................70