EasyManua.ls Logo

Mitsubishi MELSEC Q Series

Mitsubishi MELSEC Q Series
268 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5-130
5.3 Standard Arithmetic Functions
5.3.3 Subtraction
SUB(_E)
Operation Error
No operation error occurs in the execution of the SUB(_E) function.
Program Example
The program which performs subtraction ( − ) on double word (signed) type data input to
and , and outputs the operation result from in the same data type as that of .
(a) Function without EN/ENO (SUB)
[Structured ladder]
[ST]
g_dint3:= g_dint1-g_dint2;
(b) Function with EN/ENO (SUB_E)
[Structured ladder]
[ST]
g_bool3 := SUB_E(g_bool1, g_dint1, g_dint2, g_dint3);
s1
s2
s1
s2
d
s

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Related product manuals