Multiplication - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Multiplication

MUL_TIME(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
MUL_TIME_E
EN
ENO
s1
d
s2
The following function(s) can go in the dotted squares.
MUL_TIME, MUL_TIME_E
■Argument
Input/output
Name
argument
Input argument
EN
s1(_IN1)
s2(_IN2)
Output argument
ENO
d
Processing details
■Operation processing
• Performs multiplication ((s1)  (s2)) on time type data input to (s1) and the word (signed), double word (signed), single-
precision real or double-precision real type data input to (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
2.
s1
T#1d2h33m44s55ms
Time type
Word (signed)
• The value to be input to (s1) is time type data.
• The value to be input to (s2) is word (signed), double word (signed), single-precision real or double-precision real type data.
• Rounding error may occur when specifying single-precision real or double-precision real type data to (s2) by programming
tool.
For precautions when setting an input value using a programming tool, refer to the following.
 MELSEC-Q/L/F Structured Programming Manual (Fundamentals)
No operation error occurs even if an underflow/overflow occurs. Data is output from (d) as follows. In case of MUL_TIME_E,
TRUE is output from ENO. (Although the operation result is 64-bit data, data is output in time type with the high-order 32 bits
discarded.)
Ex.
Overflow
T#24d20h31m23s647ms
(7FFFFFFF
)
(00000002
H
Since the highest-order bit is 1, the result value is negative.
LCPU
ST
ENO:=
MUL_TIME_E
(EN, s1, s2, d);
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Input
Input
Execution result (TRUE: Normal, FALSE: Error)
Output
s2
2
T#2d5h7m28s110m
Time type
2
T#-2ms
)
(FFFFFFFE
H
Data type
Bit
Time
ANY_NUM
Bit
Time
d
)
H
5 APPLICATION FUNCTIONS
5.8 Functions of Time Data Type
5
169

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents