P
ar
t
1: P
rog
ra
m
ming
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 125 of 909
To run the motor in Torque mode, use the T command and issue a G command for the new
torque value to take effect.
NOTE:
You must issue a G command for a new torque value to take effect in
Torque mode.
Internal encoder tracking still takes place and can be read by a host or program. However,
the value will be ignored for motion because the PID loop is inactive.
Torque Commands
The following commands set the torque slope and value. For more details on these
commands, see Part 2: SmartMotor Command Reference on page 238.
TS=formula
Set Torque Slope
The TS= command causes new torque settings to be reached gradually, rather than instantly.
Values may be from -1 to +2147483647. -1 disables the slope feature and causes new torque
values to be reached immediately. A TS setting of 65536 increases the output torque by one
unit per PID sample period.
T=formula
Set Torque Value, -32767 to 32767
In Torque mode, activated by the MT command, the drive duty cycle can be set with the T=
command. The following number or variable must fall in the range from-32767 to 32767. The
full-scale value relates to full-scale or maximum-duty cycle. At a given speed, there will be
reasonable correlation between drive duty cycle and torque. With nothing loading the shaft,
the T= command will dictate open-loop speed. A G command must be entered after the T=
command for the new value to take effect.
The following example increases torque, one unit every PID sample period, up to 8000 units.
MT
'Select torque mode.
T
=8000
'Final torque after the TS ramp that we want.
TS
=65536
'Increase the torque by 1 unit of T per PID sample.
G
'Begin move
Brake Commands
The following commands control the brake functions for the motion. For more details on these
commands, see Part 2: SmartMotor Command Reference on page 238.
BRKRLS
Brake Release - manual override command
Mechanically disengages brake (regardless of the brake operational mode)
BRKENG
Brake Engage - manual override command
Mechanically engages brake (regardless of the brake operational mode)
Part 1: Programming: Torque Commands
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...