omron — PMATCH

PMAC Product Guide The number reported after the colon is not a line number; as an addres offset, it is the number of words of memory from the top of the program. The LIST PROGRAM command, when used with comma delimiters, shows the program or section of the program with address offsets for each line. The LIST PC command can show lines of the program with address offsets from the point of calculation. Because PMAC calculates ahead in a continuous sequence of moves, the PC (Program Calculation) command will in general return a program line further down in the program than PE will. If the coordinate system is not pointing to any motion program, PMAC will return an error (ERR003 if I6=1 or 3).

Initially the pointing must be done with the B{constant} command. Examples: PC P1:0 ; Ready to execute at the top of PROG 1 PC P76:22 ; Ready to execute at 22nd word of PROG 76 LIST PC P76:22:X10Y20 ; Program line at 22nd word of PROG 76 PC P1001:35>P3.12 ; Execution will return to PROG 3, address 12 PE Function : Report program execution pointer Scope : Coordinate-system specific Syntax : PE This command causes PMAC to report the motion program number and address offset of the currently executing programmed move in the addressed coordinate system. This is similar to the PC command, which reports the program number and address offset of the next move to be calculated.

Since PMAC is calculating ahead in a continuous sequence of moves, PC will in general report a move line several moves ahead of PE . If the coordinate system is not pointing to any motion program, PMAC will return an error (ERR003 if I6=1 or 3). Initially the pointing must be done with the B{constant} command. Examples: PE P1:2 PE P1:5 PMATCH Function : Re-match axis positions to motor positions Scope : Coordinate-system specific Syntax : PMATCH This command causes PMAC to recalculate the axis starting positions for the coordinate system to match the current motor commanded positions (by inverting the axis definition statement equations and solving for the axis position).

Normally this does not need to be done. However, if a motor move function, such as a jog move, an open-loop move, or a stop on abort or limit, was done since the last axis move or home, PMAC will not know automatically that the axis position has changed. If an axis move is then attempted without the use of the PMATCH command, PMAC will use the wrong axis starting point in its calculations. 186 Online Commands