8 mod instruction (mod) – Yaskawa Ladder Works Programming Manual User Manual

Page 31

Advertising
background image

2.8 MOD Instruction (MOD)

2-14

2.8 MOD Instruction (MOD)

[Outline]

The MOD instruction outputs the remainder of integer or double-length integer division to the Dest.
Always execute the MOD immediately after the division instruction. If the MOD is executed
somewhere else, the operation results obtained before the next entry instruction cannot be guaranteed.

[Format]

Symbol : MOD
Full Name : Integer Remainder
Category : MATH

Icon :

[Parameter]

Parameter Name

Setting

Dest

· Any integer type and double-length integer type register (except for # and

C registers)

· Any integer type and double-length integer type register with subscript

(except for # and C registers)

· Subscript register

[Program Example]

The quotient of an integer type division is stoned in MW00101 and the remainder is stored in
MW00102.


Advertising