SIMATIC Automation Tool API for .NET framework
6.7 The IProfinetDevice interface
SIMATIC Automation Tool V2.1 user guide
90 Manual, V2.1.1 07/2016, A5E33042676-AC
This method flashes the LED on a specific network device. The flashing LED helps identify
the physical location of the device.
The following example flashes the LED for the device that uses the IP address 192.168.0.1.
uint targetIPAddress = 0xC0A80001; // 192.168.0.1
IProfinetDeviceCollection scannedDevices = new IProfinetDeviceCollection();
Result retVal = myNetwork.ScanNetworkDevices(out scannedDevices);
if (retVal.Succeeded)
{
//------------------------------------------------
// Search for the device at that IP, and flash LED
//------------------------------------------------
IProfinetDevice dev = scannedDevices.FindDeviceByIP(targetIPAddress);
if (dev != null)
{
retVal = dev.FlashLED();
}
}