PMAC Product Guide RAPID Function : Set rapid traverse mode Type : Motion program (PROG and ROT) Syntax : RAPID RPD This command puts the program into a mode in which all motors defined to the commanded axes move to their destination points in jog-style moves. This mode is intended to create the minimum-time move from one point to another. Successive moves are not blended together in this mode and the different motors do not necessarily all reach their end points at the same time. The accelerations and decelerations in this mode are controlled by motor jog-acceleration I-Variables Ix19, Ix20, and Ix21.
If global I-variable I50 is set to 0, the velocities in this mode are controlled by the motor jog speed I-variables Ix22. If I50 is set to 1, they are controlled by the motor maximum speed I- Variables Ix16. Only the motor with the greatest distance-to-speed ratio for the move actually moves at this speed; all other motors are slowed from the specified speed to complete the move in approximately the same time, so that the move is nearly linear. The RAPID command takes the program out of any of the other move modes ( LINEAR , CIRCLE , PVT , SPLINE ); any of the other move-mode commands takes the program out of RAPID mode. Examples:
RAPID X10 Y20 ; Move quickly to starting cut position M1=1 ; Turn on cutter LINEAR X12 Y25 F2 ; Start cutting moves ... M1=0 ; Turn off cutter RAPID X0 Y0 ; Move quickly back to home position READ Function : Read arguments for subroutine Type : Motion program (PROG only) Syntax : READ({letter},[{letter}...]) where {letter} is any letter of the English alphabet, except N or O , representing the letter on the calling program line whose following value is to be read into a variable Note: No space is allowed between READ and the left parenthesis. This statement allows a subprogram or subroutine to take arguments from the calling routine.
It looks at the remainder of the line calling this routine ( CALL , G , M , T , D ), takes the values following the specified letters and puts them into particular Q-Variables for the coordinate system. For the Nth letter of the alphabet, the value is put in Q(100+N). It scans the calling line until it sees a letter that is not in the list of letters to READ , or until the end of the calling line. Each letter value successfully read into a Q-Variable causes a bit to be set in Q100, noting that it was read (bit N-1 for the Nth letter of the alphabet). For any letter not successfully read in the most recent READ command, the corresponding bit of Q100 is set to zero. Buffer Commands 231