Replies: 5 comments 1 reply
-
Do you have anything that shows the definition in the PLC? Can you get a Wireshark capture? Does writing from another client like UaExpert work? |
Beta Was this translation helpful? Give feedback.
-
and from UA expert I can modify the value and this is the Wireshark captured for the write request Thanks |
Beta Was this translation helpful? Give feedback.
-
Here the 2 file. Thank you |
Beta Was this translation helpful? Give feedback.
-
The capture shows that you are using a different NodeId for the TypeId than UaExpert is: Milo:
UaExpert:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your help. The Node that you see in Milo is the one with the UDT structure in the PLC Now i go to set the nodeId of the encoder and I can write the signal Thanks again |
Beta Was this translation helpful? Give feedback.
-
Hi All,
In my plc I have created a UDT with 2 boolean field.
![image](https://private-user-images.githubusercontent.com/137071485/246830852-5f3dc6f0-48d7-46ae-ab97-2fa19d979434.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTQ4MzIsIm5iZiI6MTczOTU5NDUzMiwicGF0aCI6Ii8xMzcwNzE0ODUvMjQ2ODMwODUyLTVmM2RjNmYwLTQ4ZDctNDZhZS1hYjk3LTJmYTE5ZDk3OTQzNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwNDQyMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYmU4YzJmZGY4MDM2ZWUxZmE0OWRhNTE1Y2I5ZjdhY2RiMTEyNWY1ZDYxNmYwMGM1Njg4MGVkMWYxNzJhMzkyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.YKcoOiCoY-o5B-OnDAOgJrYUE5GLQS-XcDocS6boTa0)
I have registered the coded successful. I'm able to read and decode the structure, but I have some issue when I try to write it.
In the details, I receive this error
StatusCode{name=Bad_TypeMismatch, value=0x80740000, quality=bad}
I try to write it in this way
and also in this
![image](https://private-user-images.githubusercontent.com/137071485/246830993-83a60b43-aa41-4310-977c-505c84a4b4d3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTQ4MzIsIm5iZiI6MTczOTU5NDUzMiwicGF0aCI6Ii8xMzcwNzE0ODUvMjQ2ODMwOTkzLTgzYTYwYjQzLWFhNDEtNDMxMC05NzdjLTUwNWM4NGE0YjRkMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwNDQyMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZGU1Y2QzZDZmODQ1ZTljYjFmY2ZmM2VkYjAyYTU1ZjUyYzc1NWJhOWU4MjA1MTBiNzkxMGNlZmM2MzhmMGM5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.jEO_MaPASfpo2m0OqMj5cfTnOr3AJ7cWtN4KlPF9Z2M)
but the result it is always the same.
![image](https://private-user-images.githubusercontent.com/137071485/246831172-8375b986-cf52-4775-954d-f87320ab5e15.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTQ4MzIsIm5iZiI6MTczOTU5NDUzMiwicGF0aCI6Ii8xMzcwNzE0ODUvMjQ2ODMxMTcyLTgzNzViOTg2LWNmNTItNDc3NS05NTRkLWY4NzMyMGFiNWUxNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwNDQyMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZDA0MTQzNjlkODhmOGRlNjhlMzBkMmZhZDU1ODYyOGFiYjllZTIwZTM1MzVkZGEwNDIwZDM5YWEzMzhiMmI5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.WVE8lsEBKDH4MmOeb_-uwEhSjBqCbSeCxjv4RUDzN28)
This is my codec class
where the decode is working.
Thank you
Andrea
Beta Was this translation helpful? Give feedback.
All reactions