Mitsubishi Electric MELSEC-Q/L Programming Manual page 94

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

Advertisement

Operation error
This function consists of the following instruction.
STR_TO_TIME(_E): DDABIN
• In any of the following cases, an operation error occurs, the error flag (SM0) is turned ON, and the corresponding error
code is stored to SD0.
Error
Description
code
4100
The ASCII code for each number specified for (s) is outside the range of 30H
to 39H, 20H, and 00H.
When ASCII data specified for (s) is other than -2147483648 to 4147483647.
Program example
■STR_TO_TIME(_E)
The program which converts string type data input to (s) into time type data, and outputs the operation result from (d).
• Function without EN/ENO (STR_TO_TIME)
[Structured ladder/FBD]
[ST]
g_string1 := "01234567";
g_time1 := STR_TO_TIME(g_string1);
• Function with EN/ENO (STR_TO_TIME_E)
[Structured ladder/FBD]
[ST]
g_string1 := "01234567";
g_bool3 := STR_TO_TIME_E(g_bool1, g_string1, g_time1);
5 APPLICATION FUNCTIONS
92
5.1 Type Conversion Functions
Q00J/
QnH
QnPH
Q00/
Q01
QnPRH
QnU
LCPU

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents