The objective of this tutorial is to establish communication between a Nexto CPU and a remote IO block from the Series G using the PROFINET protocol.
Components
Equipment: 1 Nexto XP325 CPU, 1 PROFINET Network Adapter/Head module (GL-9087), 1 16 DI module (GT-12DF), 1 16 DO module (GT-226F), 1 switch.
Software: Master Tool IEC XE v3.75.
Tutorial Sections
- ARCHITECTURE
-
DEVELOPMENT
2.1. Project Creation in MasterTool
2.2. PROFINET Device Configuration
2.3. Application Execution
- RESULTS
1. ARCHITECTURE
The expansion modules must be properly connected to the network adapter. The equipment must be configured to the same IP range, ensuring they are on the same network, and must be connected to the switch, forming a LAN (Local Area Network). In this tutorial, the switch was configured to 192.168.100.254, the Notebook to 192.168.100.30, the XP325 to 192.168.100.25, and the GL-9087 to 192.168.100.3. The IP configuration of the GL-9087 will be performed in the MasterTool project. To be configured, the equipment needs to be on the same subnet, which is why we are using the 192.168.100.x subnet.
Note: Pay attention to the assembly order of the IO expansion modules next to the network adapter. This order will define, later on, the addressing of the variables.
Figure 1. System Connection Diagram
NOTE: The default factory IP address of the GL9089 is 192.168.100.100.
2. DEVELOPMENT
In this tutorial, a project will be created in MasterTool for the Xpress and a PROFINET device will be configured, representing a remote IO block from Series G, for communication between both. The digital input and output modules coupled to a network adapter will be configured.
2.1. Project Creation in MasterTool
Open MasterTool and create a new project for the XP325.
The project creation tutorial for Xpress can be accessed at: https://suporte.altus.com.br/hc/pt-br/articles/7754631705485-Nexto-Xpress-Criando-um-projeto
2.2. PROFINET Device Configuration
In the equipment tree, right-click on NET 1, under XP325 (XP325), and click on Add Device... / Acrescentar Dispositivo....
Figure 2. Add Device
A Add Device / Acrescentar Dispositivo window will open. Select FieldBuses à Profinet IO à Ethernet and click on Add Device / Acrescentar.
Figure 3. Add Ethernet
With the window still open, select the created object in the equipment tree, and then, in the window, select FieldBuses à Profinet IO à PN-Controller and click on Add Device / Acrescentar.
Figure 4. Add PN-Controller
With the window still open, select the created object in the equipment tree, and then, in the window, select FieldBuses à Profinet IO à Profinet IO Slave à I/O à Altus FnIO System à Altus PROFINET I/O à GL9087 and click on Add Device / Acrescentar.
Figure 5. Add GL9087
With the window still open, select the created object (GL9087) in the equipment tree, and then, in the window, select Fieldbuses à Profinet IO – Profinet IO Module. Select the desired expansion module and click on Add Device / Acrescentar. Do this for all modules you wish to add. After finishing adding devices, close the window.
Figure 6. Add Expansion Modules
Open the PN_Controller that was added to the project and, in the General tab, configure the IP address range of the devices, subnet mask, and gateway.
Figure 7. PN-Controller Configuration
Open the GL9087 device that was added to the project and, in the General tab, configure the device name (according to the DIP switch configuration), the desired IP address (within the range configured in PN_Controller), the subnet mask, and the gateway. Set Send clock (ms) to 4 and Reduction ratio to 16.
Figure 8. GL9087 Configuration
2.3. Application Execution
After configuration, the system is already functional. Press Alt+F8 to connect to the CPU and then, after a successful connection, run the application by pressing F5.
For testing, digital input 2 was physically activated.
To monitor the digital inputs, open the respective expansion module in the device tree and select the IO mapping tab.
In this same tab, you can assign project variables to each input of the module.
Figure 9. Digital Inputs Monitoring
To monitor the digital outputs, open the respective expansion module in the device tree and select the IO mapping tab.
To test the digital output module, in the Prepared value column, change the status of the desired outputs. In this tutorial, outputs 0, 4, 10, and 15 will be left active, as shown in Figure 10. Press Ctrl+F7 and click Yes / SIM to load the values into the CPU.
In this same tab, you can assign project variables to each output of the module.
Figure 10. Changing Digital Output Status
After changing the status of the variables, the value can be observed in the Current Value column, as shown in Figure 11.
Figure 11. Digital Outputs Monitoring
3. RESULTS
After completing the assembly, configuration, execution, and sending commands to the IOs, you can observe, as shown in Figure 10, the status of the IOs of the modules. Digital input 2, which was physically activated, is on, as well as digital outputs 0, 4, 10, and 15, which were activated by command through MasterTool.
Figure 12. IO Block LED Panel
Note.: The green IOS LED lit on the GL-9087 module indicates that the expansion modules are in normal operation.
Comments
0 comments
Please sign in to leave a comment.