fra589 / cn5x Goto Github PK
View Code? Open in Web Editor NEWcn5X++ is a new 5/6 axis Grbl control panel to implement all the grbl-Mega-5X capabilities.
License: GNU General Public License v3.0
cn5X++ is a new 5/6 axis Grbl control panel to implement all the grbl-Mega-5X capabilities.
License: GNU General Public License v3.0
Hi
when i try to run the setup.py script it errors out with a syntax error on this line and it is on the latest version from the github.
Syntax errors detected :
Line 62:
options = dict(build_exe = buildOptions),
^
SyntaxError: invalid syntax
PS i am a complete novice with coding atm
regards jesse
I command in ssh,
apt-get install python3 python3-pyqt5 python3-pyqt5.qtserialport
adduser pi dialout
git clone https://github.com/fra589/cn5X.git
cd cn5x/
make
and then getting some errors like this
pi@raspberrypi:~/cn5X $ make make[1]: Entering directory '/home/pi/cn5X/i18n' lrelease cn5X.pro make[1]: lrelease: command not found Makefile:35: recipe for target 'cn5X.en.qm' failed make[1]: *** [cn5X.en.qm] Error 127 make[1]: Leaving directory '/home/pi/cn5X/i18n' Makefile:40: recipe for target 'lang' failed make: *** [lang] Error 2
or how can i install and run this app
have a nice day
Originally posted by FKLCo January 27, 2022
hallo sir
I install cn5X without problem, but when I try to run I receive the follwing error:
catalin@catalin-ThinkPad-X201:~$ '/home/catalin/Descărcări/cn5X-master/cn5X.py'
qt5ct: using qt5ct plugin
cn5X++ v0.8.6 running from: /home/catalin/Descărcări/cn5X-master
####### # #
#### # # # # # # #
# # ## # # # # # #
# # # # ##### # ##### #####
# # # # # # # # #
# # # ## # # # # # #
#### # # ##### # #
qt5ct: D-Bus global menu: no
Traceback (most recent call last):
File "/home/catalin/Descărcări/cn5X-master/cn5X.py", line 2757, in <module>
window = winMain()
File "/home/catalin/Descărcări/cn5X-master/cn5X.py", line 170, in __init__
self.setTranslator(langue)
File "/home/catalin/Descărcări/cn5X-master/cn5X.py", line 2681, in setTranslator
self.log(logSeverity.error.value, self.tr("Locale ({}) not usable, using default to english").format(locale.name()))
AttributeError: module 'locale' has no attribute 'name'
Linux Mint 20 Ulyana pe 64 de biți
Linux 5.4.0-96-generic x86_64
Default computer language - Romanian
Thanks for any advice.
Hi, I recently (yesterday) installed cn5x on raspbian and was jogging with all axis and changing some things on configuration and every worked perfectly, but today i reinstalled raspbian and again installed cn5x but now everytime i connect the mega i have some messages of error:
2020-12-13 23:19:02 : Info : grblCom: Starting grblComSerial thread on ttyUSB0.
2020-12-13 23:19:02 : Info : grblComSerial running "grblComSerial" from thread #0x6a567460.
2020-12-13 23:19:03 : Info : grblComSerial: comPort ttyUSB0 open, RC = True
2020-12-13 23:19:04 : Info : cn5X ++: Grbl initialized.
2020-12-13 23:19:04 : Error : grblComSerial: decode error: <class 'UnicodeDecodeError'>
2020-12-13 23:19:04 : Error : grblComSerial: decode error: <class 'UnicodeDecodeError'>
2020-12-13 23:19:04 : Error : grblComSerial: decode error: <class 'UnicodeDecodeError'>
2020-12-13 23:19:04 : Error : grblComSerial: decode error: <class 'UnicodeDecodeError'>
and then it connect. But if i exit from alarm state, cn5x only shows 3 axis (but it has 5 axis, because yesterday i could use the 5 axis and also if i send $$ to console then it shows grbl configuration settings for 5 axis) also if press mergency button to change the grbl configuration directly from cn5x i get out from cn5x and the terminal shows those messages
pi@raspberrypi:~ $ python3 /home/pi/cn5x/cn5X.py
qt5ct: using qt5ct plugin
cn5X++ running from: /home/pi/cn5x
qt5ct: D-Bus global menu: no
qt5ct: custom style sheet is disabled
Before Here are outputs when launching cn5x
Traceback (most recent call last):
File "/home/pi/cn5x/grblConfig.py", line 325, in on_sig_config
self.__di.lblGrblDate.setText(decodeVer[2])
IndexError: list index out of range
Aborted
Hi, I found this grbl controller very useful, easy to read and stable. (I have problem both with UGS and bCNC, under PopOs!)
One thing that I'm missing is a Button to send a "G92 X0 Y0 Z0" like a "Set Zero", maybe with the possibility to fill 3 textfields if you want to set a position different from Zero..
Is this something you can add?
Thank you.
p.s. I'm running a double X gantry, with your grbl-mega-x5 firmware.
This looks like an interesting new 5-axis software control project. 😄
Is the focus on just supporting 5-axis GRBL, or should it (eventually) support other 5-axis controllers too?
eg g2core, LinuxCNC, MachineKit, etc?
Hi Gauthier!
First let me say a big thank you for your awesome soft! It runs smooth on Linux, however I was not able to have it performing well on Windows.
I have a question on the $10 setting, i have read the wiki an i can not figure out the $10=2 value with the buffer?
What should one use, i presume =1? I have strange black boxes appearing in the DRO field recently while hovering over with the mouse cursor.
BTW is there a setting =0 for this value?
Thanks a lot,
Lex.
Hi Gauthier,
Somehow i managed to find a windows installer for cn5X and installed it on windows 7 64 bit OS.
At first it wouldn't connect with my Arduino Mega/controller, I read through the issues and read that there was a bug - CrLf had not been included when the code first connected with the mega and a fix was issued v0.3.i. I can only find the source code for v0.3.h (python based GUI ?). Is it possible to obtain a windows installer with the fix.
I have a workaround i'm currently using which is to hold down the boards reset switch whilst pressing connect on the GUI this is putting the reset and connection in sync when the reset is released and is successful every time. I currently use Grbl Panel which is unfortunately no longer supported and only 3 axis GUI and Candle cnc which is not as feature rich as Grbl panel also only 3 axis GUI. I like your application as it has a look of realism about is, its nice to use a GUI which looks and feels like using an industrial machine operating panel. Looking forward to your reply.
Jason
Can the 0.3 version run on Debian?
Hey Gauthier, how are you? Happy new year!
This is really not a issue but rather a quick question. As you must know, I've been using Grbl Mega 5X to operate a 4 axis hotwire cutter, which has 4 linear axis.
Can I use cn5X++ to operate all axis as linear or are axis A, B and C configured to be rotary only (as the picture/logo on main page suggests)?
The printscreen of the program on the Wiki shows the jogging buttons for A and B axis also suggesting they are rotary... are they hardcoded to move in degrees/radians only or would they work for linear motion too?
Thanks!!!
Upon attempting to save a new homing direction invert mask, cn5X crashed with the error:
Traceback (most recent call last):
File "/Users/will/cn5X/grblConfig.py", line 567, in on_Apply
self.sig_config_changed.emit("$23=".format(self.__di.emHomeDirInvert.value()))
TypeError: 'int' object is not callable
Abort trap: 6
Hello, recently, I have encountered problems in language translation.
I copied a cn5X.en.ts file, and renamed it, and translated the characters using Linguist, and finally published the QM file using Linguist,which was saved in the same directory as the TS file.
The corresponding language selection is already shown on the software menu, but when I click the button, the command window appears "Locale () not usable, using default to english"
If I want to make a local language,What should I do next?
cn5X cannot use large gcode files?
Hi. I see recent updates to files in the github repository, so I presume you are still working on it. I'd like to share my experience. I am running under Windows 10 and Python 3.9. I was getting errors from python about a missing method to the serial module called "to_bytes", but I was able to overcome that. I was then able to run cn5X and connect to a Mega 2560 running the latest version of Grbl-Mega-5X. However, although connected, everything is greyed out and unusable. By everything, I mean jogging, probing, and even entering gcode commands manually. I am using a copy of grbl-mega-5x that I compiled with hard limits disabled and homing not required, so when connected to cn5x it starts up in an "idle" state--but everything is still greyed out. If you need more info please let me know. Thanks.
Hi Gauthier
Can you confirm that mega 5x works with the ramps 1.6 board please
Pouvez-vous confirmer que mega 5x fonctionne avec la carte des rampes 1.6 s'il vous plaît
Regards Lesli
I have built APP_VERSION_STRING = "0.3.f" both on Windows 10 and Windows 7. Build was succesfull but the buttons are all grayed. I can only press Emergency Button. I can connect to grbl-Mega on a ramps 1.4 but the connection is problematic. I can confirm that it is not an issue with the arduino board or CH340 because I can complete a job using CNCJS. I will post screenshot once I'm back home.
Above is a screenshot in my win10 build but it is not connected to grbl-Mega. I change the version as it wont compile with a alpha character in the version.
2018-11-17 17:53:34 : Info : grblCom: Starting grblComSerial thread.
2018-11-17 17:53:34 : Info : grblComSerial running "grblComSerial" from thread #0x18d8.
2018-11-17 17:53:34 : Info : grblComSerial: comPort COM13 open, RC = True
2018-11-17 17:53:39 : Error : grblComSerial: Grbl initialization: Timeout !
2018-11-17 17:53:39 : Error : grblComSerial: unable to open serial port!
2018-11-17 17:53:39 : Info : grblComSerial : End
Sorry for my ignorance, how do I test your software?
1- I will download PYQT5, I will try to place it where it belongs (a little silly man from this side)
2-Which command should I execute? In others I find it easy: batch file .....
I hope help, hugs, Mario
Hi @fra589,
This program looks really awesome! But I can't read French. Is it possible to switch to English interface?
Thanks,
Joshua
Hello, thanks for sharing this project.
Is there an Arduino Pinout available? Like Probe Pin or Temp Sensor for Spindle Temperature for Fans on the water cooling radiator. Are you planning to make some features? Like: Glass Scale with an PID Controller with setpoint from Arduino actual value from Glass Scale and Rotary encoder. If you are planning to do something like this please contact me im an electronic guy. And how can I install the GCode Sender Software on Windows?
Best regards from Germany/ Darmstadt
Tobi
Found by accident that the grbl settings button was finally not grayed out if estop is pressed. Pressed, paused, closed. Finally able to catch python output in a video and screenshot. Pic attached.
Is there a graphical process progress view that I'm missing? Or just xyz numbers changing as motors move?
Darren.
Hi, @fra589
My win10 opened it, and it can connect to mega2560,shows:
Grbl 1.1f ['$' for help]
[MSG:'$H'|'$X' to unlock]
[VER:1.1f.20170802:]
[N_AXIS=5]
[OPT:VNM,35,255]
ok$$
2018-06-25 17:19:39 : Info : grblCom: Starting grblComSerial thread.
2018-06-25 17:19:39 : Info : grblComSerial running "grblComSerial" from thread #0xc64.
2018-06-25 17:19:39 : Info : grblComSerial: comPort COM3 open, RC = True
2018-06-25 17:19:40 : Info : cn5X ++: Grbl initialized.
2018-06-25 17:23:37 : Info : on_btnPausePooling(True)
And debug shows:
<<< <Alarm|MPos:0.000,0.000,0.000,0.000,0.000|Bf:35,255|FS:0,0|WCO:5.000,5.000,0.000,0.000,0.000>
?
<<< <Alarm|MPos:0.000,0.000,0.000,0.000,0.000|Bf:35,255|FS:0,0|Ov:100,100,100>
I can't send $x because the frame and send button is grey
What is wrong?
both firmware and software are at the latest version the error message occurs only during the first connection. starting first the serial monitor of arduino ide then its software instead the whole connects and works without any error.
I have installed CN5X on Linux Mint and I have uploaded Mega-5X to my Mega.
The Mega seems to be working properly - I can send it commands with the Minicom terminal program.
When I try CN5X it allows me to use the X and Y jog buttons but if I press any other button on the panel (for example the Z jog) everything stops working but with no error message. I can no longer use the X or Y jog and I have to disconnect and reconnect to get the X and Y working again.
What might I be doing wrong?
...R
I am using cn5X++ V 0.3k and have enabled hard limits via $21=1 and when I press a limit switch I can see the round limit light at the bottom of the display window light up so i know 5X++ is reading the limit switches yet no alarm shows and the axis keeps moving. Is there something else that needs to be setup for this to work? So i am using the A axis and it is working but the display is not showing degree's and looks more like a linear measurement, again is there a setting that needs to be setup for this to display right? So last item is when jogging when I get to zero on the display position on X or Y (not A that works OK) the movement stops and won't go any farther but i can go in the opposite direction OK, settings?
Thanks oh and if there is a better place to ask these questions please let me know.
Hello,
Afther installation python 3.8 and PyQt5 i can start the interface but there is a communication problem.
I have setup a mega 2560 bord with grbl 5Mega firmware , when i start the interface cn5X i have a time out error.
So nothing function.
I have done the same test on a ubuntu linux machine and the mega 2560 bord work normal and gice communication info.
Have you any tips ?
I'm start using your cn5X program in my mpcnc, I know is in alpha version, but after read some post on the forum I realise that is only my endstops that not work.
My CNC is based on a mpcnc of vicius, and we use the marlin firmware to run the CNC that is, 3D printer to, in the first stage of my CNC using the mega and the marlin mpcnc modified firmware, all my endstops work the x+,x-,y+,y-,z+,z-, the machine still the same, and have the same wires, but because i don't like the repetier host, or printrun to run the milling jobs (is more like to 3d printing), i'm start using a arduino uno with the 0.9j version of the GRBL, and i don't know why my endstops stop working, i have work arround with the $20 $21 and $22 and nothig so i have give up, now with this version of the GRBL to the mega with 5/6 axis that i'm plan to implement i'm start trying again but still the same if i put the mega with the marlin the endstops works, the mega with the GRBL the endstops don't work. so if you can help me i appreciate.
The suggestion is, in your cn5X program you have to bottoms for the coolant, well i can't see the difference between the food and the mist, for me if you need the coolant and i work with a big GMM CNC for stone we use flood because we need a lots of water to cool down the tool and the stone. For us maybe is more useful have only the coolant flood for stone or metal, and a vacuum (M10 and M11 g-code command) for wood, or even better in the options menus have a way to personalize that. Other thing that happened to me have respect to the laser mode in the configuration, I have laser mode on, because when i work with the spindle use the M3 and M5 command to activate a relay that turn on and off my spindle and the M4 and M5 to operate the laser, but in your programe if the laser mode is on the relay stay on and off when the z axis goes up and down, so still good ideia put a bottom to activate the laser mode outside the configuration. Other suggestion is use the 128x64 LCD graphics to display the Machine Position, and Work Position, and even the ETA, and ETE of the job, and a graphical visualizer of the job on the app
cn5X++转成EXE无法打开 提示27行少个文件 有没有具体需要怎么用
Help to run the program on Linux (Debian-9).
Thank you very much!
Hello i just installed cn5x on windows and when i connect to the mega2560 i get this message Imatge1 . I found a issue on grbl-master5x github that had the same problem on another version and he find a solution sending Ctrl + X trough arduino ide and then it works but in my case this isnt working, i also tried to edit the line 254 of the grblComSerial.py but it also didn't work. here you have another imatges of version, debug ,etc. Tell me what to do. Im in windows 10 32 bit
Hi @fra589,
Is there a way to adjust the jogging speed in cn5x?
screenshot from Laserweb
Thanks,
Joshua
Running cn5X-0.8.10_qt5 on Debian 12, attempting to connect to my Mega-5x controller. I believe that this may be a possible bug... unless my Python3/ QT5 installation is missing a module?
At the bottom of this message is my terminal screen showing all output of the command line "python3 cn5X.py" in user mode (not root)
I have complied with the pre-requisites and have installed everything it called for.
It is connecting through /dev/ttyACM0 at 115200 baud; the port has been configured for connecting to an Arduino device with the command:
"stty -F /dev/ttyACM0 cs8 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts " and the Arduino Mega communicates with either the CAT , TAIL or STTY commands:
==================================================
john@shop:~/cn5X-0.8.10_qt5$ tail -f /dev/ttyACM0
0
$22=0
$23=0
$24=25.000
$25=250.000
$26=250
Grbl 1.2h ['$' for help]
^C
===================================================
QSocketNotifier: Can only be used with threads started with QThread
cn5X++ v0.8.10.20230423 running from: /home/john/cn5X-0.8.10_qt5
####### # #
#### # # # # # # #
# # ## # # # # # #
# # # # ##### # ##### #####
# # # # # # # # #
# # # ## # # # # # #
#### # # ##### # #
using null output device, none available
Traceback (most recent call last):
File "/home/john/cn5X-0.8.10_qt5/cn5X.py", line 2524, in on_sig_status
retour = self.__decode.decodeGrblStatus(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/john/cn5X-0.8.10_qt5/grblDecode.py", line 198, in decodeGrblStatus
self.__mpos[I] = float(tblPos[I])
^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: '0.0000.000'
Aborted
==============================================
Hello there,
It is probably more a heads up and nothing to be done here, but, PyQt5 has problems running under Python 3.5.2 and this prevents cn5X from even firing up.
The fix would be running Python 3.6.5 instead; the issue is discussed here: https://github.com/mu-editor/mu/issues/575.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.