trimurthulu
Member
hi, i am new to this field i have a doubt why we use functional blocks in plc programming and how to use these functional blocks in programming. please tell me anybody
I couldn't have said it better myself. Something else to point out is that in the CodeSys world there are Functions as well as Function Blocks. Timers and Counters are probably the most recognizable use of function blocks and math operations (add, subtract, multiply, etc.) are the most common use of functions.FBs can be confusing to a newbie, but you will learn to love them. They are great for simplifying the code that you see. For example a timer just works. You don't really need to see the code inside a timer, but you can dig into it if you want to. Also, FBs all require a unique name (instance), so you could have timer1, timer2, timer3, etc. Each has its own values, but you don't have to write the code for it each time, just call the FB in your code.