Sunteți pe pagina 1din 118

PLC NET

V SIVAGANESH LECTURER OF MECHATRONICS PSGTECH

Communication Model : Communication :


Exchange of Data between two parties

Source

Tx.

Transmission System

Rx.

Destination

1-22

Fundamentals Of Communication :
Points To Be Looked into ...

Communication Modes Transmission Format (Synchronous versus Asynchronous) Data Coding Open Systems Model
3-22

Communication Modes
In any communications link between two devices, data can either be sent in one of three commun. modes :


Simplex

Simplex Half Duplex Duplex

Transmitter

Receiver

Simplex

NOTE: There is no feedback from Receiver.


4-22

Half Duplex :
Transmitter Receiver Half Duplex Transmitter

Receiver

1. Data flows in both directions,only one direction at a time. 2. Half duplex communications is provided by the RS-485. 3. Only one station can transmit or Receive at a time. 4. Protocol can be MPI, Profibus, MODBUS etc.
5-22

Full Duplex :
Full Duplex Transmitter Receiver Receiver

Transmitter

1. Data flows in Both directions. 2. Full duplex communications is provided by the RS-232C. 3. Both station can transmit or Receive simultaneously.

6-22

Asynchronous Transmission :
Start Bit
Transmitter

Stop Bit
Receiver Clock

D0 D1 D2 D3 D4 D5 D6 D7

Clock
Start

ASCII Character
Time

The asynchronous approach is the more basic one used by RS 232C .

It operates at a lower speed.

An asynchronous system is one in which each character or byte is sent within a frame.

The receiver does not start detection until it receives the first bit, known as the start bit. The start bit is in the opposite voltage state to the idle voltage and allows the receiver to synchronize to the bits following.
7-22

A Typical asynchronous Transmission Frame Format :

Start Bit

DATA

Parity Bit

Stop Bit

Start Bit
Data

: Signals the start of the frame


: Usually 7 or 8 bits of data, but can be 5 or 6

Parity Bit : Optional Error detection bit

Stop bits : Usually 1, 1.5 or 2 bits.


8-22

Synchronous Transmission :
Clock
Sync Sync

Transmitter Data Start Time

Receiver

Synchronous system uses a string of bits to synchronise the receiver before the data is detected. Synchronous systems detect bits by a change in voltage rather than by reading an absolute value as with asynchronous systems.. This fomat is generally used for High Speed Transmission.

The Receiver and Transmitter are always synchronized.

9-22

Protocol
All communication partners involved in data transmission must follow fixed rules for handling and implementing the data traffic. Such rules are called protocols.

A protocol defines the following points:


Operating mode : Half-duplex or full-duplex mode Initiative : Which communication partners can initiate the transmission
and under what conditions

Control characters : Which control characters are to be used for data


transmission Character frame : Which character frames are to be used for data transmission Data backup : The data backup procedure to be used

Character delay time : The time period within which an incoming


character must be received

Transmission speed : The baud rate in bits/s

13-22

Basic Seven Layers and Their Specifications


7 6 5 Application Presentation Session
Provides application specific communication services e.g.Read/Write ,Start/Stop Data presentation:Converts the standard presentation format for the communication system to a device specific format Synchronization: Opening, closing and monitoring a session Connecting / disconnecting links, repeating packets, sorting packets, packaging Addressing other networks/ Optimum routing, flow control. Access techniques:Data block boundaries,errorfree data transfer,error detection, error handling. Physical aspects of data transfer, transmission medium, baudrate,specification of the electrical, mechanical and functional parameters of the cable/bus 14-22

4
3 2 1

Transport
Network Data Link Physical

Network Topology :
Line or Bus
Station 1 Station 2 Station 3

All stations on the N/W require only one interface It has to be ensured that only one station is able to transmitts at a time and all other are permitted to listen. It is necessary to define that when station has right to transmit. this is defined in the access technique.
15-22

Ring

Station 1

Station 2

Station 3

Station 4

Station 5

Station 6

Permission to send also has to be controlled via bus access technique. Advantage : This type of ring is that each node can operate as a repeater so that large distance can be covered. Disadvantage :Failure of node causes grater problem as compare to line Structure.
16-22

Star

Station 1

Station 2

Station 3

*
*
= Star Coupler

It controls the entire communication and if it fails, the entire network usually fails with it.

17-22

Tree

Station 1

Station 2

Station 3 = Repeater

= Repeater

Station 4

Station 5

It is mainly a chain of a number of line structures of diff. Length and types. To connect different types there can be converters like Routers, Bridges and Gateways.
18-22

Access Techniques: Master/Slave


