how to set_value typle is "word" value???? #1482
-
my code is this doesn't work,who can help me?thanks !! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey ho, first things first - please read #1475 To your problem: python-opcua/opcua/ua/uatypes.py Line 624 in 96a8ea6 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: Creating a node to use (from a nodeset): |
Beta Was this translation helpful? Give feedback.
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:
python-opcua/opcua/ua/uatypes.py
Line 624 in 96a8ea6
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…