TcSetObjPara

TcSetObjPara 1:

The TcSetObjPara method sets an object parameter identified by means of its PTCID.

TcSetObjPara 2: Return value

VAR_OUTPUT
    TcSetObjPara : HRESULT;
END_VAR

Name

Type

Description

TcSetObjPara

HRESULT

Gives information about success of the parameter change.

 

TcSetObjPara 3: Inputs

VAR_INPUT
    pid   : PTCID;
    nData : UDINT;
    pData : PVOID;
    pgp   : PTCGP;
END_VAR

Name

Type

Description

pid

PTCID

Parameter-ID of the object parameter

nData

UDINT

Maximum length of the data

pData

PVOID

Pointer to the data

pgp

PTCGPkl

Reserved for future expansion, pass NULL.

Requirements

TwinCAT Version

Hardware

Libraries to be integrated

TwinCAT 3.1, Build 4020

x86, x64, ARM

Tc3_Module