1-50 Command Descriptions Rev. A
ESC p m t1 t2
[Name] Generate pulse
[Format] ASCII ESC p m t1 t2
Hex 1B 70 m t1 t2
Decimal 27 112 m t1 t2
[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
ESC = n selects the device to which the host computer sends data, based on the value of n as follows:
When the LSB (least significant bit) of n is 1, the printer is enabled; when it is 0, the printer is disabled.
Program Example
PRINT #1, CHR$(&H1D);"I";CHR$(1);
←
Transmits printer ID
Program Example
PRINT #1, CHR$(&H1B);"p";CHR$(0);CHR$(25);CHR$(250);
Bit Off/On Hex Decimal Function
0
Off 00 0 Printer disabled.
On 01 1 Printer enabled.
1-7 – – – Undefined.