283
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (
+
,
−
,
×
,
÷
) – FNC 20 to FNC 29
10.5 FNC 24 – INC / Increment
1
Introduction
2
Overview
3
Instruction
List
4
Devices
in Detail
5
Specified the
Device &
Constant
6
Before
Programming
7
Basic
Instruction
8
FNC00-FNC09
Program Flow
9
FNC10-FNC19
Move & Compare
10
FNC20-FNC29
Arith. & Logic
Operation
Program example
X010
M 1
X011
FNC 12
MOVP
K 0 Z
FNC 18
BCDP
C 0Z K4Y000
FNC 24
INCP
Z
FNC 10
CMPP
K 10 Z M 0
0
→
(Z)
(C 0Z)
→
(K4Y000)
BIN BCD
(Z) + 1
→
(Z)
When Z is "10",
M1 turns ON.
The current values of counters C0 to C9
are converted into BCD format, and
output to K4Y000.
Z is cleared by the reset input X010.
Every time X011 is set to ON, the current
values of C0, C1 ... C9 are output one at
a time.