Making a simulator version of my router table config?

  • JetForMe
  • JetForMe's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
13 Jan 2023 23:31 - 13 Jan 2023 23:59 #261837 by JetForMe
Hi there. I've used 2.9.x successfully on my a gantry-style router I built, and it works pretty well. Now I'm working on some UI and feature enhancements to it, and I'd like to be able to do this on my Mac and without the machine. So I installed a Debian 11 VM, checked out the code, built it, and after a few hiccups (missing OpenGL, not knowing where the built binaries are for run-in-place), It'm able to display the Axis UI for a simulated machine on my Mac. So far, so good.

Now I'd like to make a simulated version of my router table. Is there any guidance on how to accomplish this? My router table uses a Mesa 7i76e, and has a tool changer, tool presence sensors in the spindle, tool setter, an air pressure sensor, as well as controllable fans and z-axis brake. Is it possible to write components to simulate the presence of some of these things? I really just need for my VCP widgets to be able to access some of the state variables, and it would be amazing if I could get my tool changing/measuring to work. Doesn't have to be super accurate, just has to let the python and ngc routines I invoke think they're working.

If I can't do all that, what's the best way to get as far as possible? Just try launching my .ini and go from there?

For reference, this is my .ini: github.com/JetForMe/router-table/blob/ma.../router3/router3.ini
Last edit: 13 Jan 2023 23:59 by JetForMe.

Please Log in or Create an account to join the conversation.

More
14 Jan 2023 12:23 #261934 by andypugh
Have a look at the linuxcnc/configs/sim/axis/vismach/5axis/bridgemill/ config as a starting point.
possibly also vmc_toolchange. Both have example HAL files that emulate some aspects of a real machine.
And, yes, you can write custom HAL components too if you want. You could even build one that matches all the pin names of your Mesa card, if you wanted to.

Please Log in or Create an account to join the conversation.

More
14 Jan 2023 18:20 #261967 by cmorley
If you can live with using stepconf, it can make a simulated config.
Won't be able to test mesa stuff but maybe that doesn't matter.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
14 Jan 2023 18:32 #261969 by tommylight
For editing VCP panels, it does work without Mesa, edit the panel with hal names and pins and everything just leave empty the hardware hal pins, these you can do on the machine later.
Not ideal, but saves a lot of time.

Please Log in or Create an account to join the conversation.

More
05 Feb 2023 03:15 - 05 Feb 2023 17:43 #263734 by chowderhead
I am on a similar quest with a gantry CNC router table. I copied one of the sims from source and modified it, but immediately get a joint 2 following error (the second motor on the y-axis gantry) upon homing or jogging the joint. Looking at Halshow, it seems joint.2.motor-pos-cmd is set to a non-zero value momentarily and immediately throws the following error. I'm happy to share my ini and hal, but I'm hoping someone can tell me where to start troubleshooting.

Thanks.

[EDIT] Never mind - figured it out; neglected to wire up motion enabled to joint2 mux select...
Last edit: 05 Feb 2023 17:43 by chowderhead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum