Replies: 3 comments
-
|
first you need to find out if you need a client or a server. From your text over it sounds like you want a client. if you use a client you do not need to create any structure, you just load those from the server using load_data_type_definition(). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Figured out it was ofcause user error =) i did not add idx when creeating the varuiables on the object. if i create base objects with another base object inside it. this seems to results in: newvar
the test2 object is not "filled out" amy i doing anything wrong ? |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I am not sure what route i need to take here.
i am playing arould with emulator in a rockwell plc. and need a interface for it so i testing out this project.
simple root bariables i think i have the hang on
but when i have to create UDT's i have been using structs.
TMyStructure
-baa
i then create the structure as a variable and it seems to be populated corectly.
myvar = TMyStructure(foo...,baa....)
via opc i dont have access to t
myvar.foo and myvar.baa ? as i would expect ?
i have to create a add a variable to the myvar node and then i can get
myvar.foo / myvar.baa
but then i have to wariables that are not reallt the same
SHOULD be using add object instead of structure?
problem i see with using object is that the client just sees a object but not a object of type "TMyStructure"
-Thanks
Beta Was this translation helpful? Give feedback.
All reactions