Upload
tran-huu-hung
View
220
Download
18
Embed Size (px)
Citation preview
8/12/2019 Profibus Network
1/71
EEEF
DIAE
SIMATIC NETWORK
8/12/2019 Profibus Network
2/71
EEEF
DIAE
SIMATIC NETWORK
8/12/2019 Profibus Network
3/71
EEEF
DIAE
Profibus Introduction
Profibus was created in Germany in March, 1996Profibus was embeded in European in standard EN50170
8/12/2019 Profibus Network
4/71
EEEF
DIAE
Profibus Introduction
There are three kind of profibus: Profibus FMS, DP and PAFMS : Fieldbus Message SpecificationDP : Decentralized PeripheryPA : Proccess Automation
8/12/2019 Profibus Network
5/71
EEEF
DIAE
Profibus DP
8/12/2019 Profibus Network
6/71
EEEF
DIAE
Profibus DP Introduction
Distributed automation systems is used increasingly
in manufacturing and proccess automation.The complex control task is divided into smaller
subtasks with distributed control system.
Smaller, clearer programs are easy for programmingand trouble shooting.Parallel processing by distributed control system
reduce load and reaction times on cpuStructure of large systems alway have diagnostic and
logging functions.
8/12/2019 Profibus Network
7/71
EEEF
DIAE
Characteristics of Profibus DP
Open standard based on EN50170
Up to 244 byte of input and output data per messageUp to 126 stations may connect to the busUp to 32 stations per bus segment.
Fasted fieldbus standard to date with data rates up to12Mps: Transmission rates depend on type of cable anlength
To 93.75Kbps : 1000 m187.5 Kbps : 800 m500Kbps : 400 m1 to 1.5Mps : 200 m
3 to 12Mps : 100 m
8/12/2019 Profibus Network
8/71
EEEF
DIAE
Characteristics of Profibus DPTransmission Medium:
RS 485 for electrical networks on shielded, twisted paircable.
OLM(Optical link Module)Wireless
Physical characteristic of the rs 485 Transmission Techniques
8/12/2019 Profibus Network
9/71
EEEF
DIAE
Passive and Active components of RS-485 network
Passive components
8/12/2019 Profibus Network
10/71
EEEF
DIAE
Passive and Active components of RS-485 network
Passive components : Fastconnect bus connector
8/12/2019 Profibus Network
11/71
EEEF
DIAE
Passive components of RS-485 network Fastconnect bus connector
8/12/2019 Profibus Network
12/71
EEEF
DIAE
Connecting Cable
8/12/2019 Profibus Network
13/71
EEEF
DIAE
Active components of RS-485 network Repeater
EEEF
8/12/2019 Profibus Network
14/71
EEEF
DIAE
Master Slave Cyclic Data Exchange
EEEF
8/12/2019 Profibus Network
15/71
EEEF
DIAE
Master Slave Data Exchange
EEEF
8/12/2019 Profibus Network
16/71
EEEF
DIAE
Communication between S7300 and S7200 usingProfibus DP network
EEEF
8/12/2019 Profibus Network
17/71
EEEF
DIAE
Communication between S7300 and S7200 usingProfibus DP network
FeaturesMaster must be S7300 or S7400.CPU type: CPU31x- 2DP or CP41x 2 DP.EM277 is used to communicate between S7200 and
S7300 or S7400.Total nodes of network are 99
EEEF
8/12/2019 Profibus Network
18/71
EEEF
DIAE
CPs 31x-2DP
EEEF
8/12/2019 Profibus Network
19/71
EEEF
DIAE
CPs 41x-2DP
EEEF
8/12/2019 Profibus Network
20/71
EEEF
DIAE
Communication Module EM277
EEEF
8/12/2019 Profibus Network
21/71
EEEF
DIAE
Communication Module EM277
EEEF
8/12/2019 Profibus Network
22/71
EEEF
DIAE
Data Exchange between Master and Slave
EEEF
8/12/2019 Profibus Network
23/71
EEEF
DIAE
Data Exchange between Master and Slave
Features
Master Master uses I and Q memory area to exchange data with
Slave Number of bytes and start address are identified in
hardware configureSlave
Slave uses V memory area to exchange data with Master Start address of V equal to offset addressInput data of slave is next to output data
EEEF
8/12/2019 Profibus Network
24/71
EEEF
DIAE
Data Exchange between Master and two SlaveS7300 or
s7400
NoticeI and Q memory areas in Master must be differentOffsets of V in two CPUs can be the same or different
EEEF
8/12/2019 Profibus Network
25/71
EEEF
DIAE
Communication between S7300 and S7300 usingProfibus DP Networ
EEEF
8/12/2019 Profibus Network
26/71
EEEF
DIAE
Data Exchange between Master and Slave
EEEF
8/12/2019 Profibus Network
27/71
DIAE
Data Exchange between Master and Slave
Features
MasterMaster uses I and Q memory area to exchange data with
Slave Number of bytes and start address are identified in
hardware configureSlave
Slave uses I and Q memory area to exchange data withMaster
Number of bytes and start address are identified inhardware configure
EEEFh b d l
8/12/2019 Profibus Network
28/71
DIAE
Data Exchange between Master and two Slaves
Notice:I and Q memory areas in Master must be differentI and Q memory areas in slaves can be the same or different
EEEFET200 Di ib d I/O D i
8/12/2019 Profibus Network
29/71
DIAE
ET200 Distributed I/O Devices
ET200 consists of an interface module(IM 153-x) and I/Omodules of the S7300.ET200 is used whenever I/Os are distances from the controller ET200 is ideal solution for following systems:
The CPU is located at the central locationI/Os operate locally on a distributed system.Profibus DP with high data trasmission speed ensures the
cpu and I/Os communicate smoothly.
EEEFC i i b S7300 d ET200 i
8/12/2019 Profibus Network
30/71
DIAE
Communication between S7300 and ET200 usingProfibus DP Network
EEEFC ti g d tti g dd f ET200
8/12/2019 Profibus Network
31/71
DIAE
Connecting and setting address for ET200
EEEFM d l E i i ET200
8/12/2019 Profibus Network
32/71
DIAE
Module Expansion using ET200
I/O modules, SM, FM, CP can be insert on ET200.Expansion modules address on ET200 are as modules addressas in the S7300 CPU
EEEFET200 M d l ( IM 153 1)
8/12/2019 Profibus Network
33/71
DIAE
ET200 Module ( IM 153-1)
EEEFD t E h b t M t d ET200
8/12/2019 Profibus Network
34/71
DIAE
Data Exchange between Master and ET200
Master and ET200 use the same I and Q memory area toexchange data
EEEFP fib DP E i t 1
8/12/2019 Profibus Network
35/71
DIAE
Communicating between S7300 and S7200 using Profibus
DP network.Connect s7300 and s7200 via profibus(Disconnect powersupply, setting EM277 address, connect s7300 and EM277 via
profibus cable, turn on terminating resistors)
Configure hardware in Simatic Step 7 (Configure s7300station, open hardware, insert profibus network, insert a slaveEM277)
Write and download program into S7300
Write and download program into S7200Following Steps:
Profibus DP Experiment 1
EEEFC t th fib t k
8/12/2019 Profibus Network
36/71
DIAE
Connect the profibus network
Notice: Setting address for M277
EEEFC fig th h d
8/12/2019 Profibus Network
37/71
DIAE
Configure the hardwareOpen the hardware configuration, add the cpu s7300 andmodules
Notice: Hardware configuration and real hardware must be matched, otherwise thwill fault
EEEFConfigure the profibus connection : Right click on DP/Properties/New/enter
8/12/2019 Profibus Network
38/71
DIAE
Configure the profibus connection : Right click on DP/Properties/New/enterappropriate name
EEEF A new profibus is created without slave
8/12/2019 Profibus Network
39/71
DIAE
p
EEEFAdd the slave to profibus network: Select bus/right click/Insert/Addition field
8/12/2019 Profibus Network
40/71
DIAE
Add the slave to profibus network: Select bus/right click/Insert/Addition fielddevice/PLC/EM277/ set address for Slave
EEEFAdd the slave to profibus network: Select bus/right click/Insert/Addition field
8/12/2019 Profibus Network
41/71
DIAE
Add the slave to profibus network: Select bus/right click/Insert/Addition fielddevice/PLC/EM277/ set address for Slave
EEEF A Slave has address 3 is created in the profibus network
8/12/2019 Profibus Network
42/71
DIAE
p
EEEF
8/12/2019 Profibus Network
43/71
DIAE
Select number of bytes of data to exchange between master and slaveClick on Slave/at slot1/Insert Object/select number of in/out bytes and startaddress.
EEEF
8/12/2019 Profibus Network
44/71
DIAE
Select number of bytes of data to exchange data between master andslave: Click on Slave/at slot1/Insert Object/select number of in/out bytes andstart address.
EEEFDefine V memory area in the S7200 by setting
8/12/2019 Profibus Network
45/71
DIAE
Define V memory area in the S7200 by settingOffset.
8/12/2019 Profibus Network
46/71
EEEFWrite a program in s7300 and download to the
8/12/2019 Profibus Network
47/71
DIAE
Write a program in s7300 and download to thes7300 cpu
EEEFWrite a program in S7200 and download to the
8/12/2019 Profibus Network
48/71
DIAE
Write a program in S7200 and download to thes7200 cpu
EEEFMonitor the project
8/12/2019 Profibus Network
49/71
DIAE
Create a variable in step 7
Insert input/output variable tableInput can be update via variable controlOutputs can be set via variable control
Monitor the project
EEEFProfibus DP Experiments 2
8/12/2019 Profibus Network
50/71
DIAE
Communicating between S7400 and ET200 via ProfibusDP network.
Connect s7400 and ET200 via profibus(Disconnect powersupply, setting ET200 address, connect s7400 and ET200 via
profibus cable, turn on terminating resistors)
Configure hardware in Simatic Step 7 (Configure s7400station, open hardware, insert profibus network, insert a slaveET200)
Write and download program into S7400
Following Steps:
Profibus DP Experiments 2
EEEFConnect profibus network
8/12/2019 Profibus Network
51/71
DIAE
Connect profibus network
Notice: Setting address for ET200
EEEFConfigure the hardware
8/12/2019 Profibus Network
52/71
DIAE
Configure the hardwareOpen the hardware configuration, add the cpu s7400 andmodules
Notice: Hardware configuration and real hardware must be matched, otherwise thwill fault
EEEFConfigure the profibus connection : Right click on DP/Properties/New/enter
8/12/2019 Profibus Network
53/71
DIAE
appropriate name
EEEFAdd ET200 to the profibus network: Select bus/right click/Insert/DV0 slave/
8/12/2019 Profibus Network
54/71
DIAE
p gset address for Slave
EEEFAdd I/O modules to the ET200 : Select ET200,start at slot 3/Insert appropriate
8/12/2019 Profibus Network
55/71
DIAE
, pp pmodules
Notice: I and Q address areas are used to program in the CPU
EEEFMonitor the project
8/12/2019 Profibus Network
56/71
DIAE
Create a variable in step 7
Insert input/output variable table of moduleswhich added in ET200
Input can be update via variable control
Outputs can be set via variable control
Monitor the project
EEEF
8/12/2019 Profibus Network
57/71
DIAE
EEEFProfibus DP Experiment 3
8/12/2019 Profibus Network
58/71
DIAE
Communicating between S7300 and S7400 via Profibus DPnetwork.
Connect s7400 and s7300 via profibus(Disconnect powersupply, connect s7400 and s7300 via profibus cable, turn onterminating resistors)
Configure hardware in Simatic Step 7 (Configure s7400 ands7300 station, configure profibus network)Write and download program into S7400Write and download program into S7300
Following Steps:
p
EEEFConfigure the hardware for s7400 station
8/12/2019 Profibus Network
59/71
DIAE
gOpen the hardware configuration, add the cpu s7400 andappropriate modules
Notice: Hardware configuration and real hardware must be matched, otherwise thwill fault
EEEFConfigure the hardware for s7400 station
8/12/2019 Profibus Network
60/71
DIAE
gSetup operation mode fo the CPU: Right click on DP/Properties/ Operation mode/Check DP master
Notice: Hardware configuration and real hardware must be matched, otherwise thwill fault
EEEFConfigure the hardware for s7300 station
8/12/2019 Profibus Network
61/71
DIAE
gOpen the hardware configuration, add the cpu s7300 andmodules
Notice: Hardware configuration and real hardware must be matched, otherwise thwill fault
EEEFConfigure the hardware for CPU S7300
8/12/2019 Profibus Network
62/71
DIAE
gSetup operation mode fo the CPU: Right click on DP/Properties/ Operation mode/Check DP slave
EEEFConfigure the profibus connection
8/12/2019 Profibus Network
63/71
DIAE
g pOpen the hardware configuration, add profibus network/enter appropriate name and select slave CPU 31x
EEEFConfigure the profibus connection
8/12/2019 Profibus Network
64/71
DIAE
g pOpen the hardware configuration, add profibus network/enter appropriate name and select slave CPU 31x/ click
coupe
8/12/2019 Profibus Network
65/71
EEEFConfigure the I/O data
8/12/2019 Profibus Network
66/71
DIAE
Open the hardware configuration, double click on slave/configuration/ click new and enter I/O data for master and
slave
Notice: select address, length, unit to define i/o data
EEEFConfigure the I/O data
8/12/2019 Profibus Network
67/71
DIAE
Open the hardware configuration, double click on slave/configuration/ click new and enter I/O data for master and
slave
Notice: select address, length, unit to define i/o data
EEEFConfigure the I/O data
8/12/2019 Profibus Network
68/71
DIAE
Result of configure I/O data as below
Notice: Number of bytes and start address can be changed
EEEFConfigure the I/O data
8/12/2019 Profibus Network
69/71
DIAE
Result of configure I/O data as below
EEEFPROGRAM FOR MASTER AND SLAVE
8/12/2019 Profibus Network
70/71
DIAE
Program in master
Program in slave
EEEFMonitor the project
8/12/2019 Profibus Network
71/71
Create a variable in step 7
Insert input/output variable tableInput can be update via variable controlOutputs can be set via variable control