EasyManua.ls Logo

Omron 3G3RX2 Series - Arithmetic Operation and Logical Operation Commands

Omron 3G3RX2 Series
176 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 DriveProgramming Commands
6 - 6
DriveProgramming User’s Manual (I622-E1)
Conditions
Command Argument 1 Argument 2 Argument 3 Argument 4 Argument 5 Description
Condition
<variable 1/
constant>
=
<variable 2/
constant>
TRUE if <variable
1/constant> is equal to
<variable 2/constant>.
<variable 1/
constant>
<
<variable 2/
constant>
TRUE if <variable
1/constant> is less
than <variable 2/
constant>.
<variable 1/
constant>
<=
<variable 2/
constant>
TRUE if <variable
1/constant> is equal to
or less than <variable
2/constant>.
<variable 1/
constant>
>
<variable 2/
constant>
TRUE if <variable
1/constant> is greater
than <variable 2/
constant>.
<variable 1/
constant>
>=
<variable 2/
constant>
TRUE if <variable
1/constant> is equal to
or greater than <vari-
able 2/constant>.
<variable 1/
constant>
<>
<variable 2/
constant>
TRUE if <variable
1/constant> is not
equal to <variable
2/constant>.
Arithmetic Operation and Logical Operation Commands
Command Argument 1 Argument 2 Argument 3 Argument 4 Argument 5 Description
Arithmetic
operation
<variable 1> : =
<variable 2/
constant>
Assigns <variable
2/constant> to <vari-
able 1>.
<variable 1> : =
<variable 2/
constant>
+
<variable 3/
constant>
Adds <variable 2/con-
stant> and <variable
3/constant> and
assigns the result to
<variable 1>.
<variable 1> : =
<variable 2/
constant>
<variable 3/
constant>
Subtracts <variable
3/constant> from
<variable 2/constant>
and assigns the result
to <variable 1>.
<variable 1> : =
<variable 2/
constant>
*
<variable 3/
constant>
Multiplies <variable
2/constant> by <vari-
able 3/constant> and
assigns the result to
<variable 1>.
<variable 1> : =
<variable 2/
constant>
/
<variable 3/
constant>
Divides <variable
2/constant> by <vari-
able 3/constant> and
assigns the result to
<variable 1>.

Table of Contents

Other manuals for Omron 3G3RX2 Series

Related product manuals