s7 1200 to 200 transition manual en-us

48
Page 1 S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved. A5E02486860-01 Industry Sector © Siemens AG 11/2009. All Rights Reserved. Making the transition from S7-200 to S7-1200 Notes are available to supplement this presentation. To view the notes, select View > Notes Page or print the presentation with the Print > Print what: > Notes Pages option. S7-1200 and STEP 7 Basic The S7-1200 is the successor of the S7-200 and is available in June 2009. It is designed for and will be sold in the world wide market place. The S7-200 will remain an active Siemens product. STEP 7 Basic v10.5 programming package (ordered separately) is used with the S7-1200 - Supports LAD and FBD. STL is not supported. - Includes WinCC Basic for configuring HMI Basic panels. - No separate USB license stick is required. The software is automatically activated when installed. An export-import function for an S7-1200 project is not available in the initial release. To move project files from one PC to another PC, use the Windows explorer and PKZIP to copy the project files directory structure. S7-1200 Approvals S7-1200 hardware has the necessary approvals for the US and European market. The S7-1200 has FM approval for hazardous location: The Factory Mutual Research (FM): Approval Standard Class Number 3600 and 3611 Approved for use in: - Class I, Division 2, Gas Group A, B, C, D, Temperature Class 40° C - Class I, Zone 2, IIC, Temperature Class T4 Ta = 40° C The S7-1200 hardware has UL and CE approvals.

Upload: mactrumpher

Post on 30-Oct-2014

113 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: S7 1200 to 200 Transition Manual en-US

Page 1S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

© Siemens AG 11/2009. All Rights Reserved.

Making the transition from S7-200 to S7-1200

Notes are available to supplement this presentation. To view the notes, select View > Notes Pageor print the presentation with the Print > Print what: > Notes Pages option.

S7-1200 and STEP 7 Basic

The S7-1200 is the successor of the S7-200 and is available in June 2009. It is designed for and will be sold in the world wide market place.

The S7-200 will remain an active Siemens product.

STEP 7 Basic v10.5 programming package (ordered separately) is used with the S7-1200- Supports LAD and FBD. STL is not supported.- Includes WinCC Basic for configuring HMI Basic panels.- No separate USB license stick is required. The software is automatically activated when installed.

An export-import function for an S7-1200 project is not available in the initial release. To move project files from one PC to another PC, use the Windows explorer and PKZIP to copy the project files directory structure.

S7-1200 Approvals

S7-1200 hardware has the necessary approvals for the US and European market.

The S7-1200 has FM approval for hazardous location:

The Factory Mutual Research (FM): Approval Standard Class Number 3600 and 3611Approved for use in:

- Class I, Division 2, Gas Group A, B, C, D, Temperature Class 40° C- Class I, Zone 2, IIC, Temperature Class T4 Ta = 40° C

The S7-1200 hardware has UL and CE approvals.

Page 2: S7 1200 to 200 Transition Manual en-US

Page 2S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 2/48

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

System Expandability

7 (EM + CP) maximum

8 SM maximum

3 CM (Communication Module) maximum

S7-200

S7-1200

CPU

EM (Expansion Module)CP (Communication Processor)

CPU SM (Signal Module)CM

Instruction set

New data types

Resources

CPU 1214C DC/DC/Relay

CPU 1214C AC/DC/Relay

CPU 1214C DC/DC/DC

2 IN (0-10V)14 IN -10 OUTCPU 1214C

CPU 1212C DC/DC/Relay

CPU 1212C AC/DC/Relay

CPU 1212C DC/DC/DC 2 IN (0-10V)

8 IN – 6 OUTCPU 1212C

CPU 1211C DC/DC/Relay

CPU 1211C AC/DC/Relay

CPU 1211C DC/DC/DC

2 IN (0-10V)6 IN - 4 OUTCPU 1211C

Power, Signal IN, Signal OUT CPU Analog INCPU Digital I/OS7-1200 CPU

SB 1232 1 Analog Output

SB 1223 2 x 24 VDC Input / 2 x 24 VDC Output Signal Boards

SM 1234 4 x Analog Input / 2 x Analog Output

SM 1232 2 x Analog Output

SM 1231 4 x Analog Input

SM 1223 16 x 24 VDC Input / 16 x Relay Output

SM 1223 8 x 24 VDC Input / 8 x Relay Output

SM 1223 16 x 24 VDC Input / 16 x 24 VDC Output

SM 1223 8 x 24 VDC Input / 8 x 24 VDC Output

SM 1222 16 x Relay Output

SM 1222 8 x Relay Output

SM 1222 16 x 24 VDC Output

SM 1222 8 x 24 VDC Output SM 1221 16 x 24 VDC Input

SM 1221 8 x 24 VDC Input

Signal Modules

S7-1200 Signal Modules and Signal Boards

CM 1241 RS485CM 1241 RS232

S7-1200 Communication Modules

Page 3: S7 1200 to 200 Transition Manual en-US

Page 3S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 3/48

CPU on-board I/O and SB (Signal Board) I/O

* In planning

The Signal Board expands the S7-1200 CPU I/O without increasing the CPU footprint size

168PID Closed loop controller

66HSC High Speed Counter

2 2

PWM / PTO

Pulse Width Modulation

Pulse Train Output

1 on SB1AO Analog Output

22AI Analog Input

10+ (2 on SB)10DO Digital Output

14+ (2 on SB)14DI Digital Input

S7-1200 CPU 1214CS7-200 CPU 224XP

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources1 optional Signal Board (SB) can be inserted in the front of the CPU

The initial release on the STEP 7 Basic V10.5 software and S7-1200 hardware set does not include the S7-200 expansion module types shown below. To use the S7-1200 CPU for an S7-200 application that uses these modules, you must use a different method to replace the function of these I/O modules. For example, there is no S7-1200 RTD or Thermocouple module. However, you can use standard analog modules with temperature sensors. The user program can perform a linearization of the sensor output.

CP 243-2 ASi master module

CP 243-1 IT Internet module

EM 253 Position module

EM 277 PROFIBUS DP module

EM 222 Digital Output (4 x Relays 10A)

EM 231 Analog Input RTD, 8 Inputs

EM231 Analog Input, 8 Inputs

SIMATIC TD (RS485 connection Text Display) TD 100C, TD 200, TD 200C, TD400C, OP73micro, TP177micro

SIWAREX MS Micro Scale module

EM 241 Modem module

EM 231 Analog Input Thermocouple, 4 Inputs

EM 231 Analog Input RTD, 4 InputsEM 231 Analog Input RTD, 2 Inputs

EM231 Analog Output, 4 Outputs

EM 221 Digital 8 AC Inputs (8 x 120/230 VAC)

EM 222 Digital 8 AC Outputs (8 x 120/230 VAC)

EM 231 Analog Input Thermocouple, 8 Inputs

S7-200 module types with no equivalent S7-1200 module (for initial S7-1200 hardware release)

Page 4: S7 1200 to 200 Transition Manual en-US

Page 4S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 4/48

Hardware configuration S7-200

Expansion modules are automatically recognized when connected and powered

STEP 7-Micro/WIN “SET PG/PC Interface” window configures the communication driver

STEP 7-Micro/WIN “Communications” uses the selected driver to scan and connect CPUstations

STEP 7-Micro/WIN “System Block” window configures CPU parameters

A System Block download operation transfers the new hardware configuration into the target CPU

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 5: S7 1200 to 200 Transition Manual en-US

Page 5S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 5/48

Hardware configuration S7-1200

STEP 7 Basic uses a visual configuration where you create an image of your actual hardware set

Hardware modules are selected from a hardware catalog tree and dragged into a rack image

After your system hardware image is assembled, use a mouse click on an item in the system imageto set the configuration “Properties” page for the selected hardware item

Select the CPU PROFINET connector on the CPU image to set the IP address properties

Use the Download command to transfer the new hardware configuration to the target CPU. When prompted, select a network interface and CPU.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Password protection

S7-1200 Off-line project block password provides Know-How protection to prevent unauthorized access to one or more of your code blocks (OB, FB, FC, or DB).

S7-1200 On-line CPU password protection provides 3 levels of security for restricting access to CPU functions.

I/O address assignment

S7-200: I/O addresses automatically fixed by CPU operating system according to module location.

S7-1200: Default I/O assignment can be modified by Device configuration properties.

Page 6: S7 1200 to 200 Transition Manual en-US

Page 6S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 6/48

Serial communication for S7-200 and S7-1200

S7-200 CPUs have 1 or 2 on-boardRS485 serial connections

S7-1200 CPU communication via RS232 and RS485 connections

ASCII protocol (character based serial communication) uses STEP 7 Basic point-to-point (PtP) instructions

USS Drive protocol is programmed with STEP 7 Basic USS Library instructions

MODBUS protocol is programmed with STEP 7 Basic MODBUS Library instructions

Bar code reader RS485Motor Drive

RS485 to RS232 converter cable

S7-1200 CPUs have 1 on-board PROFINET (ETHERNET) connection. Use the RS232 and RS485 modules for PtP communication

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

RS485

RS232

Technology

CM 1241 RS485

CM 1241 RS232

S7-1200 Communication Modules

PROFIBUS master (RS485 connection): The PROFIBUS master/slave functionality is not available in the initial S7-1200 product release.

MODBUS RTU is possible on both the RS485 and RS232 signal modules.

USS library is supported on the RS485 port. The libraries are included with STEP 7 Basic.

S7-1200 SINAULT: You can create an S7-1200 RTU application using the RS232 module, PtPcommunication, and the existing SINAUT MD720-3 GSM/GPRS wireless modem. A new SINAUT solution and teleservice adapter are planned for the next S7-1200 hardware release.

The RS232 module supports handshaking.

The S7-1200 RS232 and RS485 modules have electrically isolated ports.

Page 7: S7 1200 to 200 Transition Manual en-US

Page 7S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 7/48

S7-1200 integrated PROFINET (Ethernet) - interface

Communication with the STEP 7 Basic software

CPU hardware configuration

Project download

Run-time variable monitoring / modifying

Run-time Force I/O states

Diagnostics

Communication with HMI panels

Data from / to CPU

System Diagnostics

Communication from CPU to CPU

Open communication with TSEND / TRCV instructions

Supported Protocols

• TCP/IP native

• ISO on TCP

S7-communication (PUT / GET) server only

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

The PROFINET port on the CPU supports simultaneous communication connections:

- 3 connections for HMI to CPU communication

- 1 connection for programming device (PG) to CPU communication

- 8 connections for S7-1200 program communication using the T-block instructions (TSEND_C, TRCV_C, TCON, TDISCON, TSEND TRCV)

- 3 connections for a passive S7-1200 CPU communicating with an active S7 CPU. The activeS7 CPU uses GET and PUT instructions (S7-300 and S7-400) or ETHx_XFER instructions(S7-200). An active S7-1200 communication connection is only possible with the T-blockinstructions.

MODBUS-TCP is not available for the initial S7-1200 release. However, the S7-1200 has "Native" Ethernet TCP/IP protocol available (T-block instructions) for custom development.

OPC server (Object Linking and Embedding – OLE) for Process Control server

OPC functionality is possible using the SIMATIC NET OPC Server.

PROFINET functionality including controller, device, and CBA is not available for the initial release of the S7-1200.

The S7-1200 Ethernet interfaces are designated as PROFINET. The S7-1200 will not support PROFINET I/O in the initial release, but this functionality is planned for a future release.

Communication with Omron and Mitsubishi controllers via the Ethernet. The S7-1200 has "Native" Ethernet TCP/IP protocol available ("FreePort" for Ethernet) for custom development of this functionality. It is possible to communicate with 3rd party PLCs as long as they support the same open Ethernet connectivity as the S7-1200.

Page 8: S7 1200 to 200 Transition Manual en-US

Page 8S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 8/48

S7-1200 CPUs use a PROFINET connection toSTEP 7 Basic, S7-1200 CPUs, and HMI panels

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

S7-200 CPUs use an RS485 connection to a PPI network of CPUs and HMI panels.An expansion Ethernet module must be added for Ethernet communication.

Technology

HMI general

The HMI Basic Panel in the context of the S7-1200 can communicate with up to 4 CPUs.

Text Displays for the S7-1200 are planned in a future release.

Compatibility with current HMI Ethernet devicesAt present, only the Basic Panels have been system-tested and released in conjunction with WinCC

Basic and the S7-1200. However, other panels can also be connected to the S7-1200 in the context of WinCC flexible.

MP277 and 377 panels will talk with the S7-1200. Use WinCC flexible for programming and select the S7-300 communication channel (Rack 0 - Slot 0) at the start.

HMI update rate

S7-200: HMI data update occurs at end of the program scan and is scan rate limited.

S7-1200: HMI data update occurs asynchronously during program scan. Therefore, insure that data variables are buffered from change, during a program scan.

Page 9: S7 1200 to 200 Transition Manual en-US

Page 9S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 9/48

Totally Integrated Automation Portal integrates control logic and HMI configuration programming

SIMATICS7-1200

SIMATIC HMIBasic Panels

The Totally Integrated Automation Portal, version 10.5 contains SIMATIC STEP 7 Basic version 10.5, and SIMATIC WinCC Basic version 10.5.

SIMATIC WinCC Basic can configure the operation of the SIMATIC Basic HMI panels: Monochrome - KTP400 and KTP600, and Color - KTP600, KTP1000, and TP 1500

STEP 7-Micro/WIN and the S7-200 use the TD wizard, TD Keypad Designer, and WinCC Flexible Micro toconfigure the HMI panels (TD 100C, TD 200, TD 200C, TD400C, OP 73, TP177 ).

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

KTP600 Basic color DP and Basic color PN, 5.7" TFT color Touch-Display, 6 Function keys, PROFIBUS-DP / MPI-interface or Ethernet interface

KTP600 Basic mono PN, 5.7" STN Gray scale Touch-Display, 6 Function keys, Ethernet interface

KTP1000 Basic color DP and Basic color PN, 10.4" TFT color Touch-Display, 8 Function keys, PROFIBUS -DP / MPI-interface or Ethernet interface

TP1500 Basic color PN, 15.0" TFT color Touch-Display, Ethernet interface

KTP400 Basic mono PN, 3.8" STN Gray scale Touch-Display, 4 Function keys, Ethernet interface

S7-1200 HMI devices

HMI Basic panels require a PC for download. They do not have memory cards

Variable tags on HMI basic panels. The number of variable tags cannot be increased at this time. There are plans to increase the number of default tags available on these units

WinCC Flexible Micro will be available as long as HMI Micro panels (for the S7-200) are sold. At this time there are no plans for discontinuing the micro panel.

Library graphics are created in WinCC Flexible

It is not possible to migrate any library items directly from WinCC Flexible to WinCC Basic. However, you can copy all the elements from the library to an HMI screen in a project and then migrate the resulting project into WinCC Basic.

Changing from WinCC flexible to WinCC Basic. A firmware update is not necessary in the case of WinCC flexible 2008 and WinCC Basic.

Sm@rtAccess/Sm@rtServiceThe S7-1200 does not support Sm@RtAccess or Sm@rtService

The Totally Integrated Automation Portal provides the tools for managing and configuring all of the devices in your project, such as PLCs and HMI devices. As a component of the TIA Portal, STEP 7 Basic provides two programming languages (LAD and FBD). The TIA Portal also provides the tools for creating and configuring the HMI devices in your project.

Page 10: S7 1200 to 200 Transition Manual en-US

Page 10S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 10/48

CPU work memory size

26 kB

50 kB

64 kB

Program blocks

Data blocks

Fixed Floating

CPU 1214CCPU 224XP

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 11: S7 1200 to 200 Transition Manual en-US

Page 11S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 11/48

STEP 7 Basic program objectsin S7-1200 CPU memory

Program Tag names and comments are stored in S7-1200 CPU memory and are available on-line.For STEP 7-Micro/WIN and the S7-200, you must have the original project files to matchsymbolic tag names and comments with the on-line program logic.

S7-1200S7-200

1 / 2 MB(internal)

blocks

Comments

Tag names

Program

Comments

Not published

blocks

Tag names

Program

Size of the load memory

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

All tags, block comments, network comments, and instruction comments are downloaded to the S7-1200 controller. This makes it possible to go online with a controller and debug it without the original project.

Page 12: S7 1200 to 200 Transition Manual en-US

Page 12S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 12/48

“Symbolic” DB

“Classic” DB

Step 7 Basic can optimize a Data Block size

When a Data Block is created, you can select the optimized format by checking the“Symbolic access only” box. The “Classic” data format is also supported for compatibility with legacy code.

If the data type declarations are mixed, then memory space is wasted

Data types are organized to save

memory space

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 13: S7 1200 to 200 Transition Manual en-US

Page 13S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 13/48

Retentive memory assignments preserve data during CPU power interruptions

S7-1200S7-200

A “Symbolic access only” DB can select individual data elements for retention. If “Symbolic access only” is not selected, then a block of DB data can be retentive. The 2048 byte total is shared between M and DB memory.

The S7-1200 CPU automatically stores retained data in internal flash memory.The S7-200 uses a supercap, optional battery cartridge, or programmed writes to a flash memory cartridge to retain memory data.

PLC Tag table button can assign a range ofM memory as retentive (2048 byte maximum)

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

System block settings can assign 6 retentive ranges in V, T and C actual values, or M

Page 14: S7 1200 to 200 Transition Manual en-US

Page 14S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 14/48

Memory Card - Memory size

S7-1200 MC two sizesS7-200 MC two sizes

1MB

10MB

100MB

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

64 KB

256 KB

2 MB

24 MB

Page 15: S7 1200 to 200 Transition Manual en-US

Page 15S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 15/48

What can be stored on the Memory Card?

Files

Projects

plannedData Log

plannedRecipes

System data

Data

Program

S7-1200S7-200

MCoptional

SIMATIC MC optional

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

SIMATIC memory cards have a Windows file system and comply with the necessary industrial requirements. The memory card can be written to and read in any PC and then also used again for operation in the CPUs.

Page 16: S7 1200 to 200 Transition Manual en-US

Page 16S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 16/48

How can the S7-1200 use the pre-formattedSIMATIC MC?

You can create a “Program” card that functions as CPU memory. If you remove the “Program” card from the CPU, the CPU loses all project memory.

You can create a “Transfer” card that can copy your project (and updates) to multiple CPUs.

You can create a “Transfer” card using STEP 7 Basic on a PC with a standard SD card reader/writer.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Memory card usage

Before programming a memory card, be sure there is a valid network configuration in your project so that it can connect to the PLC after installing the card.

SIMATIC memory cards are pre-formatted with a SIMATIC memory format that must be preserved. Do not use a PC to delete the two hidden files __log__ (system file) and crdinfo.bin (bin file). Do not use a PC to reformat the memory card or the card will become unusable.

Refer to the S7-1200 Programmable controller system Manual 11/2009 version for details on how to create and use a “Program” card and “Transfer” card.

Page 17: S7 1200 to 200 Transition Manual en-US

Page 17S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 17/48

Program block types

INT (Interrupt routine)

SBR (Subroutine)

V memory

S7-1200S7-200

MAIN (Main routine)

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

OB (Organizational Blocks)

FB (Function Block) has an Instance Data Block for temporary storage

FC (Function) has no Instance Data Block

DB (Data Blocks) for global accessand persistent storage

S7-1200 Organization Block (OB) Types:

Program Cycle OB1

Startup OB100 series

Time delay interrupt OB200 series

Cyclic interrupt OB200 series

Hardware interrupt OB200 series

Time error interrupt OB80

Diagnostic error interrupt OB82

Non-fatal error handing

S7-200: By default, continue RUN mode

S7-1200: By default, go to STOP modeIf OB80 or OB82 error OB blocks exist in your program, then continue RUN mode.OB80 and OB82 may be empty or contain your programmed error reaction

STEP 7 Basic programming methods not supported initial V 10.5 release

Hot keys

Indirect addressing

Run-time edit

Page 18: S7 1200 to 200 Transition Manual en-US

Page 18S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 18/48

SBR

SBR

SBR

SBR

SBR

INT

SBR

SBR

MAIN

S7-200 program structure in STEP 7-Micro/WIN

V memory

The maximum nesting depth for subroutines from the Main is 8, and from an Interrupt routine is 1.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

MAIN, SBR, and INT routines have read/write access to V memory

Page 19: S7 1200 to 200 Transition Manual en-US

Page 19S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 19/48

FCGlobalData Block

GlobalData Block

S7-1200 program structure in STEP 7 Basic

OB

FBFC

FC

FB

InstanceData Block

InstanceData Block

The maximum nesting depth is 16

STEP 7 Basic has the same block architecture used by the S7-300 Modularization and reuse is easier Technology objects (for example, PID control) can be standardized and called

multiple times Symbolic reference is possible

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 20: S7 1200 to 200 Transition Manual en-US

Page 20S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 20/48

S7-1200 Instance Data Block types

STEP 7 Basic can use single-instance and multi-instance Data Blocks A function block (FB) can be called multiple times One FB type (for example, FB “Motor”) can control several drives The actual data of the different drives can be stored in different single-instance

or multi-instance DBs Two FBs can share a multi-instance DB for more efficient memory usage

OB FCFB″Motor″

Single-InstanceDB

″Motor_2″

FB″Motor″

Multi-InstanceDB

″Motor_1″

FC

FBModbusCOMMTechnology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 21: S7 1200 to 200 Transition Manual en-US

Page 21S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 21/48

SBR

SBR

SBR

SBR

SBRSBR

MAIN

Interrupt structure S7-200

Hardware

Interrupt events are attached and detached to interrupt routines at program run-time only

Hardware

. . .SBR

INT127

INT0Comm.

Time

INT1

Interruptroutineexecutionqueue

Cyclic execution

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 22: S7 1200 to 200 Transition Manual en-US

Page 22S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 22/48

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Interrupt structure S7-1200

Program cycle

Startup

Hardware

Time-delay

OB1

OB100

OB200

FC

FB

DB

OBexecution

queue

FB

DB

OB202

OB80

FC

Time-error interrupt

Hardware interrupt

Cyclic interrupt OB201

OB82

Diag. error interrupt

Inte

rru

pts

Resources

Several optional Startup and Time-delay OBs may be used

Attachment of event to OB can be made at configuration-time and run-time

Page 23: S7 1200 to 200 Transition Manual en-US

Page 23S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 23/48

What’s different?

Set/Reset instructions

S7-200: S (Set) and R (Reset)

S7-1200: S (Set) and R (Reset) for single point, SET_BF (Set Bit Field), and RESET_BF (Reset Bit Field) for multiple points

Immediate instructions

S7-200: I (Immediate), SI (Set Immediate), and RI (Reset Immediate)

S7-1200: Direct (Immediate) peripheral address(example, Q0.0:P or I0.0:P)

Edge Detection instructions

S7-200: P (Positive Transition) and N (Negative Transition)

S7-1200: P_TRIG (Positive Transition detector)N_TRIG (Negative Transition detector)

Bit LogicS7-200 S7-1200

Bit Logic instructions

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 24: S7 1200 to 200 Transition Manual en-US

Page 24S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 24/48

What’s new?TP (Pulse timer) and TONR (On-delay retentive) are now in the same group.

What’s different? S7-200: A timer number selection sets a 1ms, 10ms, or 100ms time resolution that is multiplied by the WORD size time currentvalue for preset and elapsed times.

S7-1200: All timers are 1ms timers that use a new DWORD size Time data type for the preset and elapsed time values.

S7-200: STEP 7-Micro/WIN has a SIMATIC and IEC programming mode. In SIMATIC mode, a T-bit and T-current value corresponding to the timer number are used to signal the timeoutcondition and the current value (elapsed time).

S7-1200: In STEP 7 Basic, all timers are IEC style timers that have a Q output bit that signals the timeout condition and an EToutput that gives the elapsed time.

TimersS7-200 S7-1200

SIMATIC mode

IEC mode

Timer instructions

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

S7-200: BGN_ITIME (Begin Interval Time), CAL_ITIME (Calculate Interval Time)

S7-1200: Use Clock instructions RD_SYS_T (read system time) and T_SUB (time difference) to calculate time intervals.

Page 25: S7 1200 to 200 Transition Manual en-US

Page 25S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 25/48

What’s different?

Counter instructions

S7-200: STEP 7-Micro/WIN has a SIMATIC and IEC programming mode. In SIMATIC mode, a C-bit and C-current value corresponding to the counter number are used to signal the count condition and the current count value.

S7-1200: In STEP 7 Basic, all counters are IEC style counters that have a Q output bit that signals the count condition and a CV output that gives the current count value.

CountersS7-200 S7-1200

Counter instructions

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

High-Speed Counter instructions

S7-200: HDEF (High-Speed Counter Definition)HSC (High-Speed Counter)

S7-1200: CTRL_HSC

S7-200: Special memory assignments (SM addresses) are used to set the high-speed counter configuration and operating parameters.

S7-1200 High-speed counters are set up in the PLC Device configuration properties. The operating parameters are available as inputs and outputs of the CTRL_HSC instruction.

Page 26: S7 1200 to 200 Transition Manual en-US

Page 26S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 26/48

Compare instructions

CompareS7-200 S7-1200

What’s new?The Compare instructions now support the 64 bit LREAL data type.

Compare instructions:

IN_RANGE tests whether an input value is in a specified value range.

OUT_RANGE tests whether an input value is out of a specified value range.

|OK| tests whether an input data reference is a real number.

|NOT_OK| instruction tests whether an input data reference is not a real number.

What’s different?

S7-200: The instruction name determines the data type.

S7-1200: The data type is selected after placing the instruction.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 27: S7 1200 to 200 Transition Manual en-US

Page 27S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 27/48

Math instructions

MathS7-200 S7-1200

What’s new?The S7-1200 Floating Point Math instructions now support the 64 bit LREAL data type.

What’s different?Math instructions

S7-200: The instruction selection determines the data type.

S7-1200: The data type is selected after placing the instruction.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 28: S7 1200 to 200 Transition Manual en-US

Page 28S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 28/48

Move instructions

MoveS7-200 S7-1200

What’s new?The MOVE instructions now support the 64 bit LREAL data type.

New Move instructions

UMOVE_BLK (uninterruptible move block)

UFILL_BLK (uninterruptible fill block)

What’s different?

Move instructions

S7-200: The instruction name determines the data type.

S7-1200: The data type is selected after placing the instruction.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 29: S7 1200 to 200 Transition Manual en-US

Page 29S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 29/48

Convert instructions

ConvertS7-200 S7-1200

What’s new?The Convert instructions (except SCALE_X and NORM_X) now support the 64 bit LREAL data type.

New Convert instructions

CEIL (ceiling) converts a real number to the next higher integer

FLOOR converts a real number to the next lower integer

SCALE_X scales a normalized real parameter value

NORM_X normalizes a parameter value

What’s different? S7-200: The instruction name determines the data type.

S7-1200: The data type is selected after placing the instruction.

String Convert instructions

S7-200: S_I, S_DI, S_R, I_S, DI_S, R_S, ITA, DTA, and RTA

S7-1200: S_CONV, STRG_VAL, VAL_STRG

S7-200 conversions instructions ATH, HTA, and SEG are not supported by the S7-1200.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 30: S7 1200 to 200 Transition Manual en-US

Page 30S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 30/48

Program Control instructions

Program ControlS7-200 S7-1200

What’s new? JMPN: Jump if no power flow to a JMP coil

GetError: Get information about program block execution errors

GetErrorID: Get the ID of an execution error

What’s different?Re-Trigger Cycle Time Monitoring

S7-200: WDR Watchdog reset

S7-1200: RE_TRIGR

Terminate execution of current block

S7-200: END/RET

S7-1200: RET

Execution control

S7-200 FOR-NEXT loop instructions are not supported on the S7-1200. This function must be created from Jump, Add, and Compare instructions.

Sequence Control Relay instructions (SCR, SCRT, SCRE) are not supported in the S7-1200.

The DIAG_LED Diagnostic LED instruction is not supported in theS7-1200.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 31: S7 1200 to 200 Transition Manual en-US

Page 31S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 31/48

Logical operation instructions

Logical OperationsS7-200 S7-1200

What’s new? SEL select instruction selects one of two inputs

MUX multiplex instruction selects one of multiple inputs

What’s different? S7-200: The instruction selection determines the data type.

S7-1200: The data type is selected after placing the instruction.

AND instruction

S7-200: WAND_B, WAND_W, WAND_DW

S7-1200: AND

OR instruction

S7-200: WOR_B, WOR_W, WOR_DW

S7-1200: OR

XOR instructions

S7-200: WXOR_B, WXOR_W, WXOR_DW

S7-1200: XOR

Invert instruction

S7-200: INV_B, INV_W, INV_DW

S7-1200: INVERT

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 32: S7 1200 to 200 Transition Manual en-US

Page 32S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 32/48

Shift + Rotate instructions

Shift + RotateS7-200 S7-1200

What’s different? S7-200: The instruction selection determines the data type.

S7-1200: The data type is selected after placing the instruction.

Shift Right instruction

S7-200: SHR_B, SHR_W, SHR_DW

S7-1200: SHR

Shift Left instruction

S7-200: SHL_B, SHL_W, SHL_DW

S7-1200: SHL

Rotate Right instructions

S7-200: ROR_B, ROR_W, ROR_DW

S7-1200: ROR

Rotate Left instructions

S7-200: ROL_B, ROL_W, ROL_DW

S7-1200: ROL

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 33: S7 1200 to 200 Transition Manual en-US

Page 33S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 33/48

Clock instructions

Clock + CalendarS7-200 S7-1200

What’s new?New TIME and DTL (Date and time long) data types

T_CONV converts data type of time value

T_ADD adds TIME and DTL values

T_SUB subtracts TIME and DTL values

T_DIFF provides difference

RD_LOC_T read local time

What’s different?Write system time instructions

S7-200: SET_RTC, SET_RTCX

S7-1200: WR_SYS_T (write system time)

Read system time instructions

S7-200: READ_RTC, READ_RTCX

S7-1200: RD_SYS_T (read system time)

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 34: S7 1200 to 200 Transition Manual en-US

Page 34S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 34/48

String instructions

String + CharS7-200 S7-1200

What’s new?String data format

S7-200: Length byte followed by character bytes

S7-1200: Maximum length byte followed by the actual length byte and character bytes

New String operations

LEFT, RIGHT, DELETE, INSERT, REPLACE, VAL_STRG, STRG_VAL, and S_CONV

What’s different? S7-200: STR_LEN STR_CAT SSTR_CPY

S7-1200: LEN, CONCAT, MID

FIND substring or character in string

S7-200: STR_FIND, CHR_FIND

S7-1200: FIND

Copy string

S7-200: STR_CPY

S7-1200: S_CONV (string convert) can have a STRING data type as input and output to “copy” the string.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 35: S7 1200 to 200 Transition Manual en-US

Page 35S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 35/48

Communications instructions

CommunicationsS7-200 S7-1200

What’s different?PPI network communication

S7-200: The integrated PPI network RS485 port is programmed with the NETR, NETW, GET_ADDR, and SET_ADDR instructions.

S7-1200: The integrated CPU port is now an Ethernet connection. The S7-200 PPI network instructions are not supported in STEP 7 Basic version 10.5.

Point-to-Point (PtP) instructions(Freeport communications)

S7-200: XMT, RCV

S7-1200: PORT_CFG, SEND_CFG, RCV_CFG,SEND_PTP, RCV_PTP, RCV_RST, SGN_GET,and SGN_SET.

Ethernet communication

S7-200: The Ethernet wizard generates subroutines that operate the Ethernet module.

The S7-1200 CPU has an integrated PROFINET (Ethernet) port and uses T-BLOCK instructions (for example, TSEND_C, TRCV_C) for network communication.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Valid Ethernet program to program communication paths

An S7-200 executes ETH0_CTRL / ETH0_XFR subroutines to read from or write to a passive S7-1200

An S7-300/S7-400 executes GET/PUT to read from or write to a passive S7-1200

For an S7-1200 connected to a multiple S7-1200/S7-300/S7-400 network, all partner programs can execute T-block instructions to read from and write to each other.

Page 36: S7 1200 to 200 Transition Manual en-US

Page 36S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 36/48

Interrupt instructions

InterruptS7-200 S7-1200

What’s different?Event Interrupt

S7-200: ATCH and DTCH events 0-7

S7-1200: Device configuration property assignment

Time Delay Interrupt

S7-200: ATCH and DTCH (time delay interrupt events 21 and 22)

S7-1200: SRT_DINT, CAN_DINT

Asynchronous Interrupt Control

S7-200: ENI and DISI

S7-1200: DIS_AIRT, EN_AIRT

Terminate Execution of current interrupt block

S7-200: RETI

S7-1200: RET

Clear queued Interrupt events

S7-200: CLR_EVENT

S7-1200: Current and queued events are cleared by the DETACH instruction.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 37: S7 1200 to 200 Transition Manual en-US

Page 37S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 37/48

Table and PID Loop control instructions

PID Loop controlS7-200 S7-1200

Table S7-200 S7-1200

What’s different?

PID instructions

S7-200: The PID instruction is usually operated with code generated by the STEP 7-Micro/WIN PID wizard.

S7-1200: PID_Compact smart instruction

Table instructions

The S7-200 table instructions are not supported in STEP 7 Basic version 10.5.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 38: S7 1200 to 200 Transition Manual en-US

Page 38S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 38/48

Basic Motion and Pulse instructions

Basic Motion controlS7-200 S7-1200

What’s different?Motion control instructions

S7-200: The EM253 Position module wizard creates subroutines that can be called from your program.

S7-1200: PLC Open motion control instructions

S7-200: The motion subroutines are level triggered. An extra edgeinstruction is required for the trigger signal, if called from the multi-scan Main routine instead of from a single-scan interrupt routine.

S7-1200: The motion instructions are internally rising edge-triggered. This is not a problem for a multi-scan program block (OB1 for example). However, if a motion instruction is placed in a single-scan interrupt OB, then the instruction must be executed twice in succession to provide an edge signal. If an external motion event triggers a single-scan interrupt block, then execute the motion instruction once with the enable request parameter assigned a constant “1” and once with a constant “0”.

Pulse instructions

S7-200: The PTO/PWM wizard creates subroutines that can be called from your program. Special memory assignments (SM addresses) are used to set the pulse generator configuration and operating parameters.

S7-1200: Pulse generators are set up in the PLC Device configuration properties. The operating parameters are available as outputs as defined in the configuration properties. The CTRL_PWM instruction starts and stops the pulse generator.

Pulse controlS7-200 S7-1200

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

EM253 Positionwizard subroutines

POSx_CTRLPOSx_MANPOSx_GOTOPOSx_RUNPOSx_RSEEKPOSx_LDOFFPOSx_LDPOSPOSx_SRATEPOSx_DISPOSx_CLRPOSx_CFG

PTO/PWM wizardsubroutines

PTOx_CTRLPTOx_RUNPTOx_MANPTOx_LDPOSPTOx_ADV

