omron — Q{constant}={expression}

PMAC Product Guide Internally, this command changes the value of the position bias register for each motor attached to an axis named in the command. This register holds the difference between the axis zero point and the motor zero (home) point. This command forces a temporary pause in the motion of the axes automatically; no moves are blended through a PSET command. For more powerful and flexible offsets that can be done on the fly (X, Y, and Z axes only), refer to the matrix manipulation commands such as ADIS and IDIS . Examples: X10Y20 PSET X0 Y0 ; Call this position (0,0) N92000 READ(X,Y,Z) ; To implement G92 in PROG 1000 PSET X(Q124)Y(Q125)Z(Q126) ; Equivalent of G92 X..Y..Z..

PVT{data} Function : Set position-velocity-time mode Type : Motion program (PROG and ROT) Syntax : PVT{data} where {data} is a positive constant or expression representing the time of a segment in milliseconds (PMAC will round this value to the nearest integer in actual use). This command puts the motion program into Position-Velocity-Time move mode, and specifies the time for each segment of the move. In this mode, each move segment in the program must specify the ending position and velocity for the axis.

Taking the starting position and velocity (from the previous segment), the ending position and velocity, and the segment time, PMAC computes the unique cubic position profile (parabolic velocity profile) to meet these constraints. The segment time in a sequence of moves can be changed on the fly, either with another PVT command, or with a TA command. TS , TM , and F settings are irrelevant in this mode. The PVT command takes the program out of any of the other move modes ( LINEAR , CIRCLE , SPLINE , RAPID ), and any of the other move mode commands takes the program out of PVT move mode. Refer to the Writing a Motion Program section of this manual for more details of this mode. Examples:

INC ; incremental mode, specify moves by distance PVT200 ; enter this mode -- move time 200ms X100:1500 ; cover 100 units ending at 1500 units/sec X500:3000 ; cover 500 units ending at 3000 units/sec X500:1500 ; cover 500 units ending at 1500 units/sec X100:0 ; cover 100 units ending at 0 units/sec PVT(P37) Q{constant}={expression} Function : Set Q-Variable value Type : Motion program (PROG and ROT); PLC program Syntax : Q{constant}={expression} where {constant} is an integer value from 0 to 1023 representing the Q-Variable number. {expression} represents the value to be assigned to the specified Q-Variable.

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 usually in a motion program Buffer Commands 229