563
FX3G/FX3U/FX3GC/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.4 FNC163 – TSUB / RTC Data Subtraction
21
FNC160-FNC169
Real Time Clock
Control
22
FNC170-FNC179
External Device
23
FNC180
Alternate
Instructions
24
FNC181-FNC189
Others
25
FNC190-FNC199
Block Data
Operation
26
FNC200-FNC209
Character String
Control
27
FNC210-FNC219
Data
Operation 3
28
FNC220-FNC249
Data
Comparison
29
FNC250-FNC269
Data Table
Operation
30
FNC270-FNC275
Ex-Device
Inverter Comms
Cautions
1) Number of occupied devices
Three devices are occupied by , and respectively.
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
When the operation result is smaller than "00:00:00"
S
1
S
2
D
X000
FNC163
TSUB
D 10 D 20 D 30
S
1
S
2
D
−
D 11 30 (minute)
D 10 10 (hour)
D 12 10 (second)
D 21 10 (minute)
D 20 3 (hour)
D 22 5 (second)
D 31 20 (minute)
D 30 7 (hour)
D 32 5 (second)
→
10:30:10 3:10:5 7:20:5
( D10, D11, D12)
−
(D20, D21, D22)
→
( D30, D31, D32)
−
S
1
20 (minute)
5 (hour)
40 (second)
S
2
10 (minute)
18 (hour)
5 (second)
D
10 (minute)
11 (hour)
35 (second)
→
11:10:3518:10:55:20:40
←
5
−
18=
−
13 (<0)