6 - 48 6 - 48
6 IEC FUNCTIONS
Function definition
BOOL SEL_E( BOOL EN, BOOL S1, ANY S2, ANY S3, ANY D1 );
Argument
Argument Name
IN/OUT
Description
EN
IN
Execution condition (Function is executed only when the result is TRUE)
S1 IN
Selection
condition
S2
IN
Data to be selected when S1 is FALSE
S3
IN
Data to be selected when S1 is TRUE
D1
OUT
Selection result
When S1 is FALSE ....... Return value = S2
When S1 is TRUE ......... Return value = S3
Return value
Return Value
Description
BOOL Execution
condition
Example of use
(*
(*
(*
When execution condition X0 turns ON, the data stored in iData1 is stored
into Result if the bit data in bData is FALSE, or the data stored in iData2 is
stored into Result if the bit data in bData is TRUE.
M0 := SEL_E( X0, bData, iData1, iData2, Result ) ;
*)
*)
*)
For the usable data type, refer to "3.2.2 About ANY type".
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......