A position register stores positional information (x,y,z,w,p,r, configuration). The default number of position registers is 100. You can increase the number up to 2000 (for single group systems) using the Program Limits Setup menu at Controlled Start. Refer to the Software Installation Manual for more information.
You cannot use PR[1] as a position register in your programs, as SpotTool uses this internally as a home position register.
You can increase the number of position registers at controlled start. Refer to the “System Operations” appendix of the Setup and Operations Manual for information on performing a controlled start.
There are two kinds of position register instructions:
Instructions that manipulate position registers, PR[x]
Instructions that manipulate position register elements, PR[i,j]
If your system is configured to have more than one group, you can set thegroup mask when you create any position register instruction. The group mask allows you to use function keys to specify:
Whether the group mask will be used. If the group mask is not used, the position register instruction affects the default group only.
The group or groups that the position register instruction will affect.
PR[GRPn:x] position register instructions manipulate the position register. They include assignment, addition, and subtraction instructions.
The PR[GRPn:x] = [value] instruction stores positional information in a position register. See Figure 91, " PR[GRPn:x] = [value] " .
The PR[GRPn:x] = [value] [operator] [value] instructions store the result of an arithmetic operation in a register. The arithmetic operations are addition and subtraction. See Figure 92, " PR[GRPn:x] = [value] [operator] [value] " .
You can use multiple arithmetic operators in a single instruction. However, there are the following limitations:
PR[i,j] position register element instructions manipulate a specific position register element. A position register element is one element of a specified position register. In the designation PR[i,j], thei represents the position register number and the j represents the position register element.
Position register element instructions include assignment, addition, and subtraction instructions. See Figure 93, " Position Register Element PR[i,j] " .
The PR[i,j] = [value] instruction stores positional information in a position register element. See Figure 94, " PR[i,j] = [value] " .
The PR[i,j] = [value] [operator] [value] instructions store the result of an arithmetic operation in a position register element. The arithmetic operations are addition, subtraction, multiplication, division, whole number division (DIV), and remainder division (MOD). See Figure 95, " PR[i,j] = [value] [operator] [value] " .
You can use multiple arithmetic operators in a single instruction. However, there are the following limitations:
You can mix + and - in the same instruction. Arithmetic operations within an instruction that mixes + and - will be performed from left to right. You cannot mix * or / in an instruction that already contains + or -.
You can mix * and / in the same instruction. Arithmetic operations within an instruction that mixes + and - will be performed from left to right. You cannot mix + or - in an instruction that already contains * or /.
The maximum number of arithmetic operators you can have in the same instruction is 5.