Академический Документы
Профессиональный Документы
Культура Документы
net
www.beckhoffautomation.com
The contents of this information are accurate to the best of our ability. Hardware and Software
are in a constant state of improvement. Screen shots were taken from Siemens Step7 version
5.4 service pack 5.
3-6
DIP Switches
Specifications
13
20
31
40
48
57
66
72
75
82
Page 2
Profinet Standard
PROFINET is defined by PROFIBUS & PROFINET International (PI) and backed by the
INTERBUS Club and, since 2003, is part of the IEC 61158 and IEC 61784 standards.
Profinet in General
PROFINET is the open industrial Ethernet standard of PROFIBUS & PROFINET
International (PI) for automation. PROFINET uses TCP/IP and IT standards, and is, in
effect, real-time Ethernet.
The PROFINET concept features a modular structure so that users can select the
cascading functions themselves. They differ essentially because of the type of data
exchange to fulfill the partly very high requirements of speed.
In conjunction with PROFINET, the two perspectives PROFINET CBA and PROFINET
IO exist. PROFINET CBA is suitable for the component-based communication via
TCP/IP and the real-time communication for real-time requirements in modular systems
engineering. Both communication options can be used in parallel.
Page 3
Page 4
Page 5
The EK9300 series are Couplers which allow ELxxxx terminals to be used on the
Profinet Fieldbus
Page 6
Description
Restart Behavior
DHCP
DIP switches 1-8 set to "0"
1
- PN name via DIP switches 1 - 8
DHCP
- PN name via DIP switches 1 - 8* - IP address and SNM via DHCP
DIP switches 1-8 not set to "0" - IP address and SNM via DHCP
- DNS name "bk9103-xxyyzz"
xxyyzz last 3 bytes of MAC ID
BootP
PROFINET-compliant
Page 7
Technical Data
Number of Bus Terminals
Digital peripheral signals
Analog peripheral signals
BK9103
EK9300
Bus connection
Power supply
Input current
Starting current
Bus power supply up to
Power contact voltage
Power contact current load
Dielectric strength
Recommended fuse
Dimensions (W x H x D)
49 mm x 100 mm x 75 mm
Weight approx.
Operating temperature
Storage temperature
Relative humidity
Vibration / shock resistance
EMC resistance burst / ESD
Installation pos.
Protection class
170 g
??
32F to +131F (0C... +55C)
-13F to +185F (-25C... +85C)
95 % no condensation
conforms to EN 60068-2-6 / EN 60068-2-27, EN 60068-2-29
conforms to EN 61000-6-2 / EN 61000-6-4
variable
Vertical (upright not on side)
IP20
Protocol
Configuration possibility
Maximum number of bytes
65 mm x 100 mm x 80 mm
Page 8
A Blank SIMATIC Manager opens (or whatever was last in the SIMATIC Manger the last
time before it was closed)
Page 9
Page 10
Enter a project name. In this example a long but descriptive name was used to indicate
the hardware to be used with this exercise. Press the OK button after the project name
has been entered.
Page 11
Page 12
Page 13
Page 14
Page 15
Plug the long end of the cable to the programming computers serial port
Page 16
The MPI Side can be either 19.2KB, 187.5KB or 1.5MB between the MPI adapter to the
PLCDP/MPI port
Page 17
There is the possibility there are several masters in a Siemens network. At the Beckhoff
BUSA lab there is just the one PLC station so check the box this is the only master on
the system. Leave the PG/PC address at 0 and leave the communication timeout at the
default 30 seconds.
Choose the correct COM port for your computer and the baud rate to match the MPI
RS232 port. The MPI adapter only supports 19.2 or 38.4 KB. There is a selector switch
on the side of the MPI adapter. Make sure it matches the settings you select in
software. At the BUSA lab the switch is normally set to 19.2 KB. You can check the
checkbox for Apply settings for all modules but this is not necessary for
communbcations to work. Press the OK button to accept this setup.
Page 18
The change from one interface to another is confirmed by the status box at the bottom
of the Step7 screen showing what interface is being used to communicate with the
Siemens CPU.
Page 19
Page 20
Page 21
Page 22
The SIMATIC Manager screen should now have the components shown in the picture
below. You may have to open the tree view in the left as you do in the Beckhoff System
Manager to see all the elements. Double-Click the
icon to go to the hardware
configuration screen.
Page 23
Page 24
Notice at the bottom of the screen how the SIMATIC Manager and the HW Config
windows are both present. Each one is a separate module that can be viewed and
worked with at the same time. At some point along the way in this presentation we will
be jumping between these two windows to make certain changes to the programming
envirement.
Page 25
Page 26
Theres nothing that should need adjusting to any of these settings. We are just looking
at all the possible windows that can be viewed from this location in the Step7 software.
The Parameters TAB of the MPI interface is shown below.
Pressing the Properties button of MPI(1) goes to another sub window with more tabs.
Shown below is the General TAB.
Page 27
Press cancel and then press cancel again to get back to this screen.
The MPI/DP Properties, General TAB, should now be the active window. Select the
Addresses TAB.
Page 28
Page 29
Page 30
Page 31
After setting the IP address and subnet mask press the NEW button in the subnet
window area to create a Profinet network we can connect Beckhoff devices to.
Page 32
Just for fun lets change the name to BeckhoffOnProfinet. Then press the OK button.
Page 33
Pressing the New button again and the default name Ethernet(1) comes up as it did
before. This time leave the name Ethernet(1) and press the OK button.
Page 34
Page 35
PROFINET TAB -
Page 36
Page 37
Addresses TAB -
Page 38
Options TAB -
Page 39
Page 40
Double-Click on the Profinet network line. The gneral TAB is shown. Pressing the
Properties button on this screen brings up a screen we have already worked with and
dont need to be concerned with further.
Page 41
The catalog should be shown on the far right side of the hardware configuration screen
As shown below. Beckhoff hardware will also be chosen form this tree of devices.
Page 42
Page 43
Page 44
The EK9300 GSDML file is still under development. There is a copy of this file that
provides limited functionality for simple digital and some analog terminals.
Here are the needed files embedded in this word document.
GSDML-V2.2-beckhoff-EK9300-20110526.xml
Page 45
The installation progress bar should proceed with no incident until each GSDML is
installed.
Page 46
This should be the last message you get during the installation Installation completed
successfully.
Page 47
Now expand the Profinet IO tree to see the items below it. Expand Additional Field
Devices. Expand I/O. Now the BK9103 and EK9300 folders should appear as see
below.
Page 48
Page 49
Click on the BK9103 icon just created on the Profinet network. The bottom left window
shows the details of the BK9103 I/O rail. As of now there is just the coupler. The next
task is to make sure the coupler is setup correctly and then add the I/O terminals that
are physically associated with this coupler.
Page 50
Double-Click the BK9103 I/O rack and the below window appears. The Device Name
must be changed to bk9103-3 as shown. Make the Device number 3 to match. The
IP address must be 192.168.0.3 for this example. Since the master was at 192.168.0.2
this node automatically added itself correctly as 192.168.0.3 in the general TAB.
In the I/O Cycle TAB the update time may be adjusted. Just leave it at the default
settings for this example and press the OK button to close this window (OK button is not
shown in the picture below to save space).
BK9103 EK9300 on S7 PLC
Page 51
Now that the coupler is setup its time to add the I/O terminals. For the example I/O
terminal rail there is only a KL2012 and a KL1104. The KL9010 does not generate any
process image so it doesnt have to be added in the Step7 hardware configuration.
There are no I/O terminals added below the BK9103 yet but the setup of the BK9103
now shows it has the correct settings for the coupler.
Page 52
The digital outputs (KL2xxx) folder does not contain every possible Beckhoff part
number specifically but all possibilities are being represented. Some are represented
BK9103 EK9300 on S7 PLC
Page 53
Once the Kx2xx2 is selected the area under the bk9103-3 in the lower left window
turns green and specifically dark green where the next device can be placed. You can
drag the Kx2xx2 device to that location in dark green OR just double click it and the
Kx2xx2 will be put in the location of the darker green row. The darker green row then
moves down by one row automatically.
Page 54
The BK9103 I/O is now complete and should look as seen below.
If you wish
BK9103 EK9300 on S7 PLC
to change the
Page 55
The output currently is addressed at Q2.0 and Q2.1 in the Siemens PLC. The starting byte may be
changed. For this example we will be leaving at all the I/O at the locations the software simple auto
selected when the I/O was added. Just cancel out of this window.
Page 56
For this example pick the EK9300 V2.0 by holding down the left mouse button and
dragging this item to the BeckhoffOnProfinet network line. When you drag it over on the
line the + symbol appears on the screen indicating the object may be Dropped at this
location. Release the left mouse button to drop the EK9300 rack on the Profinet
network line when you see that + symbol being shown. Your screen should now
appear as shown below.
Page 57
Double-Click the EK9300 I/O rack and the below window appears. The Device Name
must be changed to ek9300-4 as shown. Make the Device number 4 to match. The
IP address must be 192.168.0.4 for this example.
Page 58
Now that the coupler is setup its time to add the I/O terminals. For the example I/O
terminal rail there will be the terminals shown in the picture below.
Page 59
Open the Digital Outputs (EL2xxx) folder. There a lot a lot fewer device folders as the
EK9300 is still in development. Only simple digital and analog terminals will function
correctly at this time (as of June 2011).
Page 60
The dark green is now at slot 2 and the EL2002 appears in the listing of devices so far
As shown below.
Page 61
The next device is the bus extender terminal EK1110. This device is found in the
system terminals folder.
Page 62
Next comes the EK1100 EtherCAT coupler. Collapse the system terminals folder and
open the system couplers folder.
Page 63
Page 64
Page 65
Page 66
Either double-click or press the Properties button after selecting the TCP/IP network
card. Now press the Network Properties button on this popup screen.
Page 67
Right-click on the Local Area Connection to the the pop up menu shown below and
select the Properties menu item.
Scroll down to the Internet Protocol (TCP/IP), pick that item by left clicking on it, and
then press the Properties button on this screen.
Page 68
This screen appears again. Press the Close button to accept the changes to the IP
address.
Page 69
Page 70
A warning pops up after pressing the OK button to let you know the interface is going to
change to the ethernet network card. Just press OK.
Page 71
Now switch back to the harware config screen which should still be open. If the window
got closed just double-click the
icon to go to the hardware configuration screen.
From the HW Config menu under the PLC drop down select download
Page 72
The following popup message will occur if the PLC was running prior to this download.
This is a last chance to let you know the PLC is going to STOP if you continue. If this
were a real running machine this would be a good time to be sure the coast is clear
from the operators before continuing.
If it is OK to stop the PLC then press the OK button.
Page 73
Its time to test some real I/O and prove the Beckhoff couplers and I/O on Profinet is
working.
Page 74
On the monitor modify window are the physical addresses of the KL2012 terminal.
BK9103 EK9300 on S7 PLC
Page 75
Page 76
Page 77
Page 78
Page 79
For inputs, just check the monitor checkbox and flag inputs to see the state changes in
the PLC. The RUNNING bar scrolls continuously when monitoring is turned on.
Page 80
This completes the I/O on the BK9103 Profinet coupler. There is considerably more I/O
on the EK9300 coupler to examine.
Uncheck the modify checkbox and close the Monitor/Modify window.
Page 81
Page 82
Page 83
Please turn OFF all the outputs. Press the modify button to actually turn the outputs
OFF. Uncheck the monitor checkbox. Then, press the close button to leave this
window.
Page 84
As for the outputs, an entire byte of data is shown but the real world input are only I1.0
to I1.3
Page 85
Other mapping issue now show up. Only I1.2 and I1.3 should be on but the bits I1.6
and I1.7 are also on even though they have no meaning to the real world input terminal
and should be ignored. Once the EK9300 couplers firmware is completed tested
issues like this would not be expected.
Page 86
Everything appears normal in this case with only the expected inputs turned ON.
Page 87
As expected I1.0 through I1.3 are ON and as before the I1.6 and I1.7 inputs are ON but
dont relate to the physical terminal in any meaningfull way. Just disregaurd these bits.
Uncheck the monitoring checkbox and close this monitor/modify window.
Page 88
Page 89
Page 90
Turning ON all the outputs is still only going to affect the first two channels.
Page 91
Check the Monitor checkbox. The RUNNING bar scrolls continuously when monitoring
is turned on.
Page 92
Page 93
Right-click the EL1114 and select Monitor/Modify for that terminal. Check the monitor
checkbox after the window opens.
Page 94
All the 4 channel digital input terminals have done exactly the same thing in the PLC.
Channel 3 and 4 also turn ON bit 6 and 7 even though these bits have no meaning to
the physical terminal.
Page 95
For the analog outputs things are pretty much the same as the digital points. Check the
monitor checkbox. Enter an analog output value in HEX with the high/low bytes in
reverse order. So where 3FFF hex is 16383 in decimal which is the halfway point so
5VDC output, it must be entered in the PLC modify value box as 16#FF3F. Then press
the modify button. The PLC adds the W, for word, after the value is entered.
Page 96
Now modify the output for the full 10VDC output so 32767 counts in decimal and
7FFF in hex. In reverse order for the byte swap this means entering 16#FF7F. The
PLC adds the W, for word, when you press the enter key. Press the modify button.
Page 97
Finally, modify the output for the 0VDC output so 0 counts or 0 hex (decimal and hex
are the same from 0 9). No reverse order is required in this case. Just type a 0 in
the Modify value box and press enter. The PLC adds the W#16#0000 when you press
the enter key but this is still the value 0 in decimal. Press the modify button.
Page 98
Set the remaining channels as shown and then press the Modify button.
Page 99
For the analog inputs, right-click on the EL3102 terminal and select monitor/modify.
Make sure and check the monitor checkbox.
Page 100
The value is bouncing coming back in the PLC so 3 random screen shots were taken of
the input value which in an ideal world is expected to be 3FFF at 5VDC.
Page 101
The value is bouncing so 3 random screen shots were taken of the input value which in
an ideal world is expected to be 7FFF at 10VDC.
Page 102
The value is bouncing so 3 random screen shots were taken of the input value which in
an ideal world is expected to be 1FFF at 2.50VDC.
Page 103