Remainder - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Remainder

MOD(_E)
High
Basic
Process
performance
Structured ladder/FBD
MOD_E
EN
ENO
s1
s2
The following function(s) can go in the dotted squares.
MOD, MOD_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
• Performs division ((s1)  (s2)) on word (signed) or double word (signed) type data input to (s1) and (s2), and outputs the
remainder of the operation result from (d) in the same data type as that of (s1) and (s2).
Ex.
Word (signed) type data
s1
5
Word (signed) type
• The values to be input to (s1) and (s2) are word (signed) or double word (signed) type data. (Note that the value to be input
to (s2) must be other than 0.)
■Operation result
• Function without EN/ENO
The following table shows the operation results.
Operation result
No operation error
Operation error
• Function with EN/ENO
The following table shows the executing conditions and operation results.
EN
TRUE (Operation execution)
FALSE (Operation stop)
*1 When FALSE is output from ENO, the data output from (d) is undefined. In this case, create a program so that the data output from (d) is
not used.
5 APPLICATION FUNCTIONS
134
5.3 Standard Arithmetic Functions
Redundant Universal
LCPU
ST
ENO:=
MOD_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s1(_IN1)
Input
s2(_IN2)
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
s2
2
Word (signed) type
ENO
TRUE (No operation error)
FALSE
(EN, s1, s2, d);
d
(Quotient)
(Remainder)
2
1
No output
Word (signed) type
(d)
Operation output value
Undefined value
*1
Data type
Bit
ANY_INT
Bit
ANY_INT
(d)
Operation output value
Undefined value

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents