The Device-Copy logical device copies all settings from one device to another when the operator commands this. The Device-Copy behaves like a manual operated Device-Mirror.
The main difference to the Device-Mirror device is, that the Device-Copy device leaves the slave device un-touched until the operator presses the 'copy' button. Then the device one by one compares the settings of the two devices. Setting which differ between the two devices are set at device 2 to the value set at device 1.
The Device-Copy generally is used for semi-automatic backup / redundancy switching systems where the operator has to decide when to mirror the settings to the redundant device.
The device provides it's own device window with the "copy" button which triggers the parameter copy. In most cases however you will want to trigger the copy from a button at a user screen. To configure this, place a "ParameterButton" element at the screen which writes an arbitrary string value to the 'copy' variable of the Device-Copy device.
Device window pages
The following table shows which device window pages are available with this individual device type. Tool-bar functions not mentioned here are described at the general description of device windows .
--- Provides the copy button.
--- The device info page.
--- The maintenance page. The configuration parameters from this page are described below.Configuration parameters
At the maintenance page of the device window there are a couple of configuration parameter which must be set to interconnect the Device-Copy device with the devices it shall mirror.
| parameter | description |
|---|---|
| device1Name | The name of device 1 (the master device). |
| device2Name | The name of device 2 (the slave device). |
Variables defined by this device driver
| name | type | flags | range |
|---|---|---|---|
| info.driver | TEXT | R/O | StringRange R/O |
| info.type | TEXT | R/O | StringRange R/O |
| info.frame | TEXT | R/O | StringRange R/O |
| config.device1Name | TEXT | SAVE SETUP | StringRange |
| config.device2Name | TEXT | SAVE SETUP | StringRange |
| copy | TEXT | NOPRESET | StringRange |