You are not logged in.
Pages: 1
Hi, I have a Wanhao D7 and i am trying to add a resin mixing pump based on this one.
http://raspberrypirobot.blogspot.co.uk/ … -pump.html
It is wired to the second fan output which can be controlled by Gcode M106 P1 S0 and M106 P1 S255
adding these commands to the shutter open/close allows it to pump when the UV is off but it also runs continually at the end of the print.
Can anyone suggest how to control it so that when the print is finished the pump does not keep running?
TIA
Offline
Add the M107 P1 (does the same as M106 P1 S0) command to the "On Print Stopped" gcode section.
Offline
Based on what I see on the shutter open G-Code image, if you put M106 255 on the Print Stop Gcode box the pump should go off.
Offline
One thing to keep in mind, this is a brushed motor, which makes it a source of electrical noise.
Be on the lookout for loss of steps or other weird behaviours due to noise.
Replacing it with a step motor would be better IMO.
Offline
Add the M107 P1 (does the same as M106 P1 S0) command to the "On Print Stopped" gcode section.
I've tried this and it does stop the pump but when it reaches the top it starts again.
'Print stop gcode'
M107
G04 F30000
G90
G1 Z185 F300
M106 P1 S0
M84
[[WaitForDoneMessage]]
M107 P1
Offline
One thing to keep in mind, this is a brushed motor, which makes it a source of electrical noise.
Be on the lookout for loss of steps or other weird behaviours due to noise.Replacing it with a step motor would be better IMO.
thanks, good point.
I will have to keep an eye on it
Offline
What version of firmware are you using on the D7? (issue a M115 and post here). Wanhao's default firmware keeps that fan output going I think. I had the second fan coming on automatically with the UV so maybe I will need to compile a special version? Also, I don't think you need the WaitForDoneMessage after the M84, I don't think the D7 sends one back on the M84 command.
jamesarm97 wrote:Add the M107 P1 (does the same as M106 P1 S0) command to the "On Print Stopped" gcode section.
I've tried this and it does stop the pump but when it reaches the top it starts again.
'Print stop gcode'
M107
G04 F30000
G90
G1 Z185 F300
M106 P1 S0
M84
[[WaitForDoneMessage]]
M107 P1
Offline
What version of firmware are you using on the D7? (issue a M115 and post here). Wanhao's default firmware keeps that fan output going I think. I had the second fan coming on automatically with the UV so maybe I will need to compile a special version? Also, I don't think you need the WaitForDoneMessage after the M84, I don't think the D7 sends one back on the M84 command.
Bixx wrote:jamesarm97 wrote:Add the M107 P1 (does the same as M106 P1 S0) command to the "On Print Stopped" gcode section.
I've tried this and it does stop the pump but when it reaches the top it starts again.
'Print stop gcode'
M107
G04 F30000
G90
G1 Z185 F300
M106 P1 S0
M84
[[WaitForDoneMessage]]
M107 P1
I will try the M115 later. I have a print running until 10pm
Not sure what firmware I have, I flashed this back in April.
Could we not have a conditional response when the print finishes and homes.
something like if z => 185 then M107 P1
Couldn't wait......,
FIRMWARE_NAME:Repetier_1.0.0dev FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Wanhao D7 EXTRUDER_COUNT:1 REPETIER_PROTOCOL:3
Cap:PROGRESS:0
Cap:AUTOREPORT_TEMP:1
Cap:EEPROM:0
Cap:AUTOLEVEL:0
Cap:Z_PROBE:0
Cap:SOFTWARE_POWER:1
Cap:TOGGLE_LIGHTS:0
Cap:PAUSESTOP:1
Cap:PREHEAT:1
Printed filament:NANm Printing time:0 days 0 hours 0 min
PrinterMode:FFF
Last edited by Bixx (2017-10-05 17:12:58)
Offline
Pages: 1