good day to all of you in this forum,
I am not able to install the autolevel on my CNCJS program: I am not a software engineer .
I do not understand how to use the downloaded pack for installing it .
Any help is appreciated.
Thanks in advance.
regards,
Ambro
We need a bit more information. What is âauto levelâ? Iâve been using CNCjs for a while, no idea what that is.
@Griff Autoleveling, as it relates to CNC router use, is kind of like the bed leveling your Prusa does. Basically you probe a non flat surface and the gcode gets adjusted to change your Z height based on that surface map.
CNCjs does not have this built in (yet), but someone wrote an extension that will allow you to do it. I havenât tried and this is one reason I still have bCNC installed. Itâs been a frequently requested feature and I think by version 2.0 itâll be included.
@Ambro, you might have better luck on the CNCjs GitHub site. Or give @Julien a minute and heâll figure it out. What are you running CNCjs on?
Hi @Ambro,
@neilferreri knows me too well, I couldnât resist looking into it since I did not know about a CNCjs extension for autoleveling like bCNC has.
The only one I found is this one, is this what you are trying to install ?
I had a go at installing it, itâs in fact a CNCjs extension that works like a CNCjs pendant: itâs a separate piece of software that you have to run once CNCjs is already executing, it will connect to the CNCjs application and react to the a specific âautolevelâ keyword.
The installation depends on which OS you are using, I tried on Windows10. Iâm afraid itâs a little involved (but doable):
- install âgitâ
- install ânode.jsâ (which should also install ânpmâ)
- open a console window (search box, type âcmdâ, a black text mode window appears)
- download the code for the autolevel extension by typing âgit clone GitHub - kreso-t/cncjs-kt-ext: Auto-leveling extension for CNCjsâ
- it will have created a directory âcncjs-kt-extâ, enter it (cd cncjs-kt-ext) and install the extension by typing ânpm installâ
- now you need to figure out which network port CNCjs runs on. If you are using a CNCjs âserverâ install, it is most likely 8000. If you are running the CNCjs standalone application, you will need to go to âViewâ menu, âView in browserâ, this will open another CNCjs interface in your browser, and the port number will be displayed at the end of the URL (in my case it showed â127.0.0.1:61678/#/workspaceâ, so the port is 61678. It changes everytime you relaunch the CNCjs app unfortunately.
- launch the Autolevel extension, still from the command line, by typing ânode .â from inside the cncjs-kt-ext directory. It should print something like
Connected to ws://localhost:61678?token=[a very long string of characters]
Connected to port âCOM16â (Baud rate: 115200)
Almost there, now you need to create a macro in CNCjs (clicking the â+â in the Macro widget), name it âautolevelâ, and paste exactly this piece of text:
(#autolevel)
And then your are done with the install. To use the feature,
- you will need to have a probing device attached to the Shapeoko controllerâs PROBE input
- if the probing device is mechanical (e.g. a push switch), you can proceed.
- if the probing device works by detecting electrical contact, you need make sure the surface of the piece you want to probe conductive, for e.g. a PCB it is already, for other material the usual trick is to wrap aluminium foil on the top surface
- You then set your job zero on the piece as usual (the autolevel macro expects that it is the lower left corner of the job though), leave the cutter at 0,0,0, and run the autolevel macro from CNCjs
I have not actually run the macro on a real example, I tested all of this on a simulated Shapeoko to make sure the extension is sending the G-code commands when prompted, but if anyone is interested, I can certainly try it âfor realâ.
Thanks Griff for the reply,
That feature is used to compensate for the errors introduced by the machine plane and it is very important to mill PCB. I did download the extension from https://github.com/kreso-t/cncjs-kt-ext but I do not really understand how to install it.
Thanks for helping,
Ambro
thanks ,
could you please spend few more words on points 1 through 7 ?
What do you mean with " install git ? and node.js ?
I did download the code requested on point 4.
Thanks again.
Ambro
Ok,
- you can forget about 1) for now, since you have downloaded the cncjs-kt-ext zip file already
- for installing the âNode.jsâ framework, go to https://nodejs.org/en/download/ and download the correct installer for your OS (is it Windows?), and execute it.
- extract the zip file of cncjs-kt-ext somewhere you like on your computer, then try to follow steps 3,5,6,7
If you are not comfortable with using the Windows command line window, you should start by getting familiar with that.
If you feel this is too complicated, you are probably better off trying bCNC, which has autolevel by default (I think?). If you still want to try, Iâll do my best to help you following the steps and getting this to work.
Learned something new today and itâs only 6;56 am.
Been thinking about making simple pcbâs for various wiring projects, been wondering if doable on SO3. Iâll wait âtil leveling is added to CNCjs. Or try bCNC.
Thank very much to all for the assistance.
I did try to installa the extension for CNCjs and I di try to make bCNC working but they are too tricky for me !
I found a program called " Candle " on the WEB and it is very simple to install . It runs very well under windows _10 . It also has auto_levelling included. It is very strightforward to use.
I would recommand it .
Thanks again for the kind assistance .
regards,
Ambro
This is a g-code sender I did not know about, interesting, thank you. Let us know your feedback once you have successfully used autoleveling with Candle, Iâm sure some here will be interested.
I did try this morning with a very simple PCB : it is working well .
Please note that auto_levelling is called height_map here !
Thanks for all.
Ambro