Hello Guest it is April 24, 2024, 09:57:38 PM

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

521
General Mach Discussion / Re: G-Code streaming VIA USB
« on: April 10, 2014, 12:43:37 PM »
In my mind Mach3 / Mach4 is nothing more than software over "metal"

I've seen all the words before but not in this order. Can someone enlighten me as to what this is supposed to mean?

522
General Mach Discussion / Re: THC setting up assistance...
« on: April 10, 2014, 11:50:11 AM »
What do your THC manufacturers say?  ;D

It depends on exactly what you mean. More detail needed on what you're trying to do and how your trying to do it.

523
VB and the development of wizards / Re: VB Script for toolchanger
« on: April 10, 2014, 11:34:17 AM »
So, in summary, the mod function doesn't care if it is 'a mod b' or 'b mod a', it just takes the remainder after dividing into the larger number? (That is what I meant by acting like a divisor, depending if the first integar is larger than second, would be a fraction at the start.)

Nick

It matters very much which number comes first and which comes second. a mod b is most definitely not the same as b mod a. Which is largest and which is smallest is irrelevant. ;)

a mod b evaluates to the remainder after the integer division of a/b. period.

but don't get hung up over this - just run that last piece of code and let me know what happens. If it doesn't give you the correct results then it's for some other reason - it has nothing to do with mod. The code is correct.

524
VB and the development of wizards / Re: VB Script for toolchanger
« on: April 10, 2014, 09:36:31 AM »
current face = (1-1) mod 4 = 0div4 = 0, ok good so far
target face = (3-1) mod 4 = 2div4= 0, remainder of 0.5 = 1? (partial remainder?), answer should be 2 though, correct?

Close but no cigar.

The mod(ulus) is the remainder after division

forget fractional numbers for the moment because we're not using them.
if both operands are integers then the division and result are integer also. so....

current face = (1-1) mod 4 = 0/4 = 0 with 0 remainder
target face = (3-1) mod 4 = 2/4 = 0 with 2 remainder

mod is the classic mechanism for handling rollovers.

copy and paste this code exactly as is into your M6Start.m1s and do a few toolchanges and get back

Code: [Select]
selectedTool = getSelectedTool()
currentTool = getCurrentTool()
currentFace = (currentTool - 1) Mod 4
targetFace = (selectedTool - 1) Mod 4
clicks = (targetFace - currentFace + 4) Mod 4
MsgBox "Selected Tool=" & selectedTool & _
       " Current Tool=" & currentTool & _
       " Current Face=" & currentFace & _
       " Target Face=" & targetFace & _
       " Clicks=" & clicks
SetCurrentTool selectedTool

525
General Mach Discussion / Re: THC Codes upset corners???
« on: April 10, 2014, 07:42:08 AM »
Yes but the PM45 is at least £450 more than the 30XP and for home and the 30XP is already top budget.
Which is why surely, your 30XP doesn't have your suggested additions - or do you want them added for free?  ;)

526
General Mach Discussion / Re: THC Codes upset corners???
« on: April 10, 2014, 07:23:50 AM »
Personally I think they should add the voltage divider and socket then market this machine for home use cnc. Its a great little unit
Or even up the power a tad and add the option of a machine torch - they could call it... erm... a PM45.

Seriously Hypertherm do more than enough options already - I've been trying to keep up with their gazillion models each with a gazillion options for years....

527
VB and the development of wizards / Re: THCon() ???
« 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.

528
General Mach Discussion / Re: Breakout Board input, just a thought...
« on: April 10, 2014, 06:27:26 AM »
There is a system out there (ironically enough) yet another THC that I believe does multiplex parallel port I/O in some way or another. To me it seems unnecessarily complex.

529
General Mach Discussion / Re: THC Codes upset corners???
« on: April 10, 2014, 06:14:17 AM »
Not my fault you are a bit slow on telling people of your product ;D
Why not do as Jeff Birt does and have a link to your product every time you post. I cant see that being a problem as your product (as far as I know) is complementary to Mach rather than competition :)

Just silly old me sticking to the forum rules in "Promote and discuss your product" I guess.

Ah, now I see, won't work for me though as my Powermax 30xp is a hand system and does not have the interface connector, the Proma uses the full arc voltage as reference.

Fair enough if it's just for personal use. Mine is designed purely for machine torches as Hypertherm don't sanction the use of hand torches for mechanized cutting. (An H&S minefield which I keep well away from).

Out of interest though - what do Hypertherm say about your warranty now you've opened the box and added a non-Hypertherm accessory?


530
VB and the development of wizards / Re: VB Script for toolchanger
« on: April 10, 2014, 05:27:29 AM »
Not being a lathe person I just realized that tool change syntax appears to be different to mills. However it makes no odds. I just tried T0202 or whatever in MachTurn and the routine I gave you still works a charm (just drop the M6 command though in my blerb above). Note that although you don't appear to state M6 in the command the code still goes in M6Start.m1s.

Maybe if some lathe guru could comment perhaps but I think the above is correct.