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.
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