beautypg.com

Avery Dennison Monarch 9855 Programmer Manual User Manual

Page 30

background image

4-6 NCL Programmer’s Manual

U s i n g t h e P r i n t e r L i s t S e c t i o n

Add the Printer List section to an NCL file to assign a unique printer
number to each printer in your facility.

Syntax

[PrnList]
Keys=values

Keys Description

Values

IPAddr

IP address of the file server used to write printer list

nnn.nnn.nnn.nnn

FTP_User

User name for FTP server

"username"

FTP_Password

Password for FTP server

"password"

NextPrinter

Uses the first number from the last transferred file as the

Printer Number. Removes this number from the list and

writes the file to location specified in PrnListPath. The
printer number is available using %PNO.

1

gets the next number

PrnListPath

Relative path to file being uploaded

"sub-directory\filename"

XfrMode

Transfer mode

TFTP

FTP

Example [NCL_START]

[FileXfer]
Log="Get printer list file"
IPAddr=192.0.0.192
XfrMode=TFTP
Path="Config/PrnList.txt"
[PrnList]
Log="Get next printer number and update list"
IPAddr=192.0.0.192
XfrMode=TFTP
PrnListPath="Config/PrnList.txt"
NextPrinter=x
[NCL_END]

This NCL code in the [FileXfer] section loads a printer list file from
the file server at 192.0.0.192. The [PrnList] section sets up the
printer to return the modified file to the same location. The NextPrinter
command removes the first entry from the printer list, uses it as its printer
number, and tells the server to overwrite the old file. The printer number
is available as the constant %PNO.

For example, if the PrnList.txt file contains the following data: 1, 2,
3, 4. The number 1 is assigned and removed. The file is written back as
2, 3, 4 with the NextPrinter command.

This manual is related to the following products: