PT630 Programming Reference Guide
Page 32 of 59
------------------------------------------------------------------------------------------------------------------
1.5.17 Barcode symbology setting function
1.5.17.1 Enable/Disable Decoding of a Barcode Symbology
Entry
Parameter:
AH = 1FH
BH
=
1
AL = 1
; Enable decoding of barcode symbology
0
; Disable decoding of barcode symbology
BL = 0
; All supported bar code symbologies
1
; Code 39
2
; I 2 of 5
3
; Codabar
4
; EAN/UPC
5
; Code 128
6
; EAN 128
Return
Value:
None
Example
:
void TD_set_decode_status(int type,int status)
{
regs.h.ah= 0x1F;
regs.h.al= (unsigned char)status;
regs.h.bh= 1;
regs.h.bl= (unsigned char)type;
int86(0x21,®s,®s);
}
1.5.17.2 Get Decoding Status of a Barcode Symbology
Entry parameter: AH = 1FH
BH
=
2
BL = 1
; Code 39
2
; I 2 of 5
3
;
Codabar
4
;
EAN/UPC
5
;
Code
128
6
;
EAN
128
Return Value:
AL = 0/1
; Disable/Enable
Example
:
int TD_get_decode_bar(int type)
{
regs.h.ah = 0x1F;
regs.h.bh = 2;
regs.h.bl = (unsigned char)type;
int86(0x21,®s,®s);
return(regs.h.al);
}
1.5.17.3 Code 39 Settings
Entry parameter: AH = 1FH
BH = 3