I

Gem/n/ User’s Manual

 

MACRO-COMMANDS

“Macro-Instruction” is the ability of a printer to accept a single control code to do the work of a multi-command series of codes.

The Gemini’s macro command capability allows you to group printer commands together and execute them with a single com- mand. Now, this might not appear very useful at first glance, but _ some of you just might be scheming on ways to tame a wayward spreadsheet program or to get some cooperation from an un- cooperative word processor.

First, we have to define the macro instruction.

CH RS(27)CHR$(43). . . . . . .CH R$(30)

All of the commands you wish to group together in a macro replace the . . . . . . . . ‘s. You can use up to 16 characters to define your macro. For an example, we will define a macro to set our printer to emphasized and double-width print modes. First, we look these commands up in Appendix M. There we find that the codes to enable emphasized print are

ESC E

and to define double-width

ESCWl

After we have defined the macro, we only have to issue the select macro code to execute all the instructions in the macro. This code is

CH R$(27) CH R$(33)

720

Page 126
Image 126
Gemini Industries Printer user manual Macro-Commands, Esc E