PMAC Product Guide Examples: INC(A,B,C) INC INC(U) INC(R) IROT{constant} Function : Incremental rotation/scaling of X, Y, and Z axes Type : Motion program (PROG and ROT) Syntax : IROT{constant} where {constant} is an integer representing the number of the first of nine consecutive Q-Variables to be used in the rotation/scaling matrix. This command multiplies the currently selected (with TSEL ) transformation matrix for the coordinate system by the rotation/scaling values contained in the nine Q-Variables starting with the specified one.
This has the effect of renaming the current commanded X, Y, and Z axis positions (from the latest programmed move) by multiplying the existing rotation/scaling matrix by the matrix containing these Q- Variables, adding angles of rotation and multiplying scale factors. The rotation and scaling is done relative to the latest rotation and scaling of the XYZ coordinate system, defined by the most recent AROT or IROT commands. The math performed is: [New Rot Matrix] = [Old Rot Matrix] [Incremental Rot Matrix] [Xrot Yrot Zrot] T = [New Rot Matrix] [Xbase Ybase Zbase] T This command does not cause any movement of any axes; it simply renames the present positions. Note:
When using this command to scale the coordinate system, do not use the radius center specification for circle commands. The radius does not get scaled. Use the I, J, K vector specification instead. Examples: Create a 3x3 matrix to rotate the XY plane by 30 degrees about the origin.
Q40=COS(30) Q41=SIN(30) Q42=0 Q43=-SIN(30) Q44=COS(30) Q45=0 Q46=0 Q47=0 Q48=1 IROT 40 ; Implement the change, rotating 30 degrees from current IROT 40 ; This rotates a further 30 degrees Create a 3x3 matrix to scale the XYZ space by a factor of 3 Q50=3 Q51=0 Q52=0 Q53=0 Q54=3 Q55=0 Q56=0 Q57=0 Q58=3 IROT 50 ; Implement the change, scaling up by a factor of 3 IROT 50 ; Scale up by a further factor of 3 (total of 9x) J{data} Function : J-Vector specification for circular moves Type : Motion program (PROG and ROT) Syntax : J{data} where {data} is a floating-point constant or expression representing the magnitude of the J-component of the vector in scaled user axis units. 222 Buffer Commands