Component based software
description
Transcript of Component based software
Engineering Cybernetics , NTNU
1
Component based software
• Principle• Technologies• Examples
Lars Imsland, NTNU
Engineering Cybernetics , NTNU
2
Principle
• “Build software from parts, not from scratch”
File Edit Window HelpSales Forecast
File Edit Window HelpLog Service Call
Cancel ApplyOK
File Edit Window HelpCustom Select
Cancel ApplyOK
Post Code
Select
File Edit Window Help
Sales Report
Sales Report: August 1996Territory: South EastUn its sold : 13,000Net Revenue $953,000Direc t Costs $450,000CommentsIncreased rainfall levels during June and Julycaused a surge in deman d for watering robots.Sales are up !
Cancel ApplyOK
7349
Cylinder head gasket setfor Ford Mercury Sable
$27.90
File Edit Window Help
Package PackageNewBuild
NewBuild
Workflow/Assembly
Component Delivery
Componentware
Legacy
Engineering Cybernetics , NTNU
3
Advantages
• Reuse• Pick the best components (“off-the
shelf”-components)• Use different languages• Easy upgrade (precompiled
components)
Engineering Cybernetics , NTNU
4
Technologies
• Microsoft COM (DCOM/COM+)• CORBA
– A specification, not implementation (OMG)– Platform independent
• Javabeans– The component model for Java
Engineering Cybernetics , NTNU
5
Microsoft COM
• A specification and implementation• Microsoft specific• Most used• Network transparent (DCOM)• Communication specified with interfaces
Engineering Cybernetics , NTNU
6
OPC - what is it?
• OPC is a specification that sets a standard for integration of real-time devices, PLCs or DCSs with business- or plant- applications
• OPC is based on COM– OPC is a set of COM interfaces
• OPC is network transparent
Engineering Cybernetics , NTNU
7
OPC specifications
• Data access (v2.0)• Alarms and events• Historical data access• Batch• Windows CE
Engineering Cybernetics , NTNU
8Laboratory:
Generalsimulator
Simulationmodel
OPC Server Interface
Communication network
OPC Client Interface
Controller
Estimator
MMI
WEB
Specification,
Criteria,
Reference,
Supervision
Industrial plant:
Communication network
OPC Server Interface
OPC Client Interface
Controller
Estimator
MMI
WEB
Specification,
Criteria,
Reference,
Supervision
Process Control System
IndustrialPlant
Engineering Cybernetics , NTNU
9
Physical Process
• Refrigeration process• Well known• Suitable for different control strategies• Suitable for modeling and identification• Well instrumented (20 measurements, 4
controls)
Engineering Cybernetics , NTNU
10
Physical Process II
Expansionvalve
EvaporatorCondenser
Compressor
MMotor
Engineering Cybernetics , NTNU
11
Communication architecture
PLC
Ethernet
OPC ClientControllerSupervisor
OPC Data Server (NT)PLC softwareLocal MMI
Web-browsersomewhere onthe internet
APIS/SIPPrediktor AS
“Home-made” components
WinCCSiemens
S7-400Siemens
Netscape,Internet
Explorer,etc.