SetChannelValue

Set channel specific input value. The input value is not processed until the Call() method has been invoked.

Syntax

Definition:

METHOD SetChannelValue : BOOL
VAR_INPUT
    nChannel : UDINT (1..3);
    input : ANY;
END_VAR

SetChannelValue 1: Inputs

Name

Type

Description

nChannel

UDINT

Channel index

1: Actual velocity
(Enable PDO-Input 0x1A02)

2: Actual torque
(Enable PDO-Input 0x1A03)

3: DC link voltage
(Enable PDO-Input 0x1A04 -> Select "DC link voltage (mV) in CoE 0x8010:39")

Input

ANY

Input value of any data type.

SetChannelValue 2: Return value

Name

Type

Description

SetChannelValue

BOOL

Returns TRUE if successful.