question

PeterHe avatar image
0 Likes"
PeterHe asked Jeanette F commented

About the Conveyor and Decide



Question1:How do i get the pallet to stop on the green point?

Question2:When the all green point has the pallets.how to pallet selection red point line body output? how to program for decide point?

PF Tutorial 1 DIY Error.fsm

FlexSim 22.0.0
conveyorsystemconditional decidebuffer
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jeanette F commented

First of all you have exceptions. The system console is telling you helpful information about the state of your model so it's important that you pay heed to the messages it's giving.

At reset :

  1. MODEL:/Queue1>variables/sendtoport Line 7        Undefined variable boxpallet being used.

which is caused by this expression:

  1. boxpallet.Type == 1

The triggering item will be passed in as item so use that, not 'boxpallet'.

Then you have a similar error at reset in the process flow where you assign event object to 'matchpallet'. The syntax for this needs to be token.matchpallet. Yes, it's inconsistent with other fields where you just supply the label name.

Next You have a problem that boxpallet doesn't exist on the Decide in the process flow. That's because you reference 'boxpallet' in the decision condition but have set the label to just 'pallet' in the source. You're testing ==0 so maybe you're looking for a label on the pallet called 'boxpallet' in which case the syntax would be token.pallet.boxpallet?==1. I put the question mark in there because I don't know if you intend to have the label always present


With those fixed we can start considering what you want to happen.

Are you saying you want to have a pallet at each green decision point before some process can start? If so you can use an ordered list of the DPs (use a Group or label array) to pull in sequence and label and route the pallet to each. Or you can use port connections to send to the green DPs in a round robin sequence, making sure the port sequence is the furthest on port 1.

Then you need to detect the arrivals of the correct pallet at each DP which could be done using an event triggered source.

To stop the pallet use a custom code from which you can select the predefined template to control conveyor movements including stopping/resuming the item.

If however you're just using the DPs to seperate the pallets which are accumating before an operator station at DP2, then you don't need the DPs to do that - you can just change the accumulation properties of the conveyors so that they have the correct gap.

You questions title suggests this is first process flow tutorial but it seems that's not the case.

Here's the model with errors fixed.

pf-tutorial-1-diy-error_jl.fsm


· 13
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.