Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
Tag data type
We have no influence over what the server provides; it is a value of an attribute like any other data we get, we just provide it to you.
If the value is always a one-dimensional array, I would expect the server to return unambiguous 1 for the ValueRank attribute. A value of 0 (OneOrMoreDimensions) is not incorrect, but is of course less informative. You need to ask the server vendor why they have implemented it in this way.
Please Log in or Create an account to join the conversation.
- adid@contel.co.il
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 106
- Thank you received: 0
first of all thank you for your time and answer.
why the answer in not Unambiguously ? when i will get answer ValueRanks.ScalarOrOneDimension ?
thank you,
Adi Damty
Please Log in or Create an account to join the conversation.
Best regards
Please Log in or Create an account to join the conversation.
- adid@contel.co.il
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 106
- Thank you received: 0
using UAAttributeId.ValueRank i am getting value 0 when reading word array and value -1 when reading boolean tag for example. is that enough to distinguish between array and not array tag ?
thank you,
Adi Damty
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- adid@contel.co.il
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 106
- Thank you received: 0
if i use the code below for word tag or for word array tag, for both it return the type is UInt16.
how can i distinguish between word tag and word array tag ? i try to use UAAttributeId.ArrayDimensions, but in both cases it return null.
thank you,
Adi Damty
EasyUAClient m_EasyUAClient = new EasyUAClient();
UANodeArguments uaNodeArguments = null;
UAAttributeData uaAttributeData = null;
uaNodeArguments = new UANodeArguments();
uaNodeArguments.EndpointDescriptor = "opc.tcp://127.0.0.1:49320";
uaNodeArguments.NodeDescriptor = new UANodeDescriptor(m_ServiceBaseLogic.GetNodeId("opc.tcp://127.0.0.1:49320", "3401_DoserPLC.OMRON_CQM51.DSSimTotal"));
uaAttributeData = m_EasyUAClient.Read(uaNodeArguments, UAAttributeId.DataType);
object a = uaAttributeData.Value;
Please Log in or Create an account to join the conversation.