The text of a manual · part 9 of 9
PT630 Portable Terminal Programming Reference Guide: Update Note
Pages 71 to 73 of 73, from PT630 Portable Terminal Programming Reference Guide
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 71
PT630 Programming Reference Guide Page 71 of 59 ------------------------------------------------------------------------------------------------------------------
Chapter 3.
Update Note
1.
Correct error return value on BX on section 1.5.25Get DOS and Firmware Version Number Entry Parameter: AH = 30H AL = 0/1 ; with/without OEM version code Return Value: if AL = 0 when call: AL= major DOS version number (=2) AH= minor DOS version number (=10) CL= major firmware version number CH= minor firmware version number BX= OEM firmware version code (=0 for standard version) if AL = 1 when call: AL= major DOS version number (=2) AH= minor DOS version number (=10) CL= major firmware version number CH= minor firmware version number BX= 830H
2.
Correct error entry value on 1.2.1 Select Large Font Entry Parameter: AH = 0/1 ; select 8*16-dot character font (4 lines * 16 ; columns display) Return Value: None void TL_font(int status) { regs.h.ah = (unsigned char)status; int86(0x09,®s,®s); }
3.
Correct error entry value for DSR 1.8.7 Get CTS/DSR Signal Status of RS232 Port Entry Parameter: AH = 6 ; get CTS AL = 21 AL = 12 ; get DSR Return Value: DH = 0 ; High voltage on signal 1 ; Low voltage on signal Note: Only for NONE communication protocol Example: int TC_232_CTS() { regs.h.ah = 6; regs.h.al = 2; int86(0X33®s,®s); return((int)regs.h.dh); } int TC_232_DSR()
{ regs.h.ah = 6; regs.h.al = 1; int86(0X33®s,®s); return((int)regs.h.dh); }
Page 72
PT630 Programming Reference Guide Page 72 of 59 -----------------------------------------------------------------------------------------------------------------4. Error entry value on 1.8.8 Flush RS232 RX buffer Entry Parameter: AH = 08 Return Value: None 5.
Add COM2 RS232 function call on section 1.9
6.
Add reverse display under small font mode on 1.2.9
7.
Keymap table error on 1.5.15 Set User-defined Key-map Entry Parameter: AH = 1EH AL = 0 DS:DX ; pointer to Key-map buffer with 5*32 characters ; corresponding to keypad in 5 input modes Return Value: None Example: void TD_key_map(unsigned char *str) { segregs.ds = FP_SEG(str); regs.x.dx = FP_OFF(str); regs.h.ah=0x1E; regs.h.al=0; int86x(0x21,®s,®s,&segregs); }
Note:
Default system key-map:
Non-ALPHA Mode byte Seq 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 key name 7 4 1 CLR F1 ENTER 8 5 2 0 3 5 F2 9 6 3 . 4 6 F3
SP F4
ALPHA-1 Mode hex code 37 34 31 08 0 86 0D 0 38 35 32 30 11 13 87 0 39 36 33 2E 10 12 88 0 0 0 0 84 20 80 89 byte Seq. 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
0
63 key name S J A CLR F1 ENTER V M D @ 3 5 F2 Y P G ; 4 6 F3
SP F4
ALPHA-2 Mode hex code 53 4A 41 08 0 86 0D 0 56 4D 44 40 11 13 87 0 59 50 47 3B 10 12 88 0 0 0 0 84 20 00 89 byte Seq. 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
0
95 key name T K B CLR F1 ENTER W N E ? 3 5 F2 Z Q H . 4 6 F3
SP F4
ALPHA-3 Mode hex code 54 4B 42 08 0 86 0D 0 57 4E 45 3F 11 13 87 0 5A 51 48 2E 10 12 88 0 0 0 0 84 20 00 89 byte Seq. 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
0
127 key name U L C CLR F1 ENTER X Q F & 3 5 F2 R I , 4 6 F3
SP F4
CMD Mode hex code 55 4C 43 08 0 86 0D 0 58 4F 46 26 11 13 87 0 5F 52 49 2C 10 12 88 0 0 0 0 84 20 00 89 byte Seq. 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
0
159 key name : # \ F5 ENTER + =3D $ ‘ 3 PgDn F6 * / % ! 4 PgUp F7
SP F8 hex code 2D 3A 23 5c 84 8A 0D 0 2B 24 24 27 11 93 8B 00 2A 2F 25 21 10 92 8C 0 0 0 0 84 20 80 8D 0
Page 73
PT630 Programming Reference Guide Page 73 of 59 -----------------------------------------------------------------------------------------------------------------8. 9. 10. 11.
Add Multi-protocol command “Bell” on section 2.4.24 Add Aim mode for long range engine on 1.5.12.13 Set Aim mode for Long Range engine Add alpha lower/upper case mode on 1.5.12.14 Set Alpha input mode Add Code 32 function call on 1.5.17.10