PMAC Product Guide { axis} is a letter (X, Y, Z, A, B, C, U, V, W) representing the axis to which the motor is to be matched. [+{offset}] (optional) is a floating-point constant representing the difference between axis zero position and motor zero (home) position, in motor counts. If none are specified, PMAC assumes a value of 0.0. Note: No space is allowed between the motor number and the arrow double character. This command assigns the specified motor to a set of axes in the addressed coordinate system. It also defines the scaling and starting offset for the axis or axes.
In the vast majority of cases, there is a one-to-one matching between PMAC motors and axes, so this axis definition statement uses only one axis name for the motor. Typically, a scale factor is used with the axis character, so that axis moves can be specified in standard units (e.g. millimeters, inches, degrees). This number is what defines what the units will be for the axis. If no scale factor is specified, a user unit for the axis is one motor count. Occasionally an offset parameter is used to allow the axis zero position to be different from the motor home position.
(This is the starting offset; it can later be changed in several ways, including the PSET , {axis}= , ADIS , and IDIS commands). If the specified motor is assigned currently to an axis in a different coordinate system, PMAC will reject this command (reporting an ERR003 if I6=1 or 3). If the specified motor is currently assigned to an axis in the addressed coordinate system, the old definition will be overwritten by this new one. To undo a motor’s axis definition, address the coordinate system in which it has been defined and use the command #{constant}->0 . To clear all of the axis definitions within a coordinate system, address the coordinate system and use the UNDEFINE command.
To clear all axis definitions in all coordinate systems, use UNDEFINE ALL . For more sophisticated systems, two or three cartesian axes may be defined as a linear combination of the same number of motors. This allows coordinate system rotations and orthogonality corrections, among other things. One to three axes may be specified (if only one, it amounts to the simpler definition above). All axes specified in one definition must be from the same triplet set of cartesian axes: XYZ or UVW. If this multi-axis definition is used, a command to move an axis will result in multiple motors moving. Examples: #1->X ....... ; User units = counts #4->2000 A ..
; 2000 counts/user unit #8->3333.333Z-666.667 ; Non-integers OK #3->Y ................ ; Two motors may be assigned to the same axis; #2->Y ................ ; both motors move when a Y move is given #1->8660X-5000Y ;This provides a 30o rotation of X and Y... #2->5000X+8660Y ;with 10000 cts/unit -- this rotation does #3->2000Z-6000 ;not involve Z, but it could have This example corrects a Y axis 1 arc minute out of square: #5->100000X ;100000 cts/in #6->-29.1X+100000Y ;sin and cos of 1/60 138 Online Commands