Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (S)
Guardian Procedure Calls Reference Manual522629-013
14-79
SETMODE Procedure
37 Line printer (subtype 1, 4, 5, or 6): Get device status
param1 is not used with function 37.
param2 is not used with function 37.
last-params = status of device. Status values are:
last-params for printer (subtype 1 or 5) (only last-params[0] is used)
.<5> = DOV, data overrun 0 = no overrun
1 = overrun occurred
.<7> = CLO, connector loop open0 = not open
1 = open (device unplugged)
.<8> = CID, cable identification 0 = old cable
1 = new cable
.<10> = PMO, paper motion 0 = not moving
1 = paper moving
.<11> = BOF, bottom of form 0 = not at bottom
1 = at bottom
.<12> = TOF, top of form 0 = not at top
1 = at top
.<13> = DPE, device parity error 0 = parity OK
1 = parity error
.<14> = NOL, not on line 0 = on line
1 = not on line
.<15> = NRY, not ready 0 = ready
1 = not ready
All other bits are undefined.
Note:
Ownership, Interrupt Pending, Controller Busy, and Channel Parity errors are
not returned in
last-params; your application program "sees" them as
normal file errors. Also, CID must be checked when PMO, BOF, and TOF
are tested, because the old cable version does not return any of these
states.
Table 14-4. SETMODE Functions (page 12 of 34)
function Parameters and Effect