question

shanice.c avatar image
0 Likes"
shanice.c asked Felix Möhlmann commented

How to get the TE that on entry a control point in custom code?

I would like to do traffic control by tracing the region AGV is located. When it travel from regionA to regionB(when on entry a control point in regionB) , I want AGV changed it's label "Region" to "B", this will be triggered when on entry that controlpoint. Now I have problem with getting the TE in code.

testOnEntryNextRegion.fsm

controlpoint
· 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.

Hi @fiona.c, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Felix Möhlmann commented

The AGV doesn't "enter" the control point during travel. "Entering" in FlexSim means an object is put inside another object (like an item entering a conveyor).

Use the "On Arrival" trigger instead. It offers the agv as a pre-defined parameter.

· 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.

@Felix Möhlmann Thanks you. I have used OnAllocation and OnDeallocation to control what I want. I think onAllocation and OnDeallocation could help me in traffic control. But it seems it's not triggered by using OnArrival.

testonentrynextregion1.fsm

0 Likes 0 ·

Yes, I misremembered. OnArrival is only triggered when the agv comes to a stop at the control point. OnPreArrival fires always at the point where the agv would start to decelerate in order to stop at the point (even if it won't).

OnAllocation seems like a good solution as well.

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.