6 - 9 6 - 9
6 IEC FUNCTIONS
6.1.7 Double precision integer type (DINT) character string type (STRING) conversion DINT_TO_STR
DINT_TO_STR_E
Double precision integer type (DINT) data is converted into character string type (STRING) data.
Function definition
STRING(12) DINT_TO_STR ( DINT S1 );
Argument
Argument Name
IN/OUT
Description
S1
IN
Data to be converted (BIN 32-bit data)
Return value
Return Value
Description
STRING (12)
Conversion result (character string data)
Remarks: This function cannot be used with the Basic model QCPU.
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
DINT s_ary1
:=
DINT_TO_STR(K65535);
LD SM400
DBINDA K65535
s_ary1
LD,DBINDA
Function definition
BOOL DINT_TO_STR _E( BOOL EN, DINT S1, STRING(12) D1 );
Argument
Argument Name
IN/OUT
Description
EN
IN
Execution condition (Function is executed only when the result is TRUE)
S1
IN
Data to be converted (BIN 32-bit data)
D1
OUT
Conversion result (character string data)
Return value
Return Value
Description
BOOL Execution
condition
Example of use
(*
(*
(*
When execution condition X0 turns ON, the double precision integer type
(DINT) data in dData is converted into character string type data, and the
result is stored into Result.
M0 := DINT_TO_STR_E( X0, dData, Result ) ;
*)
*)
*)
Summary of Contents for MELSEC L series
Page 1: ...Programming Manual Structured Text ...
Page 2: ......
Page 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Page 297: ......