583
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.5 FNC189 – HCMOV / High Speed Counter Move
21
FN
C
160-FN
C
169
R
eal
Ti
m
e
C
loc
k
C
ont
ro
l
22
FN
C
170
-F
N
C
17
9
E
xt
e
rnal
D
evi
ce
23
FN
C
180
Su
b
st.
I
n
str
. I
n
fo
24
FN
C
181-FN
C
189
O
ther
s
25
FN
C
190-FN
C
19
9
B
loc
k D
a
ta
O
per
at
io
n
26
FN
C
200-FN
C
209
C
har
act
e
r St
ring
C
ont
ro
l
27
F
N
C2
10
-F
NC
21
9
Da
ta
O
per
at
ion 3
28
FN
C
220-FN
C
24
9
Da
ta
Co
m
p
a
ris
o
n
29
FN
C
250-FN
C
269
Da
ta
T
a
b
le
O
per
at
io
n
30
FN
C
27
0-F
N
C
274
Ex
-D
ev
ic
e
In
ve
rte
r C
o
mm
s
5) While input interrupts are disabled by the interrupt disable flags (shown in the table below), DHCMOV
instructions are not executed because corresponding input interrupt programs are not executed.
*1.
Cleared when the PLC mode is changed from RUN to STOP.
6) If an input interrupt is generated while input interrupts are disabled by something other than the interrupt
disable flags M8050 to M8055 (after execution of DI instruction and before execution of EI instruction),
DHCMOV instruction is immediately executed, but execution of the interrupt program is held. The
interrupt program will be executed after EI instruction is executed and interrupts are enabled.
Function change depending on the version
The function of FNC189 instruction is changed depending on the version as shown in the table below.
Error
An operation error occurs in the following case; The error flag M8067 turns ON, and the error code is stored in
D8067.
• When a device specified in
or [
+1,
] is outside the allowable range (error code: K6705)
Program examples
1. Program example 1
In the program example below, the current value of the high speed counter C235 is compared in each
operation cycle, and then the output Y000 is set to ON if the current value is "K500" or more (when the current
value of C235 is not cleared).
*1.
K0: The current value of the high speed counter is not cleared when DHCMOV instruction is executed.
K1: The current value of the high speed counter is cleared when DHCMOV instruction is executed.
Interrupt disable flag
Corresponding interrupt pointer
Input number corresponding to interrupt
pointer
M8050
*1
I000,I001
X000
M8051
*1
I100,I101
X001
M8052
*1
I200,I201
X002
M8053
*1
I300,I301
X003
M8054
*1
I400,I401
X004
M8055
*1
I500,I501
X005
Applicable version
Item
Outline of function
FX
3U
FX
3UC
Ver.2.00 or
later
Ver.2.00 or
later
Target device
Ring counter (D8099 and D8398) can be specified in
.
S
S
D
D
M8000
D0
K0*
1
FNC189
DHCMOV
C235
Y000
K500
FNC238
DAND>=
D0
END
The current value of C235 is
transferred to D1 and D0.
(The current value of C235 is not
cleared.)
In the case of "(D1, D0)
≥
K500",
Y000 is set to ON.
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......