Thanks a lot for that detailed answer! I will try it out as soon as possibleby CDorn - Reprappers
Okay thanks. That info helped a lot. But now I there is a new problem with M28. In seems to have a write problem. It does not accept new commands because it wants me to give it the position of the G-Code in the new file. How do I do that? I read that in some instances people used something like M107*1 or so. Where the star and number tell marlin the position of the g-code line. But it doesnt woby CDorn - Reprappers
So I have a Ramps1.4 on top of Arduino Mega. The firmware is Marlin 2.0.x. On my PC I use python with the pyserial-library. With the ramps-board I controll the Extruder and a fan and the temerature. No x,y,z-axis. Could that be part of the problem? On further testing I somewhat replicated the problem: When I send consecutive G1 E.. commands the extruder works just fine. But as soon as I stop seby CDorn - General
>>> M114 X:0.00 Y:0.00 Z:0.00 E:5.00 Count X:0 Y:0 Z:0 >>> G1 E1 >>> M114 X:0.00 Y:0.00 Z:0.00 E:5.00 Count X:0 Y:0 Z:0 So as you can see the extruder definetly drives back to that position... What am I doing wrong? EDIT: I found out that if I load a whole .gcode-file, the extruder will print normally. But if I stop it, it will revert back to position E5. Is this sby CDorn - General
Hello there, and sorry for spamming this forum (I have loads of questions about Marlin but Im a bloody newbie). So my question is, how do I make the M23 command word? My setup is a that I use a Ramps1.4 on a Arduino Mega. I created a serial connection via pySerial (on my Computer) and want to load a g-code file to my Ramps-Board. Technically it should work by enabeling the SDSUPPORT in configuby CDorn - Reprappers
Hello there So the problem is as follows: when I manually send a G1 command like (G1 F200 E1) the printer extrudes nice and slow but 'retracts' to the starting position very fast. Anytime I extrude a certain length of filament, the extruder retracts the same length it seems. What could be the cause and how can I stop that from happening? For more Info on how I initialise the Printer: M104 S230by CDorn - General
So the problem is as follows: when I manually send a G1 command like (G1 F200 E1) the printer extrudes nice and slow but 'retracts' to the starting position very fast. Anytime I extrude a certain length of filament, the extruder retracts the same lenth it seems. What could be the cause and how can I stop that from happening? smiling smiley For more Info how I initialise the Printer: M104 S230 M1by CDorn - Printing
So the problem is as follows: when I manually send a G1 command like (G1 F200 E1) the printer extrudes nice and slow but 'retracts' to the starting position very fast. Anytime I extrude a certain length of filament, the extruder retracts the same lenth it seems. What could be the cause and how can I stop that from happening? For more Info how I initialise the Printer: M104 S230 M105 M109 S230 Mby CDorn - Firmware - Marlin
Okay. Thanks anyway I'll wait then.by CDorn - General
Okay can one of your collegues help me with this then...?by CDorn - General
Do you have any experience with adapting the Marlin Firmware? My problem is that the code is difficult to understand.by CDorn - General
Hi, thanks for the quick reply. Maybe I've not been very clear... My problem is that Marlin only reads G-Code commands in the serial. But I want to send more complex data to the board through the serial. How do I programm Marlin to recieve that? Ideally I would like to have a classic Arduino-style Serial.read() where I send data to Ramps1.4. How would I implement such a thing in Marlin?by CDorn - General
So I want to connect my Ramps1.4 Board to my pc and manually send it G-Code. Instead of using Pronterface or other programs, I'd like to send it myself. So far I've been using pyserial. I could send individual lines through the serial port, but thats not the ideal. Ideally I'd like to send many lines of G-Code (or even a whole file). How do I do that? Cheers CDornby CDorn - General
I have a question concerning Marlin and its G-Code. Between each point that the extruder has to drive to, there will be a certain acceleration. Is there any Info on how exactly each point is driven to? I have found out that there is a max and a min acceleration that is defined through M201 and M204. Why isnt it a fixed value? Im asking because I need the information of the Extruder behavior dby CDorn - Firmware - Marlin
The 'ok' and uppercase is no problem. May I ask how I execute the queue.enqueue_now(F("G91")); ? the enque_now_P is the only function I found.by CDorn - Reprappers
Wow. I cant believe how simple it is to send commands... I typed the G-Code into the serial monitor and it just woked. Thank you very much!!by CDorn - Reprappers
Thanks to both of you! Ill test out your recomendations and tell you how it went! Sounds promising!by CDorn - Reprappers
Hi everyone! Im trying to create my own controll software for the Ramps1.4 board using Marlin. I'm using a Arduino Mega with the Ramps 1.4 shield on top. The idea is to controll that board via USB cable and my own python script on the PC. My question is this: Is there a library for Python, where I can send the G-Code commands via the COM? Or is there something similar? If yes, where? Because Iby CDorn - Reprappers
So just to be sure. Should I connect the GND of the microcontroller to a GND pin on the Ramps1.4 board, or rather connect it to the calbe that also grounds the Ramps1.4 board? Or does that make no diffrence?by CDorn - Firmware - Marlin
I didnt, I will try that out. Thanks for the quick replyby CDorn - Firmware - Marlin
Hello Again, So far so good. The CUSTOM_USER_BUTTONS work when I use it manually with jumper cables. But if I connect them to a Microcontroller they dont work anymore. My configuration is as follows: In Marlin I changed two of the Pins on the Ramps board to be NO (normally open). One pin is for activating the Fan (m106 s255) the other to turn it off (m107). Then I connected a microcontroller tby CDorn - Firmware - Marlin
I think thats it. I'll look into that (today/tomorrow) and give feedback. Thank you very much and have a nice day!by CDorn - Firmware - Marlin
Thanks for the answer. With simle I meant the command line i want to be read, not the problem at hand . Could you point me in a right direction please? Has someone done such a thing already, that you know of? There has been the "Wifi ESP3D" tutorial. In that only the external micro controller had to be programmed. Not marlin (I think). So it must be possible. But that tutorial is a complete ovby CDorn - Firmware - Marlin
Hello there, I have a question, I cant seem to find an answer to. Is it possible to send a simple command through the ramps 1.4 board pins? For example, turn the fan on/off with the m105 command (iirc). What I want to do is use a micro controller that externally is conected to the Ramps1.4 board and that sends simple G-Code lines. Nothing fancy. Just one or two lines. Is that possible?by CDorn - Firmware - Marlin
Oh okay. Well I'll try to solve it in a different way.. Thanks for the info!by CDorn - General
Oh now I unterstand what you mean. The thing is, that I need the X,Y, Z-position, as well as the X, Y, Z-speed as values. Sure I could try to convert the measured steps and frequencies from the 12 pins themselves by converting my external microcontroller to a sort of oszilloskop, but I'd rather have a more elegant solution. Those 12 pins are fed a signal, do you know where that signal is in the cby CDorn - General
Thanks for the quick answer. But what do you mean with "simply extract the pins"? Thats exactly what I was asking for... how do I do that in the code?by CDorn - General