Backup_E3NW
44
Sysmac Library User’s Manual for EtherCAT N-Smart Series Library (W549)
IF (BackupOperating=TRUE) THEN
BACKUP_E3NW_instance(
Execute :=TRUE,
NodeAdr:=TargetSlave,
DirName:=TargetDirectory,
OverWrite:=FALSE,
TimeOut:=TargetTimeOut,
Busy=>BackupBusy);
IF (BACKUP_E3NW_instance.Done=TRUE) THEN
// Processing after normal end.
BackupOperating:=FALSE;
END_IF;
IF (BACKUP_E3NW_instance.Error=TRUE) THEN
// Processing after error end.
BackupOperating:=FALSE;
END_IF;
END_IF;
// Detect when RestoreTrigger changes to TRUE.
IF ( (RestoreTrigger=TRUE) AND (RestoreLastTrigger=FALSE) AND
(_EC_MBXSlavTbl[TargetSlave]=TRUE) AND
(_Card1Ready=TRUE) AND (BackupBusy=FALSE) AND
(RestoreBusy=FALSE) ) THEN
RestoreOperatingStart:=TRUE;
RestoreOperating :=TRUE;
END_IF;
RestoreLastTrigger:=RestoreTrigger;
// Initialize Restore_E3NW instruction.
IF (RestoreOperatingStart=TRUE) THEN
RESTORE_E3NW_instance(
Execute :=FALSE);
RestoreOperatingStart:=FALSE;
END_IF;
// Execute Restore_E3NW instruction.
IF (RestoreOperating=TRUE) THEN
RESTORE_E3NW_instance(
Execute :=TRUE,
NodeAdr:=TargetSlave,
DirName:=TargetDirectory,
NoProductChk:=FALSE,
TimeOut:=TargetTimeOut,
Busy=>RestoreBusy);
IF (RESTORE_E3NW_instance.Done=TRUE) THEN
// Processing after normal end.
RestoreOperating:=FALSE;
END_IF;
IF (RESTORE_E3NW_instance.Error=TRUE) THEN
// Processing after error end.
RestoreOperating:=FALSE;
END_IF;
END_IF;
Summary of Contents for SYSMAC-XR005
Page 1: ...Sysmac Library User s Manual for EtherCAT N Smart Series Library W549 E1 06 SYSMAC XR005...
Page 5: ...3 Manual Structure Sysmac Library User s Manual for EtherCAT N Smart Series Library W549...
Page 7: ...5 CONTENTS Sysmac Library User s Manual for EtherCAT N Smart Series Library W549...
Page 44: ...Backup_E3NW 42 Sysmac Library User s Manual for EtherCAT N Smart Series Library W549...
Page 56: ...Restore_E3NW 54 Sysmac Library User s Manual for EtherCAT N Smart Series Library W549...
Page 57: ...55 Sysmac Library User s Manual for EtherCAT N Smart Series Library W549 Appendix...
Page 63: ......