Paxar Gold 6037EX User Manual

Size:
2.78 Mb
Download

U S I N G U S E R V E A N D U C L I E N T 7

To prepare the printer to run an application, you must copy the application’s files to it from the PC. To do so:

1. Establish a connection between the printer and PC.

2. Copy files between the units.

E s t a b l i s h i n g a P C / P r i n t e r C o n n e c t i o n

You must establish a connection between the PC and the printer using the UClient and UServe software that runs on the PC and printer, respectively. To establish this connection:

1. Connect the printer and PC with a cable (part number 124054).

2. Turn on the printer and typeUSERVE at the DOS prompt. You will see:

USERVE 1.04 READY

_

Using UServe and UClient 7-1

3. Start UClient on the PC. You will see:

4. SelectProperties from the Connection Menu. You will see:

You set the communication defaults on this screen.

5. Select the PC communications port you are using and the baud rate for the printer and PC to use. Then, click OK.

6. SelectOpen from the Connection menu to open the connection between the two units.

7-2Programmer’s Manual

A Note About Connections

For a connection to be open, both sides (printer and PC) have to be ready. If only one side, or neither side, is ready, the connection is closed.

For the printer to be ready, UServe must be running (step 2, in ”Establishing a PC/Printer Connection”). For the PC to be ready, UClient must be running, the communication parameters must be set, and Open must have been selected from the Connection (steps 3-6,in ”Establishing a PC/Printer Connection”).

If one side stops being ready, the other one stays ready. To re-openthe connection, you only need to make the one side ready again. The connection between the units immediately opens.

Copying Files

To copy files between the units, you enter commands at the UClient prompt. Note that you copy files with the PC only (the one exception is the uruncommand—see“urun”.).

1. Leaving it powered on, the PC/printer connection intact, and UServe running, set aside the printer.

2. Typeucd d: at the UClient prompt to change the printer to the d: drive.

NOTE: Never copy application files to the c: drive on the printer. Always use the d: drive. This minimizes the possibility of accidentally corrupting system files.

Using UServe and UClient 7-3

3. Enter commands, one at a time, at the UClient prompt to copy files to the printer. See ”Example File Copy” to get an idea of how a file copy might work. UClient Commands” explains these commands in detail.

4. SelectClose from UClient’s Connection menu to sever the PC/printer connection.

5. SelectExit from UClient’s File menu to exit UClient.

6. TypeX on the printer’s keypad to exit UServe.

Example File Copy

Suppose that the application consists of a number of files in a directory called “App” on the PC:

AUTOEXEC.BAT

CONFIG.SYS

Several .BAT files

The application’s .EXE file.

FORMAT.FMT

GR1.GPH

Several .GPH files

Several .TXT files

All of them should go in the root D:\ directory.

7-4Programmer’s Manual

Following is the sequence of commands you would use to copy these files and create this directory structure on the printer.

NOTE: This command sequence assumes it starts in the c:\ root directory on both the printer and PC.

1.

ucd d:

Change the printer’s directory from c:\ to d:\.

2.

lcd app

Change the PC’s directory to c:\app.

3.

put *.*

Copy all of the files from c:\app (on the PC) to d:\ on

 

 

 

the printer.

 

U C l i e n t C o m m a n d s

 

Following are the UClient commands.

 

 

 

 

 

Command

Description

 

 

 

 

 

close

Closes the communication connection between the PC

 

 

 

and printer by taking the PC out of a ready state.

 

 

 

 

 

 

get

 

Copies a file from the printer to the PC.

 

 

 

 

 

help

Displays a list of available commands or help information

 

 

 

about a specific command.

 

 

 

 

 

 

lcd

 

Changes the directory on the PC.

 

 

 

 

 

ldel

Deletes a file on the PC.

 

 

 

 

 

 

ldir

 

Lists details about files and/or directories on the PC, as

 

 

 

specified.

 

 

 

 

 

lmd

Creates a directory on the PC.

 

 

 

 

 

 

lrd

 

Deletes a directory on the PC.

 

 

 

 

 

lwd

Displays the path to the current directory on the PC.

 

 

 

 

 

open

Puts the PC in a communications ready state.

 

 

 

 

 

ping

Confirms that the open PC/printer connection is valid.

 

 

 

 

 

 

