OPC-UA Client FB problem during call UA_ReadList
Hello team, I am trying to use PLCnext OPC-UA FBs to connect to my simple UA-Server, during the testing, I found UA_ReadList FB return error id:0xB0000001, see 1.png.
I can not search this error id description in the OPC-UA help files. Please check 2.png.
It is strange, the UA Client inside PLCnext already connected my UA server. My UA server including following information:
1. Namespace: There are 2 namespace inside my UA server. 0 - http://opcfoundation.org/UA, 1 - http://www.phoenixcontact.com.cn/iiot/',
2. Variable: there several variable node under namespace 1, I take variable name: V001, type: Int16 as my target node to read.
The following parameter I already checked:
1. NodeInfo: See the 3.png, the identifier and its type, also the namespance index has been set correctly.
2. NodeAddrInfo: See 4.png, it should be OK.
It is the same error 0xB0000001 if I use the sample client demo project:OPCUA_Client_V16_5.pcwex.
What does 0xB0000001 mean in UA_ReadList? This is very strange behavior, btw: I can use UaExpert to connect to my UA server very stablely.
Best Regards,
Henry
Comments
Hello Henry,
I'll try to reproduce your error here and get back to you as soon as possible.
- Martin.
Hi Martin,
I am using opc-ua server implementation from https://open62541.org/ community.
I verify this behavior by using the server example on x86+Linux platform, and PLCnext UA function blocks as Client. I can see PLCnext connected successfully with my OPC-UA Server on x86+Linux, but read/write will cause error as I shown before.
I guess there may some little problem on the parameter of PLCnext UA function blocks. But I tried several times, but failed to resolve it.
An interesting issue is that if I use same project PLCnext UA function blocks to connect to unify-automation's demo UA server, there is no problem about read/write list, everything works fine. So I am confused by this behavior and stop to dig inside.
In order to not blocking my demo, I use open62541 stack wrote several simple UA Client program on PLCnext, and connect to my OPC-UA Server on x86+Linux, everything works fine. All demos do not use any security feature.
Just some addtional information for you. If you want to try it, open62541 is free to download on github.
Thanks a lot!
Best Regards,
Henry
Thanks Henry, I'm trying to get information on that error code, but so far without any luck ... but I'll keep trying.
I'll let you know as soon as I have any update.
- Martin.
Hello Henry,
Some small progress to report:
Apparently there is a typographical error in the list of Error Codes (2.png in your original post). The Error Code shown as "0x00000001" should actually be "0xB0000001".
So this tells us that the error is "OPC UA: Internal error code", but that doesn't get us much closer to a soluton ...
We're continuing to investigate here and I'll let you know when I have more information.
- Martin.
Hello Henry,
I've finally managed to reliably reproduce the error you're seeing.
I will now ask a developer to look at this, and I'll let you know the result.
==============================================================
UPDATE:
This is a bug in the PLCnext OPC-UA FB library, which will be fixed in the next release. I don't have any information on a workaround, but this may be possible - please let me know if this is necessary.
==============================================================
- Martin.
Where can i find this OPC-UA Library
Best regards
Hello,
I am afraid that this library is no longer available, sorry about that.
Martin.
Hello!
Where is "PLCnext OPC-UA FBs"?
I need OPC UA Client for PLCnext PLC, but I can't find this library for PLCnext Engineer.
Thanks!
Oh, I see that it isnt available....