CBM America CBM-262 user manual Execution of a macro GS n1 n2 n3

Models: CBM-262

1 131
Download 131 pages 23.34 Kb
Page 106
Image 106

Chapter 7 Print Control Codes

(61)Execution of a macro (GS ^ n1 n2 n3)

Code: [1D] h + [5E] h + n1 + n2 + n3

*(0 n1 FF) (0 n2 FF)

(0 n3 1) Data are expressed in Hex code.

This command executes the contents defined by a macro.

The meanings of n1~n3 are as follows.

n1: Number of times the macro is executed.

n2: Wait time when a macro is executed.

The printer waits n2 x 100 msec each time a macro is executed. n3: Macro execution mode

n3 = 0: Specifies continuous execution.

n3 = 1: Specifies execution when the paper feed key is pressed.

Continuous Execution: The macro is executed continuously the number of times in n1, with the time interval specified in n2 inserted between executions. Execution by pressing the paper feed key: After waiting the length of time specified in n2, the ERROR indicator blinks and the printer waits for the paper feed key to be pressed. When the key is pressed, the macro is executed one time. This operation is repeated the number of times specified in n1.

If this command is received during macro definition, it means that the macro defi- nition is terminated. At this time, the contents of the definition are cleared.

If the macro is not defined or if n1 = 0, nothing is executed.

During execution of a macro in the case that n3 = 1, paper feed cannot be done using the paper feed switch.

During the time the printer is waiting for macro execution, the ERROR indicator blinks.

7

96

Page 106
Image 106
CBM America CBM-262 user manual Execution of a macro GS n1 n2 n3