Master

Bus

Slave 1

Slave 2

Slave 3

The master directs the entire bus traffic. It sends data to the slaves (polling) and gives the slaves the command to send. Direct communication between slaves is usually not possible. The advantage of master/slave techniques is simple and efficient bus control. This is why they are often used in field buses such as PROFIBUS-DP.
20-22

Data Communication Standards :


Tx / Rx Tx / Rx

DTE

DCE
Physical Interface

DCE

DTE

Physical Interface

Types of transmission lines (Interface) in Data Communication Systems :

Unbalanced

Balanced
1-8

The RS-232 standard


The RS-232 interface standard specifies the method of

connection of two devices, the DTE and DCE.


The RS-232 standard is a unbalanced standard. DTE( Data Terminal Equipment) for example, may be a computer

or a printer. A DTE device communicates with a DCE device.


DCE Data Communications Equipment,example a modem.

A DCE device receives data from the DTE and retransmits via another data communications link, such as the telephone system.

4-8

Connection between DTE & DCE


1 2 3 4
Chassis Ground Transmit Data (TxD) Received Data ( RxD) Request to Send ( RTD) Clear to Send ( CTD) Data Set Ready ( DSR)

1 2 3 4 5 6

Computer

5 6

Modem

7
8 20

Signal Ground ( Common )


Data Carrier Detect ( DCD ) Data Terminal Ready ( DTR ) Ring Indicator ( RI ) Data Signal Rate Selector (DSRS)

7
8 20

22

22
23
5-8

Salient Features of RS 232 :


Point - Point Communication Suitable for serial, binary and digital data communication Asynchronous, meaning that there is fixed timing between data bits, but variable time between character frames full duplex communications

Unbalanced transmission (and therefore susceptible to noise)


Signal Voltage : 1 = - 3V to -25V 0 = +3V to +25V Distance : 50 ft. typically Transmission Rate : 20kbps typically
6-8

Salient Features of RS 485 :


The RS 485 interface standard is true balance or differential std. The RS 485 permits a multidrop n/w connection on 2 wires. Distance up to 1.2Km. Transmission Rate up to 12Mbps. Up to 32 line drivers/receivers on the same line. Signal Voltage : 1 = - 1.5V to -6V 0 = +1.5V to +6V X = High Impedance The RS485 interface standard is very useful for systems where several instruments or controllers may be connected on the same line.
7-8

Communication - SIMATIC NET


Management level
SIMATIC NET

Workstation, PC

Industrial Ethernet
Cell level

PLC, PC

Field level

PROFIBUS PLC, , PC
Drives Valves

Actuator sensor interface

Actuator sensor interface

Type of Subnets in SIMATIC


PG 720

PCs, OS OPs

PGs

MPI network Industrial Ethernet PROFIBUS


Point-to-Point

Cell level

SIMATIC S5 PROFIBUSDP

S7-400

M7400

S7-300

-SINUMERIK, RCM -TI 505 -Other PLC

Field level

DP/AS-I link ET 200C ASI (Actuator Sensor Interface) ET 200B/L

AS-I power supply Field device with AS-I ASIC Sensors and Actuators

AS-I submodules

ASIlevel

SIMATIC NET : Communication Methods

Plant Level

Cell Level Field Level Actuator/ Sensor Level

ASi bus

Technical specifications of the AS-Interface


Standard Access method AS-Interface according to EN 50295 Master-slave (deterministic)

Cycle time
Transmission medium Max. no. of nodes Network size (approx.) Topology Protocols Applications

Max. 5 ms (Spec. V2.1 10ms)


Unshielded, polarized 2-wire cable Data and power on a single cable 62 slaves (max. 4 binary elements per slave) Max. cable length 300 m (with repeater) Bus, tree, star According to AS-Interface Process or field communication

AS-Interface

Standard to EN 50 295
For fieldbus connection of

Actuators and Sensors

S7-200 S7-300

S5

ET 200

Transfer of data and auxiliary power via a single cable AS-Interface Master for many target systems

SIMATIC NET CP 342-2


S7-200 S7-300 S5 ET 200
Master functions and calls supported

V 2.0

V 2.1

LED displays mean reduction in downtimes and servicing times Shorter commissioning times with pushbutton configuration More flexible design through use in ET 200M DP Slave

AS-Interface Connection using penetration method


Mechanical hold-down Electrical contacting

Attach coupling module to the system

Lay cable in the cable guide

Screw on the user module

Configuration Example
Master

max. 100 m

max. 100 m

AS-Interface power supply unit AS-Interface power supply unit

Repeater

SIMATIC NET : Profibus


PROCESS FIELD BUS

Customer Expectations

Cost Savings Flexibility

Reliable & Future oriented


Solution for all Automation Needs

Interoperability & Vendor Independence


! Standard !

How does PROFIBUS fulfill all these needs?

PROFIBUS is part of the Open Standard IEC 61158

PROFIBUS International *
China
102 Members

NAFTA
136 Members

Germany
230 Members

Fastest Growing User Association

*Status: Q1/2000

SIMATIC NET : Profibus


What's so special about PROFIBUS?

Stable standards (EN 50170, IEC 61158)


PROFIBUS EN 50170

Vendor independent More than 1,900 products from 250+ vendors

Nearly 1,000 members worldwide (PROFIBUS User

Organizations)
Market leadership More than 300,000 applications are already operational Cost reduction and improved flexibility

Interoperability & Vendor Independence


1,000 members in 23 user associations *

1,900 products from more than 280 different vendors *

*Status: Q1/2000

Solution for all your Automation Needs

Internet

Enterprise
Peer-to-Peer

PROCESS FIELD BUS

Cell Level

Field Level

Solution for all your (continued)

1,900 products from more than 280 different vendors


I/O Software Drivers
SIMOVERT SC 6SE7016-1EA30 WR 2,2 kW Nr. 467321

Valves

Tools
SIEMENS

Drives

Controllers

Network Components PC Boards HMI

Training & Services

Instruments

see Electronic Product Guide on www.profibus.com for complete list

SIMATIC NET : Profibus


The PROFIBUS Protocol

Profibus = Process Field Bus A general purpose open fieldbus for factory, process and buildings automation

DP - Decentralised Periphery for fast communication tasks FMS - Fieldbus Message Specification for complex communication tasks PA- Process Automation for process applications or intrinsic safety

Solution for all your (continued) Peer-to-Peer (Field bus Message Specification - FMS) Connection oriented communication Definition of communication objects Transmission rate up to 12 Mbaud Several masters can participate Master-master communication Several master can write to the same field device Up to 244 bytes of user data

Peer-to-Peer

Solution for all your (continued) High Speed I/O (Decentralized Periphery - DP) High speed data exchange Transmission rate up to 12Mbaud Several masters can participate ONE master ONLY can write to a field device Up to 244 bytes of user data Same cables & components as Peerto-Peer Operation together with Peer-to-Peer in one network possible

Solution for all your (continued) Hazardous Area (Process Automation PA) Protocol is DP - PA field devices are controlled by standard DP Master According to IEC 1158-2 - different physical setup Transmission rate 31.25kbaud Power and data are transferred via the same wire

SIMATIC NET : Profibus


Why use PROFIBUS instead of conventional field technology?
Control Cabinet

Conventional Profibus-DP

Control Cabinet

Terminal blocks

PROFIBUS-DP

Advantages:
Distr. Distributor Distr.

Fewer components in the control cabinet. Less cabling required &direct links to devices . Cost reduction in hardware and installation, Less hardware components needed Easy, fast and cheaper installation.

150%

Cost Savings (continued)


Engineering

100%
100%

Assembly Hardware

22% 27%
50%

57% 12% 22% 23%


Reference: Namur AK 3.5, Dr. Rathje, Bayer AG

51%
0%
Today (4...20mA)

PROFIBUS

SIMATIC NET : Profibus


Technical Details

Max. nodes

: 126

Transmission rate : 9.6 kbit/s 12 Mbit/s Access Technique : Token Bus, Master/Slave

Topology
Max. distance (FO) Telegram size

: Line, Ring, Star


: 9.6 km (RS 485), >100 km : 1-244 bytes

Redundant cabling : Yes (Fibre Optic)

Hazardous area use : Yes (Profibus PA - IEC 1158-2) Data and Power : Yes (Profibus PA)

SIMATIC NET : Profibus When is PROFIBUS-FMS/DP/PA used?


PROFIBUS-FMS Application Standard Connectable devices Cell level EN 50 170/ IEC 61158 PLC, PG/PC PROFIBUS-DP Field level EN 50 170/IEC 61158 PLC, PG/PC, binary and analog field devices, drives, valves, OPs 1 - 5 ms <= 100 km 9.6 kbit/s 12 Mbit/s PROFIBUS-PA Field level IEC 1158-2 Field devices for areas subject to explosion

Resp. times Network size Transmission rates

< 60 ms <= 100 km 9.6 kbit/s 12 Mbit/s

< 60 ms Max. 1.9 km 31.25 kbit/s

SIMATIC NET : Profibus


Network Topologies With PROFIBUS :

Electrical network:

Shielded, twisted two-wire cable (RS 485)

Two-wire cable for areas subject to explosion hazards (IEC 11582) Nodes can be connected via Bus terminal or Bus connector. Bus or tree topology

Optical network:

Glass FO cable Plastic FO cable

Wireless network with ILM infrared link module for Profibus DP

Mixed network possible via OLM

SIMATIC NET : Profibus


Different Components used in PROFIBUS :
OP

Active Terminator

S7-400

Bus terminal
Repeater

Repeater

TD ET 200

SIMATIC NET : Profibus


12M (BT 12M) bus terminal Bus Connectors

For connecting a PROFIBUS node to an RS 485 interface


Versions with transmission rates from 9.6 Kbit/s to12

RS 485 Repeater for PROFIBUS

Mbit/s

Connects two PROFIBUS or MPI segments in the RS 485 technique For increasing node count and expansion Segment isolation

Active Station Token

DP Master

SIEMENS

SIEMENS

SIEMENS

0 1 2 3

4 5 6 7

8 9 10 11

12 13 14 15 130

0 1 2 3

4 5 6 7

8 9 10 11

12 13 14 15 130

0 1 2 3

4 5 6 7

8 9 10 11

12 13 14 15 130

(2)

(3)

(4)

(5)

(6)

(7) Up to 126 DP Slaves

PROFIBUS-DP System : Overview


PROFIBUS is an established fieldbus system which can be used by all automation equipment, such as PLCs, PCs, HMIs and actuators and sensors, for exchanging data.

PROFIBUS-DP
It is a protocol optimized for speed, which was specially designed for communication between PLCs (DP masters) and distributed I/Os (DP slaves). It is a low-cost, flexible substitute for transmission of signals on cumbersome parallel 24V and 20mA lines. PROFIBUS-DP is based on DIN 19245 Part 1 and the user-specific extensions in DIN 19245 Part 3.

PROFIBUS-DP System : Overview Masters


PROFIBUS makes a distinction between masters and slaves. The PROFIBUS masters are in charge of data traffic on the bus. A master can send messages without being requested to do so, provided it is in possession of the token that entitles it to access the bus. Masters are also referred to in the PROFIBUS protocol as active nodes.

Slaves
PROFIBUS slaves are simple I/O devices, such as actuators, sensors, transducers, etc. They do not receive the token, that is, they can only acknowledge the receipt of messages or send messages (data) to a master on request. Slaves are also referred to as passive nodes.

Profibus

Structure of a PROFIBUS-DP System


Master
S7-400 PS S7 10A 400 CPU 4142 DP S7 S7 PS S7-300 S7-300 S7 CPU 314 CP 3425 DP

S7-300

PROFIBUS -DP SIMATIC S7-300 ET 200M


DPNORMSLAVE

Slaves

PS S7- S7 S7 S7 S7 300 CP CPU 3423155 DP 2 DP

PS IM S7 S7 S7 S7 153

intelligent slave
DPNORMSLAVE

compact slaves

modular slave

PROFIBUS- DP : Access Techniques


Logical token ring between masters

P G 720

PROFIBUS

FM

SV

Polling between masters and slaves

PROFIBUS-DP: Hardware Component

MPI/PROFIBUS interface PROFIBUS interface

MPI interface

PROFIBUS interface

S7-300 CPU with integrated DP Port S7-400 CPU with integrated DP Port

PROFIBUS-DP: Hardware Component

CPs for the SIMATIC S7-400 CP 443-5 Ext. and CP 443-5 Basic(FMS)

CPs for the SIMATIC S7300 CP 342-5 and CP 3435(FMS) CPs for PC/PG

CP 5613 and CP 5614 (Hardnet ) CP 5611 or CP5511 (Softnet )

PROFIBUS-DP: Hardware Component


PG/PC/OP

PROFIBUS-DP, PG/OP Comm.

PROFIBUS Slaves

CP 5613 CP 5611

PROFIBUS - DP Terminating Resistor


CPU with Profibus-DP interface Terminating resistor required

N= Profibus-DP node

CPU with Profibus-DP interface Terminating resistor required Terminating resistor required

N= Profibus-DP node

PROFIBUS- DP : Bus Cycle Time for MonoMaster System


Bus cycle time [ms]
18

14

500 Kbit/s

10

1,5 Mbit/s DP slaves

2 0 Conditions:

12 Mbit/s

5 30 20 10 Each slave has 2 bytes of input data and 2 bytes of output data. The minimum slave interval time is 200 microseconds Tsdi= 37 bit times, Tsdr= 11 bit times

PROFIBUS-DP : Cyclic Data Transmission

DP Master

DP Slave

Immediate reply

Network Communication with an S7-200 CPU


S7-200
PG/PC
SF I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I1.0 I1.1 I1.2 I1.3 I1.4 I1.5 Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7 Q1.0 Q1.1

Printer
CPU 214

SIEMENS

RUN ST OP

SIMATIC S7-200

I0.6 I0.7

SIEMENS

TD 200

F5 F1

F6 F2

F7 F3

F8 F4
SHIFT ESC ENTER

Modem
SF I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I1.0 I1.1 I1.2 I1.3 I1.4 I1.5 Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7 Q1.0 Q1.1

Operator interface

SIEMENS

CPU 214

RUN ST OP

SIMATIC S7-200

I0.6 I0.7

PLC
SF I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I1.0 I1.1 I1.2 I1.3 I1.4 I1.5 Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7 Q1.0 Q1.1

SIEMENS

CPU 214

RUN ST OP

SIMATIC S7-200

I0.6 I0.7

SF

I0.0 I0.1 I0.2 I0.3 I0.4 I0.5

I1.0 I1.1 I1.2 I1.3 I1.4 I1.5

Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7 SF I0.0 I0.1 I0.2 I0.3 I0.4 I0.5

Q1.0 Q1.1

SIEMENS

CPU 214

RUN ST OP

PG 702

SIMATIC S7-200 SIEMENS

I0.6 I0.7

I1.0 I1.1 I1.2 I1.3 I1.4 I1.5

Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7

Q1.0 Q1.1

CPU 214

RUN ST OP

SIMATIC S7-200

I0.6 I0.7

Bar code scanner

NETR, NETW with Profibus components

Communication Using PC/PPI Cable

Master The CPU is connected to the COM2 port of the PG via a PC/PPI cable

Communication Using MPI Cable


CPU224 - Station 2 CPU224 - Station 3

CPU221 - Station CPU221 - Station 4 5

Master TD200 Station 6

Master OP3 Station 7

Master TD200 Station 8

Master
PG with MPI card Station 0

PPI Protocol
SF I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I1.0 I1.1 I1.2 I1.3 I1.4 I1.5 Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7 Q1.0 Q1.1

SIEMENS

CPU 214

SF

I0.0 I0.1 I0.2 I0.3 I0.4 I0.5

I1.0 I1.1 I1.2 I1.3 I1.4 I1.5

Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7

Q1.0 Q1.1

RUN STOP

SIEMENS

CPU 214

SF

I0.0 I0.1 I0.2 I0.3 I0.4 I0.5

I1.0 I1.1 I1.2 I1.3 I1.4 I1.5

Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7

Q1.0 Q1.1

RUN STOP

SIEMENS

CPU 214

RUN STOP

SIMATIC S7-200

I0.6 I0.7

SIMATIC S7-200

I0.6 I0.7

SIMATIC S7-200

I0.6 I0.7

Micro/Win

S7-221 Station 2, Slave only

S7-224 Station 3

S7-224 Station n
SIEMENS TD 200

F5 F1

F6 F2

F7 F3

F8 F4 SHIFT ESC ENTER

SIEMENS

RS-485
F5 F1 F6 F2 F7 F3

TD 200

TD-200 Station 5
F8 F4 SHIFT ESC ENTER

TD-200 Station 1

Station 0 with MPI card installed

MPI Protocol
S7-221 Station 3
SIEMENS SF RUN STOP I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I0.6 SIMATIC S7-200 I0.7 Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 X 3 2 4 SIMATIC S7-200 M i c r o P LC 2 1 2 SIEMENS SF RUN STOP I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I0.6 I0.7 Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 X 3 2 4 SIMATIC S7-200 M i c r o P LC 2 1 2

S7-224 Station 4

S7-226 Station 5
SIEMENS SF RUN STOP I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I0.6 I0.7 Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 X 3 2 4 M i c r o P LC 2 1 2

S7-314 Station 2

Profibus DP : EM 277
S7-315 Master EM-277
SF I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I1.0 I1.1 I1.2 I1.3 I1.4 I1.5 Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7 Q1.0 Q1.1

SIEMENS

CPU 214

RUN STOP

S7-226 Slave
SF

I0.0 I0.1 I0.2 I0.3 I0.4 I0.5

I1.0 I1.1 I1.2 I1.3 I1.4 I1.5

Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7

Q1.0 Q1.1

SIEMENS

CPU 214

RUN

STOP

SIMATIC S7-200

I0.6 I0.7

SIMATIC S7-200

I0.6 I0.7

3 Profibus MPI

0
PPI

Memory Mapping
CPU 224 V Memory VB0 EM 277 PB-DP module CPU 315 - 2DP I/O address area P 000

Offset 500 bytes


VB499 VB500 Output Buffer ( RCV mailbox ) 16 bytes Input Buffer ( SND mailbox ) 16 bytes PI 256 I/O Input Area 16 bytes PI 271

VB515 VB516

VB531 VB532

I/O Output Area 16 bytes

PI 256

PI 271

VB XX

Communications : Transmission Media / Protocols


Std.& Extended Comms.

FMS DP

TCP/IP MAP 3.0

S5-compatible-Communication PG/OP-Communication

SIMATIC Communications

S7-Communication S7-BasisComm. Global Data


MP I Profibus Ethernet

S7 Communication Services for S7300/400


Global Data CPUs oper. system cyclical or/and program controlled using MPI or K-Bus CPUs oper. system

PG and HMI Functions


CPUs oper. system Controlled via operating system using MPI, K-Bus, Profibus and Industrial Ethernet Expanded Communication using Configured Connection(only S7-400)
program controlled using
PG 720

Basic Communication without Configured Connection


program controlled using MPI or K-Bus

SFC

SFC

SFB

MPI, K-Bus, Profibus or Industrial Ethernet

SFB

Connections between Communication Participants


Industrial PROFIBUS Ethernet

S7 Connection using Ethernet


Industrial Ethernet CPU 2 CP

S7-400
CPU 1 CP CP

S7-300

MPI PROFIBUS S7 Connection using MPI Industrial Ethernet S7 Connection using PROFIBUS

PG Connection using MPI

PG 720

OP Connection using PROFIBUS

Connections and Resources


Connections :
A connection is a logical assignment of two communication partners for carrying out communication services.

Resource :
At the participating stations,connection resources for the end position(e.g.CPU) or for the transition position (e.g. CP) are required for every connection. The number of connection resources depends on the CPU/CP. If all connection resources of a communication partner are occupied, no new connection can be established.

S7 Functions to CPUs
For the S7 functions via the integrated MPI-/PROFIBUS-DP interface, one connection resource is occupied on the CPU for the end position per S7 connection. For the S7 functions via an external CP interface, one connection resource each is occupied on the CPU and on the CP (transition position) per S7 connection.

S7 Functions to FMs
For the S7 functions to a function module (FM) via the internal MPI-/PROFIBUS-DP interface, two connection resources (for two transition positions) are occupied on the CPU per S7 connection and on the FM one connection resource each (for the end position) is occupied.

Assignment of Connection Resources for S7 Communication


S7-300/400: MPI or internal CPU PROFIBUS-DPinterface

S7-300: CPU internal PROFIBUS-DP

FM

S7-300/400: Indl. Ethernet CPU or PROFIBUS-CP

CP

S7-300: MPI interface

CPU

FM

free connection resource


Occupied connection resource

S7-400: MPI or internal CPU PROFIBUS-DP

FM

Networking via MPI


S7-300 or S7- 400
CPU 1

S7-300 or S7- 400


CPU 2

PG connection via MPI


0

PLC link via MPI


1

OP connection via MPI

PG 720

n Default MPI address

Main features of the MPI interface Physical Interface : RS 485 PG Transmission rate 19.2 Kbps or 187.5 Kbps. Distance S7 200 up to 50 m (between 2odes) and with 2 repeaters,1100 m SIMATIC-HMI and 23.8 km with optical fiber and star coupler. Profibus components MPI -Network cables, connectors
S7-400

OP

S7-300

S7-300

Connection Options to MPI

To MPI interfac e of CPU

Connection for PG/HMI

Bus To MPI interface connector of


CPU Switch for terminating resistor

Types of MPI Communication


Global Data
cyclic or event-driven Op. Sys. of CPU via MPI Op. Sys. of CPU

Basic communication ( non-configured connection )


Event-driven via MPI or K-Bus

SFC

SFC

Global data communications

Global Data Table


Small volumes of data (approx. 20 bytes on the S7-300, 30 to 60 bytes on the S7-400 ) cyclically controlled Broadcast call (data are sent without response) The data sent/received are only parameterized in a table (no program) The function is handled via the MPI interface of the CPUs Data can be sent and received with SFCs even during the PLC cycle SFC 60 GD_SND and SFC 61 GD_RCV are available for this purpose

Global Data Table


CPU 1 MW 10 CPU 2 MW 20 CPU 3 MW 30

Global Data

Global Data Communication

0 8 1 5 IW 4 (IW 2)

0 8 1 5 QW 12 (QW 6)

Station 1 4 7 1 1
QW 12 (QW 6)

Station 2 4 7 1 1
IW 4 (IW 2)

MPI Communication using SFCs


With communications SFCs you have an acknowledged data transmission using non-configured S7 connections. In communication ( X_.. ) using an MPI subnet, the addressing of the partner takes place by specifying the MPI address. In communication ( I_... ) within the same station it takes place by specifying the logical module initial address (I/O address).
S7-300/400 (Client/Server)
X-Send X-Rcv

S7-300/400 (Client/Server)
X-Send X-Rcv
X-Put X-Get

X-Put X-Get I-Put I-Get

X-Abort I-Abort I-Put I-Get

SFC Communication: Block Overview


SFC
SFC 65 SFC 66 SFC 67 SFC 68

NAME
X_SEND X_RCV X_GET X_PUT

Short Description
Send block for sending data to the X_RCV (Client) block Receive block for receiving the data of the X_SEND block Read data from the partner PLC Write data to the partner PLC

SFC 69
SFC 72 SFC 73 SFC 74

X_ABORT
I_GET I_PUT I_ABORT

Abort existing connection


Read data from the partner CPU Write data to the partner CPU Abort connection to the partner CPU

Ethernet Fundamentals

Industrial Ethernet Innovative and time-proven


Since 1985, Industrial Ethernet has been the tailor-made cell network for automation engineering and the basis for IT applications Industrial Ethernet is a network based on the IEEE 802.3 standard It is the leading industrial network with more than 400,000 nodes in use worldwide Industrial Ethernet Designed for Industry! Industrial Ethernet offers standard communication protocols (e.g. TCP/IP) Your data travel down the line at 100 Mbit/s Redundant networks

Industrial Ethernet Innovative and time-proven


Products with RJ45 connectors and TP cables Fast Ethernet (100 Mbit/s) Switching Fast media redundancy Information technology (Internet, multimedia) Industrial wireless LAN FastConnect Industrial Ethernet in line Management

Industrial Ethernet Product overview


Transmission media

Network components

Communication processors for SIMATIC controllers

Communication processors for PCs, PGs and workstations

SIMATIC NET software

IE/PB Link

Industrial Ethernet PC cards


Savings in time and costs thanks to standards, speed and reliability Standard Windows XP and Windows 2000 operating systems Easy handling thanks to Plug and Play Card drivers are already integrated in Windows Your data travel down the line at 100 Mbit/s
CP 1512

CP 1612

Redundant networks
CP 1613

CP 1515

Industrial Ethernet Network components


Industrial Ethernet Extract from the product portfolio Passive components Industrial Ethernet FastConnect Active components

OSM optical switch module

Industrial twisted pair cables

ELS electrical lean switch module

RLM with CP 1515


Fiber-optic cables

Industrial Ethernet Network components


Configuration example
Fiber to the machine!
Optical switching module

Fiber-optic cable

Optical media converter

Industrial Ethernet IT solutions in manufacturing plants


Office
Ethernet

PC with standard browser

Mail server

Batch manufacturing/ production

Access to data

E-mail

Industrial Ethernet

CP 343-1 IT

CP 343-1 IT

Industrial Ethernet CP 243-1IT, CP 343-1IT and CP 443-1IT


Platform-independent access to process and diagnostics data Access is local, mobile or remote using Web technology Alarm annunciation through e-mail

ISO TCP/IP PG/OP S7-K

S5-K

IT

TF

OPC

Safety Integrated Integrated safety technology via Profibus and AS-Interface


DP/DP coupler SIMATIC S7 400F/H ET200S PROFIsafe ET200S PROFIsafe with motor starter SIMATIC S7 315F ET200S PROFIsafe

TIA for the operation phase

SINUMERIK SIMODRIVE MICRO MASTER

ET200M/F

DP/AS-i link SIGUARD laser scanner light curtains

SIGUARD laser scanner

Operator panel

SIGUARD position switches

Safety monitor

EM. STOP

AS-i module

SIGUARD light curtains

SIGUARD safety door lock

Factory and process automation Totally Integrated Automation


Enterprise Resource Planning (ERP) Introduction System overview Three-fold uniformity Manufacturing Execution Systems (MES) Controls
Ethernet Ethernet

Changes in technology
Industry Software Controller/ Automation System Process Control System Motion Control System HumanMachine Interface

Component based Automation

PC based Automation

Distributed I/0

Drives Technology

ActuatorSensor Interface Level

Industrial Communication

Changes in automation technology


Control platforms
Introduction System overview Three-fold uniformity
Intelligent Field Devices

Communication

PC PC Ethernet

Changes in technology

Component based Automation

