![Mitsubishi Electric FX3G SERIES Скачать руководство пользователя страница 567](http://html.mh-extra.com/html/mitsubishi-electric/fx3g-series/fx3g-series_programming-manual_238902567.webp)
565
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.1 FNC160 – TCMP / RTC Data Compare
21
FNC160
-F
NC1
69
R
eal
T
ime C
lock
C
ontrol
22
FNC17
0-F
NC
179
E
xternal D
evice
23
FNC
180
Alternate
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
Bl
oc
k D
ata
Op
er
atio
n
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
g
Con
tro
l
27
FNC2
10-
FNC21
9
Dat
a
Operati
on 3
28
FNC220
-F
NC2
49
Da
ta
C
omp
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
e
Operation
30
FNC2
70-
FNC275
Ex
-Dev
ice
Inverter C
om
m
s
Explanation of function and operation
1. 16-bit operation (TCMP)
The comparison time (hour, minute, and second) stored in
,
, and
is compared with the time data
(hour, minute, and second) stored in
,
+1, and
+2. Three devices starting from
turn ON or
OFF according to the comparison result.
Cautions
1) Number of occupied devices
Three devices are occupied respectively by
and
.
Make sure that these devices are not used in other controls for the machine.
2) When utilizing the time (hour, minute, and second) of the built-in PLC real time clock
Read the values of special data registers by TRD (FNC166) instruction, and then specify those word devices as
the operands.
Program example
S
1
S
2
S
3
S
S
S
D
Turns ON in the case of " "
Turns ON in the case of " "
Turns ON in the case of " "
Command
input
FNC160
TCMP
S
1
S
2
S
3
S
D
>
=
<
↑
Even if the command contact turns OFF from ON and TCMP instruction is not
executed, , +1 and +2 hold the status before the command
contact turned OFF.
D
+1
D
+2
D
(minute)
(hour)
(second)
S
1
S
2
S
3
(minute)
(hour)
(second)
S
1
S
2
S
3
(minute)
(hour)
(second)
S
1
S
2
S
3
S
+1(minute)
(hour)
+2(second)
S
S
S
+1(minute)
(hour)
+2(second)
S
S
S
+1(minute)
(hour)
+2(second)
S
S
D
D
D
S
D
S
S
S
S
1
S
2
S
3
: Specifies "hour" of the comparison
time.
: Specifies "minute" of the
comparison time.
: Specifies "second" of the comparison
time.
: Specifies "hour" of the time data.
+1
+2
: Specifies "minute" of the time data.
: Specifies "second" of the time data.
X000
FNC160
TCMP
K10
K30
K50
D0
M0
S
1
S
2
S
3
S
D
10:30:50
M0
Turns ON in the case of "10:30:50 > "
M1
Turns ON in the case of "10:30:50 = "
M2
Turns ON in the case of "10:30:50 < "
↑
Even if X000 is OFF and TCMP instruction is not executed, M0 to
M2 hold the status before X000 turned OFF.
D1 (minute)
D0 (hour)
D2 (second)
D1 (minute)
D0 (hour)
D2 (second)
D1 (minute)
D0 (hour)
D2 (second)
: Three bit devices turn ON or OFF
according to the comparison result.
D
+1,
D
+2
D
,
Содержание FX3G SERIES
Страница 1: ...FX3G FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS PROGRAMMING MANUAL Basic Applied Instructions Edition ...
Страница 2: ......
Страница 947: ......