beautypg.com

Avery Dennison Monarch 9855 Programmer Manual User Manual

Page 11

background image

Introduction 1-7

Using Constants

Constants are replaced by a string or numeric value. Use constants to
generate unique log (or configuration) file names or in mathematical
expressions.

These constants are useful to determine

a printer’s IP address, subnet mask, or location (perform a search).

which file goes with a particular printer?

when a log file was created based on time and/or date.

%IPA

The IP address is substituted for %IPA and dots (‘.’) are replaced
with dashes (‘-‘).

%MAC The MAC address is substituted for %MAC and dots (‘.’) are

replaced with dashes (‘-‘).

%PUC The value of a Power-Up Counter is inserted in place of %PUC.

The counter is set to zero when the printer is turned on or reset
and incremented each time a log file is sent to the host.

%DAT The current date is substituted for %DAT and slashes (‘/’) are

replaced with dashes (‘-‘). The format is YY-MM-DD.

%TIM

The current time is substituted for %TIM and colons (‘:’) are
replaced with dashes (‘-‘). The format is HH=MM=SS.

%DNT The current date and time are substituted for %DNT and slashes

(‘/’) and colons (‘:’) are replaced with dashes (‘-‘). The format is
YY-MM-DD_ HH=MM=SS.

%NSA Network subnet address. This is the logical AND of the printer's

IP address and the subnet mask. This is a decimal string,
separated by dots or a LONG in numeric operations.

%PNO The printer number found by the NextPrinter command.

%SNM The subnet mask as a decimal string, separated by dots or as a

LONG in numeric operations.

Note:

The time comes from the network's time server (if available), not
from the file transfer server (FTP or TFTP).

Example "Logs/PX_%IPA_%DAT.log"

This line generates a filename similar to:

"Logs/PX_192-0-0-192_06-06-20.log"

This manual is related to the following products: