You are on page 1of 42

Multiprog

PLC introduction

© ABB Group
13 January 2020 | Slide 1
RTU560 PLC - Introduction

© ABB Group
13 January 2020 | Slide 2
RTU560 PLC – Program Logic controler

© ABB Group
13 January 2020 | Slide 3
RTU560 PLC – Overview

NCC 1 NCC n

Host Interface
Message “virtual” “virtual”
Command Message

_I _Q _I= input variables


ProConOS _Q= output variables

_Q _I

PLC “PLC used”


Command Command Message

Peripheral Bus I/O

© ABB Group
13 January 2020 | Slide 4
RTU560 PLC – Application examples
§ Automatic bus bar switch-over procedure by one command

§ Transformer regulation

§ Peterson coil regulation

§ Load shedding

§ Load distributiuon

§ Control of pumps and of devices sub-RTUs

§ Special control transmission conditions for analogues or counters

§ Special format conversion, (AMI, STI)

© ABB Group
13 January 2020 | Slide 5
RTU560 PLC – IEC61131

Programmable Controllers:

1992: 61131-1 General information


1992: 61131-2 Equipment requirements and tests

1993: 61131-3 Programing Languages

61131-4 User Guidelines


61131-5 Communications
61131-7 Fuzzy control programing
61131-8 Guidelines for the application and
implementation of programing languages

© ABB Group
13 January 2020 | Slide 6
RTU560 PLC – Programing languages

Function Block Diagram (FBD)

Structure Text (ST)

Instruction List (IL)

Ladder diagram (LD)

Sequential Flow Chart (SFC)

© ABB Group
13 January 2020 | Slide 7
RTU560 PLC – Programing languages
Instruction List (IL) Structured Text (ST)
LD A
ANDN B C:= A AND NOT B
ST C

Function Block Diagram (FBD) Ladder Diagram (LD)

AND A B C
A C -| |--|/|----------------( )
B

Sequential Flow Chart (SFC)

© ABB Group
13 January 2020 | Slide 8
RTU560 PLC – Highlights of IEC61131-3
§ Programming is independent of a specific hardware
manufacturer or a specific sytem supplier.

§ Declaration of variables is similar to the variable declaration


of higher programming languages.

§ Declaration of data types

§ Global and local data

§ Graphical / symbolic programming

§ Online debugging / testing

© ABB Group
13 January 2020 | Slide 9
RTU560 PLC – ProConOS and MULTIPROGwt

• ProConOS
Programmable Controller Operating System
PLC-operating system, runs on the CMUs of RTU560
(contents of RTU560 Firmware).

• ProConOS
Programming system for “programmable logical controller
(PLC) “according standard IEC61131-3
runs under Windows.

© ABB Group
13 January 2020 | Slide 10
RTU560 PLC – ProConOS

• ProConOS
Programmable Controller Operating System
running on a RTU560 CMU
(included in the firmware, eg CMR02, CMR01).

• ProConOS
Delivers the following services for the specific hardware platform.

Loading of PLC programs

Runtime environment for the PLC programs

Debug function for testing and commissioning

© ABB Group
13 January 2020 | Slide 11
RTU560 PLC – MULTIPROGwt

• MULTIPROG wt
Programming and debug system according to IEC61131-3 standard
running on Windows.

• MULTIPROG wt
consists of a platform independent kernel for programming in
different program-languages according to IEC61131-3.
- Function Block Diagram (FBD)
- Instruction List (IL)
- Ladder Diagram (LD)
- Structure Text (ST)
- Sequential Flow Chart (SFC)

The independent kernel is completed by interfaces to the vendor


specific PLC (eg. RTU560)

© ABB Group
13 January 2020 | Slide 12
RTU560 PLC – License

© ABB Group
13 January 2020 | Slide 13
RTU560 PLC – License

© ABB Group
13 January 2020 | Slide 14
RTU560 PLC – License
• MULTIPROG wt V5:
A PC license is required

© ABB Group
13 January 2020 | Slide 15
RTU560 PLC – Structure elements: Project Tree

© ABB Group
13 January 2020 | Slide 16
RTU560 PLC – configuration elements

© ABB Group
13 January 2020 | Slide 17
RTU560 PLC – Configuration example

Configuration

Resource 1 Resource 2
(PLC function 1) (PLC function 2)

Task 1 Task 2 Task 1

© ABB Group
13 January 2020 | Slide 18
RTU560 PLC – Configuration, Resource, Task

Configuration
RTUtil500
Hardware tree

Ressource (PLC function)


Task

© ABB Group
13 January 2020 | Slide 19
RTU560 PLC – Configuration, Resource, Task

Configuration

Web-server
Hardware tree

Ressource (PLC function)


Task

© ABB Group
13 January 2020 | Slide 20
RTU560 PLC – Configuration, Resource, Task

MULTIPROGwt
Project tree

Configuration
Ressource (PLC function)
Task

© ABB Group
13 January 2020 | Slide 21
RTU560 PLC – Configuration, Variables, Task
§ View Local Variables

§ View Global Variables (new Alarm group)

© ABB Group
13 January 2020 | Slide 22
RTU560 PLC – Variables usage, Task

POU 1 Variables: POU 1 Global Variables


Name Usage
G_Alarm1 VAR_GLOBAL
Name Usage G_Alarm2 VAR_GLOBAL
Alarm1 VAR Baden1_SEV16_I VAR_GLOBAL
Alarm2 VAR
G_Alarm1 VAR_EXTERNAL
G_Alarm2 VAR_EXTERNAL

POU 2 Variables: POU 2

Name Usage
Alarm1 VAR
Alarm2 VAR
G_Alarm1 VAR_EXTERNAL
Baden1_SEV16_I VAR_EXTERNAL

© ABB Group
13 January 2020 | Slide 23
RTU560 PLC – POUs: Worksheets

Every POU consists of three different types of worksheets:


These three worksheets are represented graphically by<
Icons in the project tree:

1. In the description worksheet comments can be added


for documentation.

2. In the variable worksheet all variables are going to be used.

3. The code body worksheet contains the instructions


(depending on the defined programming language).

© ABB Group
13 January 2020 | Slide 24
RTU560 PLC – POUs: Worksheet example

© ABB Group
13 January 2020 | Slide 25
RTU560 PLC – POUs: Programs

• Program are POUs which contain


a logical combination of functions and function blocks
according to the requirements of the PLC application.

• The behaviour and the use of programs


are similar to function blocks (see below)

• Within a program, it is possible to call functions and function


blocks. Recursive call are not allowed.

© ABB Group
13 January 2020 | Slide 26
RTU560 PLC – POUs: Programs
§ Programs must be associated to tasks

© ABB Group
13 January 2020 | Slide 27
RTU560 PLC – POUs: Function block

Function blocks are POU with:

• Multiple input/output parameters and internal memory.

• Within a function block it is possible to call another


function block or functions. Recursive call are not allowed

• IEC61131-3 lists different type of standard function blocks:


- Bistable elements SR, RS
- Edge detection function blocks R_TRIG, F_TRIG
- Counters CTU, CTD
- Timer function blocks TON, TOF

• The value returned by a function block depends on its functions


and of the value of its internal memory.

© ABB Group
13 January 2020 | Slide 28
RTU560 PLC – Functions

• IEC61131-3 lists different types of standard functions


(Examples):

- Type conversion functions INT_TO_REAL


- Numerical functions ABS, LOG
- Standard arithmetic functions ADD, MUL
- Bit-string functions AND, SHL
- Selection and comparison functions SEL, GE
- Character string functions RIGHT INSERT
- Functions of time data types SUB with data type TIME

© ABB Group
13 January 2020 | Slide 29
RTU560 PLC – Help on (standard) FB/FU

© ABB Group
13 January 2020 | Slide 30
RTU560 PLC – Data types

Data types defines:


- The initial value,
- Range of possible values and
- The number of bits

IEC61131-3 defines three different data types:


- Basic data types
- Generic data types
- User defined data types,

© ABB Group
13 January 2020 | Slide 31
RTU560 PLC – Basic data types (extract)

© ABB Group
13 January 2020 | Slide 32
RTU560 PLC – Generic data types

Generic data types includes groups of basic data types.


• They are called e.g. ANY_BIT or ANY_INT (see IEC61131-3 p32)

• ANY_INT includes e.g. the elementary data types


INT, SINT, DINT, UINT, USINT, and UDINT.

• Generic data types are necessary to define what kind of basic


data types can be connected to inputs or outputs of functions

• If a function can be connected with ANY_INT, it means that


variables of the data types INT, SINT, DINT, UINT, USINT, and
UDINT, can be connected.

• ANY_NUMBER includes ANY_INT and ANY_REAL

© ABB Group
13 January 2020 | Slide 33
RTU560 PLC – User defined data types

• User defined data types are data types


which can be declared by the user.

• They have to be defined with a


TYPE..END_TYPE declaration

• User defined data types can be structures or arrays

• User defined data types are declared

• In the data type worksheet in the subtree “Data Types”

© ABB Group
13 January 2020 | Slide 34
RTU560 PLC – Libraries

• Libraries allow to reuse programs, function blocks, functions


and user defined datatypes by various projects.

• Libraries are placed in a separate branch project tree.

• Firmware Libraries contains POEs created by the producer of


the PLC-system. The file-extension is *.fwl.

• User Libraries can be created by the user. To reuse POEs


from previous projects. The file-extension is *.mwt.
( User libraries of projects before release 1.3.6.14 have
file-extension *.pwt.

© ABB Group
13 January 2020 | Slide 35
RTU560 PLC – Libraries

© ABB Group
13 January 2020 | Slide 36
RTU560 PLC – User defined data types: RTU Library

© ABB Group
13 January 2020 | Slide 37
RTU560 PLC – IEC61131-3 naming convention

Signalnames at the interface RTUtil à MULTIPROGwt:

© ABB Group
13 January 2020 | Slide 38
RTU560 PLC – IEC61131-3 naming convention

Interface RTUtil à MULTIPROGwt:

© ABB Group
13 January 2020 | Slide 39
RTU560 PLC – Virtual / Logical and real commands

© ABB Group
13 January 2020 | Slide 40
RTU560 PLC – Virtual / Logical signals and used data points

© ABB Group
13 January 2020 | Slide 41

You might also like