RSTL Automation LLC

Free shipping worldwide. 

Siemens S7-1200 Complete Programming Guide: From Beginner to Professional

Industrial Automation Equipment - Siemens Schneider ABB PLC Controller

🚀 Master Siemens S7-1200 PLC Programming

The Ultimate Guide for Industrial Automation Professionals

📖 15 min read
💼 Professional Level
✅ Updated 2024

🔰 Introduction: Why Choose S7-1200?

The Siemens S7-1200 has become the #1 choice for small to medium automation projects worldwide. But why?

50K+
Installations Daily
85%
Market Share in EU
$299
Starting Price

💡 Key Advantages

  • ✅ Compact Design – Fits anywhere, perfect for space-constrained installations
  • ✅ Integrated Ethernet – Programming, HMI, and network connectivity out of the box
  • ✅ Scalable – Start small, expand as your needs grow
  • ✅ TIA Portal – Modern development environment for all Siemens devices
  • ✅ Global Support – 24/7 technical assistance in 50+ countries

⚙️ Hardware Configuration Deep Dive

Let’s break down the S7-1200 family and help you choose the right CPU for your project.

CPU ModelDigital I/OMemoryBest ForPrice Range
CPU 1211C6 DI / 4 DO50 KB🎯 Beginners$250-300
CPU 1212C8 DI / 6 DO75 KB🎯 Small Projects$300-350
CPU 1214C14 DI / 10 DO100 KB🎯 Most Popular$400-450
CPU 1215C14 DI / 10 DO + 2 AQ125 KB🎯 Advanced$550-600

💡 Pro Tip: Start with CPU 1214C

For 90% of projects, the CPU 1214C offers the best balance of price and performance. It has enough I/O and memory for most applications while keeping costs reasonable.

💻 Programming with TIA Portal

📦 Required Software

TIA Portal V17+
Full Version ($1500+)
TIA Portal Basic
Starter Edition (~$300)
Trial Version
21 Days Free

🔧 Step-by-Step Setup

1

Create New Project

Open TIA Portal → Create new project → Name it → Save

2

Add Device

Select PLC → Choose your CPU model → Confirm

3

Configure IP Address

PROFINET → Set IP (e.g., 192.168.1.10) → Subnet mask

4

Write Your First Program

Open OB1 → Drag LAD contacts → Assign addresses → Save

🚀 Advanced Programming Techniques

⏱️ Using Timers (TON, TOF, TP)

// TON (Timer On-Delay)
// When I0.0 turns ON, Q0.0 turns ON after 5 seconds
I0.0 ---[TON T#5S]---( )--- Q0.0

// TOF (Timer Off-Delay)  
// When I0.1 turns OFF, Q0.1 stays ON for 3 seconds
I0.1 ---[TOF T#3S]---( )--- Q0.1

// TP (Pulse)
// Generates a 2-second pulse when triggered
I0.2 ---[TP T#2S]---( )--- Q0.2

🔢 Using Counters (CTU, CTD, CTC)

// CTU (Count Up)
// Counts to 10, then sets output
I0.3 ---[CTU C#10]---( )--- Q0.3

// CTD (Count Down)
// Counts down from preset value
I0.4 ---[CTD C#5]---( )--- Q0.4

🛠️ Real-World Project: Conveyor Control

🎯 Project: Bottle Filling Station

📥 Inputs

  • I0.0 – Start Button
  • I0.1 – Stop Button
  • I0.2 – Bottle Sensor
  • I0.3 – Level Sensor
  • I0.4 – Emergency Stop

📤 Outputs

  • Q0.0 – Conveyor Motor
  • Q0.1 – Filling Valve
  • Q0.2 – Capper
  • Q0.3 – Reject Solenoid
  • Q0.4 – Alarm Light

📝 Sample Logic

// Main Control Logic
Network 1: Start/Stop Latch
I0.0 (Start) ---[S]--- Q0.0 (Motor)
I0.1 (Stop) ---[R]--- Q0.0

Network 2: Bottle Detection & Filling
I0.2 (Bottle) AND Q0.0 (Motor Running) ---[TON T#2S]--- Q0.1 (Fill)

Network 3: Level Check
I0.3 (Full) AND Q0.1 (Filling) ---[=]--- Q0.0 (Stop Motor)

🔧 Troubleshooting Common Issues

❌ Can’t Go Online

→ Check IP addresses (must be same subnet)

→ Verify Ethernet cable

→ Disable Windows Firewall

⚠️ PLC Stuck in STOP

→ Check diagnostic buffer in TIA Portal

→ Look for fatal errors

→ Reset to factory defaults if needed

💡 Outputs Not Working

→ Verify 24V power supply

→ Check wiring connections

→ Confirm PLC is in RUN mode

📦 Ready to Start Your Project?

We stock all S7-1200 CPU models with fast worldwide shipping.

📅 Last Updated: April 2024 | 👁️ 15,000+ Views | ⭐ Helpful? Rate this article

Leave a Reply

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

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare
Shopping cart close