![Datamax MP-Compact4 Скачать руководство пользователя страница 61](http://html2.mh-extra.com/html/datamax/mp-compact4/mp-compact4_programmers-reference-manual_3803216061.webp)
PROGRAMMER’S REFERENCE MANUAL
Printer File System
Page 57
Printer File System
This chapter describes how to store macros and graphics in the printer file system.
Macros
Commands and variable texts sent to the printer can be stored in the printer's file system
and retrieved on command. Such a sequence of data is called a macro and is equivalent to the
same commands received from the computer. Macros provide a convenient shorthand for long
command sequences, e. g. complex label layouts.
Macros can be loaded, deleted, and executed on command.
Loading a macro
The command to load a macro is:
!L M "<name>"
where <name> is the name to be assigned to the macro. The name can be any sequence
of printable characters (except the " character), up to 24 characters, and must be enclosed in
double quotes. If a macro with the same name already exists in the internal memory it will be
deleted and the new macro loaded in its place. Case is not significant in macro names.
The macro load command should be followed by the macro text. Loading is terminated by
the terminate command:
!L
The
!L
command will terminate the macro load. If no macro is being loaded this command
is ignored.
Deleting a macro
To delete a macro, just send the macro load command followed by the terminate command:
!L M “<name>“
!L
Executing a macro
The command for executing a macro is
!M "<name>"
where <name> is the name of the macro to be executed. If the macro <name> does not
exist, this command is ignored.
Any command can be included in a macro, except the macro execute command (i. e.
nested macros are not allowed).
Auto macro
If a macro with the name
AUTO
or
auto
is present in the file system, it will be executed
automatically when the printer is switched on.