Herunterladen Inhalt Inhalt Diese Seite drucken

A Small Ecolog Codesys Project As A Start; Description; The First Step - IFM Electronic ecomot mobile R 360 Serie Starterset-Handbuch

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

3.2.

A small ecolog CoDeSys project as a start

Description

This chapter will describe a short project demonstrating the basic steps in
CoDeSys. The processes are more or less described like a "recipe".
Task
A lamp C is to be ON when two switches A and B are closed. This really simple
system can be shown as in Figure 32.
Figure 32: Problem
CoDeSys is now to
implement and
visualise this system.

The first step

The first steps usually are as follows:
Start CoDeSys
Open an existing project or start a new one
For a new project: Integrate search path (directories), libraries and
hardware configuration
Starting a new
To start a new project select option 'File' 'New' or alternatively click on the
project
button
Target system
Usually a new object is added via the menu.
and PLC_PRG
The main POU PLC_PRG is of particular importance. For a new project
PLC_PRG should always be added after parameter setting of the target system
as the next step. Therefore the windows 'Target system settings' and then
'New POU' with the preset PLC_PRG open automatically when a new project is
started. FBD is already set as the language.
The setting of the target system is not to be shown here once again. Those who
find it difficult should study pages 2-7 et seqq. Below we will describe
PLC_PRG in more detail.
R
. This step was already described in 2.4, page 2-7.
The start
3-3

Werbung

Kapitel

Inhaltsverzeichnis
loading

Inhaltsverzeichnis