System information
G2T Programmers Guide Rev-A 17-Nov-2014
38
A non-zero result indicates the need to check systematically the
various status registers to determine the exact problem. It does
not indicate the nature of the problem. The actual value returned
is at best meaningless and at worst, misleading. A non-zero result is
of no value in determining what the problem is only in determining
that there was a problem.
Reception of the response can be interpreted by the controller as
an indication that the switch has completed the previous
operation and is ready to accept the next command.
5.2.2.5. QUEry? command
This command is used to query the switch module whether it is a
single relay, or all of the relays.
QUEry? [FRom] [OUput] output [, [TO] [INput] input] [, [ON]
[MOdule] module | Any]
The response is the input to which the output is connected or 0 if
it's disconnected. If an input is specified and the output is not
connected or connected to a different input, it is flagged as an
execution error. Queries regarding one output are checked
against the module's response to a Verify command. Queries with
the ALL parameter are "verified" against the system’s current
configuration memory.
Command examples:
• QUE? 1 (the response would be the input number that is
connected to the specified output port)
• QUE? 1,1
• QUE? all (the response would be the number of outputs
being reported on, followed by the inputs that are
connected starting with output 1 and ending with the last
output of the unit)
• QUE? all , ,1 (returns connected outputs on module 1)
• QUE? all , ,1; QUE? all , ,2; QUE? all , ,3 (returns connected
outputs on three installed modules)
• QUE? any,all (For fan-in systems, the response would be the
number of inputs being reported on, followed by the
outputs that are connected starting with input 1 and
ending with the last input of the unit)