...
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 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 then it is is easy to produce an alarm.
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
...
under 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.