Справочник Пользователя для Mitsubishi Electronics FX2NC

Скачать
Страница из 382
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 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:
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
Day
0-6 (Sun-Sat)
D8019
Day
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
M34
D20
TWR
[ S ]