i want to set the speed by label and label will catch plc but i use this code to control but speed didnt change
token.agv.as(Object).setVariable("emptyspeed", token.speed);
i want to set the speed by label and label will catch plc but i use this code to control but speed didnt change
token.agv.as(Object).setVariable("emptyspeed", token.speed);
You need to change the values in the speeds table in the AGV network properties. To do so, you can cast the marked "speeds" node as a table and use the normal table syntax to change values. Keep in mind that changes will only take effect at the start of the next travel task.
(I don't know what the "loadedspeed" and "emptyspeed" variables are actually used for)
No, you need to change the value in the speeds table of the AGV navigator object. Assuming the AGV has the first (DefaultAGV) type, then that would be the following.
Object agvNav = ownerobject(AGV(token.agv));
treenode speeds = agvNav.find(">variables/agvTypes/1/speeds"); Table speedsTable = speeds; speedsTable[8][1] = token.speed; // Forward empty speedsTable[8][2] = token.speed; // Forward loaded speedsTable[14][1] = token.speed; // Reverse empty speedsTable[14][2] = token.speed; // Reverse loaded
Flexscript Error MODEL:/Tools/ProcessFlow/ProcessFlow/Custom Code>variables/codeNode Line 8 Invalid type for parameter 1 in call to command ownerobject. Expecting treenode. Type is AGV Flexscript Error MODEL:/Tools/ProcessFlow/ProcessFlow/Custom Code>variables/codeNode Could not finish parsing because of previous errors.
11 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