5.1 Type Conversion Functions
5.1.26
Word (unsigned)/16-bit string, double word (unsigned)/32-bit string type
→
time type conversion
5-79
5
APPLICATION
FUNCTIONS
WORD_TO_TIME(_E),
DWORD_TO_TIME(_E)
WORD_TO_TIME(_E), DWORD_TO_TIME(_E)
5.1.26 Word (unsigned)/16-bit string, double word (unsigned)/32-bit
string type → time type conversion
WORD_TO_TIME(_E), DWORD_TO_TIME(_E)
Function
Operation processing
(1) WORD_TO_TIME, WORD_TO_TIME_E
Converts word (unsigned)/16-bit string type data input to into time type data, and outputs
the operation result from .
WORD_TO_TIME(_E)
DWORD_TO_TIME(_E)
_E: With EN/ENO
indicates any of the following
functions.
WORD_TO_TIME
WORD_TO_ TIME _E
DWORD_TO_TIME
DWORD_TO_ TIME _E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s:
Input :Word (unsigned)/16-bit string, double word
(unsigned)/32-bit string
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error) :Bit
d:
Output :Time
Universal
UD
High
Performance
EN ENO
ds
WORD_TO_TIME_E
(EN, s, d);ENO:=
Structured ladder
ST
WORD_TO_TIME_E
s
d
Word (unsigned)/16-bit string type
1234
0
Time
type
1s234ms
0ms