Difference between revisions of "MC-Basic:pls.PLSPOLARITY"

From SoftMC-Wiki
Jump to: navigation, search
(Change default value)
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 and when the the axis is located before the first PLS position. If the axis position when enabling the PLS is not located at this segment, the output polarity 0 or 1 is set according to the current position.  
+
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. The value of the output is determined by the axis position at the moment of [[Axystems:MC-Basic:pls.PLSENABLE|PLSenable]] according to the following scheme:
 +
 
 +
'''If''' Pcmd < PLSPosition[1]    → Output = '''neg''' PlsPolarity
 +
 
 +
'''If''' Pcmd >= PLSPosition[1] and  Pcmd < PLSPosition[2]  → Output = PlsPolarity
 +
 
 +
'''If''' Pcmd >= PLSPosition[2] and  Pcmd < PLSPosition[3]  → Output = '''neg''' PlsPolarity
 +
 
 +
'''...'''
 +
 
 +
 
  
 
|TYPE=
 
|TYPE=

Revision as of 12:34, 5 February 2012

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. 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 = neg PlsPolarity

If Pcmd >= PLSPosition[1] and Pcmd < PLSPosition[2] → Output = PlsPolarity

If Pcmd >= PLSPosition[2] and Pcmd < PLSPosition[3] → Output = neg 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

The PLS polarity is only set when the PLS is disabled.

Examples

Pls1.PlsPolarity = 0

See Also