Versions Compared

Key

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

...

The extendedConfig example can be found in the Knowledge Base on the following website:

netX 90: https://kbhilscher.hilscheratlassian.comnet/wiki/display/NXLFWHST/netX+90+-+PROFINET+IO+Device+-+Examples



This can alternatively be found under:

...

The extendedConfig project can be opened by double-clicking the ".solproject" file. This requires the latest version of netXStudio (https://kbhilscher.hilscheratlassian.comnet/wiki/display/NDT/).


2. PROFINET Sources

A GSDML file is required for this example. The GSDML file can be found in the netXStudio project in Project Explorer at:

...

The event handler case APP_EVENT_SET_ALARM3 and APP_EVENT_CLEAR_ALARM3 can be triggered with use of the DIP switch S700.3

S700.3 ON adds the diagnostics

S700.3 OFF removes the diagnostics


8. Trace

A An alarm frame can be found with use of filter pn_rt.frame_id==0xfe01

If the application has implemented diagnostic alarms, than is then it is easy to produce an alarm.


Diagnostic Alarm.pcap

Here a A dip switch is used to add an application diagnostic to the Profinet PROFINET IO Device stack. The device sends an alarm to the PLC. The PLC acknowledge acknowledges this alarm.

After some seconds the dip switch was changed changes again to remove from application side the diagnostic from the Profinet PROFINET IO Device device stack. The Devcedevice sends a an Alarm disappears to the controller.


9

...

. TIA Portal

In the code for add diagnostic request the value ErrType can be changed to show different diagnostics.

ptReq->tData.usChannelErrType = 0x100; (= 256) is the diagnostic defined in the GSDML file.

ptReq->tData.usChannelErrType = 0x2; is a standard definition for under voltage

Go online and connect to the device. Click on the device and go to the 10 Byte input. Open the online diagnosis.


Image Added

Switch to diagnose status

Image Added

Change DIP S700.3 to on and add the diagnosis on the Device.

Image Added

10. SYCON.net

Here a netHost with SYCON.net is used. Connect to the netHost and open diagnosis of the PROFINET IO Controller

Image Added

Switch to the Station Diagnosis. If the status is green, that means no diagnosis is on the device

Image Added


Change DIP S700.3 to on and add the diagnosis on the device. In SYCON.net the status changes to yellow.

Image Added