Helper: Multi Out Bool

HELPER_MULTIOUTBOOL

Version V1.0
PROGRAM HELPER 
 VAR 
 BOOL1, BOOL2: BOOL;
 ARRAYBOOL: ARRAY[0..15] OF BOOL;
 END_VAR
 
 LIB.CORE.V1_0.HELPER_MULTIOUTBOOL(INARRAY := ARRAYBOOL, OUT0 => BOOL1, OUT1 => BOOL2); 
END_PROGRAM
 
Version V1.1
PROGRAM HELPER 
 VAR 
 BOOL1, BOOL2: BOOL;
 ARRAYBOOL: ARRAY[0..15] OF BOOL;
 END_VAR
 
 LIB.CORE.V1_1.HELPER_MULTIOUTBOOL(INARRAY := ARRAYBOOL, OUT1 => BOOL1, OUT2 => BOOL2); 
END_PROGRAM

LIB\CORE

V1.1

The block converts a Bool array to 16 Bool values.

Input Type Description
INARRAYARRAY[0..15] OF BOOLInput bool array
Output Type Description
ARRAY[0..15] OF BOOLOutput bool array
OUT1..OUT16BOOL Output values


The block is used for type conversion, where individual boolean values are required rather than a vector of bool values.

  • © Energocentrum Plus, s.r.o. 2017 - 2024