Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
21
Добавлен:
11.10.2020
Размер:
3.39 Mб
Скачать

130Components of WAGO-I/O-PRO 32

General Online Functions

4.5.13'Edit' 'Previous error'"

Shortcut: <Shift>+<F4>

After the incorrect compilation of a project this command shows the previous error. The corresponding editor window is activated and the incorrect place is selected. At the same time in the message window the corresponding error message is shown.

4.5.14'Edit' 'Macros'

This menu item leads to a list of all macros, which are defined for the project. (For info on generating macros see 'Project' 'Options' 'Macros' ). When an executable macro is selected the dialog 'Process Macro'. The name of the macro and the currently active command line are displayed. The button Cancel can be used to stop the processing of the macro. In that event the processing of the current command will be finished anyway. Then an appropriate message is displayed in the message window and in the log during Online operation: "<Macro>: Execution interrupted by user".

Macros can be executed offline and online, but in each case only those commandes are executed which are available in the respective mode.

4.6 General Online Functions

The available online commands are assembled under the menu item 'Online'. The execution of some of the commands depends upon the active editor.

The online commands become available only after logging in.

Thanks to 'Online Change' functionality you have the possibility of making changes to programs on the running controller. See in this connection 'Online' 'Log-in'

4.6.1 'Online-Change' Functionality

WAGO-I/O-PRO 32 version 2.2supports the ‘Online-Change‘-Functionality.

For the ‘Online-Change‘-Functionality are the following or newer controllerfirmware version necessary.

750-842

Ethernet

09

750-837

CANopen

10

750-806

DeviceNet

04

750-833

Profibus

06

750-804

Interbus

08

750-819

LON

06

With the Modbus controller 750-812, 750-814, 750-815, 750-816 is the ‘Online-Change‘-Functionality not possible.

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

Components of WAGO-I/O-PRO 32

131

General Online Functions

 

 

 

The ‘Online-Change’-functionality has to be activated before starting WAGO- I/O-PRO 32. Open the Windows Menu Start \ Programs \ WAGO-I/O-PRO 32* \ Onlinechange Configuration (* or the folder name you have selected) and select the item Activate Onlinechange. To deactivate the ‘Online- Change’-functionality select the item Deactivate Onlinechange.

Note:

If the ‘Online-Change’-functionality is activated or deactivated for an already compiled project, this project has to be compiled again before loading.

Note:

The ‘Online-Change’-functionality needs twice as much memory area in the controller for the comparison of compiled code.

4.6.2 'Online' 'Login'

Symbol:

Shortcut: <Alt>+<F8>

This command combines the programming system with the PLC (or starts the simulation program) and changes into the online mode.

If the current project has not been compiled since opening or since the last modification, then it is compiled now (as with 'Project' 'Build'). If errors occur during compilation, then WAGO-I/O-PRO 32 does not change into Online mode.

If the current project was changed on the controller since the last download, but not closed, and if the last download information was not deleted with the command 'Project' 'Clear all', then after the command 'Login' a dialog opens with the question: "The program has been changed. Load changes? (Online Change)". By answering Yes you confirm that, on log-in, the modified portions of the project are to be loaded onto the controller. No results in a login without the changes made since the last download being loaded onto the controller. Cancel cancels the command. <Load all> causes the entire project to be reloaded onto the controller.

After a successful login all online functions are available (if the corresponding settings in 'Project' 'Options' category 'Build' have been entered). The current values are monitored for all visible variable declarations.

Use the 'Online' 'Logout' command to change from online back to offline mode.

4.6.3 If the system reports

Error:

"The selected controller profile does not match that of the target system..."

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

132Components of WAGO-I/O-PRO 32

General Online Functions

Check that the target system entered in the target system settings (Resources) matches the parameters entered in 'Online' 'Communications parameters'.

Error:

"Communication error. Log-out has occurred"

Check whether the controller is running. Check whether the parameters entered in 'Online' 'Communications parameters' match those of your controller. In particular, you should check whether the correct port has been entered and whether the baud rates in the controller and the programming system match. If the gateway server is used, check whether the correct channel is set.

Error:

"The program has been modified! Should the new program be loaded?"

The project which is open in the editor is incompatible with the program currently found in the PLC (or with the Simulation Mode program being run). Monitoring and debugging is therefore not possible. You can either choose "No," logout, and open the right project, or use "Yes" to load the current project in the PLC.

Message:

"The program has been changed. Load changes? (ONLINE CHANGE)".

The project is running on the controller. The target system supports 'Online Change' and the project has been altered on the controller with respect to the most recent download or the most recent Online Change. You may now decide whether these changes should be loaded with the controller program running or whether the command should be cancelled. You can also, however, load the entire compiled code by selecting the Load all button.

4.6.4 'Online' 'Logout'

Symbol:

Shortcut <Strg>+<F8>

The connection to the PLC is broken, or, the Simulation Mode program is ended and is shifted to the offline mode.

Use the 'Online' 'Login' command to change to the online mode.

4.6.5 'Online' 'Download'

This command loads the compiled project in the PLC.

If you use C-Code generation, then prior to the download, the C-Compiler is called up, which creates the download file. If this is not the case, then the download file is created during the compiling.

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

Components of WAGO-I/O-PRO 32

133

General Online Functions

 

 

 

If you use C-Code generation, then prior to the download, the C-Compiler is called up, which creates the download file. If this is not the case, then the download file is created during the compilation.

The Download-Information is saved in a file called <projectname>0000000ar.ri , which is used during Online Change to compare the current program with the one most recently loaded onto the controller, so that only changed program components are reloaded. This file is erased by the command 'Project' 'Clear all'.

4.6.6 'Online' 'Run'

Symbol:

Shortcut: <F5>

This command starts the program in the PLC or in Simulation Mode.

This command can be executed immediately after the 'Online' 'Download' command, or after the user program in the PLC has been ended with the 'Online' 'Stop' command, or when the user program is at a break point, or when the 'Online' 'Single Cycle' command has been executed.

4.6.7 'Online' 'Stop'

Symbol:

Shortcut <Shift>+<F8>

Stops the execution of the program in the PLC or in Simulation Mode between two cycles.

Use the 'Online' 'Run' command to continue the program.

4.6.8 'Online' 'Reset'

If you have initialized the variables with a specific value, then this command will reset the variables to the initialized value. All other variables are set at a standard initialization (for example, integers at 0). As a precautionary measure, WAGO-I/O-PRO 32 asks you to confirm your decision before all of the variables are overwritten. The situation is that which occurs in the event of a power failure or by turning the controller off, then on (warm restart).

Use the 'Online' 'Run' command to restart the program.

See also 'Online' 'Reset (original)' und 'Online' 'Reset (cold)'.

4.6.9 'Online' 'Reset (cold)'

This command resets all variables, including RETAIN variables, back to their initialization values. Only persistent variables retain the value that they had before the reset. See in this connection also 'Online' 'Reset' and 'Online' 'Reset Original'

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

Соседние файлы в папке 759-332