Difference between revisions of "MC-Basic:element.TOTALTIME"

From SoftMC-Wiki
Jump to: navigation, search
(new page)
 
(Added reference to CURRENTTIME)
 
Line 1: Line 1:
{{Languages|MC-Basic:element.TOTALTIME}}
+
{{Languages|MC-Basic:element.TOTALTIME}}  
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 19: Line 19:
 
'''-1 '''– No motion active. <br>
 
'''-1 '''– No motion active. <br>
  
'''0''' – Cannot happen as there are no motions of zero duration. <br>  
+
'''0''' – Cannot happen as there are no motions of zero duration. <br>  
  
'''> 0''' – Total time of running motion.
+
'''> 0''' – Total time of running motion.
  
  
Line 53: Line 53:
  
 
|SEE ALSO=
 
|SEE ALSO=
 
+
* [[MC-Basic:element.CURRENTTIME|CURRENTTIME]]
  
 
}}
 
}}

Latest revision as of 12:03, 18 January 2026

Language: English  • 中文(简体)‎

Returns the total time of the motion currently being executing.

Values:

-2 – Not applicable (PrfType = 0 or 1).

-1 – No motion active.

0 – Cannot happen as there are no motions of zero duration.

> 0 – Total time of running motion.


NOTE-Info.svgNOTE
Note that in case of blending the TotalTime/CurrentTime of the first motion of the blending pair is returned! Once the blending ceased (only the second motion is executing, i.e. the first movement finished) the time values of the second motion are returned.

Short form

<element>.Ttime

Syntax

<element>?Ttime

Availability

Versions Since Version 4.5.25 and higher

Type

Long

Range

-2 to MaxInt

Units

milliseconds (ms)

Scope

Task, Terminal

Limitations

Read only

Examples

Axis
?A1.totaltime

Group
?G1totaltime

See Also