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

From SoftMC-Wiki
Jump to: navigation, search
(Removed "The axis must be disabled before DISPLACEMENT is changed" tested in 0.4.11.x)
 
Line 1: Line 1:
 +
{{Languages|MC-Basic:axis.DISPLACEMENT}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=

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