Difference between revisions of "MC-Basic:TORQUE"

From SoftMC-Wiki
Jump to: navigation, search
m (moved AXY:MC-Basic:axis.DIGITALTORQUE to AXY:MC-Basic:axis.TORQUE: The name DigitalTorque was from SAC application where there ware both Analog and Digital torque modes. Here there is only one therefore the name change.)
 
(51 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Out-of-date}}
+
{{Languages|MC-Basic:TORQUE}}  
 
{{MC-Basic
 
{{MC-Basic
|SHORT FORM= DTorque
+
|SHORT FORM= Torque
 
|SYNTAX=
 
|SYNTAX=
<nowiki>DigitalTorque <</nowiki>''Torque Value''> <nowiki>{TimeToTorque=<time>} {<TimeTorque>=<time>}</nowiki>'' <nowiki>{<StartType=<starttype value>}</nowiki>
+
Torque <''axis''> <''Torque Value''> {TorqueChangeRatio=<''value''>} {TorqueChangeRatioMax=<''value''>} {StartType = Generator-Completed, Immediate, Super-Immediate}
|AVAILABILITY=
+
|AVAILABILITY= Since Version 4.9.0
 
|DESCRIPTION=  
 
|DESCRIPTION=  
Executes Digital Torque command ,similar to Jog command with automatic scaling of the profiler-velocity to torque. Automatically causes the AMCS to enter digital torque mode. '''''<nowiki><Torque Value></nowiki>''''' Value of the target torque in mA if greater then TMAX then the later value will be used , sending a note to the user.<br>
 
'''''TimeToTorque''''' – time needed to reach the target torque value from the initial torque value.<br>
 
'''''TimeTorque''''' – duration of the torque command, if set to –1 (default) endless torque command. (Same as TimeJog)<br>
 
'''Type'''<nowiki><</nowiki>''Torque Value''> : Double<br>
 
''<nowiki><TimeToTorque>: Long</nowiki>''<br>
 
''<nowiki><TimeTorque>: - Long</nowiki>''<br>
 
  
 +
*If executed in a mode different than TORQUEMODE a note will be thrown, but the command will be executed as usual
 +
 +
*Interpolates torque command ([[MC-Basic:element.TORQUECOMMAND|TCMD]]) value from its initial value to the given torque value. The interpolation is done using the value of '''min([[MC-Basic:axis.TORQUECHANGERATIO|TorqueChangeRatio]],[[MC-Basic:axis.TORQUECHANGERATIOMAX|TorqueChangeRatioMax]])''' value as a rate of TCMD value change. No additional smoothing is done.
 +
 +
*The torque interpolation is done using same mechanisms as motion interpolation. Depending on the value of <''axis''>.StartType the interpolation will start after the previous torque command was given or immediately (same rules as move command).The value of inpos for the starttype will be ignored and GCOMP will be used instead.
 +
 +
*During execution the value of isMoving will be nonzero. Values of axis PCMD, VCMD, ACCELCOMMAND are not affected.
 +
 
|TYPE=
 
|TYPE=
|RANGE=:±DIPEAK
+
<''Torque Value''> - double
 +
|RANGE=
 
|UNITS=
 
|UNITS=
<nowiki><</nowiki>''Torque Value''> : MilliAmperes
 
 
''<nowiki><TimeToTorque>: MSec</nowiki>''
 
 
''<nowiki><TimeTorque>: MSec</nowiki>''
 
 
|DEFAULT=
 
|DEFAULT=
 
|SCOPE=
 
|SCOPE=
|LIMITATIONS=DigitalTorque OpMode.The axis must be attached to that task either implicitly (if no other task is accessing the axis) or explicitly using the “ATTACH” command.''' '''
+
|LIMITATIONS=  
|EXAMPLE= DigitalTorque trq ''StartType=Immediate''
+
|EXAMPLE= Torque Ax1 10.1 ''StartType=Immediate''
 
|SEE ALSO=
 
|SEE ALSO=
* [[AXY:MC-Basic:axis.OPMODE|OPMODE]]
+
* [[MC-Basic:axis.OPMODE|OPMODE]]
* [[AXY:MC-Basic:axis.TIMETOTORQUE|TIMETOTORQUE ]]
+
* [[MC-Basic:axis.TORQUECHANGERATIO|TORQUECHANGERATIO]]
* [[AXY:MC_Operational_Modes | MC Operational Modes]]
+
* [[MC-Basic:axis.TORQUECHANGERATIOMAX|TORQUECHANGERATIOMAX]]
* [[AXY:Operational_Modes | Operational Modes]]
+
* [[MC-Basic:axis.SUMTORQUE|SUMTORQUE]]
 +
 
 +
* [[MC-Basic:element.TORQUECOMMAND|TORQUECOMMAND]]
 +
* [[MC-Basic:axis.COUNTTORQUECOMMAND|COUNTTORQUECOMMAND]]
 +
 
 +
* [[MC-Basic:axis.TORQUEADDCOMMAND|TORQUEADDCOMMAND]]
 +
* [[MC-Basic:axis.COUNTTORQUEADDITIVECOMMAND|COUNTTORQUEADDITIVECOMMAND]]
 +
 
 +
* [[MC-Basic:element.TORQUEFEEDBACK|TORQUEFEEDBACK]]
 +
* [[MC-Basic:axis.COUNTTORQUEFEEDBACK|COUNTTORQUEFEEDBACK]]
 +
 
 +
* [[MC-Basic:axis.TORQUEDRIVECOMMAND|TORQUEDRIVECOMMAND]]
 +
* [[MC-Basic:axis.COUNTTORQUEDRIVECOMMAND|COUNTTORQUEDRIVECOMMAND]]
 +
 
 +
* [[MC-Basic:element.TORQUEGEARCOMMAND|TORQUEGEARCOMMAND]]
 +
* [[MC-Basic:element.TORQUEGEARFEEDBACK|TORQUEGEARFEEDBACK]]
 +
 
 +
* [[OperationalModes| Operational Modes]]
 +
 
 +
<br><br>
 +
* ''[[AXY:MC_Operational_Modes | MC Operational Modes]]''
 +
* ''[[AXY:Operational_Modes | Operational Modes]]''
 
}}
 
}}
 +
 +
[[Category:OperationalModes]]

Latest revision as of 08:20, 4 June 2020

Language: English  • 中文(简体)‎
  • If executed in a mode different than TORQUEMODE a note will be thrown, but the command will be executed as usual
  • Interpolates torque command (TCMD) value from its initial value to the given torque value. The interpolation is done using the value of min(TorqueChangeRatio,TorqueChangeRatioMax) value as a rate of TCMD value change. No additional smoothing is done.
  • The torque interpolation is done using same mechanisms as motion interpolation. Depending on the value of <axis>.StartType the interpolation will start after the previous torque command was given or immediately (same rules as move command).The value of inpos for the starttype will be ignored and GCOMP will be used instead.
  • During execution the value of isMoving will be nonzero. Values of axis PCMD, VCMD, ACCELCOMMAND are not affected.

Short form

Torque

Syntax

Torque <axis> <Torque Value> {TorqueChangeRatio=<value>} {TorqueChangeRatioMax=<value>} {StartType = Generator-Completed, Immediate, Super-Immediate}

Availability

Since Version 4.9.0

Type

<Torque Value> - double

Examples

Torque Ax1 10.1 StartType=Immediate

See Also