Mach Discussion > Mach Screens
Probe
Kenneth:
Below is a script i made with machscreen v1.7. but it tells me the the command is too long and points to the block(first line).
hope someone can help me. Thanks
'probe on Z axis
Probe = 1.89 'probe height
Depth = -1.5 'z negative travel
Feed = 4
Code "G20 G31 Z" & Depth & " F" & Feed
While IsMoving()
Wend
SetOEMDRO(802,Probe)
While IsMoving()
Wend
Code "G91 G00 Z.2"
While IsMoving()
Wend
Code "G90"
End
Kenneth:
64 bit
win 10 pro
24g ram
3.4g processor
Kenneth:
sorry, using Mach 3
Tweakie.CNC:
I don't know if it helps but the line;
SetOEMDRO(802,Probe)
Should read;
Call SetOEMDRO(802,Probe)
Kenneth:
Thanks Tweakie.CNC, i tried that and same error. i think there may be something that
tells the code that there's an end of line.since the error includes the first two lines.
i also have a corner probe button without the "Call" inserted and works fine.
i'm at a lost but will keep looking. Thanks for your info !
Navigation
[0] Message Index
[#] Next page
Go to full version