Configure

Configure the algorithm. Channel specific parameter are set using the method ConfigueChannel().

Syntax

Definition:

METHOD Configure : BOOL
VAR_INPUT
    fSampleRate : LREAL;
    tInterval : LTIME;
    nRatedCurrent : UDINT;
    nTorqueConstant : UDINT;
    nMotorCurrentType : UDINT;
END_VAR

Configure 1: Inputs

Name

Type

Description

fSampleRate

LREAL

Sample rate of the system to be analyzed in Hz.

tInterval

LTIME

Interval time of averaging. Used to calculate the electrical energy.

nRatedCurrent 

UDINT

Nominal current in mA
(CoE: 0x8011:12)

nTorqueConstant 

UDINT

Torque constant in mNm / A
(CoE: 0x8011:16)

nMotorCurrentType 

UDINT

Type of specification of the nominal current
(CoE: 0x8010:54)
0: Nominal current as peak value
1: Nominal current as RMS

Configure 2: Return value

Name

Type

Description

Configure

BOOL

Returns TRUE if successful.