Documentation

Helper: Multi Out Bool

Function name

HELPER_MULTIOUTBOOL

ST call

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

Library

LIB\CORE

Version

V1.1

Description

The block converts a Bool array to 16 Bool values.

Inputs

Input Type Description
INARRAY ARRAY[0..15] OF BOOL Input bool array

Outputs

Output Type Description
=> ARRAY[0..15] OF BOOL Output bool array
OUT1..OUT16 BOOL Output values

Application example


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