UA_MethodCall error for OPC UA connection with PPT50 panel, error code is '2147745792'

Hello Sir,

I have one program move from AS4.12 to AS6.5. I use the system library ‘AsOpcUac‘ and it is a little different with old version. I checked all steps for UA connection and only UA_MethodCall have error status and the OPC UA call not succussed (error code is ‘2147745792’).

I also double check the parameters ‘NamespceIndex‘ and ‘Identifier‘, that’s correct in my code (see my screenshot from UaExpert). Only the ‘IdentifierType‘ (UAIT_Numeric, UaExpert is Numeric, AS4.12 use same name for this parameter, but AS6.5 haven’t is variable. So I check with 6.5 help to change this to UAIT_Numeric.)is different with UaExpert.

Can you help to analysis this error?

AS6Alarm.zip (9.0 MB)

Your InputArgument.Value should be a string , which points to a variable of the correct type.


So instead of ‘2600’->‘::Frequency’ (Global plc variable) or ‘::task:Frequency’ local variable.
So instead of ‘50’->‘::Duration’ (Global plc variable) or ‘::task:Duration’ local variable.

VAR
Duration : UDINT := 50;|
Frequency : UDINT := 2600;|
END_VAR

If you are trying to access the panel via OPC UA this project might be interesting for you

br-automation-community/mappPanel: This is a sample for communication from a B&R PLC to a T-Panel over OPC UA.

Hi @Juan, what is the status of your topic? Can you update us or provide additional info?

Hi, Thanks for your attention. It is already fixed. I make a FB to link OPC data to UDINT variable and it is running well.