manuals.online logo
Brands
  1. Home
  2. •
  3. Brands
  4. •
  5. Siemens
  6. •
  7. Controllers
  8. •
  9. Siemens SIMATIC S7-1200 User manual

Siemens SIMATIC S7-1200 User manual

Other manuals for SIMATIC S7-1200

11

Other Siemens Controllers manuals

Siemens SINUMERIK 840D User manual

Siemens

Siemens SINUMERIK 840D User manual

Siemens TIM 1531 IRC User manual

Siemens

Siemens TIM 1531 IRC User manual

Siemens SIMATIC S7-1500R/H User manual

Siemens

Siemens SIMATIC S7-1500R/H User manual

Siemens BT300 LonWorks User manual

Siemens

Siemens BT300 LonWorks User manual

Siemens SIRIUS 3SX3217 User manual

Siemens

Siemens SIRIUS 3SX3217 User manual

Siemens AVS75.39 Series User manual

Siemens

Siemens AVS75.39 Series User manual

Siemens SITRANS L Administrator guide

Siemens

Siemens SITRANS L Administrator guide

Siemens SIMATIC PN/BACnet LINK User manual

Siemens

Siemens SIMATIC PN/BACnet LINK User manual

Siemens RMH760 User manual

Siemens

Siemens RMH760 User manual

Siemens SLX-ASC-PFCU User manual

Siemens

Siemens SLX-ASC-PFCU User manual

Siemens SIMATIC S7 User manual

Siemens

Siemens SIMATIC S7 User manual

Siemens SIMOVERT MASTERDRIVES MC Series User manual

Siemens

Siemens SIMOVERT MASTERDRIVES MC Series User manual

Siemens SQM5 Series Owner's manual

Siemens

Siemens SQM5 Series Owner's manual

Siemens Simatic S7-1500 User manual

Siemens

Siemens Simatic S7-1500 User manual

Siemens IP Control Center N152 User manual

Siemens

Siemens IP Control Center N152 User manual

Siemens MEC 1100 User manual

Siemens

Siemens MEC 1100 User manual

Siemens OpenAir GEB Series Owner's manual

Siemens

Siemens OpenAir GEB Series Owner's manual

Siemens FT2001-A1 User manual

Siemens

Siemens FT2001-A1 User manual

Siemens SIRIUS ET 200S User manual

Siemens

Siemens SIRIUS ET 200S User manual

Siemens LME SERIES Operating and maintenance instructions

Siemens

Siemens LME SERIES Operating and maintenance instructions

Siemens SQM40 Series User manual

Siemens

Siemens SQM40 Series User manual

Siemens Simatic S7-1500 Instruction sheet

Siemens

Siemens Simatic S7-1500 Instruction sheet

Siemens SQL321B Series User manual

Siemens

Siemens SQL321B Series User manual

Siemens SINUMERIK 810DE Technical Document

Siemens

Siemens SINUMERIK 810DE Technical Document

Popular Controllers manuals by other brands

Sunricher SR-ZV9003T3-RGBW-US Installation

Sunricher

Sunricher SR-ZV9003T3-RGBW-US Installation

Ksenia intro Installation and configuration manual

Ksenia

Ksenia intro Installation and configuration manual

Inovance CAN200 Series manual

Inovance

Inovance CAN200 Series manual

Gauzy LC6 FLEX Controller Installation and operation guide

Gauzy

Gauzy LC6 FLEX Controller Installation and operation guide

Viking SLP-1 Technical practice

Viking

Viking SLP-1 Technical practice

CKD KBX-30E-U Series instruction manual

CKD

CKD KBX-30E-U Series instruction manual

Sharp Energy Sun Flux User manual & installation guide

Sharp Energy

Sharp Energy Sun Flux User manual & installation guide

Yamaha RCX40 user manual

Yamaha

Yamaha RCX40 user manual

AB Quality PowerFlex 400 Frames D-H Service bulletin

AB Quality

AB Quality PowerFlex 400 Frames D-H Service bulletin

Yamaha MJC8 owner's manual

Yamaha

Yamaha MJC8 owner's manual

AL-KO ATC operating instructions

AL-KO

AL-KO ATC operating instructions

Savant SmartControl 2 Deployment guide

Savant

Savant SmartControl 2 Deployment guide

GameSir T3S user manual

GameSir

GameSir T3S user manual

Kostal inveor operating manual

Kostal

Kostal inveor operating manual

Emerson Yarway 20-55 Operating and safety instructions

Emerson

Emerson Yarway 20-55 Operating and safety instructions

CoCo ACM-LV24 Quick installation guide

CoCo

CoCo ACM-LV24 Quick installation guide

Brooks SLA5810/20 Installation and operation manual

Brooks

Brooks SLA5810/20 Installation and operation manual

SIGMA TEK SR 011 Technical manual

SIGMA TEK

SIGMA TEK SR 011 Technical manual

manuals.online logo
manuals.online logoBrands
  • About & Mission
  • Contact us
  • Privacy Policy
  • Terms and Conditions

Copyright 2025 Manuals.Online. All Rights Reserved.

Easy Book
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
SIMATIC
S7-1200
Easy Book
Manual
01/2015
A5E02486774
-AG
Preface
Introducing the powerful and
flexible S7-1200
1
STEP 7 makes the work
easy
2
Getting started
3
PLC concepts made easy
4
Easy to create the device
configuration
5
Programming made easy
6
Easy to communicate
between devices
7
PID is easy
8
Web server for easy Internet
connectivity
9
Motion control is easy
10
Easy to use the online tools
11
IO-Link is easy
12
Technical specifications
A
Exchanging a V3.0 CPU for
a V4.1 CPU
B
Siemens AG
Division Digital Factory
Postfach 48 48
90026 NÜRNBERG
GERMANY
A5E02486774-AG
Ⓟ
12/2014 Subject to change
Copyright © Siemens AG 2015.
All rights reserved
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by
personnel qualified
for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Easy Book
Manual, 01/2015, A5E02486774-AG 3
Preface
Welcome to the world of S7-1200. The SIMATIC S7-1200 compact controller is the modular,
space-saving controller for small automation systems that require either simple or advanced
functionality for logic, HMI and networking. The compact design, low cost, and powerful
features make the S7-1200 a perfect solution for controlling small applications.
As part of the SIMATIC commitment to "totally integrated automation" (TIA), the S7-1200
product family and the TIA Portal programming software give you the flexibility you need to
solve your automation needs.
The S7-1200 helps to make the most challenging tasks easy!
The SIMATIC S7-1200 controller solution, designed for the "compact" controller class, is
comprised of the SIMATIC S7-1200 controller and SIMATIC HMI Basic panels that can both
be programmed with the TIA Portal engineering software. The ability to program both
devices using the same engineering software significantly reduces development costs. The
TIA Portal includes STEP 7 for S7-1200 programming and WinCC for designing Basic panel
projects.
The S7
-1200 compact controller includes:
•
Built-in PROFINET
•
High-speed I/O capable of motion control, onboard
analog inputs to minimize space requirements and
the need for additional I/O, 4 pulse generators for
pulse-train and pulse-width applications (Page 70),
and up to 6 high-speed counters (Page 129)
•
On-board I/O points built into the CPU modules
provide from 6 to 14 input points and from 4 to 10
output points.
Signal modules for DC, relay, or analog I/O
expand the number of I/O points, and i
nno-
vative signal boards snap onto the front of
the CPU
to provide additional I/O (Page 18).
The
SIMATIC HMI Basic panels (Page 20)
were designed specifically for the S7
-1200.
This Easy Book provides an introduction to
the S7
-1200 PLC. The following pages offer
an overview of the many features
and capa-
bilities of the devices.
For additional information, refer to the
S7-1200 Programmable Controller System Manual
.
For information about UL and FM certification, CE labeling, C-Tick and other standards, refer
to the Technical specifications (Page 361).
Preface
Easy Book
4Manual, 01/2015, A5E02486774-AG
This manual describes the following products:
●STEP 7 V13 SP1 Basic and Professional
●S7-1200 CPU firmware release V4.1
Documentation and information
S7-1200 and STEP 7 provide a variety of documentation and other resources for finding the
technical information that you require.
●The S7-1200 Programmable Controller System Manual provides specific information
about the operation, programming, and the specifications for the complete S7-1200
product family. In addition to the system manual, the S7-1200 Easy Book provides a
more general overview to the capabilities of the S7-1200 family.
Both the system manual and the Easy Book are available as electronic (PDF) manuals.
The electronic manuals can be downloaded from the customer support web site and can
also be found on the documentation disk that ships with every S7-1200 CPU.
●The online STEP 7 information system provides immediate access to the conceptual
information and specific instructions that describe the operation and functionality of the
programming package and basic operation of SIMATIC CPUs.
●My Documentation Manager accesses the electronic (PDF) versions of the SIMATIC
documentation set, including the system manual, the Easy Book, and the STEP 7
information system. With My Documentation Manager, you can drag and drop topics from
various documents to create your own custom manual.
The customer support entry portal (http://support.automation.siemens.com) provides a
link to My Documentation Manager under mySupport.
●The customer support web site also provides podcasts, FAQs, and other helpful
documents for S7-1200 and STEP 7. The podcasts utilize short educational video
presentations that focus on specific features or scenarios in order to demonstrate the
interactions, convenience, and efficiency provided by STEP 7. Visit the following web
sites to access the collection of podcasts:
–STEP 7 Basic web page (http://www.automation.siemens.com/mcms/simatic-
controller-software/en/step7/step7-basic/Pages/Default.aspx)
–STEP 7 Professional web page (http://www.automation.siemens.com/mcms/simatic-
controller-software/en/step7/step7-professional/Pages/Default.aspx)
●You can also follow or join product discussions on the Service & Support technical forum
(https://www.automation.siemens.com/WW/forum/guests/Conferences.aspx?Language=e
n&siteid=csius&treeLang=en&groupid=4000002&extranet=standard&viewreg=WW&nodei
d0=34612486). These forums allow you to interact with various product experts.
–Forum for S7-1200
(https://www.automation.siemens.com/WW/forum/guests/Conference.aspx?SortField=
LastPostDate&SortOrder=Descending&ForumID=258&Language=en&onlyInternet=Fa
lse)
–Forum for STEP 7 Basic
(https://www.automation.siemens.com/WW/forum/guests/Conference.aspx?SortField=
LastPostDate&SortOrder=Descending&ForumID=265&Language=en&onlyInternet=Fa
lse)
Preface
Easy Book
Manual, 01/2015, A5E02486774-AG 5
Service and support
In addition to our documentation, Siemens offers technical expertise on the Internet and on
the customer support web site (http://www.siemens.com/tiaportal).
Contact your Siemens distributor or sales office for assistance in answering any technical
questions, for training, or for ordering S7 products. Because your sales representatives are
technically trained and have the most specific knowledge about your operations, process
and industry, as well as about the individual Siemens products that you are using, they can
provide the fastest and most efficient answers to any problems you might encounter.
Security information
Siemens provides products and solutions with industrial security functions that support the
secure operation of plants, solutions, machines, equipment and/or networks. They are
important components in a holistic industrial security concept. With this in mind, Siemens’
products and solutions undergo continuous development. Siemens recommends strongly
that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable
preventive action (e.g. cell protection concept) and integrate each component into a holistic,
state-of-the-art industrial security concept. Third-party products that may be in use should
also be considered. You can find more information about industrial security on the Internet
(http://www.siemens.com/industrialsecurity).
To stay informed about product updates as they occur, sign up for a product-specific
newsletter. You can find more information on the Internet
(http://support.automation.siemens.com).
Preface
Easy Book
6Manual, 01/2015, A5E02486774-AG
Easy Book
Manual, 01/2015, A5E02486774-AG 7
Table of contents
Preface ................................................................................................................................................... 3
1 Introducing the powerful and flexible S7-1200 ....................................................................................... 15
1.1 Introducing the S7-1200 PLC .................................................................................................15
1.2 Expansion capability of the CPU ............................................................................................18
1.3 S7-1200 modules....................................................................................................................19
1.4 Basic HMI panels ....................................................................................................................20
1.5 Mounting dimensions and clearance requirements ................................................................21
1.6 New features...........................................................................................................................26
2 STEP 7 makes the work easy ............................................................................................................... 29
2.1 Easy to insert instructions into your user program .................................................................30
2.2 Easy access to your favorite instructions from a toolbar ........................................................30
2.3 Easy to add inputs or outputs to LAD and FBD instructions...................................................31
2.4 Expandable instructions..........................................................................................................31
2.5 Easy to change the operating mode of the CPU ....................................................................32
2.6 Easy to modify the appearance and configuration of STEP 7................................................32
2.7 Project and global libraries for easy access ...........................................................................33
2.8 Easy to select a version of an instruction ...............................................................................33
2.9 Easy to drag and drop between editors ..................................................................................34
2.10 Changing the call type for a DB ..............................................................................................35
2.11 Temporarily disconnecting devices from a network................................................................36
2.12 Easy to virtually "unplug" modules without losing the configuration.......................................37
3 Getting started ...................................................................................................................................... 39
3.1 Create a project ......................................................................................................................39
3.2 Create tags for the I/O of the CPU..........................................................................................40
3.3 Create a simple network in your user program.......................................................................42
3.4 Use the PLC tags in the tag table for addressing the instructions..........................................44
3.5 Add a "box" instruction............................................................................................................45
3.6 Use the CALCULATE instruction for a complex mathematical equation................................46
3.7 Add an HMI device to the project............................................................................................48
3.8 Create a network connection between the CPU and HMI device ..........................................49
3.9 Create an HMI connection to share tags ................................................................................49
Table of contents
Easy Book
8Manual, 01/2015, A5E02486774-AG
3.10 Create an HMI screen............................................................................................................ 50
3.11 Select a PLC tag for the HMI element ................................................................................... 51
4 PLC concepts made easy ..................................................................................................................... 53
4.1 Tasks performed every scan cycle ........................................................................................ 53
4.2 Operating modes of the CPU................................................................................................. 55
4.3 Execution of the user program............................................................................................... 56
4.3.1 Processing the scan cycle in RUN mode............................................................................... 56
4.3.2 OBs help you structure your user program............................................................................ 57
4.3.3 Event execution priorities and queuing.................................................................................. 58
4.4 Memory areas, addressing and data types............................................................................ 61
4.4.1 Data types supported by the S7-1200 ................................................................................... 62
4.4.2 Addressing memory areas ..................................................................................................... 64
4.4.3 Accessing a "slice" of a tagged data type.............................................................................. 67
4.4.4 Accessing a tag with an AT overlay ....................................................................................... 68
4.5 Pulse outputs ......................................................................................................................... 70
5 Easy to create the device configuration ................................................................................................. 73
5.1 Uploading the configuration of a connected CPU.................................................................. 74
5.2 Adding a CPU to the configuration......................................................................................... 76
5.3 Changing a device ................................................................................................................. 77
5.4 Adding modules to the configuration ..................................................................................... 78
5.5 Configuration control.............................................................................................................. 79
5.6 Configuring the operation of the CPU and modules .............................................................. 80
5.6.1 System memory and clock memory provide standard functionality....................................... 82
5.7 Configuring the IP address of the CPU.................................................................................. 85
5.8 Protecting access to the CPU or code block is easy ............................................................. 87
5.8.1 Know-how protection ............................................................................................................. 89
5.8.2 Copy protection...................................................................................................................... 90
6 Programming made easy ...................................................................................................................... 93
6.1 Easy to design your user program......................................................................................... 93
6.1.1 Use OBs for organizing your user program ........................................................................... 95
6.1.2 FBs and FCs make programming the modular tasks easy.................................................... 97
6.1.3 Data blocks provide easy storage for program data .............................................................. 98
6.1.4 Creating a new code block..................................................................................................... 99
6.1.5 Creating reusable code blocks............................................................................................. 100
6.1.6 Calling a code block from another code block ..................................................................... 101
6.2 Easy-to-use programming languages .................................................................................. 101
6.2.1 Ladder logic (LAD) ............................................................................................................... 102
6.2.2 Function Block Diagram (FBD) ............................................................................................ 103
6.2.3 SCL overview ....................................................................................................................... 103
6.2.4 SCL program editor.............................................................................................................. 104
6.3 Powerful instructions make programming easy ................................................................... 105
6.3.1 Providing the basic instructions you expect......................................................................... 105
Table of contents
Easy Book
Manual, 01/2015, A5E02486774-AG 9
6.3.2 Comparator and Move instructions.......................................................................................108
6.3.3 Conversion operations ..........................................................................................................109
6.3.4 Math made easy with the Calculate instruction ....................................................................111
6.3.5 Timer operations ...................................................................................................................113
6.3.6 Counter operations ...............................................................................................................118
6.3.7 Pulse-width modulation (PWM) ............................................................................................121
6.4 Easy to create data logs .......................................................................................................122
6.5 Easy to monitor and test your user program ........................................................................124
6.5.1 Watch tables and force tables ..............................................................................................124
6.5.2 Cross reference to show usage ............................................................................................125
6.5.3 Call structure to examine the calling hierarchy.....................................................................126
6.5.4 Diagnostic instructions to monitor the hardware...................................................................127
6.5.4.1 Reading the states of the LEDs on the CPU ........................................................................127
6.5.4.2 Instructions for reading the diagnostic status of the devices................................................128
6.6 High-speed counter (HSC) ...................................................................................................129
6.6.1 Operation of the high-speed counter ....................................................................................131
6.6.2 Configuration of the HSC......................................................................................................137
7 Easy to communicate between devices............................................................................................... 139
7.1 Creating a network connection .............................................................................................140
7.2 Communication options ........................................................................................................141
7.3 V4.1 asynchronous communication connections .................................................................143
7.4 PROFINET and PROFIBUS instructions ..............................................................................146
7.5 PROFINET............................................................................................................................147
7.5.1 Open user communication....................................................................................................147
7.5.1.1 Ad hoc mode.........................................................................................................................148
7.5.1.2 Connection IDs for the Open user communication instructions ...........................................148
7.5.1.3 Parameters for the PROFINET connection ..........................................................................152
7.5.2 Configuring the Local/Partner connection path ....................................................................154
7.6 PROFIBUS............................................................................................................................157
7.6.1 Communications services of the PROFIBUS CMs...............................................................158
7.6.2 Reference to the PROFIBUS CM user manuals ..................................................................159
7.6.3 Adding the CM 1243-5 (DP master) module and a DP slave ...............................................160
7.6.4 Assigning PROFIBUS addresses to the CM 1243-5 module and DP slave.........................161
7.7 AS-i .......................................................................................................................................163
7.7.1 Adding the AS-i master CM 1243-2 and AS-i slave..............................................................164
7.7.2 Assigning an AS-i address to an AS-i slave .........................................................................165
7.8 S7 communication ................................................................................................................168
7.8.1 GET and PUT instructions ....................................................................................................168
7.8.2 Creating an S7 connection ...................................................................................................169
7.8.3 GET/PUT connection parameter assignment .......................................................................170
7.9 GPRS....................................................................................................................................171
7.9.1 Connection to a GSM network..............................................................................................171
7.9.2 Applications of the CP 1242-7 ..............................................................................................173
7.9.3 Other properties of the CP-1242-7 .......................................................................................174
7.9.4 Configuration and electrical connections ..............................................................................175
7.9.5 Further information................................................................................................................175
Table of contents
Easy Book
10 Manual, 01/2015, A5E02486774-AG
7.9.6 Accessories.......................................................................................................................... 176
7.9.7 Reference to GSM antenna manual .................................................................................... 177
7.9.8 Configuration examples for telecontrol ................................................................................ 177
7.10 PtP, USS, and Modbus communication protocols ............................................................... 182
7.10.1 Point-to-point communication .............................................................................................. 182
7.10.2 Using the serial communication interfaces .......................................................................... 184
7.10.3 PtP instructions .................................................................................................................... 185
7.10.4 USS instructions................................................................................................................... 186
7.10.5 Modbus instructions ............................................................................................................. 188
8 PID is easy ..........................................................................................................................................191
8.1 Inserting the PID instruction and technology object............................................................. 193
8.2 PID_Compact instruction ..................................................................................................... 195
8.3 PID_Compact instruction ErrorBit parameters..................................................................... 199
8.4 PID_3Step instruction .......................................................................................................... 201
8.5 PID_3Step instruction ErrorBit parameters.......................................................................... 208
8.6 PID_Temp instruction........................................................................................................... 210
8.6.1 Overview .............................................................................................................................. 210
8.6.2 Operation of the PID_Temp controller ................................................................................. 214
8.6.3 Cascading controllers .......................................................................................................... 216
8.7 PID_Temp instruction ErrorBit parameters .......................................................................... 220
8.8 Configuring the PID_Compact and PID_3Step controllers .................................................. 222
8.9 Configuring the PID_Temp controller................................................................................... 225
8.10 Commissioning the PID_Compact and PID_3Step controllers ............................................ 239
8.11 Commissioning the PID_Temp controller ............................................................................ 241
9 Web server for easy Internet connectivity .............................................................................................253
9.1 Easy to use the standard Web pages.................................................................................. 254
9.2 Constraints that can affect the use of the Web server......................................................... 256
9.3 Easy to create user-defined web pages .............................................................................. 257
9.3.1 Easy to create custom "user-defined" web pages ............................................................... 257
9.3.2 Constraints specific to user-defined Web pages ................................................................. 259
9.3.3 Configuration of a user-defined Web page .......................................................................... 260
9.3.4 Using the WWW instruction ................................................................................................. 260