I answered one of my questions. The mill spindle speeds are a different system variable than the lathe spindle speeds so this worked:
Code:
:T:IF OPR_SPEED>0 THEN <N><G!:97><M!:SPINDLE_DIR> P<%:OPR_SPEED><EOL>ENDIF
and gave me the code I was expecting:
I had tried this before the op but I didn't have the integer casting % in front of it so it didn't work.
I'd still love some input on my other question... Is the tutorial mill/turn post the best way to start a new mill/turn post processor file? Are there any major known issues with it? With 3 axis mill and 2 axis lathe posts, I have always started from a file generated in the UPG but it seems that option isn't available for mill/turn and the tutorial ones are the only ones I can find to start from. We've been using HSM Works for the past few years and I got spoiled because they have a slew of posts available in source code that can be easily modified in java. I haven't written a CAMWorks post for about 10 years so I'm a little rusty with this frustrating mess.
Thank you much,
Ryan