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.
you can use the method SetLeavingStationParameters
if the pattern is already loaded, you can use the method FB_GroupingStation - ChangeLeavingStationParameters.
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.
![]() |
For a visual illustration of the input |
![]() |
|
The return value SetLeavingStationParameters of type BOOL indicates TRUE if the parameters for leaving the station have been set successfully.
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:
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. |