s71200_getting_started_en-US.pdf

(3401 KB) Pobierz
S7-1200 Getting started with S7-1200
Preface
S7-1200 Getting started with S7-1200
1
Quick review
2
SIMATIC
3
Create a simple latch circuit
S7-1200
Getting started with S7-1200
4
5
Getting Started
11/2009
A5E02486791-01
Installation
Complete the user program
Use a watch table for
monitoring
389298697.010.png 389298697.011.png
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
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
CAUTION
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
NOTICE
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
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 for the specific task, 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 adhered to. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of the 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.
Siemens AG
Industry Sector
Postfach 48 48
90026 NÜRNBERG
GERMANY
A5E02486791-01
Ⓟ 10/2009
Copyright © Siemens AG 2009.
Technical data subject to change
Legal information
389298697.012.png 389298697.013.png 389298697.001.png 389298697.002.png 389298697.003.png 389298697.004.png
Preface
As part of the SIMATIC commitment to "totally
integrated automation" (TIA), the S7-1200 product
family and the STEP 7 Basic programming package
give you the tools for creating your automation
application. The compact design, low cost, and powerful
features make the S7-1200 compact controller a perfect
solution for controlling small applications.
The examples in this document guide your first steps in
the world of S7-1200, teaching you the basic skills
within the shortest possible time.
Note
Review the S7-1200 Programmable Controler System Manual for safety guidelines
This quick-start guide provides only a quick introduction to the world of S7-1200. Before
performing the exercises in this quick-start guide, review the safety guidelines and other
information in the SIMATIC S7-1200 Programmable Controler System Manua.
Parts list
Description
Quantity
Order number
CPU 1212C AC/DC/RLY
1 6ES7212-1BD30-0XB0
Simulator: SIM 1274 (digital inputs)
1 6ES7274-1XF30-0XA0
Standard Ethernet CAT5 cable
1 6XV1850-2GH20
STEP 7 Basic programming software
1 6ES7822 -0AA00-0YA0
The starter kit also contains the S7-1200 documentation collection CD.
Note
You must provide a power cord for the CPU.
The CPU 1212C AC/DC/RLY requires 120/240 VAC. You must provide a power cord and
connect it to the CPU. For any other CPU, refer to the S7-1200 Programmable Controler
System Manual for power requirements and installation procedures.
Getting started with S7-1200
Getting Started, 11/2009, A5E02486791-01
3
389298697.005.png 389298697.006.png
Preface
Contact information
For additional information, refer to the S7-1200 programmable controler system manua.
Use the customer support web site ( http://www.siemens.com/automation/support-request )
to search for specific information about products or to contact technical support
representatives.
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.
Getting started with S7-1200
4
Getting Started, 11/2009, A5E02486791-01
389298697.007.png 389298697.008.png
Table of contents
Preface..................................................................................................................................................... . 3
1 Quick review............................................................................................................................................. . 7
1.1 Basic information about how the CPU works............................................................................... ..8
1.1.1 Tasks performed every scan cycle .............................................................................................. ..8
1.1.2 Operating modes of the CP U.................................................................................................... ... ..9
1.1.3 Digital data stored in bits, bytes, words and more....................................................................... 10
1.1.4 Data types supported by the S7-1200 ......................................................................................... 11
1.1.5 Memory areas of the S7-1200 ..................................................................................................... 12
1.2 From schematic diagram to user program................................................................................... 13
1.2.1 Converting the schematic to LAD instructions............................................................................. 14
1.2.2 Basic electrical circuits................................................................................................................. 16
1.3 Basic features of STEP 7 Basic................................................................................................... 18
1.3.1 Help when you need it ................................................................................................................. 19
1.3.2 Printing from the online help........................................................................................................ 20
1.3.3 Inserting instructions.................................................................................................................... 21
1.3.4 Dragging and dropping between editors...................................................................................... 22
1.3.5 Detecting the configuration of a CPU .......................................................................................... 23
1.3.6 Changing the settings for the work area...................................................................................... 24
2 Installation ............................................................................................................................................... 25
2.1 Read this first for safety information ............................................................................................ 25
2.2 Dimensions and guidelines.......................................................................................................... 26
2.3 Connecting the hardware............................................................................................................. 27
2.4 Installing STEP 7 Basic................................................................................................................ 28
3 Create a simple latch circuit..................................................................................................................... 29
3.1 Create a project for your user program........................................................................................ 30
3.2 Create a simple network in your user program............................................................................ 31
3.3 Enter the tags and addresses for the instructions ....................................................................... 33
3.4 Configure the CPU....................................................................................................................... 35
3.5 Download the user program to the CPU...................................................................................... 37
3.6 Test the operation of your sample user program......................................................................... 38
3.7 Reviewing the tasks for the first exercise .................................................................................... 39
4 Complete the user program..................................................................................................................... 41
4.1 Add an on-delay timer to delay the start of an output.................................................................. 42
4.2 Turn on an output for 5 seconds.................................................................................................. 45
4.3 Editing your user program for a different structure...................................................................... 48
Getting started with S7-1200
Getting Started, 11/2009, A5E02486791-01
5
389298697.009.png
Zgłoś jeśli naruszono regulamin