knobhead
Aerospace
- Mar 6, 2001
- 184
I've just started using Mazak's own CAMWARE program to produce Mazatrol programs.
I've sort of inherited the role of programming our various Mazaks from one of our engineers who left, and he used a lot of ISO subprograms, called within the Mazatrol program.
Thing is, nearly all of these subprograms are identical, with just one or two numbers changed to suit the particular job, which seems to me to be the perfect thing to set up a macro for.
Now, I know camware can cope with macros in ISO code. I've even found the little dialog box in which you can define the variables.
What I can't find is an example of what form the variables need to be in the ISO macro itself. We have a VERY fast turnaround shop, so I don't have the oppurtunity to best-guess and see what happens, as if I get it wrong I will hold things up. Of course, if I can get macros working I'll speed things up considerably, but I'm not even going to try and attempt to explain what a macro is to my boss.
So, in the dialog box is a pull down to select the 'sequence number'. Does this mean the line number the variable will appear in in the ISO code?
Also, in the ISO macro itself: If I've designated in the dialog box the letter 'A' to be, say, 4.5, does that mean I enter a line in the ISO macro along the lines of
G01 XA Z25 and it will substitute the 'A' for 4.5?
Anyone know what the hell I'm going on about?
Excessive accuaracy is a sign of poor breeding. -Socrates.
I've sort of inherited the role of programming our various Mazaks from one of our engineers who left, and he used a lot of ISO subprograms, called within the Mazatrol program.
Thing is, nearly all of these subprograms are identical, with just one or two numbers changed to suit the particular job, which seems to me to be the perfect thing to set up a macro for.
Now, I know camware can cope with macros in ISO code. I've even found the little dialog box in which you can define the variables.
What I can't find is an example of what form the variables need to be in the ISO macro itself. We have a VERY fast turnaround shop, so I don't have the oppurtunity to best-guess and see what happens, as if I get it wrong I will hold things up. Of course, if I can get macros working I'll speed things up considerably, but I'm not even going to try and attempt to explain what a macro is to my boss.
So, in the dialog box is a pull down to select the 'sequence number'. Does this mean the line number the variable will appear in in the ISO code?
Also, in the ISO macro itself: If I've designated in the dialog box the letter 'A' to be, say, 4.5, does that mean I enter a line in the ISO macro along the lines of
G01 XA Z25 and it will substitute the 'A' for 4.5?
Anyone know what the hell I'm going on about?
Excessive accuaracy is a sign of poor breeding. -Socrates.