Bed Leveling using Z_PROBE_START_SCRIPT and Z_PROBE_FINISHED_SCRIPT: Multiple commands does not work
Hi guys
I'm using Repetier v1.0.0dev and it works fine after to compile at Arduino IDE in Ubuntu 16.04 LTS.
I have tried to configure Probe for Auto Bed Leveling using servo, as follows:
#define Z_PROBE_START_SCRIPT "M340 P0 S1300"
#define Z_PROBE_FINISHED_SCRIPT "M340 P0 S500"
and it works fine.
I would like to use Z_PROBE_START_SCRIPT and Z_PROBE_FINISHED_SCRIPT to turn off the servo during probing after be positioned, to avoid noisy movements.
But when I try to use Z_PROBE_START_SCRIPT or Z_PROBE_FINISHED_SCRIPT with multiple commands, it does not work.
I have already tried all these options with no success:
#define Z_PROBE_START_SCRIPT "M340 P0 S1300\nM340 P0 S0\n"
#define Z_PROBE_FINISHED_SCRIPT "M340 P0 S500\nM340 P0 S0\n"
#define Z_PROBE_START_SCRIPT "M340 P0 S1300\n\rM340 P0 S0\n\r"
#define Z_PROBE_FINISHED_SCRIPT "M340 P0 S500\n\rM340 P0 S0\n\r"
#define Z_PROBE_START_SCRIPT "M340 P0 S1300\rM340 P0 S0\r"
#define Z_PROBE_FINISHED_SCRIPT "M340 P0 S500\rM340 P0 S0\r"
My doubts are:
1) Should I really use '\n' to separate multiple commands at Z_PROBE_START_SCRIPT and Z_PROBE_FINISHED_SCRIPT ?
2) Does the answer to the question above works to compile at Arduino IDE in any OS: Linux, Windows, and Mac OS?
Thanks in advance for any help.
Romulo
I'm using Repetier v1.0.0dev and it works fine after to compile at Arduino IDE in Ubuntu 16.04 LTS.
I have tried to configure Probe for Auto Bed Leveling using servo, as follows:
#define Z_PROBE_START_SCRIPT "M340 P0 S1300"
#define Z_PROBE_FINISHED_SCRIPT "M340 P0 S500"
and it works fine.
I would like to use Z_PROBE_START_SCRIPT and Z_PROBE_FINISHED_SCRIPT to turn off the servo during probing after be positioned, to avoid noisy movements.
But when I try to use Z_PROBE_START_SCRIPT or Z_PROBE_FINISHED_SCRIPT with multiple commands, it does not work.
I have already tried all these options with no success:
#define Z_PROBE_START_SCRIPT "M340 P0 S1300\nM340 P0 S0\n"
#define Z_PROBE_FINISHED_SCRIPT "M340 P0 S500\nM340 P0 S0\n"
#define Z_PROBE_START_SCRIPT "M340 P0 S1300\n\rM340 P0 S0\n\r"
#define Z_PROBE_FINISHED_SCRIPT "M340 P0 S500\n\rM340 P0 S0\n\r"
#define Z_PROBE_START_SCRIPT "M340 P0 S1300\rM340 P0 S0\r"
#define Z_PROBE_FINISHED_SCRIPT "M340 P0 S500\rM340 P0 S0\r"
My doubts are:
1) Should I really use '\n' to separate multiple commands at Z_PROBE_START_SCRIPT and Z_PROBE_FINISHED_SCRIPT ?
2) Does the answer to the question above works to compile at Arduino IDE in any OS: Linux, Windows, and Mac OS?
Thanks in advance for any help.
Romulo
Comments
#define EXT1_SELECT_COMMANDS "M117 Extruder 2\nM400\nM340 P0 S1950 R600\nG4 P300"
Last command does not need it, also it should be a problem.
Your problem is more that M340 has no wait so it directly sets the second value without ever reaching the first value. Add a G4 P500 between the 2 M340 and it should show the move.
Thank you! :-)