Function: The command causes the code generation of the applications contained in the project as well as the loading of the applications to the corresponding controllers.
Call: Menu bar: “Online”
The command opens a dialog with a list of the applications. In this dialog, select
the applications that are to be loaded. Then, CODESYS performs the syntax check of these applications and generates the respective code.
The code is then downloaded to the respective PLC. For each selected application,
CODESYS generates a build log with the name <project name>.<device name>.<application ID>.compileinfo
in the project directory.




NOTICE

If a safety controller is inserted below a controller, then this command can interrupt the communication connections temporarily.
Connections of the safety controller to other safety controllers (via safety network variables), to field devices, and to the development system are affected. The safe field devices or other safety controller can enter the safe state as a reaction. The connection to the development system is affected only when a safety controller that is connected to the main controller via a fieldbus.
For more information, see the "Subordinate Safety Controllers" chapter.
Dialog 'Multiple Download'
“Please select the items to be downloaded” |
|
“Move Up”, “Move Down” |
Change of the order of download of the applications. The applications are downloaded to the PLCs in the order of this list. By default, this list is alphabetically sorted. Parent-child relationships of applications are thereby taken into account. |
“OK” |
Checks the syntax of all selected applications. Afterwards, the communication with the associated controller is verified for each application before the download takes place. |
If an earlier version already exists on the PLC and is different from the current version, then the following options are provided: |
|
“Try to perform an online change. If this is not possible, perform a full download.” |
Activated by default. If an online change cannot be executed for one of the applications, then a download is performed. |
“ Force an online change. If this is not possible, cancel the operation.” |
If an online change cannot be performed for (at least) one of the applications, then no download is performed and the online change is terminated (for example, if you have executed the command “Clean All” beforehand). |
“Always perform a full download.” |
Downloads all parts of the applications to the PLC, regardless of any existing versions. |
For selected applications that do not exist on the PLC yet, CODESYS performs a download automatically to the PLC.
“Delete all applications on the PLC which are not part of the project. ” |
|
“Start all applications after download or online change” |
|
“Do not release forced variables” |
The message “Error: Skipped because one or more variables have been forced” appears for this application in the window “Multiple Download - Result”. |
Note that variables with the key attribute PERSISTENT RETAIN
are not generally initialized. If you change the data layout, however, the persistent
variables are automatically re-initialized.
After completion of the download a listing of all selected applications appears in the download order that you configured. In addition, you are shown information on the success of the download for each application in the “Multiple Download - Result” dialog:
-
“Created”: A new application has been created and downloaded to the controller.
-
“Not changed”: The application which exists on the controller has not been changed.
-
“Online changed”: The application which exists on the controller has been modified by an online change.
-
“Downloaded”: The application which exists on the controller has been replaced by a new created application.
-
“Skipped due to impossible online change”: An online change could not be performed for the application. The application was not changed.
-
“Error”: An error has occurred for this application during download. More details may be displayed.
-
“Cancelled by user”: The operation has been aborted by the user.