Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

5. Indication/PacketHandler Profinet default

Often a an application does not want or need to handle all Profinet indications. Only a set of a few indications want to be used by the application, . But the application needs to implement all

Profinet indications. In this case the application can return ERR_HIL_NO_APPLICATION_REGISTERED = 0xC0000202 for not wanted indications.

That means, that the stack will handle the indication like if the application is not registered for this indication. Implement all indications like this:

5. Indication/PacketHandler switch case default

The default of the switch case is very important. If not all indications are implemented in the application, the default will create a default response to the sackstack.

For profinet indications this default answer can we wrong, but it is better as no response.

...

But some indications need deeper a implentation in the application. For example if the application change the stack behavior with  with ptSetConfig→ulSystemFlags, than it make is necessay to implement indications.

...