Join us today!
[Solved] Building a Property with Methodes similar to ipArguments of the TwinCat Event Logger
Dear Community,
I would like to build a Function Block that has a similar function as the ipArguments of the FB_TcEventBase. The property "ipArguments" has some methods that allows to add several arguments (like with AddString, AddInt etc):
fbTcAlarm.ipArguments.Clear().AddInt(1).AddInt(2);
How would the structure of a function block looks like if I want to realize it myself? I am not looking for a finished source code, but more how the structure/declaration of a function block would look like.
Thanks for your valuable input.
Norbert
In case you want to say thank you !)
We'd be very grateful if you could share this community with your colleagues and friends. You can also buy us a coffee to keep us fueled 😊 This is the best way to say thank you to this project and support your community.
twinControls - https://twincontrols.com/
@twincontrols That is great. A big help. Now I am figuring out to give an property the desired methods.
-
Auto Generation of Getters and Setters?
2 years ago
-
Utilizing Properties in TwinCAT 3
2 years ago
- 17 Forums
- 267 Topics
- 942 Posts
- 0 Online
- 722 Members