6 - 11 6 - 11
6 IEC FUNCTIONS
6.1.9 Integer type (INT) double precision integer type (DINT) conversion INT_TO_DINT
INT_TO_DINT_E
Integer type (INT) data is converted into double precision integer type (DINT) data.
Function definition
DINT INT_TO_DINT ( INT S1 );
Argument
Argument Name
IN/OUT
Description
S1
IN
Data to be converted (BIN 16-bit data)
Return value
Return Value
Description
DINT
Conversion result (BIN 32-bit data)
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
INT
di_data1 := INT_TO_DINT(
D500 );
LD SM400
DBL D500
di_data1
LD,DBL
Function definition
BOOL INT_TO_DINT _E( BOOL EN, INT S1, DINT 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 16-bit data)
D1
OUT
Conversion result (BIN 32-bit data)
Return value
Return Value
Description
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 ) ;
*)
*)
*)
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......