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 Retentive Memory 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 or structure fields in the selected region can be set to constant values. If the highlighted region is a block of simple types, a dialog similar to the following will open.
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. A cell's background color of Olive Green indicates the current position of the edit cursor; Red indicates the text in that cell IS NOT VALID for the current data format, White means the Element IS USED in the current project, and Gray means the Element IS NOT USED in the current project.
Toolbar ButtonsIf the highlighted region is a block of simple types, the Toolbar will have the following options:
If the highlighted region contains structures, a dialog will open that contains a row for each structure in the block and a column for each structure field.
Note: if the selected structure contains unions (two or more fields that have been purposely mapped to the same memory location in the structure) you will see the following message then be required to select which of the fields of the union(s) will be modified in this dialog: 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. A cell's background color of Olive Green indicates the current position of the edit cursor; Red indicates the text in that cell IS NOT VALID for the current data format, White means the Element IS USED in the current project, and Gray means the Element IS NOT USED in the current project.
Toolbar ButtonsIf the highlighted region is a block of structures, the Toolbar will have the following options:
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:
|
|