Download Print this page

Star Micronics 10X User Manual page 128

Advertisement

~~
____________________________________ G_6_m_I"_I_U_S_6_"_S_M_B_"_U_B/
MACRO-COMMANDS
120
"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.
CHR$(27) CHR$(43) ....... CHR$(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
ESCW 1
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
CHR$(27) CHR$(33)
• •
• •
• •
• •
• •
• •
• •
• •
• •
• •
• •

Advertisement

loading

This manual is also suitable for:

15xGemini-10xGemini-15x