EasyManua.ls Logo

Mitsubishi MELSEC iQ-F FX5 series

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
Loading...
836
23 TIME DATA FUNCTIONS
23.4 Division
23.4 Division
DIV_TIME(_E)
These functions output the quotient of input values (TIME data) ((s1) (s2)).
Setting data
Descriptions, types, and data types
Processing details
Operation processing
These functions divide the TIME type data input to (s1) and (s2) ((s1) (s2)), and output the operation result from (d) as
TIME type data. The remainder is ignored.
Ex.
When a value input to (s1) and (s2) is T#1d2h33m44s55ms (1 day 2 hours 33 minutes 44 seconds 55 milliseconds) and 2
A value input to (s1) is the TIME type data value.
A value input to (s2) is the INT, DINT, or REAL type. (However, input other than 0 to (s2).)
Ladder diagram Structured text
[Without EN/ENO] [With EN/ENO] [Without EN/ENO]
d:=DIV_TIME(s1,s2);
[With EN/ENO]
d:=DIV_TIME_E(EN,ENO,s1,s2);
Argument Description Type Data type
EN Execution condition (TRUE: Execution, FALSE: Stop) Input variable BOOL
s1 Input Input variable TIME
s2 Input Input variable ANY_NUM
ENO Output status (TRUE: Normal, FALSE: Abnormal) Output variable BOOL
d Output Output variable TIME
s1 d
s2
EN ENO
ds1
s2
TIME
T#1d2h33m44s55ms
TIME
T#13h16m52s27ms
(d)
INT
2
(s2)(s1)
(Quotient) (Remainder)
T#1ms
Ignored

Table of Contents

Related product manuals