Siemens controllers run machines and process lines in factories all over the world, which is why "Siemens PLC" appears in so many automation job descriptions. If you are an EEE, ECE, EIE, Mechatronics or Mechanical student, or a diploma holder who wants to move into automation, the S7-1200 is the best place to start. This guide explains the hardware, the software and the programming basics in plain language, and finishes with a small project you can build yourself.
What is a PLC, in simple words?
A Programmable Logic Controller (PLC) is an industrial computer that reads inputs, runs a program and switches outputs, over and over, many times per second. Inputs are things like push buttons, limit switches, proximity sensors and level transmitters. Outputs are things like motor contactors, solenoid valves, indicator lamps and alarms.
That repeating loop is called the scan cycle:
- Read all inputs into memory (the process image).
- Execute the program from top to bottom.
- Write the results to the outputs.
- Repeat.
The scan cycle explains why an output only changes at the end of a scan.
Why start with the Siemens S7-1200?
The S7-1200 is Siemens' compact controller family for small and medium machines. It is a very good learning platform because:
- It is programmed in TIA Portal, the same engineering software used for larger Siemens controllers, HMIs and WinCC SCADA, so your skills carry forward.
- It supports digital and analog I/O, built-in Ethernet (PROFINET) and standard timers, counters and maths instructions.
- Many projects can be tested in PLCSIM, Siemens' simulator, so you can practise without buying hardware (depending on your software version and licence).
Getting to know TIA Portal
TIA Portal (Totally Integrated Automation Portal) can look overwhelming at first, but you only need a few areas to begin:
- Project tree – everything in your project: devices, program blocks, tags and HMI screens.
- Device configuration – where you add your CPU model and I/O modules so the software matches the real (or simulated) hardware.
- PLC tags – friendly names for addresses, for example
Start_PBfor input%I0.0andMotor_Runfor output%Q0.0. - Program blocks – your code. Every program starts in the main organisation block, OB1, which runs every scan. As programs grow, you add functions (FC), function blocks (FB) and data blocks (DB) to keep things organised.
Ladder logic basics
Ladder Logic (LAD) looks like an electrical drawing, which is why electricians and electrical engineers find it natural. Each horizontal line is a network (rung). Power flows from the left rail to the right through contacts to reach a coil.
- Normally open contact (–| |–) passes "power" when the tag is TRUE.
- Normally closed contact (–|/|–) passes power when the tag is FALSE.
- Coil (–( )–) sets the output TRUE while the rung is true.
The start/stop latch
The first program almost every PLC engineer writes is a motor start/stop circuit with a latch (seal-in):
- A normally open Start contact in parallel with a normally open contact of Motor_Run.
- In series with a normally closed Stop contact (and usually an overload contact).
- Driving the Motor_Run coil.
Press Start and the motor runs; the parallel Motor_Run contact keeps it running after you release Start. Press Stop and the latch breaks. Simple, but it teaches you power flow, interlocks and the scan cycle in one rung.
Timers and counters
Real machines depend on time and counting:
- TON (on-delay timer) – the output turns on after the input has been on for a preset time. Great for "start the conveyor 5 seconds after the alarm horn".
- TOF (off-delay timer) – the output stays on for a time after the input turns off, for example cooling fans that run on after a motor stops.
- CTU / CTD counters – count up or down on each rising edge, for example counting bottles on a line and stopping at 24 for a crate.
In the S7-1200, timers and counters are IEC instructions that store their data in an instance data block, so give each one a clear name.
Analog signals and scaling
Sensors such as level or pressure transmitters usually send a 4–20 mA or 0–10 V signal. The PLC converts it to a raw integer value, and you use NORM_X and SCALE_X instructions to turn that number into engineering units such as 0–100% or 0–10 bar. Analog scaling is a topic interviewers love, so practise it until it feels routine.
Your first mini-project: tank level control
Try this once you are comfortable with contacts, coils and timers:
- A low-level switch starts the inlet pump.
- A high-level switch stops the pump.
- If the high-level switch is not reached within a set time, raise an alarm.
- Add a manual/auto selector and an emergency stop that overrides everything.
Build it in TIA Portal, test it in PLCSIM where supported, and write short comments for each network. This small project covers latching, interlocks, timers and alarms, the core of real automation work.
Common beginner mistakes
- Writing the same output coil in two different places (the last one wins every scan).
- Forgetting that a normally closed physical stop button is wired as a normally open contact in logic (or the other way round).
- Not using tag names and comments.
- Skipping the basics of wiring diagrams. Read the drawing before you write the code.
How to keep learning
Once you are confident with the S7-1200, the natural next steps are Siemens HMI screens and WinCC SCADA, both in the same TIA Portal environment. In our live online Siemens S7-1200 PLC Programming course, you build these programs step by step with a trainer and ask doubts in class, in English or Tamil. You can then move on to Siemens HMI and Siemens WinCC SCADA, or take the PLC + HMI package.
Not sure where to start? Book a free demo class and see how practice works on your own laptop.
Frequently asked questions
Do I need a real Siemens PLC to learn?
No. For most beginner topics you can practise in TIA Portal with the PLCSIM simulator, where your software version and licence support it. Real hardware is needed only for physical I/O wiring and commissioning.
Is Siemens PLC programming hard for Mechanical students?
Not if you start with the basics. Ladder logic is visual, and a good course teaches the electrical concepts you need, such as contactors, sensors and wiring diagrams, before moving to programming.
Which language should I learn first: Ladder or FBD?
Start with Ladder Logic because it is the most common in maintenance and machine-building jobs. Function Block Diagram (FBD) is easy to pick up once ladder logic makes sense.
How long does it take to learn S7-1200 basics?
Our S7-1200 course is 25 hours across 25 one-hour live sessions. With daily practice, most beginners are comfortable with ladder logic, timers, counters and a small project by the end.