EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - 7.3.2 SUB

Mitsubishi Electric MELSEC FX Series
838 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...
7 Applied Instructions
7.3 Arithmetic and Logical Operation
181
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
7.3.2 SUB
Outline
This instruction executes subtraction using two values to obtain the result (A -B = C).
For the floating point subtraction instruction [DESUB], refer to Section 7.12.9.
1. Format and operation, execution form
2. Set data
FX3U(C) FX3G FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder ST
SUB 16 bits Continuous SUB(EN,s1,s2,d);
SUBP 16 bits Pulse SUBP(EN,s1,s2,d);
DSUB 32 bits Continuous DSUB(EN,s1,s2,d);
DSUBP 32 bits Pulse DSUBP(EN,s1,s2,d);
Variable Description
Data type
16-bit
operation
32-bit
operation
Input
variable
EN Execution condition Bit
Data for subtraction or word device storing data ANY16 ANY32
Data for subtraction or word device storing data ANY16 ANY32
Output
variable
ENO Execution state Bit
Word device storing the subtraction result ANY16 ANY32
SUB
EN
s1
s2
ENO
d
SUBP
EN
s1
s2
ENO
d
DSUB
EN
s1
s2
ENO
d
DSUBP
EN
s1
s2
ENO
d

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals