In some industrial applications, you may need to count the number of products, cycles, the number of times a field device has been turned on and off, etc. Then you may need to use those numbers for another function within the PLC. For instance, you may need to count the number of bottles that are going to be put in a box and then when the box is full, you want to command the conveyer belt’s motor to run. For these kinds of applications, there is an instruction in PLC programming which is called “counter”.
Now let’s assume that I need to use the value counted by the counter somewhere else in the program.
In an industrial process, there may be a conveyor belt with an electric motor that moves the manufactured products from the factory floor to the warehouse.
I’m going to write a simple PLC program for this system with the following conditions:
1) The motor is going to turn on when the start...
Let’s assume that there are already 100 products in the warehouse and I need the counter to start counting from this preset value.
18 Comments