47
MTR_OFF
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Disable profile generation
none
42 (hex)
current axis
all axes
no
MTR_OFF disables profile generation. When profile generation is
disabled the sine-wave position is 'frozen' and no motion can occur until
it is enabled. When the profile generator is enabled, phased sine-wave
signals are generated by the trajectory generator and output on the
motor output signal lines.
Unless the motor command value is explicitly changed using the
SET_MTR_CMD or SET_BUF_MTR_CMD commands, after a
MTR_OFF command the motor will hold position
SET_MTR_CMD
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Write motor command value
1/write
62 (hex)
current axis
all axes
no
SET_MTR_CMD loads the motor command register with the specified
value. This register controls the amplitude of the mcrostepping signals
that are sent to the motor. The specified motor command is a 16-bit
signed number with range -32,767 to +32,767. Regardless of the motor
output mode (PWMor DAC16), a value of -32,767 represents the
largest negative direction motor level , a value of 0 represents no motor
(0) output level, and a value of 32,767 represents the largest positive
motor level.
GET_MTR_CMD
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Get motor command value
1/read
69 (hex)
current axis
all axes
-
GET_MTR_CMD returns the value of the motor command register. This
value will be equal to the value set after a SET_MTR_CMD command,
or after a SET_BUF_MTR_CMD with a subsequent UPDATE
command. The returned value is a 16 bit integer.
SET_BUF_MTR_CMD
Write double-buffered value to motor
output
1/write
77 (hex)
current axis
all axes
yes
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
SET_BUF_MTR_CMD loads the motor command register with the
specified value. It is identical to the SET_MTR_CMD except that it
requires an UPDATE command for the specified value to take effect.
GET_BUF_MTR_CMD
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Get double-buffered motor output value
1/read
69 (hex)
current axis
all axes
-
GET_BUF_MTR_CMD returns the value set using the
SET_BUF_MTR_CMD. The returned value is a 16 bit integer.
GET_OUTPUT_MODE
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Get current motor output mode
1/read
6e (hex)
global (all axes)
all axes
-
GET_OUTPUT_MODE returns the current motor output mode set using
the SET_OUTPUT_PWMand SET_OUTPUT_DAC16 commands. The
returned 16 bit word contains the motor output mode. The encoding is
as follows:
Returned Word Value
0
1
2
Output Mode
PWM
not used
DAC16
Mscellaneous
SET_ACTL_POS
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
Set actual axis position
2/write
4d (hex)
current axis
all axes
no
SET_ACTL_POS sets the current actual position (in encoder counts) as
well as the current target position (in mcrosteps) to the specified value.
The desired position is specified as a signed 32 bit number with an
allowed range of -1,073,741,824 to 1,073,741,823.