Avery Dennison Monarch 9855 Programmer Manual User Manual
Page 12

1-8 NCL Programmer’s Manual
Using Functions
Functions are replaced by a string or numeric value. A function contains
one or more arguments and may be used multiple times in the same file.
%Field(FieldNumber) The function is replaced with the string in
Field(1).
Example Echo1="Printer Name"
Echo2=%Field(1) + %Field(2) + "-0" + %PNO
WaitSec=3
This code displays "Printer Name" on line 1 of the display and the results
of the strings contained in Field(1) and Field(2) with –0 and the next
printer number in sequence on line 2. The message displays for 3
seconds.
Using Strings
Strings can contain constants or functions. Use strings separately,
enclosed within quotation marks, or concatenated with a plus sign (+) in
between.
Example Echo1="IP" + "Addr:"
Echo2=%IPA
WaitSec=2
This code displays "IPAddr:" on line 1 of the display and the IP address
contained in the constant %IPA on line 2. The message displays for 2
seconds.