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.

Debugging, Online Functions...<br />

Monitoring<br />

In Online mode, all displayable variables are read from the controller and displayed in real time. You<br />

will find this display in the declarations and program editor; you can also read out current values of<br />

variables in the watch and receipt manager and in a visualization. If variables from instances of<br />

function blocks are to be monitored, the corresponding instance must first be opened.<br />

In monitoring VAR_IN_OUT variables, the de-referenced value is output.<br />

In monitoring pointers, both the pointer and the de-referenced value are output in the declaration<br />

portion. In the program portion, only the pointer is output:<br />

+ --pointervar = ''<br />

POINTERs in the de-referenced value are also displayed accordingly. With a simple click on the cross<br />

or a double-click on the line, the display is either expanded or truncated.<br />

Example for Monitoring of Pointers<br />

In the implementations, the value of the pointer is displayed. For de-referencing, however, the dereferenced<br />

value is displayed.<br />

Monitoring of ARRAY components: In addition to array components indexed by a constant,<br />

components are also displayed which are indexed by a variable:<br />

anarray[1] = 5<br />

anarray[i] = 1<br />

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

2-24 CoDeSys V2.3

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

Saved successfully!

Ooh no, something went wrong!