Guardian Programming Reference Summary for pTAL and TAL
SETMODE Operations
Guardian Programming Reference Summary for pTAL and TAL—522631-001
11-11
37 Line printer (subtype 1, 4, 5, or 6): Get device status
The param1 parameter is not used with function 37.
The param2 parameter 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)
All other bits are undefined.
.<5> = DOV, data overrun 0 = no overrun
1 = overrun occurred
.<7> = CLO, connector loop open 0 = 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
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.
<function> Parameters and Effect