Input/Output 06/2005
Danaher
Motion
154 Rev
E
M-SS-005-03l
Step 4
Set
PLSREPEAT
. If you want the PLS to repeat, set the value of
PLSREPEAT
to a non-zero, positive number. For example, to have the PLS
repeat every 10,000 position units, enter:
MyPLS.PLSRepeat = 10000
PLSREPEAT
defaults to 0, indicating that there is no repetition. Change
PLSREPEAT
only when the PLS is disabled.
Step 5
Set
PLSHYSTERESIS
,
if the application requires it
. Hysteresis is only
necessary if the system does stop on or near a PLS position. Normally, a
PLSHYSTERESIS
of 5 or 10 counts of encoder (converted to position units)
or 2 or 3 counts of resolver resolution is sufficient.
MyPLS.PLSHysteresis = 0.01
Step 6
Enable the PLS. Enter:
MyPLS.PLSEnable = ON
There are a few other PLS functions you may need:
Change Polarity
The default output state of a PLS is 0. Change this
initial state by modifying
PLSPOLARITY
.
MyPLS.PLSPolarity = 1
The PLS must be disabled when changing this
setting.
Query the Name
Query the name of the axis driving the PLS:
? MyPLS.PLSAxisName
returns the axis associated with the PLS (A1).
Disable the PLS
Disable the PLS. For example:
MyPLS.PLSEnable = OFF
You must disable a PLS to change PLS properties.
Disabling a PLS also helps conserve CPU
resources.
Delete a PLS
Delete a PLS to remove it from the system only
when the PLS is disable and there are no tasks in
memory. For example:
DeletePLS MyPLS
10. 4
E
XTERNAL
E
NCODERS
The MC
supports external encoders (encoders not connected to an axis
controlled by the MC). These encoders are connected to the system using
the external encoder input of any SERVO
STAR
drive in the system. You can
access the encoder periodically with:
? IDNValue(<Axis>.DriveAddress, 53, 7)
‘Query external encoder position