svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
663 stars 175 forks source link

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

Closed qulet closed 2 years ago

qulet commented 2 years ago

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 commented 2 years ago

How needs the code to look like?

qulet commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

qulet commented 2 years ago

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

qulet commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

qulet commented 2 years ago

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 commented 2 years ago

you may switch on this options to get more informations image

qulet commented 2 years ago

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

svenhb commented 2 years ago

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

qulet commented 2 years ago

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 commented 2 years ago

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

qulet commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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