“EtherNet/IP Services” IEC Library
The “EtherNet/IP Services” IEC library can be used to implement certain services/functionalities, such as generating status queries or exchanging specific data.
The library is already included in the scope of delivery of e!COCKPIT (“Program Structure” panel > double-click on the library manager > [Add Library]).
Function Blocks for Initiating Data Exchange with Any Ethernet/IP Adapter:
- Generic_Service
- This function block performs a generic service on an EtherNet/IP adapter. The message is sent as an unlinked explicit message request.
- Get_Attributes_All
- This function block is used to query all attributes of a specific instance of a CIP object.
- Get_Attribute_Single
- This function block is used to query one attribute of a specific instance of a CIP object.
- Set_Attributes_All
- This function block is used to set attributes of a specific instance of a CIP object.
- Set_Attribute_Single
- This function block is used to set one attribute of a specific instance of a CIP object.
Function Blocks for Changing the Status of Ethernet/IP Adapters:
- Start
- This function block is used to call the “Start” service of a specific instance of a CIP object. The exact effect of this service depends on the CIP class (see CIP specifications, Vol. 1 and 2).
- Stop
- This function block is used to call the “Stop” service of a specific instance of a CIP object. The exact effect of this service depends on the CIP class (see CIP specifications, Vol. 1 and 2).
- Reset
- This function block is used to call the “Reset” service of a specific instance of a CIP object. The exact effect of this service depends on the CIP object (see CIP specifications, Vol. 1 and 2).
- Apply_Attributes
- This function block is used to call the “Apply_Attributes” service of a specific instance of a CIP object. This causes the attributes that were previously set with “Get_Attribut_Single” or “Get_Attribut_All” to be applied and stored by the adapter.
- NOP
- This function block is used to call the “NOP” service of a specific instance of a CIP object. This service is normally used to check whether the adapter is still available in the network.