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

SetChannelValue 1: Inputs

Name

Type

Description

nChannel

UDINT

Channel index

1: Supply voltage
(PDO-Input: 0x1A01 -> Select CoE 0xF900:05 "Supply voltage" in CoE 0x8002:11)

2: Supply current
(PDO-Input: 0x1A01 -> Select CoE 0xF900:06 "Supply current" in CoE 0x8002:19)

Input

ANY

Input value of any data type.

SetChannelValue 2: Return value

Name

Type

Description

SetChannelValue

BOOL

Returns TRUE if successful.