You are not logged in.

#1 2017-01-04 13:15:39

GoffyOne
Member
Registered: 2017-01-04
Posts: 9

Marlin-mUVe1DLP on KLD-LCD 1260

I installed Marlin-mUVe1DLP on the KLD-LCD 1260 and changed some settings to get correct movement and to be able to operate the lamp.
I did this change to be able to use [[WaitForDoneMessage]] command,
however it dosn´t work as expected.

When running a G1 command I get the Z_move_comp reply but it comes as sone as the G1 command is sent and not at the end of the G1 move.
and when running G28 no Z_move_comp is returned only a ok.

is there something wrong with the merlin code?

Offline

#2 2017-01-05 07:02:56

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Marlin-mUVe1DLP on KLD-LCD 1260

Share a debug file (setup page, tools tab, debug button).

Offline

#3 2017-01-05 09:04:07

GoffyOne
Member
Registered: 2017-01-04
Posts: 9

Re: Marlin-mUVe1DLP on KLD-LCD 1260

Solved the first problem With the G1 command.

In Marlin_main.cpp

case 1: // G1
      if(Stopped == false) {
        get_coordinates(); // For X Y Z E F       
        prepare_move();
        SERIAL_ECHOLNPGM("Z_move_comp");
        st_synchronize();
        //ClearToSend();
        return;


I moved the SERIAL_ECHOLNPGM("Z_move_comp");
to be be after st_synchronize();
like this:

case 1: // G1
      if(Stopped == false) {
        get_coordinates(); // For X Y Z E F       
        prepare_move();
        st_synchronize();
        SERIAL_ECHOLNPGM("Z_move_comp");
        //ClearToSend();
        return;

That makes the "Z_move_comp" msg reply after the move is complete.


If only my programing skills ware a bit better I might find the problem with the G28 comand aswell

Offline

#4 2017-01-07 21:45:46

Xmike
Member
Registered: 2016-03-25
Posts: 97

Re: Marlin-mUVe1DLP on KLD-LCD 1260

Does your Printer now works correct with the firmware adjustment of "Z_move_comp", or are there any side effects ?
I also would like to make this adjustment, since I had already to do with the same problem.
Maybe Shahin can also give a recommendation.

Last edited by Xmike (2017-01-07 21:48:53)

Offline

#5 2017-01-08 12:22:47

GoffyOne
Member
Registered: 2017-01-04
Posts: 9

Re: Marlin-mUVe1DLP on KLD-LCD 1260

Yes it works.
however I din´t find out how to make it work for G28, so I do that manually before starting a print.

Offline

#6 2017-01-14 21:01:03

Xmike
Member
Registered: 2016-03-25
Posts: 97

Re: Marlin-mUVe1DLP on KLD-LCD 1260

Now I have made the same change in the file Marlin_main.cpp.
My printer is now running as it should.
Before, I could only operate the printer over a workaround, as described here:

https://www.nanodlp.com/forum/viewtopic.php?id=57

I think it's a bug in the Marlin code.

Offline

#7 2017-10-13 07:58:42

color
Member
From: Bulgaria
Registered: 2016-03-19
Posts: 84

Re: Marlin-mUVe1DLP on KLD-LCD 1260

Xmike wrote:

Now I have made the same change in the file Marlin_main.cpp.
My printer is now running as it should.
Before, I could only operate the printer over a workaround, as described here:

https://www.nanodlp.com/forum/viewtopic.php?id=57

I think it's a bug in the Marlin code.

Hello,Mike
I read with interest your post and want to ask you about your tilt setup. As I uderstand you are using a stepper motor to go from X0 to X-4 to move the vat up and down. How is performed the initial homing of the X motor? I mean when you start the printer, do you execute G28, and do you have a limit switch for the X?
Regards
Lyubo Penchev

Offline

#8 2017-10-13 18:03:27

Xmike
Member
Registered: 2016-03-25
Posts: 97

Re: Marlin-mUVe1DLP on KLD-LCD 1260

Hello Color,

I am using limit switches for the Z and X axes.
I gave up the tilting and now use an "one direction flex vat".
I can change the tilt options from pure tilt to a combined movement "slide and tilt".
Unfortunately, all variants were unsatisfactory.
Since I mainly print functional parts with relatively large surfaces, the vacuum forces were just too big.
Only my Flex vat does work properly.


Start of Print Gcode:
=======================================

G21
G91                                      // set relative mode
M17
G92 X-19 Z224.1                 // set the Z-value to start-Position (may be its not the real Position)
G1 Z-1 F90                          // move away from limit switch
[[WaitForDoneMessage]]
G1 Z200 F90                       // move to Z limit switch
[[WaitForDoneMessage]]
G1 X-36 F60                        // move to X-Limit switch
[[WaitForDoneMessage]]
G90                                      // absolute mode
G92 X-25.52 Z224.1            // set the real positions
[[PositionSet 224.1]]
G1 X-19 F100                      // move X to start position
[[WaitForDoneMessage]]
G1 Z20 F400                       // move to vat
[[WaitForDoneMessage]]
G1 Z[[ZLiftDistance]] F90
[[WaitForDoneMessage]]

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

Offline

#9 2017-10-14 15:22:46

color
Member
From: Bulgaria
Registered: 2016-03-19
Posts: 84

Re: Marlin-mUVe1DLP on KLD-LCD 1260

Thank you very much for your assistance.

Offline

Board footer

Powered by FluxBB