Topic RSSDecode ExtensionObject
July 25, 2017
14:17, EEST
14:17, EEST
Matthias Schneider
New Member
Members
Forum Posts: 1
Member Since:
July 25, 2017
July 25, 2017
OfflineHey,
I’m trying to make a java program that acts as a kind of middleware. It reads structures from a TwinCAT OPC UA server, puts their values into a JSON and sends it to an other server.
For testing I created in the PLC a sample struct with two variables: https://ibb.co/mmRZ9k
If I read the node, the DataValue is a ExtensionObject with binary encoding. The values of the structure variables (bVar1 and fVar2) should be read and put into a JSON object. So the result is something like this:
{
“bVar1” : false
“fVar2” : 0
}
The structure above is just an example. The structures to be read are only known at runtime.
My Problem is that I don’t know how to decode the binary ExtensionObject to get access to the values of the structure variables.
Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online: Oleksandr
Guest(s) 81
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
aracelyhaley4, raphaelschonell, Ashmag, kathyreimann56, brittanylemos, dorthycundiff76, PromotionToold, CHHinrichs, rodricklienhop, jose_WanderleiModerators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1
© Simple:Press —

Log In
Register