MC-Basic:axis.DISPLACEMENT

From SoftMC-Wiki
Jump to: navigation, search
Language: English  • 中文(简体)‎

This property stores an offset to the actual axis position. It is used to change the way the values of POSITIONCOMMAND and POSITIONFEEDBACK appear. If PCMD/actual refers to the actual position command being sent to the drive, and PCMD/user refers to the value of POSITIONCOMMAND being presented to you, DISPLACEMENT relates them as follows:

PCMD/user = PCMD/actual - DISPLACEMENT

and similarly for POSITIONFEEDBACK:

PFB/user = PFB/actual - DISPLACEMENT

Before the value of DISPLACEMENT is changed, it must first be set to zero.

Short form

<axis>.Disp

Syntax

<axis>.Displacement = <expression>

?<axis>.Displacement

Availability

All versions

Type

Double

Range

±MaxDouble

Units

User position units, as given by <axis>.POSITIONFACTOR.

Default

0

Scope

Configuration, Task or Terminal

Limitations

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

Examples

Axis1.Displacement = Axis.Pcmd

See Also