Avery Dennison Platinum 6039 JavaScript User Manual

Page 30

Advertising
background image

3-12 Programmer’s Manual

LastPrintStatus

Description

Retrieves status of the last MPCL packet processed by the Print Engine.

Syntax

LastPrintStatus

Parameters

None

Return Values

0

Successful.

703-793

A motion control error occurred. After the operator corrects the
printer condition, the application must call ClearSystemError to
reset the Motion Control subsystem. Refer to the 6039 Packet
Reference Manual
for more information.

Other
non-zero

Error has occurred. Refer to the 6039 Packet Reference Manual
for more information.

Example

<SCRIPT src="./jsUltra.js"></SCRIPT>

<SCRIPT type="text/javascript">

if (PRINTER.LastPrintStatus != 0) // Print Status

alert("Print Error");

</SCRIPT>

<BODY>

<OBJECT id=”PRINTER” style="LEFT: 0px; WIDTH: 0px; TOP: 0px;

HEIGHT: 0px"

classid=clsid:

19C1754D-BA97-43A1-A06D-496D2167400B>

</OBJECT>

//Instantiate

Class

</BODY>

Advertising