question

Sri_vikas K avatar image
0 Likes"
Sri_vikas K asked Felix Möhlmann commented

Rotate Item at Decision point

Hi flexsim community,

In my model I am using six Decision points and trying to rotate the item at each decision point to some angle, i.e., 30,60,90,120,150,180 respectively. but the item is not being rotated.

Thanks In advance


conveyorimage1.png

rotateitem-trigger.png

FlexSim 23.0.5
rotate
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·
@Sri_vikas K, please add a photo eye into a conveyor and choose from a trigger a template to move an item. Then you can look into the source code of this template, how it is done. If you want to do a kinematic, you should read the chapter in the reference manual. I am missing a reference to a kinematic node in your code. Some mechanism are documented in the manual. You should build them as stated. I am currently not convinced, that a generative code AI could build a script for FlexSim correctly.
0 Likes 0 ·
Sri_vikas K avatar image Sri_vikas K Joerg Vogel commented ·
Please provide link to the reference manual which directs me to understand your idea and get back to you.
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann commented ·
I'm not seeing anything wrong in your screenshots, though the second one only shows a fraction of the code.

Could you upload the model (or a sample model) or at least show the settings you use in the trigger option?

0 Likes 0 ·
Sri_vikas K avatar image Sri_vikas K Felix Möhlmann commented ·

Hey @Felix Möhlmann

Thanks for the reply, I am using the following settings in the rotate item trigger,

2023-03-29.png

0 Likes 0 ·
2023-03-29.png (386.6 KiB)

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

I don't see anything in the options that would indicate why the rotation wouldn't work. Did you change anything in the trigger code after adding the rotate function?

The attached model mimics the situation in your screenshot. Does the rotation work there?

conveyoritem_rotate.fsm


· 5
5 |100000

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

Sri_vikas K avatar image Sri_vikas K commented ·

@Felix Möhlmann ,

The model you shared is very helpful, The flowitem is being rotated in my model through Z axis. Since it is in round shape I was unable to identify. I wanted to rotate the flowitem through the X axis.

Thank you

0 Likes 0 ·
Sri_vikas K avatar image Sri_vikas K Sri_vikas K commented ·

I wanted to rotate the item in this way

2023-03-29-1.png

Why is it taking -90 deg through z axis and 180 deg through y axis?

2023-03-29-2.png

I am Attaching the model below.

conveyoritem-rotate.fsm

0 Likes 0 ·
2023-03-29-1.png (569.0 KiB)
2023-03-29-2.png (398.8 KiB)
Felix Möhlmann avatar image Felix Möhlmann Sri_vikas K commented ·

That is how you set the item to enter the conveyor in the Entry Transfer.

1680081096792.png

0 Likes 0 ·
1680081096792.png (82.1 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.