43
Backup_E3NW
Sysmac Library User’s Manual for EtherCAT N-Smart Series Library (W549)
External Variables
Internal Variables
// Backup and Resotre parameters setting.
IF InitTrigger=FALSE THEN
TargetSlave:=1;
TargetDirectory:='TestDir';
TargetTimeOut:=0;
InitTrigger:=TRUE;
END_IF;
// Detect when BackupTrigger changes to TRUE.
IF ( (BackupTrigger=TRUE) AND (BackupLastTrigger=FALSE) AND
(_EC_MBXSlavTbl[TargetSlave]=TRUE) AND
(_Card1Ready=TRUE) AND (BackupBusy=FALSE) AND
(RestoreBusy=FALSE) ) THEN
BackupOperatingStart:=TRUE;
BackupOperating :=TRUE;
END_IF;
BackupLastTrigger:=BackupTrigger;
// Initialize Backup_E3NW instruction.
IF (BackupOperatingStart=TRUE) THEN
BACKUP_E3NW_instance(
Execute :=FALSE);
BackupOperatingStart:=FALSE;
END_IF;
// Execute Backup_E3NW instruction.
ST
Variable
Data type
Constant
Comment
_EC_MBXSlavTbl
ARRAY[1..N
*1
] OF BOOL
*1. N = 192 for NJ501, NJ301 and NJ101. N = 512 for NX701.
Message Communications
Enabled Slave Table
_Card1Ready
BOOL
SD Memory Card Ready Flag
Name
Data type
Default
Comment
BACKUP_E3NW_instance
OmronLib\EC_E3NW\Backup_E3NW
RESTORE_E3NW_instance
OmronLib\EC_E3NW\Restore_E3NW
InitTrigger
BOOL
FALSE
BackupTrigger
BOOL
FALSE
Backup execution condition
RestoreTrigger
BOOL
FALSE
Restore execution condition
TargetSlave
UINT
1
Target slave node Address
TargetDirectory
STRING[41]
''
SD card directory
TargetTimeOut
UINT
0
Time out value
BackupBusy
BOOL
FALSE
RestoreBusy
BOOL
FALSE
BackupLastTrigger
BOOL
FALSE
Value of BackupTrigger from
previous task
RestoreLastTrigger
BOOL
FALSE
Value of RestoreTrigger from
previous task
BackupOperating
BOOL
FALSE
Backup processing
RestoreOperating
BOOL
FALSE
Restore processing
BackupOperatingStart
BOOL
FALSE
Backup processing started
RestoreOperatingStart
BOOL
FALSE
Restore processing started
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: ......