Jump to content

Cura/firmware/eeprom


Pharao274

Recommended Posts

Posted · Cura/firmware/eeprom

Hi all 3d printer gurus.

I have just extended my 3d printer and tried to change this gcode in cura 16.021:

;End GCode

M104 S0 ;extruder heater off

M140 S0 ;heated bed heater off (if you have it)

G91 ;relative positioning

G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure

G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more

G28 X0 Y0

G90

G1 Z170 ;move X/Y to min endstops, so the head is out of the way

M84 ;steppers off

G90 ;absolute positioning

;{profile_string}

to gcode:

;End GCode

M104 S0 ;extruder heater off

M140 S0 ;heated bed heater off (if you have it)

G91 ;relative positioning

G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure

G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more

G28 X0 Y180

G90

G1 Z370 ;move X/Y to min endstops, so the head is out of the way

M84 ;steppers off

G90 ;absolute positioning

;{profile_string}

But my printer does not go into x0 y180 z370, the printer still goes to x0 y0 z170 and not x0 y180 z370.

I just hope anyone is good at gcode and will help me with this.

Thanks in advance.

  • Link to post
    Share on other sites

    Posted · Cura/firmware/eeprom

    Marlin has a feature called "software endstops". This sets the print volume. You need a custom version of Marlin to get this to work.

    For example in the code below from Configuration.h you would change the 200 to something larger:

     

    #define min_software_endstops true //If true, axis won't move to coordinates less than HOME_POS.#define max_software_endstops true  //If true, axis won't move to coordinates greater than the defined lengths below.// Travel limits after homing#define X_MAX_POS 205#define X_MIN_POS 0#define Y_MAX_POS 205#define Y_MIN_POS 0#define Z_MAX_POS 200#define Z_MIN_POS 0

     

  • Link to post
    Share on other sites

    Posted · Cura/firmware/eeprom

    What kind of printer is this? Do you have the marlin settings for your printer? Did you build your own Marlin? Who built the marlin for you? You really need to get the source code of the Marlin for your particular printer and then modify just the Z max pos.

    If you are terrified of building Marlin you *might* be able to use this but only if you have a UMO style printer:

    https://marlinbuilder.robotfuzz.com/

  • Link to post
    Share on other sites

    Posted · Cura/firmware/eeprom

    @gr5

    I have a Wanhao duplicator i3 Plus, that uses reprap (marlin/sprinter) in cura.

    I got it to go to Y180 when I removed the line G91 ;relative positioning and I am beginning to think that there are settnings in the eeprom, that I have to change to get the printer to go to Z370 from Z180, since I tried to use the LCD display to move the Z axis and it would not go higher than 180mm.

    I have a spare mainboard, that had trouble with the heatbed (known problem with early Wanhao), so if I somehow can get connected to the eeprom, I can/will play around with it, if it absolutly needed.

    Another just small question, where do I find Configuration.h?

    And after 3 days trying to solve the problem I am thinking about buying this:

    https://www.amazon.co.uk/OSOYOO-Printer-Controller-Stepper-Heatsink/dp/B0111ZSS2O/ref=pd_sbs_107_1?_encoding=UTF8&psc=1&refRID=6ABJH72MDSEH7PN2HJ6C and hope it supports my power supply.

  • Link to post
    Share on other sites

    Posted · Cura/firmware/eeprom

    By law if someone modifies Marlin and sells it or gives it away in a printer they have to supply the source code upon request. So ask Wanhao for the source code. Configuration.h is one of about 20 source files. Oh - I think this is it:

    https://github.com/garychen99/Duplicator-i3-firmware

    Anyway below instructions are for Ultimaker original but should be identical instructions for wanhao except for the source code which you get at the above link.

    ================

    BUILDING MARLIN

    thermistor tables:

    https://github.com/ErikZalm/Marlin/blob/Marlin_v1/Marlin/thermistortables.h'>https://github.com/ErikZalm/Marlin/blob/Marlin_v1/Marlin/thermistortables.h'>https://github.com/ErikZalm/Marlin/blob/Marlin_v1/Marlin/thermistortables.h'>https://github.com/ErikZalm/Marlin/blob/Marlin_v1/Marlin/thermistortables.h

    First get the source code.

    UMO files here:

    https://github.com/ErikZalm/Marlin

    Then edit Configuration.h – this is by far the hardest step and it's not bad. I recommend you go here:

    http://marlinbuilder.robotfuzz.com/

    or

    https://bultimaker.bulles.eu/

    and use that website only to get the Configuration.h file. Then run winmerge or some other diff program to compare the latest ErikZalm version of Configuration.h to the one from robotfuzz which is usually a few months behind. Edit the ErikZalm version to match the robotfuzz generated version. Make any other edits as necessary. It sound complicated but it is extremely clear and well commented. Sometimes with paragraphs of explanation.

    configuration.h file detailed explanation:

    http://airtripper.com/1145/marlin-firmware-v1-basic-configuration-set-up-guide/

    Then you need to build Marlin. There are instructions that come with the erik zalm download in the "README.md" text file.

    Basically you download and install arduino ide:

    http://arduino.cc/en/main/software

    Then copy the sanguino software as explained in README file. Open Marlin.ino file in Arduino IDE by double clicking it (not pde file as stated in README - I think that's old). Select board as "Mega 2560" as explained in README file. Go to "file" "preferences" and select "verbose output" so you can find your hex file. Then build it by clicking the check box in the upper left corner. At the bottom you will see it compiling Marlin. At the end of this it says where the hex file is. If you are currently connected to your UM through USB you can just click "file" "upload" and you are done! But you should locate that hex file and save it somewhere along with the Configuration.h file used to create it so you can recreate the same version with maybe one change. Also you can upload the hex file using Cura in expert menu.

    The actual ultimaker firmware is built with make file and doing it that way generates a smaller more compact firmware but doing it through the IDE works fine. I've done it many times.

    Alternatively you can build Marlin with somewhat more detailed step by step instructions the command line way (which I don't prefer):

    http://www.extrudable.me/2013/05/03/building-marlin-from-scratch/

  • Link to post
    Share on other sites

    Posted · Cura/firmware/eeprom

    I tried to use arduino 1.8.1 and it failed to make the hex file, because of some errors.

    After lokking for the errors on google one had succes with Arduino 1.0.6, I tried it and I got my hex file, updated the new firmware with cure and used the file.

    I made a testprint and the printer went to z370 as it should.

    Thanks for all the help.

    • Like 1
    Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...