EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #585 background imageLoading...
Page #585 background image
7 APPLICATION INSTRUCTION
7.19 Clock instruction
583
7
Adding clock data
TADD(P)
These instructions add the time data stored in the device number specified by (s2) and later to the clock data stored in the
device number specified by (s1) and later, and store the result to the device number specified by (d) and later.
Setting data
Descriptions, ranges, and data types
Applicable devices
Processing details
These instructions add the time data stored in the device numbers starting from (s2) to the clock data stored in the device
numbers starting from (s1), and store the result to the device numbers starting from (d).
Ex.
When adding 7:48:10 to 6:32:40
If the sum of two values exceeds 24:00:00, the carry flag turns on, and the result will be the sum minus 24:00:00. For
example, if a time value of 20:20:20 is added to another time value of 14:30:30, the sum is 34:40:50. However, the actual
addition result will be 10:40:50.
If the result is 0 (0:00:00), the zero flag turns on.
If 1 second is added to 23:59:59, the result will be 0:00:00. This turns on both the carry flag and the zero flag.
The table below shows the related devices.
Ladder diagram Structured text
ENO:=TADD(EN,s1,s2,d);
ENO:=TADDP(EN,s1,s2,d);
Operand Description Range Data type Data type (label)
(s1) Head device number where the clock data to be added is stored. 16-bit signed binary ANY16
(s2) Head device number where the adding time value (or clock data
value) is stored.
16-bit signed binary ANY16
(d) Head device number where the resultant clock data (or time
value) is stored.
16-bit signed binary ANY16
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s1) 
(s2) 
(d) 
Device Name Description
SM700 Carry If the result exceeds the maximum value of the time data, 23:59:59, this special relay turns on.
(s1) (s2) (d)
(s1)
(s1)+1
(s1)+2
+
(s2)
(s2)+1
(s2)+2
(d)
(d)+1
(d)+2
Data range
(0 to 23)
(0 to 59)
(0 to 59)
Hour
Minute
Second
Data range
(0 to 23)
(0 to 59)
(0 to 59)
Hour
Minute
Second
Data range
(0 to 23)
(0 to 59)
(0 to 59)
Hour
Minute
Second
(s1)
(s1)+1
(s1)+2
+
(s2)
(s2)+1
(s2)+2
(d)
(d)+1
(d)+2
6
32
40
7
48
10
14
20
50
(s1)
(s1)+1
(s1)+2
+
(s2)
(s2)+1
(s2)+2
(d)
(d)+1
(d)+2
14
20
30
20
20
20
10
40
50

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals