Fnc 24 - Inc / Increment - 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.5
FNC 24 – INC / Increment
Outline
This instruction increments the data of a specified device by "1".
1. Instruction format
FNC 24
D
INC
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.
282
Mnemonic
16-bit Instruction
P
3 steps INC
INCP
Word device number storing data to be incremented by "1"
Digit Specification
/FX
3U
D
are incremented by "1", and the increment result is transferred to
D
+ 1 →
D
D
+1,
D
] are incremented by "1", and the increment result is transferred to [
D
D
D
[
+1,
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
PLCs.
3UC
D
D
D
] + 1 → [
+ 1,
10.5 FNC 24 – INC / Increment
Mnemonic
Operation Condition
DINC
5 steps
DINCP
16- or 32-bit binary
Others
Con-
Real
Index
stant
Number
V
Z Modify K H
E
D
.
]
Continuous
Operation
Pulse (Single)
Operation
Data type
Charac-
Pointer
ter String
" "
P
D
+1,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents