fra589 / grbl-Mega-5X

5/6 Axis version of Grbl, the open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560
https://github.com/fra589/grbl-Mega-5X/wiki
Other
341 stars 159 forks source link

Can't connect to grblgru software #327

Closed ariefadha closed 1 year ago

ariefadha commented 1 year ago

I can't connecting to grblgru with my own compilation hex file but works fine with hex given by grblgru. heres the picture that showing the error : 16824149381293216405978439981377

might you guys can help me what I need to change before compiling

RaphaelDives commented 1 year ago

Hey @ariefadha come on... some more information could be very useful:

How did you compile yout "own" hex file? (Does not sound like the suggested way via Arduino IDE...) Can you connect with other software/terminal? Did you try cn5x? (I like to use pronterface for testing...) Just guessing: Did you set the right baud rate? I think there was a change some time ago with the default value. (...)

Anyway it's very hard to help, with so less information...

Cheers, Raphael

walterwissmann commented 1 year ago

I tested and compiled grbl5x on Linux Mint serveral times the last days and tested it with nc5x, bcnc...

No problems.

Walter

fra589 commented 1 year ago

Hi @ariefadha,
I use several own compilation of grbl-Mega-5X without problem... Do you have changed the "GRBL_VERSION" definition in grbl.h or the "report_init_message()" function in report.c or the default "BAUD_RATE 115200" in config.h?

Perhaps the problem come from your Grblgru, maybe you can ask to @GrblGru...

@++; Gauthier.

ariefadha commented 1 year ago

Hey @ariefadha come on... some more information could be very useful:

How did you compile yout "own" hex file? (Does not sound like the suggested way via Arduino IDE...) Can you connect with other software/terminal? Did you try cn5x? (I like to use pronterface for testing...) Just guessing: Did you set the right baud rate? I think there was a change some time ago with the default value. (...)

Anyway it's very hard to help, with so less information...

Cheers, Raphael

other software works fine, terminal works fine. I use rckeith hex also has some problem.

and this is how i compile https://youtu.be/kIB8FFu5RLA

and it seems other users have some problem see comments section from this video https://youtu.be/jNKa2-UwKgo Screenshot_2023-04-25-23-38-13-775_com google android youtube

ariefadha commented 1 year ago

Hi @ariefadha, I use several own compilation of grbl-Mega-5X without problem... Do you have changed the "GRBL_VERSION" definition in grbl.h or the "report_init_message()" function in report.c or the default "BAUD_RATE 115200" in config.h?

Perhaps the problem come from your Grblgru, maybe you can ask to @GrblGru...

@++; Gauthier.

i think root of problem is there. can you please tell me how to change "GRBL_VERSION"? please elaborate, since i left it defaults

and yes it might grblgru problem, and i already ask him in the forum also. but not answered yet

ariefadha commented 1 year ago

I tested and compiled grbl5x on Linux Mint serveral times the last days and tested it with nc5x, bcnc...

No problems.

Walter

i never use cn5x. since my machine is 4 axis independent foam cutter with rotary table

GrblGru commented 1 year ago

@ariefadha

When establishing the USB connection I expect a normal ready message from Mega-5X. See pic below.

Which Mega-5X version are you using ?

When installing GrblGru, 2 Mega-5X bin files are copied into the installation directory. C:\Program Files (x86)\toe\GrblGru

Please try to flash the file
grbl-Mega-5X-v1.2d_XYZU_SPINDLE_PWM_ON_D6.Hex into the controller. In this file the 4-axes X,Y,Z and U are already selected, which you need for the operation of your FoamCutter.

wish you much success

grafik

ariefadha commented 1 year ago

@ariefadha

When establishing the USB connection I expect a normal ready message from Mega-5X. See pic below.

Which Mega-5X version are you using ?

When installing GrblGru, 2 Mega-5X bin files are copied into the installation directory. C:\Program Files (x86)\toe\GrblGru

Please try to flash the file grbl-Mega-5X-v1.2d_XYZU_SPINDLE_PWM_ON_D6.Hex into the controller. In this file the 4-axes X,Y,Z and U are already selected, which you need for the operation of your FoamCutter.

wish you much success

grafik

im using the lastest version

ive test grbl-Mega-5X-v1.2d_XYZU_SPINDLE_PWM_ON_D6.Hex file. it works fine. but i need 5 axis for rotary table and some rewiring limit switches.

GrblGru commented 1 year ago

Ok, then try the other file as well. grbl-Mega-5X-v1.2d_XYZAB_SPINDLE_PWM_ON_D6.hex. It is configured for 5 axes. But for 3 linear axes X,Y,Z and the two rotation axes A and B. But you need 4 linear axes XYZU and one rotation axis A. Then you have to create your own version by changing the configuration file. However, GrblGru does not have a corresponding FoamCutter model at the moment. But it is on top of my list.

ariefadha commented 1 year ago

this is the ready message i got on serial terminal IMG_20230426_003120

and your current 4 axis model is oke-ish for me. but if you also add rotary table it will be awesome.

in the meantime i need to sovle the problem first how to connect to grblgru software, as you can see here in this video i need to set my own ver https://youtu.be/kIB8FFu5RLA

ariefadha commented 1 year ago

Then you have to create your own version by changing the configuration file

