Conveyor.SlugBuilder
Description
Accesses data dealing with a conveyor's slug building state
This object can be accessed through the Conveyor.slugBuilder property, or through the Conveyor.MergeController.lanes property. This object only exists if the conveyor is connected to a merge controller object.Properties
conveyor | Returns the conveyor associated with this slug builder |
isClear | Returns 1 if all necessary control points are clear for the current slug to be released, 0 otherwise. |
isEnabled | Gets or sets whether the conveyor associated with this slugBuilder will build slugs. |
lastAddedItem | Gets the item that was last added to the slug. |
state | Gets the slug-building state of the slug builder |
Methods
makeReady | Manually marks the slug ready for release |
release | Manually releases a slug. |
Details
Do no remove, this fixes the anchor on doc.flexsim.com
Conveyor.SlugBuilder.conveyor
readonly Conveyor conveyor
Description
Returns the conveyor associated with this slug builder
Conveyor c = slugBuilder.conveyor;
Do no remove, this fixes the anchor on doc.flexsim.com
Conveyor.SlugBuilder.isClear
readonly int isClear
Description
Returns 1 if all necessary control points are clear for the current slug to be released, 0 otherwise.
if (slugBuilder.isClear) slugBuilder.release();
Do no remove, this fixes the anchor on doc.flexsim.com
Conveyor.SlugBuilder.isEnabled
int isEnabled
Description
Gets or sets whether the conveyor associated with this slugBuilder will build slugs.
Before disabling, be sure that the lane does not have a slug.slugBuilder.isEnabled = 1;
Do no remove, this fixes the anchor on doc.flexsim.com
Conveyor.SlugBuilder.lastAddedItem
readonly Object lastAddedItem
Description
Gets the item that was last added to the slug.
Do no remove, this fixes the anchor on doc.flexsim.com
Conveyor.SlugBuilder.state
readonly int state
Description
Gets the slug-building state of the slug builder
0 - None1 - Building - a slug has begun building.
2 - Ready - the slug has acheived its ready criteria
3 - Releasing - the slug is being released
Do no remove, this fixes the anchor on doc.flexsim.com
Conveyor.SlugBuilder.makeReady()
makeReady( ) |
Description
Manually marks the slug ready for release
This method can be used to make a slug ready before it would otherwise become ready.slugBuilder.makeReady();
Do no remove, this fixes the anchor on doc.flexsim.com
Conveyor.SlugBuilder.release()
release( ) |
Description
Manually releases a slug.
Can be used to release a slug, disregarding ready requirements and lane clear requirements.slugBuilder.release()