Siemens SIMATIC S7/HMI Guía De Usuario página 200

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

Publicidad

API de la SIMATIC Automation Tool para .NET framework
7.12 Interfaz ICPU
if (retVal.Succeeded)
{
cpu.NewRestoreNameIsSafety == true)
200
ICPU cpu = scannedDevices.FindDeviceByMAC(targetMACAddress) as ICPU;
if (cpu != null && cpu.RestoreAllowed == true)
{
// Seleccionar CPU a actualizar
cpu.Selected = true;
retVal = cpu.SetBackupFile(@"C:\MyFolder\Backup.s7pbkp");
if (retVal.Error == ErrorCode.ProgramPasswordNeeded)
{
retVal = cpu.SetBackupFilePassword(new EncryptedString("Password"));
if (retVal.Failed == true)
return;
}
if (retVal.Failed == true)
return;
// ¿Dirección IP unívoca?
if (cpu.DuplicateIP == true)
return;
// ¿Se soporta el dispositivo?
if (cpu.Supported == false)
return;
// ¿Está inicializado el dispositivo?
if (cpu.Initialized == false)
return;
// ¿El dispositivo es de seguridad?
if (cpu.Failsafe == true)
{
ConfirmationType type =
cpu.DetermineConfirmationMessage(FailsafeOperation.RestoreOperation);
// Verificar tipo y confirmar
cpu.SelectedConfirmed = true;
// Comprobar para asegurarse de que la actualización es posible
if (cpu.HasSafetyProgram == true || cpu.Protected == true ||
{
// ¿El dispositivo está protegido por contraseña?
if (cpu.Protected == true)
{
// ¿Se ha proporcionado una contraseña válida?
if (cpu.PasswordValid == false)
return;
// ¿Se dispone de legitimación para el nivel de seguridad?
Guía de usuario de SIMATIC Automation Tool V3.1
Manual de producto, V3.1, 10/2017, A5E41848985-AB

Publicidad

Tabla de contenido
loading

Tabla de contenido