1-60 Command Descriptions Rev. A
ESC p m t1 t2
[Name] Generate pulse
[Format] ASCII ESC p mt1t2
Hex 1B 70 mt1t2
Decimal 27 112 mt1t2
[Range] m = 0, 1, 48, 49
0 ≤ t1 ≤ 255
0 ≤ t2 ≤ 255
ESC p m t1 t2 sends a pulse (on time= t1 × 2 msec / off time= t2 × 2 msec) to the specified connector
pin. When m=0 or 48, the pulse is sent to drawer-kick-out connector pin 2; when m=1 or 49, the pulse
is sent to drawer-kick-out connector pin 5.
ESC = n
[Name] Select peripheral device
[Format] ASCII ESC = n
Hex 1B 3D n
Decimal 27 61 n
[Range] 0 ≤ n ≤ 255 (Only the least significant bit of n is enabled.)
ESC = n selects the device to which the host computer sends data. When the LSB (least significant bit)
of n is 1, the printer is enabled; When it is 0, the printer is disabled. The default setting is n=1. If ASB
is enabled when the printer is disabled by the ESC =, the printer transmits a 4-byte status message
whenever the status changes.
Program Example
PRINT #1, CHR$(&H1B);"p";CHR$(0);CHR$(25);CHR$(250);
Program Example Print Sample
AAAAA CCCCC
PRINT #1, CHR$(&H1B);"=";CHR$(1);←
Printer enabled
PRINT #1, "AAAAA";
PRINT #1, CHR$(&H1B);"=";CHR$(0);← Printer disa bled
PRINT #1, " BBBBB";
PRINT #1, CHR$(&H1B);"=";CHR$(1);← Printer enabled
PRINT #1, " CCCCC"; CHR$(&HA);
Komentáře k této Příručce