Control-ControlProgramming09

Control-ControlProgramming09 - Control Programming version...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Control Programming version 1.0 FC1 : V1, V2, M1 FC2 : V1, V2, M2 LC1: V1, V8, V2, M1 LC2: V1, V2, M2 TC2: V7 TC1: V5 PC1: V6, V7, V8 LC3: V1, V2, V3, SV1, M3, M4 FC3: V3, M3 FC4: SV1 Process from previous class.. How do these controllers influence the valves and motors? What is the sequence of actions? What happens in an emergency? What more do we need? Specify with a control program! What is a control program? A detailed procedure identifying what every valve should be doing under each possible condition. A computing language for expressing control relationships Can be discrete (on/off or high/medium/low) or continuous (open % from 0% to 100%) Control Program Languages? Control specific languages : Ladder logic, Structured text, + many proprietary versions General computing languages : Basic, C, Pascal, and less commonly C++, Java, and Python Here we will use a composite pseudo code that has most of the features without the syntax issues. Control Programming Syntax IF.. THEN .. ELSE CASE WHILE GOTO ALARM open closed Control Programming Syntax IF.. THEN .. ELSE IF T>Tset+2: open v1 ELSE: close v1 IF T>Tset+2: open v1 ELSE IF T<Tset-2: close v1 indent defines a sub block : starts a sub block ELSE IF allows a series of conditionals Tset Tset-2 Tset+2 time time Problem: Equals implies exactly equal to a controller. Thus temp=90C is interpreted as temp=90.0000000C at one of the sampled times which wont happen! Solution : Use >, <, , or instead of = CASE: alternate syntax that can be cleaner than many IF.. THEN statements CASE: T>Tset+2: v2=v2+0.1 T>Tset +1: v2=v2+0.05 T<Tset-1: v2=v2-0.05 T<Tset-2: v2=v2-0.1 IF T>Tset+1: IF T>Tset+2: v2=v2+0.1 ELSE: v2=v2+0.05 ELSE IF T<Tset-1: IF T<Tset-2: v2=v2-0.1 ELSE: v2=v2-0.05 indent note nested indents Tset Tset-2 Tset+2 WHILE: Creates loops for things that take an unknown number of iterations....
View Full Document

This note was uploaded on 05/10/2009 for the course CHEG 4133 taught by Professor Fotuoh during the Spring '09 term at Prairie View A & M.

Page1 / 29

Control-ControlProgramming09 - Control Programming version...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online