How to automatically have b3 controller backup to flash.

Issue

How to automatically have b3 controller backup to flash.

Product Line

SmartStruxure Solution

Environment

b3 Script Program

Cause

Script program syntax is a bit different to how it was done in Continuum, specific details needed on how to set this up. 

Resolution

This is a sample script program to enable automatic backup to flash when the controller database is different to what is currently stored in Flash.

Create the below Script Program in the b3 controller. Make sure to bind both the input and output variables to statusbackup/value.

 

'bind statusbackupin and statusbackupout to the systemvariable statusbackup/value.

numeric input statusbackupin

numeric output statusbackupout

 

init:

if ts >= 5 then goto checking

 

checking:

if statusbackupin = backupneeded Then

  statusbackupout = backupnow

Endif

goto wait1day

 

wait1day:

if td >= 1 then goto init