LinkZone()

LinkZone() 1:

Assigns a single zone to a group.

Syntax:

METHOD LinkZone : HRESULT
VAR_INPUT
    nLinearIdx:         INT;    
    nGroupIdx:          INT;    
    nGroupMemberIdx:    INT;    
    bOverwrite:         BOOL;
END_VAR

LinkZone() 2: Inputs

Name

Type

Description

nLinearIdx

INT

Index of the zone from the linear TF8540 library arrangement that is to be assigned

nGroupIdx

INT

Index of the group to which the zone should be assigned

nGroupMemberIdx

INT

Index in the target group

bOverwrite

BOOL

Zone is assigned even if the index is already occupied in the target group.

LinkZone() 3: Outputs

Name

Type

Description

LinkZone

HRESULT

Return value with feedback on the success of the execution

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.35

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.5.0)