Book Image

PLC and HMI Development with Siemens TIA Portal

By : Liam Bee
Book Image

PLC and HMI Development with Siemens TIA Portal

By: Liam Bee

Overview of this book

With automation requirements on the rise, Siemens’ TIA Portal development environment is almost a necessity for any automation engineer. The Totally Integrated Automation (TIA) environment helps seamlessly integrate all things automation, from PLC hardware and software design to HMI development. This book helps you understand the tools available in the TIA toolbox and shows you how to write code effectively. The book begins by introducing you to the TIA environment, covering the layout and tools available. Once you’ve got to grips with the environment, you’ll find out how to create hardware to write programs against, including adding IO modules and assigning memory for input and output. Next, you'll develop logic in all of the languages that TIA Portal offers, such as Ladder, Function Block Diagram, and Structured Text (SCL) (note that Statement List is not covered as a deprecated language), as well as the newest language, Cause and Effect (CEM). You’ll also discover how to store standard code in libraries, creating a version control system that is easy to manage and aids standard design. Finally, following the PLC design chapters, you’ll learn how to develop HMI applications in TIA Portal’s latest unified hardware. By the end of the book, you'll be well equipped to use all of the features that TIA Portal V17 offers.
Table of Contents (21 chapters)
1
Section 1 – The TIA Portal – Project Environment
5
Section 2 – TIA Portal – Languages, Structures, and Configurations
11
Section 3 – TIA Portal – HMI Development
16
Section 4 – TIA Portal – Deployment and Best Practices

Creating a simulation interface

Having an interface for the simulation system is vital if you wish to manipulate your simulation signals with ease. When the TIA Portal project is tested, simulation signals will need to be set to particular values to test how the production code reacts to the simulated input values. While this can be done by creating a watch table, it would be far more beneficial to the users of the simulation system to create an HMI in TIA Portal that interacts directly with the simulation code:

Figure 7.17 – The input mapping layer with simulation and an associated HMI

The concept behind this approach is that each asset has a dataset defined as a UDT that's either stored in a data block or as a variable in a wider simulation data block.

Simulation Interface HMI is connected to Asset Sim Data via a standard Siemens connection interface. This enables the HMI to change values and specify what is currently being sent to the PLC...