question

Cyrine S avatar image
0 Likes"
Cyrine S asked Jeff Nordgren answered

changing decision point's condition according to time

In my simulation ( See model attached usingrobot.fsm) I have a conveyor that orientates Items according to their type in order to send them to different queues. Items are transported either by an operator or by a robot depending on their type.

Is there a way to set the orientation of items several times during the simulation; Example: from 0s to 400s i want the robot to transport items type "22" from 400s to 1400s i want it to transport item "23" and i want it to transport item "22" again until the end of the simulation?.

Thank you in advance for your responses.

FlexSim 18.1.1
conveyorsimulationtimeconditional decidedecision point
usingrobot.fsm (91.7 KiB)
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

·
Jeff Nordgren avatar image
1 Like"
Jeff Nordgren answered

@Cyrine S,

Attached is your model with the changes that I've made.

One thing first, in Sourcegf4 in the On Creation trigger, you are referencing a label name "direction" on the item (item.direction) for the color of the flowitem. But you haven't created that label name on "item" so every time a flowitem is created, you are getting an "exception" in the System Console telling you that the label does not exist. Not sure what you have in mind there so I didn't change that.

I added a Global Variable called "CurrType". Then I created 3 User Events. The user events will change the value of CurrType at the times that you specified in your question. Then in ExitTransfer3, in the Use Transport field, I used the Center Port By Case with the case value "item.Type == CurrType". So, if the item.Type is equal to value in CurrType, (returns a 1 for true) it will use centerport connection 1 (Robot) to move the flowitem. If it's not equal to CurrType (returns a 0 for false) then it will use centerport connection 2 (Operator1, that I connected). At the given times in the User Events, the Global Variable will be change. I added a text display field that shows the current value of the Global Variable so that you can see that it is being changed at the proper times.

Take a look at the model and see if something like this would work for you. Let us know if there are changes that need to be made.

Thanks.

usingrobot-jn1.fsm


usingrobot-jn1.fsm (64.2 KiB)
5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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