You are not logged in.

#1 2017-10-05 11:56:05

Bixx
Member
Registered: 2017-05-14
Posts: 7

Resin pump

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

#2 2017-10-05 13:46:05

jamesarm97
Member
Registered: 2017-02-02
Posts: 69

Re: Resin pump

Add the M107 P1 (does the same as M106 P1 S0) command to the "On Print Stopped" gcode section.

Offline

#3 2017-10-05 13:46:20

Yianni-VJ
Member
Registered: 2016-05-24
Posts: 95

Re: Resin pump

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

#4 2017-10-05 13:50:48

Yianni-VJ
Member
Registered: 2016-05-24
Posts: 95

Re: Resin pump

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

#5 2017-10-05 15:11:59

Bixx
Member
Registered: 2017-05-14
Posts: 7

Re: Resin pump

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

#6 2017-10-05 15:13:56

Bixx
Member
Registered: 2017-05-14
Posts: 7

Re: Resin pump

Yianni-VJ wrote:

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

#7 2017-10-05 15:35:25

jamesarm97
Member
Registered: 2017-02-02
Posts: 69

Re: Resin pump

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

Offline

#8 2017-10-05 16:53:49

Bixx
Member
Registered: 2017-05-14
Posts: 7

Re: Resin pump

jamesarm97 wrote:

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

Board footer

Powered by FluxBB