Time_To_Str(_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.46 TIME_TO_STR(_E)

Outline
This function converts time data into string data, and outputs the data obtained by conversion.
1. Format
Function name
TIME_TO_STR
TIME_TO_STR_E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
_TIME (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function converts time data stored in a device specified in
obtained by conversion to a device specified in
20m34s567ms
Time data
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling 32-bit data in structured programs, you cannot specify 16-bit devices directly, different
from simple projects. Use labels when handling 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
Error
An operation error occurs in the following case. The error flag M8067 turns ON, and D8067 stores the error
code.
1) When the number of points occupied by the device specified in
corresponding device.
128
FX
3U(C)
Expression in each language
Structured ladder
TIME_TO_STR
Label 1
_TIME
X000
TIME_TO_STR_E
EN
Label 1
_TIME
Execution condition
Conversion source time data
)
s
Execution status
String data after conversion
(
)
d
"1234567"
String data
FX
FX
FX
3G
2N(C)
1N(C)
TIME_TO_STR(_TIME);
Example:
Label 2:=
*1
Label 2
TIME_TO_STR(Label 1);
TIME_TO_STR_E(EN,_TIME,
Output label);
Example:
ENO
TIME_TO_STR_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
Time
Bit
String
into string data, and outputs the data
exceeds the range of the
d
FX
0(S)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents