Yaskawa MP940 Reference Manual User Manual

Page 27

Advertising
background image

MotionSuite™ MP940 Machine Controller Reference Manual

Specifications and Functions

2-17

Lo

gi

ca

l O

p

e

ra

tio

n Co

mma

nds

Logical AND

∧

All registers and parameters can be designated in integer form.

Logical OR

∨

All registers and parameters can be designated in integer form.

Exclusive
Logical OR

All registers and parameters can be designated in integer form.

Addition

+

Normal numerical addition (with operation error generation)

MW00280 +00100

⇒ MW00220

Subtraction

-

Normal numerical subtraction (with operation error generation)

MW00280 -00100

⇒ MW00220

Extended
Addition

++

Adds closed values (no operation error generation)
0¨

→ 32767¨→ -32768¨→ 0

Extended
Subtraction

--

Subtracts closed values (no operation error generation)
0~-32767, -32768~0

N

u

me

ri

ca

l O

p

e

ratio

n Co

mma

nds

Integer
Replacement

Integer Operation Start

Real Number
Replacement

Real Number Operation Start

Storage

Stores operation results to a designated register.

Multiplication

×

Used with × and ÷ in combination for integers and double-length
integers.

Division

÷

Increment

INC

Adds 1 to a designated register.
INC MW00100

Decrement

DEC

Subtracts 1 from a designated register.
DEC MW00100

Integer Remain-
der

MOD

Obtains the remainder from the results of division.

MW00100 × 01000 ÷ 00121

MOD

⇒ MW00101

Real Number
Remainder

REM

Obtains the remainder from the results of division.
MF00200 REM 1.5

⇒ MF00202

Time Addition

TMADD

Addition of Hr/Min/Sec
TMADD MW00000, MW00100

Time Subtraction

TMSUB

Subtraction of Hr/Min/Sec
TMSUB MW00000, MW00100

Time Spent

SPEND

Requests the elapsed time for two time measures.
SPEND MW00000, MW00100

Type

Name

Symbol

Content

MW00280 + 00100

MW00220

MW00280 + 00100

MW00220

Advertising