Hello,
I am new to Mach3, been only a couple months playing with it.
My machine is setup in brief as;
Win7 x64 PC with Mach3 3.043.066, which I believe is the latest.
Chinese USB 6-Axis breakout board
Leadshine Easy-servo stepper system
What I am going to do is to put an aluminium block on my cutting Jig and to use this piece to let machine know where machining origin is located.
Z-probe is working fine. There is no wonder about it.
The below macro was provided and I am using this happily.
Very simple, yet effective and I understand what it does.
------------------------------------------------
'chengdu xhc tec. probe z surface macro
FeedCurrent = GetOemDRO(818) 'Get the current settings, OEM DROs (818)=Feedrate DRO
ZCurrent = GetOemDro(802) 'OEM DROs (802)=Z DRO
GageH = GetOEMDRO(1001) 'OEMDRO(1001)=Gage Block Height
ZNew = ZCurrent - 300 'probe down
Code "G90F200" 'slow feed rate to 200 MM/MIN
SetOemDRO(818,200)
Rem Code "G4 P1" 'Pause 1 second to give time to position probe plate
Code "G31 Z" &ZNew
While IsMoving()
Sleep(10)
Wend
Call SetDro (2,GageH) 'DRO(2)=Z DRO
FinalMove = GageH + 10
Code "G0 Z" &FinalMove
Code "F" &FeedCurrent 'restore starting feed rate
SetOemDRO(818,FeedCurrent)
------------------------------------------------------------------------------------------
I wanted to do the same thing for X & Y.
Firstly, I tried Hoss screenset, which is for free (thanks), it still does not MOVE or it moves weirdly.
Where G31 command is involved, I expected F100(or 200 as in the script) moving, but it just does not move or move rapidly-stop-rapidly-stop-etc.
To my eyes it apparently is related to G31 command in the scripts.
And then I tried modifying Hoss's scrip very similar to the above one, also failed.
Replaced all Z parameter with X or Y, and replaced GageH with probe diameter(OemDRO(43) for HOSS screenset), all failed.
Whenever G31 is involved, It just is not moving its gantry.
So, I decided to buy a 2010 screenset (which is not free sadly), actually bought it yesterday,
and the result is very disappointing.
Either it moves weirdly or it gives error messages'Compile script error In:'.
Where do you think is the trouble from?
Is there any simple command to check?
Will there be any possibllity that my macro library lacks certain specific and critical files or codes?
I tried 'G31 x -50', it alone works sometimes but I can't find the condition when it doesn't work.
Wireless remote pendant works good, keyboard jogging good, mouse-jogging good, z-probing good,
EXCEPT x or y probing where G31 comand is involved.
I spent 2 days to figure it out, tried reading many references, looked into macros that were included in 2010 screenset & Hoss set, nothing works and I am at my wits end.
Will there be anybody who can throw me a light please?
Thanks for reading,
Kevin