Operation error
These functions consist of the following common instructions.
TIME_TO_STR(_E): DBINDA
• 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
4101
The device specified for (d) exceeds the corresponding device range.
Program example
■TIME_TO_STR(_E)
The program which converts time type data input to (s) into string type data, and outputs the operation result from (d).
• Function without EN/ENO (TIME_TO_STR)
[Structured ladder/FBD]
[ST]
g_string1 := TIME_TO_STR(g_time1);
• Function with EN/ENO (TIME_TO_STR_E)
[Structured ladder/FBD]
[ST]
g_bool3 := TIME_TO_STR_E(g_bool1, g_time1, g_string1);
5 APPLICATION FUNCTIONS
106
5.1 Type Conversion Functions
Q00J/
QnH
QnPH
Q00/
Q01
QnPRH
QnU
LCPU