Making The Transition From S7-200 To S7-1200

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 48

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.

6ES7 298-8FA30-8BR0 © Siemens AG 2009. All Rights Reserved.


System Expandability

Hardware
EM (Expansion Module)
CPU CP (Communication Processor)
Communication

HMI

Memory S7-200 7 (EM + CP) maximum


Block concept
Instruction set

New Data types

Timers
CM CPU SM (Signal Module)
Counters

Technology

Resources
S7-1200 8 SM maximum

3 CM (Communication Module) 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

Hardware S7-200 CPU 224XP S7-1200 CPU 1214C

Communication DI Digital Input 14 14 + (2 on SB)


DO Digital Output 10 10
HMI
AI Analog Input 2 2
Memory
AO Analog Output 1 1 + (1 on SB)
Block concept
PWM / PTO
Instruction set
Pulse Width Modulation 2 2
New Data types Pulse Train Output
Timers HSC High Speed Counter 6 6
* In planning
Counters PID Closed loop controller 8 16
Technology

Resources 1 optional Signal Board


(SB) can be inserted in
the front of the CPU

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

New Data types

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

New Data types

Timers

Counters

Technology

Resources RS485 to RS232 converter cable

Bar code reader RS485


Motor Drive

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

Counters Communication from CPU to CPU


 Open communication with TSEND / TRCV instructions
Technology
 Supported Protocols
Resources
•TCP/IP native
•ISO on TCP
 S7-communication (PUT / GET) server only

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

New Data types

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

Hardware SIMATIC SIMATIC HMI


S7-1200 Basic Panels
Communication

HMI

Memory

Block concept
Instruction set

New Data types

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

Hardware CPU 224XP CPU 1214C


Communication
64 kB
HMI

Memory
50 kB
Block concept
Instruction set

New Data types

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

Hardware S7-200 S7-1200


Communication
Size of the Not 1 / 2 MB
HMI
load memory published (internal)
Memory

Block concept
Program Program
Instruction set

New Data types

Timers blocks blocks


Counters

Technology  Tag names  Tag names


Resources  Comments  Comments

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

New Data types Data types are


organized to save
Timers
memory space “Symbolic” DB
Counters

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)

Hardware S7-200 S7-1200


Communication

HMI

Memory

Block concept
Instruction set

New Data types

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

Hardware S7-200 S7-1200


Communication
24MB
HMI

Memory
20MB
Block concept
Instruction set

New Data types 15MB


Timers

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?

Hardware S7-200 S7-1200

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?

Hardware  You can create a “Program” card that functions as


CPU memory. If you remove the “Program” card
Communication from the CPU, the CPU loses all project memory.
 You can create a “Transfer” card that can copy your
HMI
project (and updates) to multiple CPUs.
Memory

Block concept
Instruction set

New Data types

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

Hardware S7-200 S7-1200

Communication
MAIN (Main routine)
HMI

Memory INT (Interrupt routine)


Block concept
Instruction set OB (Organizational Block)
New Data types

Timers FB (Function Block) uses


an Instance Data Block
Counters

Technology FC (Function) has no


Resources Instance Data Block

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

New Data types MAIN SBR SBR


VB
Timers

Counters
SBR
Technology

Resources

INT SBR

The maximum nesting depth for Subroutines and Interrupt routines = 8

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

New Data types Single-Instance


DB
Timers FB ”Motor_2“
Counters Multi-Instance Modbus
DB COMM
Technology
”Motor_1“
Resources

STEP 7 Basic can use single-instance and multi-instance Data Blocks


 A function block (FB) to control a drive, can be called multiple times
 One FB type (ex. FB “Motor”) can control several drives
 The actual data of the different drives are stored in the different instance DBs.
 Two FBs can share a multi-instance DB for more efficient memory usage

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

Block concept Time-delay OB


200
Instruction set
FB
New Data types Cyclic interrupt OB
201
Timers DB

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

Several optional Startup and Time-delay OBs may be used

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

What’s different? Bit Logic


Hardware
S7-200 S7-1200
Communication Set/Reset instructions
 S7-200: S (Set) and R (Reset)
HMI  S7-1200: SET_BF (Set Bit Field) and RESET_BF (Reset Bit Field))
Immediate instructions
Memory
 S7-200: I (Immediate), SI (Set Immediate), and RI (Reset Immediate)
Block concept  S7-1200: Direct (Immediate) peripheral address (example, Q0.0:P or I0.0:P)

Instruction set Edge Detection instructions


New Data types  S7-200: P (Positive Transition) and N (Negative Transition)
 S7-1200: P_TRIG (Positive Transition detector)
Timers N_TRIG (Negative Transition detector)

Counters

Technology

Resources

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

What’s new? Timers


Hardware
TP (Pulse timer) and TONR (On-delay retentive) are now in the S7-200 S7-1200
Communication same group.
SIMATIC mode

HMI What’s different?


 S7-200: A timer number selection sets a 1ms, 10ms, or 100ms
Memory time resolution that is multiplied by the WORD size time current
value for preset and elapsed times.
Block concept  S7-1200: All timers are 1ms timers that use a DWORD size
Time data type for the preset and elapsed time values. A new
Instruction set IEC mode
TIME data type is used for time values.

New Data types


 S7-200: Micro/WIN has a SIMATIC and IEC programming mode.
Timers In SIMATIC mode, a T-bit and T-current value corresponding to
the timer number are used with signal the timeout condition and
Counters the current value (elapsed time).

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

 S7-200: R (Reset timer)


 S7-1200: RT (Reset timer)

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

What’s different? Counters


Hardware
Scan-speed Counter instructions S7-200 S7-1200
Communication  S7-200: Micro/WIN has a SIMATIC and IEC
programming mode. In SIMATIC mode, a C-bit and C-
HMI current value corresponding to the counter number are
used with signal the count condition and the current
Memory count value.
 S7-1200: In STEP 7 Basic, all counters are IEC style
Block concept counters that have a Q output bit that signals the count
condition and an CV output that gives the current count
Instruction set value.

New Data types


High-Speed Counter instructions
Timers  S7-200: HDEF (High-Speed Counter Definition)
HSC (High-Speed Counter)
Counters
 S7-1200: CTRL_HSC
Technology

Resources  S7-200: Special memory assignments (SM addresses)


are used to set the high-speed counter configuration
and operating parameters.
 S71200 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 25/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Compare instructions

What’s new? Compare


Hardware
The Compare instructions now support the 64 bit LREAL data type. S7-200 S7-1200
Communication
Compare instructions:
HMI
IN_RANGE tests whether an input value is in a specified value range
Memory OUT_RANGE tests whether an input value is out of a specified value
range
Block concept |OK| tests whether an input data reference is a real number
Instruction set |NOT_OK| instruction tests whether an input data reference is not a real
number
New Data types
What’s different?
Timers
 S7-200: uses 26 Compare instructions
Counters  S7-1200: uses 6 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

What’s new? Move


Hardware
The MOVE instructions (except SCALE_X and NORM_X) now support S7-200 S7-1200
Communication the 64 bit LREAL data type.
New Move instructions
HMI UMOVE_BLK uninterruptible move

Memory UFILL_BLK uninterruptible fill

Block concept What’s different?


Instruction set Move instructions
 S7-200: 9 move instructions
New Data types
 S7-1200: 2 move instructions
Timers Fill instructions

Counters  S7-200: FILL_N


 S7-1200: FILL_BLK
Technology

Resources

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

What’s new? Convert


Hardware
The Convert instructions (except SCALE_X and NORM_X) now S7-200 S7-1200
Communication support the 64 bit LREAL data type.
New Convert instructions
HMI CEIL (ceiling) converts a real number to the smallest integer

Memory FLOOR converts a real number to the greatest integer smaller


SCALE_X scales the normalized real parameter
Block concept NORM_X normalizes the parameter
Instruction set

New Data types What’s different?


Timers Convert instructions
 S7-200: 9 convert instructions
Counters
 S7-1200: 1 convert instruction
Technology String Convert instructions
 S7-200: S_I, S_DI, S_R, ITA, DTA, and RTA
Resources
 S7-1200: S_CONV

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

What’s new? Program Control


Hardware
JMPN no power flow to a JMP coil S7-200 S7-1200
Communication GetError information about program block execution errors
GetErrorIdDreports the ID of the error
HMI

Memory
What’s different?
Block concept Re-Trigger Cycle Time Monitoring instruction

Instruction set  S7-200: WDR Watchdog reset


 S7-1200: RE_TRIGR
New Data types
Return_Value Execution Control instruction
Timers  S7-200: END
Counters  S7-1200: RET

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

What’s new? Logical Operations


Hardware
SEL select instruction S7-200 S7-1200
Communication MUX multiplex instruction

HMI What’s different?


AND instruction
Memory
 S7-200: WAND_B, WAND_W, WAND_DW
Block concept  S7-1200: AND
Instruction set OR instruction
 S7-200: WOR_B, WOR_W, WOR_DW
New Data types
 S7-1200: OR
Timers XOR instructions

Counters  S7-200: WXOR_B, WXOR_W, WXOR_DW


 S7-1200: XOR
Technology
Invert instruction
Resources  S7-200: INV_B, INV_W, INV_DW
 S7-1200: INVERT instruction

Page 31/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Shift + Rotate instructions

What’s different? Shift + Rotate


Hardware
Shift Right instruction S7-200 S7-1200
Communication  S7-200: SHR_B, SHR_W, SHR_DW
 S7-1200: SHR
HMI
Shift Left instruction
Memory  S7-200: SHL_B, SHL_W, SHL_DW

 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

What’s new? Clock + Calendar


Hardware
T_CONV converts data type of time value S7-200 S7-1200
Communication T_ADD adds TIME and DTL values
T_SUB subtracts TIME and DTL values
HMI
T_DIFF provides difference
Memory RD_LOC_T read local time

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

What’s new? String + Char


Hardware
String conversion instructions S7-200 S7-1200
Communication S_CONV, STRG_VAL, VAL_STRG, LEFT, RIGHT, MID, DELETE,
INSERT, REPLACE
HMI
What’s different?
Memory Get String Length instruction

Block concept  S7-200: STR_LEN


 S7-1200: LEN
Instruction set
Concatenate instruction
New Data types  S7-200: STR_CAT
Timers  S7-1200: CONCAT
FIND substring or character in string instruction
Counters
 S7-200: STR_FIND, CHR_FIND
Technology  S7-1200: FIND

Resources What’s missing?


STR_CPY, SSTR_CPY

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

What’s new? Communications


Hardware
The S7-1200 CPU has a PROFINET (Ethernet) port and S7-200 S7-1200
Communication uses the T-BLOCK instruction (for example, TSEND_C,
TRCV_C)
HMI

Memory What’s different?


Point to Point instructions (Freeport communications)
Block concept
 S7-200: XMT, RCV
Instruction set  S7-1200: PORT_CFG, SEND_CFG, RCV_CFG,
SEND_PTP, RCV_PTP, RCV_RST, SGN_GET,
New Data types SGN_SET

Timers

Counters What’s missing?


PPI network communication instructions (NETR, NETW,
Technology GET_ADDR, SET_ADDR)

Resources

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

What’s different? Interrupt


Hardware
Time Delay Interrupt instructions S7-200 S7-1200
Communication  S7-200: ATCH and DTCH (time delay interrupt events 21 and 22)
 S7-1200: SRT_DINT, CAN_DINT
HMI
Asynchronous Interrupt Control instructions
Memory  S7-200: ENI and DISI
 S7-1200: DIS_AIRT, EN_AIRT
Block concept
Terminate Execution of Current Block instruction
Instruction set  S7-200: RETI
New Data types  S7-1200: RET

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

What’s missing? Table


Hardware
Missing Table instructions S7-1200 S7-200
Communication Table instructions (LIFO, FIFO, AD_T_TBL, TBL_FIND)

HMI

Memory

Block concept
Instruction set

New Data types What’s different? PID Loop control


Timers
PID instructions S7-200 S7-1200
 S7-200: The PID instruction is usually operated with code
Counters generated by the STEP 7-Micro/WIN PID wizard.
 S7-1200: PID_Compact smart instruction with extra buttons on
Technology the instruction box to set configuration and commissioning
properties
Resources

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

Technology Pulse control


S7-200 S7-1200
Resources

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

What’s different? Modbus library


Hardware
Different Modbus library instructions S7-200 S7-1200
Communication  S7-200: MBUS_CTRL, MBUS_MSG,
MBUS_CTRL_P1, MBUS)_MSG_PI, MBUS_INIT,
HMI MBUS_SLAVE
 S7-1200: MB_COMM_LOAD, MB_MASTER,
Memory MB_SLAVE

Block concept
Instruction set

New Data types

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

What’s new? USS drive library


Hardware
USS_DRV S7-200 S7-1200
Communication USS_PORT

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)

Memory  UInt - Word size (0 to 65,535)


 UDint - Dword size (0 to 4,294,967,295)
Block concept
Instruction set
Long Real for greater floating-point precision
New Data types  LReal - 64 bit size
Timers +/-2.2250738585072020 × 10 -308
308
to +/-1.7976931348623157 × 10
Counters
Time data type has new entry format and range
Technology
 Time - Dword size
Resources T# -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#50ms
T#5m_30s
T#1d_2h_15m_30s_45ms

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

Hardware Array DTL (Date and Time Long)


Communication

HMI

Memory

Block concept
Instruction set

New Data types

Timers

Counters

Technology

Resources

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

Page 42/48 S7-1200 Transition Manual © Siemens AG 2009. All Rights Reserved.
A5E02486860-01 Industry Sector
Timer operation
S7-200 and S7-1200

Hardware S7-200 S7-1200


Communication

HMI

Memory

Block concept
Instruction set

New Data types

Timers

Counters Output Q = 1 when


ET >= PT.
Technology

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

Hardware S7-200 S7-1200

Communication

HMI

Memory

Block concept
Instruction set

New Data types

Timers Output Q = 1 when


Counters CV >= PV

Technology

Resources Counter bit C5 = 1


when CV >= PV

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

Memory ... ...


Block concept Rotary shaft encoders

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

New Data types

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

New Data types

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

You might also like