Integer Type (Int) 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.11 Integer type (INT)
Integer type (INT) data is converted into character string type (STRING) data.
Function definition
Function definition
6 - 13
character string type (STRING) conversion
STRING(8) INT_TO_STR ( INT S1 );
Argument
Argument Name
IN/OUT
S1
IN
Return value
Return Value
STRING (8)
Conversion result (character string data)
Remarks: This function cannot be used with the Basic model QCPU.
Example of use
Argument Type
INT
w_Str1 := INT_TO_STR( D0 ); LD
BOOL INT_TO_STR _E( BOOL EN, INT S1, STRING(8) 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 integer type (INT) data in iData is
(*
converted into character string type data, and the result is stored into Result.
M0 := INT_TO_STR_E( X0, iData, Result ) ;
Data to be converted (BIN 16-bit data)
ST Program
Conversion Result
BINDA
Execution condition (Function is executed only when the result is TRUE)
Data to be converted (BIN 16-bit data)
Conversion result (character string data)
INT_TO_STR
INT_TO_STR_E
Description
Description
Used Instruction
SM400
LD,BINDA
D0 w_Str1
Description
Description
*)
*)
6 - 13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents