44
GET_INTRPT_MASK
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Get host interrupt mask
1/read
56 (hex)
current axis
all axes
no
GET_INTRPT_MASK returns the interrupt mask set by the
SET_INTRPT_MASK command. The returned value is a bit-encoded
mask, described in the SET_INTRPT_MASK command.
Status/Mode
CLR_STATUS
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Clear all event bit conditions
none
33 (hex)
current axis
all axes
no
CLR_STATUS resets (clears) all of the event bit conditions for the axis
(bits 0-7 of the status word). The host interrupt line is not affected by
this command. This command is useful for clearing all event bits during
initialization, or during on-line usage if the interrupt line and associated
commands are not being used. For a detailed description of the status
word event bits, see the GET_STATUS command.
This command does not affect the status of the host interrupt line,
only the status event-bits themselves. To reset the host interrupt
line, a RST_INTRPT command must be sent.
RST_STATUS
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Reset specific event bit conditions
1/write
34 (hex)
current axis
all axes
no
RST_STATUS resets (clears) the condition event bits for the current
axis, using a data word mask. The data word is encoded as a field of
bits, with each bit representing a possible condition event. For each
status word event bit a 1 value in the specified data word will cause the
status bit to remain unchanged, while a 0 will reset the corresponding
event. The bit encoding is as follows:
Bit #
0
1
2
3
4
5
6
7
8-15
Event
Motion complete
position wrap-around
breakpoint reached
position capture received
motion error
positive limt switch
negative limt switch
command error
not used, may be set to 0 or 1
GET_STATUS
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Get axis status word
1/read
31 (hex)
current axis
all axes
-
GET_STATUS returns the status of the current axis.The bit encoding of
the returned word is as follows:
Bit #
0
1
2
3
Event
motion complete (1 indicates complete)
position wrap-around (1 indicates wrap)
update breakpoint reached (1 indicates reached)
position capture received (1 indicates capture has
occurred)
motion error (1 indicates motion error)
positive limt switch (1 indicates limt switch trip)
negative limt switch (1 indicates limt switch trip)
command error (1 indicates command error)
motor on/off status (1 indicates on)
axis on/off status (1 indicates on)
In-motion bit (1 indicates axis is in motion)
reserved (may be 0 or 1)
current axis #(13 bit = high bit, 12 bit = low bit)
reserved (may be 0 or 1)
4
5
6
7
8
9
10
11
12,13
14,15
Bits 0-7 are set by the chipset, and must be reset by the host
(using CLR_STATUS, RST_STATUS, or RST_INTRPT commands).
Bits 8, 9, 10, 12, and 13 are continuously maintained by the chipset
and are not set or reset by the host.
GET_MODE
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Get axis mode word
1/read
48 (hex)
current axis
all axes
-
GET_MODE returns the mode word for the axis.The bit encoding of the
returned word is as follows:
Bit #
0-6
7
Event
Contains no host-useable information.
Stop on motion error mode flag. 1 indicates auto
stop is on.
Internal use only. Contains no host-useable data
Contains no host-useable information
Auto update flag. 1 indicates auto update is
disabled.
8
9
10