Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 137

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

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
Program example
In this program, the absolute value is obtained for word [signed] data stored in a device specified in
the operation result is output to a device specified in
device specified in
1) Function without EN/ENO(ABS)
[Structured ladder]
g_int1=-5923
[ST]
g_int2 := ABS(g_int1);
2) Function with EN/ENO(ABS_E)
[Structured ladder]
g_bool1
g_int1
[ST]
g_bool3 := ABS_E(g_bool1, g_int1, g_int2);
.
s
ABS
g_int2=5923
_IN
ABS_E
g_bool3
EN
ENO
_IN
g_int2
5.2 Standard Functions Of One Numeric Variable
using the data type same as the data stored in a
d
1
, and
s
2
3
4
5
6
A
135

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents