Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: BR549 on March 19, 2012, 05:56:58 PM

Title: THCon() ???
Post by: BR549 on March 19, 2012, 05:56:58 PM
Can anyone confirm if the CB function THCon() works for you.  Testing here Mach3 does not recognize it . THCoff() works.  V.043.022

Thanks,(;-) TP
Title: Re: THCon() ???
Post by: Ya-Nvr-No on March 19, 2012, 06:23:39 PM
What is THCon ?
if i step through a simple check program

dim a as double
a=THCoff()
a=a
seems that i get a = 0

a=THCon
a=a
seems that i get a = 26
 
a=THCon()
compiler error

a=THCon(0)
unrecoverable error

Title: Re: THCon() ???
Post by: BR549 on March 19, 2012, 06:51:11 PM
It is a CB call to Turn on the THC control. Mach does not even recognize the thcon() But it is in the book along with THCoff().

THCon()     ' Turns on the THC
THCoff()    'Turns Off the THC

That should turn the THC on then off IF you step through the code BUT you get a syntax error on the THCon()

(;-) TP
Title: Re: THCon() ???
Post by: stirling on March 27, 2012, 06:25:55 AM
Hi Terry

THCOn broken here too (same V as you). However startTHC and endTHC calls appear to work.

Cheers

Ian
Title: Re: THCon() ???
Post by: BR549 on March 27, 2012, 11:33:05 AM
Thanks Ian, I guess I am getting old I never thought about a duplicate command being available. I must have had my blinders on(;-)

I was working on a ARC slowdown routine for plasma where IF you had an arc less than ********* Radius AND arc angle Greater than XXdeg then THCoff() and reduce Feedrate by XX%
Then when the arc is complete THCon() and resume cutting.

Shee Cam can do the Gcodeing for it using a MCODE to signal the slowdown BUT running a MCODE there is a delay that causes the Machine to dwell while cutting leaving a divot(;-)

So I did a routine with a macropump aand a routine with a brain to see IF I could get rid of the dwell.

(;-) TP
Title: Re: THCon() ???
Post by: Davek0974 on April 10, 2014, 05:54:38 AM
Do any of these functions work, not very clear from the thread :)
Title: Re: THCon() ???
Post by: stirling on April 10, 2014, 07:00:02 AM
Do any of these functions work, not very clear from the thread :)

Really?

THCOn broken here too (same V as you). However startTHC and endTHC calls appear to work.
Title: Re: THCon() ???
Post by: Davek0974 on April 10, 2014, 07:29:33 AM
Ok, Ok, i'm having a bad day :)


thanks