Post problem...

HI

could someone check this post if possible,

MP3000-DTHCII-DCC+scriber6.scpost

I have just upgraded to DCC but the post seems to plaster the code with THC ON commands and it is conflicting with the cut rules I have when i need THC off.

Many thanks

Sorted,

had to set the thc on/off codes to “nil” at the start of the post.

Hmm, well i thought that was it, now its putting this at the end of the file…

N0610nil (DTHC is off)

Mach is not happy with that. :wink:

Any ideas?

Try entering nil without the quotes as in:

thcOnCode = nil
thcOffCode = nil

I think the quotes take the value as literal.

HTH
Paul

There are no quotes, here is the code from the post…

–THC on and off codes. Use nil if you don’t want THC control e.g:
thcOnCode = nil
thcOffCode = nil

OK - Only trying to help by duplicating on this end.

You might want to look for another thcOnCode and thcOffCode entry lower in the post processor. At least on this end, a later entry will trump an earlier setting within the post. If I place quotes around the later nil, my Gcode will look as yours.

PK

No worries, thanks for helping :slight_smile:

I think this is it…

function OnFinish()
finalCut = true
endZ = safeZ
OnRapid()
endX = 0
endY = 0
offX = 0
offY = 0
offZ = 0
OnRapid()
post.Text(" S900 \n")
post.Text(" M22 \n")
post.Text(thcOffCode) <----------------------------
post.Text(" (DTHC is off)\n");
post.Text(" M22 \n")
post.Text (" M05 M30\n")
end

For some reason it defaults to turning the DTHC off at the end of every run, but because I have ThcOffCode set to “nil” it’s doing what it does.

Not sure what’s best to do - delete the line, turn the thcoff code back on or something else.

Why would it turn the thc off all the time???

Hmm, confusing, I tried looking at the post code but there seems to be two intermixed systems in it - THC On/Off and DTHC On/Off.

They both seem to use this variable - thcOffCode = nil/S10 so setting it to nil affects both bits of code.

I think this post needs looking at as it makes it very hard to use the cut path rules in SheetCam to control the THC as before, some jobs just do not need THC and only work if it’s turned off.


Before, the THC was just turned on or off on the Mach3 main screen, if it was on on the system then the code could turn it off easily. This new post seems to default to turning it off all the time and does not do what it needs, I think??

Anyone?

That is a bug in the post. Either delete the line or change it to this:

if&#40;thcOffCode&#41; then
   post.Text&#40;thcOffCode&#41;
end

Excellent, I’ll have a look at that this weekend, thanks