Fnc166 - Trd / Read Rtc Data - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
21.7
FNC166 – TRD / Read RTC data
Outline
This instruction reads the clock data of the real time clock built in a PLC.
1. Instruction format
FNC 166
TRD
2. Set data
Operand type
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
2
: This function is supported only in FX
Explanation of function and operation
1. 16-bit operation (TRD)
The clock data stored in D8013 to D8019 of the real time clock built in a PLC is read in the following format,
and stored to
Command
input
FNC166
Device
D8018
D8017
D8016
D8015
D8014
D8013
D8019
Caution
1. Number of occupied devices
Seven devices are occupied by
Make sure that these devices are not used in other controls for the machine.
600
Mnemonic
16-bit Instruction
P
3 steps TRD
TRDP
Specifies the head device number storing the clock data.
(Seven devices are occupied.)
Digit Specification
3U
to
+6.
D
D
This instruction reads the real time clock data in a PLC, and transfers it to
D
seven data registers.
TRD
Item
Year
Month
Day
Hour
Minute
Second
Day of week
.
D
21 Real Time Clock Control – FNC160 to FNC169
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
/FX
PLCs.
3UC
Clock data
0 to 99
(lower two digits)
1 to 12
1 to 31
0 to 23
0 to 59
0 to 59
0 (Sunday) to
6 (Saturday)
21.7 FNC166 – TRD / Read RTC data
Mnemonic
Operation Condition
16-bit binary
Others
Con-
Real
Index
stant
Number
V Z Modify K H
E
Device
D 0
D 1
D 2
D 3
D 4
Minute
D 5
Second
D 6
Day of week
Data type
Charac-
Pointer
ter String
" "
P
Item
Year
Month
Day
Hour

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents