Download presentation
Presentation is loading. Please wait.
Published bySofie Jørgensen Modified over 6 years ago
1
Siemens Step 7 Project with Controllere in 7 Steps: Step 1
click on the project assistant to create a new project select the correct CPU finish the assistant © ifm electronic gmbh Stand:
2
Siemens Step 7 Project with Controllere in 7 Steps: Step 2
select Hardware configuration in SIMATIC Station double click on insert DPMaster Define a DP line by clicking on New close all windows by clicking on OK © ifm electronic gmbh Stand:
3
Siemens Step 7 Project with Controllere in 7 Steps: Step 3
select Profibus DP in hardware config., then aditional field devices, gateways and ASi-DP- Controller e drag the device with the mouse to the profibus line and drop it there Define a DP address © ifm electronic gmbh Stand:
4
Siemens Step 7 Project with Controllere in 7 Steps: Step 4
drag modules to the module list: modules starting with 1 in the first line, with 2 in the second... © ifm electronic gmbh Stand:
5
Profibus DP Gateway Digital I/O´s ( module 1-4 )
The same structure of data for modules 1..4 © ifm electronic gmbh Stand:
6
Profibus DP Multiplexed Analog Data (module 5+6)
2 words per module: Example: to read channel 2 of slave 17 / master 1, write to module 5: to first word ( 16#5102 ) response in module 5 (2 words): 16#5142, 16#<analog input value> (the „4“ [bit 6 in byte 2] indicates valid value) to write „1024“ channel 1 of slave 18 / master 1, write to module 6: 16#5201 , 16#0400 (=1024) response in module 6: 16#5201 , 16#0400 © ifm electronic gmbh Stand:
7
Profibus DP PLC reads analog multiplexed input (module 5)
From PLC to ControllerE: From ControllerE to PLC © ifm electronic gmbh Stand:
8
Profibus DP PLC writes analog multiplexed output (module 6)
From PLC to ControllerE: From ControllerE to PLC © ifm electronic gmbh Stand:
9
Profibus DP Command Channel (module 7)
Target slave is addressed like analog multiplex slave : response: if execution was ok, byte 1 and byte 2 are reflected and byte 3 (4) contains result or reflected command parameter If not ok, bit 7 of command byte is set. Byte 3 contains error code. © ifm electronic gmbh Stand:
10
Siemens Step 7 Project with Controllere in 7 Steps: Step 5
switch the PLC in RUN-P mode store the configuration download the con-figuration to the PLC run the project in the PLC; it may be necessary to reset the PLC by setting the switch to stop and run again an error is signallized by a red sign refresh the screen with F5 © ifm electronic gmbh Stand:
11
Siemens Step 7 Project with Controllere in 7 Steps: Step 6
setup of parameters is only possible in offline mode double click on slave opens properties where you have to select parameters values can be changed by a double click on the parameter the pop up window shows the options of the particular parameter enable extended profibus diagnostics, download it and reset the ControllerE © ifm electronic gmbh Stand:
12
Profibus DP Profibus Setup (Parameter)
Profibus parameters can be set up at configuration of Profibus master. At „Power On“ they are transmitted to controllerE. The parameters are used to enable the transfer of AS-i paramter to the slaves project those AS-i parameters enable extended Profibus diagnostic functions configure the analog data area for parallel transmission In most cases the parameters can be selected via a menu. The meaning of the parameters is indicated there. © ifm electronic gmbh Stand:
13
Profibus DP Device Parameter (manual setup)
Byte : 16#80, 16#00, 16#00, 16#00 (fixed) Byte 5: : 16# AE (fixed) indicates begin of analog input area Byte : 16#41, 16#42, 16#43.. Define first, second, third Address of slave to be transmitted in module 10 Format of Address as with module 5,6,7,8 16#4A means Slave 10 of master 1 Byte 21 : 16#AA (fixed) begin of analog output area Byte : 16#51, 16#52, ... Address of slave to be transmitted in module 11 Byte 37 : Bit 5 = 1 enables extended diagnostics of AS-i via Profibus Bit 4 = 1 enables parameter download Bit 0..3 predefined parameter for Slave 1 Master 1 Byte : predefined parameters for AS-i Slaves (2 slaves per byte) © ifm electronic gmbh Stand:
14
Siemens Step 7 Project with Controllere in 7 Steps: Step 7
if extended diagnostics are enabled in the profibus parameters AS-i diagnostics are shown in online mode open the device information window with a double click on the slave icon in the slave diagnostics you can see text messages explaining the error state of the AS-i line © ifm electronic gmbh Stand:
15
Profibus DP Diagnostics
The first byte of module 1 and of module 2 contains general master flags of master 1 and master 2 To get details the command channel can be used. The AS-i diagnostics via extended Profibus Diagnostics in an acyclic data service. It can be enabled by Profibus parameters The Profibus parameter byte 32 enables diagnostcs and AS-i parameters and contains the AS-i parameter for slave 1(A) of master 1 The default value is 16#0F © ifm electronic gmbh Stand:
16
Profibus DP Diagnostics
62 Bytes Diagnostics = 6 byte standard + 56 bytes extended © ifm electronic gmbh Stand:
17
Profibus DP extended Diagnostics
LAS (List of activated slaves),LCE (List of configuration errors) and LPF (List of periphery faults) have the same structure example: List of configration errors © ifm electronic gmbh Stand:
18
Profibus DP extended Diagnostics
The diagnostic data are transmitted from ControllerE to the DP-Master if a new error occures or one error disappers An AS-i error does not stop the application on DP-Master The diagnostics for every slave can be displayed at DP-master handled by PLC program © ifm electronic gmbh Stand:
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.