10 - 2 RTU560 - PLC - Overview
10 - 2 RTU560 - PLC - Overview
10 - 2 RTU560 - PLC - Overview
Overview
© ABB Group
12 January 2020 | Slide 1
Multiprog
I / O Overview
Input
0V
© 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
© 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
© 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
© ABB Group
12 January 2020 | Slide 10
RTU560 PLC Programming
System ticks 20 ms
Slow task 80 ms
RTU560 PLC Programming
System ticks 20 ms
Fast task 10 ms
Ticks 20 ms
RTU560 PLC Programming
§ 3 types of POUs:
§ Program
§ Function
§ Function Block
© ABB Group
12 January 2020 | Slide 16
Multiprog
Function comparaison
§ 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
© ABB Group
12 January 2020 | Slide 19
Multiprog
Compile Errors
§ Double-Click Errors:
§ Location of the error
§ Fix Error:
§ Make
© ABB Group
12 January 2020 | Slide 20
Multiprog
Download
© 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
§
Download
Power on
© ABB Group
12 January 2020 | Slide 23