GcodeDriver - mechansim to send Gcode command at job start/end.

146 views
Skip to first unread message

al yard

unread,
Jan 14, 2017, 9:49:14 PM1/14/17
to OpenPnP
Hi,

Is there a mechanism in GcodeDriver to send a Gcode command at the start and end of a job?  

I would like to turn on the vacuum pump when I start the job and turn it off at the end.  I have tried the PUMP_ON_COMMAND / PUMP_OFF_COMMAND, but this seems to turn on the pump at the same time as the pick cycle.  I would like a bit of lead time to turn on the pump before the pick operation  .... or just turn on the pump at the job start and leave it on until the job end.

Thanks,

Al

Jason von Nieda

unread,
Jan 14, 2017, 10:32:35 PM1/14/17
to OpenPnP
No, not currently. Recommend using the pump on and off commands and the pick and place delays or just turn it on at machine enable.

Jason

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/01fd7d22-fed6-41a1-a445-bdf1926fe738%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

SMdude

unread,
Jan 15, 2017, 3:17:13 AM1/15/17
to OpenPnP
For my vacuum pump I modified a water level pump controller, and can set cut in/out vacuum. This way it turns on with my machine and looks after itself.

If you want to do things such as turn on a pump you can do them in the gcode driver. See the screen shot.
You could probably add the gcode to the enable and disable command to turn the power to the pump on and off.

You can probably also use the heated bed module(if using smoothie) and set up a pressure sensor(instead of the temp probe) and set your cut/out parameters to suit.

I also note that some backlash control has been added :D Thanks Jason! I was just fiddling with my machine yesterday and was thinking that it would be nice if there were a software setting for it, and alas, there is!

Cheers
TURN ON COMMAND.JPG

Sebastian Pichelhofer

unread,
Jan 15, 2017, 6:39:30 AM1/15/17
to ope...@googlegroups.com
On Sun, Jan 15, 2017 at 4:32 AM, Jason von Nieda <ja...@vonnieda.org> wrote:
No, not currently. Recommend using the pump on and off commands and the pick and place delays or just turn it on at machine enable.

I use the following machine.xml Gcode to add a 0.5 seconds delay ("G4 P0.5") to wait after turning on/off vaccum valve when picking and placing parts. These affect the vaccuum valve only though not the pump itself.

Using Liteplacer and TinyG.

         <command type="PICK_COMMAND">
            <text><![CDATA[M8]]></text>
            <text><![CDATA[G4 P0.5]]></text>
         </command>
         <command type="PLACE_COMMAND">
            <text><![CDATA[M9]]></text>
            <text><![CDATA[G4 P0.5]]></text>
         </command>
         <command type="PUMP_ON_COMMAND">
            <text><![CDATA[M4]]></text>
         </command>
         <command type="PUMP_OFF_COMMAND">
            <text><![CDATA[M5]]></text>
         </command>

Regards Sebastian


Jason


On Sat, Jan 14, 2017 at 8:49 PM al yard <ay...@e9.ca> wrote:
Hi,

Is there a mechanism in GcodeDriver to send a Gcode command at the start and end of a job?  

I would like to turn on the vacuum pump when I start the job and turn it off at the end.  I have tried the PUMP_ON_COMMAND / PUMP_OFF_COMMAND, but this seems to turn on the pump at the same time as the pick cycle.  I would like a bit of lead time to turn on the pump before the pick operation  .... or just turn on the pump at the job start and leave it on until the job end.

Thanks,

Al

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/01fd7d22-fed6-41a1-a445-bdf1926fe738%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages