Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual
Page 243

A.1 Expression
A-5
A
A.1.3
Instructions Available in EXPRESSION Instruction
Instruction
Contents
Example
Reserved
Word
+
Addition
MW00001 = MW00002 + MW00003
{
–
Subtraction
MW00001 = MW00002 – MW00003
{
*
Multiplication
MW00001 = MW00002 * MW00003
{
/
Division
MW00001 = MW00002 / MW00003
{
%
Surplus
MW00001 = MW00002 % MW00003
{
&
AND of each bit
MW00001 = MW00002 & 4096
{
|
OR of each bit
MW00001 = MW00002 | 4096
{
&&
Logical product
MB000010 = MB000011 && MB000012
{
||
Logical add
MB000010 = MB000011 || MB000012
{
!
Logical denial
MB000010 = !MB000011
{
==
Equal to a right value
MB000010 = MB000011 == true
{
>=
Greater than or equal to a right
value
MB000010 = MW00020 >= MW00021
{
>
Greater than a right value
MB000010 = MW00020 > MW00021
{
<
Less than a right value
MB000010 = MW00020 < MW00021
{
<=
Less than or equal to a right value
MB000010 = MW00020 <= MW00021
{
=
A right value is substituted
for a left value
MW00001 = MW00002
{
true
true
MB000010 = MB000011 == true
{
false
false
MB000010 = MB000011 == false
{
sin()
SIN
MW00001 = sin(MW00002)
{
cos()
COS
MF00002 = cos(MF00004)
{
atan()
ARCTAN
MW00001 = atan(MF00002)
{
tan()
TAN
MW00001 = tan(MW00002)
{
()
Parentheses
MW00001 = (MW00002 + MW00003) / MW00004
{
asin()
ARCSIN
MW00001 = asin(MW00002)
{
acos()
ARCCOS
MW00001 = acos(MW00002)
{
sqrt()
AQRT
MW00001 = sqrt(MW00002)
{
abs()
ABS
MW00001 = abs(MW00002)
{
exp()
EXP
MW00001 = exp(MW00002)
{
log()
LOG Natural logarithm
MW00001 = log(MW00002)
{
log10()
LOG10 Common logarithm
MW00001 = log10(MW00002)
{