Difference between revisions of "MC-Basic:axis.COMPPOSITIONCOMMAND"
(Created page with '{{MC-Basic |SHORT FORM= <''axis''>.CompPCMD |SYNTAX= ?<''axis''>.CompPositionCommand |AVAILABILITY= Versions 3.6.20 and higher |DESCRIPTION= The Actual Corrected Position comm…') |
(AXY: new links) |
||
(16 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:axis.COMPPOSITIONCOMMAND}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 7: | Line 8: | ||
|AVAILABILITY= | |AVAILABILITY= | ||
− | + | Since Version 3.6.20 | |
|DESCRIPTION= | |DESCRIPTION= | ||
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. | 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. | ||
+ | |||
+ | [[File:POSITIONCOMPENSATION.PNG|800px]]<br> | ||
+ | Signal-flow diagram of position values. The generated [[MC-Basic:element.POSITIONCOMMAND|Position Command]] is corrected by the position backlash value and the compensation table value. These form the CompPositionCommand which is later multiplied by [[MC-Basic:axis.POSITIONFACTOR|PositionFactor]] to translate it into drive position units (counts) - [[MC-Basic:axis.COUNTCOMMAND|CCMD]]. The corresponding value of [[MC-Basic:axis.COUNTCOMMAND|CCMD]] is returned from the drive as [[MC-Basic:axis.COUNTFEEDBACK|CFB]], divided by PositionFactor and read as [[MC-Basic:axis.COMPPOSITIONFEEDBACK|CompPositionFeedback]] value. The actual [[MC-Basic:element.POSITIONFEEDBACK|PositionFeedback]] value is compensated back (subtracted) with compensation table value. | ||
|TYPE= | |TYPE= | ||
Line 16: | Line 20: | ||
|RANGE= | |RANGE= | ||
− | + | ± MaxDouble | |
|UNITS= | |UNITS= | ||
− | User Axis position units as given by < | + | User Axis position units as given by <''axis''>.PositionFactor |
|DEFAULT= | |DEFAULT= | ||
Line 31: | Line 35: | ||
|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 |
− | 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= | ||
− | * [[ | + | * [[MC-Basic:COMMON SHARED ... AS COMP|COMMON SHARED comp_name AS COMP]] |
− | + | * [[MC-Basic:COMMON SHARED ... AS COMP|COMMON SHARED comp_name AS COMP]] | |
+ | * [[MC-Basic:axis.COMPPOSITIONCOMMAND|axis.COMPPOSITIONCOMMAND]] | ||
+ | * [[MC-Basic:axis.COMPPOSITIONFEEDBACK|axis.COMPPOSITIONFEEDBACK]] | ||
+ | * [[MC-Basic:compTable.MINPOSITION|compTable.MINPOSITION]] | ||
+ | * [[MC-Basic:compTable.MAXPOSITION|compTable.MAXPOSITION]] | ||
+ | * [[MC-Basic:compTable.TARGETDATA|compTable.TARGETDATA]] | ||
+ | * [[MC-Basic:compTable.SOURCEDATA|compTable.SOURCEDATA]] | ||
+ | * [[MC-Basic:compTable.DIRECTION|compTable.DIRECTION]] | ||
+ | * [[MC-Basic:compTable.COMPACTIVE|compTable.CompActive]] | ||
+ | * [[MC-Basic:CREATECOMP|CREATECOMP]] | ||
+ | * [[MC-Basic:LOADCOMPDATA|LOADCOMPDATA]] | ||
+ | * [[MC-Basic:COMPSET|COMPSET]] | ||
+ | * [[MC-Basic:STORECOMPDATA|STORECOMPDATA]] | ||
}} | }} |
Latest revision as of 11:20, 13 September 2017
Language: | English • 中文(简体) |
---|
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.
Signal-flow diagram of position values. The generated Position Command is corrected by the position backlash value and the compensation table value. These form the CompPositionCommand which is later multiplied by PositionFactor to translate it into drive position units (counts) - CCMD. The corresponding value of CCMD is returned from the drive as CFB, divided by PositionFactor and read as CompPositionFeedback value. The actual PositionFeedback value is compensated back (subtracted) with compensation table value.
Short form
<axis>.CompPCMD
Syntax
?<axis>.CompPositionCommand
Availability
Since Version 3.6.20
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”)