31
Mach4 General Discussion / Re: Screen Set Ideas
« on: October 19, 2018, 04:20:33 PM »
WOW almost three years since i messed with this.
Was called out of retirement to help program a new machine, fanuc controls for a family of 46 parts
was asked to do a parametric program using Macro B
turned out to be a sweet series of several nested subroutines
all dimensions were put in a look up subroutine and passed to a calculation subroutine to compute start and stop locations.
based on the tool diameter entered in its own variable, so change tool diameter all positions are recalculated.
Including conveyor load/unload from both direction a part flip over, top and side drilling, probing of the parts and of the fixture change details for the many combinations of raw material
Thought id test out Mach4 abilities and help me with some of the while loops and subroutines that needed to be developed.
Which in the end all led me to a new macro variable screen tab set.
It was one tedious process of creating an organized well structured page.
started with the screen editor then organized and ordered the objects in an XML editor
then on to a text editor to replace values to align all the rows and columns, heights and widths of each
then copy and paste the master to create all the variable names and addresses making each group
and edit each variable name for that group tab set (something like 402 for each tab)
I estimate well over 35hours of ass time after I managed without it during the project, so next time i'm all set.
all during the two recent hurricanes, what a sight to witness and see what they leave behind.
and a little routine to clear macro variables
Was called out of retirement to help program a new machine, fanuc controls for a family of 46 parts
was asked to do a parametric program using Macro B
turned out to be a sweet series of several nested subroutines
all dimensions were put in a look up subroutine and passed to a calculation subroutine to compute start and stop locations.
based on the tool diameter entered in its own variable, so change tool diameter all positions are recalculated.
Including conveyor load/unload from both direction a part flip over, top and side drilling, probing of the parts and of the fixture change details for the many combinations of raw material
Thought id test out Mach4 abilities and help me with some of the while loops and subroutines that needed to be developed.
Which in the end all led me to a new macro variable screen tab set.
It was one tedious process of creating an organized well structured page.
started with the screen editor then organized and ordered the objects in an XML editor
then on to a text editor to replace values to align all the rows and columns, heights and widths of each
then copy and paste the master to create all the variable names and addresses making each group
and edit each variable name for that group tab set (something like 402 for each tab)
I estimate well over 35hours of ass time after I managed without it during the project, so next time i'm all set.
all during the two recent hurricanes, what a sight to witness and see what they leave behind.
and a little routine to clear macro variables
Code: [Select]
(CLEAR AND SET VARIABLES TO NIL)
#1=2
WHILE[#1 LE 999]DO1
#[#1]=#0
#1=#1+1
END1
#1=#0(RESET COUNTER BACK TO NIL)