This tutorial aims to explain how to configure the ProfiNet communication protocol between a Nexto series CPU and the Siemens ET200 CPU.
Components
Software: MasterTool IEC XE V3.40 and TIA Portal v15.1
PLC: XP340 - Firmware:1.11.10.0; ET200SP Siemens
Tutorial Sections
1. ARCHITECTURE
2. DEVELOPMENT
2.1. Developing the ProfiNet CPU GSDML file
2.2. Developing the project in MasterTool IEC XE
2.2.1. Installing the ProfiNet CPU GSDML file
2.2.2. Adding ProfiNet CPU to the project
2.2.3. ProfiNet CPU Configuration
1. ARCHITECTURE
In the architecture of this tutorial, the Ethernet port of the XP340 CPU and the Siemens ET200SP ProfiNet CPU were connected to an Altus switch (ET5-0802). In addition, the computer that will be monitoring the communication will also be connected to this switch via the NX9202 cable.
2. DEVELOPMENT
In this tutorial, it will be explained how to perform communication with the ProfiNet protocol between a Nexto Xpress CPU and the Siemens ET200SP CPU, developing the CPU's GSDML file for installation in MasterTool IEC XE and using it in the Nexto Xpress CPU project.
Attention: The ProfiNet Controller device in MasterTool IEC XE operates in demonstration mode for 30 minutes. If you need to use it for any purpose other than testing, please contact our sales team.
2.1. Developing the ProfiNet CPU GSDML file
The CPU's GSDML file is developed in Siemens' TIA Portal software. When opening the software, select Create new project (1), set a name for the project in Project name (2), select the location where the project will be saved by clicking the three-dot icon in the Path (3) field and click Create (4).
The First steps window will open on the right side of the software. Click on Open the project view.
The project will be started. In the Devices tab of the project tree, double-click on Add new device to add the CPU to the project.
The Add new device window will open. Select Controllers and then select the controller you are using. In this tutorial, the ET200 SP 1510SP-1 PN CPU is being used, so follow the path: SIMATIC ET200 CPU -> ET 200SP CPU -> CPU 1510SP-1 PN, select 6ES7 510-1DJ01-0AB0, give a name to the device in the Device name field and click OK.
The CPU will be loaded into the project. After this step, a test TAG will be created to later observe the communication taking place.
Double-click the image of the CPU that will be in the center of the software screen to open its settings.
In the General (at the bottom of the software), select Ethernet addresses and set the CPU's IP address in the IP address field. In this tutorial, the address 192.168.15.2. was used.
In the General tab (at the bottom of the software), select Protection & Security and enable full access to the CPU in the Access Level field.
In the General tab (at the bottom of the software), select Protection & Security and enable permission for external access by other equipment to the CPU in the Connection mechanisms field.
In Operating mode, the transfer areas that will be allocated for data exchange with the Nexto Xpress will also be added.
After configuring the CPU, save the project and then, in the top bar of the software, click the Compile icon to compile the project.
After compiling the project and if there are no errors, go back to the General tab, select Operating mode, locate the option Export generic station description file (GSD) and click Export.
The Export generic station description file (GSD) window will open. Set a name and a location for the file in the GSD file and Path, fields, respectively. Finally, click Export.
Done, the CPU's GSDML file has been generated and can be used in the Nexto Xpress CPU project.
After this procedure, download this project to the CPU. 2.2.
2.2. Developing the project in MasterTool IEC XE
In MasterTool IEC XE, the project for the Nexto Xpress XP340 PLC will be developed. In this project, the Siemens CPU GSDML file will be installed and the same will be added to the project and configured.
If you are new to the use of Nexto series PLCs, especially the Nexto Xpress, it is recommended to read the getting started tutorial with Nexto Xpress, CLICK HERE:
2.2.1. Installing the ProfiNet CPU GSDML file
With the project properly created in the MasterTool IEC XE software, in the top bar of the software, go to Tools and click on Device Repository.
The Device Repository window will open. Click on Install.
The Install Device Description window will open. With the file type selected as All supported description files (1), find and select the developed GSDML file (section 2.1. of this tutorial) (2) and click Open (3).
The GSDML file will be installed. At the end, click Close to close the window.
2.2.2. Adding ProfiNet CPU to the project
To add the ET 200SP CPU, in the project tree, right-click on NET1 and click on Add Device.
The Add Device window will open. Follow the path: Fieldbuses -> Profinet IO -> Profinet Interface, select Profinet Interface and click Add Device.
The device will be added. Click Close to close the window.
Right-click on the Profinet_Interface device (it will be below NET1) and click on Add Device.
The Add Device window will open. Follow the path: Fieldbuses -> Profinet IO -> Profinet IO Master, select PN-Controller and click Add Device.
The device PN_Controller will be added below Profinet_Interface. Click Close to close the Add Device window.
Finally, right-click on the PN_Controller device and then click on Add Device.
The Add Device window will open. Follow the path: Fieldbuses -> Profinet IO -> Profinet IO Slave, select the Siemens CPU (“PLC_13”) and click Add Device.
The CPU PLC_13 will be added below PN_Controller in the project tree. Click Close to close the Add Device window.
2.2.3. ProfiNet CPU Configuration
By double-clicking on the Siemens CPU (PLC_13) in the project tree, you can access its settings. In the IP Address field of the General tab of the CPU settings, you must configure the device address on the ProfiNet network (the same IP address configured in the TIA Portal software).
In the PNIO I/O Mapping tab, you can find the memory areas allocated for communication with the device (corresponding to the Transfer area fields in TIA Portal).
<!--[if !supportLineBreakNewLine]--> <!--[endif]-->
Note: The variables Output CS and Input PS are variables allocated to inform the quality of the communication data.
Finally, in the project tree, double-click on PN_Controller to open its settings.
In the General tab of PN_Controller settings, you must configure the initial address and the final address of the devices on the ProfiNet network through the fields First IP address and Last IP address, respectively.
It should be emphasized that the CPU that will be the master in this communication must have an IP outside the range of IPs intended for the ProfiNet network slave devices. In this project, the XP340 was configured with the IP found in the NET1 tab, as shown in the image:
Enabling communication between the CPUs.
In TIA PORTAL, the CPU must be set online and then put into run mode.
On the MasterTool side, the CPU must also be set to run mode.
After the CPUs are set to run mode, you can observe the behavior of the test variable using both softwares:
TIA PORTAL:
MasterTool:
By simulating some values in the test variable, you can observe that the result is given in Hexadecimal:
MasterTool:
TIA PORTAL:
Comments
0 comments
Please sign in to leave a comment.