Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use PLC S7-1200: Examples, Pinouts, and Specs

Image of PLC S7-1200
Cirkit Designer LogoDesign with PLC S7-1200 in Cirkit Designer

Introduction

The Siemens S7-1200 (Part ID: 1) is a modular programmable logic controller (PLC) designed for automation and control applications. It is part of Siemens' SIMATIC series and is known for its compact design, integrated input/output (I/O) capabilities, and support for various communication protocols. The S7-1200 is ideal for small to medium-sized automation tasks, offering flexibility, scalability, and ease of integration into industrial systems.

Explore Projects Built with PLC S7-1200

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Stepper Motor Control System with SIMATIC S7-300 and TB6600 Driver
Image of Copy of PLC-Based Step Motor Speed and Direction Control System: A project utilizing PLC S7-1200 in a practical application
This circuit controls a stepper motor using a tb6600 micro stepping motor driver and a DKC-1A stepper motor controller. The system is powered through panel mount banana sockets and includes a relay module for additional control, interfaced with a SIMATIC S7-300 PLC for automation.
Cirkit Designer LogoOpen Project in Cirkit Designer
PLC-Controlled Power Window System with Infrared Sensing and Relay Module
Image of wiring FYP: A project utilizing PLC S7-1200 in a practical application
This circuit is designed to control a motorized window system using a PLC (Programmable Logic Controller) and an array of sensors and switches. It includes power supplies for 12V and 24V DC, an MCB (Miniature Circuit Breaker) for protection, and a relay module interfaced with an Arduino for additional control logic. The PLC manages inputs from pushbuttons, a 3-position switch, infrared proximity sensors, and an emergency stop, and it controls outputs such as the motor speed controller, lamps, and solenoid valves.
Cirkit Designer LogoOpen Project in Cirkit Designer
Cellular-Enabled IoT Device with Real-Time Clock and Power Management
Image of LRCM PHASE 2 BASIC: A project utilizing PLC S7-1200 in a practical application
This circuit features a LilyGo-SIM7000G module for cellular communication and GPS functionality, interfaced with an RTC DS3231 for real-time clock capabilities. It includes voltage sensing through two voltage sensor modules, and uses an 8-channel opto-coupler for isolating different parts of the circuit. Power management is handled by a buck converter connected to a DC power source and batteries, with a fuse for protection and a rocker switch for on/off control. Additionally, there's an LED for indication purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Smart Power Monitoring and Control System with OLED Display
Image of Sistem monitoring terminal listrik rumah tangga: A project utilizing PLC S7-1200 in a practical application
This circuit is designed to monitor and control a 120V AC outlet using an ESP32 microcontroller. It includes a PZEM004t module for measuring voltage, current, and power, and a 12V relay to switch the outlet on and off. An OLED display is used to show real-time data, and the HLK-PM12 module provides the necessary 5V and 3.3V power to the components.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with PLC S7-1200

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Copy of PLC-Based Step Motor Speed and Direction Control System: A project utilizing PLC S7-1200 in a practical application
Stepper Motor Control System with SIMATIC S7-300 and TB6600 Driver
This circuit controls a stepper motor using a tb6600 micro stepping motor driver and a DKC-1A stepper motor controller. The system is powered through panel mount banana sockets and includes a relay module for additional control, interfaced with a SIMATIC S7-300 PLC for automation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of wiring FYP: A project utilizing PLC S7-1200 in a practical application
PLC-Controlled Power Window System with Infrared Sensing and Relay Module
This circuit is designed to control a motorized window system using a PLC (Programmable Logic Controller) and an array of sensors and switches. It includes power supplies for 12V and 24V DC, an MCB (Miniature Circuit Breaker) for protection, and a relay module interfaced with an Arduino for additional control logic. The PLC manages inputs from pushbuttons, a 3-position switch, infrared proximity sensors, and an emergency stop, and it controls outputs such as the motor speed controller, lamps, and solenoid valves.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of LRCM PHASE 2 BASIC: A project utilizing PLC S7-1200 in a practical application
Cellular-Enabled IoT Device with Real-Time Clock and Power Management
This circuit features a LilyGo-SIM7000G module for cellular communication and GPS functionality, interfaced with an RTC DS3231 for real-time clock capabilities. It includes voltage sensing through two voltage sensor modules, and uses an 8-channel opto-coupler for isolating different parts of the circuit. Power management is handled by a buck converter connected to a DC power source and batteries, with a fuse for protection and a rocker switch for on/off control. Additionally, there's an LED for indication purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Sistem monitoring terminal listrik rumah tangga: A project utilizing PLC S7-1200 in a practical application
ESP32-Based Smart Power Monitoring and Control System with OLED Display
This circuit is designed to monitor and control a 120V AC outlet using an ESP32 microcontroller. It includes a PZEM004t module for measuring voltage, current, and power, and a 12V relay to switch the outlet on and off. An OLED display is used to show real-time data, and the HLK-PM12 module provides the necessary 5V and 3.3V power to the components.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Industrial automation and process control
  • Machine control and monitoring
  • Building automation systems
  • Data acquisition and communication
  • Integration with SCADA (Supervisory Control and Data Acquisition) systems
  • IoT (Internet of Things) applications in smart factories

Technical Specifications

Key Technical Details

