question

shanice.c avatar image
0 Likes"
shanice.c asked Ryan Clark commented

How to set control point as resource?

I want agv to acquire control point to standby when no task to execute. Because there might be more than 1 decisions for AGV to choose from. I'd like to let agv go to nearest control point to standby. so maybe managing these control point is needed.


The standby process is right beside AGV Battery check process.

1630056614881.pngMy control point to standby is controlpoint48, controlpoint49, controlpoint50.

1630056699560.png


Also, is there any way to position whole AGV system(path, curve, controlpoints) heights at one time. Because the AGV system is traveling overhead, but I find path, curve and controlpoints couldn't be grouped, so I have to position each of them one by one.

0827agv.fsm

FlexSim 21.2.0
flexsim 21.2.0agv standybynetwork height
1630056614881.png (23.2 KiB)
1630056699560.png (214.9 KiB)
0827agv.fsm (206.3 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.

Ryan Clark avatar image
0 Likes"
Ryan Clark answered Ryan Clark commented

Hello @Fiona C,

There was a couple problems with the Decide logic: in my attached revision of your model, I changed it to compare the current battery to the "BatteryRechargeThreshold" instead of "BatteryResumeThreshold." In addition, the connectors from the Decide activity were connected to the wrong activities, so I changed where True and False were connected to in the Decide activity (see image below).

screenshot-2021-08-30-093440.png

As for the standby problem, there shouldn't be any problem with you taking part of the parking logic from the template and using it in your custom AGV process flow. And in that case, you can modify what the AGVs use as their parking spots to what you want it to be. I agree with your logic on the timing. I think that should do what you want (take a break if there are no pending tasks).

What you said about copying from highlighted actually works really well. You just have to modify one of the objects to your desired height, then select the group. Then, you have to make sure the one you already changed manually is highlighted yellow (everything else should be highlighted in red), then copy the Z location (just press the button that says "Z"). You might have to reset the model for the visuals to update, but I followed the steps I described, and I was able to move all of the paths and control points up to a different height.

ohagv_0828-rc.fsm

I hope this helps! Let us know if you have further questions!


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

@Ryan Clark I have updated Flexsim new version to 21.2.0 recently, and found the some difference when selecting objects. I tried this way to copy group of member attributes from one object with no problem before. Attached is my operating, perhaps it's because I'm not familiar enough with how to control in new version, could you see any mistakes I made so that I could not success in using this method? Thank you!




0 Likes 0 ·
媒體.mp4 (23.8 MiB)
Ryan Clark avatar image Ryan Clark shanice.c commented ·
Hi @Fiona C,

In order to copy the member attributes from one object to the group, you need to make sure the object you're copying from is not selected as part of the group. Then you can copy the attribute as desired.

Hope this helps!

0 Likes 0 ·
shanice.c avatar image
0 Likes"
shanice.c answered shanice.c edited

@Ryan Clark thank you for your help,

I try to use the charging activity in another model, but found AGV go charging directly after one task. I cannot find mistake of statement in my Decide activity.

1630134151375.png


For standby problem, maybe I will have to find other way because I have built custom logic for AGV, which is different from Flexsim template, is there a way to combine the part of parking activity to my own logic? I'd also like to know the parking point is same as charging point in template, right? Because in my company plant, they should be separated. I think maybe I will set the CPs as resource, then let AGV check if it has pending tasks after complete one task would be suitable timing. if no task to do, acquire one resource(CP).

ohagv_0828.fsm


For the Z position, I'd like to copy from highlight, could this works? I tried your way to group CP, and would like to let rest of CP copy Z location from one CP. I do this but it's not working.

1630136282457.png


1630134151375.png (375.2 KiB)
1630136282457.png (144.4 KiB)
ohagv-0828.fsm (64.0 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.

Ryan Clark avatar image
0 Likes"
Ryan Clark answered

Hello @Fiona C,

For the standby points, you can assign control points as resources, and you can even assign them to groups which the resource can reference, as I've done in my modified version of your model. However, I don't think your process flow will ever get to the activities you're trying to do since it isn't ever charging since you didn't start the recharging process at any point. Referencing the included "Advanced AGV Process Flow," I found that you have to run a code snippet to start the recharging process, which I included in your process flow.

As a side note, I don't think your "standby" logic will be put into effect the way you want as it is currently set up. This is because it will only go there if the AGV runs out of battery: then it will go there after the charging station. Otherwise, it won't go there. I would change it to have some sort of logic that is triggered when there are no pending tasks for the AGV to be more accurate to what you want. For this, and other models involving AGVs, I would recommend referencing (or just using) the AGV Process Flow Templates that are included within FlexSim (see here for more details on those).

As for your question about positioning all of the AGV system at once, I was able to find a way to do so. I simply selected all of the parts of the system I wanted to elevate and moved them into a Plane Visual Tool (see this page for instructions on how to do that). Then, when you change the height of the plane, the height of all other pieces of the AGV system that were moved inside the plane changes along with it. I included an example of this in my modified version of your model.

0827agv-rc.fsm

Hope this helps!


0827agv-rc.fsm (456.9 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.