question

Wang Z2 avatar image
0 Likes"
Wang Z2 asked Wang Z2 commented

when some labels become 1,print "successfull"

I want set a process flow,Monitor labels of all agvs in real time, when them become 1, print "successful"

How to achieve it?

Thanks

FlexSim 18.2.2
process flow
· 2
5 |100000

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

tannerp avatar image tannerp commented ·

Could you upload the model you're working with? Or perhaps a sample model? There are many ways to do this, but we want to help you find one that works for your needs specifically.

0 Likes 0 ·
Wang Z2 avatar image Wang Z2 commented ·

In my model ,I will reset AGV's label "status" to 0,when all AGV's label "status" become 1,I want print "successfull",I want achieve it in process flow.thanksstock-in.fsm

0 Likes 0 ·
stock-in.fsm (106.8 KiB)

1 Answer

·
Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered Wang Z2 commented

You may want to set the label on your AGV to the "tracked" variable type. Then you can just listen to the "On Change" event of the label, and then execute whatever logic you want to, if the change returns "successful".

· 1
5 |100000

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

Wang Z2 avatar image Wang Z2 commented ·

It worked .thanks

But I meet an another problem,I set the label to the "tracked" variable, Then I set a "want for event" control in my process flow, but If I have 10 AGVs ,I want to listen to all agvs, and then proceed to the next step when all the agvs label become 1.

Can I write code to achieve it? How?

0 Likes 0 ·

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.