Mechatronics & Control Engineering Department, UET, Lahore
Lab Manual # 09
Roll #: Name:
Title: Siemens S7-1200 Series PLC and TIA Portal
Objective:
1. Learn to use Siemens S7-1200 PLC Trainer
2. Learn to use TIA Portal to make Ladder Diagrams
3. Download and run program on Siemens S7-1215C PLC
Apparatus
IT-1200S Trainer
PC with TIA Portal
Siemens S7-1215C DC/DC/DC PLC
The Siemens S7-1215C DC/DC/DC is a versatile PLC designed for industrial automation and control
applications. This compact controller combines robust processing capabilities with flexible I/O
configurations, making it suitable for small to medium-sized automation projects. The "DC/DC/DC"
designation indicates that it operates on 24V DC power supply, accepts DC digital inputs, and
provides DC digital outputs.
Siemens S7-1215C DC/DC/DC Compact PLC.
Image acquired from “https://inosaki.com/product/simatic-s7-1200-cpu-1215c-siemens-plc/”. Accessed on 19-Nov-24.
Input/Output Configuration
This PLC features 14 digital inputs, 10 digital outputs, and 2 analog inputs and outputs. The digital
inputs operate at 24V DC nominal voltage with sink/source capability (IEC Type 1 sink) and include
configurable input filters ranging from 0.1 to 12.8ms. Each input channel typically draws 4mA. The
digital outputs are 24V DC sourcing type, capable of handling 0.5A per channel with a maximum
lamp load of 5W. It has six high-speed counters that operate at 100 kHz, while eight operate at 30
Lab Manual for the Course of MCT-334 Industrial Automation
Developed by Muhammad Rzi Abbas – Dated: 19-Nov-2024
Mechatronics & Control Engineering Department, UET, Lahore
kHz. The analog inputs support both voltage (0-10V DC) and current (0-20mA) measurements with
10-bit resolution.
Communication Infrastructure
The communication capabilities of Siemens S7-1215C PLC are built around PROFINET with a single
RJ45 Ethernet interface supporting 10/100 Mbps data rates. The controller can maintain up to 16
simultaneous Ethernet connections and supports various industrial protocols including PROFINET IO
Controller/I-Device, TCP/IP native, ISO-on-TCP, Modbus TCP, and S7 Communication. The integrated
web server functionality enables remote monitoring and maintenance capabilities.
Programming Environment and Languages
The S7-1215C is programmed using TIA Portal V15.1 or higher. It supports multiple programming
languages including Ladder Logic (LAD), Function Block Diagram (FBD), and Structured Control
Language (SCL). The programming structure utilizes Organization Blocks (OBs), Function Blocks (FBs),
Functions (FCs), and Data Blocks (DBs), allowing for well-organized and maintainable code within the
125 KB program size limit.
Advanced Control Features
The controller includes sophisticated control features such as built-in PID control with auto-tuning
capability for up to 16 PID loops. Motion control capabilities support up to 6 axes with position and
speed control functions. The data logging feature enables program-controlled logging with web
server access to logs in CSV format. Security features include multiple password protection levels,
copy protection, and know-how protection to safeguard intellectual property.
Applications and Use Cases
The S7-1215C DC/DC/DC is particularly well-suited for:
Small to medium automated manufacturing systems
Precise machine control applications
Process control and monitoring systems
Distributed control architectures
Motion control implementations
Temperature control systems
Data collection and monitoring applications
TIA Portal
TIA (Totally Integrated Automation) Portal represents Siemens' flagship engineering framework for
industrial automation systems. This integrated development environment combines all essential
automation tools into a single software suite, enabling efficient configuration, programming, and
commissioning of Siemens automation devices.
Lab Manual for the Course of MCT-334 Industrial Automation
Developed by Muhammad Rzi Abbas – Dated: 19-Nov-2024
Mechatronics & Control Engineering Department, UET, Lahore
Start Project Window view of TIA Portal
Image acquired from “https://support.industry.siemens.com/”. Accessed on 19-Nov-24.
Core Components
The software architecture of TIA Portal incorporates several key components that work seamlessly
together. STEP 7 Professional handles PLC programming and device configuration, while WinCC
manages HMI development and SCADA applications. The integrated architecture allows users to
work with multiple automation tasks within a single project environment, significantly reducing
engineering time and complexity.
Programming Environment
TIA Portal supports multiple programming languages to accommodate different programming
preferences and application requirements. The available languages include:
Ladder Logic (LAD) for relay-based control logic
Function Block Diagram (FBD) for process-oriented programming
Structured Control Language (SCL) for complex algorithms
Statement List (STL) for low-level programming
GRAPH for sequential control processes
Advanced Features
TIA Portal V15 includes several advanced capabilities that enhance the development process:
Integrated simulation using PLCSIM for testing without physical hardware
Comprehensive diagnostic tools for troubleshooting
Library management for reusable code components
Version control and project archiving
Security features including user management and access control
Motion control configuration and programming
PID control optimization tools
Energy management functions
Lab Manual for the Course of MCT-334 Industrial Automation
Developed by Muhammad Rzi Abbas – Dated: 19-Nov-2024
Mechatronics & Control Engineering Department, UET, Lahore
User Interface Design
The interface is designed around two main views:
Portal View: Task-oriented view for beginners
o Organized by common automation tasks
o Guided workflows for specific operations
o Quick access to frequently used functions
Project View: Function-oriented view for experienced users
o Detailed project structure
o Access to all configuration options
o Comprehensive editing tools
o Multi-window capability
Students are directed to view the following video that describes how to use the IT-1200S Trainer and
TIA Portal to program and run the PLC.
Video: https://youtu.be/sWd7ykNqyLg
Furthermore, the students are requested to install TIA Portal on their laptops and practice ladder
diagrams before coming to the next lab.
Lab Manual for the Course of MCT-334 Industrial Automation
Developed by Muhammad Rzi Abbas – Dated: 19-Nov-2024
Mechatronics & Control Engineering Department, UET, Lahore
Question 1: Create a ladder diagram that can
monitor the drill breakage of a certain drill
machine. The drill (D1) operates for as long as
a push button (S1) is kept pressed. The drill on
the drilling unit is monitored by means of a
drill breakage sensor (B1). If the drill is broken,
the sensor interrupts the circuit which is being
used for turning on the drill. Moreover, a
Buzzer (H1) sounds an alarm if this happens.
The buzzer may only be switched off via NC
latching push button S2. Lastly, the drill can
only operate if the switch S2 is not pressed.
Design Ladder Diagram in TIA Portal software
and insert the solution in the given space.
Lab Manual for the Course of MCT-334 Industrial Automation
Developed by Muhammad Rzi Abbas – Dated: 19-Nov-2024
Mechatronics & Control Engineering Department, UET, Lahore
Question 2: Design a ladder logic diagram starts with the conveyor when a START/STOP button is
pressed, and a load sensor detects a package on the conveyor. When the packages reach the end of
the conveyor, a proximity sensor detects it, and the packaging mechanism starts. The conveyor
should turn OFF if there is no package for 10 second. Moreover, the system should keep track of the
number of packages the system has packaged. Design this ladder diagram on TIA Portal. Insert the
snapshot of the designed ladder diagram in the given space below.
Lab Manual for the Course of MCT-334 Industrial Automation
Developed by Muhammad Rzi Abbas – Dated: 19-Nov-2024