Versions Compared

Key

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

...

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 ON adds the diagnostics

S700.3 off 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 codefor code for add diagnostic request the value ErrType can be changed to show diffented different diagnostics.

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

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

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


Switch to diagnose status

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

10. SYCON.

...

net

Here a netHost with Sycon SYCON.net is used. Connect to the nethost netHost and than open Diagnsis diagnosis of the Profinet PROFINET IO ControlerController

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


Change DIP S700.3 to on and add the diagnosis on the Devicedevice. In Sycon the Status change SYCON.net the status changes to yellow.