MC-Basic:element.VELOCITYCRUISE

From SoftMC-Wiki
Revision as of 06:41, 22 April 2022 by Hallel (talk | contribs) (Added explanation about affect of VELOCITYSETTINGS on vcruise)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文(简体)‎

This property specifies the desired cruise velocity. When element.VELOCITYSETTINGS=ON, VCRUISE is ignored and VSCALE is used instead. The motion generator attempts to reach VCRUISE 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>.Vcruise

Syntax

<element>.VelocityCruise = <expression>
?<element>.VelocityCruise

Availability

All versions

Type

Double

Range

Greater than 0, less than <element>.VELOCITYMAX

Units

User velocity units, as given by <element>.VELOCITYFACTOR

Default

Group - 250 counts per msec
Axis - 500 counts per msec

Scope

Task or Terminal

Limitations

The actual cruise velocity cannot exceed the limit set by VELOCITYMAX. If this command is issued with VCRUISE greater than VMAX, the command is executed, but the velocity is limited by VMAX.

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

Examples

Axis
A1.VelocityCruise =67
Move A1 TargetPos Vcruise = xaxis.vmax

Group
G1.VelocityCruise =67
Move G1 {100, 200} Vcruise = xaxis.vmax

See Also