Mitsubishi Electronics FX2C Home Theater Server User Manual


 
FX Series Programmable Controlers Applied Instructions 5
5-140
5.14.6 TWR (FNC 167)
Contents:
The 7 data devices specified with the head ad-
dress S are used to set a new current value of the
real time clock.
The seven devices
Points to note:
This instruction removes the need to use M8015 durin
g
real time clock settin
g
. When settin
g
the time it is a
g
ood idea to set the source data to a time a number of minutes ahead and then
drive the instruction when the real time reaches this value.
Mnemonic Function
Operands
Program steps
S
TWR
FNC 167
(Time
Write)
Sets the real time
clock to the value
stored in a
g
roup
of re
g
isters
T, C, D
Note: 7 consecutive devices are used.
TWR, TWRP:
5 steps
Device Meaning Values Device Meaning
S
+0
Year 00-99
D8018 Year
S
+1
Month 01-12
D8017 Month
S
+2
Date 01-31
D8016 Date
S
+3
Hours 00-23
D8015 Hours
S
+4
Minutes 00-59
D8014 Minutes
S
+5
Seconds 00-59
D8013 Seconds
S
+6
Da
y
0-6 (Sun-Sat)
D8019 Da
y
M34
D20TWR
[ S ]