The Device Module implements the device Lexium 32M for EtherNet/IP. This device is added under the Industrial Ethernet manager with the name selected within the Add Function From Template dialog box.
The device is preconfigured. The configuration includes the connection for the drive profile Lexium 32M with the assemblies 103 (output) and 113 (input). The Request Packet Interval (RPI) is selected with 10 ms.
Global Variable List - GVL_<name device module>
The Device Module implements a GVL. This GVL is added under the Application node within a folder with the name selected within the Add Function From Template dialog box. The GVL gets the same name as the folder and the device but with the prefix GVL_.
The GVL contains the variables which build the interface from the implemented program code to the application. The clear name of the GVL and the uniform naming of the variables facilitate a simple and structured implementation into the application.
Program - Prg_<name device module>
The Device Module implements a program. This program is added under the Application node within a folder with the name selected within the Add Function From Template dialog box. The program gets the same name as the folder and the device but with the prefix Prg_. Besides, the program-call is added automatically to the associated task.
For basic control functions, the program code does not need to be modified, all required signals and parameter are linked to the associated variables in the GVL.
The program is divided into several actions. These are described in the following table.
Name of the action |
Description |
---|---|
A01_ComCtrl |
Processes the functions to monitoring and control of the EtherNet/IP communication with the device. |
A02_Ctrl_LXM |
Contains a selection of function block calls to control the Lexium. Each function block is called in each program cycle. |
A03_Stat_LXM |
Contains a selection of function block calls to gather status information from the Lexium. Each function block is called in each program cycle. |
A04_Config_LXM |
Contains a selection of function block calls to write a set of parameters to the Lexium. |
Further information about the control logic is available inside the program in terms of comments.