Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 10:17:01 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Different use of Mach3 (dispensing)
Pages: « 1 2 3 4   Go Down
Print
Author Topic: Different use of Mach3 (dispensing)  (Read 3257 times)
0 Members and 3 Guests are viewing this topic.
BluePinnacle
Active Member

Offline Offline

Posts: 227



View Profile
« Reply #30 on: June 03, 2010, 02:45:53 PM »

I was thinking of using the pump with a stepper motor. Call it axis A,you could program in dispensing rates, suck-back, etc. You could also use parametric code to alter the flowrate along a run, ie ramp up and down.
Logged
Romanr9999
Active Member

Offline Offline

Posts: 18


View Profile
« Reply #31 on: June 03, 2010, 02:53:08 PM »

I think I just came accross a neat solution.
My machine besides Mach3 also has a PLC incorporated.
What Iīm testing at this very moment is to use the DIR pin of Z axis to control when to start and stop the pumping. I use the signal transitions from on to off and viceversa to start and stop the pump.
The pulses are generated by the PLC in my case.
My goal is to get something that will not require any hand codding at all. The GCode will come from Lazycam.
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #32 on: June 05, 2010, 03:02:28 AM »

A PLC huh, that is cool.

I would do this then, I would send your Feed Rate across the modbus to your plc and use that value there as an Analog value to vary the dispense rate, the faster you go, the more your analog signal increases......   I would put a Max and Min feed rate limitation so you would have a High and Low end to your analog value.

scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
Romanr9999
Active Member

Offline Offline

Posts: 18


View Profile
« Reply #33 on: June 05, 2010, 02:22:28 PM »

While testing this I run into another problem (yet another one in the hugelist).

I connected the motor driver PULSE and DIRECTION signals to PLC outputs and started making some tests.
I keep the DIR signal unchanged and send ON-OFF sequences to the PULSE pin to make the motor turn.

When doing this, first of all, the motor makes loud noises and shakes like somthing is about to brake each time it moves, this happens even if I send a single pulse to the driver. Also, if I send a series of pulses the motor turns a few steps in one direction and then it either misses a couple steps or it turns one or two steps in the opposite direction.(!?!?!?)

Of course the motor&driver works perfectly when itīs directly controlled by M3 through the PC parallel port.

Iīm not sure what may be different between the pulses M3 creates and the ones from the PLC.
Logged
Romanr9999
Active Member

Offline Offline

Posts: 18


View Profile
« Reply #34 on: June 09, 2010, 08:47:32 AM »

I found what was wrong.
The pulses out of the PLC were too wide (too much time) and thatīs why the motor was not running smooth.

Now I only need to decide how to control the pump from Mach3.
I thought about using the Z axis direction pin, so when the Z axis go down the pump should start and when the Z axis goes up to stop. Itīs like if this was a mill, when the tool goes down it means itīs working on the material.
The problem I also found is if I stop the program for some reason (or if I need to run it step by step), the pump will keep dispensing resin even when the axis are not moving.

Anybody used Mach3 for a laser cutting machine? there should be the same problem there to start and stop the laser beam.
Logged
Tweakie.CNC
Active Member

Offline Offline

Posts: 3,253


Super Kitty.


View Profile WWW
« Reply #35 on: June 09, 2010, 10:48:25 AM »

For my laser I use M11P1 to turn the laser on and M10P1 to turn it off. (these commands are added to the existing GCode in place of the Z- and Z+ commands).

I have the same problem with stopping mid line, the laser remains on.

The cure for this is, I think, to add a new, VB, screen 'stop' button which issues the M10P1 and then activates the feed hold function. Something similar could possibly be done for the single step function.

Tweakie.
Logged

Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Ya-Nvr-No
Active Member

Offline Offline

Posts: 266


Scuptris 3D


View Profile
« Reply #36 on: June 10, 2010, 10:42:10 AM »

Why not just use a canned drilling cycle and by varying the drill depth (Z Axis) it would dispense varied amounts based on depth of Z. Doesn't it just fill a plunger of some type? Has some interesting applications.
Logged
CHINAFSYY
Guest
« Reply #37 on: June 21, 2010, 09:21:44 AM »

Very nice George.
Well done !
Logged
Pages: « 1 2 3 4   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!