Subtraction (–) -8, 3 subtraction (–) ! ! ! ! outline, Detailed explanation – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual

Page 140: Program example

Advertising
background image

MotionSuite™ Series Machine Controller Motion Programming Manual

Chapter 4: Sequence Commands

4-8

4.2.3

Subtraction (–)

!

!

!

! Outline

The subtraction function performs integer and real number subtraction on the right side,
and stores the result in the register on the left side. For the right-side subtraction, a con-
stant 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 Type

!

!

!

! Program Example

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