Command ‘Multiple Download’¶
Function: This 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:
.This command opens a dialog box with a list of the applications. In this dialog box, 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>.compile info
in the project directory.
Attention
If a safety controller is inserted below a PLC, then this command can temporarily interrupt the communication links of the safety controller to other safety controllers (via safety network variables), to field devices, and to the development system. The safe field devices and the other safety controller can enter the safe state as a reaction. The connection to the development system is affected only in the case of a safety controller that is connected to the main controller via a fieldbus. For more information, refer to the section “Subordinate Safety Controllers”.
Dialog box ‘Multiple download’
Please select the applications | ![]() |
Move up, Move down | Change of the order of download of the applications. CODESYS downloads the applications 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 | CODESYS performs a syntax check of all selected applications. Then, CODESYS verifies the communication with the PLC for each application before download. |
If an earlier version already exists on the PLC and is different from the current version, then the following options are provided: | |
Attempt online change. If not possible, execute download | Activated by default. If an online change cannot be executed for one of the applications, then CODESYS performs a download. |
Force online change. If not possible, cancel operation | If an online change cannot be performed for (at least) one of the applications, CODESYS does not perform a download, but cancels (for example, if you have executed the command Clean all beforehand). |
Always execute full download | CODESYS 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 from the controller that are not contained in the project | ![]() |
Start all applications after download or online change | ![]() |
Do not release forced variables |
The message Error: Skipped because one or more variables are forced appears for this application in the window Multiple download - Result. |
Note
Note that variables of the type PERSISTENT 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.
See also