Setting up a PROFINET PLC (Tia Portal with S7-1500)
This chapter shows how to setup a PROFINET PLC by using the Siemens tool TIA. The step by step instructions are exemplary done for the PLC “SIMATIC 1511-1 PN”.
Requirements
The following soft- and hardware are required for this setup.
PLC “SIMATIC 1511-1 PN”
TIA (“Totally Integrated Automation” – Version V13 SP1 Update 4)
device running the port GMBH’s PROFINET stack
RJ45 network cables
Preparation
Connect the device to PLC using a RJ45 network cable
Connect the PLC to PC (with TIA) using a RJ45 network cable
Change the IPv4 address of the computer interface to a private network address (e.g. 192.168.0.30)
Setting up PLC
Open the Siemens tool TIA and create a new project
Switch to the “Project view”
Load the GSDML file (Menu Options -> Manage GSD) and install it
The GSDML file can be found in protos\pnio\gsdml at the GOAL release directory.
Add the device to the project:
Double click on “Devices & networks”
Open “Network view”
Drag & drop the device “Standard” from catalogue directory (Other field devices -> PROFINET IO -> Drives -> I/O -> port GmbH -> port GmbH -> port IO Examples)
There should be 4 devices in the listing. Choose the DAP according to the device’s number of network ports.
Figure: add device to project
Add input and output modules:
Change to “Device view”
Drag & drop the modules “64 bytes I” and “64 bytes O” from hardware catalogue to the device
Figure: Add I/O modules
Add the PLC to the project:
Double click on “Add new device”.
Choose the device and the firmware version 1.7
Figure: Add the PLC to the project
Connect the devices:
Change to “Network view”
Connect the green marked Ethernet ports of the devices (drag & drop)
Figure: Connect the devices
Check the IP address of the PLC:
Change to “Device view”
Choose the PLC device
Click on the PLC in the “Device view”
The IP address in the “General” window must be the same as set in the PLC
Figure: Check the IP address
Set the name of the device:
Double click on your network interface card (in “Project tree” > Online access)
Open “Online & diagnostics” of the device
Go to the function setting “Assign Name”
Change the device name
Press “Assign name” button
Figure: Set device name
Load the settings to the hardware:
Right-click on the PLC at the “Project tree” (left hand side)
In the right-click context menu: Download to device > Hardware configuration
Popup of a new window:
Select your interfaces and connection
Click “Start search” to find your device
Select the PLC line
Press “Load”
Figure: Configuration of the connection
Finish PLC configuration:
Figure: Finish configuration
Now the PLC should connect to the device and exchange cyclic data with it. As the data is mirrored in the 01_simple_io example the PLC can be also programmed to send cyclic over the output module which should be mirrored on the input module.
Watching and changing the cyclic data can also be easily achieved with port GmbH’s https://portgmbh.atlassian.net/wiki/spaces/ICE.