Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC Program Command Specification 464
This command sets the value of the specified Q-variable to that of the expression on the right side of the
equals sign. The assignment is done as the line is processed, which in a motion program performing a
continuous move sequence is usually 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)
See Also:
Q-Variables (Program Computational Features)
On-line command Q{constant}={expression}
Program commands ADDRESS, I{data}={expression}, M{data}={expression},
P{data}={expression}
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}.
Note:
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.