PWMx_RUN

Page 39: S7 1200 to 200 Transition Manual en-US

Page 39S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 39/48

Modbus library instructions

Modbus libraryS7-200 S7-1200

What’s different?S7-1200 Modbus library simplified

MB_COMM_LOAD provides first pass initialization for master and slave operations.

MB_MASTER and MB_SLAVE control the message and port assignment.

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 40: S7 1200 to 200 Transition Manual en-US

Page 40S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 40/48

USS drive library instructions

USS drive libraryS7-200 S7-1200

What’s different? USS_DRV and USS_PORT replace USS_INT and USS_CTRL.

S7-200: Two fixed PZD parameters (control and speed)

S7-1200: Added up to eight user-defined PZD parameters

S7-200: Update rate fixed (as fast as possible)

S7-1200: Place in a cyclic interrupt OB for user-defined update rate.

One Read instruction

S7-200: USS_RPM_W_P1USS_RPM_D_P1USS_RPM_R_P1

S7-1200: USS_RPM

One Write instruction

S7-200: USS_WPM_W_P1USS_WPM_D_P1USS_WPM_R_P1

S7-1200: USS_WPM

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 41: S7 1200 to 200 Transition Manual en-US

Page 41S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 41/48

New elementary data types for the S7-1200

Short integer data types can save resources

SInt - Byte size (-128 to 127)

Unsigned data types increase the positive range

USInt - Byte size (0 to 255)

UInt - Word size (0 to 65,535)

UDint - Dword size (0 to 4,294,967,295)

Long Real for greater floating-point precision

LReal - 64 bit size+/-2.2250738585072020 × 10 -308

to +/-1.7976931348623157 × 10 308

Time data type has new entry format and range

Time Dword sizeT# -24d_20h_31m_23s_648ms to T# 24d_20h_31m_23s_647ms stored as -2,147,483,648 ms to +2,147,483,647 ms

ex. T#50msT#5m_30sT#1d_2h_15m_30s_45ms

STEP 7 Basic uses drop listdata type selectors

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 42: S7 1200 to 200 Transition Manual en-US

Page 42S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 42/48

New complex data types for the S7-1200

DTL (Date and Time Long)Array

Symbolic access is available to all elements of an Array or DTL structure

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 43: S7 1200 to 200 Transition Manual en-US

Page 43S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 43/48

Timer operationS7-200 and S7-1200

Timer bit T37 = 1 whencurrent value >= PT.

For STEP 7 Basic, all timers are 1 ms and the time value can be entered directly. For STEP 7-Micro/WIN, the preset time and current time are entered as a number to be multipliedby a time base (1 / 10 / 100 ms) that depends on the selected timer number.

S7-1200S7-200

Output Q = 1 when elapsed time ET >= PT.Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 44: S7 1200 to 200 Transition Manual en-US

Page 44S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 44/48

Counter operationS7-200 and S7-1200

S7-200 SIMATIC type counter

Range: 0 – 32767

Counter bit C5 = 1 whencurrent value >= PV

S7-1200 IEC type counter

Range: selectable data type from SINT to UDINT

S7-1200S7-200

Output Q = 1 when current value >= PV

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 45: S7 1200 to 200 Transition Manual en-US

Page 45S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 45/48

Count and measure with high-speed counters (HSC)

The two-phase or quadrature encoder is the most widely used of all rotary encodersdue to better precision

32 or

1100kHz. max. single-phase or80kHz. max. two-phase

34 or

3

30kHz. max. single-phase or20kHz. max. two-phase

66 single-phase or

4 two-phase HSC devices total

S7-1200CPU 1214C

S7-200CPU 224XP

. . .Rotary shaft encoders

. . .

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Page 46: S7 1200 to 200 Transition Manual en-US

Page 46S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 46/48

S7-1200 Axis Technology Object

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

S7-200 and STEP 7-Micro/WIN use a Position module and motion control wizard for motion control. You must rerun the wizard to make configuration changes.

S7-1200 and STEP 7 Basic use integrated pulse outputs and Axis Technology Object configuration for control of stepper motors and servo drives. PLCopenstandard instructions are then placed in your program.

Resources

Page 47: S7 1200 to 200 Transition Manual en-US

Page 47S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 47/48

S7-1200 PID controller Technology Object

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

S7-200 and STEP 7-Micro/WIN use a PID wizard and PID tune control panel tool for controlling up to eight PID loops.

S7-1200 and STEP 7 Basic use the PID controller Technology Object configuration for up to 16 PID control loops. The PID_Compact instruction is then placed in your program.

Resources

Page 48: S7 1200 to 200 Transition Manual en-US

Page 48S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

S7-1200 Transition Manual © Siemens AG 11/2009. All Rights Reserved.A5E02486860-01 Industry Sector

Page 48/48

SIMATIC resources

Technology

Timers

Counters

Block concept

Memory

HMI

Communication

Hardware

Instruction set

New data types

Resources

Refer to the SIMATIC S7-1200 and S7-200 documentation on the Internet at:

http://www.siemens.com/automation/service&support

Contact your Siemens distributor or sales office for assistance in answering any technical questions, for training, or for ordering S7 products.