Subtraction - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Subtraction

SUB, -
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
SUB
s1
d
s2
The following operator(s) can go in the dotted squares.
SUB
Structured ladder/FBD
Not supported
The following operator(s) can go in the dotted squares.
-
■Argument
Input/output
Name
argument
Input argument
s1
s2
Output argument
d
Processing details
■Operation processing
For details of the operation processing, refer to the following.
Page 130 Subtraction
Operation error
• No operation error occurs.
Program example
■SUB, -
The program which performs subtraction ((s1) - (s2)) on double word (signed) type data input to (s1) and (s2), and outputs the
operation result from (d) in the same data type as that of (s1) and (s2).
[Structured ladder/FBD]
[ST]
g_dint3:= (g_dint1) - (g_dint2);
LCPU
ST
Not supported
ST
d:=s1
s2;
-
Description
Input
Output
Data type
ANY_NUM
ANY_NUM
6 OPERATOR
6.1 Arithmetic Operations
6
207

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents