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

42WAGO-I/O-PRO 32 V2.2 Overview

Debugging, Online Functions

information is transmitted through this line, this POU will be evaluated completely normally.

Starting from such an EN POU, you can create networks similar to FBD.

x Example of a LD network with an EN POU

2.5 Debugging, Online Functions

2.5.1 Sampling Trace

The Sampling Trace allows you to trace the value sequence of variables, depending upon the so-called trigger event. This is the rising edge or falling edge of a previously defined Boolean variable (trigger variable). WAGO-I/O- PRO 32 permits the tracing of up to 20 variables. 500 values can be traced for each variable.

2.5.2 Debugging

The debugging functions of WAGO-I/O-PRO 32 make it easier for you to find errors.

In order to debug, run the command 'Project' 'Options' and in the dialog box that pops up under Build options select activate option Debugging.

2.5.3 Breakpoint

A breakpoint is a place in the program at which the processing is stopped. Thus it is possible to look at the values of variables at specific places within the program.

Breakpoints can be set in all editors. In the text editors breakpoints are set at line numbers, in FBD and LD at network numbers, in CFC at POUs and in SFC at steps. No breakpoints can be set in function block instances.

2.5.4 Single step

Single step means:

In IL: Execute the program until the next CAL, LD or JMP command.

In ST: Execute the next instruction.

In FBD, LD: Execute the next network.

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

WAGO-I/O-PRO 32 V2.2 Overview

43

Debugging, Online Functions

 

 

 

In SFC: Continue the action until the next step.

By proceeding step by step you can check the logical correctness of your program.

2.5.5 Single Cycle

If Single cycle has been chosen, then the execution is stopped after each cycle.

2.5.6 Change values online

During operations variables can be set once at a certain value (write value) or also described again with a certain value after each cycle (force value). In online mode one also can change the variable value by double click on the value. By that boolean variables change from TRUE to FALSE or the other way round, for each other types of variables one gets the dialog Write Variable xy, where the actual value of the variable can be edited.

2.5.7 Monitoring

In Online mode, all displayable variables are read from the controller and displayed in real time. You will find this display in the declarations and program editor; you can also read out current values of variables in the watch and receipt manager and in a visualization. If variables from instances of function blocks are to be monitored, the corresponding instance must first be opened.

In monitoring VAR_IN_OUT variables, the de-referenced value is output.

In monitoring pointers, both the pointer and the de-referenced value are output in the declaration portion. In the program portion, only the pointer is output:

+ --pointervar = '<'pointervalue'>'

POINTERs in the de-referenced value are also displayed accordingly. With a simple click on the cross or a double-click on the line, the display is either expanded or truncated.

x Example for Monitoring of Pointers

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

44WAGO-I/O-PRO 32 V2.2 Overview

Debugging, Online Functions

In the implementations, the value of the pointer is displayed. For dereferencing, however, the de-referenced value is displayed.

Monitoring of ARRAY components: In addition to array components indexed by a constant, components are also displayed which are indexed by a variable:

anarray[1] = 5

anarray[i] = 1

If the index consists of an expression (e.g. [i+j] or [i+1]), the component can not be displayed.

2.5.8 Simulation

During the simulation the created PLC program is not processed in the PLC, but rather in the calculator on which WAGO-I/O-PRO 32 is running. All online functions are available. That allows you to test the logical correctness of your program without PLC hardware.

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

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