48
This command causes the actual position error to be set to 0.
The loaded position is utilized immediately. No UPDATE is
required for the command to take effect.
SET_LMT_SENSE
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Set limit switch bit sense
1/write
66 (hex)
global (all axes)
all axes
-
SET_LMT_SENSE sets the interpretation of the limt 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:
Bit #
0
1
2
3
4-15
Description
Axis 1 positive limt switch (0 = active high)
Axis 1 negative limt switch (0 = active high)
Axis 2 positive limt switch (0 = active high)
Axis 2 negative limt switch (0 = active high)
not used (must set to 0)
The above bits are encoded as shown for the MC1241A. For the
MC1141A axis 2 is not used.
GET_LMT_SWTCH
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Get state of over-travel limit switches
1/read
67 (hex)
global (all axes)
all axes
-
GET_LMT_SWTCH returns the value of the limt switch input signals
for all valid axis. The returned word is encoded as follows:
Bit #
0
1
2
3
4-15
Description
Axis 1 positive limt switch (1 = high)
Axis 1 negative limt switch (1 = high)
Axis 2 positive limt switch (1 = high)
Axis 2 negative limt switch (1 = high)
not used (set to 0)
The above bits are encoded as shown for the MC1241A. For the
MC1141A Axis 2 will always be set to 0.
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:
Set limit switch sensing on
none
70 (hex)
global (all axes)
all axes
-
LMTS_ON turns the limt switch sensing mechanismon. LMTS_ON re-
enables limt switch sensing whenever it has been disabled using the
LMTS_OFF command.
LMTS_OFF
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Set limit switch sensing off
none
71 (hex)
global (all axes)
all axes
-
LMTS_OFF turns the limt switch sensing mechanismoff. LMTS_OFF
is used whenever it is desired that limt 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 state of home signal inputs
1/read
05 (hex)
global (all axes)
all axes
-
GET_HOME returns the value of the home signal inputs for all valid
axes. The returned word is encoded as follows:
Bit #
0
1
2-15
Description
Axis 1 home signal (1 = high)
Axis 2 home signal (1 = high)
not used (set to 0)
The above bits are encoded as shown for the MC1241A. For the
MC1141A Axis 2 will always be set to 0.
RESET
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Reset chip set
none
39 (hex)
global (all axes)
all axes
No
RESET resets the entire chip set. This command performs the same
sequence as a hardware reset. At the end of this operation the chip set
will be in the default or powerup condition, defined as follows: