In this article, I will discuss how to create always ON and OFF bit in PLC programming using ladder logic and statement list in Siemens Simatic Manager.
Say in the plant when the machine lost its power and comes back after some time, then we need some functions to perform automatically when starting the machine.
For examples like a cold start or hot start, you want some facility to remain ON and some to remain OFF. The below discussed small two lines of code are used there.
There are many instances in the industry where we require to make some blocks always ON or OFF as per our applications.
In siemens PLC, you can use DB address or bit memory address to create always ON and OFF bit.
To create always ON and OFF bit, we simply have to write code OB and use that memory address anywhere in the program.
To create a bit, first, open Simatic Manager. Create a new project. Now I am going to write code in ladder logic and in statement list too.
You can write code in Function and then you can call it from OB or you can write in OB and you can use its address in the programming.
Always ON and Always OFF bit using STL
The below is the programming window of statement list (STL) where I have written the code of Always ON and OFF bit.


Comments
Post a Comment