Converting Word (Unsigned)/16-Bit String, Double Word (Unsigned)/32-Bit String 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 (unsigned)/16-bit string, double word
(unsigned)/32-bit string type to time type
WORD_TO_TIME(_E), DWORD_TO_TIME(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
WORD_TO_TIME_E
EN
ENO
s
d
The following function(s) can go in the dotted squares.
WORD_TO_TIME, WORD_TO_TIME_E, DWORD_TO_TIME, DWORD_TO_TIME_E
■Argument
Input/output
Name
argument
Input argument
EN
s(_WORD, _DWORD)
Output argument
ENO
d
Processing details
■Operation processing
• WORD_TO_TIME, WORD_TO_TIME_E
Converts word (unsigned)/16-bit string type data input to (s) into time type data, and outputs the operation result from (d).
s
0
H
1234
H
Word (unsigned)/16-bit string type
• DWORD_TO_TIME, DWORD_TO_TIME_E
Converts double word (unsigned)/32-bit string type data input to (s) into time type data, and outputs the operation result from
(d).
s
0
H
1234567
H
Double word (unsigned)/32-bit string type
LCPU
ST
ENO:=
(EN, s, d);
WORD_TO_TIME_E
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Input
Execution result (TRUE: Normal, FALSE: Error)
Output
d
T#0ms
T#1s234ms
Time type
d
T#0ms
T#20m34s567ms
Time type
Data type
Bit
Word (unsigned)/16-bit string,
Double word (unsigned)/32-bit string
Bit
Time
5 APPLICATION FUNCTIONS
5.1 Type Conversion Functions
5
77

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents