Hello Guest it is March 28, 2024, 08:40:36 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 - Charis Acoustic

Pages: 1
1
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.

2
I have included a unique comment at the top of each of the post processors as Gary suggested.  This works, but only if i am at looking at my own comments.  Unfortunately I don't trust myself that much.

I think Chaoticone is going the direction I would like to implement.  I'm not very confident of my coding abilities but I'm going to dig in and see how far I can get.  I'll probably have lots more questions.

Thanks!

3
I have three custom CNC machines all running Mach 4.  They all have slight differences and I have created a post processor for each machine.  (I use Visual Mill 6.0).  I would like to setup each machine so that it will only run if the corresponding post processor was used to generate the gcode file.  This will help eliminate the inevitable situation where I forget to change to the post processor when generating the gcode file. Is there a standard way of doing this, or does anyone have suggestions for me.

Thanks!

4
General Mach Discussion / Re: set distance off home
« on: January 16, 2014, 08:25:17 PM »
I'm trying to do something similar and I got the above code to work.   I advance all three axis 0.100 off the home switches by Code"G53 G00 X0.100 Y0.100 Z-0.100".  Now I would like the Machine DRO's to be zeroed.  They are all at 0.1000.  I seem to be able to get them to temporarily zero but then they go back to 0.1000.  Any suggestions?

Pages: 1