Notes – Yaskawa MotionWorks IEC Toolboxes User Manual
Page 493

PLCopen Toolbox: Function Blocks
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
480
enable is held high.
E
EnableMask
DWORD
Individually enables the tracks [0..31] per
the bit pattern. Value of 1 means Enabled,
0 means disabled. Least significant bit
corresponds to Track [0]. Default if not
connected is All Tracks Enabled.
FALSE
VAR_OUTPUT
B
InOperation
BOOL
Function Block Enable is ON and at least 1 track is
enabled (EnableMask is <> 0).
E
Busy
BOOL
Function Block Enable is ON but no tracks are enabled
(EnableMask = 0).
E
Warning
BOOL
Signals that a non-critical error has occurred within the
function block. In this case, the block will continue to
function.
E
SWErrorCode
Switch Error Code Structure that identifies particular
warnings with switch settings. The user can monitor this
ErrorCode if Warning output comes on.
B
Error
BOOL
Set high if error has occurred during the execution of
the function block. This output is cleared when 'Execute'
or 'Enable' goes low.
E
ErrorID
UINT
If Error is true, this output provides the Error ID. This
output is reset when 'Execute' or 'Enable' goes low.
E
Output
DWORD
Resulting CamSwitch output for each track per the bit
pattern. Least significant bit corresponds to Track [0].
This Output will need to be tied to physical outputs
outside of the DigitalCamSwitch FB.
Notes
• This functionality is sometimes called PLS – Phase or Position or Programmable Limit Switch.
• Switches will be evaluated for both forward and reverse travel of the axis.
• OnCompensation and OffCompensation will only be applied when the axis is moving in the Positive Direction.
• Track Hysteresis is not supported.
Restrictions
If the output specified in the PLS is also controlled somewhere else in the project then the last instruction wins.
This would also be the case when a single output is used in two PLS blocks.
The PLS block will support a maximum of 256 switches and 32 outputs. This means that the block will react to a
maximum of 512 positions (two for each switch).