question

Michael O'Connell avatar image
1 Like"
Michael O'Connell asked Benjamin W2 commented

How do I force an AGV to maintain same orientation on sideways path(crab)?

I'm trying to create an AGV network that carries different parts. Some allow the AGVs to rotate and do forward/reverse travel. Other parts don't allow rotation and the AGVs will just move sideways or crab.

Attached model captures the essence of the situation in an overly simplified form. Travel network on left represents movement desired of the AGV system as TE maintains vertical orientation.

crabbing.fsm

FlexSim 16.1.0
agv travel direction
crabbing.fsm (28.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

·
Sam Stubbs avatar image
1 Like"
Sam Stubbs answered Benjamin W2 commented

As far as I can tell there's not really a way to override the rotation etc that the AGV network assigns to its task executers. However, if you're using Network Nodes, you can simply add a trigger on the Node where you want the Task Executer to "crab" and have it set its rotation using the setrot() command.

· 4
5 |100000

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

Cody F avatar image Cody F commented ·

Where do you apply this setrot() command? I tried to type this as a code snippet in a trigger, "setrot(90)" and it tells me not enough parameters in call to command. I know nothing when it comes to the flexscript so any help would be appreciated.

0 Likes 0 ·
Benjamin W2 avatar image Benjamin W2 Cody F commented ·

Hi @Cody F, There are 4 arguments that go into "setrot".

setrot(obj object, num rx, num ry, num rz)

0 Likes 0 ·
Cody F avatar image Cody F Benjamin W2 commented ·

@Benjamin W2 Thanks for the reply and so I inputted what I thought would be right based off what you put but I am still missing something. Its saying "syntax error, unexpected identifier, expecting ')' or '.'". I am not sure what it's looking for exactly.

0 Likes 0 ·
capture.jpg (90.2 KiB)
Show more comments

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.