24.01.2015 Views

PLC Programming

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Watch and Receipt Manager...<br />

The scaling of the chart (microseconds per Pixel) can be adjusted by the aid of a selection list at<br />

Scaling [µs/Pixel].<br />

Additional online functions in the context menu resp. in the 'Extras' menu:<br />

Task Configuration'Extras' 'Set Debug Task'<br />

For targets with preemptive multitasking this command is available to define a debugging task in<br />

Online mode in the Task Configuration. The text [DEBUG] will appear after the set task.<br />

The debugging capabilities then will apply only to this task. In other words, the program only stops at a<br />

breakpoint if the program is gone through by the set task.<br />

Task Configuration t'Extras' 'Enable / disable task'<br />

With this command the task which is currently marked in the task configuration can be disabled or reenabled.<br />

A disabled task will not be regarded during processing of the program. In the configuration tree it<br />

will be indicated by a greyed entry.<br />

'Extras' 'Callstack'<br />

If the program is stopped at a breakpoint during debugging, then this command can be used to show<br />

the callstack of the corresponding POU. For this purpose the debug task must be selected in the task<br />

configuration tree of. The window 'Callstack of task ' will open. There you get the name of<br />

the POU and the breakpoint position (e.g. "prog_x (2)" for line 2 of POU prog_x) . Below the complete<br />

call stack is shown in backward order. If you press button 'Go To', the focus will jump to that position<br />

in the POU which is currently marked in the callstack.<br />

6.8 Watch and Receipt Manager...<br />

With the help of the Watch and Receipt Manager you can view the values of selected variables. The<br />

Watch and Receipt Manager also makes it possible to preset the variables with definite values and<br />

transfer them as a group to the <strong>PLC</strong> ('Write Receipt'). In the same way, current <strong>PLC</strong> values can be<br />

read into and stored in the Watch and Receipt Manager ('Read Receipt'). These functions are helpful,<br />

for example, for setting and entering of control parameters.<br />

All watch lists created ('Insert' 'New Watch List') are indicated in the left column of the Watch and<br />

Receipt Manager. These lists can be selected with a mouse click or an arrow key. In the right area of<br />

the Watch and Receipt Manager the variables applicable at any given time are indicated.<br />

In order to work with the Watch and Receipt Manager, open the object for the<br />

Manager in the Resources register card in the Object Organizer.<br />

Watch and Receipt<br />

Watch and Receipt Manager in the Offline Mode<br />

In Offline Mode, you can create several watch lists in the Watch and Receipt Manager using the<br />

'Insert' 'New Watch List'.<br />

For inputting the variables to be watched, you can call up a list of all variables with the Input Assistant,<br />

or you can enter the variables with the keyboard, according to the following notation:<br />

.<br />

With global variables, the POU Name is left out. You begin with a point. The variable name can, once<br />

again, contain multiple levels. Addresses can be entered directly.<br />

Example of a multiple-level variable:<br />

<strong>PLC</strong>_PRG.Instance1.Instance2.Structure.Componentname<br />

Example of a global variable:<br />

.global1.component1<br />

6-40 CoDeSys V2.3

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

Saved successfully!

Ooh no, something went wrong!