17.02.2013 Views

Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

4.7 Programming Using CoDeSys<br />

114<br />

Programming<br />

The sections below explain some basic details you need<br />

to know to use CoDeSys for writing your user programs.<br />

4.7.1 Variables/Addresses<br />

All memory cells that can be addressed by the user<br />

program for signal processing or data storage are referred<br />

to as variables. There are two basic types of variables:<br />

� Variables with a set address:<br />

These variables are inputs, outputs or internal<br />

memory cells of the control unit which can be directly<br />

accessed by the user program.<br />

� External PROFIBUS operands:<br />

These variables are either declared locally in a<br />

module's declaration section, or globally in the list of<br />

global variables. CoDeSys defines the address in the<br />

controller when the variables are "interpreted".

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

Saved successfully!

Ooh no, something went wrong!