FreeRollerConveyor: SetPreviousConnection
Called to set the previous transporter
The connections set using SetPreviousConnection are evaluated when product is placed on the free roller conveyor. Any product on the free roller conveyor when the connections are changed will use the old connections.
Function
void SetPreviousConnection(previous: object, distance: double);
Parameters
Name | Type | Description |
---|---|---|
previous | Object | The free roller conveyor to set as the target, if target is ‘None’ set object to 0 |
distance | Double | The connection distance in the units chosen when the project was created (metres or feet) |
Return Value
None
Example
var oConv = GetComponentByNameAndType("FreeRollerConveyor1", "Free Roller Conveyor");
var oConv2 = GetComponentByNameAndType("Conveyor1", "Conveyor");
function OnSimulationStart() {
LogDebug("OnSimulationStart called");
oConv.SetPreviousConnection(oConv2, 0);
}