question

CSN avatar image
0 Likes"
CSN asked CSN commented

Kinematic error reporting

Hello, everyone, I encountered a BUG 20.2 in version 2022.2. According to the previous reply, the development team should have fixed this BUG. Specifically, the problem is that the kinematics module cannot be executed and an error was reported. Do you have this problem in version 2022.2, or is it due to personal computers?多线叠盘NG.fsm

FlexSim 22.2.2
kinematics
多线叠盘ng.fsm (57.7 KiB)
· 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.

CSN avatar image CSN commented ·

I seem to have found the problem, which is caused by the use of the Chinese version. Just like the other model I uploaded, there is also a problem with the moving tray. I know that English modeling can be used to solve this problem, but I still want to consult the development team. It is caused by some wrong operation we did in the process of Chinese translation. Since the customer needs to use the Chinese version, we hope to get a solution, thank you very much!多线叠盘NG_中文版.fsm

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ CSN commented ·

I'm not sure if you already have a workaround for this - if not, destroy the kinematic node after it is finished:

token.labels["kinematics"].destroy()
0 Likes 0 ·
CSN avatar image CSN Jason Lightfoot ♦♦ commented ·

This is effective and can be a good solution to the situation of pallets flying around. But the first error when executing kinematics is still there, I know it may be caused by the Chinese version of the software, do you have any other ideas to solve it?

0 Likes 0 ·
Show more comments

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered CSN commented

The kinematics activities listen to an object's On Pre Draw trigger in order to automatically update the kinematics as the 3D view is drawn.

In order to do that, they first try to listen to the object specified in the Object field on the Create Kinematics activity. If that object doesn't have an On Pre Draw trigger (e.g., flowitems), then it traverses that object's parents until it finds one it can listen to (for the common flowitem case, that's whatever object the flowitem is currently in).

In your process flow, because you are moving the item into the model before creating the kinematics, it can't find an object to listen to. Hence the error message:

time: 118.892403 exception: Error: Unable to listen to On Pre Draw of object /托盘 at apply kinematics activity "应用运动学" in process flow "工艺流程

Instead of moving the item into the model, move it into an object that has an On Pre Draw trigger, such as a Visual Plane or a Queue. Then it will be able to find an object to listen to.

This issue is the same whether you are using the English version of the software or Chinese.

· 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.

Phil BoBo avatar image Phil BoBo ♦♦ commented ·

Additionally, if you look at the code in the Movement > Translate Item pick options on various conveyor objects, such as a Decision Point's On Arrival trigger, you can see an example of how you can use the kinematics commands to directly affect items being controlled by the conveyor system itself. You can use that same code wherever you want to apply kinematic movement to items while they are on a conveyor.

1673893917040.png

0 Likes 0 ·
1673893917040.png (273.9 KiB)
CSN avatar image CSN Phil BoBo ♦♦ commented ·

I will try to move the item into a queue or a plane, and I will also learn the code in "Translate Item", thank you very much.

0 Likes 0 ·
CSN avatar image CSN commented ·

中文版-多线叠盘NG.fsm

I have tried to move the item into the model,and the pallet location is dislocated.

Please help to have a look.Thanks!

1675230761282.png



0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ CSN commented ·

You need to destroy the kinematic node as previously indicated. In this version of the model I've added an autosizing pallet to handle easy stacking of loaded pallets.

StackedPalletKinematics_ng_jl.fsm

0 Likes 0 ·
CSN avatar image CSN Jason Lightfoot ♦♦ commented ·
  • Thank you. It worked out perfectly.

0 Likes 0 ·