You would like to use the command prompt for the PLCDataBackup software? No problem! Besides the user interface you can also operate the software via the command line. You only need a few steps to do this. With this quick guide you can control PLCDataBackup in no time at all via command prompt.

Control of the PLCDataBackup via command prompt.

Only three steps:

  • Use the keyboard shortcut “WINDOWS + R”.

  • Enter „cmd.exe“

  • Change to the directory location of the PLCDataBackup

As you can see in the left picture, the call from PLCDataBackup leads to a help text. You have two options for this. Either you can scan the complete PLC with all data blocks or you make a selection.

You have several options:

Example for creating a backup with the command prompt for variant 1

Variant 1

The first variant requires information on the PLC connection (IP address, rack, slot), the desired action (backup or restore) and the storage path (file name e.g. C:\SPSDataBackup\Filename). Start the backup or restore by using the required information in the correct order.

With the “Backup” action, the software scans the data block numbers in the range between 1 and 60,000 and simultaneously backs up the data of all existing data blocks in the scanned area with full length. This procedure takes several minutes. If you want to make further settings for the data modules, variant 2 is suitable.

Variant 1 can also be used to scan all data blocks before an automatic backup. This could be useful, for example, if the data modules are changed regularly.

Example for creating a backup with the Windows Task Scheduler manually

Proceed as follows:

  • Open Windows Task Scheduler
  • Click on “Create basic task…”
  • Assign a name, e.g. “PLC_Backup_FullScan”.
  • Set trigger (e.g. Daily, Weekly)
  • Define action -> “Start a program”
  • Set the “Program/script” setting to the path of SPSDataBackup.exe (default “C:\Program Files (x86)\MB SuS GmbH\PLCDataBackup\SPSDataBackup.exe”)
  • As arguments, the IP, rack, slot, action and storage path must now be specified as described above (Example: 192.168.253.28 0 0 Backup “C:\Users\Owner\Desktop\BackupFile.dxml”)

The task in the Windows Task Scheduler will then be executed at the next specified time.

Example for creating a backup with the command prompt for variant 2

Variant 2

Here 3 parameters are handed over: “ConnectionName” specifies the name of a PLC connection that has previously been configured via the graphical user interface. If it contains a space, the ConnectionName must be placed in quotation marks. Furthermore, as in variant 1, the information about the action and the storage path must be transferred. Variant 2 then creates a manual backup/restore of the data blocks as they were created in the specified PLC connection.

Overview of our products

S7 DatabackupPLCDataToolsPLCScanner

PLCDataBackup

Safety first: Siemens S7 data is automatically backed up and, if necessary, restored. Can be used immediately, without changing the S7 program.

PLCDataSuite

Read and write Excel files with a Siemens S7 machine control (PLC). Simple, fast setup. Universally applicable.

PLCScanner

Scan a certain IP-Adress or a whole network for Siemens S7 PLCs

For free!