
[2] Arithmetic
Operation
238
z
MOD (Remainder)
Command, declaration
Extension
condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
E
N, Cnd
Cmnd
Operand 1
Operand 2
Pst
Optional Optional
MOD
Variable
number
Data ZR
Applicable models
All models [Refer to Section 5.1 for details of models]
{
[Function]
Assign, to the variable specified in 1, the remainder obtained by dividing the
content of the variable specified in operand 1 by the value specified in operand 2.
The output will turn ON when the operation result becomes 0.
(Note)
A MOD command is used with integer variables.
[Example 1]
LET
1
7
Assign 7 to variable 1.
MOD
1
3
Obtain the remainder of dividing the content of
variable 1 (7) by 3.
The remainder of 7 / 3 = 2, or 1, is assigned to
variable 1.
[Example 2]
LET
1
2
Assign 2 to variable 1.
LET
2
7
Assign 7 to variable 2.
LET
3
3
Assign 3 to variable 3.
MOD
*1
*3
Obtain the remainder of dividing the variable that
corresponds to the content of variable 1, or 2, by
the content of variable 3, or 3.
The remainder of 7 / 3 = 2, or 1, is assigned to
variable 2.
Summary of Contents for PSEL
Page 2: ......
Page 10: ......
Page 18: ...8 Part 1 Installation ...
Page 37: ...27 Part 1 Installation 2 2 axis specification with battery ...
Page 382: ...372 Appendix Micro cylinder RCL Series Current limiting value ratio Push force N ...
Page 476: ...466 Appendix ...
Page 480: ...470 ...
Page 485: ...475 ...
Page 487: ...INTELLIGENT ACTUATOR SEL Language Programming Manual Eighth Edition ...
Page 488: ......
Page 490: ......
Page 494: ......
Page 518: ...24 ...
Page 526: ...32 ...
Page 831: ... 11 Actuator Control Declaration 337 Example DFIF 1 170 ...
Page 1060: ......
Page 1061: ......