5.8 Functions Of Time Data Type; Addition - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

5.8
Functions of Time Data Type

Addition

ADD_TIME(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
ADD_TIME_E
EN
ENO
s1
d
s2
The following function(s) can go in the dotted squares.
ADD_TIME, ADD_TIME_E
■Argument
Input/output
Name
argument
Input argument
EN
s1(_IN1)
s2(_IN2)
Output argument
ENO
d
Processing details
■Operation processing
• Performs addition ((s1) + (s2)) on time type data input to (s1) and (s2), and outputs the operation result from (d) in time
type.
Ex.
When the input value to (s1) and (s2) are T#1d2h33m44s55ms (1 day 2 hours 33 minutes 44 seconds 55 milliseconds) and
T#2ms (2 milliseconds).
s1
+
T#1d2h33m44s55ms
T#2ms
Time type
Time type
• The value to be input to (s1), (s2) are time type data.
• No operation error occurs even if an underflow/overflow occurs. Data is output from (d) as follows.
In case of ADD_TIME_E, TRUE is output from ENO.
Ex.
Overflow
T#24d20h31m23s647m
+
T#2ms
(7FFFFFFF
)
(00000002
H
Since the highest-order bit is 1, the result value is negative.
LCPU
ST
ENO:=
ADD_TIME_E
(EN, s1, s2, d);
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Input
Execution result (TRUE: Normal, FALSE: Error)
Output
s2
T#1d2h33m44s57ms
Time type
T#-24d20h31m23s647m
)
(80000001
H
Data type
Bit
Time
Bit
Time
d
)
H
5 APPLICATION FUNCTIONS

5.8 Functions of Time Data Type

5
165

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents