Author Topic: Twincat write performance  (Read 1662 times)

bobobo

  • Newbie
  • *
  • Posts: 19
    • View Profile
Twincat write performance
« on: December 07, 2023, 12:41:30 PM »
Hi
Is there an elegant way to group writes to Twincat?

I have an old advancedhmi application (Not sure how old, but maybe based on a 5 year old version or so) that I'm looking at improving the performance.
I noticed that each Twincatcomm1.write operation takes about 100-150ms. At some occations I do a handful writes to different avariables when a button is clicked.
A few places could be easily replaced by array-writes but when it's a bunch of different types it's not that easy.
Any suggestions? I'm thinking if there is any functionality to add variables in a sending list and then write it all?

Is the new 3.99y version that uses AMSrouter generally faster?