1
Mach4 General Discussion / Re: Can I Lockout Mach 4 unless correct post processor is used?
« on: October 11, 2018, 06:08:05 PM »local buff, rc
buff,rc= mc.mcCntlGetGcodeLine(number mInst, number LineNumber)
local i
i=string.find(buff,'My Unique Processor Name')
if i==nil then
rc = mc.mcCntlCloseGCodeFile(number mInst)
end
I think I'll eventually be able to work through what all this means. (my formal programming in college was FORTRAN entered with punch cards in the early 80s and I have only dabbled in other languages a bit over the years!)
However, let me ask a more basic question to start. When I press the "Load G Code" button on the screen "something" is executed which loads the file. Then I want to do the test above to see if the Post Processor is a match. Where do I find this "something" that is executed to load the file? If I go to the "Operator" menu and select "Edit Screen" and click the "Load G Code" button, in the properties box I see a Left Up Action is "Gcode Load". How do I find this "Gcode Load" so that I can modify it? I'm not sure I'm understanding the overall structure of where things are and how they are related.