can you elaborate what setting must i change so it can connect? because with lastest ver and all default, i still cant connect

GrblGru commented 1 year ago

I am very sure that Gauthier can tell you much better how to configure Mega-5X. But I noticed that in your 1st screenshot there is the message "Waiting for Grbl identification". This only appears when you try to connect to GRBL. But you have to select "GRBL-Mega-5X" in the selection window. Then the message "Waiting for Mega-5X identification" appears.

grafik

fra589 commented 1 year ago

Hi @ariefadha,

Your compiling method and config seams to be good...
The ready message you got on serial terminal is the standard one.

But it seams that Grblgru's version is adding the axes names in parenthesis... @GrblGru, do you have changed the "GRBL_VERSION" definition in grbl.h or the "report_init_message()" function in report.c?

You can try with my own Grbl driver software cn5X (https://github.com/fra589/cn5X). it automatically adapts to all configurations from 3 to 6 axes, linear or rotary. There is no drawing of the part or the machine, but it analyzes and displays all the status information of grbl-Mega-5X and allows to drive all its functions, including the one I added against to the original Grbl.

image

@++; Gauthier.

ariefadha commented 1 year ago

I am very sure that Gauthier can tell you much better how to configure Mega-5X. But I noticed that in your 1st screenshot there is the message "Waiting for Grbl identification". This only appears when you try to connect to GRBL. But you have to select "GRBL-Mega-5X" in the selection window. Then the message "Waiting for Mega-5X identification" appears.

grafik

oh, i forgot to tell you that im using grblgru v4.8. because above that version it got bug on displaying the machine. here i give you screenshot using both, as you can see on v5.0 the machine axis not draw good.

ver4.8: IMG-20230426-WA0000

ver5.0: IMG-20230426-WA0001

and some other bug like slow animation when i change viewing angle, and uninstalling the software just like deleting desktop shortcut, still not delete the installation folder, and i can still run the software after uninstalled.

ariefadha commented 1 year ago

Hi @ariefadha,

Your compiling method and config seams to be good... The ready message you got on serial terminal is the standard one.

But it seams that Grblgru's version is adding the axes names in parenthesis... @GrblGru, do you have changed the "GRBL_VERSION" definition in grbl.h or the "report_init_message()" function in report.c?

You can try with my own Grbl driver software cn5X (https://github.com/fra589/cn5X). it automatically adapts to all configurations from 3 to 6 axes, linear or rotary. There is no drawing of the part or the machine, but it analyzes and displays all the status information of grbl-Mega-5X and allows to drive all its functions, including the one I added against to the original Grbl.

image

@++; Gauthier.

thanks, I will try cn5x also.

GrblGru commented 1 year ago

@Gauthier Just for your information. I made 2 Mega-5X versions with different configuration, because many people who use GrblGru are pure users and not developers who can build their own version. So I can see which version is used, I added the extra identifier in the version string. But it is not mandatory for the operation with GrblGru.

@ariefadha Your screenshots show me that you used the very old version of the FoamCutter. But there is already a new better version. I recommend you to use the newest GrblGru version.

To learn how to use the FoamCutter, see the last video in the Video Gallery on my website. https://www.grblgru.com/VideoGallery The on-screen texts are unfortunately in German only, but the function should be clear.

Let me know if you have any other questions or suggestions for improvement.

gauthier commented 1 year ago

Hi, I don't understand why I'm tagged here. I guess I'm not the gauthier you think you're tagging :)

GrblGru commented 1 year ago

Oh, sorry. My mistake. I mean @fra589 , of course. Copy& paste is not always correct :)

gauthier commented 1 year ago

No problem ;) that way, the actual recipient will be kept in touch :)

ariefadha commented 1 year ago

@GrblGru i already install the lastest ver of grblgru (ver 5), but that really bugging me is the 3d machine cannot move the gantry like you see on my 2nd image above. thats why i use oldest version. since the main features that i like from your software is able to simulate the machine cutting.

and can you tell me what setting you change when compile grbl mega? because my 1st concern here is to able to connect to grblgru 1st.

is changing GRBL_VERSION" definition in grbl.h or the "report_init_message()" will solve the problem? if not mandatory so why i can't connect to grblgru while is nothing problem with any software/serial software?

GrblGru commented 1 year ago

Ok, I think you didn't understand my last post, but let's first see why your version doesn't work with GrblGru. Please provide me with your bin file here. (Rename to .txt)

ariefadha commented 1 year ago

Ok, I think you didn't understand my last post, but let's first see why your version doesn't work with GrblGru. Please provide me with your bin file here. (Rename to .txt)

ok I'll test version 5.1.2 once I got home.

ariefadha commented 1 year ago

@GrblGru all works well with ver 5.1.2 that I've tried. many thanks for the hard works.

I have some suggestions for improvement :

  1. pendant/keyboard(shortcut) to jog foam cutter machine.
  2. debug/command line bar at the bottom always hidden on program start.
  3. "show current (yellow) toolpath" some how stuck while operating machine (tested in foam cutter machine only). but works fine in simulation mode.
  4. uninstalling program does not take effect. it still not remove the file on program file > toe > grblgru .. and still can running the program after uninstallation.

but once again thanks for the hardworking, im having fun with your software, especially the simulation and macro programming that allows users have more flexibility. can't wait for your next ver. danke schoon