Does anyone has experience to work with direct loader? Is it enough to make it work without PLC? Just load same shared directory files during each program run?
DEF Loader ( )
INI
;Definition of the program path for the source directories:
KRDLSOURCEDIR[]="E:\source\"
KRDLTARGETDIR[]="KRC:\R1\Program\pro\"
;Activating functions
KRDLENABLEBACKUP=TRUE
KRDLCOPYTOKRC=TRUE
KRDLDELETESOURCE=FALSE
;Deleting all modules from the directory KRDLTARGETDIR
KRDLDELETETARGET=TRUE
KRDLModuleToDeleteonKRC[] = " "
;Loading all modules from the directory KRDLSOURCEDIR
KRDLCOPYTOKRC = TRUE
KRDLModuleNameToLoad[] = " "
;Activation of the simulation of inputs/outputs
$IOSIM_OPT=TRUE
;Reset the trigger variable
IF $FLAG[77]==TRUE THEN
WAIT SEC 0.5
$FLAG[77]=FALSE
ENDIF
;starting the Directory Loader
;Monitoring of the conditions for the start of the Directory-Loader.
IF (NOT KRDLACT OR NOT KRDLRDY OR NOT KRDLERR) THEN
;The simulated status of input $IN[17] is TRUE, i.e.
;the DirectoryLoader is active
$FLAG[77]=TRUE
ENDIF
END