Been trying to creata a small macro program for our small horizontal mill to send the machine to its APC position and execute a pallet shuttle. The machine is a Jenso with an 18iMB control. I want it to execute using a G100 call. We have an Okuma 630H horizontal set up this way and I want the Jenso machine to match. I made the program the same on the Jenso, but I get an "Invalid G code error" every time I try it. I made a subprogram for our thru the spindle coolant, due to the fact that it takes 2 M codes to turn it on to use M150 to turn it on. I tried to make it a macro program, but I kept getting an error, so I changed the O word to match for a subprogram call and it worked fine. Can somebody clue me in on what I might be missing? Thanks a bunch guys.