beautypg.com

2 arithmetic operations, 1 substitute (=) – Yaskawa MP900 Series Motion Programming Manual User Manual

Page 139

background image

Sequence Commands

4.2.1 SUBSTITUTE (=)

4 -6

4.2 Arithmetic Operations

This section explains the arithmetic operation commands.

4.2.1 SUBSTITUTE (=)

J

Overview

The operation result on the right side of the expression is substituted in the register on the left
side.

The operation order of priority is different for math operations and logic operations. For de-
tails, see 4.1.2 Combinations of Math Operations and 4.1.3 Combinations of Logic Operations.

J

Description

Designation Method

(Result) = (math_expression);

Data Types

Bit (B)

Integer (W)

Double Integer (L)

Real Number (F)

Yes

Yes

Yes

Yes

J

Programming Examples

Type

Motion Program

Ladder Logic Program

B

MB001000=1;

SB000004

MB001000

W

MW00100=12345;

12345

⇒ MW00100

L

ML00100=1234567;

1234567

⇒ ML00100

F

MF00100=1.2345;

1.2345

⇒ MF00100

4

A

EXAMPLE

"

This manual is related to the following products: