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.

4 - The Individual Components<br />

In order to go to the location in the editor where a certain breakpoint was set, highlight the respective<br />

breakpoint from the list of set breakpoints and press the Go to button.<br />

Breakpoint Editing Dialog Box<br />

To set or delete breakpoints, you can also use the 'Online' 'Toggle Breakpoint' command.<br />

'Online' 'Step over'<br />

Symbol:<br />

'Online' 'Step in'<br />

Shortcut: <br />

This command causes a single step to execute. If a POU is called, the program stops after its<br />

execution. In SFC a complete action is executed.<br />

If the present instruction is the call-up of a function or of a function block, then the function or function<br />

block will be executed completely. Use the 'Online' 'Step In' command, in order to move to the first<br />

instruction of a called function or function block.<br />

If the last instruction has been reached, then the program will go on to the next instruction in the POU.<br />

Shortcut: <br />

A single step is executed. The program is stopped before the first instruction of a called POU.<br />

If necessary, there will be a changeover to an open POU.<br />

If the present position is a call-up of a function or of a function block, then the command will proceed<br />

on to the first instruction in the called POU.<br />

In all other situations, the command will function exactly as 'Online' 'Step Over'.<br />

'Online' 'Single Cycle'<br />

Shortcut: +<br />

This command executes a single <strong>PLC</strong> Cycle and stops after this cycle.<br />

This command can be repeated continuously in order to proceed in single cycles.<br />

The Single Cycle ends when the 'Online' 'Run' command is executed.<br />

'Online' 'Write values'<br />

Shortcut: +<br />

With this command, one or more variables are set – one time only! – to user defined values at the<br />

beginning of a cycle. (see 'Online' 'Force values' for setting permanently)<br />

The values of all single-element variables can be changed, so long as they are also visible in<br />

Monitoring.<br />

CoDeSys V2.3 4-55

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

Saved successfully!

Ooh no, something went wrong!