Converting Bit Type To Time Type - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Converting bit type to time type

BOOL_TO_TIME(_E)
High
Basic
Process
performance
Structured ladder/FBD
BOOL_TO_TIME_E
EN
ENO
s
The following function(s) can go in the dotted squares.
BOOL_TO_TIME, BOOL_TO_TIME_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
Converts bit type data input to (s) into time type data, and outputs the operation result from (d).
When the input value is FALSE, 0 is output in time type data.
When the input value is TRUE, 1 is output in time type data.
s
FALSE
TRUE
Bit 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
30
5.1 Type Conversion Functions
Redundant Universal
LCPU
ST
ENO:=
BOOL_TO_TIME_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s(_BOOL)
Input
ENO
Execution result (TRUE: Normal execution, FALSE:
Error or stop)
d
Output
ENO
TRUE
FALSE
(EN, s, d);
d
0
T#1ms
Time type
*1
Data type
Bit
Bit
Bit
Time
(d)
Operation output value
Undefined value

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents