Difference between revisions of "MC-Basic:pls.PLSPOLARITY"
(Created page with '{{MC-Basic |SHORT FORM= ''<pls>''.Ppol |SYNTAX= ''<pls>''.PlsPolarity = ''<polarity>''<br> ?''<pls>''.PlsPolarity |AVAILABILITY= All versions |DESCRIPTION= Sets or queries the…') |
m |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 11: | Line 11: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
− | Sets or queries the initial polarity of the system output associated with a PLS. The initial polarity of a PLS is specified as 1 or 0. The output state is set when the PLS is enabled. | + | Sets or queries the initial polarity of the system output associated with a PLS. <br> |
+ | |||
+ | The initial polarity of a PLS is specified as 1 or 0. The default value is 0. The output state is set when the PLS is enabled (PLSEnable).<Br> | ||
+ | The value of the output is determined by the axis position at the moment of PLSenable according to the following scheme:<br> | ||
+ | |||
+ | If Pcmd < PLSPosition[1] → Output = negative PLSPolarity <br> | ||
+ | If Pcmd >= PLSPosition[1] and Pcmd < PLSPosition[2] → Output = PLSPolarity <br> | ||
+ | If Pcmd >= PLSPosition[2] and Pcmd < PLSPosition[3] → Output = negative PLSPolarity | ||
+ | |||
+ | |||
|TYPE= | |TYPE= | ||
Line 23: | Line 32: | ||
|DEFAULT= | |DEFAULT= | ||
− | + | 0 | |
|SCOPE= | |SCOPE= | ||
Line 29: | Line 38: | ||
|LIMITATIONS= | |LIMITATIONS= | ||
− | + | Can be set only when PLS is disabled. | |
|EXAMPLE= | |EXAMPLE= | ||
Line 35: | Line 44: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:COMMON SHARED ... AS PLS|COMMON SHARED ... AS PLS]] |
}} | }} |
Latest revision as of 14:07, 10 October 2018
Sets or queries the initial polarity of the system output associated with a PLS.
The initial polarity of a PLS is specified as 1 or 0. The default value is 0. The output state is set when the PLS is enabled (PLSEnable).
The value of the output is determined by the axis position at the moment of PLSenable according to the following scheme:
If Pcmd < PLSPosition[1] → Output = negative PLSPolarity
If Pcmd >= PLSPosition[1] and Pcmd < PLSPosition[2] → Output = PLSPolarity
If Pcmd >= PLSPosition[2] and Pcmd < PLSPosition[3] → Output = negative PLSPolarity
Short form
<pls>.Ppol
Syntax
<pls>.PlsPolarity = <polarity>
?<pls>.PlsPolarity
Availability
All versions
Type
Long
Range
0 or 1
Default
0
Scope
Configuration, Task or Terminal
Limitations
Can be set only when PLS is disabled.
Examples
Pls1.PlsPolarity = 0