Spoll list, Status – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual
Page 323

15A. Driver488/DRV Commands
III. COMMAND REFERENCES - 15. Command References
III-308
Personal488 User’s Manual, Rev. 3.0
SPOLL LIST
SYNTAX
SPOLL LIST [UNTIL_RSV|WHILE_SRQ|ALL] addr[, addr...]
addr
is a device name (primary with optional secondary) or an external device
name to be Serial Polled.
RESPONSE
Number of devices serial polled followed by their responses
which are numbers in the range 0 to 255, separated by
commas.
MODE
CA
BUS STATES
ATN
•UNL, MLA, TAG, SPE, *ATN, data, ATN•SPD, UNT
SEE ALSO
SPOLL, PPOLL
EXAMPLES
PRINT#1,"SPOLL LIST ALL 16,17"
Serial Poll devices 16 and 17.
INPUT#2,SPSTAT
Receive the SPOLL status.
2,64,12
Device 16 responded with 64, and 17
responded with 12.
PRINT#1 “SPOLL LIST UNTIL_RSV 16,17"
Serial Poll first device 16.
INPUT#2, SPSTAT
Receive the SPOLL status.
1,64
Device 16 responded with 64.
SPOLL LIST
performs a Serial Poll of one or more bus devices, and responds with the number of
devices actually polled and their individual responses. An optional flag specifies the criteria Driver488
should use to terminate scanning the list of devices.
If
UNTIL_RSV
is chosen, Driver488 Serial Polls the devices until the first device whose
rsv
bit is set,
is found. If
WHILE_SRQ
is chosen, Driver488 Serial Polls the devices until the
SRQ
bus signal becomes
unasserted. If
ALL
is chosen, all the devices are Serial Polled. The default is
ALL
.
STATUS
SYNTAX
STATUS[name]
RESPONSE
Character string as described below.
MODE
Any
BUS STATES
None
SEE ALSO
ARM, SPOLL, GetError (Sub-Chapter 15B)
EXAMPLE
PRINT#1,"STATUS"
Read Driver488 status.
INPUT#2,A$
Receive status.
PRINT A$
Display status.
The
STATUS
command returns various items detailing the current state of Driver488/DRV. They are
returned as one long character string, based on the following table:
STATUS Item
(Starting Col., No. of Cols.)
Values and Description
Operating model (1,1)
C
: Controller; P: Peripheral
System Controller (2,1)
S
: System Controller; N: Not System Controller
Primary Bus Address (3,2)
00
to 30
:
Two-digit decimal number
Secondary Bus Address (5,2)
00
to 31: Two-digit decimal number, or blank if no secondary address
Address Change (7,1)
0
: Address change has not occurred; 1: Address change has occured
Addressed State (9,1)
T
: Talker; L: Listener; I:Idle
ByteIn (10,1)
0
: No byte in; 1: Byte in
ByteOut (11,1)
0
: No byte out; 1: Byte out
Service Request (12,1)
0
: SRQ is not asserted.; 1: SRQ is asserted.
Error Code (14,3)
nnn
: Three-digit error code
Triggered (18,2)
T0
: Trigger command not received; T1: Trigger command received
Cleared (21,2)
C0
: Clear command not received; C1: Clear command received.
Transfer in Progress (24,2)
P0
: No transfer in progress; P1: Transfer in progress
Error Message (27,x)
Text of error message (x = variable text)