Topic: DMD0272 Cross Reference View |
|
The Cross Reference View provides a table of element and instruction
usage information. The Cross Reference View can be opened by selecting
the Tools -> Cross Reference...
menu selection, or by clicking the Xref
button on the Tools bar, or by the Ctrl+Y
keyboard combination. The Cross Reference View operates in one of the following modes (each
of which is discussed in more detail below):
As much of the following information as is appropriate is displayed for each element in the cross reference list:
Xref Element is the element id or nickname that has been referenced in the program.
Note: double-click on the Element to invoke the Element Browser.
Xref Extended info will show any casting and structure member information.
Xref Access Type is the Input, Output, or Input / Output access type for that specific parameter.
Xref Address is the fully qualified memory address in the PLC displayed as <code-block>@<address>.
Xref Instruction is the name of the instruction that contains the element.
Xref Parameter shows additional information which includes the element’s Parameter Info (where appropriate).
Note: Double-clicking on the entries of the Extended Info, Access Type, Address, Instruction, or Parameter fields moves the Ladder View's edit cursor to the location in the program where the element is used.
|
|
Cross Reference ModeWhen in Cross Reference Mode the toolbar buttons define the scope of the query and the element type constraints that will be used. The toolbar buttons are 'sticky' meaning that, to enable that button's function, left-click it once and the button will remain in the 'pressed state, left-click again to disable that button's function.
The Cross Reference Mode toolbar buttons are (from left to right) :
The first group of three buttons determine the Mode of the Cross Reference View.
Cross Reference Mode enable sets the current mode to Cross Reference Mode.
Element Usage Mode enable sets the current mode to Element Usage mode (see description below)
Follow Ladder Cursor: if enabled, only the topmost element in the cross reference table will follow the Ladder Edit cursor as it is moved around the Ladder View. If disabled, the cross reference table can be navigated with its cursor keys and the scroll bars.
The next group of four buttons determine
how much of the project's ladder logic will be looked at to generate the
set of cross referenced points which will then be displayed in the cross
reference table.
The next set of 4 buttons ( B N S D ) are used to specify the set of cross referenced points by filtering elements out of the list based on the element’s data-type. Clicking one of the buttons will enable the inclusion of that data type in the set of cross referenced points; if a button is NOT clicked, elements with that data type will NOT be included in the list.
The next set of 2 buttons ( I O ) are used to further refine the set of cross referenced points by filtering elements out of the list based on the element’s access type. Clicking one of the buttons will enable the inclusion of elements that are used in instructions as that access type in the set of cross referenced points.
The next button ( Ex ) is used to optionally expand simple ranges so that the cross reference will additionally include an entry for each element that is referenced in ranged instruction SETR - Set Range, MOVER - Move Range, etc.). For example, a SETR instruction that references C100 through C120, would have a single entry in the Cross Reference named "C100 thru C120".
The final selection on the toolbar is the sort order drop-down list which specifies how the list of elements will be organized. Select one of the following options:
|
|
Element Usage ModeThe Element Usage Mode provides an efficient view of the memory elements that are being referenced, which are free, and whether or not they are being used in a ranged instruction. The elements are shown in groups of 8, 10, or 16 bits as determined by the current Usage Field Size setting.
The Element Usage Mode toolbar buttons are (from left to right) :
The first group of three buttons determine the Mode of the Cross Reference View.
Cross Reference Mode enable sets the current mode o Cross Reference Mode (see description above).
Element Usage Mode enable sets the current mode to Element Usage mode.
Follow Ladder Cursor : if enabled, only the topmost element in the cross reference table will follow the Ladder Edit cursor as it is moved around the Ladder View. If disabled, the cross reference table can be navigated with its cursor keys and the scroll bars.
Reverse Usage toggles the display order of the elements in the range, from MSB is the left-most element -to- MSB is the right-most element.
The final set of 3 buttons are used to define the number of elements to display in each range
Element is the range of elements.
Range Displays : the following icons can be shown in a cell for a given element:
X means the point is used explicitly in the project.
[ means the point is used at the beginning of a range of contiguous points.
– means the point is implicitly used within a range, but is not referenced explicitly in the project.
] means the point is used at the end of a range of contiguous points.
I means - the point is used both as the beginning of a range and at the end of a range.
|
|
Cross Reference Options:The selections described above affect only the current cross reference view. To make the selection permanent use the XRef Options dialog, which can be opened by clicking the View-> Options menu selection and then selecting the XRef tab, or by right-clicking anywhere within the Cross Reference view itself and selecting Options. The same selections that are listed above will be available on the Options dialog.
|
|
See Also:
|
|