Featuresupport - Siemens SIMATIC S7/HMI Guia Del Usuario

Ocultar thumbs Ver también para SIMATIC S7/HMI:
Tabla de contenido

Publicidad

7.21.10

FeatureSupport

SIMATIC Automation Tool proporciona esta enumeración para indicar qué funciones soporta
cada dispositivo:
Uninitialized
BackupAllowed
ChangeModeAllowed
FirmwareUpdateAllowed
MemoryResetAllowed
PasswordAllowed
ProgramUpdateAllowed
ResetToFactoryAllowed
FormatMCAllowed
NotFailsafe
RestoreAllowed
RemoteDataLogsAllowed
RemoteRecipesAllowed
Supported
FormatMCAllowed
Failsafe
ServiceDataAllowed
SetTimeAllowed
DiagBufferAllowed
Para comprobar si un dispositivo soporta una función en concreto, compare los valores de la
propiedad apropiada con el valor
El siguiente código, por ejemplo, comprueba si un dispositivo soporta la función de borrado
total antes de intentar realizar la operación:
Network myNetwork = new Network();
IProfinetDeviceCollection scannedDevices;
IScanErrorCollection scanResult = myNetwork.ScanNetworkDevices(out scannedDevices);
if (!scanResult.Succeeded)
{
}
Guía del usuario de SIMATIC Automation Tool V3.1 SP2
Manual de producto, V3.1 SP2, 11/2018, A5E45044281-AA
List<ICPU> cpus = scannedDevices.FilterOnlyCpus();
foreach (ICPU cpu in cpus)
{
if (cpu.MemoryResetAllowed)
{
}
}
API de la SIMATIC Automation Tool para .NET framework
definido para esa función.
FeatureSupport
7.21 Enumeraciones API
279

Publicidad

Tabla de contenido
loading

Tabla de contenido