Operation error
• An operation error occurs in the following case.
Error
Description
code
4100
The value to be input to (s2) is 0. (Division by 0)
Program example
■MOD(_E)
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).
• Function without EN/ENO (MOD)
[Structured ladder/FBD]
[ST]
g_dint3:= (g_dint1) MOD (g_dint2);
• Function with EN/ENO (MOD_E)
[Structured ladder/FBD]
[ST]
g_bool3 := MOD_E(g_bool1, g_dint1, g_dint2, g_dint3);
Q00J/
QnH
QnPH
QnPRH
Q00/
Q01
5 APPLICATION FUNCTIONS
5.3 Standard Arithmetic Functions
QnU
LCPU
5
135