Problem with KINEMATIC_ROTATE

Problem with KINEMATIC_ROTATE

962076751
Enthusiast Enthusiast
50 Views
7 Replies
Message 1 of 8

Problem with KINEMATIC_ROTATE

962076751
Enthusiast
Enthusiast

[ FlexSim 21.2.1 ]

As you can see in the model attached here, the scissors stopped at about time 9s and kept still to the end. I'm wondering why should this situation happen? Shouldn't the scissors keep rotating till the end?

scissors.fsm

0 Likes
Accepted solutions (1)
51 Views
7 Replies
Replies (7)
Message 2 of 8

supportPHJ4A
Enthusiast
Enthusiast
Accepted solution

The angle at which the scissors rotate is determined by the degree_rot value in your model. The value of your degree_rot is 11.24, so the scissors will only rotate to this angle and stop.

0 Likes
Message 3 of 8

962076751
Enthusiast
Enthusiast
The return value of the addkinematic() func is 8.2s, then why would the whole rotation process stop earlier?
0 Likes
Message 4 of 8

moehlmann_fe
Enthusiast
Enthusiast

addkinematic() returns the model time at which the kinematic will finish, not the duration.

Message 5 of 8

962076751
Enthusiast
Enthusiast
Oh, right!

Then i wonder why the model still running as the kinematic already finished?

I set a breakpoint at BasicTE1's "On Finish Offset" trigger, and found that the breakpoint was triggered at the ending time 11.62s. This means the Offset is not sync with kinemaitc?

0 Likes
Message 6 of 8

moehlmann_fe
Enthusiast
Enthusiast
While addkinematic() returns the finish time, the expected return value of the "On Begin Offset" trigger is in fact the duration of the action.

To sync the "On Offset Finish" event with the end of the kinematic you should return "Math.max(time1, time2) - Model.time" in the begin trigger.

Message 7 of 8

962076751
Enthusiast
Enthusiast
OK, get it. Thanks a lot, Felix!
0 Likes
Message 8 of 8

ryan_c10
Not applicable

Hi @meng L, were CSN's answer and/or Felix's comments 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