put

 

Copies a file from the PC to the printer.

 

 

 

 

 

putbios

Copies a BIOS binary file from the PC to the printer.

 

 

 

 

 

puttrueffs

Copies a TrueFFS binary file from the PC to the printer.

 

 

 

 

 

quit

Exits UClient.

 

 

 

 

 

reboot

Restarts the printer.

 

 

 

 

 

Using UServe and UClient 7-5

Command

Description

 

 

setbaud

Sets the baud rate for communications between the

 

printer and the PC (overriding the default set from

 

UClient’s Connection menu.).

 

 

setport

Specifies the port to use on the PC for communication

 

between it and the printer (overriding the default set from

 

UClient’s Connection menu).

 

 

settimeout

Sets the length of time for the PC to wait for the printer

 

to respond to a command.

 

 

ucd

Changes the directory on the printer.

 

 

udel

Deletes a file on the printer.

 

 

udir

Lists details about files and/or directories on the printer,

 

as specified.

 

 

udiskfree

Displays the size of a printer drive and the amount of

 

available space it has.

 

 

umd

Creates a directory on the printer.

 

 

urd

Deletes a directory on the printer.

 

 

urun

Runs a DOS command or program on the printer.

 

 

uview

Displays a file’s contents on the printer.

 

 

uwd

Displays the path to the current directory on the printer.

 

 

Syntax Conventions

The syntax in this section uses the following conventions:

Bold Syntax items in bold are the command name.

Italics Items in italics are names of variables.

Italics Items in bold italics are values that a variable can take. [ ] Items in brackets are optional.

7-6Programmer’s Manual

c l o s e

Description

Closes the connection between the PC and printer by taking the PC out of a ready state. UServe stays running and the printer remains ready for communications.

Syntax

close

Parameters

None

Example

close

closes the connection between the printer and the PC displays “Connection Closed to Ultra” to confirm it.

g e t

Description

Copies a file from the printer to the PC.

NOTE: If a file by the same name already exists, it will overwrite the file without warning.

Syntax

get printerfile, [pcfile]

Parameters

printerfile

[pcfile]

The name and path of the source file.

The name and path of the destination file. If you do not specify this parameter, it gets the same name and path on the PC.

Using UServe and UClient 7-7

Example

get autoexec.bat

copies autoexec.bat from the printer to the PC, giving the file the same name on the PC. The PC displays something similar to the following:

Getting File: autoexec.bat [Unknown Size]

Bytes Received: 537

Complete

h e l p

Description

Displays a list of available commands or help information about a specific command.

Syntax

help [command]

Parameters

[command] The name of a command.

Example

help lrd

displays the following on the PC:

Command:

LRD

Description:

local remove directory

Parameters:

<local directory>

7-8Programmer’s Manual

l c d

Description

Changes the directory on the PC.

Syntax

lcd directory

Parameters

directory The directory to change to. This value can be:

a path to a particular directory.

The name of a subdirectory.

.. (indicating one directory higher than the current one)

Example

lcd c:\backups

changes the current directory to c:\backups and displays this path to confirm.

l d e l

Description

Deletes a file on the PC.

Syntax

ldel filename

Parameters

filename The name (and optionally, the path) of a file.

Example

ldel autoexec.bat

deletes autoexec.bat on the PC and displays Deleted File: autoexec.bat to confirm it.

Using UServe and UClient 7-9

l d i r

Description

Lists details about files and/or directories on the PC, as specified. Details include date and time of creation (or last update) and size.

Syntax

ldir [filedirspec]

Parameters

[filedirspec] The name (and optionally, the path) of a file or directory. The default is the current directory.

Example

ldir projects

displays the contents of the projects directory on the PC, such as the following:

.

03/14/2003

15:18:13

<DIR>

..

03/14/2003

15:18:13

<DIR>

9850

01/07/2003

17:34:22

<DIR>

adkpm.pdf

03/14/2003

15:18:13

1931471

adkpmcv.pdf

03/14/2003

14:59:06

1007901

app-a.doc

03/14/2003

11:04:34

33792

app-a.pdf

03/14/2003

11:54:12

85839

cover

03/14/2003

15:08:55

<DIR>

7-10Programmer’s Manual