M A C R O

Purpose

Defines or invokes a single command the software expands to multiple commands

 

during script translation.

Syntax

To define the macro ...

 

MACRO macro-name

 

BEGIN

 

macro-body

 

END

 

To invoke the macro ...

 

macro-namearg1 , arg2 , ... , arg99

Process

The MACRO command defines or invokes a macro. A macro is a single command

 

the software expands to multiple commands during script translation. Each time a

 

macro command appears, the software inserts the commands it generates into the

 

script.

NOTE:

Do Not use IF, SWITCH, or WHILE inside a macro.

 

Defining the Macro ...

 

The macro-nameis an identifier naming the macro. The macro-bodycontains the

 

commands defining what the macro does. The keywords BEGIN and END define

 

macro-body's boundary and limit the scope of control transfer to within the

 

boundary.

 

Keep macros in a separate macro file you include in the source script using the

 

INCLUDE command.

Rule:

You must define macros before invoking them.

 

Invoking the Macro ...

 

The macro matches arguments. The first argument replaces %1, the second

 

argument replaces %2, and so on, up to %99 arguments.

 

Labels are handled differently in macros. The label names inside the macro body

 

should use this form:

 

*macro-label-name$

 

where macro-label-nameis a unique name for the macro. The label can be up to

 

eight characters. This restriction helps avoid duplicate labels if a macro appears

 

within a function more than once.

 

As the compiler expands each macro ...

 

♦ it expands the labels.

 

♦ it expands each dollar sign ($) into a unique three-digit number.

5-58Command Reference

Page 80
Image 80
Monarch 9460 manual C R O, Macro macro-name, Macro-body, Defining the Macro, Invoking the Macro

9460 specifications

The Monarch 9460 is a cutting-edge printing solution designed to meet the needs of modern businesses and industries. This advanced printer combines high-performance capabilities with user-friendly features, making it an ideal choice for various applications, from industrial printing to high-volume document production.

One of the standout features of the Monarch 9460 is its exceptional printing speed. Capable of producing thousands of labels per hour, this printer is engineered to handle large-scale printing tasks efficiently. This speed does not compromise print quality; the Monarch 9460 delivers sharp, crisp images with precise color reproduction, ensuring that labels and documents are not only produced quickly but also look professional.

The Monarch 9460 employs advanced thermal transfer printing technology, which allows for high-resolution output that is resistant to smudging and fading. This durability is particularly important for labels that need to withstand harsh environments or extended periods of use. Additionally, the printer supports a variety of media types and sizes, making it versatile and adaptable to different printing needs.

Another key characteristic of the Monarch 9460 is its robust connectivity options. The printer supports multiple connectivity methods, including USB, Ethernet, and wireless options, allowing seamless integration into existing workflows and systems. This flexibility is crucial for organizations looking to streamline operations and improve productivity.

User convenience is also a priority with the Monarch 9460. Its intuitive control interface, complete with a color touchscreen display, simplifies the printing process, reducing the learning curve for new users. The printer also offers easy maintenance features, such as straightforward access to replace consumables, minimizing downtime and ensuring consistent performance.

In terms of software integration, the Monarch 9460 is compatible with a variety of printing software solutions, making it simple to incorporate into any automated system. It can also connect to various databases for dynamic label printing, enhancing efficiency in applications such as inventory management and shipping.

In summary, the Monarch 9460 stands out as an exceptional printing solution that combines speed, quality, versatility, and user convenience. Its advanced technologies and features make it a valuable asset for businesses looking to enhance their printing capabilities in a competitive landscape. Whether for high-volume label production or professional document printing, the Monarch 9460 is engineered to deliver remarkable performance consistently.