Mitsubishi Electronics FX3S Garage Door Opener User Manual


 
575
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.7 FNC166 – TRD / Read RTC data
21
FNC160-FNC169
Real Time Clock
Control
22
FNC170-FNC179
External Device
23
FNC180
Alternate
Instructions
24
FNC181-FNC189
Others
25
FNC190-FNC199
Block Data
Operation
26
FNC200-FNC209
Character String
Control
27
FNC210-FNC219
Data
Operation 3
28
FNC220-FNC249
Data
Comparison
29
FNC250-FNC269
Data Table
Operation
30
FNC270-FNC276
Ex-Device
21.7 FNC166 – TRD / Read RTC data
Outline
This instruction reads the clock data of the built-in PLC real time clock.
1. Instruction format
2. Set data
3. Applicable devices
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs.
S2: This function is supported only in FX
3U/FX3UC PLCs.
Explanation of function and operation
1. 16-bit operation (TRD)
The clock data stored in D8013 to D8019 of the built-in PLC real time clock is read in the following format, and stored
to to +6.
This instruction reads the real time clock data in a PLC, and transfers it to seven
data registers.
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.
Operand type Description Data type
Specifies the head device number storing the clock data.
(Seven devices are occupied.)
16-bit binary
Oper-
and
Type
Bit Devices Word Devices Others
System User Digit Specification System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
XYMTCSD
.b KnX KnY KnM KnS T C D R
U\G
V Z Modify K H E "
"P
S1 S2
Device Item Clock data Device Item
Special data register
D8018 Year
0 to 99
(lower two digits)
D 0 Year
D8017 Month 1 to 12
D 1 Month
D8016 Day 1 to 31
D 2 Day
D8015 Hour 0 to 23
D 3 Hour
D8014 Minute 0 to 59
D 4 Minute
D8013 Second 0 to 59
D 5 Second
D8019 Day of week
0 (Sunday) to
6 (Saturday)
D 6 Day of week
P
FNC 166
TRD
Mnemonic Operation Condition
16-bit Instruction
3 steps
TRD
TRDP
Mnemonic Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
D
S
2
D
D
D
Command
input
FNC166
TRD
D
D