#91
|
|||
|
|||
I will try. Been playing with gregs script in post #38.
thanks. al |
#92
|
|||
|
|||
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 |
#93
|
|||
|
|||
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. |
#94
|
|||
|
|||
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 |
#95
|
|||
|
|||
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 |
#96
|
|||
|
|||
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 |
#97
|
|||
|
|||
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 |
#98
|
|||
|
|||
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. |
#99
|
|||
|
|||
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 |
#100
|
|||
|
|||
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.
|
#101
|
|||
|
|||
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 |
|
|