Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 406

Advertising
background image

D.1 Elements That You Can Use in Numeric Expressions

D-4

( 3 ) Instructions That You Can Use with EXPRESSION Instructions

Instruction

Description

Example

Reserved Word

+

Add

MW00001 = MW00002 + MW00003

Subtract

MW00001 = MW00002 – MW00003

*

Multiply

MW00001 = MW00002

× MW00003

/

Divide

MW00001 = MW00002 / MW00003

%

Remainder

MW00001 = MW00002 % MW00003

&

Bit-wise AND

MW00001 = MW00002 & 4096

Bit-wise OR

MW00001 = MW00002 │ 4096

&&

Inclusive AND

MB000010 = MB000011 && MB000012

Inclusive OR

MB000010 = MB000011 ∥ MB000012

!

Logical NOT

MB000010 = !MB000011

==

Equal to right-side
value

MB000010 = MB000011 == true

>=

Right-side value is less
than or equal to left-
side value

MB000010 = MW00020 >= MW00021

>

Right-side value is less
than left-side value

MB000010 = MW00020 > MW00021

<

Right-side value is
greater than left-side
value

MB000010 = MW00020 < MW00021

<=

Right-side value is
greater than or equal to
left-side value

MB000010 = MW00020 <= MW00021

=

Substitute left-side
value with right-side
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 loga-
rithm

MW00001 = log10(MW00002)

Advertising
This manual is related to the following products: