Skip to content

how to set_value typle is "word" value???? #1482

Answered by swamper123
westbullman asked this question in Q&A
Discussion options

You must be logged in to vote

Hey ho,

first things first - please read #1475

To your problem:
Word isn't an inbuilt type of OPC UA.
Here is the source of the VarianTypes from this (deprecated) library:

class VariantType(Enum):

You need your nodeset file (I guess from SIOME or PLCOpen?), import it, load the datatype definition and then you can create and interact with a node.

Importing a Nodeset:
https://github.com/FreeOpcUa/python-opcua/blob/master/examples/server-import-robot-nodeset.py

Creating a node to use (from a nodeset):
https://github.com/FreeOpcUa/python-opcua/blob/858274721766907148b527916e97446dbbf6af6d/examples/server-create-custom-stru…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by westbullman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1481 on September 05, 2022 06:57.