05.01.2013 Views

Downloading - Weber Marking Systems

Downloading - Weber Marking Systems

Downloading - Weber Marking Systems

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PORT-CLOSE<br />

PORT-OPEN<br />

PORT-READ<br />

Closes an opened communication port.<br />

Syntax: PORT-CLOSE = port<br />

Notes:<br />

port is COMn or LPTn.<br />

Appendix C: Automated Print Control<br />

This command closes only the port opened by PORT-OPEN.<br />

Opens a communication port.<br />

Syntax: PORT-OPEN = port [, speed, parity, bytesize, stopbits]<br />

Notes:<br />

port specifies the device in the form of COMn (where n is 1-9), or<br />

LPTn, where n is 1-3.<br />

speed, parity, bytesize and stopbits are used to set up the port for<br />

COMn only.<br />

On a successful open, $ ERRORCODE is 0. On failure, $ ERRORCODE<br />

is 1.<br />

Reads bytes from a communication port.<br />

Syntax: PORT-READ = port, nbytes, $data<br />

Note:<br />

port is COMn or LPTn.<br />

nbytes specifies number of bytes to read.<br />

$data is the data read from the port.<br />

The port must be opened by PORT-OPEN.<br />

$ERRORCODE<br />

0 = Success<br />

1 = Failure<br />

Legitronic User Manual (v3.4) 203

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!