• 大小: 15.52MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-16
  • 语言: C#
  • 标签: 工控  组态  开源  

资源简介

C# 工控类开源组态软件,涉及到西门子、modbus rtu、TCP等通讯驱动

资源截图

代码片段和文件信息

using System.ServiceModel;
using System.ServiceProcess;

namespace BatchCoreService
{
    public partial class BatchCoreService : Servicebase
    {
        public ServiceHost serviceHost = null;
        public BatchCoreService()
        {
            InitializeComponent();
        }

        protected override void onstart(string[] args)
        {
            if (serviceHost != null)
            {
                serviceHost.Close();
            }

            // Create a ServiceHost for the CalculatorService type and 
            // provide the base address.
            serviceHost = new ServiceHost(typeof(DAService));

            // Open the ServiceHostbase to create listeners and start 
            // listening for messages.
            serviceHost.Open();
        }

        protected override void onstop()
        {
            if (serviceHost != null)
            {
                serviceHost.Close();
                serviceHost = null;
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-10-03 08:31  SharpSCADA-master\
     文件          65  2017-10-03 08:31  SharpSCADA-master\.gitattributes
     文件         104  2017-10-03 08:31  SharpSCADA-master\.gitignore
     目录           0  2017-10-03 08:31  SharpSCADA-master\Document\
     文件      500736  2017-10-03 08:31  SharpSCADA-master\Document\设计流程.doc
     文件      815104  2017-10-03 08:31  SharpSCADA-master\Document\部署流程.doc
     文件        7631  2017-10-03 08:31  SharpSCADA-master\LICENSE
     文件        4512  2017-10-03 08:31  SharpSCADA-master\README.md
     目录           0  2017-10-03 08:31  SharpSCADA-master\SCADA\
     目录           0  2017-10-03 08:31  SharpSCADA-master\SCADA\DataConfig\
     文件         518  2017-10-03 08:31  SharpSCADA-master\SCADA\DataConfig\client.xml
     文件          88  2017-10-03 08:31  SharpSCADA-master\SCADA\DataConfig\host.cfg
     文件         266  2017-10-03 08:31  SharpSCADA-master\SCADA\DataConfig\server.xml
     目录           0  2017-10-03 08:31  SharpSCADA-master\SCADA\Database\
     文件        8529  2017-10-03 08:31  SharpSCADA-master\SCADA\Database\Receiving1.csv
     文件        2612  2017-10-03 08:31  SharpSCADA-master\SCADA\Database\Receving2.csv
     文件     1788416  2017-10-03 08:31  SharpSCADA-master\SCADA\Database\db2008.bak
     文件     5767168  2017-10-03 08:31  SharpSCADA-master\SCADA\Database\db2014.bak
     文件       32518  2017-10-03 08:31  SharpSCADA-master\SCADA\Database\script.sql
     文件       24568  2017-10-03 08:31  SharpSCADA-master\SCADA\Database\test.opf
     目录           0  2017-10-03 08:31  SharpSCADA-master\SCADA\Example\
     文件      124928  2017-10-03 08:31  SharpSCADA-master\SCADA\Example\BatchCommon.dll
     文件       54272  2017-10-03 08:31  SharpSCADA-master\SCADA\Example\BatchCoreTest.exe
     文件        1682  2017-10-03 08:31  SharpSCADA-master\SCADA\Example\BatchCoreTest.exe.config
     文件       24064  2017-10-03 08:31  SharpSCADA-master\SCADA\Example\ClientDriver.dll
     文件      249344  2017-10-03 08:31  SharpSCADA-master\SCADA\Example\CoreTest.exe
     文件       30720  2017-10-03 08:31  SharpSCADA-master\SCADA\Example\DataHelper.dll
     文件       75264  2017-10-03 08:31  SharpSCADA-master\SCADA\Example\DataService.dll
     文件      509952  2017-10-03 08:31  SharpSCADA-master\SCADA\Example\DynamicDataDisplay.dll
     文件      684032  2017-10-03 08:31  SharpSCADA-master\SCADA\Example\HMIControl.dll
     文件       54272  2017-10-03 08:31  SharpSCADA-master\SCADA\Example\Microsoft.expression.Controls.dll
............此处省略1121个文件信息

评论

共有 条评论