Double Precision Integer Type (Dint) Character String Type; (String) Conversion - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 IEC FUNCTIONS
6.1.7 Double precision integer type (DINT) character string type (STRING) conversion DINT_TO_STR
Double precision integer type (DINT) data is converted into character string type (STRING) data.
Function definition
Function definition
6 - 9
STRING(12) DINT_TO_STR ( DINT S1 );
Argument
Argument Name
IN/OUT
S1
IN
Return value
Return Value
STRING (12)
Conversion result (character string data)
Remarks: This function cannot be used with the Basic model QCPU.
Example of use
Argument Type
DINT
s_ary1 :=
DINT_TO_STR(K65535);
BOOL DINT_TO_STR _E( BOOL EN, DINT S1, STRING(12) D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1
IN
D1
OUT
Return value
Return Value
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 ) ;
Data to be converted (BIN 32-bit data)
ST Program
Conversion Result
LD
DBINDA K65535
Execution condition (Function is executed only when the result is TRUE)
Data to be converted (BIN 32-bit data)
Conversion result (character string data)
DINT_TO_STR_E
Description
Description
Used Instruction
SM400
LD,DBINDA
s_ary1
Description
Description
*)
*)
*)
6 - 9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents