Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 147

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
Error
1) An operation error occurs when the divisor stored in a device specified in
not executed.
2) An operation error occurs when the operation result exceeds "32,767" (16-bit operation) or
"2,147,483,647" (32-bit operation).
Program example
In this program, division is performed using double word [signed] data stored in devices specified in
, and the remainder is output to a device specified in
s2
specified in
s1
1) Function without EN/ENO(MOD)
[Structured ladder]
g_dint1=5678
g_dint2=1234
[ST]
g_dint3:=g_dint1 MOD g_dint2;
2) Function with EN/ENO(MOD_E)
[Structured ladder]]
g_bool1
g_dint1
g_dint2
[ST]
g_bool3 := MOD_E(g_bool1, g_dint1, g_dint2, g_dint3);
and
.
s2
MOD
_IN1
_IN2
MOD_E
g_bool3
EN
ENO
_IN1
g_dint3
_IN2
using the data type of data stored in devices
d
g_dint3=742
5.3 Standard Arithmetic Functions
is "0", and the function is
s2
s1
145
1
2
and
3
4
5
6
A

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents