24.01.2015 Views

PLC Programming

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

General Online Functions...<br />

'Edit' 'Macros'<br />

This menu item leads to a list of all macros, which are defined for the project. (For info on generating<br />

macros see 'Project' 'Options' 'Macros' ). When an executable macro is selected the dialog 'Process<br />

Macro'. The name of the macro and the currently active command line are displayed. The button<br />

Cancel can be used to stop the processing of the macro. In that event the processing of the current<br />

command will be finished anyway. Then an appropriate message is displayed in the message window<br />

and in the log during Online operation: ": Execution interrupted by user".<br />

Macros can be executed offline and online, but in each case only those commandes are executed<br />

which are available in the respective mode.<br />

4.6 General Online Functions...<br />

'Online' 'Login'<br />

The available online commands are assembled under the menu item 'Online'. The execution of some<br />

of the commands depends upon the active editor.<br />

The online commands become available only after logging in.<br />

Thanks to 'Online Change' functionality you have the possibility of making changes to programs on<br />

the running controller. See in this connection 'Online' 'Log-in'.<br />

Symbol:<br />

Shortcut: +<br />

This command combines the programming system with the <strong>PLC</strong> (or starts the simulation program)<br />

and changes into the online mode.<br />

If the current project has not been compiled since opening or since the last modification, then it is<br />

compiled now (as with 'Project' 'Build'). If errors occur during compilation, then CoDeSys does not<br />

change into Online mode.<br />

If the current project was changed on the controller since the last download, but not closed, and if the<br />

last download information was not deleted with the command 'Project' 'Clear all', then after the<br />

command 'Login' a dialog opens with the question: „The program has been changed. Load changes<br />

(Online Change)". By answering Yes you confirm that, on log-in, the modified portions of the project<br />

are to be loaded onto the controller. No results in a log-in without the changes made since the last<br />

download being loaded onto the controller. Cancel cancels the command. causes the<br />

entire project to be reloaded onto the controller.<br />

Please regard: Online Change is not possible after modifications in the Task or <strong>PLC</strong> Configuration, after inserting<br />

a library and after performing 'Project' 'Clean all' (see below). Online Change does not cause a reinitialization<br />

of the variables, thus modifications of the initialization values will not be regarded !<br />

Retain variables keep their values when an Online Change is done, they won't do that at a redownload<br />

of the project (see below, 'Online' 'Download').<br />

After a successful login all online functions are available (if the corresponding settings in 'Project'<br />

'Options' category 'Build' have been entered). The current values are monitored for all visible variable<br />

declarations.<br />

Use the 'Online' 'Logout' command to change from online back to offline mode.<br />

If the system reports<br />

Error:<br />

"The selected controller profile does not match that of the target system..."<br />

Check that the target system entered in the target system settings (Resources) matches the<br />

parameters entered in 'Online' 'Communications parameters'.<br />

Error:<br />

„Communication error. Log-out has occurred"<br />

4-52 CoDeSys V2.3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!