Difference between revisions of "MC-Basic:axis.DIRECTION"
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= ''<axis>''.Direction ''= <expression>''<br> ?''<axis>''.Direction |AVAILABILITY= All versions |DESCRIPTION= This property allows you to def…') |
m |
||
(10 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:axis.DIRECTION}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 4: | Line 5: | ||
|SYNTAX= | |SYNTAX= | ||
− | '' | + | <''axis''>.Direction = <''expression''><br> |
− | ?'' | + | ?<''axis''>.Direction |
|AVAILABILITY= | |AVAILABILITY= | ||
Line 15: | Line 16: | ||
-1: motion is forward<br> | -1: motion is forward<br> | ||
− | + | 1: motion is backward | |
|TYPE= | |TYPE= | ||
Line 41: | Line 42: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:element.ACCELERATIONFACTOR|ACCELERATIONFACTOR]] |
− | * [[ | + | * [[MC-Basic:axis.POSITIONFACTOR|axis.POSITIONFACTOR]] |
− | * [[ | + | * [[MC-Basic:element.VELOCITYFACTOR|VELOCITYFACTOR]] |
}} | }} |
Latest revision as of 09:43, 13 September 2017
Language: | English • 中文(简体) |
---|
This property allows you to define the logical direction of the movement. The movement factors (i.e., POSITIONFACTOR, VELOCITYFACTOR, ACCELERATIONFACTOR) are assigned to positive values only. DIRECTION determines their sign.
-1: motion is forward
1: motion is backward
Syntax
<axis>.Direction = <expression>
?<axis>.Direction
Availability
All versions
Type
Long
Range
-1 or 1
Default
1
Scope
Configuration, Task or Terminal
Limitations
Cannot be changed while axis is enabled or while axis is set up as a master axis.
In order to set the value within a task, the axis must be attached to that task (using the ATTACH command).
Examples
Axis1.Direction = 1