SetSections

Set sections after the FB has been configured. Each section is defined with lower border (greater than or equal to) and upper border (less than). The following sections lower border is set by the previous upper border. The first lower border is set separately.

Syntax

Definition:

METHOD SetSections : BOOL
VAR_INPUT
    fFirstLowerBorder : LREAL;
    pSectionConfigArray : POINTER TO LREAL;
    nSectionConfigArraySize : UDINT;
END_VAR

SetSections 1: Inputs

Name

Type

Description

fFirstLowerBorder

LREAL

Configuration of the first lower border.

pSectionConfigArray

POINTER TO LREAL

Pointer to array of upper section limits: Dim: nNumSections

nSectionConfigArraySize

UDINT

Size of the section configuration array. Dim.: nNumSections

SetSections 2: Return value

Name

Type

Description

SetSections

BOOL

Returns TRUE if successful