Remainder (mod) -11, 6 remainder (mod) ! ! ! ! outline, Detailed explanation – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual
Page 143: Program example, Important point

MotionSuite™ Series Machine Controller Motion Programming Manual
Chapter 4: Sequence Commands
4-11
4.2.6
Remainder (MOD)
!
!
!
! Outline
When designating a block following the division command as a MOD, the remain-
der is stored in a designated variable. Even if the integer and real numbers are mixed
in the block following the division command, the remainder is still stored by the data
type on the left side.
!
!
!
! Detailed Explanation
Command Method
Data Type
!
!
!
! Program Example
Example: 32-bit Integer Number
Important Point
The MOD command must be designated in the block following the division command.
Bit (B)
Integer (W)
32-bit Integer (L)
Real (F)
×
$
$
×
Type
Motion Program
Ladder Program
B
—
—
W
MW00101=MW00100/3;
MW00102=MOD;
L
ML00106=ML00102/ML00104;
ML00108=MOD;
F
MW00001=1000/999;
MW00002=MOD;
→ MW0002=1
MW00100/3
⇒MW00101
MOD
⇒MW00102
MW00102/ML00104
⇒MW00106
MOD
⇒MW00108
ML00106=ML00100*ML00102/ML00104;
(173575) (100000) (60000) (34567)
ML00108=MOD;
(32975)