Str_To_Time(_E) - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)

5.1.40 STR_TO_TIME(_E)

Outline
This function converts string data into time data, and outputs the data obtained by conversion.
1. Format
Function name
STR_TO_TIME
STR_TO_TIME_E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
_STRING (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function converts string data stored in a device specified in
obtained by conversion to a device specified in
'0'
'1234567'
String data
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling string data and 32-bit data in structured programs, you cannot specify 16-bit devices
directly, different from simple projects. Use labels when handling string data and 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
116
FX
3U(C)
Expression in each language
Structured ladder
STR_TO_TIME
Label 1
_STRING
X000
STR_TO_TIME_E
EN
ENO
Label 1
_STRING
Execution condition
Conversion source string data
)
s
Execution status
Time data after conversion
(
)
d
0ms
20m34s567ms
Time data
FX
FX
FX
3G
2N(C)
1N(C)
STR_TO_TIME(_STRING);
Example:
Label 2:=
*1
Label 2
STR_TO_TIME(Label 1);
STR_TO_TIME_E(EN,_STRING,
Output label);
Example:
STR_TO_TIME_E(X000, Label 1,
*1
Label 2
Label 2);
Description
s
.
d
5 Applied Functions
5.1 Type Conversion Functions
FX
FX
/FX
FX
1S
U
2C
0N
ST
Data type
Bit
String
Bit
Time
into time data, and outputs the data
FX
0(S)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents