Mitsubishi Electric MELSEC Q Series Programming Manual page 198

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

Advertisement

6 IEC FUNCTIONS
6.1.9 Integer type (INT)
Integer type (INT) data is converted into double precision integer type (DINT) data.
Function definition
Function definition
6 - 11
double precision integer type (DINT) conversion
DINT INT_TO_DINT ( INT S1 );
Argument
Argument Name
IN/OUT
S1
IN
Return value
Return Value
DINT
Conversion result (BIN 32-bit data)
Example of use
Argument Type
INT
di_data1 := INT_TO_DINT(
D500 );
BOOL INT_TO_DINT _E( BOOL EN, INT S1, DINT 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 double precision integer type (DINT) data, and the result is
(*
stored into Result.
M0 := INT_TO_DINT_E( X0, iData, Result ) ;
Data to be converted (BIN 16-bit data)
ST Program
Conversion Result
LD
DBL
Execution condition (Function is executed only when the result is TRUE)
Data to be converted (BIN 16-bit data)
Conversion result (BIN 32-bit data)
INT_TO_DINT
INT_TO_DINT_E
Description
Description
Used Instruction
SM400
LD,DBL
D500
di_data1
Description
Description
*)
*)
*)
6 - 11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents