We are trying to model a conveyor station where parts are loaded into an assembly (simulated by a container flow item loaded upstream). We have the upstream process for the parts set up to output into a sink located under the workstation on the conveyor. The output of the processor is closed at reset and after exit to simulate the processor waiting for the conveyor to be ready to receive the part. Once the assembly is in position (on entry into the conveyor station/decision point), it sends a message to the processor to open its output ports and the operator then transfers the part to the sink, effectively "consuming" the material. The station stops the assembly at the station and waits for the message from the sink to resume.
The issue we are having is that the assembly (container flow item) cannot be resumed on message from the sink when the part was consumed (on entry at the sink). In attempting to use the same style of code that was used to stop the item to resume it, we get the following error/exception:
time: 43.701231 exception: FlexScript exception: Invalid item in Conveyor.itemData[] call at MODEL:/DP1>variables/localType/onMessage
We also tried using a station with closing input and output ports, however the item never even stops at this station. Attached is the model.
Our preferred approach would be to be able to set up the station to act as a combiner, but that doesnt seem possible. Additionally, the station is desired to be portable (i.e. placed into a library, inserted and ports connected, as oppose to re-doing all of the control work every time). The other approach we looked at was to use processors and combiners connected by conveyor to depict the work, however, this is more difficult to adjust and doesnt capture the indexing time into and out of stations or the operators travel and unload time as well.
FlexSim Version 17.1.2 (not an option from drop down menu)