API de la SIMATIC Automation Tool para .NET framework
7.1 Licencia de software API y compatibilidad entre versiones
A modo de ejemplo, en V2.1.1 se habría utilizado el código siguiente para iterar una
recopilación de dispositivos e ignorar los dispositivos no soportados.
IProfinetDeviceCollection scannedDevices = new IProfinetDeviceCollection();
Result retVal = myNetwork.ScanNetworkDevices(out scannedDevices);
if (retVal.Succeeded)
{
}
Con la API V3.0 el código tendría que cambiarse a
IProfinetDeviceCollection scannedDevices = new IProfinetDeviceCollection();
Result retVal = myNetwork.ScanNetworkDevices(out scannedDevices);
if (retVal.Succeeded)
{
}
Consulte también
Ejemplo de red (Página 170)
94
foreach (IProfinetDevice dev in scannedDevices)
{
if (!dev.Supported)
{
continue;
}
}
foreach (IProfinetDevice dev in scannedDevices)
{
if (dev.Supported != FeatureSupport.Supported)
{
continue;
}
}
Guía de usuario de SIMATIC Automation Tool V3.0
Manual de producto, V3.0, 06/2017, A5E41848985-AA