EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 1965

Mitsubishi Electric MELSEC iQ-R Series
2110 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
Loading...
33 TIME DATA TYPE FUNCTIONS
33.1 Addition
1963
33
Processing details
Operation processing
These functions perform addition of the TIME data type values input to (s1) and (s2) ((s1)+(s2)), and output the operation
result, in the TIME data type, from (d).
Ex.
When (s1)=T#1d2h33m44s55ms (1 day, 2 hours, 33 minutes, 44 seconds, 55 milliseconds) and (s2)=T#2ms (2 milliseconds)
Input a TIME data type value to (s1) and (s2).
Even if an underflow or overflow occurs in the operation result, no operation error is issued. The following is output to (d).
When ADD_TIME_E is used, ENO outputs TRUE.
Ex.
Overflow
A negative time value results because the most significant bit is 1.
Ex.
Underflow
A positive time value results because the most significant bit is 0.
Operation result
1. Function without EN/ENO
The operation processing is performed. The operation result is output from (d).
2. Function with EN/ENO
The execution conditions and operation results will be as follows.
*1 If the value FALSE is output from ENO, the output data from (d) will be undefined. Create a program so that the undefined value will not
be used in operations.
Operation error
There is no operation error.
Execution condition Operation result
EN ENO (d)
TRUE (executed) TRUE Operation result output value
FALSE (not executed) FALSE
*1
Undefined value
(d)(s2)(s1)
+ T#2ms T#1d2h33m44s57msT#1d2h33m44s55ms
TIME TIMETIME
+ T#2ms T#-24d20h31m23s647msT#24d20h31m23s647m
(00000002H) (80000001H)(7FFFFFFFH)
(d)(s2)(s1)
+ T#-2ms T#24d20h31m23s646msT#-24d20h31m23s648ms
(FFFFFFFFEH) (7FFFFFFEH)(80000000H)
(d)(s2)(s1)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals