Inst ToolsInst ToolsInst Tools
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: Software Troubleshooting Errors and Faults in Siemens PLC
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
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 !
Siemens S7 300 and STEP 7 PLC program using SIMATIC Software
PLC Input Output Modules
Peripheral Inputs and Outputs in Siemens PLC
Demo of a SCADA Software – Level Control System
What is an Instruction List? – PLC Programming
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals
  • Vaishnavi on Free Instrumentation Course for Trainee Engineers

Related Articles

What is a Tag in SCADA

What is a Tag? Types of Tags in SCADA

Proper Earthing Practices Used for PLC Control Panel

Proper Earthing Practices Used for PLC Control Panel

PLC Ladder Logic Example based on Set Coil and Reset Coil

PLC Ladder Logic Example based on Set Coil and Reset Coil

PLC Program Paint Spraying

PLC Program for Paint Spraying

Transistor Output Wiring

PLC Output Types

3 to 8 Line Decoder Circuit Diagram

3 to 8 Line Decoder PLC Ladder Diagram

Lamp Counter Logic

Function Block (FB) for Motor Control Logic

PLC programming for clothes washing machine automation

LS Electric PLC Program Example: Clothes Washing System

More Articles

Analog Electronics Objective Questions

Analog Electronics Objective Questions – Set 2

Distributed Control Systems (DCS)

What is DCS? (Distributed Control System)

Reduce Control Valve Noise

How to Reduce the Control Valve Noise?

Vibrating Fork Level Switch Working Animation

Vibrating Fork Level Switch Working Animation

Difference between Repeatability and Reproducibility

Difference between Repeatability and Reproducibility

pressure switch control two lamps wiring

Draw Wiring of a Pressure Switch to control two lamps

Difference Between Sensor and Transducer

What is the Difference Between Sensor and Transducer?

Explain What these Spool Valve Represent

Explain What these Spool Valve Symbols Represent?

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?