Professional OPC
Development Tools

logos

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.

BadTypeMismatch

More
09 Jan 2018 08:25 #5835 by support
Replied by support on topic BadTypeMismatch
Thank you. I do not need the build number if it's this version; but the most reliable way to find it out is to right-click on one of the OpcLabs.*.dll assemblies, select Properties, and then find the version with the build on the Details tab.

The Write should not be dependent on the first item like this. It can be a bug in the server or in the client (QuickOPC). Would you be wiling to take a Wireshark capture of the communication between the client and the server, and send it to use for analysis? Basic info/links to that are: kb.opclabs.com/Collecting_information_for_troubleshooting .


If you do son, please minimize each test. For example, make one capture with just the tag type that *never* works. Then, the captures with the cases you have described, etc.

Best regards

Please Log in or Create an account to join the conversation.

More
09 Jan 2018 06:58 #5833 by Dq-soft
Replied by Dq-soft on topic BadTypeMismatch
I use Version 2017.2.


where can i see the buildnr?

Kind regards Dina

Please Log in or Create an account to join the conversation.

More
08 Jan 2018 10:52 #5823 by support
Replied by support on topic BadTypeMismatch
Thanks you.

2. Which version and build of QuickOPC are you using?

Please Log in or Create an account to join the conversation.

More
08 Jan 2018 10:41 #5822 by Dq-soft
Replied by Dq-soft on topic BadTypeMismatch
Hello it is a little bit strange :

i found out that if i have a variable that is really a bad type mismatch (eg. i write an empty value to array of string node some other nodes that comes in later the same writemultiplevalues also get bad typevalue even if they are absolutely correct.

If this first variable is a string array everything is fine.

That are different nodes but sometimes also one special node is ok or not.


eg.
Test1 array of string
Test2 integer
Test3 real
Test4 string
Test5 integer
Test6 real

All nodes are send in one writemultipenode run.


First i send
test1 = null
Test2 = 2
Test3 = 2.56
Test3 = Hallo
Test4 = 9
Test5 = 3.90

I get BadTypeMismatch for Test1, test3 and test4

next run i send
test1 = Hallo,One,Two,three
Test2 = 2
Test3 = 2.56
Test3 = Hallo
Test4 = 9
Test5 = 3.90
everything is ok

Kind regards

Please Log in or Create an account to join the conversation.

More
08 Jan 2018 09:01 #5820 by support
Replied by support on topic BadTypeMismatch
Hello,

I have two questions:

1. When you say "Sending Integer or Real Values i sometimes get a BadTypeMimatch", does it mean that
a) With some nodes, it consistently works and with some nodes it consistently returns BadTypeMismatch, or
b) Even with the same node and value, it sometimes works and sometimes, randomly, it returns BadTypeMismatch ?

2. Which version and build of QuickOPC are you using?

Thank you

Please Log in or Create an account to join the conversation.

More
08 Jan 2018 08:47 - 08 Jan 2018 09:02 #5819 by Dq-soft
BadTypeMismatch was created by Dq-soft
Hello again,
i have a little problem: i often get BadTypeMismatch during Writemultipevalues but only with Integer and real values. String is working well.

i use Delphi XE6 and Twincat3 with 6100 OPCUA Server Extension

In Delphi
I use
WriteValueArguments[laenge].value := value;


Value is variant
and contains real, integer, string, array of integer, array of real or array of string values depending on the used opt-ua variable

eg.
OPCUA Variable Test1 type array of integer
then value contains array of integer

or
OPCUA Variable Sollwert type Real
value contains a double value (e.g. 5.111)

Sending Integer or Real Values i sometimes get a BadTypeMimatch
Sending an array of integer or array of real i always get a BadTypeMismatch.
I also tried
WriteValueArguments[laenge].value := (integer)value; or
i: integer
i := value;
 WriteValueArguments[laenge].value := i;

for integer variables and a similar construction for real and array of integer and array of double with the same problems.

Sending String or array of string everything is ok.

What can i do?

with kind regards
Dina
Last edit: 08 Jan 2018 09:02 by support.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.054 seconds