question

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

code to reset AGV path and control point location

hello!

I have met some troubles in my model.

In my model, i want AGV path and Control point location in every Tier (I want to replace the shuttle car with AGV,so i want them travel in these path on every tier of the rack.)

IF I don't use code to set these paths ,It will become cumbersome.

So,I want reset the AGV path and Control point location by code,and it is better if i could connect the control points by code.

this is my model ,look forward to your replyagv-path.fsm

FlexSim 18.2.2
agvagv paths
agv-path.fsm (20.4 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

·
Karuppasamy Pitchai avatar image
1 Like"
Karuppasamy Pitchai answered Bob.Wang commented

Hi Wang,

Here is the model to reset the path and CP location. Please refer the codes in the script console window.agv-path.fsm

Regards

Karuppasamy


agv-path.fsm (22.6 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.

Wang Z2 avatar image Wang Z2 commented ·

Thanks for your reply.

And i want to know how to connect queue with rack using code.

I try to use "function_s(Model.find("Queue1"),"addConnection",1,Model.find("Rack2");" but it failed.

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

function_s(Model.find("ControlPoint3"),"addConnection",1,Model.find("Rack1"));

contextdragconnection(Model.find("Queue1"), Model.find("Rack2"),"A");

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.