Skip to end of banner
Go to start of banner

PNS I&M Example

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

1. Example project

In this example the application shall handle I&M data on application side. For that it is necessary to change the configuration packet, to implement the "wirte I&M indication" ,

the "read I&M indication" and the "reset to factory indication". For that the application needs a possibility to save information remanent in a flash.

Example Sourcecode can be found in the Extended Config Example: netX 90 - PROFINET IO Device - extendedConfig V2.2.0.0

2. Configuration Packet

In the configuration packet it is necessary to change the ptSetConfig→ulSystemFlags. First step is to disable the flag PNS_IF_SYSTEM_STACK_HANDLE_I_M_ENABLED.


The next step is the use of the same data in the configuration packet like in the I&M0 informations

For Example you can create first a structure of I&M0 and than use it:

ptSetConfig→ulVendorId = IM0.usManufacturerId;

ptSetConfig->usSwRevision1      = IM0.tSoftwareRevision.bX;

ptSetConfig->usSwRevision2      = IM0.tSoftwareRevision.bY;

ptSetConfig->usSwRevision3      = IM0.tSoftwareRevision.bZ;

ptSetConfig->bSwRevisionPrefix  = IM0.tSoftwareRevision.bPrefix;

3. GSDML


4. Indications

Implement the packet handler Indications for

PNS_IF_READ_IM_IND

PNS_IF_WRITE_IM_IND

5. TIA Portal




  • No labels