Versions Compared

Key

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

...

In this example the application activate activates the Profinet indications. For that the application need to call the request "Register Application".

...

5. Indication/PacketHandler

The PacketHanlder PacketHandler needs to read the mailbox and check it for new packets (for example indications). If a new packet is available the application shall check the command in the header of the pcket packet and implement a switch case. ALL profinet indication like here the PNS_IF_PARAM_END_IND shall be implemented in the switch case:

...

Take care, that the length value for the response is not allways always sizeof(data). Check carefully the profinet documentation an sometimes the length value is

...

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

6. When does the application need to

...

implement an indication

There is no general answer, because this need to be checked for every application. Many indications can be seen as informations for the application and only a response is necessary.

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

...