IF_GroupingPattern - SetLeavingStationParameters (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Task

Setting the parameters for the carrier groups that leave the station.

Description

The method SetLeavingStationParameters is not a mandatory method. The method can be called when a group pattern has been defined.

By default, the defined carrier groups are sent to the target station with the move command MoveGapControl and the groups use their process gap as the target gap when the group moves to the target station.

If you want to change the default behavior,
With the input i_xKeepProcessGapWhenSendToNextStation, you can define the gap at the waiting position of the target station:
  • When the input i_xKeepProcessGapWhenSendToNextStation is set to TRUE, the groups keep the process gap from the sending station also for the waiting position of the target station.

  • When the input i_xKeepProcessGapWhenSendToNextStation is set to FALSE, the groups use the waiting gap of the target station.

NOTE: The gap within the carrier groups is not influenced and remains unchanged.

For a visual illustration of the input
i_xKeepProcessGapWhenSendToNextStation, refer to the KeepGap video sequence.

With the input i_udiNumberOfGroupsToSendToNextStation, you can send a certain number of groups to the waiting position of the target station.


For a visual illustration of the option to send out a certain number of groups, refer to the NumberOfGroups video sequence.

The return value SetLeavingStationParameters of type BOOL indicates TRUE if the parameters for leaving the station have been set successfully.

Inputs

Input

Data type

Value range

Description

i_udiNumberOfGroupsToSendToNextStation

UDINT

0 < i_udiNumberOfGroupsSendToNextStation ≤ number of groups defined by the parameter udiNumberOfGroupsInStation (see structure ST_Pattern)

The number of carrier groups that will be sent from the process position of the station to the waiting position of the target station.

i_xKeepProcessGapWhenSendToNextStation

BOOL

If i_xKeepProcessGapWhenSendToNextStation is set to TRUE, the process gap of the sending station is used as target gap in the target station.

If i_xKeepProcessGapWhenSendToNextStation is set to FALSE, the waiting gap of the target station is used as target gap.

For more information on the target gap, refer to the Multicarrier library .

i_xMoveSyncWhenLeaveStation

BOOL

If i_xMoveSyncWhenLeaveStation is set to TRUE, the carriers leave the station as a group with the first carrier of the group moving out with the move command MoveGapControl and the other carriers of the group moving out with the move command MoveSync.

If i_xMoveSyncWhenLeaveStation is set to FALSE, the carriers of a group move out with the move command MoveGapControl.

For more information on the aforementioned move commands, refer to MoveGapControl and MoveSync in the Multicarrier library (see EcoStruxure Machine Expert, Multicarrier Library Guide).

i_xUseCurveCompensation

BOOL

If i_xUseCurveCompensation is set to TRUE, the second carrier of a group is synchronized to the first carrier of the group and additionally a curve compensation is executed via the method StartCurveCompensationToCarrierInFront.

The preconditions for using the input i_xUseCurveCompensation are as follows:
  • The parameter i_xMoveSyncWhenLeaveStation must be set to TRUE.

  • The group of carriers consists only of two carriers.

If the group consists of more than two carriers, the input i_xUseCurveCompensation is ignored.

For more information on curve compensation with the method StartCurveCompensationToCarrierInFront, refer to the Multicarrier library.

NOTE: The ToolPivotPoint settings are not part of the FB_GroupingStation and must be set separately. For more information on the ToolPivotPoint settings, refer to the Multicarrier library.

If i_xUseCurveCompensation is set to FALSE, no curve compensation is executed.

By default, the parameter i_xUseCurveCompensation is set to FALSE.

Outputs

The method has no outputs.