MechMate CNC Router Forum

Go Back   MechMate CNC Router Forum > Electrical & Electronic > 70. Control Systems
Register Options Profile Last 1 | 3 | 7 Days Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #91  
Old Sun 11 March 2012, 10:39
alan254
Just call me: Al #95
 
mystic ct
United States of America
I will try. Been playing with gregs script in post #38.

thanks.

al
Reply With Quote
  #92  
Old Tue 13 March 2012, 11:43
alan254
Just call me: Al #95
 
mystic ct
United States of America
Hi all,

I am using the screen “1024%Zero” I do use my spindle controls. My PMDX- 122 bob that is set to the “probe” input # 15. I do have a green light on the screen when touched and it allows me to enter a value of the plate “.253”.

The 615.mls file is aversion of Greg’s modified as follows:

CurrentFeed = GetOemDRO(818) 'Get the current feedrate.
PlateThickness = GetUserDRO(1151) 'Z-plate thickness DRO

If GetOemLed (825)=0 Then
DoOEMButton (1010)
Code "G31Z-7 F30"
While IsMoving()
Wend
ZProbePos = GetVar(2002)
Code "G0 Z" & ZProbePos
While IsMoving ()
Wend
Call SetDro (2, PlateThickness)
Code "G4 P0.25" 'Pause for Dro to update.
Code "G1 Z1 F20" 'Change the Z retract height here
Code "(Z axis is now zeroed)"
Code "F" & CurrentFeed
Else
Code "(Z-Plate is grounded, check connection and try again)"
End If

When I run I get the following results:
coordinates DRO readings action

reference zero DRO 0.0000 Bottom of cutter at
top of z plate DRO -6.2960 measured distance
user coordinates DRO 1.0010 touches z plate and retracts
machine coordinates DRO -5.3800 touches z plate and retracts


I believe the user coordinates should be the 1” minus the z-plate thickness of .253 that I entered in the screen or .747 and not the 1.001 I am reading.

If this is wrong, then, what have I doing wrong?
Thanks,
Al
Reply With Quote
  #93  
Old Tue 13 March 2012, 12:54
ger21
Just call me: Ger
 
Detroit, MI
United States of America
After the probing, the Z retracts 1" from the "G1 Z1 F20" line, so you're DRO should read 1". You're probably seeing 1.001 due to your steps/unit setting.

Gerry

I replied in the wrong thread, but you should now have your answer.
Reply With Quote
  #94  
Old Tue 13 March 2012, 13:52
alan254
Just call me: Al #95
 
mystic ct
United States of America
Hi Ger,

Shouldn't the user DRO be corrected to the top of the work or " the user coordinate" and not the top of the z plate.

When the spindle retracts it retracts it 1” from the top of the z plate. That would make the work surface 1.253" below the cutter. I was under the impression that the used DRO would be corrected to work surface and not the top of the Z plate.

I've been wrong before.

On another note, I spent a couple of days trying to get this running correctly. Only to find I had a corrupted compiler in Mech3. Reloaded Mech3 and loaded the first time.

I did learn a lot along the way which is good.

Now that I have it running from the screen I will load the macro and the brain and see if I can get the buttons in the Y car to work.


Thanks

Al
Reply With Quote
  #95  
Old Tue 13 March 2012, 14:02
ger21
Just call me: Ger
 
Detroit, MI
United States of America
No, because you should be in Absolute (G90) distance mode, so the G1 Z1 moves to Z = 1, not 1" above the plate.
It's good practice to check for incremental mode (G91) in the macro and switch to G90 if you are, or bad things are likely to happen.

Gerry
Reply With Quote
  #96  
Old Tue 13 March 2012, 14:12
alan254
Just call me: Al #95
 
mystic ct
United States of America
I do not have a G90 or a G91 in the program. Have to learn what they are. Just went out and measured the actual distance between the plate and the cutter and it is .750. I feel a lot better. Like i said I've been wrong before.

Guess I got lucky

Thanks.

Al
Reply With Quote
  #97  
Old Wed 14 March 2012, 08:39
alan254
Just call me: Al #95
 
mystic ct
United States of America
HI Ger,

I hooked up my Y car buttons today. I loaded Greg’s Macro and Brain files and set OEM buttons to input #4 and OEM code 301.

The y car buttons work fine and the DRO user readings the correct readings.

But, there is one glitch I can’t figure out. That is when I press the on screen button the machine does its z-plate routine the final user DRO reading 1.001” and .753 off the z-plate. This is fine. When I press the routine from the Y car buttons I get a User DRO reading of 2.002” and am 1.753 off the work surface. Which is also fine.

The question is why is Y car readings 1” higher than if I use the on screen command?

One other thing my Normal/Abnormal condition led keeps flashing and has done so since I started the z-plate install. When I highlight with mouse I get a message” axis’s not referenced in a normal condition.

I do appreciate all the input I have received it does help could not have done with out all your support.

Thanks,
Al
Reply With Quote
  #98  
Old Wed 14 March 2012, 09:36
ger21
Just call me: Ger
 
Detroit, MI
United States of America
I don't have a Mechmate. What is the Y car button doing? How is Mach3 set up for it?

What does the brain do?

As for the normal/abnormal, just double click it and set it to normal. It's the dumbest thing ever conceived and should be removed from the screen. It has nothing to do with any errors, it just let's you know that settings have changed.
Reply With Quote
  #99  
Old Wed 14 March 2012, 09:53
alan254
Just call me: Al #95
 
mystic ct
United States of America
Hi Ger,

If you read post #38 of this section all your answers will be answered. In that post are the brain and macro files along with instructions I am using. You need a MechMate!!! to play with.

Thanks Al
Reply With Quote
  #100  
Old Wed 14 March 2012, 10:56
Gerald D
Just call me: Gerald (retired)
 
Cape Town
South Africa
Quote:
Originally Posted by Greolt View Post
. . . . an external switch to activate the Auto Tool Zero routine . . . .
Ger, the table is so big that we sometimes climb onto it to change tools - then the keyboard is too far away to find an auto-zero button.
Reply With Quote
  #101  
Old Wed 14 March 2012, 11:51
ger21
Just call me: Ger
 
Detroit, MI
United States of America
Try this code:

CurrentFeed = GetOemDRO(818) 'Get the current feedrate.
PlateThickness = GetUserDRO(1151) 'Z-plate thickness DRO

If GetOemLed (825)=0 Then
DoOEMButton (1010)
Code "G31Z-7 F30"
While IsMoving()
Wend
ZProbePos = GetVar(2002)
Code "G0 Z" & ZProbePos
While IsMoving ()
Wend
Call SetDro (2, PlateThickness)
Sleep(250) 'Pause for Dro to update.
Code "G1 Z1 F20" 'Change the Z retract height here
While IsMoving()
Wend
Message "Z axis is now zeroed"
Sleep(150)
Code "F" & CurrentFeed
While IsMoving()
Wend
Else
Message "Z-Plate is grounded, check connection and try again"
Sleep(150)
End If
Reply With Quote
Reply

Register Options Profile Last 1 | 3 | 7 Days Search Today's Posts Mark Forums Read

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 22:48.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.