Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 106

Advertising
background image

5.3 Numeric Operation Instructions

5.3.8 Integer Remainder (MOD)

5-37

Instructions

5

( 3 ) Programming Examples

In the following programming examples, input data A is divided by input data B and the remainder is stored in the out-
put data.

• If the Immediately Preceding Division Is as Follows: 12,345

÷ 123 → MW00000 = 100

And then the MOD instruction is executed immediately afterward

→ MW00001 = 45.

• If the Immediately Preceding Division Is as Follows: 123,456,789

÷ 12,345 → ML00000 = 10,000

And then the MOD instruction is executed immediately afterward

→ ML00002 = 6,789

When performing operations with different data types, the result of the operation will depend on the data type of the output reg-
ister.
Refer to 4.4.2 ( 3 ) Precautions When Using Local Registers within a User Function for details.

INFO

Advertising
This manual is related to the following products: