of 118
8/22/2019 Ashok Plc Net
1/118
PLC NET
V SIVAGANESH
LECTURER OF MECHATRONICSPSGTECH
8/22/2019 Ashok Plc Net
2/118
1-22
Communication Model :
Source Tx. DestinationRx.Transmission
System
Communication :
Exchange of Data between two parties
8/22/2019 Ashok Plc Net
3/118
3-22
Fundamentals Of Communication :
Communication Modes
Transmission Format
(Synchronous versus Asynchronous)
Data Coding
Open Systems Model
Points To Be Looked into ...
8/22/2019 Ashok Plc Net
4/118
4-22
Communication Modes
In any communications link between two devices, data
can either be sent in one of three commun. modes : Simplex
Half Duplex
Duplex
Simplex
Transmitter Receiver
Simplex
NOTE:There is no feedback
from Receiver.
8/22/2019 Ashok Plc Net
5/118
5-22
Half Duplex :
Half DuplexTransmitter
Receiver
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.
8/22/2019 Ashok Plc Net
6/118
6-22
Full Duplex :Full Duplex
Transmitter
Receiver
Receiver
Transmitter
1. Data flows in Bothdirections.2. Full duplexcommunications is provided by the RS-232C.
3. Bothstation can transmit or Receivesimultaneously.
8/22/2019 Ashok Plc Net
7/118
7-22
The asynchronous approach is the more basic one used by RS 232C .
Asynchronous Transmission :
Transmitter Receiver
Start Time
ClockClock
D0D1 D2 D3 D5D4 D7D6
Start Bit Stop Bit
ASCII Character
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 idlevoltage and allows the receiver to synchronize to the bits following.
8/22/2019 Ashok Plc Net
8/118
8-22
A Typical asynchronous Transmission Frame Format :
DATA Parity Bit Stop BitStart Bit
Start Bit : Signals the start of the frame
Data : Usually 7 or 8 bits of data, but can be 5 or 6Parity Bit :Optional Error detection bitStop bits :Usually 1, 1.5 or 2 bits.
8/22/2019 Ashok Plc Net
9/118
9-22
Synchronous Transmission :
Transmitter Receiver
Clock
Sync Sync
Start Time
Data
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.
8/22/2019 Ashok Plc Net
10/118
13-22
ProtocolAll communication partners involved in data transmission must
follow fixed rules for handling and implementing the data traffic.Such rules are called protocols.
Operating mode : Half-duplex or full-duplex mode
Initiative : Which communication partners can initiate the transmissionand under what conditions
Control characters : Which control characters are to be used for datatransmission
Character frame : Which character frames are to be used for datatransmission
Data backup : The data backup procedure to be used
Character delay time : The time period within which an incomingcharacter must be received
Transmission speed :The baud rate in bits/s
A protocol defines the following points:
8/22/2019 Ashok Plc Net
11/118
Basic Seven Layers and Their Specifications
14-22
7 Application
Provides application specific communication
services e.g.Read/Write ,Start/Stop
6 Presentation
Data presentation:Converts the standard
presentation format for the communication
system to a device specific format
5 SessionSynchronization: Opening, closing and
monitoring a session
4 TransportConnecting / disconnecting links, repeating
packets, sorting packets, packaging
3 NetworkAddressing other networks/ Optimum routing,
flow control.
2 Data LinkAccess techniques:Data block boundaries,error-free data transfer,error detection, error handling.
1 Physical
Physical aspects of data transfer, transmission
medium, baudrate,specification of the electrical,
mechanical and functional parameters of the
cable/bus
8/22/2019 Ashok Plc Net
12/118
15-22
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 transmittsat 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.
8/22/2019 Ashok Plc Net
13/118
16-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 operateas a repeater so that large distance can be covered.
Disadvantage :Failure of node causes grater problem as compare
to line Structure.
8/22/2019 Ashok Plc Net
14/118
17-22
StarStation 1 Station 2 Station 3
** = Star Coupler
It controls the entire communication and if it fails, the
entire network usually fails with it.
8/22/2019 Ashok Plc Net
15/118
18-22
Tree Station 1 Station 2
Station 3R
R
Station 4 Station 5
= Repeater
= Repeater
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.
8/22/2019 Ashok Plc Net
16/118
20-22
Access Techniques:
Master
Slave 1 Slave 3Slave 2
Bus
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.
Master/Slave
8/22/2019 Ashok Plc Net
17/118
1-8
DTE DCE DCE DTE
Physical Interface Physical Interface
Tx / Rx Tx / Rx
Data Communication Standards :
Types of transmission lines (Interface) in Data
Communication Systems :
Unbalanced
Balanced
8/22/2019 Ashok Plc Net
18/118
4-8
The RS-232 standard
The RS-232 interface standard specifies the method of
connection of two devices, the DTE and DCE.
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.
The RS-232standard is a unbalanced standard.
8/22/2019 Ashok Plc Net
19/118
5-8
Connection between DTE & DCE
1
2
3
4
5
6
7
8
20
22
1
2
3
4
5
6
7
8
20
22
Chassis Ground
Transmit Data (TxD)Received Data ( RxD)
Request to Send ( RTD)
Clear to Send ( CTD)
Data Set Ready ( DSR)
Signal Ground ( Common )
Data Carrier Detect ( DCD )
Data Terminal Ready ( DTR )
Ring Indicator ( RI )
23Data Signal Rate Selector(DSRS)
Computer Modem
8/22/2019 Ashok Plc Net
20/118
6-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
8/22/2019 Ashok Plc Net
21/118
7-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 whereseveral instruments or controllers may be connected on
the same line.
8/22/2019 Ashok Plc Net
22/118
8/22/2019 Ashok Plc Net
23/118
Communication - SIMATICNET
SIMATIC NET Industrial EthernetManagement level
PROFIBUSCell level
Field level
Actuatorsensorinterface
Actuatorsensor
interface
Workstation PC
PLC PC
PLC PCDrivesValves
8/22/2019 Ashok Plc Net
24/118
Type of Subnets in SIMATIC
-SINUMERIK,RCM-TI 505-Other PLC
S7-300S7-400 M7-400
OPs
SIMATICS5
PROFIBUS-DP
ET 200B/L
ET
200C
DP/AS-Ilink
ASI (Actuator Sensor Interface)
AS-Isubmodules
Sensors andActuators
Field device with AS-I ASIC
AS-I power supply
Industrial Ethernet
PROFIBUS
MPI network
Point-to-Point
PCs, OS PGs
PG720
Cell level
Field level
ASI-level
8/22/2019 Ashok Plc Net
25/118
SIMATICNET : Communication Methods
PlantLevel
CellLevel
FieldLevel
Actuator/SensorLevel
8/22/2019 Ashok Plc Net
26/118
ASi bus
8/22/2019 Ashok Plc Net
27/118
8/22/2019 Ashok Plc Net
28/118
8/22/2019 Ashok Plc Net
29/118
Standard AS-Interface according to EN 50295
Access method Master-slave (deterministic)
Cycle time Max. 5 ms (Spec. V2.1 10ms)
Transmission medium Unshielded, polarized 2-wire cableData and power on a single cable
Max. no. of nodes 62 slaves (max. 4 binary elements per slave)
Network size (approx.) Max. cable length 300 m (with repeater)
Topology Bus, tree, star
Protocols According to AS-Interface
Applications Process or field communication
Technical specifications of the
AS-Interface
8/22/2019 Ashok Plc Net
30/118
AS-Interface
Standard to EN 50 295
For fieldbus connection of
Actuators and
Sensors
Transfer of data and auxiliary power
via a single cable
AS-Interface Master for many
target systems
S7-300 S5 ET 200S7-200
8/22/2019 Ashok Plc Net
31/118
SIMATIC NET CP 342-2
LED displays mean reduction indowntimes and servicing times
Shorter commissioning times
with pushbutton configuration More flexible design through use
in ET 200M DP Slave
V 2.0 V 2.1Master functionsand calls
supported
S7-300 S5 ET 200S7-200
8/22/2019 Ashok Plc Net
32/118
AS-InterfaceConnection using penetration method
Attach coupling moduleto the system
Lay cable in thecable guide
Screw on the usermodule
Mechanicalhold-down
Electricalcontacting
8/22/2019 Ashok Plc Net
33/118
Master
max. 100 m max. 100 m
AS-Interfacepower supplyunit
AS-Interfacepower supplyunit
Repeater
Configuration Example
8/22/2019 Ashok Plc Net
34/118
SIMATICNET :Profibus
PROCESS FIELD BUS
8/22/2019 Ashok Plc Net
35/118
Customer Expectations Cost Savings
Flexibility Reliable & Future oriented
Solution for all Automation Needs
Interoperability & VendorIndependence
! Standard !
8/22/2019 Ashok Plc Net
36/118
How does PROFIBUS
fulfill all these needs?
PROFIBUS is part ofthe Open Standard
IEC 61158
8/22/2019 Ashok Plc Net
37/118
NAFTA136 Members
Germany230 Members
China102 Members
Fastest GrowingUser Association
PROFIBUS International *
*Status: Q1/2000
S C fib
8/22/2019 Ashok Plc Net
38/118
SIMATICNET :Profibus
What's so special about PROFIBUS?
Stable standards (EN 50170, IEC 61158)
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
PROFIBUS
EN 50170
8/22/2019 Ashok Plc Net
39/118
Interoperability & Vendor Independence
*Status: Q1/2000
1,000 members in 23 user associations*
1,900 products from more than 280different vendors *
Solution for all your Automation Needs
8/22/2019 Ashok Plc Net
40/118
Cell Level
Enterprise
Internet
Field Level
PROCESS FIELD BUS
Peer-to-Peer
Solution for all your Automation Needs
Solution for all your (continued)
8/22/2019 Ashok Plc Net
41/118
Solution for all your (continued)
Controllers
NetworkComponents
I/O
PC Boards
Instruments
HMI
Tools
Software
Drivers
ValvesSIEMENS
6SE7016-1EA30
WR 2,2kW
Nr.467321
SIMOVERT SC
Drives
Training &Services
see Electronic Product Guide on www.profibus.com for complete list
1,900 products from more than 280 different vendors
8/22/2019 Ashok Plc Net
42/118
SIMATICNET :ProfibusThe PROFIBUS Protocol
Profibus = Process Field Bus
A general purpose open fieldbus forfactory, 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
8/22/2019 Ashok Plc Net
43/118
Solution for all your (continued)
Peer-to-Peer (Field bus MessageSpecification - 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 samefield device
Up to 244 bytes of user data
Peer-to-Peer
8/22/2019 Ashok Plc Net
44/118
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 fielddevice
Up to 244 bytes of user data
Same cables & components as Peer-to-Peer
Operation together with Peer-to-Peer
in one network possible
8/22/2019 Ashok Plc Net
45/118
Solution for all your (continued)
Hazardous Area (Process Automation -PA)
Protocol is DP - PA field devices arecontrolled by standard DP Master
According to IEC 1158-2 - differentphysical setup
Transmission rate 31.25kbaud
Power and data are transferred via thesame wire
SIMATIC NET : Profibus
8/22/2019 Ashok Plc Net
46/118
SIMATICNET :Profibus
Why use PROFIBUSinstead of conventional fieldtechnology?
Terminal blocks
DistributorDistr. Distr.
Control
CabinetConventional Control
Cabinet
PROFIBUS-DP
Profibus-DP
Advantages:
Fewer components in the control cabinet.Less cabling required &direct links todevices .
Cost reduction in hardware andinstallation,
Less hardware components needed
Easy, fast and cheaper installation.
8/22/2019 Ashok Plc Net
47/118
Cost Savings (continued)
51%23%
27%
22%
22%
12%
0%
50%
100%
150%
Hardware
Assembly
Engineering
100%
57%
Today (4...20mA) PROFIBUS
Reference: Namur
AK 3.5, Dr. Rathje,
Bayer AG
8/22/2019 Ashok Plc Net
48/118
SIMATICNET :ProfibusTechnical Details
Max. nodes : 126
Transmission rate : 9.6 kbit/s12 Mbit/s
Access Technique : Token Bus, Master/Slave
Topology : Line, Ring, Star
Redundant cabling : Yes (Fibre Optic)
Max. distance : 9.6 km (RS 485), >100 km
(FO)
Telegram size : 1-244 bytes
Hazardous area use : Yes (Profibus PA - IEC
1158-2)
Data and Power : Yes (Profibus PA)
SIMATIC NET : Profibus
8/22/2019 Ashok Plc Net
49/118
SIMATICNET :Profibus
When is PROFIBUS-FMS/DP/PA used?
PROFIBUS-FMS PROFIBUS-DP PROFIBUS-PA
Application Cell level Field level Field level
Standard EN 50 170/ IEC 61158 EN 50 170/IEC 61158 IEC 1158-2
Connectable PLC, PG/PC PLC, PG/PC, Field devices fordevices binary and analog areas subject to
field devices, drives, explosionvalves, OPs
Resp. times < 60 ms 1 - 5 ms < 60 ms
Network size
8/22/2019 Ashok Plc Net
50/118
SIMATICNET :ProfibusNetwork Topologies With PROFIBUS :
Electrical network:
Shielded, twisted two-wire cable (RS 485)
Two-wire cable for areas subject to explosion hazards (IEC 1158-2)
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 forProfibus DP
Mixed network possible via OLM
SIMATIC NET P fib
8/22/2019 Ashok Plc Net
51/118
SIMATICNET :Profibus
Repeater
RepeaterBus terminal
OPS7-400
TD
ET 200
Active Terminator
Different Components used in PROFIBUS :
SIMATIC NET : Profibus
http://www3.ad.siemens.de/bilddb/picDetails.asp?objID=8063&lang=de&visMode=8/22/2019 Ashok Plc Net
52/118
SIMATIC NET :Profibus
12M (BT 12M) bus terminal
For connecting a PROFIBUS node to an RS 485interface
Versions with transmission rates from 9.6 Kbit/s to12Mbit/s
Connects two PROFIBUS or MPI
segments in the RS 485technique
For increasing node count andexpansion
Segment isolation
RS 485 Repeater for PROFIBUS
Bus Connectors
8/22/2019 Ashok Plc Net
53/118
Up to 126 DP Slaves
SIEMENS
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
4 3
130
SIEMENS
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
4 3
130
SIEMENS
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
4 3
130
(2) (3) (4) (5) (6)(7)
DP Master
Active StationToken
PROFIBUS DP System : Overview
8/22/2019 Ashok Plc Net
54/118
PROFIBUSis an established fieldbus system which can be
usedby all automation equipment, such as PLCs, PCs, HMIs and
actuators and sensors, for exchanging data.
PROFIBUS-DP System : Overview
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 ofsignals
on cumbersome parallel 24V and 20mA lines.
PROFIBUS-DPis based on DIN 19245 Part 1 and theuser-specific extensions in DIN 19245 Part 3.
PROFIBUS DP S O i
8/22/2019 Ashok Plc Net
55/118
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 activenodes.
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 acknowledgethe
receipt of messages or send messages (data) to a master onrequest.
Slaves are also referred to as passive nodes.
PROFIBUS-DP System : Overview
8/22/2019 Ashok Plc Net
56/118
Profibus
8/22/2019 Ashok Plc Net
57/118
8/22/2019 Ashok Plc Net
58/118
Structure of a PROFIBUS-DP System
8/22/2019 Ashok Plc Net
59/118
y
S7 S7PS S7S7
CP342-5 DP
S7-300CPU315-2 DP
DP-
NORM-
SLAVE
SIMATIC S7-300
PROFIBUS -DP
DP-
NORM-
SLAVE
PS10A
S7 S7S7400
CPU414-2 DP
Master
S7-400
S7 S7PS S7S7IM153
modular slave
compact slaves
ET 200M
intelligent slave
S7-300S7-300
CPU314
S7PS S7-300
CP342-5 DP
Slaves
PROFIBUS- DP : Access Techniques.
8/22/2019 Ashok Plc Net
60/118
PROFIBUS DP : Access Techniques.
Logical token ring
between masters
PG720
PROFIBUS
FM
SV
Polling between mastersand slaves
8/22/2019 Ashok Plc Net
61/118
PROFIBUS-DP: Hardware Component
MPI/PROFIBUSinterface
PROFIBUSinterface
S7-400 CPU with integrated DP Port
S7-300 CPU with integrated DP Port
MPIinterface PROFIBUS
interface
PROFIBUS DP H d C t
8/22/2019 Ashok Plc Net
62/118
PROFIBUS-DP: Hardware Component
CPs for the SIMATIC S7-400 CP 443-5 Ext. and CP 443-5
Basic(FMS)
CPs for the SIMATIC S7-300
CP 342-5 and CP 343-5(FMS)
CPs for PC/PG CP 5613 and CP 5614
(Hardnet )
CP 5611 or CP5511 (Softnet
)
PROFIBUS-DP: Hardware Component
8/22/2019 Ashok Plc Net
63/118
p
PROFIBUS Slaves
PROFIBUS-DP,PG/OP Comm.
PG/PC/OP
CP 5613
CP 5611
8/22/2019 Ashok Plc Net
64/118
PROFIBUS - DP Terminating ResistorCPU with Profibus-DP
interface
N N N NN= Profibus-DP
node
Terminating resistorrequired
CPU with Profibus-DPinterface
N N N NN= Profibus-DP
node
Terminating resistorrequired
N
Terminating resistorrequired
PROFIBUS- DP : Bus Cycle Time for Mono-
8/22/2019 Ashok Plc Net
65/118
yMaster System
Conditions: Each slave has 2 bytes of input data and 2 bytes of output data.The minimum slave interval time is 200 microsecondsTsdi= 37 bit times, Tsdr= 11 bit times
DP slaves
Bus cycle time[ms]
3020105
2
6
10
14
18
12 Mbit/s
1,5 Mbit/s
500 Kbit/s
0
PROFIBUS-DP : Cyclic Data Transmission
8/22/2019 Ashok Plc Net
66/118
PROFIBUS DP : Cyclic Data Transmission
DPM
aster
DPS
lave
Immediatereply
8/22/2019 Ashok Plc Net
67/118
Network Communication with an S7-200
8/22/2019 Ashok Plc Net
68/118
et o Co u cat o t a S 00CPU
PG/PC
Operatorinterface
PLC
S7-200 Printer
Bar code scanner
SIEMENS
SIMATIC
S7-200
CPU214SFRUN
STOP
I0.0
I0.1
I0.2
I0.3
I0.4
I0.5
I0.6
I0.7
I1.0
I1.1
I1.2
I1.3
I1.4
I1.5
Q1.0
Q1.1
Q0.0
Q0.1
Q0.2
Q0.3
Q0.4
Q0.5
Q0.6
Q0.7
SIEMENS
SIMATIC
S7-200
CPU214SFRUN
STOP
I0.0
I0.1
I0.2
I0.3
I0.4
I0.5
I0.6
I0.7
I1.0
I1.1
I1.2
I1.3
I1.4
I1.5
Q1.0
Q1.1
Q0.0
Q0.1
Q0.2
Q0.3
Q0.4
Q0.5
Q0.6
Q0.7
Modem
PG702
SHIFT
ESC
TD 200
F1 F3 F4F2F5 F7 F8F6
ENTER
SIEMENS
NETR, NETW withProfibus components
SIEMENS
SIMATIC
S7-200
CPU214SFRUN
STOP
I0.0
I0.1
I0.2
I0.3
I0.4
I0.5
I0.6
I0.7
I1.0
I1.1
I1.2
I1.3
I1.4
I1.5
Q1.0
Q1.1
Q0.0
Q0.1
Q0.2
Q0.3
Q0.4
Q0.5
Q0.6
Q0.7
SIEMENS
SIMATIC
S7-200
CPU214SFRUN
STOP
I0.0
I0.1
I0.2I0.3
I0.4
I0.5
I0.6
I0.7
I1.0
I1.1
I1.2I1.3
I1.4
I1.5
Q1.0
Q1.1
Q0.0
Q0.1
Q0.2Q0.3
Q0.4
Q0.5
Q0.6
Q0.7
SIEMENS
SIMATIC
S7-200
CPU214SFRUN
STOP
I0.0
I0.1
I0.2
I0.3
I0.4
I0.5
I0.6
I0.7
I1.0
I1.1
I1.2
I1.3
I1.4
I1.5
Q1.0
Q1.1
Q0.0
Q0.1
Q0.2
Q0.3
Q0.4
Q0.5
Q0.6
Q0.7
8/22/2019 Ashok Plc Net
69/118
Communication Using PC/PPI Cable
Master
The CPU is connected to the COM2 port ofthe PG via a PC/PPI cable
Communication Using MPI
8/22/2019 Ashok Plc Net
70/118
Communication Using MPICable
Master
TD200 Station 6
Master
OP3 Station 7
Master
TD200 Station 8
CPU224 - Station2
CPU224 - Station3
CPU221 - Station4
CPU221 - Station5
Master
PG with MPI card
Station 0
8/22/2019 Ashok Plc Net
71/118
PPI Protocol
RS-485
Micro/Win
SIEMENS
SIMATIC
S7-200
CPU214SF
RUN
STOP
I0.0
I0.1
I0.2
I0.3
I0.4
I0.5
I0.6
I0.7
I1.0
I1.1
I1.2
I1.3
I1.4
I1.5
Q1.0
Q1.1
Q0.0
Q0.1
Q0.2
Q0.3
Q0.4
Q0.5
Q0.6
Q0.7
SIEMENS
SIMATIC
S7-200
CPU214SF
RUN
STOP
I0.0
I0.1
I0.2
I0.3
I0.4
I0.5
I0.6
I0.7
I1.0
I1.1
I1.2
I1.3
I1.4
I1.5
Q1.0
Q1.1
Q0.0
Q0.1
Q0.2
Q0.3
Q0.4
Q0.5
Q0.6
Q0.7
SIEMENS
SIMATIC
S7-200
CPU214SF
RUN
STOP
I0.0
I0.1
I0.2
I0.3
I0.4
I0.5
I0.6
I0.7
I1.0
I1.1
I1.2
I1.3
I1.4
I1.5
Q1.0
Q1.1
Q0.0
Q0.1
Q0.2
Q0.3
Q0.4
Q0.5
Q0.6
Q0.7
S7-221
Station 2,
Slave only
S7-224
Station 3
S7-224
Station n
Station 0 with
MPI card installed
SHIFT
ESC
TD 200
F1 F3 F4F2F5 F7 F8F6
ENTER
SIEMENS
TD-200 Station 5
SHIFTESC
TD 200
F1 F3 F4F2
F5 F7 F8F6
ENTER
SIEMENS
TD-200 Station 1
MPI P t l
8/22/2019 Ashok Plc Net
72/118
MPI Protocol
SF
RUN
STOP
I0.0
I0.1
I0.2
I0.3
I0.4
I0.5
I0.6
I0.7
SIEMENS
S7-200
M i c r o P L C 2 1 2
SIMATIC
X 2
3 4
Q0.0
Q0.1
Q0.2
Q0.3
Q0.4
Q0.5
SF
RUN
STOP
I0.0
I0.1
I0.2
I0.3
I0.4
I0.5
I0.6
I0.7
SIEMENS
S7-200
M i c r o P L C 2 1 2
SIMATIC
X 2
3 4
Q0.0
Q0.1
Q0.2
Q0.3
Q0.4
Q0.5
SF
RUN
STOP
I0.0
I0.1
I0.2
I0.3
I0.4
I0.5
I0.6
I0.7
SIEMENS
S7-200
M i c r o P L C 2 1 2
SIMATIC
X 2
3 4
Q0.0
Q0.1
Q0.2
Q0.3
Q0.4
Q0.5
S7-221
Station 3S7-224
Station 4
S7-226
Station 5
S7-314Station 2
Profibus DP : EM 277
8/22/2019 Ashok Plc Net
73/118
Profibus DP : EM 277
MPI
SIEMENS
SIMATIC
S7-200
CPU214SF
RUN
STOP
I0.0
I0.1
I0.2
I0.3
I0.4
I0.5
I0.6
I0.7
I1.0
I1.1
I1.2
I1.3
I1.4
I1.5
Q1.0
Q1.1
Q0.0
Q0.1
Q0.2
Q0.3
Q0.4
Q0.5
Q0.6
Q0.7
S7-226
Slave
Profibus
5
2
S7-315 Master
3
0
PPI
SIEMENS
SIMATIC
S7-200
CPU214SF
RUN
STOP
I0.0
I0.1
I0.2
I0.3
I0.4
I0.5
I0.6
I0.7
I1.0
I1.1
I1.2
I1.3
I1.4
I1.5
Q1.0
Q1.1
Q0.0
Q0.1
Q0.2
Q0.3
Q0.4
Q0.5
Q0.6
Q0.7
EM-277
7
Memory Mapping
8/22/2019 Ashok Plc Net
74/118
Memory MappingCPU 224
V Memory
Offset500 bytes
Input Buffer( SND mailbox )
16 bytes
VB0
VB499
Output Buffer( RCV mailbox )16 bytes
VB500
VB515
VB516
VB531
VB532
VB XX
I/O Output Area16 bytes
I/O Input Area16 bytes
P 000
PI 256
PI 271
PI 256
PI 271
CPU 315 - 2DP
I/O address areaEM 277
PB-DPmodule
Communications : Transmission Media /Protocols
8/22/2019 Ashok Plc Net
75/118
MPI
Protocols
Std.&Extended
Comms.
S
IMATIC
C
ommunications
Profibus Ethernet
FMS
S7-Basis-Comm.Global Data
S7-Communication
DP
TCP/IP
MAP 3.0
S5-compatible-Communication
PG/OP-Communication
S7 Communication Services for S7-300/400
8/22/2019 Ashok Plc Net
76/118
300/400
Global Data
Basic Communication withoutConfigured Connection
Expanded Communication usingConfigured Connection(only S7-400)
CPUsoper.
system
CPUsoper.
system
cyclical or/and program controlled
using MPI or K-Bus
programcontrolled using
MPI or K-BusSFC SFC
programcontrolled using
MPI, K-Bus,Profibus orIndustrial Ethernet
SFB SFB
PG and HMI Functions
CPUsoper.
system
Controlled via operating system
using MPI, K-Bus, Profibus andIndustrial Ethernet
PG720
Connections between Communication Participants
8/22/2019 Ashok Plc Net
77/118
PG 720
S7-400
S7-300
Connections between Communication Participants
CPCPU 1 CP
PROFIBUSIndustrialEthernet
IndustrialEthernet
CPCPU 2
S7 Connection using Ethernet
Industrial Ethernet
PGConnectionusing MPI
MPI
S7 Connectionusing MPI
OP Connection using
PROFIBUS
PROFIBUS
S7 Connectionusing PROFIBUS
Connections and Resources
8/22/2019 Ashok Plc Net
78/118
Connections and Resources
A connection is a logical assignment of two communication partners forcarrying out communication services.
Connections :
At the participating stations,connection resources for the endposition(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.
Resource :
S7 Functions to CPUs
For the S7 functions via the integrated MPI-/PROFIBUS-DP interface, one connectionresource 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 isoccupied on the CPU and on the CP (transition position) per S7 connection.
S7 Functions to FMsFor the S7 functions to a function module (FM) via the internal MPI-/PROFIBUS-DPinterface,two connection resources (for two transition positions) are occupied on theCPU per S7 connection and on the FM one connection resource each (for theend position) is occupied.
Assignment of Connection Resources for S7 Communication
8/22/2019 Ashok Plc Net
79/118
free connection resource
Occupied connection resource
CPU
FMCPU
S7-300/400:
MPI or internalPROFIBUS-DP-interface
S7-300/400:
Indl. Ethernetor PROFIBUS-CP
Assignment of Connection Resources for S7 Communication
S7-400:MPI or internalPROFIBUS-DP
FMCPUS7-300:
internalPROFIBUS-DP
FMCPUS7-300:MPI interfaceCPCPU
8/22/2019 Ashok Plc Net
80/118
Networking via MPIS7-300 or S7- 400
PG connection via MPI
OP connectionvia MPI
CPU 1 CPU 2
PG 720
S7-300 or S7- 400
0
1
2
n Default MPI address
PLC link via MPI
M i f t f th MPI i t f
8/22/2019 Ashok Plc Net
81/118
Main features of the MPI interface
Physical Interface : RS 485 Transmission rate
19.2 Kbps or 187.5 Kbps.
Distance
up to 50 m (between 2odes)and with 2 repeaters,1100 m
and 23.8 km with optical
fiber and star coupler.
Profibus components
cables, connectors
S7-400
PG
OP
S7 200
S7-300
SIMATIC-HMI
S7-300MPI -Network
8/22/2019 Ashok Plc Net
82/118
Connection Options to MPI
Busconnector
Connection forPG/HMI
To MPIinterfaceofCPU
To MPI
interfaceofCPU
Switch for terminatingresistor
8/22/2019 Ashok Plc Net
83/118
Types of MPI CommunicationGlobal Data
Op. Sys.of CPU
Op. Sys.of CPU
cyclic or event-driven
via MPI
Event-driven
via
MPI or K-Bus
Basic communication( non-configured connection)
SFC SFC
8/22/2019 Ashok Plc Net
84/118
Global Data Table Global data communications
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 atable (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
Gl b l D t T bl
8/22/2019 Ashok Plc Net
85/118
Global Data Table
Global Data
CPU 1MW 10
CPU 2MW 20
CPU 3MW 30
Gl b l D t C i ti
8/22/2019 Ashok Plc Net
86/118
Global Data Communication
Station 1 Station 2
IW 4 (IW 2)
QW 12 (QW 6) IW 4 (IW 2)
QW 12 (QW 6)
0 8 1 5 0 8 1 5
4 7 1 14 7 1 1
MPICommunication using SFCs
8/22/2019 Ashok Plc Net
87/118
With communications SFCs you have an acknowledged data
transmission using non-configured S7 connections.
In communication ( X_.. )using an MPI subnet, the addressing of thepartner 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-SendX-Rcv
X-SendX-Rcv
I-PutI-Get
I-PutI-Get
S7-300/400 (Client/Server)
X-PutX-Get
X-PutX-Get X-AbortI-Abort
SFC Communication: Block Overview
8/22/2019 Ashok Plc Net
88/118
SFC
SFC 65
NAME Short Description
X_SEND Send block for sending data to the X_RCV (Client) block
SFC 66 X_RCV Receive block for receiving the data of the X_SEND block
X_GET Read data from the partner PLCSFC 67
X_PUT Write data to the partner PLCSFC 68
X_ABORT Abort existing connectionSFC 69
I_GET Read data from the partner CPUSFC 72
I_PUT Write data to the partner CPUSFC 73
I_ABORT Abort connection to the partner CPUSFC 74
SFC Communication: Block Overview
8/22/2019 Ashok Plc Net
89/118
EthernetFundamentals
Industrial Ethernet Innovative and time-proven
8/22/2019 Ashok Plc Net
90/118
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 Designed for Industry!
Industrial Ethernet is a network based on theIEEE 802.3 standard
It is the leading industrial network with more than
400,000 nodes in use worldwide
Redundant networks
Your data travel down the line at 100 Mbit/s
Industrial Ethernet offers standard communication protocols(e.g. TCP/IP)
Industrial EthernetInnovative and time-proven
8/22/2019 Ashok Plc Net
91/118
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 EthernetProduct overview
8/22/2019 Ashok Plc Net
92/118
Product overview
Transmission media
Communication processors
for SIMATIC controllers
Network components
Communication processors
for PCs, PGs and workstations
SIMATIC NET software
IE/PB Link
Industrial EthernetPC cards
8/22/2019 Ashok Plc Net
93/118
PC cards
Savings in time and costs
thanks to standards, speedand reliability
Your data travel down the line at100 Mbit/s
Standard Windows XP andWindows 2000 operating systems
Easy handling thanks toPlug and Play
Card drivers are already integrated
in Windows
Redundant networks
CP 1512
CP 1612
CP 1613
CP 1515
Industrial Ethernet Network components
8/22/2019 Ashok Plc Net
94/118
Industrial Ethernet Network components
ELS electrical lean switch
module
Active components
OSM optical switch module
Industrial Ethernet Extract from the product portfolio
RLM with CP 1515
Passive components
Fiber-optic cables
Industrial Ethernet FastConnect
Industrial twisted pair cables
Industrial Ethernet Network components
8/22/2019 Ashok Plc Net
95/118
Opticalswitching module
Opticalmediaconverter
Fiber-optic cable
Configuration exampleFiber to the machine!
Industrial Ethernet Network components
Industrial EthernetIT solutions in manufacturing plants
8/22/2019 Ashok Plc Net
96/118
IT solutions in manufacturing plants
Batch manufacturing/
production
Office
Accessto data
CP 343-1 IT
CP 343-1 IT
Ethernet
Industrial Ethernet
MailserverPC with standard
browser
Industrial EthernetCP 243-1IT, CP 343-1IT and CP 443-1IT
8/22/2019 Ashok Plc Net
97/118
CP 243 1IT, CP 343 1IT and CP 443 1IT
ISO TCP/IP PG/OP
S5-K IT TF
S7-K
OPC
Platform-independent access to process and diagnostics data
Access is local, mobile or remote using Web technology
Alarm annunciation through e-mail
8/22/2019 Ashok Plc Net
98/118
8/22/2019 Ashok Plc Net
99/118
8/22/2019 Ashok Plc Net
100/118
8/22/2019 Ashok Plc Net
101/118
Safety IntegratedIntegrated safetytechnology via Profibus and AS-Interface
SIGUARDlaser scanner EM. STOPperatorpanel Safetymonitor AS-imodule SIGUARDlight curtainsSIGUARDpositionswitchesSIGUARDsafety door lock
ET200SPROFIsafe
DP/DPcoupler
SINUMERIKSIMODRIVE
MICROMASTER
SIMATIC S7 400F/H
ET200S PROFIsafewith motor starter
SIMATIC S7 315F
ET200M/F
SIGUARDlaser scannerlight curtains
ET200SPROFIsafe
DP/AS-ilink
TIA for theoperation phase
Factory andprocess automationTotally Integrated Automation
8/22/2019 Ashok Plc Net
102/118
Manufacturing Execution
Systems (MES)
Industrial
Communication
Controls
Industry
Software
Actuator-
Sensor
Interface
Level
Controller/
Automation
System
Distributed I/0
Process
Control
SystemMotion Control
System Human-MachineInterface
DrivesTechnology
PC based
Automation
Enterprise Resource Planning
(ERP)
Ethernet
Ethernet
Totally Integrated Automation
Introduction
System overview
Three-fold uniformity
Changes in technology
Component based Automation
Changes in automation
8/22/2019 Ashok Plc Net
103/118
IntelligentFieldDevices
In future, automationapplications will be distributedover man control latforms
PLC
PC
1990 2000 2010
Control platforms
PC
Communication
Fieldbus
Ethernet
IT-technologies andautomation are
growing closer
PLCPLC
Changes in automationtechnology
Introduction
System overview
Three-fold uniformity
Changes in technology
Component based Automation
PC-based Automation
Today: modular concept with
8/22/2019 Ashok Plc Net
104/118
Engineering stationHuman MachineInterface
PROFIBUS
Distributed I/O
Ethernet
Electrical/Electronics
Mechanical
Programexecutesoncentral
controller
Today:modular concept withcentralintelligence
Introduction
System overview
Three-fold uniformity
Changes in technology
Component based Automation
PC-based Automation
New with TIA:modular concept with
8/22/2019 Ashok Plc Net
105/118
Engineering stationHuman MachineInterface
Ethernet
PROFIBUS
Ethernet/
Profibus-
Link
Intelligent field devices
Technological module:Mechanical +
Electrical/Electronics +
User program
modular concept withdistributedintelligence
Introduction
System overview
Three-fold uniformity
Changes in technology
Component based Automation
PC-based Automation
Positioning Modules
8/22/2019 Ashok Plc Net
106/118
gFM 353, FM 354, FM 453
FM 353
Controlling of stepper motors
FM 354
Controlling of servo motors
FM 453
Controlling of stepper- & servo motors
Overview
8/22/2019 Ashok Plc Net
107/118
Functional Diagram
STEP 7 programming
FM parameterizing
CPU FM 353 FM STEPDRIVEMPI
OP
SIMOSTEPstepper motor
PG PC
Human-machine
interfaceFault diagnosis Drive interface STEP
Pulses,
direction signalSequence control
Starting/stopping of
positioning
Power section forstepper motors
SIMATIC FM 353
Universal Positioning
8/22/2019 Ashok Plc Net
108/118
gParameters (1)
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
SIMATIC FM 353
Adaptation to Mechanics and
8/22/2019 Ashok Plc Net
109/118
pTechnology Parameters (2)
Start-Stop frequency 10 Hz to 10 kHz
Maximum frequency 200 kHz
Acceleration 10Hz/s to 10MHz/s
Traversing range +/- 100m
Traversing speed 10 Hz to 50 kHz
SIMATIC FM 353
A t d R li bl P iti i
8/22/2019 Ashok Plc Net
110/118
Accurate and Reliable PositioningParameters (3)
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
SIMATIC FM 353
8/22/2019 Ashok Plc Net
111/118
Functional Diagram
STEP 7programming
FM parameterizing
MPI
Sequence control
Starting/stopping of
positioning
Drive interface +/-10V
CPU FM 354
servo motor
Human-machineinterface
Fault diagnosis
OPPG/PC
SIMODRIVE 611U
Encoderinterface
SSI/incremental
SIMATIC FM 354
Universal Positioning
8/22/2019 Ashok Plc Net
112/118
gParameters (1)
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
SIMATIC FM 354
Traversing Possibilities
8/22/2019 Ashok Plc Net
113/118
gParameters (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
8/22/2019 Ashok Plc Net
114/118
Technology Parameters (3)
Traversing range +/- 100m
Traversing speed 0.01m/min to 500m/min
Acceleration 1.0mm/s2 to 99.999m/s2
Jolt time (jerk limitation) 0s to 9.999s
SIMATIC FM 354
d li bl i i i
8/22/2019 Ashok Plc Net
115/118
Accurate and Reliable PositioningParameters (4)
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
SIMATIC FM 354
Retentive Data Storage on the Module
8/22/2019 Ashok Plc Net
116/118
Retentive Data Storage on the ModuleParameters (5)
Machine data
Traversing programs
Incremental dimension table
1 to 100 incrementaldimensions can be defined
Tool corrections 20 correction and wear values
can be defined
Parameter assignment e.g. with PG/PC
SIMATIC FM 354
Function: Jerk limitation
8/22/2019 Ashok Plc Net
117/118
Parameters (7)
Lower wear
Faster positioning possible
t
v
Abrupt acceleration t
v
Acceleration withjerk limitation
SIMATIC FM 354
8/22/2019 Ashok Plc Net
118/118
Structure DiagramM P I
SIMATIC S7-400 Machine
STEP 7 programming
Setup of the FM
Monitoring & Control
Diagnostics
in case of errorCommunication of the S7 CPU
with FM 453 via function blocks
Drive interface
Pulses and Direction
Setup Monitoring
e.g. Field PG e.g. OP 27
Stepper driver
FM 453
Stepper motor
CPU
1FT6
S IM O D R IV E 6 1 1U
S I M E N S
E VS A
Drive interface
analog +/- 10VEncoder interface
SSI, incremental
SIMATIC FM 453