Topic: DMD0282 Memory Image Manager |
|
A project's Memory Image is used to store data values from memory locations in the PLC as part of the offline project.The contents of the Memory Image can then be downloaded to the PLC as needed, or optionally any time Do-more Designer project is downloaded to the PLC. A new Do-more Designer project DOES NOT contain a Memory Image, you must create and maintain both the Memory Image configuration and the Memory Image data manually.
The Memory Image only stores data values for memory locations that are marked as RetentiveMemory marked as retentive will hold its state through a power cycle or a Program-to-Run mode transition. The status of memory NOT marked as retentive will be cleared at power up and during a Program-to-Run mode transition. in the Memory Configuration, so before creating a Memory Image make sure the retentive memory in the PLC is setup the way you want it through the Memory Configuration section of the System Configuration.
The Memory Image file can upload the initial data for each of the selected retentive memory ranges from the connected PLC, or all of the data can be initially cleared. Once the Memory Image is created and it's contents are initially set, the contents of the Memory Image file can be updated by the following operations:
When connecting to the PLC, the PLC copy of the Memory Image configuration will be compared to the offline version and any differences will be noted on the Resolve Online/Offline Differences dialog, and must be resolved like differences in the other sections of the project.
The Memory Image Manager can also be used during of the Generate DMLoader Image creation process to include the contents of the Memory Image in the DMLoader image file.
|
|
To open the Memory Image Manager, select Tools-> Memory Image Manager from the Menu bar or click the Memory Mgr button on the Tools toolbar.
|
|
Create New Image...Clicking the Generate New Image will open the following dialog:
This dialog will create a Memory Image file within your project (if a Memory Image exists it's contents will be erased ) and add all of the memory blocks that are marked as retentive to the Memory Image. The initial contents of the Memory for each region of the retentive ranges will be set from one of the following:
|
|
Current Image ContentsThe Current Image Contents lists the regions of the controller's retentive memory that are currently included in the Memory Image. This section has functions to modify the contents of an existing Memory Image file, by adding new memory regions, refreshing the contents of the current memory regions, deleting one or more of the memory region, and editing the contents of the existing memory regions. Add RegionClicking the Add Region button will open a dialog that will list all of the retentive regions that are NOT ALREADY in the Current Image Contents list.
Select one or more of the retentive memory regions to add to the Memory Image file by clicking on one of the regions in the list; Click on any of the listed regions in the list to select multiple regions.
Region Data Initialization - selects the initial contents of the region data from the following:
Click OK to add the highlighted regions to the Current Image Contents list.
Click Cancel to close the dialog without adding any regions to the Current Image Contents list.
|
|
Add All RegionsClicking the Add All Regions button will add all of the retentive regions that are NOT already in the Current Image Contents list. If there are new memory regions being added to an existing list, the following dialog will be displayed asking how to initialize the data in each of the new regions:
|
|
Refreshing Memory Image ContentsAs stated earlier, the contents of a Memory Image are not automatically updated, they are only updated when one of the Refresh selections is used, when the Edit Region Data is used, or when a new Memory Image is generated.
Refresh Contents of Selection from PLC - will reread the contents of the currently highlighted regions from the PLC and store the newly read values in the Memory Image. Click on any entry to select multiple regions in the list.
Refresh Contents of All Regions from PLC - will reread the contents of the all the regions in the Current Image Contents list from the PLC and store the newly read values in the Memory Image file.
Refresh Contents of Selection from Disk - will reread the contents of the currently highlighted regions from the offline copy of the Memory Image. Click on any entry to select multiple regions in the list.
Refresh Contents of All Regions from Disk - will reread the contents of the all the regions in the Current Image Contents list from the offline copy of the Memory Image.
|
|
Deleting Regions from the Memory ImageDelete Selection from Image - will remove the currently highlighted regions from the Current Image Contents list. Click on any entry to select multiple regions in the list.
Delete All Regions from Image - will remove all of the regions from the Current Image Contents list.
|
|
Compare Regions ContentsIf the Memory Image configurations match you can use the two following options to compare the region data in the Memory to the region data in the PLC:
|
|
Modify Region DataClick the Modify Region Data button to open a dialog where the elements in the selected region can be set to constant values. The following shows an example of editing the value in the MyReals0 - MyReals99 region:
The Modify Region Data dialog uses color-coded display of the values to indicate various information about the values of the individual Elements in the region. They are as follows:
Toolbar ButtonsClear All Data in View - will clear all of the values in dialog. If the values are bit or numeric they will be set to 0. If the values are Strings they will be cleared.
Goto - locate the specified memory location in the dialog and move the edit cursor to that cell.
Zoom Level - sets the size of the data values displayed in the cells of the dialog. To change the Zoom Level, select one of predefined options in the drop-down list (500%, 300%, 200%, 150%, 100%, 90%, 75%) or type in a percentage value between 50 and 500.
Number of Columns - specifies the number of columns of Elements in the dialog. When the dialog is initially opened it will have 5 columns for data blocks that are numbered in decimal, and 4 columns for data blocks that are numbered in octal. To change the number of columns, select one of the predefined options in the drop-down list (1, 2, 5, 10, 15, 20, 25, 30), or enter any value from 1 to 32.
Display Format - specifies the data format of the values that will be displayed for all of the Elements in the dialog.
Import Data - will read in values from an external CSV (comma separated variables) file that has been previously exported from a Memory View, or exported frm the Memory Image Manager, or exported by the Export Memory Data utility, or one that has been manually created with the appropriate format.
Export Data - store the current value for every Element in the dialog in an external file in CSV (comma separated variables) format. The exported file will be formatted the same way as the export file from the Export Memory Data utility.
Keystrokes and Mouse ActionsThe keystrokes and mouse actions within the dialog are optimized for quick data entry of constant values into memory locations.
Navigating Within the Dialog
Multiple ways to Start an Edit Session for a Cell
Editing the Value in a Cell
Ending the Edit Session
|
|
Write Image Contents to PLC...Click the Write Image to PLC to copy the contents of the current Memory Image to the their respective locations in the controller, overwriting whatever values are in the destination locations.
Enable Automatic Download - enabling this option will download the current contents of the Memory Image each time Do-more Designer downloads the project to the controller if the following conditions are met:
|
|
On Connection OptionsWhen you have a project that contains a Memory Image, the following three options specify what action to take when you connect to a PLC that also has a Memory Image:
If the comparison operation fails, you will see the Resolve Online / Offline differences dialog. This is the same dialog you see when the System Configuration, or the Code Blocks or the Documentation don't match.
|
|
See Also:
Resolve Online/Offline Differences
|
|
Related Topics:
|
|