Mitsubishi Electric MELSEC-Q/L Programming Manual page 106

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

Advertisement

Operation error
• No operation error occurs.
Program example
■TIME_TO_INT(_E)
The program which converts time type data input to (s) into word (signed) type data, and outputs the operation result from (d).
• Function without EN/ENO (TIME _TO_INT)
[Structured ladder/FBD]
[ST]
g_int1 := TIME_TO_INT(g_time1);
• Function with EN/ENO (TIME_TO_INT_E)
[Structured ladder/FBD]
[ST]
g_bool3 := TIME_TO_INT_E(g_bool1, g_time1, g_int1);
■TIME_TO_DINT(_E)
The program which converts time type data input to (s) into double word (signed) type data, and outputs the operation result
from (d).
• Function without EN/ENO (TIME _TO_DINT)
[Structured ladder/FBD]
[ST]
g_dint1 := TIME_TO_DINT(g_time1);
5 APPLICATION FUNCTIONS
104
5.1 Type Conversion Functions

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents