Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

G-Code 4 axis convert to Marlin V.2.09 #268

Closed
qulet opened this issue Mar 27, 2022 · 27 comments
Closed

G-Code 4 axis convert to Marlin V.2.09 #268

qulet opened this issue Mar 27, 2022 · 27 comments

Comments

@qulet
Copy link

qulet commented Mar 27, 2022

Is it possible to add a connection with Marlin to the program in order to use only the CNC 4 axis functions, omitting the heating function?

@svenhb
Copy link
Owner

svenhb commented Mar 28, 2022

How needs the code to look like?

@qulet
Copy link
Author

qulet commented Mar 28, 2022

G-code for the 4th axis of the tangential knife after a slight modification {ASCI "conversion "(" to ";" and "A" to "E") allows you to run the code in the Marlin software. My request is to add a connection to the Marlin firmware as it is done in program "LaserGRBL" Your GRBL_Plotter program is very good, adding this function would make it even BETTER ...

@svenhb
Copy link
Owner

svenhb commented Mar 29, 2022

My request is to add a connection to the Marlin firmware

I see. I added this feature in 1.5.4.0 but got no feedback.... https://github.com/svenhb/GRBL-Plotter/releases/tag/v1.5.4.0

Perhaps it's not functioning anymore, because of other changings?

@qulet
Copy link
Author

qulet commented Mar 30, 2022

234 / 5 000
Wyniki tłumaczenia
I am currently using GRBL-PLOTTER 1.6.5.2 and despite the change:
I can't connect to the Marlin 2.09.01 firmware from your software. From the LaserGRBL programs to the switch to the Marlin software, this connection works.

Configuration.h Marlin
#define SERIAL_PORT -1
#define BAUDRATE 115200

image
Bez tytułu

@svenhb
Copy link
Owner

svenhb commented Apr 1, 2022

Perhaps no it works: I switched line-end marker from \r to \n. I have no hardware to check function.
https://github.com/svenhb/GRBL-Plotter/releases/tag/v1.6.6.0

@qulet
Copy link
Author

qulet commented Apr 3, 2022

Bez tytułu
Niestety nie udało się nawiązać połączenia z Marlinem :(((
Do I have to change something in "setup" GRBL-Plotter ? My serial port in Windows and in Marlin is set properly.
LaserGRBL

@svenhb
Copy link
Owner

svenhb commented Apr 4, 2022

Are you sure it is the right baud rate? I read about 250000 instead of 115200.
I never used LaserGRBL, so I don't know what the message means: Sounds to me it is also not connected...
image

@qulet
Copy link
Author

qulet commented Apr 4, 2022

In LaserGRBL, the correct Firmware must be selected: GRBL; Marlin or Smoothie.
I chose Marlin with 115200 baud rate. Pressing the button - connect highlights the jog icons in green and it is possible to control the motors of the X, Y, Z axes.

@svenhb
Copy link
Owner

svenhb commented Apr 8, 2022

I could load Marlin on my Mega 2560 and improove behavior of GRBL-Plotter, please check:
https://github.com/svenhb/GRBL-Plotter/releases

@qulet
Copy link
Author

qulet commented Apr 9, 2022

The connection worked !!! on these settings:
setup
Thank you !

@qulet
Copy link
Author

qulet commented Apr 10, 2022

My joy was a little before early ...
I have two printers:

  1. Marlin 1.9 Ramps1.3 firmware. The connection is working
    Marlin_1 9_Ramps

  2. Firmware Marlin 2.09 Mks-Sbase1.3. The connection is not working.
    Marlin2 0_MKS-Sbase1 3
    I want to connect with the Marlin 2.0 MKS-Sbase1.3 32bit firmware. This printer has the ability to manually change the extruder to any other tool: PenPlotter, LED laser, tangential knife. Unfortunately, here the connection does not work.
    IMG20220410122833
    IMG20220410122915

@svenhb
Copy link
Owner

svenhb commented Apr 11, 2022

Ok, too bad...
Are you sure the 2nd printer uses same baud rate?
Did you try disconnect/connect button?
Did you try restart of GRBL-Plotter?

I assume yes...

In the start up I miss the "unknown command" as for the 1st printer
Perhaps you can figure out, what are the first messages? Perhaps finally I need to add a checkbox to force marlin and not try to automatic recognize
image

@qulet
Copy link
Author

qulet commented Apr 12, 2022

In Marlin 2.0 the transfer was changed to 25,000 to be the same as in Marlin 1.9. Of course, I tried to change this value and restart GRBLPlotter, but unfortunately it did not allow the connection to be established. On ramps 1.3, after activating RST, values such as the M501 g-code were loaded. Unfortunately, it was not possible to establish such a connection on the MKS SBase.

@svenhb
Copy link
Owner

svenhb commented Apr 13, 2022

Check new release 1.6.6.2: https://github.com/svenhb/GRBL-Plotter/releases
image

@qulet
Copy link
Author

qulet commented Apr 14, 2022

Connection to Marlin 2.0 works !!!
Interface 4 axis Control / Jogging after connection is working, you can move all axes.
G-Code Streaming does not work ...
The transfer stopped on line 16
Marlin2 0_MKS-Sbase

When streaming stop is activated, jogging stops working. RESET does not help.

@svenhb
Copy link
Owner

svenhb commented Apr 15, 2022

you may switch on this options to get more informations
image

@qulet
Copy link
Author

qulet commented Apr 15, 2022

setitings
1
log
Uploading the g-code to Marlin doesn't work.
Extruder unlocked M302 P1

@svenhb
Copy link
Owner

svenhb commented Apr 20, 2022

I made another change, perhaps no it works?: https://github.com/svenhb/GRBL-Plotter/releases

@qulet
Copy link
Author

qulet commented Apr 20, 2022

1
2
lastProcessed_.zip
SVEN sorry to tire you so much with these amendments. Maybe I'm doing something wrong?
The latest version connects to Marlin just like the previous one. Unfortunately, G-code streaming does not work.

@svenhb
Copy link
Owner

svenhb commented Apr 21, 2022

Did you try to press "RST"?
image
You can also try to change the streaming method:
image

@qulet
Copy link
Author

qulet commented Apr 21, 2022

All the functions of your program work fine on Marlin 1.9 Ramps:
MarlinRamps

MarlinRamps_0

The problem is Marlin 2.0 MKS-Sbase. There you can get a connection sometimes, jogging works, but there is a blank field in the connection status ... and g-code forwarding is not working.There, for the connection to work (jogging), I have to press RESET in the program window. But the connection status is blank and g-code uploading is not working.
Marlin2 0

@svenhb
Copy link
Owner

svenhb commented Apr 22, 2022

The problem is Marlin 2.0 MKS-Sbase.

Strange, there is no start-up message after hard-reset.
Do you have a HEX-file of this firmware, which I can upload to my Arduino Mega-2560?
As shown above I also use Marlin 2.0

@qulet
Copy link
Author

qulet commented Apr 22, 2022

I use Visual Studio Code to compile Marlin for MKS-Sbase CD. The output file there is the file: firmware. bin. There must be a different pinout for ramps. I never compiled Marlin 2.0 for ramps to get the Hex peak. Enclosed my Marlin 2 configuration for the MKS-Sbase board.
Uploading M_2.0 MKS-SBASE_config.zip…

@svenhb
Copy link
Owner

svenhb commented Apr 22, 2022

Ok, your MKS board doesn't use the Mega-2560 controller...
Can you try to press the reset button on your board, while connected?
See this thread: https://reprap.org/forum/read.php?403,863468,863468

@qulet
Copy link
Author

qulet commented Apr 23, 2022

As soon as RST is pressed in the main program window, jogging starts, connection status clean button. how will i do a RESET on the board: the message [ERROR] Closing port pops up
3

@qulet
Copy link
Author

qulet commented Apr 23, 2022

Svenhb with compiled GRBL LPC Ceprezzi. I have uploaded the firmware.bin file to the MKS-Sbase SD card.
Everything about GRBLPlotter on this firmware seems to be working fine. I have to accept that if I want to use your software, I have to change the Marlin firmware to the GRBL LPC firmware. Thank you for your help.

@svenhb
Copy link
Owner

svenhb commented Apr 23, 2022

I'm happy to hear this. Marlin is really strange and I have no idea what's going on with this MKS board...

@svenhb svenhb closed this as completed Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants