question

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

May I change agv label value in way point?

Hello, I would like to change a label of AGV when it enters a point. How could I write this in way point windows?

1655198140255.png

FlexSim 22.1.0
waypoint
1655198140255.png (351.5 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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

'agv' is a agv-class variable that only offers the respective properties/methods. To read labels on the task executer, either first get a reference to the object that represents the agv with '.object' or use the task executer variable 'te' that is also defined in the event logic.

1655199782305.png


1655199782305.png (13.8 KiB)
· 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.

shanice.c avatar image shanice.c commented ·

@Felix Möhlmann Thank you for your reply. I still have some problems.

From your screenshot, what is " /*Accessors: te, agv, currentCP*/ " means?

Second line means create an AGV object called 'agv', and it has the value AGV(te).

1655303409986.png

1655303528227.png

The 'te' in bracket comes from 1st line, but how does "param(1)" come from in first line?

Also, how to know "param(2)" value is a controlpoint been put in way point member pane?

-----------------------------------------------------

In addition, could you help me figure out the difference between AGV and TE? According to my understanding, TE is any of the material handling system from library?

1655302835343.png

AGV is a kind of taskexecuter connected to AGV Network?

Thank you!

0 Likes 0 ·
1655302835343.png (17.0 KiB)
Felix Möhlmann avatar image Felix Möhlmann shanice.c commented ·

The first three lines of the code you see in the lower part of the picture are pre-set by FlexSim. So unless the developers made a mistake, the passed in parameters (param(1) and param(2) in this case) fit the variable they are assigned to.

The 'Accessors' comment in the code snippet let's you know which variables are available to use in the code without having to open the code window.

Yes, all of the objects in that category are Task Executers (TE) which share certain properties (such as speed) and commands. Some of them work differently as others though such as the crane.

When you connect a task executer to an agv network, it becomes an AGV Traveler with additional properties (like battery charge), while other properties such as maximum speed are now handled through its 'AGV Type' rather than per object. Most values that deal with agv travel are accessed through the AGV Class, not directly through the object. 'AGV(te)' creates that AGV class object from an object/te reference.

0 Likes 0 ·