Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: Software Troubleshooting Errors and Faults in Siemens PLC
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Software Troubleshooting Errors and Faults in Siemens PLC

Software Troubleshooting Errors and Faults in Siemens PLC

Learn how to do the troubleshooting of errors and faults in Siemens PLC software (TIA Portal - Totally Integrated Automation)

Last updated: October 17, 2023 3:16 pm
Hussien Ghareb
PLC Tutorials
No Comments
Share
8 Min Read
SHARE

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).

Contents
Types of Software FaultsLogic Error (Programming)Compiling Error (System)How to Deal with PLC Programming Faults?Steps to go Online through your PLCHow to Deal with Compiling Errors in PLC?

The advantage of this program is the integration of all Siemens components, using this software you will be able to:

  • Configuring the hardware of your project.
  • Establishing the whole network of the system.
  • Programming of PLC with different languages.
  • Designing of SCADA & HMI systems.
  • Simulation of your projects.
  • Finally, the scope of our article that this software could really offer a great feature to ease the troubleshooting of your Automation system.

Types of Software Faults

The software faults or errors could be divided into two categories:

Logic Error (Programming)

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.

Compiling Error (System)

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

How to Deal with PLC Programming Faults?

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.

Steps to go Online through your PLC

  1. The first thing that you need to do is connecting your PC/PG with the PLC through an Ethernet cable to establish the physical layer of the network.
  2. Then you have to go through TIA Portal and open a new project and select unspecified 1500 CPU as shown in the next figure. (Note if you already know the CPU No. you can choose it directly)
Steps to go Online through your PLC
  • The next step is to detect the hardware configuration of your station.
hardware configuration of siemens plc
  • If you are using an Ethernet connection make sure that the IP of the PLC and your PC at the same subnet, then after searching about the PLC select the device and press detect.
Siemens PLCSIM Virtual Ethernet Adapter
Siemens PLC Ethernet Connection
  • Here and after selecting the PLC you have to go online with your code to see what is going into your logic visually, that would really help a lot to track the problem.
PLC go online with your code
  • Now we are online with our PLC to know why the process is not running even we are pressing on the start push button.
  • As we can see it is too easy to trace the activated and deactivated bits from the ladder logic, the green bit is activated and the blue dashed one is not activated.
Siemens PLC Ladder Diagram Code
Ladder Logic Online
  • After going to the Emergency stop at the site and activate it, now we can see all of the branch is correctly operated.
Emergency stop plc programming

How to Deal with Compiling Errors in 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. 

How to Deal with Compiling Errors in PLC

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).

Types of Software Faults in a PLC

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:

  1. It is clear for us about the first fault that the byte (19) should have just eight bits so it can be addressed as M (19.0 – 19.1 – 19.2 – 19.3 – 19.4 – 19.5 – 19.6 – 19.7).
  • Here for the second rung we can notice that there are two faults the first one is there is no an assigned input that would make the timer count.

There must be a bit at the timer input that is responsible for timer counting.

  • Also, for the second rung you can notice the preset time is written into wrong way.

The right way to insert the preset time for such timers is that (T#5s)

Program Blocks in Siemens PLC

So, by editing our code and fixing the faults, we can compile it again to ensure that is healthy.

Compile errors in a plc

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:

  • Yokogawa DCS Tutorials
  • PLC System Cabinet Health Checks
  • Communication Protocols in PLC
  • SFC Language in PLC Programming
  • Difference between PLC and Computers
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

What are Analog and Digital Signals? Differences, Examples
What is Live Zero in 4-20 mA Current Loop?
Top 5 Advantages of Human-Machine Interface (HMI)
Demo of a SCADA Software – Level Control System
Types of Interlocks
PLC Program for Controlling a Water Pump with 3 Power Sources
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

PLC Alarm and Trip Documentation
UPS Working Principle and Types – Offline and Online UPS Systems
Difference Between FC and FB in Tia Portal
HMI Handbook
Factory I/O PLC Automation Training Course (Free)
PLC Program for Automatic Bottle Rejection System
Complex Car Parking Logic in XG5000 LS Electric PLC
Laws of Boolean Algebra using Ladder Logic

Keep Learning

Tanks Draining Control in PLC using Functional Block Diagram

Tanks Draining Control in PLC using Functional Block Diagram

LIFO Instruction in Allen Bradley PLC Programming

LIFO Instruction in PLC

Faceplates

What are Faceplates? How to Create a Faceplate? HMI Visualization

PLC Program for Boolean Expression

PLC Program for Boolean Expression

SCADA Interview Questions

SCADA Interview Questions and Answers

JMP instruction in PLC Programming

How to use JUMP Instruction in PLC Ladder Logic?

Liquid management using PLC programming

PLC Programming for Loss in Weight Liquid Systems

Relay Parts

Difference Between NO and NC Contacts

Learn More

Switch Contact checking with oscilloscope

What is Contact bounce ?

4-20mA Transmitters Easy Calculations

4-20mA Transmitters Calculations

Orifice Flow Measurement Formula

Basics of Flow Measurement

Burner Management System (BMS) Principle

What is Burner Management System (BMS)?

Cobot - Collaborative Robot

What is Cobot? – Collaborative Robot

Batch mixing process automation with Omron PLC

Automate Batch Mixing with Repeated Cycles in Omron PLC

calibrating-and-testing-rtd-sensors

RTD Calibration Procedure

SCR Class B Resonant-Pulse Commutation

Thyristor Commutation Techniques – Types, Working Principles

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?