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

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

shanice_c
Not applicable
85 Views
4 Replies
Message 1 of 5

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

shanice_c
Not applicable

[ FlexSim 21.2.0 ]

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

0 Likes
Accepted solutions (1)
86 Views
4 Replies
Replies (4)
Message 2 of 5

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

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.

Message 3 of 5

Jeanette_Fullmer
Community Manager
Community Manager

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
Message 4 of 5

shanice_c
Not applicable

@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
Message 5 of 5

moehlmann_fe
Enthusiast
Enthusiast

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