Remainder - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Remainder

MOD
High
Basic
Process
performance
Structured ladder/FBD
Not supported
The following operator(s) can go in the dotted squares.
MOD
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
For details of the operation processing, refer to the following.
Page 134 Remainder
Operation error
• An operation error occurs in the following cases.
Error
Description
code
4100
The value to be input to (s2) is 0. (Division by 0)
Program example
■MOD
The program which performs division ((s1)  (s2)) on 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).
[ST]
g_dint3:= (g_dint1) MOD (g_dint2);
6 OPERATOR
210
6.1 Arithmetic Operations
Redundant Universal
LCPU
ST
d:=s1
MOD
Name
s1
s2
d
s2;
Description
Input
Output
Q00J/
Q00/
Q01
Data type
ANY_INT
ANY_INT
QnH
QnPH
QnPRH
QnU
LCPU

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents