3 subtract (-), 1) overview, 2) format – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual

Page 226: 3) programming examples, 2) format (3) programming examples

Advertising
background image

8.5 Arithmetic Operations

8-119

8

Command Reference

8.5.3 Subtract (-)

(1) Overview

Subtract (-) performs integer and real number subtraction on the right side and stores the result in the register on
the left side. With mixed integers and real numbers, the data type on the left side is stored.

(2) Format

(3) Programming Examples

Subtract (

−) command programming examples are shown below.

Motion Programs

Sequence Programs

Applicable

Applicable

MW00101 = MW00100 -12345 ;

A B C

Item

Description

Usable Registers

A

Data output

• All integer type, double integer type, real number type registers (Excluding # and C

registers)

• The above registers with subscript
• Subscript registers

B

Data input

• All integer type, double integer type, real number type registers (Excluding # and C

registers)

• The above registers with subscript
• Subscript registers
• Constants

C

Data to

subtract

Type

Motion Programs/

Sequence Programs

Ladder Programs

B

W

MW00101=MW00100-12345;

L

ML00106=ML00102-ML00104;

F

MF00202=MF00200-1.23456;

EXAMPLE

Advertising