omron — NORMAL

PMAC Product Guide {expression} is a mathematical expression representing the value to be XOR with this M-Variable. This form is equivalent to M{constant}=M{constant}^{expression} , except that the bit-by-bit XOR and the assignment of the resulting value to the M-Variable do not happen until the start of the following servo command. The expression itself is evaluated when the program line is encountered, as in a non-synchronous statement. Note: Remember that if using this M-Variable in further expressions before the next move in the program is started, the value assigned in this statement will not be received. Examples:

M20^=$FF ; Toggle all bits of byte M20 M99^=$80 ; Toggle bit 7 of M99, leaving other bits as is N{constant} Function : Program line label Type : Motion program (PROG and ROT) Syntax : N{constant} where {constant} is an integer from 0 to 262,143 (2 18 -1). This is a label for a line in the program that allows the flow of execution to jump to that line with a GOTO , GOSUB , CALL , G , M , T , or D statement or a B command. A line needs a label only to be able to jump to that line. Line labels do not have to be in any sort of numerical order. The label must be at the beginning of a line. Remember that each location label takes up space in PMAC memory. Note:

There is always an implied N0 at the beginning of every motion program. Putting an explicit N0 at the beginning may be useful in reading the program. Putting an N0 anywhere else in the program is useless and may confuse those reading the program. Examples: N1 N65537 X1000 NORMAL Function : Define normal vector to plane of circular interpolation and cutter radius compensation Type : Motion program (PROG and ROT) Syntax : NORMAL {vector}{data} [{vector}{data}...] NRM {vector}{data} [{vector}{data}...] where {vector} is one of the letters I, J, and K, representing components of the total vector parallel to the X, Y, and Z axes, respectively.

{data} is a constant or expression representing the magnitude of the particular vector component. This statement defines the orientation of the plane in XYZ-space in which circular interpolation and cutter radius compensation will take place by setting the normal (perpendicular) vector to that plane. 226 Buffer Commands