Division - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Division

DIV_TIME(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
DIV_TIME_E
EN
ENO
s1
d
s2
The following function(s) can go in the dotted squares.
DIV_TIME, DIV_TIME_E
■Argument
Input/output
Name
argument
Input argument
EN
s1(_IN1)
s2(_IN2)
Output argument
ENO
d
Processing details
■Operation processing
• Performs division ((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 quotient of the operation result from (d) in time type.
Remainder is rounded down. Remainder is rounded down.
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.
(The value to be input to (s2) must be other than 0.)
• 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)
LCPU
ST
ENO:=
DIV_TIME_E
(EN, s1, s2, d);
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Input
Input
Execution result (TRUE: Normal, FALSE: Error)
Output
s2
d
(Quotient)
2
T#13h16m63s27ms
Time type
Data type
Bit
Time
:ANY_NUM
Bit
Time
(Remainder)
T#1ms
Discarded
5 APPLICATION FUNCTIONS
5.8 Functions of Time Data Type
5
171

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents