Hello Guest it is April 24, 2024, 06:02:17 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - natefoerg

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 »
131
Thanks BR549. The sleep was because I copied the code from somewhere else. It has been removed.


132
Perhaps I should not have named it M99! M999 appears to work to make an output active...

133
So I have been trying lots of things. Reading everything I can find and I thought I might be able to do this-

Write a macro called M99

ActivateSignal(OUTPUT2)
Sleep 100000

Store that macro in C/Mach3/Macros/mach3turn/m99.m1s

Execute this Macro by typing m99 into the MDI box.

I have tried this and it does not activate the output led on the diagnostics page.

Here is my output configuration-
Output number 1 (checked) Port 1 Pin 16 Active low (unchecked)

Any thoughts? I suspected that this macro would activate the output, but I have had no luck yet...


134
Anyone help me out?

Pretty please with sugar on top...

135
I am trying to write a VB script (macro I believe they are called) That will open and close my air collet closer.

I already have Mach3 running a Macro that runs a toolchanger. this is air operated, and uses one solenoid and a stepper motor.

I have a M06 macro running it that uses this command " ActivateSignal(OutPut2)" and also uses DeActivateSignal(OutPut2) one allows the solenoid to pressurize the air cylinder and the other depressurises it.

How can I write a macro that does this-

(I want to call it something like M101)
I want to be able to either MDI a command like CC0 for (collet closer open) and CC1 for (collet closer closed) or to have CC0 or CC1 placed into my Gcode file.
I want CC0 to ActivateSignal(OutPut3) and CC1 to DeActivateSignal(OutPut3)

I believe that I need to have the Macro stored in C/Mach3/Macros/Mach3Turn. Is this correct?

I know how to wire the solenoids, plumb the air, configure Mach ports&pins for the outputs, but for the life of me I cant figure out how to write this macro. It seems like it should be so easy, but I cant figure it out.

Any input you can provide would be great!

Best,
Nate.
 

136
General Mach Discussion / Re: Mach 3 toolchange for dummies???
« on: March 11, 2011, 01:35:51 PM »
Their is virtually no wear on the gear train. It was designed to rotate via air motor and stop location (index) was accomplished by an air cyllinder with a stop arm. The turret was designed with gear train backlash. It was designed to overshoot, only being halted by the stop arm...

I have come to the conclusion that a detent arm or pin is a must to completely allign the position after positioning by stepper motor, so that when the turret lowers, it will engage the locking dogs correctly. if the position is not very close, the turret lowers onto the dogs incorrectly if at all.

time to make some sort of detent locating arm...

 

137
General Mach Discussion / Re: Mach 3 toolchange for dummies???
« on: March 10, 2011, 11:44:57 PM »
The internal gear train (3 gears) has all of the three gears with the same number of teeth.

I have locked the last gear in place for testing and have found that I have about 3 degrees of slop at the turret. That's about 1.5 degrees of slop at each gear mesh point (2 mesh points in a three gear train.

So, the stepper will locate the turret numerically accurately, but the turret can be +- 1.5 degrees when it stops. depending on how fast the turret decelerates, it can be + 1.5 degrees or -1.5 degrees. if the turret is not located +- .5 degrees of the indexing location, it will not lower down onto the locating dogs correctly.

My location problem turned out to be not having the A axis homed. now, the locating accuracy problem is purely mechanical backlash, as the stepper is going exactly where it should. I am positive that the issue (currently) is that even though mach 3 and the stepper locate the first gear in the train accurately, after 2 gear mesh points, enough slop is introduced to have the turret off just enough to only lower down onto the dogs about half of the time.

if I make a detent arm, the detent arm will snap into each of the detent locations (8 total) with accuracy which is entirely dependant upon how much accuracy the detent locations are machined to. This assumes that the detent arm does not itself have any slop (backlash)

Fortunately, cutting detent locations on my mill will be very accurate as I have a high resolution Peiseiler 4th axis. The detent arm can be made to have almost zero slop if I make it right. I plan on having the detent arm made with the spring tension being adjustable. I think the detent slots should be V shaped for positive location locking.

I hope all this makes sense. 

139
General Mach Discussion / Re: Mach 3 toolchange for dummies???
« on: March 10, 2011, 09:07:15 PM »
I am working on uploading two parts of a 2 minute video that will explain better.

The first design was the big ring design with the 70tooth pulley and a 10 tooth pulley driving it.

the design now has 2, 10 tooth pulleys driving the original internal gear train (three gears). this will nessicitate a detent arm to positively locate each position before locking down of the turret.

140
General Mach Discussion / Re: Mach 3 toolchange for dummies???
« on: March 10, 2011, 03:26:35 PM »
Hey hood-

any ideas on this-

If I put 5.5555555 into mach motor tuning for each degree of 360 degrees rotation of the turret, I end up getting the turret not locating correctly.

Theoreticly, 5.5555555 steps per unit gives me 5.5555555steps per degree. if Mach is told to go to 45degrees in A axis, the total steps commanded should be 250. There must be a rounding error or something, because it locates close, but seems to get a small bit out of wack each turret change.

Can pretend that the turret has only 8 degrees per rotation and have the stepper move 25 steps per degree, this giving me 8 locations and a total of 200 steps per rotation?

Any idea how I can get this entered into mach? the more I think about it the more confused I get.

 

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 »