EasyManua.ls Logo

Siemens SIMATIC S7 - Flashled Method

Siemens SIMATIC S7
134 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
6.7.2.3
FlashLED method
Return type
Method name
Result
FlashLED
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();
}
}

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals