PMAC Product Guide performing a continuous move sequence is one or two moves ahead of the move actually executing at the time (because of the need to calculate ahead in the program). Because each coordinate system has its own set of Q-Variables, it is important to know which coordinate system’s Q-Variable is affected by this command. When executed from inside a motion program, this command affects the specified Q-variable of the coordinate system running the motion program. When executed from inside a PLC program, this command affects the specified Q-Variable of the coordinate system specified by the most recent ADDRESS command executed inside that PLC program.
If there has been no ADDRESS command executed since power-on/reset, it affects the Q-Variable of Coordinate System 1. Examples: Q1=3 Q99=2.71828 Q124=P100+ATAN(Q120) R{data} Function : Set circle radius Type : Motion program (PROG or ROT) Syntax : R{data} where {data} is a constant or expression representing the radius of the arc move specified in user length units. This partial command defines the magnitude of the radius for the circular move specified on that command line. It does not affect the moves on any other command lines.
(If there is no R radius specification and no IJK vector specification on a move command line, the move will be done linearly, even if the program is in CIRCLE mode.) If the radius value specified in {data} is greater than zero, the circular move to the specified end point will describe an arc of less than or equal to 180 o with a radial length of the specified value. If the radius value specified in {data} is less than zero, the circular move to the specified end point will describe an arc of greater than or equal to 180 o with a radial length equal to the absolute value of {data} .
If using the AROT or IROT commands 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. Note: If the distance from the start point to the end point is more than twice the magnitude specified in {data} , there is no circular arc move possible. If the distance is greater than twice {data} by an amount less than Ix96 (expressed in user length units), PMAC will execute a spiral to the end point. If the distance is greater by more than Ix96, PMAC will stop the program with a run-time error. Examples:
RAPID X0 Y0 ; Move to origin CIRCLE1 ; Clockwise circle mode X10 Y10 R10 ; Quarter circle to (10, 10) X0 Y0 R-10 ; Three-quarters circle back to (0, 0) X(P101) R(P101/2) ; Half circle to (P101, 0) 230 Buffer Commands