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

From SoftMC-Wiki
Jump to: navigation, search
(Created page with '{{MC-Basic |SHORT FORM= ''<axis>''.Disp |SYNTAX= ''<axis>''.Displacement ''= <expression>''<br> ?''<axis>''.Displacement |AVAILABILITY= All versions |DESCRIPTION= This prope…')
 
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:axis.DISPLACEMENT}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
''<axis>''.Disp
+
<''axis''>.Disp
  
 
|SYNTAX=
 
|SYNTAX=
''<axis>''.Displacement ''= <expression>''<br>
+
<''axis''>.Displacement = <''expression''><br>
  
?''<axis>''.Displacement
+
?<''axis''>.Displacement
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Line 26: Line 27:
  
 
|RANGE=
 
|RANGE=
+/- MaxDouble
+
±MaxDouble
  
 
|UNITS=
 
|UNITS=
User position units, as given by ''<axis>''.POSITIONFACTOR.
+
User position units, as given by <''axis''>.POSITIONFACTOR.
  
 
|DEFAULT=
 
|DEFAULT=
Line 38: Line 39:
  
 
|LIMITATIONS=
 
|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).
 
To set the value within a task, the axis must be attached to that task (using the ATTACH command).
Line 46: Line 47:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:axis.POSITIONFACTOR|axis.POSITIONFACTOR]]
+
* [[MC-Basic:axis.POSITIONFACTOR|axis.POSITIONFACTOR]]
  
  
 
}}
 
}}

Latest revision as of 09:21, 18 April 2017

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