10 - 2 RTU560 - PLC - Overview

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

Multiprog

Overview

© ABB Group
12 January 2020 | Slide 1
Multiprog
I / O Overview

§ Digital Input § Digital Output


Module § CMU Processor Module

Input

0V

§ 23BE23 § CMU05 § 23BA20

© ABB Group
12 January 2020 | Slide 2
Multiprog
Multitask Overview

§ Task Definitions:
§ System, Cyclic, Default, Event,
§ Up to 16 Tasks (for best performance)
§ Task interval for cyclic task
RTU560: 100 ms
§ Task priority for cyclic tasks
0 = Highest priority (run first)
15 = Lowest priority (run last)
§ Task execution
Read inputs %I
Program POUs
Write outputs %Q

© ABB Group
12 January 2020 | Slide 3
Multiprog
Insert a new Task

§ Right click on the Task folder


§ à Insert Task

© ABB Group
12 January 2020 | Slide 4
Multiprog
Multitask
§ Task Types:
§ Default (Background)
- Executes after all other task complete (calculation …)
§ Cyclic
- Repeats at regular “intervals”
Slow interval for non-critical tasks
Fast interval for machine I/O
To optimize execution
- Priority
Which cyclic task is done 1rst, 2nd, 3 rd
§ Event
- Executes 1 time when condition is met (not supported by RTU)
§ System
- Executes 1 time when the system reaches a given state
Warm start, Cold start, Error

© ABB Group
12 January 2020 | Slide 5
Multiprog
Task Priority

§ Task are executed sequentialy in order of priority:


§ 0 = first, 15 = last
Software does allow up to 31, but don’t o it ! Controller internally execute
hidden tasks behong priority 15. You want the code to execute before these.
So keep it to 15 and below.

§ Similar to prioritizing office work:


1 - Phone call
2 - Emails
3- Daily Report
4- Weekly Report
5- Monthly Report
6- Yearly Goals

© ABB Group
12 January 2020 | Slide 6
Multiprog
Task Example 1
§ Function Block

§ Program

Cyclic Task

§ CMU05_1

Program instance
© ABB Group
12 January 2020 | Slide 7
Multiprog
Task Example 2

§ Program

§ Function Block

§ CMU05_1

§ CMU05_2
§ No Watchdog
supervision
§ Program instance

© ABB Group
12 January 2020 | Slide 8
Multiprog
Watchdog Time

§ Maximum Time allowed for a Task to complete:


§ Use same setting as interval.

à Need to increase Watchdog time


© ABB Group
12 January 2020 | Slide 9
Multiprog
System Tick

§ Fastest possible task interval


§ Set task interval as integer multiple of system tick
§ Recommended to have a cycle time at least 4 times larger
than the system tick.

© ABB Group
12 January 2020 | Slide 10
RTU560 PLC Programming

Why have another Cyclic Task ?

• Optimize code execution

• Critical POU in fast tasks (ex: Hardware I/O)

• Non-time critical POUs in slow tasks (ex: user machine interface)


RTU560 PLC Programming

One task can interrupt another task:

Code can execute in 10 ms, Intervale 20 ms, Priority = 0

Code can execute in 35 ms, Intervale 80 ms, Priority = 5

System ticks 20 ms

Slow task 80 ms
RTU560 PLC Programming

One task can interrupt another task:

Code can execute in 10 ms, Intervale 20 ms, Priority = 1

Code can execute in 35 ms, Intervale 80 ms, Priority = 0

System ticks 20 ms

Watchdog on Fast Task

Fast task 10 ms

Ticks 20 ms
RTU560 PLC Programming

I/O configuration assigned to fast task:

I/O configuration assigned to slow task:

What if inputs change rapidly ?


RTU560 PLC Programming

I/O configuration assigned to fast task:

I/O configuration assigned to slow task:

Inputs not read until I/O updates takes


Task execution begins processor time
Multiprog
POU Execution

§ 3 types of POUs:
§ Program
§ Function
§ Function Block

§ POU = Program Organization Unit

© ABB Group
12 January 2020 | Slide 16
Multiprog
Function comparaison

§ Function Block Definition (IEC 61131-3)

§ Ton_1

§ Instance

© ABB Group
12 January 2020 | Slide 17
Multiprog
Program Data Transfer

§ Compile

§ Download (Upload)

§ Cold/Warm/Hot Start

§ Power-on Sequence

© ABB Group
12 January 2020 | Slide 18
Multiprog
Compile

§ Make (F9): § Rebuild Project (Ctrl+F9):


§ Save Project source § Save Project source
§ Compile changes only § Compile entire project
§ Faster § Slower
§ Normal usage § Periodic usage

© ABB Group
12 January 2020 | Slide 19
Multiprog
Compile Errors

§ Click on Errors tab:

§ Double-Click Errors:
§ Location of the error

§ Fix Error:

§ Make

© ABB Group
12 January 2020 | Slide 20
Multiprog
Download

§ Project Control Button


§ Connection to the RTU560
§ Normal “online” status is green
§ If “error” button appears red, click it to
view/resolve the problem.

§ Close the Resource Window


§ Task cannot be deleted or changed
while open.
§ Avoid errors “com channel is open”

© ABB Group
12 January 2020 | Slide 21
Multiprog
Download

§ Project
§ Machine code
§ Stored in RAM
§ Stop the CPU
§ Boot Project
§ Task cannot be deleted or changed
while open.
§ Avoid errors “com channel is open”
§ Sources § Zip file. zwt

§ Zipped offline project folder


§ Stored to Flash
§ Future upload
§ Download time slow
§ Intellectual property
© ABB Group
12 January 2020 | Slide 22
Multiprog
Diagram

§
Download
Power on

© ABB Group
12 January 2020 | Slide 23

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy