Hi, forum
I want to know how to get the direction of agv.
You can see the attached model, agv will pass the CP4 form left or right. How can I know where is the agv come from?
Thanks in advance.
Hi, forum
I want to know how to get the direction of agv.
You can see the attached model, agv will pass the CP4 form left or right. How can I know where is the agv come from?
Thanks in advance.
@jing.chen, I rewrote it a bit because I like using process flow, but the basic code is in the user function "DirectionCoord." I also added a simple up/down counter to process flow if you use that.
Sorry to disturb you again. I cannot download your model, could you plz post a new one?
@jing.chen, sure, no problem. It's attached, I changed the name but it's the same model. Let me know if you get it. Also, it's the latest version, 17.0.3.
treenode AGVNetwork=node(">variables/navigator/1+",agv); double start=getsdtvalue(node("/travelPath/1",AGVNetwork),"fromDist"); double end=getsdtvalue(node("/travelPath/1",AGVNetwork),"toDist"); if (start>end){ //direction A }else{ //direction B }
Create a Way Point Logic in the CP.
9 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved