Siemens S7-1200 PLC Complete Guide: Step-by-Step Installation, TIA Portal Programming & SF Light Fixes

Apr 14, 2025

Leave a message

Preface

Siemens S7-1200 PLC, with its modular design, cost-effectiveness, and industrial-grade reliability, commands a 35% share of the global small and medium automation market (source: ARC Advisory Group). With its flexible expansion capabilities (supporting up to 8 signal modules and 3 communication modules), it meets 90% of light industry scenario requirements, from food packaging lines to intelligent building control. As a leader in the small and medium PLC sector, the Siemens S7-1200 PLC offers substantial advantages in hardware configuration and software programming, particularly due to its Ethernet-based programming and communication features, which bring limitless possibilities for its application.

 

Overview of Siemens S7-1200 PLC Hardware

1. Overview of PLC

 

 

PLC stands for Programmable Logic Controller. Since the first PLC was introduced in 1960, it has rapidly been applied in various fields such as automotive manufacturing, machining, metallurgy, mining, and light industry, significantly accelerating the transition from Industry 2.0 to Industry 4.0.

 

A PLC is a new type of industrial control device that integrates computer technology, automation control technology, and communication technology based on microprocessors and embedded chips. It is a major means of industrial control and one of the important basic devices, alongside robotics and CAD/CAM, constituting the three pillars of industrial production.

With long-term development and improvement, the programming concepts and control philosophies of PLCs have become familiar to many automation professionals. It represents a vast knowledge resource unmatched by any other industrial controllers (including DCS and ECS). Practice has further demonstrated that PLC systems possess mature hardware technologies, favorable performance-to-price ratios, stable and reliable operation, straightforward development processes, and low operating and maintenance costs. Therefore, PLCs have vibrant vitality and are rapidly evolving.

 

2. Siemens S7-1200 PLC

The internal structure of the Siemens S7-1200 PLC module includes the CPU, power supply, input signal processing circuit, output signal processing circuit, storage area, RJ45 port, and expansion module interface.

 

The International Electrotechnical Commission (IEC) issued the first and second drafts of the PLC standard in November 1982 and January 1985, respectively, defining PLC as "an electronic system with digital computation operations, specially designed for applications in industrial environments: PLCs can use programmable memory to store commands for executing logical operations, sequential control, timing, counting, and arithmetic calculations, and control various types of machinery and production processes through digital and analog inputs and outputs; PLCs and their related devices should be easy to connect to an industrial control system as a whole and are designed with the principle of easy functional expansion in mind." According to this definition, the essence of the Siemens S7-1200 PLC is a computer responsible for scheduling, managing, running, and self-diagnosing the system program, specifically for compiling and interpreting the user program and scheduling the tasks of running the user's target program. The significant difference from the Siemens S7-200 series PLC modules is that the Siemens S7-1200 PLC is standardly equipped with an Ethernet interface RJ45, enabling programming and configuration with a standard network cable connected to a computer installed with TIA Portal software.

 

Siemens-S7-1200

S7-1200 PLC

 

Currently, Siemens offers various types of S7-1200 PLCs, including CPU1211C, CPU1212C, CPU1214C, and CPU1215C.

 

Detailed Hardware Configuration of S7-1200 PLC

1. Core Module Composition

 

CPU Module:

         Model Differences:

Model

Digital I/O Points

High-speed Technology

Pulse Output

Maximum Expansion Modules

CPU 1211C

8 DI/6 DO

4 4 3

CPU 1215C

14 DI/10 DO

6 6 8

Selection Recommendation: For high-precision control scenarios like CNC machines, the CPU 1215C is preferred (supports 1 MHz pulse output).

Power Supply Module:

PM 1207: 24V DC output, maximum load current 1.3A. Note that the total power consumption should not exceed the rated value of the CPU (e.g., 1211C maximum 5W).

 

2. Signal Module (SM) Selection

 

Digital Modules:

SM 1221 DI 16x24VDC: Supports sinking/source input; input delay programmable (0.1 ms~20 ms).

Analog Modules:

SM 1231 AI 8x13: Supports ±10V/0-20mA inputs; typical applications include pressure sensor signal acquisition.

 

3. Communication Module (CM) Configuration

CM 1243-5: PROFINET communication module, supports connection of up to 16 IO devices, requires IP address configuration (e.g., 192.168.0.1/24).

 

S7-1200 PLC Installation and Wiring Standards

1. Mechanical Installation Steps

 

  • Snap the CPU card onto the 35mm DIN rail, ensuring the latch is locked (torque 0.6~0.8 N·m).
  • When installing expansion modules, they must be aligned from right to left, and the bus connectors between modules will automatically connect.

2. Electrical Wiring Key Points

 

Digital Input Wiring:

  • Use M12 connectors, wire diameter 0.5~1.5 mm², shielding layer grounded on one side (connected to PLC chassis).
  • Example: Connect the emergency stop button to I0.0 with a normally closed contact configuration.

Analog Interference Mitigation:

  • Use twisted shielded cables (e.g., Belden 8761) for signal lines; if the distance exceeds 10 meters, add a signal isolator.

Common Errors:

  • Unisolated 24V sensor power sharing ground with the PLC power results in analog signal drift.
  • Communication cables (e.g., PROFINET) not using dedicated shielded connectors cause packet loss faults.

 

TIA Portal Programming Practice

1. Project Creation and Hardware Configuration

  • Open TIA Portal V18, and select "New Project" > "S7-1200" series.
  • Drag and drop CPU 1214C into the device view, and right-click to add the SM 1231 AI module.
  • Assign IP address: Go to "Device Properties" > "PROFINET Interface" > set static IP (e.g., 192.168.0.10).

2. Ladder Diagram (LAD) Programming Example

Motor Start-Stop Control Logic:

 

TIA Portal Programming Practice

 

Debugging Tools:

 

Force Table: Temporarily override I0.0 state to simulate button input.

Cross Reference: Track all call points of Q0.0 in the program.

 

Common S7-1200 PLC Faults and Solutions

1. SF system fault light solutions

 

Cause:

  • Missing organization blocks (e.g., OB82 not handling disconnection of the analog module).
  • Incompatible firmware version (e.g., TIA Portal V18 project downloaded to V15 firmware)

Solution:

  • Download missing OB block templates from the Siemens support website.
  • Upgrade firmware to the matching version (requires SD card operation).

 

2. How to fix S7-1200 PROFINET packet loss

 

  • Diagnostic Steps:
  • Check switch port status (a green light always on indicates normal).
  • Use "Online and Diagnostics" > "Update Device List" to rescan the network.
  • Verify GSD file version (e.g., ET200SP requires GSDML V2.3 or above).

 

3. Analog Input Value Fluctuation

Troubleshooting Methods:

  • Short the AI channel input; if the reading returns to zero, there is external signal interference.
  • Enable "Analog Filtering" in TIA Portal (default set to 10 ms).

 

Maintenance and Upgrade Strategies

1. Data Backup and Recovery

 

  • Insert the Siemens original storage card (6ES7 954-8LF03-0AA0).
  • In TIA Portal, select "Online" > "Copy to Storage Device."

Recovery Process: Power off, insert card, then power on to automatically load the project.

 

2. Siemens PLC firmware upgrade using SD card

 

  • Download firmware files (.upd format) from the Siemens support website.
  • Format an SD card to FAT32, and copy files to the root directory.
  • Insert into the PLC card slot, restart to automatically update (the RUN/STOP light will blink alternately during the upgrade).
Send Inquiry