Macro Function Commands; Table 66 Macro Control Bit Definitions - TransAct POSjet 1500 Programmer's Manual

Transact posjet 1500: software guide
Hide thumbs Also See for POSjet 1500:
Table of Contents

Advertisement

EPOS Control Codes

Macro Function Commands

Function
Start/End Macro Definition
ASCII
[GS] :
Hexadecimal
1DH 3AH
Decimal
<29> <58>
Description
The [GS] : command starts or ends macro definition. Macro definition starts when the command
is received during normal operation and ends when it is received during the macro definition. The
macro definition can contain up to 2048 bytes. If the definition exceeds 2048 bytes, the excess
data will not be stored.
Function
Execute Macro
ASCII
GS ^ r t m
Hexadecimal
1DH 5EH r t m
Decimal
<29> <94> r t m
0 ≤ r ≤ 255
Range
0 ≤ t ≤ 255
m = See below
Description
The GS ^ r t m command executes a macro definition. The r specifies the number of times to
execute the macro. When Bit 1 of m is set, r is ignored, and the macro is executed infinitely. t
specifies the waiting time for executing the macro; it is t × 100 msec for every macro execution.
m specifies macro executing mode. When the LSB of m = 0, the macro executes r times
continuously with the interval specified by t. When the LSB of m = 1, the printer remains idle and
waits for the
button is pressed, the printer executes the macro once. The printer repeats the operation r times.
When Bit 5 of m is set, the current macro definition is saved into the printer's nonvolatile flash
memory as a start-up macro without executing it. The macro definition is executed upon power-
up using the parameters specified by the GS ^ r t m command. If the printer is powered-up into
self-test mode, the macro definition will not be executed. A saved macro definition can be deleted
with the GS _ command.
Bit
Off/On
0
Off
On
1-4
-
5
On
6
On
7
-
Page 234
®
POSjet
1500
Button to be pressed (after waiting for the period specified by t). After the
Hexl
Decimal
00
0
01
1
-
-
20
32
40
64
-
-

Table 66 Macro Control Bit Definitions

Rev M
Programmer' s Guide
Function
Macro executes r times continuously with
the interval specified by t
Button controlled operation with
time interval t
Undefined
Value given by r is ignored and macro is
run infinitely
Save start-up macro definition to flash
memory without executing
Undefined
EPOS ONLY
EPOS ONLY
Nov-07

Advertisement

Table of Contents
loading

Table of Contents