hit counter script

Fnc162 - Tadd / Rtc Data Addition - 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.3
FNC162 – TADD / RTC Data Addition
Outline
This instruction executes addition of two time data, and stores the addition result to word devices.
1. Instruction format
FNC 162
TADD
2. Set data
Operand type
S
S
1
1
S
2
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS
S
S
1
1
S
2
S
D
2
: This function is supported only in FX
Explanation of function and operation
1. 16-bit operation (TADD)
The time data (hour, minute, and second) stored in
minute, and second) stored in
stored in
D
Command
input
FNC162
TADD
S
1
S
+1(minute)
1
S
+2(second)
1
• When the operation result exceeds 24 hours, the carry flag turns ON, and the value simply acquired by addition
subtracted by 24 hours is stored as the operation result.
• When the operation result becomes "0" (0:0:0), the zero flag turns ON.
568
Mnemonic
16-bit Instruction
P
7 steps TADD
TADDP
Specifies "hour" of the first time data (hour, minute, and second) used in addition.
(Three devices are occupied.)
Specifies "hour" of the second time data (hour, minute, and second) used in addition.
(Three devices are occupied.)
Stores the addition result (hour, minute, and second) of two time data.
(Three devices are occupied.)
Digit Specification
/FX
3U
,
S
S
1
1
,
D
+1, and
D
+2.
S
S
1
2
(hour)
S
(hour)
2
+
S
+1(minute)
2
S
+2(second)
2
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
T
C D R U \G
PLCs.
3UC
S
,
S
+1, and
2
2
+1, and
+2, and the addition result (hour, minute, and second) is
S
1
(
,
+1,
S
S
1
1
D
→ (
D
D
,
+1,
D
(hour)
The setting range of "hour" is from 0 to 23.
D
+1(minute)
The setting range of "minute" is from 0 to 59.
D
+2(second)
The setting range of "second" is from 0 to 59.
21.3 FNC162 – TADD / RTC Data Addition
Mnemonic
Operation Condition
Others
Con-
Real
Index
stant
Number
V
Z Modify K
H
E
S
+2 is added to the time data (hour,
2
+2)+(
,
+1,
S
S
S
1
2
2
D
+2)
Data type
16-bit binary
16-bit binary
16-bit binary
Charac-
Pointer
ter String
" "
P
+2)
S
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents