Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 65

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

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
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.
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 string data storage destination (device specified in
exceeds the range of the corresponding device
(Error code: K6706)
Program example
In this program, double word [signed] data stored in a device specified in
and the data obtained by conversion is output to a device specified in
1) Function without EN/ENO(DINT_TO_STR)
[Structured ladder]
g_dint1=-12345678
[ST]
g_string1 := DINT_TO_STR(g_dint1);
2) Function with EN/ENO(DINT_TO_STR_E)
[Structured ladder]
g_bool1
g_dint1
[ST]
g_bool3 := DINT_TO_STR_E(g_bool1, g_dint1, g_string1);
DINT_TO_STR
g_string1='-12345678'
_DINT
DINT_TO_STR_E
g_bool3
EN
ENO
_DINT
g_string1
5 Applied Functions
5.1 Type Conversion Functions
is converted into string data,
s
.
d
1
2
)
d
3
4
5
6
A
63

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents