Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: DataType WORD, DWORD and WSTRING not supported in OPC-UA. #1895

Closed
2 of 16 tasks
codekundan opened this issue Nov 15, 2024 · 3 comments
Closed
2 of 16 tasks

[Bug]: DataType WORD, DWORD and WSTRING not supported in OPC-UA. #1895

codekundan opened this issue Nov 15, 2024 · 3 comments
Assignees
Labels
java Pull requests that update Java code OPC-UA https://plc4x.apache.org/users/protocols/opcua.html

Comments

@codekundan
Copy link

What happened?

Hi Plc4x Team and @splatch . I was testing Plc4x with Mitsubishi PLC. I was not able to read and write WORD, DWORD and WSTRING datatype. It gave me "Datatype WORD is unsupported by this protocol" error as can be seen in pic below:-

DataType_WORD_unsupported

I want to ask whether OPC-UA especially Plc4j supports these 3 Datatypes (WORD, DWORD, WSTRING)? I was able to read and write with other Datatypes such as INT, REAL, BOOL, STRING. Any help regrading this ?

Version

v0.12.0

Programming Languages

  • plc4j
  • plc4go
  • plc4c
  • plc4net

Protocols

  • AB-Ethernet
  • ADS /AMS
  • BACnet/IP
  • CANopen
  • DeltaV
  • DF1
  • EtherNet/IP
  • Firmata
  • KNXnet/IP
  • Modbus
  • OPC-UA
  • S7
@codekundan codekundan added the bug label Nov 15, 2024
@splatch
Copy link
Contributor

splatch commented Nov 16, 2024

Hello @codekundan, I think this type is not recognized at the protocol level, but defined on client side. Which type from specification are you actually trying to read: https://reference.opcfoundation.org/Core/Part6/v104/docs/5.1.2?

@splatch splatch self-assigned this Nov 16, 2024
@splatch splatch added java Pull requests that update Java code OPC-UA https://plc4x.apache.org/users/protocols/opcua.html labels Nov 16, 2024
@codekundan
Copy link
Author

codekundan commented Nov 18, 2024

Hello @splatch , I am trying to test the available Datatypes in the PLC4X OPC-UA website https://plc4x.apache.org/plc4x/0.13.0-SNAPSHOT/users/protocols/opcua.html#:~:text=UINT%20(uint%2016)-,WORD%20(uint%2016),-DINT%20(int%2032

If you look at the link, Datatypes like WORD, DWORD and WSTRING are mentioned. So I thought they should be supported. Though I can make use of UINT( uint16 ), UDINT( uint32 ) instead of WORD ( uint16) and DWORD ( uint32 ) respectively. Only Datatype left will be WSTRNG (utf-16).

@codekundan
Copy link
Author

Hello @splatch , I am closing this issue. If you want to add something please feel free to open it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Pull requests that update Java code OPC-UA https://plc4x.apache.org/users/protocols/opcua.html
Projects
None yet
Development

No branches or pull requests

2 participants