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

SetChannelValue 1: Inputs

Name

Type

Description

nChannel

UDINT

Channel index

1: DC bus voltage
(CoE: S-0-0016 -> Add CoE S-0-0380 "DC bus voltage" to PDO content)

2: DC bus current
(CoE: S-0-0016 -> Add CoE S-0-0381 "DC bus current" to PDO content)

3: Velocity feedback value
(CoE: S-0-0016 -> Add CoE S-0-0040 "Velocity feedback 1 value" to PDO content)

4: Torque feedback value
(CoE: S-0-0016 -> Add CoE S-0-0084 "Torque/force feedback value" to PDO content)

5: Internal braking resistor power
(CoE: S-0-0016 -> Add CoE P-0-0209 "Internal braking resistor actual averaged power" to PDO content)

6: External braking resistor power
(CoE: S-0-0016 -> Add CoE P-0-0210 "External braking resistor actual averaged power" to PDO content)

Input

ANY

Input value of any data type.

SetChannelValue 2: Return value

Name

Type

Description

SetChannelValue

BOOL

Returns TRUE if successful.