Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 02:56:07 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.
Pages: « 1 2   Go Down
Print
Author Topic: Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.  (Read 1087 times)
0 Members and 3 Guests are viewing this topic.
BR549
Active Member

Offline Offline

Posts: 2,551


View Profile
« Reply #10 on: June 17, 2011, 01:17:27 AM »

The problem is your trying to make an accurate Z motion with an air cylinder and a mechanism. I don't think that is ever going to happen.

I use a scribe BUT it is mounted on the Z slide and lowered into position when needed. THEN I have full ZXY control over it with Gcode. NO problems with timing issues trying to NOT mess up a decent engraving.

You will not get the precision timing control on your air cylinder control from a VB macro it will be as bad or worse than the G4 to control.

But if you determend to use what you have do as TWEAKIE suggested use the DIR pulse from a phantom axis to control the Solenoid. IT is extremely accurate and precise in it time slices.

(;-) TP



Logged
Tony Bullard
Active Member

Offline Offline

Posts: 83


View Profile
« Reply #11 on: June 17, 2011, 06:16:24 AM »

Another way to insure the scribe is up before moving is to use a limit switch at the up stroke of the air cylinder wired as a probe.

Your code here to activate the solenoid
G91
G31 C2 f30      'G31 = straight probe move
   While ismoving()
                                      'Sleep 100
Wend
G90

This will wait until the switch makes and then return to the program.
Logged
Tony Bullard
Active Member

Offline Offline

Posts: 83


View Profile
« Reply #12 on: June 17, 2011, 10:29:20 AM »

Another way to insure the scribe is up before moving is to use a limit switch at the up stroke of the air cylinder wired as a probe.

Your code here to activate the solenoid
G91
G31 C2 f30      'G31 = straight probe move
   While ismoving()
                                      'Sleep 100
Wend
G90

This will wait until the switch makes and then return to the program.

Just checked this out. G31 only works with X, Y and Z
Logged
Tweakie.CNC
Active Member

Offline Offline

Posts: 3,258


Super Kitty.


View Profile WWW
« Reply #13 on: June 17, 2011, 11:02:06 AM »

Tony,

I think you will find that G31 works with 'A' as well.  Wink

Tweakie.
Logged

Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Tony Bullard
Active Member

Offline Offline

Posts: 83


View Profile
« Reply #14 on: June 17, 2011, 11:32:30 AM »

Thanks Tweakie, I was just playing with it and you are right.

Maybe Brian could add the "C" and "B". It makes for good switch sensing
« Last Edit: June 17, 2011, 11:36:06 AM by Tony Bullard » Logged
FXC
Active Member

Offline Offline

Posts: 45


View Profile
« Reply #15 on: June 17, 2011, 01:03:18 PM »

I think the easiest solution is as both Tony and Terry have suggested in their posts above. You can get reliable delays from a few uS upwards by using a non-existent axis in this way.
True, and that's exactly what I ended up doing: used my [non-existent] A-axis, the motor of which I tuned to be the equivalent of 1 inch = 1 second.

Now, I'll disappoint everyone here and reveal the utterly useless (but fun) purpose of this whole endeavor (turn your speakers on): http://www.youtube.com/watch?v=Fq4VLwLFXaE&t=11s
Logged

Mach3 is a mess.
Tweakie.CNC
Active Member

Offline Offline

Posts: 3,258


Super Kitty.


View Profile WWW
« Reply #16 on: June 18, 2011, 10:55:36 AM »

Nice one, a Nintendo CNC machine.  Grin Grin

Tweakie.
Logged

Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Pages: « 1 2   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!