PMAC Product Guide Internally, a position bias register is written to which creates this new position offset. PSET is the equivalent motion program command. Examples: X=0 ; Call axis X’s current position zero Z=5000 ; Re-define axis Z’s position as 5000 B{constant} Function : Point the addressed coordinate system to a motion program. Scope : Coordinate-system specific Syntax :
B{constant} where {constant} is a floating point value from 0.0 to 32767.99999 representing the program and location to point the coordinate system to; with the integer part representing the program number and the fractional part multiplied by 100,000 representing the line label (zero fractional part means the top of the program). This command causes PMAC to set the program counter of the addressed coordinate system to the specified motion program and location. Usually it is used to set the program counter to the beginning of a motion program. The next R or S command will start execution at this point.
If {constant} is an integer, the program counter will point to the beginning of the program whose number matches {constant} . Fixed motion program buffers (PROG) can have numbers from 1 to 32,767. The rotary motion program carries program number 0 for the purpose of this command. If {constant} is not an integer, the fractional part of the number represents the line label ( N or O ) in the program to which to point. The fractional value multiplied by 100,000 determines the number of the line label to which to point (it fills the fraction to five decimal places with zeros). Note:
If a motion program buffer (including ROTARY) is open when this command is sent to PMAC, the command is entered into the buffer for later execution to be interpreted as a B-axis move command. Examples: B7 ;points to the top of PROG 7 B0 ;points to the top of the rotary buffer B12.6 ;points to label N60000 of PROG 12 B3.025R ;points to label N2500 of PROG 3 and runs CLEAR Function : Erase currently opened buffer. Scope : Global Syntax CLEAR CLR This command empties the currently opened program, PLC, rotary, etc. buffer.
Typically, as a buffer file is created in the host computer, it starts with the OPEN {buffer} and CLEAR commands (even though, technically these lines are not part of the buffer) and follows with the actual contents. This will allow easy editing of the buffers from the host and repeatedly downloading of the buffers, erasing the old buffer’s contents in the process. Examples: OPEN PROG 1 ; Open motion program buffer 1 CLEAR ; Clear out this buffer F1000 ; Program really starts here! X2500 ;...and ends on this line Online Commands 157