Converting Word (Signed), Double Word (Signed) Type To Time Type - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Converting word (signed), double word (signed) type to time type

INT_TO_TIME(_E), DINT_TO_TIME(_E)
High
Basic
Process
performance
Structured ladder/FBD
INT_TO_TIME_E
EN
ENO
s
The following function(s) can go in the dotted squares.
INT_TO_TIME, INT_TO_TIME_E, DINT_TO_TIME, DINT_TO_TIME_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
Converts word (signed) /double word (signed) type data input to (s) into time type data, and outputs the operation result from
(d).
s
1234
Word (signed) type
■Operation result
• Function without EN/ENO
An operation is executed and the operation value is output from (d).
• Function with EN/ENO
The following table shows the executing conditions and operation results.
EN
TRUE (Operation execution)
FALSE (Operation stop)
*1 When FALSE is output from ENO, the data output from (d) is undefined. In this case, create a program so that the data output from (d) is
not used.
5 APPLICATION FUNCTIONS
52
5.1 Type Conversion Functions
Redundant Universal
LCPU
ST
ENO:=
INT_TO_TIME_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s(_INT, _DINT)
Input
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
ENO
TRUE
FALSE
(EN, s, d);
d
T#1s234ms
Time type
*1
Data type
Bit
Word (signed), double word (signed)
Bit
Time
(d)
Operation output value
Undefined value

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents