Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
TABLE OF CONTENTS
Chapter 4 IEC61131-3 concept...................................................................................................................................................... 4-1
4.1 General Information ............................................................................................................................................................. 4-3
4.1.1 Description .................................................................................................................................................................... 4-3
4.1.2 Reference Documentation............................................................................................................................................. 4-3
4.2 IEC 61131-3, the Concept and Common Elements ............................................................................................................ 4-4
4.2.1 Description .................................................................................................................................................................... 4-4
4.2.2 IEC 61131-3 Overview.............................................................................................................................................. 4-4
4.2.3 The 5 Languages of IEC 61131-3................................................................................................................................. 4-4
4.2.4 IEC 61131-3 Common Elements: Variables ................................................................................................................ 4-6
4.2.5 IEC 61131-3 Standard Datatypes ................................................................................................................................. 4-6
4.3 Software Model and Compliance ........................................................................................................................................ 4-7
4.3.1 Description .................................................................................................................................................................... 4-7
4.3.2 IEC 61131-3 Software Model....................................................................................................................................... 4-7
4.3.3 Control Builder M Professional Software Model ..................................................................................................... 4-7
4.3.4 IEC 61131-3 Standard Functions ................................................................................................................................. 4-7
4.3.5 IEC 61131-3 Standard Functions Blocks ..................................................................................................................... 4-8
4.3.6 IEC 61131-3 POU = Program Organization Unit ........................................................................................................ 4-8
4.4 ABB Extensions and Simplifications of IEC 61131-3........................................................................................................ 4-9
4.4.1 Description .................................................................................................................................................................... 4-9
4.4.2 Configuration ................................................................................................................................................................ 4-9
4.4.3 Program Organization Units (POU) ............................................................................................................................. 4-9
4.4.4 Task Connections........................................................................................................................................................ 4-10
4.4.5 Project Constants......................................................................................................................................................... 4-10
4-1
4-2
www.plcopen.org
4-3
Hardware
IS
Programming Languages
IS
User Guidelines
ANDN
ST
Structured Text
C:= A AND NOT B;
Ladder Diagram
A B
Step 1
FILL
Transition 1
AND
Step 2
-| |--|/|----------------( )
S Empty
Transition 2
Step 3
4-4
One operation such as storing a value in the accumulator register, is allowed per
line
LD
ANDN
ST
Support for
| |---|/|--------------( )
Used in many applications that involve the flow of information or data between
control components
AND
chemistry
4-5
The basic elements are STEPS with ACTION BLOCKS and TRANSITIONS
Step 1
FILL
Transition 1
Step 2
S Empty
Transition 2
Step 3
4-6
Array, structure
Variable
access path
Resource
Task
Task
Task
FB
Function
Block
Program
Program
FB
Program
Program
FB
FB
FB
Variable
Execution
control path
Access path
Communication Function
Task . . . 16
Task
FB
Function
Block
Program
Program
Program
FB
FB
FB
. . . 64
FB
Global variables
Variable
Execution
control path
Access path
Communication Function
Numerical functions
(ADD, SUB, MUL, DIV, MOD, EXPT, ABS, SQRT,
LN, LOG, EXP, SIN, COS, TAN, ASIN, ACOS, ATAN)
4-7
Type conversions
Selection functions
String functions
(LEN, LEFT, RIGHT, MID, CONCAT, INSERT,
DELETE, REPLACE, FIND)
Bistables
Edge detection
(R_TRIG, F_TRIG)
Counters
Timers
4-8
Replicated as:
Comments
Program
Program instance
Main program
Function Block
FB instance
Function
Function
4.4.2 Configuration
The term Configuration is not used in the software model of the Control Builder
Professional. The Resource has also been excluded. Instead the Application replaces
both Configuration and Resource. The Application is discussed below.
4-9
4.4.3.2 Applications
An Application is a code container replacing the combination of Configuration and
Resource of the IEC 61131 Software model. There is however, no direct correlation
between an application and a controller. An application can contain Programs and
Control Modules and these can be downloaded to different controllers independently.
4-10