Beruflich Dokumente
Kultur Dokumente
WAGO-I/O-PRO CAA
1
DIN IEC 61131-3
Project
Global
Declaration Variables
Code Libraries
All project data is saved in one file with a .pro extension (e.g., filename.pro).
WAGO-I/O-PRO CAA
Message Window
2
Program Organization Units (POUs)
POUs are similar to sub-routines, with PLC_PRG as the main routine. All
POUs are called directly or indirectly from PLC_PRG**
A POU consists of a declaration part and a code part.
The “New POU” dialog box is displayed when a new project is created or
when a new POU is added to the project. The first POU of a new project will
automatically be name PLC_PRG.
Preset PT ET Elapsed
time time
3
POU Type - Programs
function
PROGRAM
1
1) Programs may call functions or function blocks, but not the other way
around
2) Functions may call other functions, but cannot call function blocks
3) Functions blocks may call functions or other function blocks
POU Languages
Language Selection
4
Languages of IEC 61131-3
LD A Step 2 S Empty
ST C Step 3
Function Block
Diagram Ladder Diagram Continuous Function Chart
AND A B C
A C -| |--|/|----------------( )
B
Textual language
Assembler code like
All operations work on a special register (accumulator)
Hard to understand if the program is large
Textual language
High level language
PASCAL, C, FORTRAN like
Best language for programming conditional execution
and loops. (IF, WHILE, FOR, CASE)
5
Function Block Diagram (FBD)
Graphical language
Network oriented
Easy to understand
Consists of blocks and operands
Graphical language
Network oriented
Available for almost all classical PLCs
Good for programming Boolean expressions
6
Sequential function chart (SFC)
Graphical language
Helps you to structure your software
Consist of steps and transitions
The real action of the program is
behind the steps
WAGO-I/O-PRO CAA
7
Retain & Persistent
VAR
myWord: WORD;
END_VAR
VAR RETAIN
myRetainWord: WORD;
END_VAR
VAR PERSISTENT
myPersistentWord: WORD;
END_VAR
VAR RETAIN PERSISTENT
myRetainAndPersistentWord: WORD;
END_VAR
X = value is saved (retained)
Variable Name Software Reset Online Program Hardware
Reset Reset(Cold) Reset(Original) Change Download Reset
myWord X
myRetainWord X X X
myPersistentWord X X X
myRetainAndPersistentWord X X X X X
Reset(Original) – clears the current program from RAM and deletes the boot project.
Visualizations
“Visualizations”
tab selected
8
Resources - Workspace
“Workspace
selected
Save/load options
User information
Editor options
“Resource” tab
selected Desktop options
Color options L..
“Task
Configuration”
item selected
“Resource” tab
selected
Resources - Target
9
Resources - Trace
“Sample Trace”
item selected
“Resource” tab
selected
Displays a sample trace of the
specified variables.
“PLC
Configuration”
item selected
I/O configuration
• Hardware addressing
Addressing of the I/Os as usual:
1. - word addresses
2. - bit addresses
8 DO 8 bit %QX2.0...%QX2.7
10
Resources – PLC Browser
“PLC Brower”
item selected
“Log” item
selected
“Library
Manager” item
selected
11
Resources - Global Variables
“Global
Variables” item
selected
12
Project – Show Call Tree
'Edit' 'Replace'
With this command you search for a certain passage
just as with the command 'Edit' 'Find', and replace it
with another. After you have chosen the command the
dialog box for find and replace appears.
Project – Compare
'Project' ‘Compare‘
This command is used to
compare two projects or to
compare the actual version of
one project with that which was
saved last.
Overview:
In compare mode the actual
project and the reference project
will be presented in a split
window. The names of the POUs,
for which differences have been
found, are marked by color.
The version of the reference
project can be accepted for
single differences or for 'all
equally marked' differences. To
accept means that the version of
the reference project is taken
over to the actual project.
13
Load and save programs
Machinecode/ RAM
Machinecode/ Flash
Sourcecode/ Flash
Machinecode
Sourcecode
Machinecode and
sourcecode can be copied
via FTP without CoDeSys
Notice at load:
User dependent
Only on demand:
User dependent
Sourcecode only
No libraries, visualizations etc.
All Files
Project can be restored from controller
completely.
14
Keyboard combinations
• The TOP 10
F1 Help
F2 Input assistant
F5 Start
<Ctrl>+F7 Write values
F7 Force values
<Ctrl>+<Shift>+F7 Release force
<Shift>+F2 Auto declare
<Alt>+F8 Login
<Ctrl>+F8 Logout
F4 Next error
WAGO Corporation
P.O. Box 1015
Germantown, WI 53022
E-Mail: info.us@wago.com
Internet: www.wago.com
15