Fnc162 - Tadd / Rtc Data Addition - 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.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 T C D R U \G
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
(hour, minute, and second) stored in
and second) is stored in
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.
592
Mnemonic
16-bit Instruction
P
7 steps TADD
TADDP
Specifies "hour" of the time data (hour, minute, and second) used in addition.
(Three devices are occupied.)
Specifies "hour" of the 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
,
+1, and
D
D
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
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
/FX
PLCs.
3U
3UC
,
S
S
2
2
,
+1, and
S
S
S
1
1
1
+2.
D
(
,
+1,
S
S
1
1
D
→(
D
,
D
D
(hour)
D
+1(minute)
D
+2(second)
21.3 FNC162 – TADD / RTC Data Addition
Mnemonic
32-bit Instruction
Con-
Real
Index
stant
Number
V Z Modify K H
E
+1, and
+2 is added to the time data
S
2
+2, and the addition result (hour, minute,
+2)+(
,
+1,
S
S
S
1
2
2
+1,
D
+2)
The setting range of "hour" is from 0 to 23.
The setting range of "minute" is from 0 to 59.
The setting range of "second" is from 0 to 59.
Operation Condition
Data type
16-bit binary
16-bit binary
16-bit binary
Others
Charac-
Pointer
ter String
" "
P
+2)
S
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents