Fnc 24 - Inc / Increment - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
10.5
FNC 24 – INC / Increment
Outline
This instruction increments the data of a specified device by "1".
1. Instruction format
FNC 24
D
INC
P
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 (INC and INCP)
The contents of
Command
input
FNC 24
INCP
2. 32-bit operation (DINC and DINCP)
The contents of [
].
D
Command
input
FNC 24
DINCP
Cautions
1. Note that data is incremented in every operation cycle in a continuous operation type
instruction.
2. Flag operations
1) 16-bit operation
When "+32767" is incremented by "1", the result is "−32768". Flags (zero, carry and borrow) are not
activated at this time.
2) 32-bit operation
When "+2,147,483,647" is incremented by "1", the result is "−2,147,483,648". Flags (zero, carry and
borrow) are not activated at this time.
Mnemonic
16-bit Instruction
3 steps INC
INCP
Word device number storing data to be incremented by "1"
Digit Specification
/FX
3U
are incremented by "1", and the increment result is transferred to
D
D
+ 1 →
D
D
+1,
] are incremented by "1", and the increment result is transferred to [
D
D
D
D
D
[
+1,
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
Operation Condition
32-bit Instruction
Continuous
5 steps
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
V Z Modify K H
PLCs.
3UC
D
D
] + 1 → [
+ 1,
]
10.5 FNC 24 – INC / Increment
Mnemonic
Operation Condition
Continuous
DINC
Operation
Pulse (Single)
DINCP
Operation
Data type
16- or 32-bit binary
Others
Con-
Real
Charac-
Index
stant
Number
ter String
E
" "
.
D
1
2
3
4
Pointer
P
5
6
7
+1,
D
8
9
10
295

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents