Welcome to the forums!
You have asked a great question and its very open ended and hard to pin down.
Everyone’s process is different, everyone’s skill level is different, everyone has different end goals and on top of all that, programming is as much about art as it is about science.
But with that said, there are a few more resources that you have not listed (not sure what the generative AI one was about) that you might find more helpful than those two.
- http://documents.opto22.com/1776_Optimizing_PAC_Project_System_Performance.pdf
- https://documents.opto22.com/2073_Best_Practices_Technical_Note.pdf
- If you have Node-RED in the mix, this whole thread, but most of all @gchase summary here:
Optimizing Node Red Flow - #27 by gchase
I’m in the process of re-writing those first two with sprinklings of the Node-RED thread along with some Codesys (and possibly some Ignition) tips. Not even close to having a finish date for that job as its huge.
There are some tweaks that will change based on if you are using PAC Display or groov View or Node-RED as your primary HMI (or all three or none of them).
Other things that might change the path you take is if you are primarily using PAC Controllers or EPIC or if you have RIOs in the mix.
Other ways the optimization path might change is if you have any remote I/O and what sort of connection they are via, ADSL, cable, Starlink, 3G or 5G etc.
How much, if any, serial I/O you have is also a big big factor that needs to be considered.
Please take a solid read or deep skim of those three docs and lets continue the conversation, I know there will be a few others stop by to continue the conversation.
I’m looking forward to the tips as I’m sure I will be able to flesh them out and add them to the new revision of the doc.