omron — AND ({condition})

PMAC Product Guide This command does not affect host addressing, the addressing of other PLC programs, or the selection of the control panel inputs. The addressing stays in effect until another ADDRESS statement supersedes it. Default addressing at power-on/reset is #1 and &1. In motion programs, there is no modal addressing for COMMAND statements; each COMMAND statement must contain the motor or coordinate system specifier within its quotation marks. A motion program automatically operates on the Q-Variables of the coordinate system executing the program. Examples:

ADDRESS &4 ADR #2 ADDRESS &2#2 ADR#1 ; Modally address Motor 1 CMD"J+" ; This will start Motor 1 jogging CMD"#2J+" ; This will start Motor 2 jogging CMD"J/" ; This will stop Motor 1 ADIS{constant} Function : Absolute displacement of X, Y, and Z axes Type : Motion program (PROG and ROT) Syntax : ADIS{constant} where {constant} is an integer constant representing the number of the first of three consecutive Q-Variables to be used in the displacement vector. This command loads the currently selected (with TSEL ) transformation matrix for the coordinate system with offset values contained in the three Q-variables starting with the specified one.

This has the effect of renaming the current commanded X, Y, and Z axis positions (from the latest programmed move) to the values of these variables (X=Q{data}, Y=Q({data}+1), Z=Q({data}+2)). This command does not cause any movement of any axes; it simply renames the present positions. This command is equivalent to a PSET X(Q{data}) Y(Q({data}+1)) Z(Q({data}+2)) command, except that ADIS does not force a stop between moves, as PSET does. Examples: Q20=7.5 Q21=12.5 Q22=25 ADIS 20 ; This makes the current X position 7.5, Y 12.5, Z25 AND ({condition}) Function : Conditional AND Type : PLC program only Syntax : AND ({condition}) where {condition} is a simple or compound condition.

This statement forms part of an extended compound IF or WHILE condition to be evaluated in a PLC program. It must immediately follow an IF , WHILE , AND , or OR statement. This AND is a Boolean operator logically combining the full conditions on its line and the program line immediately above. It takes lower precedence than AND or OR operators within a compound condition on a single line (the parentheses cause those to be executed first), but it takes higher precedence than an OR operator that starts a line. 202 Buffer Commands