Mitsubishi Electric MELSEC FX3U Programming Manual page 597

Melsec fx series programmable logic controllers
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 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
595

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents