UA_MethodCall

Overview

Type:

Function block

Available as of:

V2.2.4.0

Functional Description

The function block UA_MethodCall is used to execute a method call with the possibility to send and to receive a set of arguments. The implementation of the method is done on the OPC UA server.

NOTE: To help avoid an inconsistent response, do not modify parameters while the function block is executing (Busy = TRUE).
 WARNING
UNINTENDED EQUIPMENT OPERATION
Do not modify input parameters while the Busy output is equal to TRUE.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: Arguments with data type ET_VarType.UATypeLocalizedText are exclusive to Modicon M262 Logic/Motion Controllers with firmware version V5.2.8.27 or greater.

Interface

Input

Data type

Description

Execute

BOOL

Upon a rising edge, the function block is being executed.

Also refer to Behavior of Function Blocks with the Input Execute.

Timeout

TIME

Maximum time to respond.

Value range: 2 s...60 s

If the value is out of range the upper or lower limit is applied.

Default value: GPL.Timeout

ConnectionHdl

DWORD

Connection handle.

MethodHdl

DWORD

Method handle returned by the function block UA_MethodGetHandleList.

Inputs / Outputs

Data type

Description

InputArguments

ST_Arguments

Structure containing the arguments to send to the OPC UA server.

OutputArguments

ST_Arguments

Structure containing the arguments received from the OPC UA server.

Output

Data type

Description

Done

BOOL

Indicates that the execution of the function block was completed successfully.

Busy

BOOL

Indicates that the execution of the function block is in progress.

Error

BOOL

Indicates that an error was detected during execution.

NOTE: Even if Error indicates FALSE, verify the corresponding ErrorIDs before processing the namespace indexes.

ErrorID

ET_Result

Provides additional diagnostic information as a numeric value.

For each specified namespace URI, a separate result is provided.