Serialization | Iot framework ServerSuperIO tutorial-18. Integrated OPC Client and usage steps. Appendix: 3.5 release and update description ., Iot System Integration

Source: Internet
Author: User

Serialization | Iot framework ServerSuperIO tutorial-18. Integrated OPC Client and usage steps. Appendix: 3.5 release and update description ., Iot System Integration

1. C # Introduction to cross-platform Iot communication framework ServerSuperIO (SSIO)

Serialization | Iot framework ServerSuperIO tutorial 1.4 communication modes and mechanisms.

Serialization | Iot framework ServerSuperIO tutorial 2. service instance configuration parameters

Serialization | Iot framework ServerSuperIO tutorial-3. Device Driver Introduction

Serialization | Iot framework ServerSuperIO tutorial-4. For example, you can develop a device driver that supports both serial and network communication.

Serialization | Iot framework ServerSuperIO tutorial-5. Polling communication mode development and precautions.

Serialization | Iot framework ServerSuperIO tutorial-6. concurrent communication mode development and precautions

Serialization | Iot framework ServerSuperIO tutorial-7. Self-control communication mode development and precautions

Serialization | Iot framework ServerSuperIO tutorial-8. single-instance communication mode development and precautions

Serialization | Iot framework ServerSuperIO tutorial-9. protocol filter to solve multiple packet-related, sticky packet, and redundant data

Serialization | Iot framework ServerSuperIO tutorial-10. Two Methods for continuous transmission of large data streams (such as files)

Serialization | Iot framework ServerSuperIO tutorial-11. Implement device (driver) and device (driver) interaction and cascade control.

Serialization | Iot framework ServerSuperIO tutorial-12. Service Interface Development and bidirectional interaction with the cloud

Serialization | Iot framework ServerSuperIO tutorial-13. Custom View display interface development to meet different display requirements

Serialization | Iot framework ServerSuperIO tutorial-14. Introduction to preparation tools and mounting of device drivers, view drivers, and service instances

Serialization | Iot framework ServerSuperIO tutorial-15. Use of data persistence Interfaces

Serialization | Iot framework ServerSuperIO tutorial-16.OPC Server usage steps

Serialization | Iot framework ServerSuperIO tutorial-17. Support for real-time databases and high-concurrency storage of measurement point data

Update content:
1. added the OPC Client function module. And added the OPC Client service interface.
2. optimized the real-time database interface to support Batch Data Writing and improve execution efficiency.
3. optimized the core code of ServerSuperIO.
4. Complete the configuration tools.
5. Added OPC Server testing tools in the "OPC tools and components" Directory of ServerSuperIO 3.5.

 

Contents

18. Integrate OPC Client and use steps... 2

18.1 overview... 2

18.2 ServerSuperIO OPC Client usage process... 2

18.2.1 OPC server test tool, and create measurement points... 2

18.2.2 use the configuration tool to configure basic information and read measurement points... 3

18.2.3 open the real-time database service... 5

18.2.4 run the UI program or console program... 5

18.3 considerations... 6

18.4 application extension... 7

18.5 video demo... 7

18. Integrate OPC Client and use steps
18.1 Overview

OPC is a protocol that has a C/S structure and is widely used in the industrial field. It briefly introduces the basic situation of OPC in "16. Integrated OPC Server and usage steps. Generally, the OPC Server provides external interfaces for reading data. For example, the device driver of ServerSuperIO can directly write the measured point data to the OPC Server. The OPC Client actively connects to the OPC Server, and read the data information of the server through synchronous, asynchronous, and data change events. OPC Server and OPC Client are many-to-many relationships. OPC Server can provide data sources for multiple OPC clients, and OPC Client can also read data information from multiple OPC servers.

As one way to collect data information, the OPC Client integrates ServerSuperIO with this service. It exists as a service and is different from the hardware data collection method by the device driver. The integration of the OPC Client service only involves the use process and does not involve code development. You only need to configure it to directly Save the read data to the real-time database.

18.2 ServerSuperIO OPC Client use process 18.2.1 OPC server test tool and create measurement points

You can find the OPC Server test tool in the "OPC tool and component \ OPC Server test tool" Directory of ServerSuperIO v3.5. Open the tool to create OPC measurement points and dynamically generate data. For example:

 

18.2.2 use the configuration tool to configure basic information and read measurement points

You need to set the content of the basic configuration menu. The main parameters include: (1) Name of the table written to the real-time database. You can enter an existing table name. (2) set the Data Reading interval, which is applicable to synchronous and asynchronous data reading. (3) set the Data Reading method. When the server data changes, the system automatically triggers the Data Reading event, synchronous data reading, and Asynchronous Data Reading. (4) set whether to save the read data to the real-time database. If you need to save the data, set the configuration information of the real-time database correctly. (5) Whether to enable the OPC Client service. If it is enabled, the host Program Based on ServerSuperIO will have this service, and the secondary development kit will also have this project service.


 

Open the OPC Client configuration menu, read the measurement point data provided by OPC Server according to the hierarchical relationship of service, group, and tag, and save the current configuration information, after the ServerSuperIO main program is started, the data information is automatically read. For example:

Main Program

Real-Time Database

18.3 precautions

If the measurement point created on the OPC Server is named "Random. tag1, then the name saved to the real-time database is changed to "RandomTag1", and ". "removed, mainly considering the compatibility between components.

18.4 application expansion

OPC Client is an independent service component. How can an independent service component be integrated with ServerSuperIO? The framework provides the ServerSuperIO. Service. IService Service interface, and integrates the OPC Client component into the entity class of the IService interface. The ServerSuperIO framework automatically instantiates the IService interface object.

Similar to other services, such as reading data from other data sources, analog output, and LED Display output. The IService interface is defined as follows:

Public interface IService: IServiceConnector, IPlugin {// <summary> // service Key, which must be unique // </summary> string ServiceKey {get ;} /// <summary> /// service name // </summary> string ServiceName {get ;}......}
18.5 video demonstration

1. [serialization] C # communication (Serial Port and network) Framework Design and Implementation

2. [Open Source] C # cross-platform Iot communication framework ServerSuperIO (SSIO) Introduction

2. Overall system construction solution using SuperIO and open-source cross-platform Iot framework ServerSuperIO

3. C # technical route of industrial IoT and integrated system solutions (data sources, data collection, data upload and receiving, ActiveMQ, Mongodb, WebApi, and mobile App)

5. ServerSuperIO Open Source Address: https://github.com/wxzz/ServerSuperIO

Internet of Things & integrated technology (. NET) QQ Group:54256083

: Http://www.bmpj.net/thread-14-1-1.html

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.