Hello Guest it is April 18, 2024, 02:31:46 PM

Author Topic: Collision detection on THC  (Read 819 times)

0 Members and 1 Guest are viewing this topic.

Collision detection on THC
« on: April 11, 2020, 05:26:08 AM »
Hello

Hope someone can point me in the right direction.

I have a Price Cnc THC and I would like to add collision detection when the digitize input is activated.

I'm not sure of the best route to take.

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: Collision detection on THC
« Reply #1 on: April 11, 2020, 06:30:34 AM »
you can do it via macropump macro.

you have to add some code in your digitze macro as well:

Code: [Select]
'put this as the first line in your digitize macro
SetOEMLED(1400,1) 'tell macropum it it a real digitze



'put this as the last line in your digitize macro
SetOEMLED(1400,0) 'tell macropum it it a real digitze is done


the the code for macropump

Code: [Select]
If ((GetOEMLED(1400) = False) and (GetOEMLed(825) = True)) Then
   MSGBox ("Probe hit during cut")
   DoOEMButton(1003) 'Stop machine
End If

something like this should work, code not tested, just written down

anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Collision detection on THC
« Reply #2 on: April 14, 2020, 02:39:44 AM »
Thanks, I haven't done any coding in my files, but I should be able to find my way through it.
Re: Collision detection on THC
« Reply #3 on: April 14, 2020, 05:28:08 AM »
Could you tell me how to find these files?

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: Collision detection on THC
« Reply #4 on: April 14, 2020, 12:10:23 PM »
there should be a Folder c:\mach3\macros\your Profile Name.

there should be all your macro files, i think your probing will be in M3.m1s
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.