Join us today!

twinControls
twinControls
@twincontrols
Admin
Member
Joined: Sep 25, 2022
Last seen: Nov 8, 2024
Topics: 44 / Replies: 69
Reply
RE: Counting the number of items in a STRUCT in TwinCAT 3 using Python

Hi @benhar-dev, very smart solution! I was wondering if this could be done using the json function blocks. Thanks a lot for sharing!

2 years ago
Topic
Replies: 0
Views: 2228
Reply
RE: How to count the number of items in a struct in TwinCAT?

@kolyur Great suggestion! Since this method wouldn't work for different datatypes, I used python to count the lines between STRUCT and END_STRUCT keyw...

2 years ago
Reply
RE: How to count the number of items in a struct in TwinCAT?

@iotea Actually, I don't really know how this can be done using TwinCAT 3 only, but this question got me thinking and I used python to count the eleme...

2 years ago
Topic
Replies: 0
Views: 790
Topic
Replies: 0
Views: 587
Reply
RE: Error ' TwinCAT System' (10000): AdsError:4115 ( 0x1013, RTime: systen clock setup fails)

@alex9710278 Hi, Have you checked your real time settings in the project? Also, go to C:\TwinCAT\3.1\System. Run the 'win8settick' file...

2 years ago
Reply
RE: Momentary Push Button and LED - Programming Challenge

@joris It is nice seeing a solution in TIA Portal too! 🙂 Nice and clean! Maybe you could solve it using only one rung too!

2 years ago
Reply
RE: Momentary Push Button and LED - Programming Challenge

@ehixenbaugh You can think of one-shot in RS5000 studio as R_TRIG in TwinCAT. Or adding an edge detection to a contact in ladder logic with the 'P' sy...

2 years ago
Reply
RE: Challenge Project Operations: Addition, Subtraction, Division, program OOP with Interfaces, Polymorphism, Etc...

@runtimevictor It's published now ! fluent-interface-and-method-chaining-in-twincat-3

2 years ago
Topic
Topic
Replies: 2
Views: 3899
Page 6 / 8