question

Samuelj47 avatar image
0 Likes"
Samuelj47 asked Jeanette F commented

How to modify the maxspeed of a transporter in process flow

Hello,

I am trying to modify the maximum speed of the transporters for each truck that arrives at the queue, using a global table to indicate the speed of the cranes for each truck. For example, truck 4 uses row 4 of the global table "Transporter speed" as its maximum speed. Using that speed for the three cranes. Any help is appreciated. Thanks

captura-de-pantalla-2022-07-11-112816.png

truck load and unload.fsm

FlexSim 22.1.1
processflowglobal tabletransportersmaxspeed
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Samuelj47, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

When you know the truck ID read the table so the parent token has a maxSpeed label.

Then when you acquire transporter add a code snippet with:

token.transporter.setProperty("MaxSpeed", token.maxSpeed);
· 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.

Samuelj47 avatar image Samuelj47 commented ·

perfect, I used a set label custom code to read the global table and assign the value, but is not reading it. The code snippet works when i enter the speed directly in the label, but since set label doesn´t work, it doesn´t read the global table. Do you know how to solve this problem?


truck load and unload_1.fsm

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Samuelj47 commented ·
You're putting Maxspeed on the truck and then trying to read it from the token.
0 Likes 0 ·