mc1451a-e ETC-unknow, mc1451a-e Datasheet - Page 52

no-image

mc1451a-e

Manufacturer Part Number
mc1451a-e
Description
Advanced Brushless Motor Control Chipset
Manufacturer
ETC-unknow
Datasheet
GET_INTRPT
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
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:
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:
If this command is executed when no interrupt condition is
present, the command will have no effect.
Bit #
0
1
2
3
4
5
6
7
8-10
11
12-15
Event
Motion complete
position wrap-around
breakpoint reached
position capture received
motion error
positive limit switch
negative limit switch
command error
not used, may be set to 0 or 1
commutation error
not used, may be set to 0
Return status of the interrupting axis
1/read
30 (hex)
interrupting axis
all axes
-
Reset interrupting condition events
1/write
32 (hex)
interrupting axis
all axes
no
52
GET_INTRPT_MASK
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
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:
CLR_STATUS resets (clears) all of the event bit conditions for the axis
(bits 0-7 and 11 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:
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
Event
Motion complete
position wrap-around
breakpoint reached
position capture received
motion error
positive limit switch
negative limit switch
command error
Get host interrupt mask
1/read
56 (hex)
current axis
all axes
no
Clear all event bit conditions
none
33 (hex)
current axis
all axes
no
Reset specific event bit conditions
1/write
34 (hex)
current axis
all axes
no

Related parts for mc1451a-e