One of the best Automation vendors all over the world is Siemens, this good reputation was not formed by chance, one of the main reasons for this reputation is its software programming environment TIA Portal (Totally Integrated Automation).
The advantage of this program is the integration of all Siemens components, using this software you will be able to:
The software faults or errors could be divided into two categories:
These types of errors cause abnormal behavior and actions for the system, it is caused due to some programming mistakes, it could be wrong addressing of the I/O signals or it may be some mistakes with the ladder logic itself, the bad news that it should be detected by the programmer with himself the software will not be able to determine these types of errors where it is.
However, these errors could be traced by going online with the PLC and check the rungs as we will see.
On the other hand, we might find these errors which are caused by some programming mistakes that the compiler of the software can not accept it, the good news is that these errors are detected by the compiler of the software.
Also, we can use the Diagnostic buffer that saves all the events that happened with the PLC and it is really a great tool for troubleshooting.
Also Read: PLC Hardware Troubleshooting Steps
These faults mostly occurred at the commissioning phase, as you just finished writing your code and you are going to try your logic with the real field.
It is very normal to find out some mistakes through your code, and the best way to overcome such a situation is to go online with the PLC.
By using the TIA portal software, it is too easy to identify and detect the compiling faults, as the program points at the errors by identifying a detailed location of the error.
For the next figure, we can see a simple code that consists of some functions and the main OB, by compiling the code from the sign below, a compiling window will appear and it will check all the program networks to detect any type of errors.
Note: Before compiling the code, you have to ensure that you select the whole program blocks not just the main OB, that by pressing on the program blocks below that is shown with yellow color.
Here is the window that defines the type of the error and its detailed location, we can see that we have three compiling errors at Function (6) at Networks (1 & 2).
Notice that you can go to the invalid network manually or you just can click on the network and the function would open automatically and it will point to the faulty network.
After going to the desired function, we will find the three faults as shown in the next figure:
There must be a bit at the timer input that is responsible for timer counting.
The right way to insert the preset time for such timers is that (T#5s)
So, by editing our code and fixing the faults, we can compile it again to ensure that is healthy.
In the next article, we will discuss a very important tool that helps a lot with troubleshooting which is the Diagnostic Buffer so stay tuned and wait for it.
If you liked this article, then please subscribe to our YouTube Channel for Instrumentation, Electrical, PLC, and SCADA video tutorials.
You can also follow us on Facebook and Twitter to receive daily updates.
Read Next:
Electrical Drives control the motion of electric motors. Motion control is required in industrial and…
PLC ladder logic design to control 3 motors with toggle switch and explain the program…
VFD simulator download: Master the online tool from the Yaskawa V1000 & programming software for…
The conveyor sorting machine is widely used in the packing industries using the PLC program…
Learn the example of flip-flop PLC program for lamps application using the ladder logic to…
In this article, you will learn the STAR DELTA programming using PLC controller to start…