PLC PLC

PLC Fieldbus

PC-based Automation

1990

2000

2010

In future, automation applications will be distributed over many control platforms

IT-technologies and automation are growing closer

Today: modular concept with central intelligence


Introduction System overview Three-fold uniformity

Changes in technology

Program executes on central controller

Ethernet

Engineering station Human Machine Interface

Mechanical

Component based Automation

PC-based Automation

PROFIBUS

Electrical/Electronics

Distributed I/O

New with TIA: modular concept with distributed intelligence


Introduction System overview Three-fold uniformity

Ethernet

Engineering station Human Machine Interface

Technological module:

Changes in technology

Mechanical + Electrical/Electronics + User program

Component based Automation

Ethernet/ ProfibusLink

PROFIBUS

PC-based Automation

Intelligent field devices

Positioning Modules FM 353, FM 354, FM 453


Overview

FM 353 Controlling of stepper motors

FM 354 Controlling of servo motors

FM 453 Controlling of stepper- & servo motors

Functional Diagram
MPI
SIMATIC FM 353

Power section for stepper motors FM 353

CPU

PG, PC

FM STEPDRIVE

OP

SIMOSTEP stepper motor

Human-machine interface Fault diagnosis Drive interface STEP STEP 7 programming Pulses, FM parameterizing Sequence control direction signal
Starting/stopping of positioning

Universal Positioning Parameters (1)

SIMATIC FM 353

Positioning of linear and round axes


Drive interface Stepping Pulse and directional signal

2 software limit switches


Operating modes Reference point approach Setting up Incremental dimension MDI Automatic/single block Control

Adaptation to Mechanics and Technology Parameters (2)


SIMATIC FM 353

Start-Stop frequency
Maximum frequency Acceleration Traversing range Traversing speed

10 Hz to 10 kHz
200 kHz 10Hz/s to 10MHz/s +/- 100m 10 Hz to 50 kHz

Accurate and Reliable Positioning Parameters (3) SIMATIC FM 353

Axis error corrections Non-reversing compensation Offset compensation Drift compensation Override Feed and time override Acceleration override (programmable) Switching functions (M functions) Acknowledgement-controlled Timed Path-dependent

Functional Diagram
MPI PG/PC OP CPU FM 354
SIMATIC FM 354

SIMODRIVE 611U

Human-machine interface Fault diagnosis STEP 7 programming FM parameterizing

Encoder servo motor interface SSI/incremen Drive interface +/Sequence control tal 10V Starting/stopping of positioning

Universal Positioning Parameters (1)

SIMATIC FM 354

Position control for linear and round axes Universal drive interface +/- 10V Selectable position encoder Incremental encoder (RS 422) Absolute value encoder (SSI) 1 reference point with incremental encoder 2 software limit switches

Traversing Possibilities Parameters (2)

Simulation mode Parking axis Teach In Operating modes Reference point approach Setting up Incremental dimension MDI Automatic/single block Control

SIMATIC FM 354

Adaptation to Mechanics and Technology Parameters (3)

Traversing range Traversing speed Acceleration

+/- 100m 0.01m/min to 500m/min 1.0mm/s2 to 99.999m/s2

SIMATIC FM 354

Jolt time (jerk limitation)

0s to 9.999s

Accurate and Reliable Positioning Parameters (4)

SIMATIC FM 354

Axis error corrections Non-reversing compensation Offset compensation Drift compensation Monitoring following error Override Feed and time override Acceleration override (programmable) Switching functions (M functions) Acknowledgement-controlled Timed, Path-dependent

Retentive Data Storage on the Module Parameters (5)


Parameter assignment, e.g. with PG/PC

Machine data
Traversing programs Incremental dimension table 1 to 100 incremental dimensions can be defined Tool corrections 20 correction and wear values can be defined

SIMATIC FM 354

Function: Jerk limitation Parameters (7)


v v
SIMATIC FM 354

Abrupt acceleration

Acceleration with jerk limitation

Lower wear

Faster positioning possible

Structure Diagram
M PI Setup Monitoring SIMATIC S7-400
Stepper driver

Machine

FM 453

e.g. Field PG

e.g. OP 27

SIMATIC FM 453
CPU

Stepper motor S IM O D R IV E 6 1 1U

S IE M E N S

1 F T6
VS A

E / R

STEP 7 programming Setup of the FM Monitoring & Control Diagnostics in case of error Machine control Start, Stop of positioning Drive interface Pulses and Direction Communication of the S7 CPU with FM 453 via function blocks

Drive interface analog +/- 10V

Encoder interface SSI, incremental

S-ar putea să vă placă și