43
GET_BRK_PNT
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Get break point comparison value
2/read
57 (hex)
current axis
all axes
no
GET_BRK_PNT returns the breakpoint comparison value set using the
SET_BRK_PNT command. The returned value is a 32-bit number with
units of either cycles or usteps (depending on the current breakpoint
mode).
Interrupt Processing
SET_INTRPT_MASK
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Set host interrupt mask
1/write
2f (hex)
current axis
all axes
no
SET_INTRPT_MASK sets the interrupt mask so that interrupt events
can be individually masked off. When a non-masked interrupt occurs in
any axis, the interrupt signal to the host is activated (HostIntrpt pin on
I/O chip). The host can choose to ignore or respond to the interrupt.
Once an interrupt has been generated, no new interrupts will be
generated until a RST_INTRPT command is given, after which the
interrupt signal to the host will be cleared, and a new interrupt (on any
axis) can be generated. The associated data word is encoded as a field
of bits, with each bit representing a possible interrupting condition. A 1
value in the mask bit will cause the corresponding event to generate an
interrupt, while a 0 will stop the corresponding event frominterrupting
the host. The bit encoding is as follows:
Bit #
0
1
2
3
4
5
6
7
8-15
Event
Motion complete
position wrap-around
update breakpoint reached
position capture received
motion error
positive limt switch
negative limt switch
command error
not used, must be set to 0
GET_INTRPT
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Return status of the interrupting axis
1/read
30 (hex)
interrupting axis
all axes
-
GET_INTRPT returns the status of the axis that generated a host
interrupt. The current axis number will not be changed after executing
this command. See GET_STATUS for a definition of the returned status
word. If this command is executed when no interrupt condition is
present, the status of the current axis will be returned.
If this command is executed when no interrupt condition is
present, the command will return the status of the current axis
(same as GET_STATUS command).
RST_INTRPT
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Reset interrupting condition events
1/write
32 (hex)
interrupting axis
all axes
no
RST_INTRPT resets (clears) the interrupt condition bits for the axis that
caused a host interrupt by masking the interrupting axis status word
with the specified data word. In addition, the host interrupt signal
(HostIntrpt pin on I/O chip) is de-activated.The data word is encoded as
a field of bits, with each bit representing a possible interrupting
condition. For each status word event bit a 1 value in the specified 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
If this command is executed when no interrupt condition is
present, the command will have no effect.