MC-Basic:element.VELOCITYSCALE

From SoftMC-Wiki
Revision as of 12:06, 29 October 2020 by Miborich (talk | contribs)
Jump to: navigation, search
Language: English

This property specifies percentage of desired cruise velocity compared to maximal possible velocity for this type of movement. The motion generator attempts to reach this velocity during motion commands. The ability of the motion generator to reach this value is constrained by the value of ACCELERATION, DECELERATION, SMOOTHFACTOR and the final position. This properties used inside a motion command to override the permanent value.

Active only when VelocitySettings is set to 1.

Short form

<element>.Vscale

Syntax

<element>.VelocityScale = <expression>
?<element>.VelocityScale

Type

Double

Range

1 ... 100

Units

percentage

Default

50%

Scope

Task or Terminal

Limitations

To set the value within a task, the element must be attached to that task (using the ATTACH command).

Examples

Axis
A1.VelocityScale =30
Move A1 TargetPos Vscale = 20

Group
G1.VelocityScale =40
Move G1 {100, 200} Vscale = 22

See Also