SIMATIC Automation Tool API for .NET framework
6.6 The IProfinetDeviceCollection class
SIMATIC Automation Tool V2.1 user guide
Manual, V2.1.1 07/2016, A5E33042676-AC
79
The SIMATIC Automation Tool API supports many operations that are only allowed for
CPUs. For this reason, it is useful to filter the collection to include only the CPUs discovered
on the network.
IProfinetDeviceCollection scannedDevices = new IProfinetDeviceCollection();
Result retVal = myNetwork.ScanNetworkDevices(out scannedDevices);
List<ICPU> cpus = scannedDevices.FilterOnlyCpus();
foreach (ICPU cpu in cpus)
{
//----------------------------------------------------------
// Iterate through the list that only includes CPU devices
//----------------------------------------------------------
}
This method returns a list of
ICPU. Additional API operations are supported for CPU devices.
The
ICPU interface provides these operations. The ICPU interface is described in detail in the
ICPU interface (Page 99) chapter.