General Online Functions...
Tips for editing the parameters in the communication parameters dialogue
You can only edit the text fields in the column Value.
Select a text field with the mouse, and get into the editing mode by double clicking or by pressing the
space bar. The text input is finished by pressing the <Enter> key.
You can use <Tabulator> or <Shift> + <Tabulator> to jump to the next or the previous switching or
To edit numerical values it is possible with the arrow keys or the Page Up/Down keys to change the
value by one or ten units respectively. A double click with the mouse also changes the value by
increasing by one unit. A typing check is installed for numerical values: <Ctrl> + <Home> or <Ctrl> +
<End> deliver the lowest or the highest value respectively for the possible input values for the type of
parameter in question.
Quick check in the event of unsuccessful connection attempt to the gateway
You should make the following checks if the connection to the selected gateway computer is not
successful. (You get the message „not connected" in the Communication Parameters dialog behind
the gateway server address in the field Channels):
Has the gateway server been started (the three-color symbol appears in the bottom right portion of the
Is the IP address that you entered in the 'Gateway: Communication Parameters' dialog really that of
the computer on which the gateway is running? (use „ping" to check)
Is the TCP/IP connection working locally? The error may possibly lie with TCP/IP.
'Online' 'Sourcecode download'
This command loads the source code for the project into the controller system. This is not to be
confused with the Code that is created when the project is compiled! You can enter the options that
apply to Download (time, size) in the 'Project' 'Options' 'Sourcedownload' dialog.
'Online' 'Create boot project'
With this command, the compiled project is set up on the controller in such a way that the controller
can load it automatically when restarted. Storage of the boot project occurs differently depending on
the target system. For example, on 386 systems three files are created: default.prg contains the
project code, default.chk contains the code's checksum, default.sts contains the controller status
after restart (start/stop).
The command 'Online' 'Create boot project' is also available in offline mode if the project has been
built without errors. In this case the following files are created in the projects directory:
<projektname>.prg for the boot project code, and projektname>.chk for the checksum. These files
can be renamed as necessary and then be copied to a PLC.
Depending on the target system settings at the creation of a boot project in offline mode a new *.ri-file
(download information) might be created. Also depending on the target setting a dialog will appear if
this file already exists.
If the project option
Implicit at create boot project
(category Source download) is activated, then
the selected sources will be loaded automatically into the controller on the command 'Online' 'Create
'Online' 'Write file to controller'
This command is used for loading any desired file onto the controller. It opens the dialog for 'Write file
to controller' in which you can select the desired file.
After the dialog is closed using the 'Open' button, the file is loaded into the controller and stored there
under the same name. The loading process is accompanied by a progress dialog.
With the command 'Online' 'Load file from controller' you can retrieve a file previously loaded on the
4 - The Individual Components
'Online' 'Load file from controller'
With this command, you can retrieve a file previously loaded into the controller using 'Online' 'Write file
to controller'. You receive the 'Load file from controller' dialog. Under Filename, provide the name of
the desired file, and in the selection window enter the directory on your computer into which it is to be
loaded as soon as the dialog is closed with the „Save" button.
4.7 Window set up...
Under the 'Window' menu item you will find all commands for managing the windows. There are
commands for the automatic set up of your window as well as for opening the library manager and for
changing between open windows. At the end of the menu you will find a list of all open windows in the
sequence they were opened. You can switch to the desired window by clicking the mouse on the
relevant entry. A check will appear in front of the active window.
'Window' 'Tile Horizontal'
With this command you can arrange all the windows horizontally in the work area so that they do not
overlap and will fill the entire work area.
'Window' 'Tile Vertical'
With this command you can arrange all the windows vertically in the work area so that they do not
overlap and will fill the entire work area.
With this command you can arrange all the windows in the work area in a cascading fashion, one
'Window' 'Arrange Symbols'
With this command you can arrange all of the minimized windows in the work area in a row at the
lower end of the work area.
'Window' 'Close All'
With this command you can close all open windows in the work area.
With this command you can open or close the message window with the messages from the last
compiling, checking, or comparing procedure.
If the messages window is open, then a check () will appear in front of the command.
4.8 Help when you need it...
'Help' 'Contents and Search'
With the commands Contents resp. Search in the Help menu you can open the help topics window,
which will be displayed via the HTML Help Viewer (Internet Explorer V4.1 and higher).
The Contents tab shows the contents tree. The books can be opened and closed by a double-click or
via the plus and minus signs. That page which is currently selected in the contents tree will be
displayed in the right part of the window. Hyperlinks from the text to other help pages resp. expanding
hotspots are marked by a different color and an underline. A mouse-click on such texts will open the
linked page resp. will show the expanded text or a picture.
Help when you need it...
In the Index tab you can look for help pages on specific items, in the Search tab a full-text search on
all help pages can be done. Follow the instructions in the register cards.
Help Topics Window
Context Sensitive Help
You can use the <F1> key in an active window, in a dialog box, or above a menu command in order to
open the online help. When you perform a command from the menu, the help for the command called
up at that time is displayed.
You can also highlight a text (for example, a key word or a standard function) and press <F1> to have
the help displayed for that item.
4 - The Individual Components
5 - Editors in CoDeSys
5 Editors in CoDeSys
5.1 This is for all Editors...
Components of an Editor
All editors for POUs (Program Organization Units) consist of a declaration part and a body. The body
can consist of other a text or a graphic editor; the declaration portion is always a text editor. Body and
declaration part are separated by a screen divider that can be dragged, as required, by clicking it with
the mouse and moving it up or down.
The vertical and horizontal margins that apply when the editor contents are printed, are shown by red
dashed lines if the 'Show print range' option in the project options in the dialog 'Workspace' was
selected. The properties of the printer that was entered apply, as well as the size of the print layout
selected in the 'File' 'Printer Setup' menu. If no printer setup or no print layout is entered, a default
configuration is used (Default.DFR and default printer). The horizontal margins are drawn as if the
options 'New page for each object' or 'New page for each sub-object' were selected in 'Documentation
settings'. The lowest margin is not displayed.
Note: An exact display of the print margins is only possible when a zoom factor of 100% is selected.
User comments must be enclosed in the special symbol sequences „(*" and „*)". Example: (*This is a
Comments are allowed in all text editors
, at any location desired, that is in all declarations, in the IL
and ST languages and in self-defined data types. If the Project is printed out using a template, the
comment that was entered during variable declaration appears in text-based program components
after each variable.
In the FBD and LD graphic editors
, comments can be entered for each network. To do this, search for
the network on which you wish to comment and activate 'Insert' 'Comment'.
Besides that comments always can be added where variable names are inserted.
Example in FBD for a network comment and for a comment placed behind an input variable:
a comment also can be added to each contact resp. each coil, if this is configured accordingly
in the display options in menu 'Extras' 'Options'. In the Ladder Editor additionally a comment for each
particular contact and coil can be added, if the corresponding options are activated in the menu
there are special comment POUs which can be placed at will.
you can enter comments about a step in the dialog for editing step attributes.
Nested comments are also allowed if the appropriate option in the 'Project' 'Options' 'Build Options'
dialog is activated.
This is for all Editors...
In Online mode, if you rest the mouse cursor for a short time on a variable, the type and if applicable
the address and comment of that variable are displayed in a tooltip.
Zoom to POU
With this command a selected POU is loaded into its editor. The command is available in the context
menu (<F2>) or in the 'Extras' menu, if the cursor is positioned on the name of a POU in a text editor
or if the POU box is selected in a graphic editor.
If you are dealing with a POU from a library, then the library manager is called up, and the
corresponding POU is displayed.
This command corresponds to the 'Project' 'Open instance' command.
It is available in the context menu (<F2>) or in the 'Extras' menu, if the cursor is positioned on the
name of a function block in a text editor or if the function block box is selected in a graphic editor.
Enter variables via the "Intellisense Function"
If the option List components is activated in the project options dialog for category 'Editor' , then the
"Intellisense" functionality will be available in all editors, in the Watch- and Recipemanager, in the
Visualization and in the Sampling Trace:
If you insert a dot "." instead of an identifier, a selection box will appear, listing all local and global
variables of the project. You can choose one of these elements and press 'Return' to insert it
behind the dot. You can also insert the element by a double-click on the list entry.
If you enter a function block instance or a structure variable followed by a dot, then a selection box
listing all input and output variables of the corresponding function block resp. listing the structure
components will appear, where you can choose the desired element and enter it by pressing
'Return' or by a double-click.
Insert "struvar." -> the components of structure struct1 will be offered:
If you enter any string and press <Ctrl> + <Space Bar>, a selection box will appear listing all POUs
and global variables available in the project. The list entry starting with the given string will be
selected and can be entered to the program by pressing the <Enter> key.
Offline tooltip for Identifiers
In offline mode in all editors the following applies: If the cursor is placed on an editable identifier, in a
tooltip the identifier's name, the variable class (e.g. VAR_GLOBAL), the data type, the variable's
attributes (e.g. RETAIN), address and comment will be displayed.
Show cross references
If a variable identifier is selected in an editor, then this command "Show cross references" will be
available in the 'Extras' menu or the context menu. It can be used to get a list of all positions within the
project where the variable is used. For information on this cross reference list see: 'Project' 'Show
Documents you may be interested
Documents you may be interested