MC1151A PMD, MC1151A Datasheet - Page 46

no-image

MC1151A

Manufacturer Part Number
MC1151A
Description
(MC1x51A) Advanced Step Motor Control Chipset
Manufacturer
PMD
Datasheet
SET_LMT_SENSE
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
SET_LMT_SENSE sets the interpretation of the limit switch input bits.
This command provides added flexibility in interfacing to various
switch/sensor components. The signal level interpretation for the
positive and negative switch inputs are bit-programmable. A 0 in the
corresponding bit of the sense word indicates that the input will be
active high. A 1 in the sense word indicates that the input will be active
low. The sense word is encoded as follows:
The above bits are encoded as shown for the MC1451A. For the
MC251A axis 3 and 4 are not used. For the MC1151A axes 2, 3, and 4
are not used.
GET_LMT_SWTCH
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
GET_LMT_SWTCH returns the value of the limit switch input signals
for all valid axis. The returned word is encoded as follows:
The above bits are encoded as shown for the MC1451A. For the
MC251A axis 3 and 4 are not used. For the MC1151A axes 2, 3, and 4
are not used.
Bit #
0
1
2
3
4
5
6
7
8-15
Bit #
0
1
2
3
4
5
6
7
8-15
Description
Axis 1 positive limit switch (0 = active high)
Axis 1 negative limit switch (0 = active high)
Axis 2 positive limit switch (0 = active high)
Axis 2 negative limit switch (0 = active high)
Axis 3 positive limit switch (0 = active high)
Axis 3 negative limit switch (0 = active high)
Axis 4 positive limit switch (0 = active high)
Axis 4 negative limit switch (0 = active high)
not used (must set to 0)
Description
Axis 1 positive limit switch (1 = high)
Axis 1 negative limit switch (1 = high)
Axis 2 positive limit switch (1 = high)
Axis 2 negative limit switch (1 = high)
Axis 3 positive limit switch (1 = high)
Axis 3 negative limit switch (1 = high)
Axis 4 positive limit switch (1 = high)
Axis 4 negative limit switch (1 = high)
not used (set to 0)
Set limit switch bit sense
1/write
66 (hex)
global (all axes)
all axes
-
Get state of over-travel limit switches
1/read
67 (hex)
global (all axes)
all axes
-
46
The values returned by this command are not affected by the
SET_LMT_SENSE command.
LMTS_ON
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
LMTS_ON turns the limit switch sensing mechanism on. LMTS_ON re-
enables limit switch sensing whenever it has been disabled using the
LMTS_OFF command.
LMTS_OFF
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
LMTS_OFF turns the limit switch sensing mechanism off. LMTS_OFF
is used whenever it is desired that limit switch sensing not be active.
This command only disables the automatic setting of the negative
and positive limit switch bits in the status word. It does not affect
the status of these bits if they have already been set, nor does it
affect the GET_LMT_SWTCH command.
GET_HOME
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
GET_HOME returns the value of the home signal inputs for all valid
axes. The returned word is encoded as follows:
The above bits are encoded as shown for the MC1451A. For the
MC251A axis 3 and 4 are not used. For the MC1151A axes 2, 3, and 4
are not used.
Bit #
0
1
2
3
4-15
Description
Axis 1 home signal (1 = high)
Axis 2 home signal (1 = high)
Axis 3 home signal (1 = high)
Axis 4 home signal (1 = high)
not used (set to 0)
Set limit switch sensing on
none
70 (hex)
global (all axes)
all axes
-
Set limit switch sensing off
none
71 (hex)
global (all axes)
all axes
-
Get state of home signal inputs
1/read
05 (hex)
global (all axes)
all axes
-

Related parts for MC1151A