Fnc 25 - Dec / Decrement - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
10.6
FNC 25 – DEC / Decrement
Outline
This instruction decrements the data of a specified device by "1".
1. Instruction format
FNC 25
D
DEC
2. Set data
Operand type
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
D
: This function is supported only in FX
Explanation of function and operation
1. 16-bit operation (DEC and DECP)
The contents of
Command
input
FNC 25
DECP
2. 32-bit operation (DDEC and DDECP)
The contents of [
D
].
Command
input
FNC 25
DDECP
Cautions
1. Flag operations
1)
16-bit operation
When "−32768" is decremented by "1", the result is "+32767". Flags (zero, carry and borrow) are not activated at
this time.
2)
32-bit operation
When "−2,147,483,648" is decremented by "1", the result is "+2,147,483,647". Flags (zero, carry and borrow) are
not activated at this time.
284
Mnemonic
16-bit Instruction
P
3 steps DEC
DECP
Word device number storing data to be decremented by "1"
Digit Specification
/FX
3U
D
are decremented by "1", and the decremented result is transferred to
− 1 →
D
D
D
+1,
D
] are decremented by "1", and the decremented result is transferred to [
D
D
[
+1,
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
PLCs.
3UC
D
D
D
D
] − 1 → [
+ 1,
10.6 FNC 25 – DEC / Decrement
Mnemonic
32-bit Instruction
DDEC
5 steps
DDECP
Con-
Real
Index
stant
Number
V
Z Modify K H
E
D
]
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Data type
16- or 32-bit binary
Others
Charac-
Pointer
ter String
" "
P
.
D
+1,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents