cls
forever:
dialog 7
ECU Info
Read Slave
Load Slave file
Write Slave
Verify
Change VIN
Exit
begin:
option 1 ecuinfo 2 backup 3 load 4 restore 5 verify 6 changevin 7 end
ecuinfo:
run canparameter
goto forever
backup:
if DEBUG == 0
detect
wait 4000
if DEBUG == 0
echo Please power off/on the ECU and try again
goto continue
endif 
endif
echo Read Slave
getram slave
goto continue
load:
echo Load Slave
ldram 40000
goto continue
restore:
confirmdlg
if CONFIRM == 0
goto continue
endif
if DEBUG == 0 
detect
wait 4000
if DEBUG == 0
echo Please power off/on the ECU and try again
goto continue
endif 
endif 
echo Write Slave
flashchk 40000
if FLASHSET == 0
echo flash not defined
goto continue
endif
erase slave
sprogram slave
cmpram slave
if CMPRAM == 0
echo Please power off/on the ECU and try again
endif
goto continue
verify:
cmpram slave
continue:
goto begin
changevin:
run canvin
goto forever
end:
