Difference between revisions of "MC-Basic:axis.DISPLACEMENT"

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:MC-Basic:axis.DISPLACEMENT to MC-Basic:axis.DISPLACEMENT: Global renaming of Axystems: namespace into (Main):)
Line 46: Line 46:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:axis.POSITIONFACTOR|axis.POSITIONFACTOR]]
+
* [[MC-Basic:axis.POSITIONFACTOR|axis.POSITIONFACTOR]]
  
  
 
}}
 
}}

Revision as of 08:47, 22 May 2014

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

The axis must be disabled before DISPLACEMENT is changed.

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