You are not logged in.
Pages: 1
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
Share a debug file (setup page, tools tab, debug button).
Offline
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
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
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
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
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
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
Thank you very much for your assistance.
Offline
Pages: 1