Difference between revisions of "MC-Basic:axis.DISPLACEMENT"
m (1 revision) |
m |
||
Line 1: | Line 1: | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
− | '' | + | <''axis''>.Disp |
|SYNTAX= | |SYNTAX= | ||
− | '' | + | <''axis''>.Displacement = <''expression''><br> |
− | ?'' | + | ?<''axis''>.Displacement |
|AVAILABILITY= | |AVAILABILITY= | ||
Line 26: | Line 26: | ||
|RANGE= | |RANGE= | ||
− | + | ±MaxDouble | |
|UNITS= | |UNITS= | ||
− | User position units, as given by '' | + | User position units, as given by <''axis''>.POSITIONFACTOR. |
|DEFAULT= | |DEFAULT= |
Revision as of 15:19, 16 March 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