Addition (+) -7, 2 addition (+) ! ! ! ! outline, Detailed explanation – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual

Page 139: Program example important point

Advertising
background image

MotionSuite™ Series Machine Controller Motion Programming Manual

Chapter 4: Sequence Commands

4-7

4.2.2

Addition (+)

!

!

!

! Outline

The addition function performs integer and real number addition on the right side, and
stores the result in the register on the left side. For the right-side addition, a constant can
also be used instead of the register. Even if the integer and real numbers are mixed, the
result can still be stored by the data type on the left side.

!

!

!

! Detailed Explanation

Command Method

Data Types

!

!

!

! Program Example

Important Point

When executing the variable calculation which has different data types, the results vary
depending on the data type on the left side. Refer to item 5.1.1Variable Overview for
details.

Bit (B)

Integer (W)

32-bit Integer (L)

Real (F)

×

$

$

$

Type

Motion Program

Ladder Program

B

W

MW00101=MW00100+12345;

L

ML00106=ML00102+ML00104;

F

MF00202=MF00200+1.23456;

MW

=MW

+MW

;

MW00100+12345

⇒MW00101

ML00102+ML00104

⇒ML00106

MF00200+1.23456

⇒MF00202

Advertising