Topology > I/O Devices > Use Memory Mode > Using Persisted I/O Memory Mode

Using Persisted I/O Memory Mode

Since the release of version 7.20, a feature called persistence can be applied to I/O devices. When implemented, the tag cache for an I/O device is written to an XML file at a set period, allowing the last available data to be reloaded following a shutdown.

Persistence is enabled using the Persist property for an I/O devices.

You can also create a persisted memory I/O device using the Device Communications Wizard. When this type of device is selected, the wizard creates a new I/O device with the Address and Port Name properties left blank, Memory set to “TRUE”, and Persist set to “TRUE”. The File Name field is left empty to allow runtime to generate a default cache file name. This file will be located in the [DATA] directory.

Migrating Disk I/O Devices

When applied to I/O Devices in memory mode, persistence provides an improved alternative to a disk I/O device, as synchronization is supported in scenarios where a server becomes unavailable for a period of time.

Many customers use disk I/O devices to provide system-wide global variable tags that are managed by I/O servers and are persisted to disk to maintain their latest values. Disk I/O devices take advantage of the standard I/O system redundancy features, such that, if one I/O server is unavailable, another can provide client(s) with tag values. They also perform a level of synchronization by using features such as standby write and by providing redundant paths to the persisted binary data files, so that, at startup of an I/O server, the latest value can be read into the system from the latest modified data file.

Note: Persisted memory PLCs have the ability to synchronize values between redundant devices after network connections are inoperative and regained. For this reason, it is recommended that data assigned to disk I/O devices be migrated to the new persisted memory I/O mode.

To migrate disk PLC devices to persisted I/O memory mode:

  1. Perform the procedures listed in Upgrading to Citect SCADA 7.20, as is appropriate. Refer to the v7.20 documentation for more information.
  2. For disk I/O devices, set the Background Poll property to TRUE and the Persist property to TRUE (the default setting). See Add an I/O Device) for more information.
  3. Start the I/O server up and wait for a few minutes so that the background poll updates every tag.
  4. Shutdown the I/O server.
  5. On the I/O Device dialog, for disk I/O devices set Background Poll back to FALSE, set Memory to TRUE and clear out the Port Name field as it is not necessary for Memory Mode.
  6. Restart the I/O server to finish the migration to persisted memory I/O mode, with your devices now containing your original values from the disk I/O device.

See Also

Published June 2018