Parameter Specification
Manufacturer Siemens
Part ID 1
Power Supply Voltage 24 V DC
CPU Variants Available in multiple variants (e.g., CPU 1211C, CPU 1212C, CPU 1214C, etc.)
Integrated I/O Digital and analog inputs/outputs (varies by model)
Communication Protocols PROFINET, Modbus TCP, and optional PROFIBUS
Programming Language Ladder Logic (LAD), Function Block Diagram (FBD), Structured Text (ST)
Programming Software TIA Portal (Totally Integrated Automation Portal)
Memory Up to 125 KB for program and 4 MB for data (varies by model)
Operating Temperature Range -20°C to +60°C
Dimensions Compact design, varies by model (e.g., 90 x 100 x 75 mm for CPU 1211C)

Pin Configuration and Descriptions

The S7-1200 PLC has multiple models, each with varying I/O configurations. Below is an example pin configuration for the CPU 1211C model:

Digital Inputs

Pin Number Description Voltage Range
1 Digital Input 0 (DI0) 24 V DC
2 Digital Input 1 (DI1) 24 V DC
3 Digital Input 2 (DI2) 24 V DC
4 Digital Input 3 (DI3) 24 V DC

Digital Outputs

Pin Number Description Voltage/Current Rating
5 Digital Output 0 (DO0) 24 V DC / 0.5 A
6 Digital Output 1 (DO1) 24 V DC / 0.5 A

Power Supply and Communication

Pin Number Description Voltage/Signal Type
7 Power Supply Positive (L+) 24 V DC
8 Power Supply Negative (M) Ground
9 PROFINET Port 1 (RJ45) Ethernet Communication
10 PROFINET Port 2 (RJ45) Ethernet Communication

Usage Instructions

How to Use the S7-1200 in a Circuit

  1. Power Supply Connection: Connect a 24 V DC power supply to the L+ and M terminals of the PLC.
  2. Input/Output Wiring: Wire the digital and analog inputs/outputs as per your application requirements. Ensure proper voltage levels and current ratings are adhered to.
  3. Communication Setup: Use the PROFINET ports for Ethernet-based communication. Configure the IP address and network settings using the TIA Portal software.
  4. Programming:
    • Install Siemens' TIA Portal software on your PC.
    • Create a new project and select the appropriate S7-1200 CPU model.
    • Write your control logic using Ladder Logic (LAD), Function Block Diagram (FBD), or Structured Text (ST).
    • Download the program to the PLC via the Ethernet connection.
  5. Testing and Debugging: Use the TIA Portal's online monitoring tools to test and debug your program in real-time.

Important Considerations and Best Practices

  • Power Supply: Use a regulated 24 V DC power supply to avoid voltage fluctuations.
  • Grounding: Ensure proper grounding to prevent electrical noise and interference.
  • Communication: Use shielded Ethernet cables for PROFINET communication to minimize signal loss.
  • Firmware Updates: Regularly update the PLC firmware via the TIA Portal to ensure compatibility and security.
  • Environmental Conditions: Operate the PLC within the specified temperature and humidity ranges.

Example Code for Arduino UNO Communication

The S7-1200 can communicate with an Arduino UNO via Modbus TCP. Below is an example Arduino sketch for reading data from the PLC:

#include <Ethernet.h>
#include <ModbusTCP.h>

// Define Ethernet settings for Arduino
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // MAC address
IPAddress ip(192, 168, 0, 100); // Arduino IP address
IPAddress plc_ip(192, 168, 0, 1); // S7-1200 PLC IP address

// Initialize ModbusTCP client
ModbusTCP modbus;

void setup() {
  // Start Ethernet connection
  Ethernet.begin(mac, ip);
  Serial.begin(9600);
  while (!Serial) {
    ; // Wait for serial port to connect
  }
  Serial.println("Ethernet initialized.");

  // Connect to PLC
  if (modbus.connect(plc_ip, 502)) {
    Serial.println("Connected to S7-1200 PLC.");
  } else {
    Serial.println("Failed to connect to PLC.");
  }
}

void loop() {
  // Read holding register from PLC (example: register 40001)
  uint16_t value;
  if (modbus.readHoldingRegisters(1, 1, &value)) {
    Serial.print("Register Value: ");
    Serial.println(value);
  } else {
    Serial.println("Failed to read register.");
  }

  delay(1000); // Wait 1 second before next read
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. PLC Not Powering On:

    • Check the power supply voltage (should be 24 V DC).
    • Verify the wiring connections to the L+ and M terminals.
  2. Communication Failure:

    • Ensure the Ethernet cable is properly connected to the PROFINET port.
    • Verify the IP address and subnet mask settings in the TIA Portal.
  3. Program Not Downloading:

    • Check the connection between the PC and PLC.
    • Ensure the correct CPU model is selected in the TIA Portal project.
  4. Inputs/Outputs Not Responding:

    • Verify the wiring of the I/O terminals.
    • Check the program logic for errors or misconfigurations.

FAQs

Q: Can the S7-1200 be expanded with additional modules?
A: Yes, the S7-1200 supports expansion modules for additional I/O, communication, and functionality.

Q: What programming languages are supported?
A: The S7-1200 supports Ladder Logic (LAD), Function Block Diagram (FBD), and Structured Text (ST).

Q: Is the S7-1200 compatible with SCADA systems?
A: Yes, the S7-1200 can be integrated with SCADA systems using communication protocols like PROFINET and Modbus TCP.

Q: How do I update the firmware?
A: Firmware updates can be performed using the TIA Portal software. Ensure the PLC is connected to your PC via Ethernet.