资源简介

WinTcpS7_1K V16.rar f,很不错的WINCC开发资料 ,例子很多很全

资源截图

代码片段和文件信息


using System.Collections.Generic;
using System;
using System.Linq;
using System.Drawing;
using System.Diagnostics;
using System.Data;
using System.xml.Linq;
using Microsoft.VisualBasic;
using System.Collections;
using System.Windows.Forms;


using System.Net;
using System.Runtime.InteropServices;

namespace TCP_CLIENT
{
public partial class Form1
{
public Form1()
{
InitializeComponent();

if (defaultInstance == null)
defaultInstance = this;
}

#region Default Instance

private static Form1 defaultInstance;


public static Form1 Default
{
get
{
if (defaultInstance == null)
{
defaultInstance = new Form1();
defaultInstance.FormClosed += new FormClosedEventHandler(defaultInstance_FormClosed);
}

return defaultInstance;
}
set
{
defaultInstance = value;
}
}

static void defaultInstance_FormClosed(object sender FormClosedEventArgs e)
{
defaultInstance = null;
}

#endregion


        WinTcpS7_1K.PlcClient PLC = new WinTcpS7_1K.PlcClient();
bool Entlink;
long ScanCount;
short ScanRet;
        Int32 PlcHand;

[DllImport(“winmm.dll“ ExactSpelling=true CharSet=CharSet.Ansi SetLastError=true)]
public static extern UInt32 timeGetTime();

public void Form1_Load(System.object sender System.EventArgs e)
{
            short i = 0;
            this.CenterToScreen();
            cmbReadMry.Items.Clear();
            cmbReadMry.Items.Add(“I“);
            cmbReadMry.Items.Add(“Q“);
            cmbReadMry.Items.Add(“M“);
            cmbReadMry.Items.Add(“DB“);
            cmbWriteMry.Items.Clear();
            cmbWriteMry.Items.Add(“I“);
            cmbWriteMry.Items.Add(“Q“);
            cmbWriteMry.Items.Add(“M“);
            cmbWriteMry.Items.Add(“DB“);
            cmbBitMry.Items.Clear();
            cmbBitMry.Items.Add(“I“);
            cmbBitMry.Items.Add(“Q“);
            cmbBitMry.Items.Add(“M“);
            cmbBitMry.Items.Add(“DB“);
            cmbReadType.Items.Clear();
            cmbReadType.Items.Add(“W_INT16“);
            cmbReadType.Items.Add(“W_UINT16“);
            cmbReadType.Items.Add(“D_DINT32“);
            cmbReadType.Items.Add(“D_HEX32“);
            cmbReadType.Items.Add(“D_REAL32“);
            cmbReadType.Items.Add(“W_BIN16“);
            cmbReadType.Items.Add(“B_CHAR8“);
            cmbReadType.Items.Add(“B_BYTE8“);
            cmbWriteType.Items.Clear();
            cmbWriteType.Items.Add(“W_INT16“);
            cmbWriteType.Items.Add(“W_UINT16“);
            cmbWriteType.Items.Add(“D_DINT32“);
            cmbWriteType.Items.Add(“D_HEX32“);
            cmbWriteType.Items.Add(“D_REAL32“);
            cmbWriteType.Items.Add(“W_BIN16“);
            cmbWriteType.Items.Add(“B_CHAR8“);
            cmbWriteType.Items.Add(“B_BYTE8“);

            for (i = 0; i <= 7; i++)
            {
                cmbBit.Items.Add(“Bi

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    4855278  2017-02-18 13:37  S71K-2.jpg

     文件    1392671  2005-12-31 00:00  Dll Files\msvbvm60.dll

     文件     124688  2004-03-09 00:00  Dll Files\MSWINSCK.OCX

     文件     479487  2017-12-05 20:12  Dll Files\PLC通讯组件使用说明V22.pdf

     文件        595  2017-09-21 21:13  Dll Files\Readme.txt

     文件      81920  2018-01-13 11:20  Dll Files\WinTcpS7_1K.dll

     文件    1392671  2005-12-31 00:00  TcpClient C#2010\bin\Release\msvbvm60.dll

     文件     124688  2004-03-09 00:00  TcpClient C#2010\bin\Release\MSWINSCK.OCX

     文件      28160  2018-01-13 11:14  TcpClient C#2010\bin\Release\TCP_CLIENT_C#2010.exe

     文件      34304  2018-01-13 11:14  TcpClient C#2010\bin\Release\TCP_CLIENT_C#2010.pdb

     文件      11600  2018-01-13 11:13  TcpClient C#2010\bin\Release\TCP_CLIENT_C#2010.vshost.exe

     文件        490  2010-03-17 22:39  TcpClient C#2010\bin\Release\TCP_CLIENT_C#2010.vshost.exe.manifest

     文件        802  2018-01-13 11:14  TcpClient C#2010\bin\Release\TCP_CLIENT_VB2010.xml

     文件      81920  2018-01-13 11:20  TcpClient C#2010\bin\Release\WinTcpS7_1K.dll

     文件      12273  2018-01-10 22:12  TcpClient C#2010\Form1.cs

     文件      40601  2018-01-10 22:12  TcpClient C#2010\Form1.Designer.cs

     文件       6008  2018-01-10 22:12  TcpClient C#2010\Form1.resx

     文件        510  2012-12-15 19:48  TcpClient C#2010\My Project\Application.myapp

     文件       5609  2016-06-07 16:48  TcpClient C#2010\My Project\Resources.resx

     文件        279  2010-05-04 06:45  TcpClient C#2010\My Project\Settings.settings

     文件       2152  2016-06-07 17:56  TcpClient C#2010\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6371  2016-06-07 18:17  TcpClient C#2010\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        248  2016-06-07 18:17  TcpClient C#2010\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        634  2016-06-07 18:17  TcpClient C#2010\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       1407  2016-06-07 18:17  TcpClient C#2010\obj\x86\Debug\TcpClient.csproj.FileListAbsolute.txt

     文件      26112  2016-06-07 18:17  TcpClient C#2010\obj\x86\Debug\TCP_CLIENT_C#2010.exe

     文件      36352  2016-06-07 18:17  TcpClient C#2010\obj\x86\Debug\TCP_CLIENT_C#2010.pdb

     文件        180  2016-06-07 18:17  TcpClient C#2010\obj\x86\Debug\TCP_CLIENT_VB2010.Form1.resources

     文件        180  2016-06-07 18:17  TcpClient C#2010\obj\x86\Debug\TCP_CLIENT_VB2010.Properties.Resources.resources

     文件       4608  2016-06-07 18:16  TcpClient C#2010\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll

............此处省略120个文件信息

评论

共有 条评论