Atlas® Digital Amplifier Complete Technical Reference
143
6
SetMotorType
03h
Get Motor Type
03h
Syntax
SetMotorType
axis type
GetMotorType
axis
Motor Types
Arguments
Name
Instance
Encoding
type
Brushless DC (3 phase) 0
Microstepping (2 phase) 3
DC Brush
7
Packet
Structure
Description
SetMotorType
sets type of motor being driven by Atlas. This operation sets the number of phases for
commutation on the axis, as well as internally configuring the motion control IC for the motor type.
The following table describes each motor type, and the number of phases to be commutated.
GetMotorType
returns the configured motor type for the selected
axis
.
Restrictions
The motor type should only be set once for each axis, either via NVRAM initialization during device
startup, or immediately after reset using
SetMotorType
. Once it has been set, it should not be changed.
Executing
SetMotorType
will reset many variables to their motor type specific default values.
Only multimotor Atlases accept the
SetMotorType
command. When using multimotor Atlas with
Magellan separate
SetMotorType
commands must be sent, first to Atlas, then to Magellan.
C-Motion API
PMDResult
PMDSetMotorType
(PMDAxisInterface
axis_intf
, PMDuint8
type
)
PMDResult
PMDGetMotorType
(PMDAxisInterface
axis_intf
, PMDuint8*
type
)
DC Brush
Brushless DC
Microstepping
SetMotorType
checksum
02
h
15
8 7
0
Data
write
type
15
3
2
0
GetMotorType
checksum
03
h
15
8 7
0
Data
read
type
15
3
2
0
Motor type
Commutation
Brushless DC (3 phase)
3 phase
Microstepping (2 phase)
2 phase
DC Brush
None