Mitsubishi FX3U Series Programming Manual page 551

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
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 real time clock built in a PLC
Read the values of special data registers using TRD (FNC166) instruction, and then specify those word
devices as the operands.
Program example
X000
FNC163
TSUB
D 10 10 (hour)
D 11 30 (minute)
D 12 10 (second)
10:30:10
When the operation result is smaller than "00:00:00"
S
1
5 (hour)
20 (minute)
40 (second)
5:20:40
,
S
S
1
2
S
S
D
1
2
D 10
D 20
D 30
D 20 3 (hour)
D 21 10 (minute)
D 22 5 (second)
3:10:5
S
2
18 (hour)
10 (minute)
5 (second)
18:10:5
21 Real Time Clock Control – FNC160 to FNC169
21.4 FNC163 – TSUB / RTC Data Subtraction
and
respectively.
D
( D10, D11, D12) − (D20, D21, D22)
→ ( D30, D31, D32)
D 30 7 (hour)
D 31 20 (minute)
D 32 5 (second)
7:20:5
D
11 (hour)
5−18=−13 (<0)
10 (minute)
35 (second)
11:10:35
21
22
23
24
25
26
27
28
29
30
549

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents