beautypg.com

Avery Dennison Monarch 9855 Programmer Manual User Manual

Page 62

background image

A-2 NCL Programmer’s Manual

T r a n s f e r r i n g a F i l e

This code uses FTP to transfer a file from the network to the printer.

[FileXfr]
IPAddr=192.0.0.192
FTP_User=Whseshift1
FTP_Password="Paxar1"

FTP_Path="Xfer\Config.txt" ;

sends the file Config.txt

;

from the Xfer directory to the

;

printer

This code uses TFTP to transfer a file from the network to the printer.

[FileXfr]
IPAddr=192.0.0.192

TFTP_Path="Xfer\Config.txt" ;

sends the file Config.txt

;

from the Xfer directory to the

;

printer

U s i n g a L o g F i l e

The following code shows how to enter information into a log file and to
upload that log file to the network. In addition to specific comments
added in this sample, the printer logs all of the transactions in the NCL
file.

Log="Acme Company"

;

This line is written as-is to the log

;

for use as a comment

[Log] ;

The logging section

IPAddr=10.20.30.40 ;

IP address of the TFTP logging

;

server

Path="Log\MyLog.txt" ;

Path and filename of log to be

;

written. The above line sets a flag

;

read at the end of NCL

;

processing.

Clear=1 ;

Command to clear the log buffer

;

(after log file is sent)

This manual is related to the following products: