omron — OR({condition})

PMAC Product Guide The vector components that can be specified are I (X-axis direction), J (Y-axis direction), and K (Z-axis direction). The ratio of the component magnitudes determines the orientation of the normal vector, and therefore, of the plane. The length of this vector does not matter -- it does not have to be a unit vector. The direction sense of the vector does matter, because it defines the clockwise sense of an arc move and the sense of cutter-compensation offset.

PMAC uses a right-hand rule; that is, in a right-handed coordinate system ( I x J = K ), if the right thumb points in the direction of the normal vector specified here, the right fingers will curl in the direction of a clockwise arc in the circular plane, and in the direction of offset-right from direction of movement in the compensation plane. Examples: The standard settings to produce circles in the principal planes will therefore be: NORMAL K-1 ; XY plane -- equivalent to G17 NORMAL J-1 ; ZX plane -- equivalent to G18 NORMAL I-1 ; YZ plane -- equivalent to G19 By using more than one vector component, a circular plane skewed from the principal planes can be defined:

NORMAL I0.866 J0.500 NORMAL J25 K-25 NORMAL J(-SIN(Q1)) K(-COS(Q1)) NORMAL I(P101) J(P201) K(301) O{constant} Function : Alternate line label Type : Motion program (PROG and ROT) Syntax : O{constant} where {constant} is an integer from 0 to 262,143 (2 18 -1) This is an alternate form of label in the motion program. It 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. PMAC will store and report this as an N{constant} statement, but O labels are legal to send to the program buffer. ( N10 and O10 are identical labels to PMAC.) 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. Examples: O1 O65537 X1000 OR({condition}) Function : Conditional OR Type : PLC program Syntax : OR ({condition}) This statement forms part of an extended compound condition to be evaluated in a PLC program. It must follow an IF , WHILE , AND , or OR statement immediately. This OR is a boolean operator logically combining the condition on its line with the condition on the program line above.

It takes lower precedence than operators within a compound condition on a single line (those within parentheses) and also lower precedence than an AND operator that starts a line. ( OR s operate on groups of AND ed conditions.) Buffer Commands 227