Simulation timer

Moderators: TomKerekes, dynomotion

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: Simulation timer

Post by TomKerekes » Fri Jun 23, 2023 2:40 am

Hi Taras,

I don't think that would work and would take about half the time of actually running the Job.

Here is a Test Version with a ‘Do Times” Simulation option added. When checked, running Simulation will fully Trajectory Plan all Paths the same as a real run (without commanding any motion) and display estimated Job Time. Displayed times have been changed from seconds to hours:minutes:seconds. GViewer Plot will then show Trajectory Planned paths rather than what raw GCode specifies.

Simulation with 'Do Times' on is a few times slower than with it off but still very fast.

Test Version 5.0.8a

You could help a lot by testing it thoroughly.

Here is shown the new option and the result

DoTimes.png

Here is the GViewer zoomed in on some GCode with faceted curves (from Dynomotion.ngc top of 'Y') plotted with 'Do Times' off. Note the facets are visible when the raw GCode is plotted.

Facets.png
Facets.png (7.37 KiB) Viewed 3601 times

Here is the plot with 'Do Times' on. Note corner rounding has been applied for smoothing. Corner Tolerance 0.001 inches. Facet Angle 1 degree.

Smooth.png
Smooth.png (6.62 KiB) Viewed 3601 times

Please let us know if you find any issues.
Regards,

Tom Kerekes
Dynomotion, Inc.

Tarasevih
Posts: 101
Joined: Fri Jul 09, 2021 11:26 am

Re: Simulation timer

Post by Tarasevih » Fri Jun 23, 2023 5:58 am

These errors with connected Kflop
Status Record Size mismatch
Disable further status updates ?
and
Read Failed - Auto Disconnect
Do I need to update Kflop?
Attachments
Screenshot_2.jpg
Screenshot_1.jpg

Tarasevih
Posts: 101
Joined: Fri Jul 09, 2021 11:26 am

Re: Simulation timer

Post by Tarasevih » Fri Jun 23, 2023 6:56 am

I reshuffled the K Flop, everything was fine.
Timer in simulation mode shows 0 seconds.
In non-simulation mode, the timer works
https://www.youtube.com/watch?v=UbrxqAJNTxU
Last edited by Tarasevih on Fri Jun 23, 2023 7:09 am, edited 1 time in total.

Tarasevih
Posts: 101
Joined: Fri Jul 09, 2021 11:26 am

Re: Simulation timer

Post by Tarasevih » Fri Jun 23, 2023 7:08 am


Tarasevih
Posts: 101
Joined: Fri Jul 09, 2021 11:26 am

Re: Simulation timer

Post by Tarasevih » Sat Jun 24, 2023 4:34 pm

Hi Tom.
Resting on weekends?
I have a bug in visual studio.
What is my problem ?
Regards,
Taras.
Attachments
Screenshot_2.jpg
Screenshot_1.jpg

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: Simulation timer

Post by TomKerekes » Sat Jun 24, 2023 6:24 pm

Hi Taras,

I forgot about being able to do simulations using the Cycle Start button instead of the Run button. Here is a Version where that should also work.

Version 5.0.8b

Otherwise I don't really understand what you are trying to show. It would help if you explained things clearly.

Regarding Visual Studio I think you may not have installed MFC (Microsoft Foundation Classes).
Regards,

Tom Kerekes
Dynomotion, Inc.

Tarasevih
Posts: 101
Joined: Fri Jul 09, 2021 11:26 am

Re: Simulation timer

Post by Tarasevih » Sun Jun 25, 2023 4:25 am

Hi Tom.
MFС class installed and KMotion 435f version build well
This problem is only in version KMotion5.0.8a
Regards,
Taras.
Attachments
Screenshot_3.jpg

Tarasevih
Posts: 101
Joined: Fri Jul 09, 2021 11:26 am

Re: Simulation timer

Post by Tarasevih » Sun Jun 25, 2023 5:00 am

Thanks a lot Tom.
The simulation now works as it should and shows the right time.
There was another problem.
When you select a 4-axis screen, the program crashes with an error and no longer starts.
It turns out that the timer only works in a 3-axis machine, but I need 4 axes.
What can you do about it Tom?

p.c. Error means - Attempted to perform an unsupported operation
Regards,
Taras.
Attachments
Screenshot_4.jpg

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: Simulation timer

Post by TomKerekes » Sun Jun 25, 2023 11:22 pm

Hi Taras,
When you select a 4-axis screen, the program crashes with an error and no longer starts.
It turns out that the timer only works in a 3-axis machine, but I need 4 axes.
What can you do about it Tom?
Oops forgot to include the Do Times controls in the other standard screens. Those should now work in this version.

Version 5.0.8c

This problem is only in version KMotion5.0.8a
I don't understand what the problem is.
Regards,

Tom Kerekes
Dynomotion, Inc.

Tarasevih
Posts: 101
Joined: Fri Jul 09, 2021 11:26 am

Re: Simulation timer

Post by Tarasevih » Mon Jun 26, 2023 4:23 am

Thanks a lot Tom.
This looks super cool.
Regarding the error in the visual studio window.
I have a version of visual studio 2015 and maybe you compiled in a newer version?
Or maybe you have updated some components ?
I would like to work with the appearance and not everything can be done through the Screen Editor.

Regards,
Taras.

Post Reply