Units

unitAngleSet

unitAngleSet(unitAngle:= UnitAngle)

Set the unit for angles to unitAngle. The default is unitAngleDegree. The unit for angles applies to all NC-related functions like transRotX. It does not apply to ST-standard functions like sin. For this reason the interpreter offers a set of NC-specific counterparts like gSin that consider the angle unit.

UnitAngle

Enumeration of the following values:

unitAngleRadian: 0…2pi
unitAngleDegree: 0…360
unitAngleGon: 0…400
unitAngleTurn: 0…1

.

unitLengthSet

unitLengthSet(unitLength:= UnitLength)

Set the unit for lengths to unitLength. The default is unitLengthMillimeter. The unit for length applies to all NC-related functions like G01 or zeroOffsetShiftSet(…).

UnitLength

Enumeration of the following values:

unitLengthMeter
unitLengthCentimeter
unitLengthMillimeter
unitLengthMicrometer
unitLengthNanometer
unitLengthInch
unitLengthFoot

.

unitTimeSet

unitTimeSet(unitTime:= UnitTime)

Set the unit for time to unitTime. The default is unitTimeSecond. The unit for time applies to all NC-related functions like G04. It does not apply to ST-standard functions like currentLdt().

UnitTime

Enumeration of the following values:

unitTimeSecond
unitTimeMillisecond
unitTimeMicrosecond
unitTimeMinute
unitTimeHour

.

unitVelocitySet

unitVelocitySet(unitLength:= UnitLength, unitTime:= UnitTime)

Set the unit for velocity to unitLength/unitTime. The default is unitLengthMillimeter/unitTimeMinute. The unit for velocity applies to all NC-related functions. It is used by the F-parameter for instance.