Topic: DMD0287 Rung Comment Editor |
||||||||
|
||||||||
Each rung of ladder logic in a Program or Task can have a Comment associated with it. The Rung Comment Editor is used to create and edit these comments. Text for the rung comment can be entered directly into the comment field, or the programmer can use copy and paste from another comment or another editor. All the traditional Windows editing keystrokes are available for editing, and for cutting and pasting text into and out of the comment editor.
After positioning the edit cursor on the rung to receive a new comment or edit existing comment text, the rung comment editor can be opened by selecting the Tools -> Comment Editor menu selection, pressing Ctrl + K, double clicking anywhere on an existing rung comment, or double clickingin the rung comment area of a rung (which will be identified by the mouse cursor changing from the simple pointer to a pointer with the text "Cmt" below it).
|
||||||||
|
||||||||
Creating New Rung CommentsThe Edit Comments dialog provides a free-form edit window. This allows the programmer to enter the comment text any way they want, within the confines of the edit window. Each rung comment can contain up to 24 lines of text. The number of characters per line will depend on the font and any additional formatting applied. Text in the rung Comment can consist of any alphabetic character, alphanumeric value, punctuation mark, and arithmetic operator; essentially any printable ASCII character can be used.
The Comment editor supports many of the familiar Windows keyboard shortcuts for editing functions, such as selecting text (SHFT+ Arrow keys), Select All (Ctrl+A), Cut (CTRL + X), Copy (CTRL + C), Paste (CTRL + V), Undo (CTRL + Z), Page Up will move to the previous rung Comment, and Page Down will move to the next rung Comment.
At the top of the editor is the format toolbar which sets the display options for the comment text:
The first drop-down list selects the font for the comment text: Arial, Century Gothic, Courier New, Lucida Console, Times New Roman, or Verdana. The Font selection affects the word at the cursor location, any selected text, and any new text.
The second drop-down list selects the font size for the comment text: Small, Medium (default), Large, Huge. The Font Size selection affects the word at the cursor location, any selected text, and any new text.
The third group of buttons select the following text format options: Bold, Italicize, Underline, and text Color. The text Format selection affects the word at the cursor location, any selected text, and any new text. The Comment editor supports keyboard shortcuts for toggling the text format at the caret location of the current selection: Ctrl+B for Bold, Ctrl+I for Italics, and Ctrl+U for Underline.
The fourth group of buttons select the following text justification options: Left justified, Centered, and Right justified. The text Justification selection affects all of the text on the current row, and any new text.
The final button will remove all of the existing text in the comment editor.
At the bottom of the editor are the "tape transport style" controls that are used to navigate the rungs of the current code-block:
|
||||||||
|
||||||||
If any changes have been made to the currently displayed rung comment, you will be prompted to save these changes before moving to a different rung.
|
||||||||
|
||||||||
Using Goto Comment for RungThe Comment editor provides a Goto Comment for Rung dialog to quickly navigate to a specific rung number (or address) in a specified Code Block. Select the destination Code Block from the drop-down menu, then enter the Rung Number (or Address) and click OK.
Code Block selects the code-block to use, click the down arrow to select from the list of Programs and Tasks.
Rung Number / Address specifies the rung number or address within the selected code-block to go to, click the up or down arrow to enter the rung number or address.
|
||||||||
|
||||||||
Moving (Cut & Paste) Rung CommentsThe keyboard shortcut keys can be used to Cut and Paste individual rung
Comments, or parts of rung Comments from one rung to another.
If there is a range of multiple rung Comments that need to be moved, the Move Comments dialog makes the process very simple. Click the Move button to open the Move Comments dialog.
Click the Move Comments button to perform the MOVE operation; click the Close button to exit the dialog. Note: The MOVE operation has the potential to overwrite existing rung Comments if the source and destination ranges overlap. Do-more Designer will prompt the programmer for confirmation before it completes the MOVE. Consider using the Move Comments function described below if the source and destination ranges overlap.
|
||||||||
|
||||||||
Copying Rung CommentsThe keyboard shortcut keys can be used to Copy and Paste individual rung Comments or parts of rung Comments from one rung of ladder logic to another.
If there are multiple rung Comments that need to be copied, the Copy Comments dialog makes the process very simple. Click the Copy button to open the Copy Comments dialog.
The Addr / Rung Num selection specifies whether the Source and Destination are specified by Rung Number or by Address:
Click the COPY Comments button to perform the copy operation, or Close button to exit the dialog without performing the copy operation. Note: The copy operation has the potential to overwrite existing rung Comments if the source and destination ranges overlap. Do-more Designer will prompt the programmer for confirmation before it completes the COPY.
|
||||||||
|
||||||||
ConfigureThe Configure... button opens the following dialog where the default settings for comment text can be set.
New Comment Default Font Size selects the font size (Small / Medium / Large / Huge) for any new comments added to the project.
|
||||||||
|
||||||||
See Also:Using Cut / Copy / Paste to Move Rungs
|
||||||||
|
||||||||
Related Topics:
Insert Instructions
from a File
|
||||||||
|