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

SetChannelValue 1: Inputs

Name

Type

Description

nChannel

UDINT

Channel index

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

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

3: Electrical power ChA
(Enable PDO-Input 0x1A52 -> Add CoE 0x3642:12 "Electrical power" to PDO content)

4: Mechanical power ChB
(Enable PDO-Input 0x1A52 -> Add CoE 0x3642:13 "Mechanical power" to PDO content)

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

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

7: Motor brake current ChA
(Enable PDO-Input 0x1A40 -> Add CoE 0x3401: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.