Optima DMC-1xxx and DMC-18x2 Command Reference
MT
i
137
MT
FUNCTION: Motor Type
DESCRIPTION:
The MT command selects the type of the motor and the polarity of the drive signal. Motor
types include standard servomotors, which require a voltage in the range of +/- 10 Volts,
and step motors, which require pulse and direction signals. The polarity reversal inverts
the analog signals for servomotors, and inverts logic level of the pulse train, for step
motors.
ARGUMENTS: MT n,n,n,n,n,n,n,n or
MTA=n where
n = 1
Specifies Servo motor
n = -1
Specifies Servo motor with reversed polarity
n = -2
Specifies Step motor with active high step pulses
n = 2
Specifies Step motor with active low step pulses
n = -2.5
Specifies Step motor with reversed direction and active high step pulses
n = 2.5
Specifies Step motor with reversed direction and active low step pulses
n = ?
Returns the value of the motor type for the specified axis.
USAGE: DEFAULTS:
While Moving
No
Default Value
1,1,1,1
In a Program
Yes
Default Format
1
Command Line
Yes
Controller Usage
ALL CONTROLLERS
OPERAND USAGE:
_MTn contains the value of the motor type for the specified axis.
RELATED COMMANDS:
"
CE
"
Configure encoder type
EXAMPLES:
MT 1,-1,2,2
Configure a as servo, b as reverse servo, c and d as steppers
MT ?,?
Interrogate motor type
V=_MTA
Assign motor type to variable