Hi Dave, all. #ROT1 is how much to rotate the first call to your sub (absolute). (#ROT2 is for incremental rotations of multiple calls)
To cut a diamond shape with a single line sub, for example. The sub consists of a single line 1 long at zero degrees from X0Y0. The handle is at X.5Y.5 (also the point to rotate around). The sub call will rotate repeats 3 times (4 total) rotated 45 degrees (the initial rotation). Note that the repeat angle is given at 90 degrees, based on the handle of the sub - it is the only angle that will make the end of one meet the start of the next. So code will set $ROT1 = 45 and #ROT2 = 90 ($SREPT = 3) Sub is called and the initial rotates the first line 45 degrees (around the handle) - cuts - incrementally rotates 90 degrees - cuts - and repeats the incremental thing 2 more times. I tried to keep this simple, but something tells me the murk may be defeating my intent <grin>. Still, I hope this helps. - John Gent McKenzie River Software Your Exclusive Source for SmartCAM -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolfgang Sent: Monday, March 15, 2004 8:54 AM To: SmartCam Forum Subject: [mfg-smartcam] SUB ROTATION I do sub programming and when I define a sub, I would like to do a #ROT1 (rotation). Can someone explain how and where #ROT1 is used. Dave Wolfgang CNC Programmer/Supervisor www.hrindustries.net ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ======================================================================
