Mitsubishi Electric MELSEC-Q/L Programming Manual page 127

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

Advertisement

■ABS(_E) (when single-precision real type data is specified for (s))
The program which outputs the absolute value of single-precision real type data input to (s) from (d) in the same data type as
that of (s).
• Function without EN/ENO (ABS)
[Structured ladder/FBD]
[ST]
g_real2:= ABS(g_real1);
• Function with EN/ENO (ABS_E)
[Structured ladder/FBD]
[ST]
g_bool2 := ABS_E(g_bool1, g_real1, g_real2);
■ABS(_E) (when double-precision real type data is specified for (s))
The program which outputs the absolute value of double-precision real type data input to (s) from (d) in the same data type as
that of (s).
• Function without EN/ENO (ABS)
[Structured ladder/FBD]
[ST]
g_lreal2:= ABS(g_lreal1);
• Function with EN/ENO (ABS_E)
[Structured ladder/FBD]
[ST]
g_bool2 := ABS_E(g_bool1, g_lreal1, g_lreal2);
5 APPLICATION FUNCTIONS
5.2 Standard Functions of One Numeric Variable
5
125

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents