Hi,
So I need mach 4 indutrial in order to be able to get signals and manipulate the g code
No, absolute rubbish! What I said was that Mach4 Industrial supports Gcode that includes conditional statements.
IF you had conditional statements you could code what you require in Gcode.
With Mach3 OR Mach4Hobby which don't have conditionals that approach wont work. There is however another which will work
equally well.
In Mach4 you would write a script that test the input at regular intervals ( every few milliseconds) and issues a <feedhold>
instruction if the signal is low or a <cycle start> instruction if the signal is high.
This is conceptually easy. Another variation which is more programmatically efficient is to use the SigLIb table (Signal Library).
It takes more thinking about and displays the underlying strength of Mach4.
Irrespective of the approach you adopt, you might choose the easy way first AND THEN have a go at the SigLib idea, you
will have to learn a little Lua and use the API. Are you up for it?
Look in the Mach4Hobby/Docs directory and you will find all sorts of good stuff, the API.chm, Mach4 Scripting Manual and
Mach4 Gcode programming. Note that with Mach enabled the docs directory can be displayed with the <Help Docs> button,
too easy.
Craig