The Device Module implements the device OsiSense XGCS for EtherNet/IP. This device is added under the Industrial Ethernet manager with the name selected within the dialog box.
The device is preconfigured. The configuration includes the connection Read Status
with the assembly 102 (input). The Request Packet Interval (RPI) is selected with 50 ms.
The Device Module implements a GVL. This GVL is added under the node within a folder with the name selected within the 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.
The Device Module implements a program. This program is added under the node within a folder with the name selected within the 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.
There are several possibilities to operate an OsiSense XGCS smart antenna. One of these is the dynamic read/write operation which is realized with this Device Module. Dynamic read/write means that the smart antenna executes automatically read or write commands each time a new tag is detected in front of the antenna. The automatically executed read/write commands are defined in instruction blocks which are previously sent from the controller application to the smart antenna using the explicit messaging.
By monitoring the tag counter which is cyclically updated via the implicit messaging, it is detected if a tag has passed the smart antenna. If the tag counter is increased, the data block ReadTable
is read from the antenna using the explicit messaging. These data include the result of the execution of the instruction block and in case of read operation mode the read data from the tag.
In addition to the control of the read or write operation the following functions are provided by the program code:
Monitoring and control of the EtherNet/IP communication with the smart antenna
Reinitialization on demand or after restart the CIP connection
Activation of the sleep mode
Select between read or write operation mode
Send data to the smart antenna which shall be written on the tag by the instruction block
The program is divided into several actions. These are described in the following table.
Name of the action |
Description |
---|---|
|
Processes the functions to monitoring and control of the EtherNet/IP communication with the device. |
|
In this action the single bits of the |
|
This action contains the program code to select the operation mode and to control and monitor the read and write operation executed by the smart antenna. |
Further information about the control logic is available inside the program in terms of comments.