FX Series Programmable Controlers Applied Instructions 5
5-180
5.14.6 TWR (FNC 167)
Contents:
The 7 data devices specified with the head
address 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 during real time clock setting. When setting
the time it is a good 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 group
of registers
T, C, D
Note: 7 consecutive devices are used.
TWR, TWRP:
5steps
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 Day 0-6 (Sun-Sat) Þ D8019 Day
FX
1S
FX1N FX2N
FX2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
M34
D20TWR
[ S ]