Difference between revisions of "MC-Basic:axis.COMPPOSITIONCOMMAND"
m (Text replace - "+/- " to "± ") |
|||
Line 31: | Line 31: | ||
|EXAMPLE= | |EXAMPLE= | ||
− | <comp>.SourceData[1][15] = 120.0 | + | <comp>.SourceData[1][15] = 120.0 position on axis |
− | <comp>.TargetData[1][15] = 0.125 | + | <comp>.TargetData[1][15] = 0.125 correction value regarding SourceData position |
Move <axis> 120.0 | Move <axis> 120.0 | ||
Line 39: | Line 39: | ||
Print <axis>.PCmd | Print <axis>.PCmd | ||
− | --> 120.0 | + | --> 120.0 (it’s the “expected user value”) |
Print <axis>.CompPCmd | Print <axis>.CompPCmd | ||
− | --> 120.125 | + | --> 120.125 (it’s the “real value”) |
|SEE ALSO= | |SEE ALSO= |
Revision as of 15:57, 17 March 2014
The Actual Corrected Position command query .This property returns the position command generated by the motion profiler after the correction value added to it. When no correction is used (i.e. all the comp tables involves the axis as its target is inactive) then this value would be identical to the Axis.Pcmd.
Short form
<axis>.CompPCMD
Syntax
?<axis>.CompPositionCommand
Availability
Versions 3.6.20 and higher
Type
Double
Range
± MaxDouble
Units
User Axis position units as given by <Axis>.PositionFactor
Scope
Task and Terminal
Limitations
Read Only
Examples
<comp>.SourceData[1][15] = 120.0 position on axis
<comp>.TargetData[1][15] = 0.125 correction value regarding SourceData position
Move <axis> 120.0
Print <axis>.PCmd
--> 120.0 (it’s the “expected user value”)
Print <axis>.CompPCmd
--> 120.125 (it’s the “real value”)