Macros; Loading A Macro; Deleting A Macro; Executing A Macro - Datamax MP-Compact4 Programmer's Reference Manual

Datamax mp-compact4: reference manual
Hide thumbs Also See for MP-Compact4:
Table of Contents

Advertisement

PROGRAMMER'S REFERENCE MANUAL
Printer File System
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
!L
The
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.
Page 57

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MP-Compact4 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF