Mitsubishi Electronics FX3UC ユーザーズマニュアル
247
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
Series
Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.2 FNC 11 – ZCP / Zone Compare
1
Introdu
ction
2
Ov
ervi
ew
ew
3
Instruction
Li
st
4
D
evices
in Det
ai
l
5
Specifi
ed the
De
vice
&
C
onst
ant
ant
6
Bef
ore
ore
Pr
og
ra
mmi
ng
ng
7
Bas
ic
ic
Instruction
8
FN
C00-FN
C00-FN
C0
9
Program Fl
ow
9
FNC
10-FN
C19
Mov
e & Com
e & Com
pare
10
FNC
20-FNC
29
Arith. & Lo
gi
c
Operati
on
9.2
FNC 11 – ZCP / Zone Compare
Outline
This instruction compares two values (zone) with the comparison source, and outputs the result (smaller, equal or
larger) to bit devices (3 points).
larger) to bit devices (3 points).
→ For the contact comparison instruction, refer to Chapter 28.
→ For floating point comparison, refer to Section 18.2.
1. Instruction format
2. Set data
3. Applicable devices
S1: "D .b" is available only in FX
3U
and FX
3UC
PLCs. However, index modifiers (V and Z) are not available.
S2: This function is supported only in FX
3G
/FX
3GC
/FX
3U
/FX
3UC
PLCs.
S3: This function is supported only in FX
3U
/FX
3UC
PLCs.
Explanation of function and operation
1. 16-bit operation (ZCP and ZCPP)
The lower comparison value
and upper comparison value
are compared with the comparison source
. According to the result (smaller, within zone or larger), either
,
+1 or
+2 turns ON.
• Comparison is executed algebraically. Example:
−10 < 2 <10
Operand Type
Description
Data Type
Data or device number handled as lower comparison value
16- or 32-bit binary
Data or device number handled as upper comparison value
16- or 32-bit binary
Data or device number handled as comparison source
16- or 32-bit binary
Head bit device number to which comparison result is output
Bit
Oper-
and
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special
Unit
Index
Con-
stant
stant
Real
Number
Charac-
ter String
Pointer
X Y M T C S D .b KnX KnY KnM KnS T C D
R
U \G
V Z Modify K H
E
" "
P
S2
S3
S2
S3
S2
S3
S1
DZCP
DZCPP
DZCPP
Mnemonic
Operation Condition
P
FNC 11
ZCP
D
16-bit Instruction
9 steps
ZCP
ZCPP
ZCPP
Mnemonic
Operation Condition
Continuous
Operation
Pulse (Single)
Pulse (Single)
Operation
32-bit Instruction
17 steps
Continuous
Operation
Pulse (Single)
Pulse (Single)
Operation
S
1
S
2
S
D
S
1
S
2
S
D
S
1
S
2
S
D
D
D
FNC 11
ZCP
Even if the command input turns OFF and ZCP instruction is not executed, , +1 and +2 latch
the status just before the command input turns OFF from ON.
Command
input
S
1
S
2
S
D
D
+1
D
+2
D
D
D
D
Turns ON in the case of
S
S
2
>
] ".
" [
Turns ON in the case of
S
1
≤
S
S
2
≤
] ".
" [
Turns ON in the case of
S
1
>
S
] ".
" [