I am porting programs from a Kitamura 5 axis mill to a Mazak 5 axis mill with the mazatol 640T controller. We don't do any 5 axis machining rather the machine is used as an indexer to different faces of a block. A lot of time we are putting the same connection in the block except with the differance of a drill depth or maybe a different thur drill diameter I would like to create a sub program to make the connections but I want to pass some aruguments from main to sub program depending on where the block is indexed. Is the possible and does someone have a example. I would prefer both the main and sub programs to be mazatol. Thanks for any help!