Top Navigational Bar

Initialization Of Printer Gives Value Of 128
DocumentID: 636657
Revision Date: 29-Feb-96 3:04:20 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Symptoms: When initializing the printer within a macro, a state value of 128 (printing in progress) was returned instead of the expected 256 (downloading a file). During a printer initialization, the status in the control printer screen reads Downloading File. At this point shouldn't {SYS}17 return a value of 256?

To duplicate this, create the following macro that should initialize the printer then exit WordPerfect.

{Print}7y
{WHILE}{SYSTEM}17~&256~
{BELL}
{STATUS PROMPT}Initializing...~
{WAIT}30~
{END WHILE}
{STATUS PROMPT}~
{Exit}ny

The WHILE statement does not seem to give a true result. The macro works fine if the second line in the macro is changed to:
{WHILE}{SYSTEM}17~&128~ Solutions: The 128 state is active throughout the initialization process. However, the 256 state value is active only while the file is actually being downloaded. While testing this with a macro that checked the system state every 10th of a second, the user found that the 256 state variable flipped on and off with each file being downloaded, thus showing why the above macro does not return a true value.

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.