RC Commands
R&S
®
OSP
263
User Manual 1178.7100.02 ─ 05
●
: 4 input channels
●
: 4 input channels
The return value is a set of single integer
decimal
numbers that represent the state of
all queried input channels per module. Each integer is in the range of 0 to 65535:
●
0
: all channels are logical 0 or low
●
65535
: all channels (maximum 16) are logical 1 or high, where 65535 = 2
16
-1
When converted to a
binary
number, each 1 or 0 digit shows the state of one channel.
This representation starts with the lowest digit for channel one, up to the highest digit
for channel 16.
See also
.
Query parameters:
<module names>
(@FxxMyy,FxxMyy,FxxMyy,...)
Selects the modules that you want to query for their I/O chan-
nels.
Identify the modules by their frame IDs Fxx and module num-
bers Myy. For a description of these parameters, refer to
Write the combined frame/module names FxxMyy, separated by
commas, inside an expression of two brackets and the "@" sign.
Do not use blank spaces or quotation marks in this expression.
Example:
(@F01M01,F01M06,F02M03)
Only for querying
one single
module, you can use syntax without
"
(@...)
", for example:
F01M01
If a module that you specify does not exist or does not support
READ:IO:IN?
(having no input channels), the query returns no
result and a SCPI error is generated. You can query the error
with
For example, with a query
READ:IO:IN? (@F01M06)
, the
result can be:
-222,"Data out of range;Invalid index. frame F01:
no module connected to M06,READ:IO:IN? F01M06"
Or with a query
READ:IO:IN? (@F01M03)
, the result can be:
-170,"Expression error;module on connector M03
does not support input channels,READ:IO:IN?
F01M03"
Return values:
<input channel
values>
Comma-separated list of integer decimal numbers that represent
the queried input channel states as described above.
Example:
READ:IO:IN? (@F01M02)
Return value:
4
The 16-bit binary equivalent of the value 4 is
0000 0000 0000 0100
. Input channel 3 (one-based) of the
I/O module at position M02 in the switch unit F01 is in the high
state (1). All other channels are in the low state (0).
READ Commands