OPC Server/Client Demo

OPC toolbox and Kepserver (Server/Client Program)
1.9K Downloads
Updated 28 May 2010

View License

For this program to run, you will need to download Kepserver found at http://www.kepware.com/Products/products_OPCServers.asp
After you have download and installed the KepServer, use the demo.opf file included in the OPC.zip as the default project in Kepserver.
Then run the opc_demo.m file, you will see how Matlab as an OPC Client communicates with this OPC server.
You can try different servers as well, such as Matrikon, Iconics, etc, but you will have to create your own server configuration files.
Next you can try connecting any PLC which are supported by Kepserver and try out PLC communication through Matlab.
There is also an inbuilt OPC Client in Kepserver which will reflect the same results as on this program.

The boolean output i.e the RED/GREEN toggle button o/p can be viewed on the OPC Client of Kepserver

Cite As

Vihang Patil (2024). OPC Server/Client Demo (https://www.mathworks.com/matlabcentral/fileexchange/27788-opc-server-client-demo), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Industrial Communication Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

updated file

1.0.0.0