I am beginner in B&R Automation Studio and TIA Portal. Have an experience in electrical part of PLC cabinets. Now its time to get a new skills. First of all I want to create good template for all projects. I find this tutorial which tells about Abstraction, Modularity, Interfaces (https://youtu.be/MAJOn1VAguo?list=PLcTp_342hzaCYPOqmG70UUPANYE95s5vW&t=1098). It's like object oriented programming, but without classes.
I created interface for managing servo drive (https://imgur.com/a/syzBW61). Then I can create variables for each servo drives, mapping them outputs and inputs but...
What should the project look like in general? Main.st with sequence via SWITCH CASE for auto mode and manual mode of technological process with catch the errors? I am looking for best practice in PLC programming.
Its rude to ask but could someone share completed template or explain how better to do it?
P.S: Sorry for my English. Its not my native language.
I created interface for managing servo drive (https://imgur.com/a/syzBW61). Then I can create variables for each servo drives, mapping them outputs and inputs but...
What should the project look like in general? Main.st with sequence via SWITCH CASE for auto mode and manual mode of technological process with catch the errors? I am looking for best practice in PLC programming.
Its rude to ask but could someone share completed template or explain how better to do it?
P.S: Sorry for my English. Its not my native language.