Division - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

23.4

Division

DIV_TIME(_E)
These functions output the quotient of input values (TIME data) ((s1)  (s2)).
Ladder diagram
[Without EN/ENO]
s1
d
s2
Setting data
■Descriptions, types, and data types
Argument
EN
s1
s2
ENO
d
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
(s1)
T#1d2h33m44s55ms
TIME
• 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).)
23 TIME DATA FUNCTIONS
836
23.4 Division
[With EN/ENO]
EN
ENO
s1
d
s2
Description
Execution condition (TRUE: Execution, FALSE: Stop)
Input
Input
Output status (TRUE: Normal, FALSE: Abnormal)
Output
(s2)
2
INT
Structured text
[Without EN/ENO]
d:=DIV_TIME(s1,s2);
[With EN/ENO]
d:=DIV_TIME_E(EN,ENO,s1,s2);
(Quotient)
(Remainder)
(d)
T#13h16m52s27ms
T#1ms
Ignored
TIME
Type
Data type
Input variable
BOOL
Input variable
TIME
Input variable
ANY_NUM
Output variable
BOOL
Output variable
TIME

Advertisement

Table of Contents
loading

Table of Contents