Fnc167 - Twr / Set Rtc Data - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
21.8
FNC167 – TWR / Set RTC data
Outline
This instruction writes the clock data to the built-in PLC real time clock.
1. Instruction format
FNC 167
TWR
P
2. Set data
Operand type
S
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS
S
: This function is supported only in FX
Explanation of function and operation
The clock data stored in
Command
input
FNC167
TWRP
- D8018 (year data) can be converted into the 4-digit mode. (Refer to the program example shown later.)
Device
D 10
D 11
D 12
D 13
D 14
D 15
D 16
- When TWR (FNC167) instruction is executed, the clock data of the real time clock is immediately changed.
Accordingly, transfer the clock data several minutes ahead to
FNC167 instruction when the accurate time has come.
- When setting the clock data (time) using this instruction, it is not necessary to control the special auxiliary relay
M8015 (time stop and time setting).
- If a numeric value indicating impossible date/time is set, the clock data is not changed.
Set the correct clock data, and then write it.
Mnemonic
16-bit Instruction
3 steps TWR
TWRP
Specifies the head device number to which the clock data is written.
(Seven devices are occupied.)
Digit Specification
/FX
3U
3UC
S
to
S
+6 is written to D8013 to D8019 for the built-in PLC real time clock.
S
Item
Year
Month
Day
Hour
Minute
Second
Day of week
21 Real Time Clock Control – FNC160 to FNC169
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Index
Unit
T
C D R U \G
V
Z Modify K
PLCs.
Clock data
0 to 99
(lower two digits)
1 to 12
1 to 31
0 to 23
0 to 59
o to 59
0 (Sunday) to
6 (Saturday)
S
to
21.8 FNC167 – TWR / Set RTC data
Mnemonic
Operation Condition
Data type
16-bit binary
Others
Con-
Real
Charac-
stant
Number
ter String
H
E
" "
Device
Item
D8018
Year
D8017
Month
D8016
Day
D8015
Hour
D8014
Minute
D8013
Second
D8019
Day of week
S
+6 in advance, and then execute
21
22
23
24
Pointer
P
25
26
27
28
29
30
577

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents