Ok, here is a portable demo CNC program that has some of the new features of version 1.0.5.2. Copy and paste, hit play and enjoy!
Ok, here is a portable demo CNC program that has some of the new features of version 1.0.5.2. Copy and paste, hit play and enjoy!
What is it and why do I need it?
Well, as you know, programs that use local settings like zero points, tools and workpieces will not run well on another computer because the settings there will probably be very different. If you want to send a program to a friend, you need to make it portable first. Same goes if you want to send a program you want to discuss with us at CncSimulator.com. Maybe you have made a very cool demo and want to send it to us so we can include it as a sample? (Please do).
With the latest version (1.0.5.2) it is possible to make programs portable by using the menu function Tools – Make program portable.
What the function does it that it creates a sub program with tools, zero points and workpieces definitions. Instead of using your local settings when running, the CncSimulator will use the tools, zero points and workpieces defined in the sub program.
The sub program is sort of “ugly” as it is full of strange CncSimulator specific commands. That’s why we hide it away at the end of the program to not distract the user. Feel free to move other CncSimulator specific command that you use to the subprogram too. This will give your CNC program a clean look with all “strange stuff” collected in the sub program. The function will automatically add a call to the sub program in the first row. The sub program number will always be 9999 so avoid that number if you plan to make your program portable.
Please note that this function currently only works for milling programs.
As you all (hopefully) know by now, you can set the 3D solid buffer quality in the Simulation Settings to Low, Medium and High.
The quality you will be able to use depends on your computer hardware and your demand for speed during simulation. In some situations, for example when milling small parts the High setting will not give enough resolution. Also, users with fast computers and huge amount of RAM memory will want to run a higher setting. With the new version (1.0.5.2) we have added a simulator command called $OverrideBufferQualitySetting. You can add it to the start of your program to customize your quality setting. For example, a value of 10 will give a buffer with 10 buffer points per unit. It will also slow down your simulation of course. You can play with this override setting but remember, you can easily create a memory overflow with a too high setting.
This zoomed in part was milled with the Medium setting, look at the edges of the arc and the hole.
This is the same part with $OverrideBufferQualitySetting 10.
Here is a tips about two M-codes we have forgot to put in the help file (will be added later).
M20 Open machine doors
M21 Close machine doors
Of course, they only work on machines that have doors! 😉
Have fun!
Please see our brand new tutorial on how to get started with the CncSimulator Pro!
Tutorial 1 – getting started with the CncSimulator Pro
Please note that the open file dialog we show in the tutorial does only exist in the version 1.0.5.2 (soon to be released).