Guardian Programming Reference Summary for C
SETMODE Operations
Guardian Programming Reference Summary for C—522630-001
11-10
33 To determine the actual value for port number, refer to specifications on your
own network.
Seven-track tape drive: Set conversion mode
param1 = 0 ASCIIBCD (even parity) (default)
= 1 BINARY3TO4 (odd parity)
= 2 BINARY2TO3 (odd parity)
= 3 BINARY1TO1 (odd parity)
36 Allow requests to be queued on $RECEIVE based on process priority
param1
bit 15 = 0 use first-in-first-out (FIFO) ordering (default).
= 1 use process priority ordering.
Theparam2 parameter is not used with function 36.
37 Line printer (subtype 1, 4, 5, or 6): Get device status
Theparam1 parameter is not used with function 37.
Theparam2 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.
bit 5 = DOV, data overrun 0 = no overrun
1 = overrun occurred
bit 7 = CLO, connector loop open 0 = not open
1 = open (device unplugged)
bit 8 = CID, cable identification 0 = old cable
1 = new cable
bit 10 = PMO, paper motion 0 = not moving
1 = paper moving
bit 11 = BOF, bottom of form 0 = not at bottom
1 = at bottom
bit 12 = TOF, top of form 0 = not at top
1 = at top
bit 13 = DPE, device parity error 0 = parity OK
1 = parity error
bit 14 = NOL, not on line 0 = on line
1 = not on line
bit 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.