Delta V Users Benefit From Matlab Computing Emerson
Delta. V Users Benefit From Matlab Computing Emerson Process Management Advanced Control Austin, Texas
Matlab l The language of scientific, technical and financial computing - tens of toolboxes for the application in the following areas; – – – Data acquisition Signal and image processing Control design and analysis Math & and analysis Finance and economics [File Name or Event] Emerson Confidential 27 -Jun-01, Slide 2
Interfacing Matlab to Real World l Data files l I/o boards l Advanced serial ports Gpib Network l OPC l l Expensive to implement, time consuming translation to Simulink required, not easy Easy – Easy to implement – Duplication of functionality avoided – Invisible to Delta. V operation [File Name or Event] Emerson Confidential 27 -Jun-01, Slide 3
Integration of Matlab into Delta. V Integration Station MATLAB OPC Delta. V Workstation Control Module FIC-101 [File Name or Event] Emerson Confidential 27 -Jun-01, Slide 4 OPC Client Matlab Delta. V OPC Server Delta. V Control
Matlab OPC Client l l May be purchased directly from IPCOS TECHNOLOGY/ISMC NV (approx. 500 EU) Christiaan Moons Managing Director ISMC NV Technologielaan 11/0101 B-3001 Leuven Belgium T: +32/16/39. 30. 83 F: +32/16/39. 30. 80 M: +32/495/57. 11. 52 E: Christiaan. moons@ismc. be visit us at: http: //www. ismc. be [File Name or Event] Emerson Confidential 27 -Jun-01, Slide 5
Matlab - Delta. V Transfer Types Delta. V OPC Server Direct Read/Write Read Cache Write Cache Matlab CACHE OPC Client Read/Write Matlab Variable [File Name or Event] Emerson Confidential 27 -Jun-01, Slide 6
Matlab - Delta. V Transfer Features l Direct Read/Write – For transfer of insignificant amount of data (tags) – Speed depends on the actual system load – Maximum speed: scan ~100 msec. For ~10 tags l Cache Read/Write – For transfer of significant amount of data - thousands of tags – Speed is defined by Delta. V server – Current speed: scan ~ 1 sec. [File Name or Event] Emerson Confidential 27 -Jun-01, Slide 7
Synchronizing Matlab Environment • Matlab sleep Exec 1 Sleep Exec 2 Sleep 1 0 t 2 • OPC client sleep - adjusts sleep to keep constant scan Exec 1 0 [File Name or Event] Emerson Confidential 27 -Jun-01, Slide 8 Sleep Exec 2 1 Sleep t 2
Programming - direct device access l Initialize Client (One time) – hr=mx. OPC('open', 'Opc. Delta. V. 1', 'localhost'); l Set Device Mode (One time) – r=mx. OPC('Read. Mode', 'Device'); l Set Scan - Sleep (One time) – mx. OPC('Sleep', 500); l Activate Sleep / Test missing scans (Once per scan) – l Nmissed = mx. OPC('Sleep'); Read Value from the loop (Once per read/write) – [value, hr]=mx. OPC('Read. Double', 'MATLABPID/PID 1/ PV. CV'); [File Name or Event] Emerson Confidential 27 -Jun-01, Slide 9
Programming - Cache Access Extra code: l Set Cache (One time) – hr=mx. OPC('Set. Double. Cache', 'MATLABPID/PID 1/GAIN. CV', 1, 0); l Set Cache Mode – hr=mx. OPC('Read. Mode', 'Cache'); l Read Cache (Once per scan) – hr=mx. OPC('Read. Cache'); [File Name or Event] Emerson Confidential 27 -Jun-01, Slide 10
Test applications l Read/Write control loop parameters l Testing transfer speed for various modes l Prototyping adaptive controller (in process of development) [File Name or Event] Emerson Confidential 27 -Jun-01, Slide 11
Conclusion l l l Integrating Delta. V and Matlab is easy Using Matlab advances Delta. V for easy development and prototyping computationally demanding applications Delta. V with Matlab is a perfect tool for educational and research labs [File Name or Event] Emerson Confidential 27 -Jun-01, Slide 12
- Slides: 12