4.5. Plan de análisis
5.2.3. Respecto al objetivo específico 3:
© Copyright 2008-2010 ABB. All rights reserved.
3.4.2. Configuring digital I/O, example
Description
This is an example of how to configure an I/O unit with four input signals and four output signals.
The I/O unit used in this example is an ET200S I/O unit with five submodules attached to it:
• One power module.
• Two modules with two DO in each module.
• Two modules with two DI in each module.
The network is configured using Siemens Step7.
PROFINET configuration setup
Use this procedure to set the configuration in Siemens Step7.
Action
1. Create a new empty project.
2. On the Insert menu, point to Station, and then click SIMATIC PC Station.
3. In SIMATIC Manager, expand the project tree and select the created station. Right -click the station and select Open Object to open the HW Config window.
xx0800000138
4. Expand the SIMATIC PC Station on the right-hand side catalog tree. Expand further in the tree, find SIMATIC PC Station\CP Industrial Ethernet\CP 1616\V2.2.
5. Double-click or drag the V2.2 device from the catalog tree to slot 1 of the PC rack.
Continues on next page
3.4.2. Configuring digital I/O, example
© Copyright 2008-2010 ABB. All rights reserved.
6. Enter the IP address used for the DSQC 678, and then click New to create a PROFINET network.
xx0800000139
7. Click OK on the Industrial Ethernet dialog and OK in the Properties-Ethernet interface PN-IO dialog.
xx0800000140
Action
Continued
Continues on next page
3 PROFINET Master/Slave configuration
3.4.2. Configuring digital I/O, example
© Copyright 2008-2010 ABB. All rights reserved.
8. Double-click the X1 slot in PC rack to open the PN-IO dialog.
xx0800000141
9. Enter Robot1 in the Device Name text box and click OK.
xx0800000142
Action Continued
Continues on next page
3.4.2. Configuring digital I/O, example
© Copyright 2008-2010 ABB. All rights reserved.
10. Expand the catalog tree view and locate the correct ET200S device, PROFINET IO\I/O\ET 200S\IMI151-3 PN ST V6.0.
xx0800000143
11. Drag the device from the catalog and drop it on the Ethernet PROFINET-IO-System.
12. Continue expanding the catalog tree to locate the modules that are connected in the hardware device.
xx0800000144
Action
Continued
Continues on next page
3 PROFINET Master/Slave configuration
3.4.2. Configuring digital I/O, example
© Copyright 2008-2010 ABB. All rights reserved.
13. For each module double-click or drag it to the appropriate slots of the ET200S device.
NOTE!
Make sure the catalog number matches the catalog number printed on the hardware.
14. If the feature prioritized startup is desired for the ET200S, double-click on slot X1 and select Prioritized startup. This will shorten the time it takes for the device to start data exchange with the controller after losing and regaining power or after disconnection and reconnection on the bus.
en0900000001
15. On the File menu, click Save and compile.
xx0800000145
16. Make sure that you have an ethernet connection between the PC and the DSQC 678.
Action Continued
Continues on next page
3.4.2. Configuring digital I/O, example
© Copyright 2008-2010 ABB. All rights reserved.
17. On the PLC menu, click Download and then click OK.
xx0800000146
18. Click View to search the network for the DSQC 678.
xx0800000147
Action
Continued
Continues on next page
3 PROFINET Master/Slave configuration
3.4.2. Configuring digital I/O, example
© Copyright 2008-2010 ABB. All rights reserved.
19. Select the appropriate DSQC 678 card and click OK.
xx0800000148
20. Click OK to stop the card. This finishes the setup in the Siemens tool.
Continue with configuring the IRC5 controller I/O system.
xx0800000149
Action Continued
Continues on next page
3.4.2. Configuring digital I/O, example
© Copyright 2008-2010 ABB. All rights reserved.
IRC5 controller I/O configuration setup
Use this procedure to setup the configuration in the IRC5 controller, using RobotStudio.
Action
1. Start RobotStudio and connect to the IRC5 controller. Request write access.
2. Click Configuration Editor and select I/O.
3. In the type list, click Unit and then right-click in the workspace and select Add Unit.
4. Enter the parameter values for the unit and click OK.
• Name.
• Type of Unit should be PN_GENERIC.
• Profinet Address should be 1, same as the device number in the Step7 project.
xx0800000152
xx0800000155
NOTE!
Device number 1 in the Siemens project.
5. In the type list, click Signal and then right-click in the workspace and select Add Signal.
Continued
Continues on next page
3 PROFINET Master/Slave configuration
3.4.2. Configuring digital I/O, example
© Copyright 2008-2010 ABB. All rights reserved.
6. Enter the parameter values for the signal and click OK.
• Name
• Type of signal
• Assign to unit
• Unit mapping
xx0800000156
The lower panel in Step7 can be a guide when specifying the parameter Unit Mapping.
Select the device in the project and use the lower panel. See settings explanation in Signal mapping example on page 45.
xx0800000158
7. Restart the IRC5 controller.
8. After the restart, start RobotStudio and make sure the configured I/O signals are accessible.
Action Continued
Continues on next page
3.4.2. Configuring digital I/O, example
© Copyright 2008-2010 ABB. All rights reserved.
Signal mapping example
xx0800000158
The panel shows that the signals are mapped to:
The I/O signals in the IRC5 controller should be mapped as:
This example shows that even if a 2 bit module type is used, every slot occupies atleast 1 byte.
If an 8 bit module type is used, all signal bits (unit map 0-7) would have valid data.
Slot Module type Module mapping in Step7 Unit mapping in IRC5 controller
2 2DO Out 0.0..0.1 Out 0,1
3 2DO Out 1.0..1.1 Out 8,9
4 2DI In 0.0..0.1 In 0,1
5 2DI In 1.0..1.1 In 8,9
Name Type of signal Assigned to Unit Unit mapping
DI1 Digital Input IM151 0
DI2 Digital Input IM151 1
DI3 Digital Input IM151 8
DI4 Digital Input IM151 9
DO1 Digital Output IM151 0
DO2 Digital Output IM151 1
DO3 Digital Output IM151 8
DO4 Digital Output IM151 9
Continued