5 divide (/) – Yaskawa MP900 Series Motion Programming Manual User Manual
Page 142
4.2 Arithmetic Operations
4 -9
J
Programming Examples
Type
Motion Program
Ladder Logic Program
B
−
−
W
MW00102=MW00100∗MW00101;
MW00100
MW00101 ⇒ MW00101
*
L
ML00106=ML00102∗ML00104;
ML00102
ML00104 ⇒ ML00106
*
F
MF00202=MF00200∗1.23456;
MF00200
1.23456 ⇒ MF00202
*
4.2.5 DIVIDE (/)
J
Overview
DIVIDE (/) performs integer and real number division 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.
J
Description
Designation Method
MW−=MW− / MW−;
Data Types
Bit (B)
Integer (W)
Double Integer (L)
Real Number (F)
No
Yes
Yes
Yes
J
Programming Examples
Type
Motion Program
Ladder Logic Program
B
−
−
W
MW00102=MW00100/MW00101;
MW00100 / MW00101 ⇒ MW00102
L
ML00106=ML00102/ML00104;
ML00102 / ML00104 ⇒ ML00106
F
MF00202=MF00200/1.23456;
MF00200 / 1.23456 ⇒ MF00202
4
A
EXAMPLE
"
A
EXAMPLE
"