MC-Basic:element.VELOCITYSCALE

From SoftMC-Wiki
Jump to: navigation, search
Language: English

This property specifies percentage of desired cruise velocity compared to maximal possible velocity for this type of movement. When element.VELOCITYSETTINGS=OFF, VSCALE is ignored and VCRUISE is used instead. 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 property is used inside a motion command to override the permanent value.

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