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..4);
    input : ANY;
END_VAR

SetChannelValue 1: Inputs

Name

Type

Description

nChannel

UDINT

Channel index

1: Electrical power
(Enable PDO-Input 0x1A32 -> Add CoE 0x3242:12 "Electrical power" to PDO content)

2: Mechanical power
(Enable PDO-Input 0x1A32 -> Add CoE 0x3242:13 "Mechanical power" to PDO content)

3: DC link voltage
(Enable PDO-Input 0x1A00 -> Add CoE 0x6079 "DC link cirquit voltage" to PDO content)

4: Motor brake current
(Enable PDO-Input 0x1A20 -> Add CoE 0x3001:01 "Actual motor brake current" to PDO content)

Input

ANY

Input value of any data type.

SetChannelValue 2: Return value

Name

Type

Description

SetChannelValue

BOOL

Returns TRUE if successful.