Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 149

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

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
Error
An operation error occurs in the following cases. The error flag M8067 turns ON, and D8067 stores the error
code.
1) When the value stored in a device specified in
(Error code: K6706)
2) When the value stored in a device specified in
(Error code: K6706)
3) When the operation result is outside the following range:
(Error code: K6706)
-126
≤⏐Operation result⏐<2
2
Program example
In this program, the value stored in a device specified in
device specified in
data stored in a device specified in
1) Function without EN/ENO(EXPT)
[Structured ladder]
g_real1
g_int1
[ST]
g_real2:=EXPT(g_real1,g_int1);
2) Function with EN/ENO(EXPT_E)
[Structured ladder]
g_bool1
g_real1
g_int1
[ST]
g_bool3:=EXPT_E(g_bool1,g_real1,g_int1,g_real2);
128
, and the operation result is output to a device specified in
s2
.
s1
EXPT
g_real2
In1
In2
EXPT_E
g_bool3
EN
ENO
In1
g_real2
In2
5.3 Standard Arithmetic Functions
is negative
s1
is "0"
s1
is raised to the power of the value stored in a
s1
using the data type of
d
147
1
2
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