Mitsubishi Electric FX3G SERIES Programming Manual page 571

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
Cautions
1)
Number of occupied devices
Three devices are occupied by
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 using the TRD (FNC166) instruction, and then specify those word
devices as the operands.
Program example
X000
FNC162
TADD
S
10 (hour)
1
S
+1 30 (minute)
1
S
+2 10 (second)
1
10:30:10
When the operation result exceeds 24 hours
S
1
18 (hour)
10 (minute)
30 (second)
18:10:30
,
and
S
S
1
2
S
S
D
1
2
D 10
D 20
D 30
S
3 (hour)
2
+
S
+1 10 (minute)
2
S
+2 5 (second)
2
3:10:5
S
2
10 (hour)
+
20 (minute)
5 (second)
10:20:5
21 Real Time Clock Control – FNC160 to FNC169
21.3 FNC162 – TADD / RTC Data Addition
respectively.
D
( D10 ,D11 ,D12)+(D20 ,D21 ,D22)
→ ( D30 ,D31,D32)
D
13 (hour)
D
+1 40 (minute)
D
+2 15 (second)
13:40:15
D
18+10=28(≥24)
4 (hour)
30 (minute)
35 (second)
4:30:35
21
22
23
24
25
26
27
28
29
30
569

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents