Converting Time Type To Word (Unsigned)/16-Bit String, Double Word (Unsigned)/32-Bit String Type - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Converting time type to word (unsigned)/16-bit string, double
word (unsigned)/32-bit string type
TIME_TO_WORD(_E), TIME_TO_DWORD(_E)
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
TIME_TO_WORD_E
EN
ENO
s
d
The following function(s) can go in the dotted squares.
TIME_TO_WORD, TIME_TO_WORD_E, TIME_TO_DWORD, TIME_TO_DWORD_E
■Argument
Input/output
Name
argument
Input argument
EN
s(_TIME)
Output argument
ENO
d
Processing details
■Operation processing
• TIME_TO_WORD, TIME_TO_WORD_E
Converts time type data input to (s) into word (unsigned)/16-bit string type data, and outputs the operation result from (d).
s
T#1s234ms
Time type
• When converting to word (unsigned)/16-bit string type data, high-order 16-bit (1 word) data is discarded.
• TIME_TO_DWORD, TIME_TO_DWORD_E
Converts time type data input to (s) into double word (unsigned)/32-bit string type data, and outputs the operation result from
(d).
s
T#20m34s567ms
Time type
LCPU
ST
ENO:=
(EN, s, d);
TIME_TO_WORD_E
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Input
Execution result (TRUE: Normal, FALSE: Error)
Output
d
1234
H
Word (unsigned)/16-bit string type
d
1234567
H
Double word (unsigned)/32-bit string type
Data type
Bit
Time
Bit
Word (unsigned)/16-bit string, double word
(unsigned)/32-bit string
5 APPLICATION FUNCTIONS
5.1 Type Conversion Functions
5
107

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents