Title: Linear Flying Shear Application Solution Package for MPiec Controllers
VAR_INPUT
U* Execute BOOL Upon the rising edge, all other function block inputs
are read and the function is initiated. To modify
an input, change the value and re-trigger the
Execute input.
U PartLength LREAL Length of the part to be processed. If randomly
spaced parts are to be processed, enter a nominal
distance between registration marks.
U MasterSyncPosition LREAL The position of the master in the cam table where
both axes must be moving at the same speed.
U SlaveSyncPosition LREAL The position of the slave axis in the cam table
where both axes must be moving at the same
speed.
U SyncDistance LREAL The distance travelled by the slave axis while in
sync with the master. Note that the total travel
distance will be greater due to the acceleration
and deceleration phase.
U MaxStroke LREAL The maximum allowable stroke length for the
linear slave axis. If the calculated stroke required
is greater than MaxStroke, an Error will be
generated.
VAR_OUTPUT
F* Done BOOL Set high when the commanded action has been
completed successfully. If another block takes
control before the action is completed, the Done
output will not be set. This output is reset when
execute goes low.
F Busy BOOL Set high upon the rising edge of the 'Execute' input,
and reset if Done, or Error is true.
F Error BOOL Set high if error has occurred during the execution
of the function block. This output is cleared when
'Execute' goes low
F ErrorID UINT If error is true, this output provides the Error ID.
This output is reset when 'Execute' goes low
F CamTableID UINT CamTable ID for the speed matching slave axis
Title: Linear Flying Shear Application Solution Package for MPiec Controllers
VAR_IN_OUT
B Master AXIS_REF Logical axis reference. This value can be located on the Configuration
tab in the Hardware Configuration (logical axis number)
B Slave AXIS_REF Logical axis reference. This value can be located on the Configuration
tab in the Hardware Configuration (logical axis number)
VAR_INPUT
B Execute BOOL Upon the rising edge, all other function block inputs are read and the
function is initiated. To modify an input, change the value and
re-trigger the Execute input
B CamTableID UINT A reference to the cam memory in the motion engine UINT#0
VAR_OUTPUT
B Done BOOL Set high when the commanded action has been completed
successfully. If another block takes control before the action is
completed, the Done output will not be set. This output is reset when
Execute goes low.
B Busy BOOL Set high upon the rising edge of the 'Execute' input, and reset if Done,
or Error is true.
B Error BOOL Set high if error has occurred during the execution of the function
block. This output is cleared when 'Execute' goes low
E ErrorID UINT If Error is true, this output provides the Error ID. This output is reset
Title: Linear Flying Shear Application Solution Package for MPiec Controllers
VAR_IN_OUT
U* Master AXIS_REF Logical axis reference. This value can be located on the
Configuration tab in the Hardware Configuration (logical axis
number)
U Slave1 AXIS_REF Logical axis reference. This value can be located on the
Configuration tab in the Hardware Configuration (logical axis
number). Refers to the speed matching linear axis in the
linear shear system.
U Slave2 AXIS_REF Logical axis reference. This value can be located on the
Configuration tab in the Hardware Configuration (logical axis
number). Refers to the secondary axis in the linear shear
system. If a secondary servo is not used, use UINT#0 for this
AXIS_REF.
U RegistrationData ProductBufferStruct Structure containing all information for the circular buffer to
operate. The user inputs in this structure will be used in
managing the product buffer that keeps track of registration
marks.
U ControlData CamSyncStruct Structure containing all information that enables the
LinearFlyingShear function to correct the slave axis motion for
varying product sizes and to determine when the slave axis
should disengage from the master if no products are being
registered
VAR_INPUT
U Enable BOOL The function will continue to execute while Enable is held
high.
U ClearBuffer BOOL While high, new products are not
The products that are already in the buffer will get processed
by the function block.
U Slave1CamTableID UINT Cam Table ID corresponding to the speed matching linear
axis.
U Slave2CamTableID UINT If being used in the system, Cam Table ID corresponding to
the secondary servo.
U Registration BOOL Selects if registration based corrections are required. If
TRUE, adjustments will be performed to synchronize with the
registration marks on the master axis.
VAR_OUTPUT
F* InSync BOOL Indicates that the outputs of the function block are valid and
the salves are following the master. It does not indicate if the
slave are matching speed with the master.
F Busy BOOL Set high upon the rising edge of the 'Execute' or 'Enable'
input, and reset if Done, CommandAborted, or Error is true.
F CommandAborted BOOL Set high if motion is aborted by another motion command or
MC_Stop. This output is cleared with the same behavior as
the Done output.
F Error BOOL Set high if error has occurred during the execution of the
function block. This output is cleared when 'Execute' goes
low.
F ErrorID UINT If error is true, this output provides the Error ID. This output
is reset when 'Execute' goes low.
F BufferLevel INT Number of products detected by the sensor which have not
been processed by the machine.
F ItemsProcessed UDINT Provides a count of the number of products processed since
this function was enabled.
* U: Input to be provided by user. * F: Parameter generated by the function block