Professional Documents
Culture Documents
Making The Transition From S7-200 To S7-1200
Making The Transition From S7-200 To S7-1200
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.
Hardware
EM (Expansion Module)
CPU CP (Communication Processor)
Communication
HMI
Timers
CM CPU SM (Signal Module)
Counters
Technology
Resources
S7-1200 8 SM maximum
Page 2/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
CPU on-board I/O and SB (Signal Board) I/O
The Signal Board expands the S7-1200 CPU I/O without increasing the CPU footprint size
Page 3/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Hardware configuration S7-200
Hardware
Communication
HMI
Memory Expansion modules are automatically recognized when connected and powered up
Block concept 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 CPU
Instruction set
stations
New Data types STEP7-Micro/WIN “System Block” window configures CPU parameters
Timers A System Block download operation transfers the new hardware configuration into the target CPU
Counters
Technology
Resources
Page 4/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Hardware configuration S7-1200
STEP 7 Basic uses a visual configuration where you create an image of your actual hardware set
Hardware
Hardware modules are selected from a hardware catalog tree and dragged into a rack image
Communication
After your system hardware image is assembled, use a mouse click on an item in the system image
HMI to 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
Memory
Use the Download command to select a network interface and CPU. The Download operation
Block concept transfers the new hardware configuration into the target CPU.
Instruction set
Timers
Counters
Technology
Resources
Page 5/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Serial communication for S7-200 and S7-1200
S7-1200 CPU communication via RS232 and RS485 connections
Hardware ASCII protocol (character based serial communication) uses STEP 7 Basic PtP instructions
USS Drive protocol is programmed with STEP 7 Basic USS Library instructions
Communication
MODBUS protocol is programmed with STEP 7 Basic MODBUS Library instructions
HMI
S7-200 CPUs have 1 or 2 on- S7-1200 CPUs have 1 on-board PROFINET
Memory board RS485 serial connections (ETHERNET) connection. Use the RS232 and
RS485 modules for Point-to-Point
Block concept communication
Instruction set
Timers
Counters
Technology
Page 6/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
S7-1200 integrated PROFINET (Ethernet) - interface
Communication with the STEP 7 Basic software
Hardware CPU hardware configuration
Project download
Communication
Run-time variable monitoring / modifying
HMI
Run-time Force I/O states
Memory Diagnostics
Block concept Communication with HMI panels
Instruction set Data from / to CPU
New Data types System Diagnostics
Timers
Page 7/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
S7-1200 CPUs use a PROFINET connection to
STEP 7 Basic, S7-1200 CPUs, and HMI panels
Hardware
Communication
HMI
Memory
Block concept
Instruction set
Timers
Counters
Technology
Resources
S7-200 CPUs use an RS485 connection to a PPI network of CPUs and HMI touch panels.
An expansion Ethernet module must be added for Ethernet communication.
Page 8/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
STEP 7 Basic integrates programming for
control logic and HMI configuration
HMI
Memory
Block concept
Instruction set
Timers
Counters
Technology STEP 7 Basic contains WinCC Basic which supports run-time visualization.
Resources You can configure the operation of these SIMATIC Basic HMI panels.
Monochrome - KTP400 and KTP600 or Color KTP600, KTP1000, and TP 1500
STEP 7-Micro/WIN and the S7-200 use a TD wizard, TD Keypad Designer, and
WinCC flexible micro for these RS485 PPI connected HMI panels.
TD 100C, TD 200, TD 200C, TD400C, OP 73, TP177
Page 9/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
CPU work memory size
Memory
50 kB
Block concept
Instruction set
Timers
Counters
26 kB
Technology
Resources
Data
Program
Fixed Floating
Page 10/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
STEP 7 Basic program objects
in S7-1200 CPU memory
Block concept
Program Program
Instruction set
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 match
symbolic tag names and comments with the on-line program logic.
Page 11/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Step 7 Basic can optimize a Data Block size
If the data type
declarations are mixed,
Hardware
then memory space is “Classic” DB
Communication wasted
HMI
Memory
Block concept
Instruction set
Technology
Resources
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.
Page 12/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Retentive memory assignments preserve data
during CPU power interruptions PLC Tag table button can assign a range of
M memory as retentive (2048 byte maximum)
HMI
Memory
Block concept
Instruction set
Timers
Counters
Technology
System block settings can assign 6
retentive ranges in V, T and C actual
Resources values, or M
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.
After power interruption, the S7-200 uses a supercap, optional battery cartridge, or programmed writes to a
flash memory cartridge to retain memory data. The S7-1200 CPU automatically stores retained data in
internal flash memory.
Page 13/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Memory Card - Memory size
Memory
20MB
Block concept
Instruction set
Counters
10MB
Technology
Resources
5MB
Page 14/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
What can be stored on the Memory Card?
Communication Program
HMI Data
Memory System data
Block concept Recipes planned
Instruction set Data Log planned
New Data types Files
Timers Projects
Counters
Technology
Resources
MC SIMATIC MC
optional optional
Page 15/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
How can the S7-1200 use the pre-formatted
SIMATIC MC?
Block concept
Instruction set
Timers
Counters
Technology
Resources
STEP 7 Basic can program a “Transfer“ card with a CPU, or with a PC standard SD card read/write interface
Page 16/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Program block types
Communication
MAIN (Main routine)
HMI
SBR (Subroutine)
VB (V memory Block)
DB (Data Block)
Page 17/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
S7-200 program structure in STEP 7 Micro/WIN
Hardware
SBR SBR
Communication
HMI
Memory
SBR
Block concept
Instruction set
Counters
SBR
Technology
Resources
INT SBR
Page 18/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
S7-1200 program structure in STEP 7 Basic
Hardware
FC
FB
Communication Global
Data Block FC
HMI Instance
Data Block
Memory
OB
Block concept
Instruction set
Global FC FB
New Data types Data Block
Timers Instance
Data Block
Counters
Technology
The maximum nesting depth = 16
Resources
STEP 7 Basic has the same block architecture used by the S7-300
Modularization and reuse is easier
Technology objects (e.g. PID control) can be standardized and called multiple times
Symbolic reference is possible
Page 19/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
S7-1200 Instance Data Block types
Hardware
OB FB FC
”Motor“
Communication
HMI FB
Memory ”Motor“
FC
Block concept
Instruction set
Page 20/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Interrupt structure S7-200
Hardware
SBR SBR
Communication
Hardware Interrupt Cyclic execution
HMI routine
execution MAIN SBR
Memory queue
Block concept
Instruction set
SBR SBR
New Data types Comm. INT0
Timers
Counters SBR
Hardware INT1 SBR
Technology
Resources ...
Time INT
127
Interrupt events are attached and detached to interrupt routines at program run-time only
Page 21/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Interrupt structure S7-1200
FB
Hardware OB Program cycle
Hardware OB1
execution DB
Communication
queue
HMI Startup OB
100 FC
Memory
Interrupts
Counters Hardware interrupt OB
202
Technology FC
Attachment of event to OB can be
Resources made at configuration-time and Time-error interrupt OB
80
run-time
Diag. error interrupt OB
82
Page 22/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Bit Logic instructions
Counters
Technology
Resources
Page 23/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Timer instructions
Technology S7-1200: In S7 Basic, all timers are IEC style timers that have a
Q output bit that signals the timeout condition and an ET output
that gives the elapsed time.
Resources
What’s missing?
Interval Timer instructions:
S7-200: BGN_ITIME (Beginning Interval Time)
CAL_ITIME (Calculate Interval Time)
Page 24/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Counter instructions
Page 25/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Compare instructions
Technology
Resources
Page 26/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Math instructions
Math
Hardware
What’s new? S7-200 S7-1200
The Floating Point Math instructions now support the 64 bit LREAL
Communication data type.
Math instructions
HMI
MOD (modulo)
NEG (negation)
Memory ABS (absolute value)
MIN (minimum)
Block concept MAX (maximum)
LIMIT
Instruction set SQR (square)
ASIN (inverse sine)
New Data types ACOS (inverse cosine)
ATAN (inverse tangent)
Timers FRAC (fraction)
EXPT (general exponential)
Counters
What’s different?
Technology Math instructions
Resources S7-200: 10 basic math instructions
S7-1200: 4 basic math instructions
Increment/Decrement instructions
S7-200: 6 increment/decrement instructions
S7-1200: 2 increment/decrement instructions
Page 27/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Move instructions
Resources
Page 28/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Convert instructions
What’s missing?
Missing Convert Instructions
ASCII conversion instructions ATH and HTA
SEG displays segment driver
Page 29/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Program Control instructions
Memory
What’s different?
Block concept Re-Trigger Cycle Time Monitoring instruction
Technology
What’s missing?
Resources
FOR-NEXT loop instructions
Sequence Control Relay instructions (SCR, SCRTI, SCRE)
DIAG_LED Diagnostic LED instruction
Page 30/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Logical operation instructions
Page 31/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Shift + Rotate instructions
S7-1200: SHL
Block concept
Rotate Right instructions
Instruction set S7-200: ROR_B, ROR_W, ROR_DW
New Data types S7-1200: ROR
Rotate Left instructions
Timers
S7-200: ROL_B, ROL_W, ROL_DW
Counters S7-1200: ROL
Technology
Resources
Page 32/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Clock instructions
Block concept
Instruction set What’s different?
Write system time instructions
New Data types
S7-200: SET_RTC, SET_RTCX
Timers S7-1200: WR_SYS_T write system time
Read system time instructions
Counters
S7-200: READ_RTC, READ_RTCX
Technology
S7-1200: RD_SYS_T
Resources
Page 33/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
String instructions
Page 34/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Communications instructions
Timers
Resources
Page 35/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Interrupt instructions
Timers
Counters
What’s missing?
CLR_EVENT (Clear Interrupt Event)
Technology
Resources
Page 36/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Table and PID Loop control instructions
HMI
Memory
Block concept
Instruction set
Page 37/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Basic Motion and Pulse instructions
What’s different?
Hardware Basic Motion control
Motion control instructions
S7-200 S7-1200
Communication S7-200: PLS instruction (Pulse Width Modulation and Pulse Train
Output) and EM253 Position Module with STEP 7-Micro/WIN wizard
HMI S7-1200: PLC open motion control instructions (MC_Power, MC_Reset,
MC_Home, MC_Halt, MC_MoveAbsolute, MC_MoveRelative,
Memory MC_MoveVelocity, MC_MoveJog)
Block concept
Pulse instructions
Instruction set
S7-200: Special memory assignments (SM addresses) are used to set the
pulse generator configuration and operating parameters.
New Data types
S71200 Pulse generators are set up in the PLC Device configuration
Timers properties. The operating parameters are available as inputs and outputs of
the CTRL_PWM instruction.
Counters
Page 38/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Modbus library instructions
Block concept
Instruction set
Timers
Counters
Technology
Resources
Page 39/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
USS drive library instructions
HMI
Memory
What’s different?
Read instruction
Block concept S7-200: USS_RPM_W_P1, USS_RPM_D_P1, USS_R_P1
Instruction set S7-1200: USS_RPM
Write instruction
New Data types
S7-200: USS_WPM__W_P!, USS_WPM_D_PI,
Timers USS_WPM_RP_P1
S7-1200: USS_WPM
Counters
Technology
What’s missing?
Resources USS_INIT, USS_CTRL
Page 40/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
New elementary data types for the S7-1200
Short integer data types can save resources STEP 7 Basic uses drop list
Hardware
SInt - Byte size (-128 to 127) data type selectors
Communication
Unsigned data types enlarge the positive range
HMI USInt - Byte size (0 to 255)
Page 41/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
New complex data types for the S7-1200
HMI
Memory
Block concept
Instruction set
Timers
Counters
Technology
Resources
Page 42/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Timer operation
S7-200 and S7-1200
HMI
Memory
Block concept
Instruction set
Timers
Resources
Timer bit T37 = 1
when AT > PT.
For STEP 7 Micro/WIN, the preset time and current time are entered as a number to be multiplied
by a time base (1 / 10 / 100 ms) that depends on the selected timer number.
For the STEP 7 Basic, the time value can be entered directly.
Page 43/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Counter operation
S7-200 and S7-1200
Communication
HMI
Memory
Block concept
Instruction set
Technology
S7-200 S7-1200
SIMATIC type counter IEC type counter
Range: 0 – 32767 Range: selectable data type from SINT to UDINT
Page 44/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Count and measure with high-speed counters (HSC)
Hardware
Communication
HMI
Instruction set
S7-200 S7-1200
New Data types
CPU 224XP CPU 1214C
Timers 4 two-phase or
HSC devices total 6
6 single-phase
Counters
100kHz. max. single-phase 2 or 3 or
Technology 100kHz. max. two-phase 1 3
Resources 30kHz. max. single-phase 4 or 3 or
30kHz. max. two-phase 3 3
The two-phase or quadrature encoder is the most widely used of all rotary encoders
due to lower cost.
Page 45/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
S7-1200 Axis Technology object
S7-200 and Micro/WIN use a Position module and motion control wizard for
Hardware motion control. You must rerun the wizard to make configuration changes.
Communication S7-1200 and STEP 7 Basic use integrated pulse outputs and Axis Technology
object configuration for control of stepper motors and servo drives. PLCopen
HMI
standard instructions are then placed in your program.
Memory
Block concept
Instruction set
Timers
Counters
Technology
Resources
Page 46/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
S7-1200 PID controller Technology object
S7-200 and Micro/WIN use a PID wizard and PID tune control panel tool for PID
Hardware loop control.
Communication 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
HMI
placed in your program.
Memory
Block concept
Instruction set
Timers
Counters
Technology
Resources
Page 47/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
SIMATIC resources
Hardware
Communication
HMI
Refer to the SIMATIC S7-1200 and S7-200 documentation on the Internet at:
Memory
http://www.siemens.com/automation/service&support
Block concept
Instruction set
Contact your Siemens distributor or sales office for assistance in answering
New Data types any technical questions, for training, or for ordering S7 products.
Timers
Counters
Technology
Resources
Page 48/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector