
8 GCS Commands
126
Version: 1.2.1
MS249E
C-863.12 Mercury Controller
8.6
Command Descriptions for GCS 2.0
#4 (Request Status Register)
Description:
Requests system status information.
Format:
#4
Arguments:
None
Response:
The response is bit-encoded. See below for the individual
codes.
Notes:
This command is identical in function to SRG? (p. 193), but
only one character is sent via the interface. Therefore #4
can also be used while the controller is performing time-
consuming tasks.
For the C-863.12, the response is the sum of the following
codes, in hexadecimal format:
Bit
15
14
13
12
11 10 9
8
Descript-
ion
On-target
state
Is
referencing
In
motion
Servo
mode
on
-
-
-
Error
flag
Bit
7
6
5
4
3
2
1
0
Descript-
ion
Digital
in-
put
line 4
Digital
in-
put
line 3
Digital
in-
put
line 2
Digital
in-
put
line 1
-
Positiv
e
limit
switch
Ref-
erence
switch
Nega-
tive
limit
switch
Example:
Send:
#4
Receive:
0x9005
Note: The response is in hexadecimal format. It means that
the axis is on target (on-target state =true), the servo mode
is on, no error has occurred, the states of the digital input
lines 1 to 4 are low, and the positioner is on the positive
side of the reference switch (limit switches are not active;
note that the logic of the signals is inverted in this
example).