3/26/2021 8:40 AM | |
Joined: 3/30/2020 Last visit: 9/27/2025 Posts: 5482 Rating:
|
Hello. Most application examples are now coded into SCL. Standard Library You will have to be more specific on what you are looking for if you wish to receive another answer. |
Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
3/27/2021 11:12 PM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating:
|
Of course it can be done and that's how I started and only recently came to realize that had I used an IDE with much better tools, as it relates to debugging, I would've achieved more by focusing on coding rather than troubleshooting. And the troubleshooting skills I learned using structured text in TIA were not something that required that much time; I would've developed those skills anyway troubleshooting other people's code or Siemens example code which I did often. There's space and time for everything, learning to ride a bike should not be done on a highway, you do that in an empty parking lot. Example, most beginners need time to grasp how loops and conditions work, what happens when IF is TRUE, does ELSIF get evaluated? Take a few seconds stepping into a condition to figure that one out and on to the next challenge. When does a WHILE loop breaks, why am I getting a fault? Step into that one and watch the tag values change step by step and boom, light bulb goes on and onto the next challenge. Do this in TIA and you need a watch table and several tags and head scratching and time and more time. I'm not suggesting anything new; this is pretty much standard requirements for any software developer, a good IDE and debugger. In late 90s, I think 98, was my first introduction to programming ( I didn't program for years after that), and we were introduced to a host of languages; each had its IDE; assembly, C, few database ones which I no longer remember their names (other than VB). One day I spent hours looking at code, compiling and getting error and the same line of code was highlighted. I read and re-read that line of code for hours; I changed it and changed it with the same result. At the end it turned out that somehow there was something on the same line that was not visible on the screen. The page on that IDE (don't remember which one) was almost endless, you could scroll for ages to the right and that was where the problem was. Literally hours wasted because of a lousy IDE; who knows maybe there was a setting somewhere to limit the area to type code in. That is an anecdote to show how important the tools are. I believe beginners learning should be focused on code development and understanding the syntax and efficient code design. A by product of porting code from one platform to another is it enforces the benefit of structured programming and encapsulation even within one block. Modifying code "sections" with predefined tasks and its own tags is much much easier to one that has tags used sporadically all of the block.
Download CodeSys or Twincat3 and start playing. Many tutorials on youtube and blogs. Here's one that I haven't watch and just got out of youtube search. It goes without saying, this is my view; it is not right and not wrong;I could very easily change mind tomorrow should I find something else that works better for me. |
This contribution was helpful to
2 thankful Users |
Follow us on