Hello Guest it is March 29, 2024, 01:38:15 AM

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 - TPS

241
General Mach Discussion / Re: Bit depth zeroing tool help
« on: April 04, 2022, 07:24:08 AM »
for a quick check you can replace this line of your macro (!! used twice)

Code: [Select]
ProbePos = GetVar (2002)

by
Code: [Select]
ProbePos = GetDRO (2)

242
General Mach Discussion / Re: Bit depth zeroing tool help
« on: April 04, 2022, 02:45:24 AM »
maybe your motioncontroller is not supporting the usage of Var(2002).

243
check

Config -> General Config -> General Configuration -> Ignore M calls while loading

244
General Mach Discussion / Re: Mach3
« on: April 03, 2022, 04:44:29 AM »
you need to have a valide  licence file

Mach1Lic.dat

in C:\Mach3

245
General Mach Discussion / Re: Touch script not working, Help?
« on: April 03, 2022, 04:41:17 AM »
OK, i have two ideas.
1st we need some updatetime for the Var's after touch
2nd your controller will not support update of var's 2000-2002

code for 1st idea with Sleep to update:
Code: [Select]
'imperial
CurrentFeed = GetOemDRO(818) 'Get the current feed rate to return to later
CurrentAbsinc = GetOemLED(48) 'Get current G90/G91 state
CurrentGmode = GetOemDRO(819) 'Get the current G0/G1 state

If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P5" 'this delay gives me time to get from computer to hold probe in place
Code "G90 G31 Z-2 F5" 'probing move, can set the feed rate here as well as how far to move
While IsMoving() 'wait while it happens
Wend
Sleep(200) 'give the dro's time to update
ZProbePos = GetVar(2002)'get the axact point the probe was hit
Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, .192) 'set the Z axis DRO to whatever is set as plate thickness
sleep 200 'pause for Dro update.
Code "G1 Z1 F50" 'put the Z retract height you want here
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Exit Sub
End If

code for 2nd idea without using var 2002:
Code: [Select]
'imperial
CurrentFeed = GetOemDRO(818) 'Get the current feed rate to return to later
CurrentAbsinc = GetOemLED(48) 'Get current G90/G91 state
CurrentGmode = GetOemDRO(819) 'Get the current G0/G1 state

If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P5" 'this delay gives me time to get from computer to hold probe in place
Code "G90 G31 Z-2 F5" 'probing move, can set the feed rate here as well as how far to move
While IsMoving() 'wait while it happens
Wend
Sleep(200) 'give the dro's time to update
'ZProbePos = GetVar(2002)'get the axact point the probe was hit
'Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
'While IsMoving ()
'Wend
Call SetDro (2, .192) 'set the Z axis DRO to whatever is set as plate thickness
sleep 200 'pause for Dro update.
Code "G1 Z1 F50" 'put the Z retract height you want here
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Exit Sub
End If

let's see witch solution will help

246
General Mach Discussion / Re: Touch script not working, Help?
« on: April 02, 2022, 02:54:19 AM »
have you adjusted this line:

Code: [Select]
Call SetDro (2, .192) 'set the Z axis DRO to whatever is set as plate thickness

to the correct height of your touchplate?

247
General Mach Discussion / Re: Touch script not working, Help?
« on: April 01, 2022, 03:27:37 AM »
your code should basicly work, but it is for imperial units, so if you are in metric all speeds and distances are to
smal. mado two simple version's one for imperial and one fpr metric

imperial:
Code: [Select]
'imperial
CurrentFeed = GetOemDRO(818) 'Get the current feed rate to return to later
CurrentAbsinc = GetOemLED(48) 'Get current G90/G91 state
CurrentGmode = GetOemDRO(819) 'Get the current G0/G1 state

If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P5" 'this delay gives me time to get from computer to hold probe in place
Code "G90 G31 Z-2 F5" 'probing move, can set the feed rate here as well as how far to move
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetVar(2002)'get the axact point the probe was hit
Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, .192) 'set the Z axis DRO to whatever is set as plate thickness
sleep 200 'pause for Dro update.
Code "G1 Z1 F50" 'put the Z retract height you want here
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Exit Sub
End If

metric:
Code: [Select]
'metric
CurrentFeed = GetOemDRO(818) 'Get the current feed rate to return to later
CurrentAbsinc = GetOemLED(48) 'Get current G90/G91 state
CurrentGmode = GetOemDRO(819) 'Get the current G0/G1 state

If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P5" 'this delay gives me time to get from computer to hold probe in place
Code "G90 G31 Z-50 F50" 'probing move, can set the feed rate here as well as how far to move
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetVar(2002)'get the axact point the probe was hit
Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, 5) 'set the Z axis DRO to whatever is set as plate thickness
sleep 200 'pause for Dro update.
Code "G1 Z10 F500" 'put the Z retract height you want here
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Exit Sub
End If

248
General Mach Discussion / Re: Arduino - Mach 3 - Gcode M6 T0101
« on: March 31, 2022, 12:20:55 PM »
OK if you think i did not understand the real problem, it is ok for me. i am out.

good luck anyway

249
General Mach Discussion / Re: Arduino - Mach 3 - Gcode M6 T0101
« on: March 31, 2022, 05:45:59 AM »
looks like i am writing Swahili ??

IF YOU WILL USE MODBUS THE DATA WILL BE COMPLETLY DIFFERENT THAN IN MY EXAMPLE

250
General Mach Discussion / Re: Arduino - Mach 3 - Gcode M6 T0101
« on: March 31, 2022, 04:56:39 AM »
0x1E  0x?? 0x0D where ?? is the toolnumber

based on this code for M6Start:

https://www.machsupport.com/forum/index.php?action=dlattach;topic=1658.0;attach=1174

and again that has nothing to do with Modbus Communication you mentoined to use.