• 大小: 59.41MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-18
  • 语言: 其他
  • 标签: qt  snap7  plc  

资源简介

snap7库在qt5下的配置程序存档。

资源截图

代码片段和文件信息

/*=============================================================================|
|  PROJECT SNAP7                                                         1.4.0 |
|==============================================================================|
|  Copyright (C) 2013 2014 Davide Nardella                                    |
|  All rights reserved.                                                        |
|==============================================================================|
|  SNAP7 is free software: you can redistribute it and/or modify               |
|  it under the terms of the Lesser GNU General Public License as published by |
|  the Free Software Foundation either version 3 of the License or           |
|  (at your option) any later version.                                         |
|                                                                              |
|  It means that you can distribute your commercial software linked with       |
|  SNAP7 without the requirement to distribute the source code of your         |
|  application and without the requirement that your application be itself     |
|  distributed under LGPL.                                                     |
|                                                                              |
|  SNAP7 is distributed in the hope that it will be useful                    |
|  but WITHOUT ANY WARRANTY; without even the implied warranty of              |
|  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
|  Lesser GNU General Public License for more details.                         |
|                                                                              |
|  You should have received a copy of the GNU General Public License and a     |
|  copy of Lesser GNU General Public License along with Snap7.                 |
|  If not see  http://www.gnu.org/licenses/                                   |
|=============================================================================*/
#include 
#include 
#include “snap7.h“

#ifdef OS_WINDOWS
# define WIN32_LEAN_AND_MEAN
# include 
#endif

int cnt = 0;
    const int size = 256;
byte Buffer[size]; 
TS7Partner *Partner;

//------------------------------------------------------------------------------
// Usage syntax 
//------------------------------------------------------------------------------
static void Usage()
{
    printf(“Usage\n“);
    printf(“  APartner \n“);
    printf(“Where\n“);
    printf(“   is the address of the passive partner that we want to connect.\n“);
    printf(“Note\n“);
    printf(“- Local Address is meaningless\n“);
    printf(“- Both Local TSAP and Remote TSAP are set to 0x1002\n“);
    printf(“- You can create multiple active partner in the same\n“);
    printf(“  program or across different programs.\n“);
}
//--------------------------------------------------

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-11-30 17:06  snap7-full-1.4.1\
     目录           0  2016-11-30 17:06  snap7-full-1.4.1\build\
     目录           0  2016-11-30 17:06  snap7-full-1.4.1\build\bin\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\arm_v6-linux\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\arm_v7-linux\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\i386-bsd\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\i386-linux\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\i386-osx\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\i386-solaris\
     目录           0  2016-11-30 17:06  snap7-full-1.4.1\build\bin\Legacy\
     目录           0  2016-11-30 17:06  snap7-full-1.4.1\build\bin\Legacy\win32\
     文件        8924  2016-11-25 16:44  snap7-full-1.4.1\build\bin\Legacy\win32\snap7.def
     文件     1447505  2016-11-25 16:44  snap7-full-1.4.1\build\bin\Legacy\win32\snap7.dll
     文件      193046  2016-11-29 11:50  snap7-full-1.4.1\build\bin\Legacy\win32\snap7.lib
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\Legacy\win64\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\mips-linux\
     文件         486  2014-01-02 09:35  snap7-full-1.4.1\build\bin\README.txt
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\win32\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\win64\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\x86_64-bsd\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\x86_64-linux\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\x86_64-osx\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\bin\X86_64-solaris\
     目录           0  2016-11-30 17:06  snap7-full-1.4.1\build\osx\
     文件        4523  2014-04-16 10:04  snap7-full-1.4.1\build\osx\common.mk
     文件         173  2014-04-16 09:21  snap7-full-1.4.1\build\osx\i386_osx.mk
     文件         187  2013-12-28 19:44  snap7-full-1.4.1\build\osx\x86_64_osx.mk
     文件         298  2013-12-28 18:26  snap7-full-1.4.1\build\README.txt
     目录           0  2016-11-30 17:06  snap7-full-1.4.1\build\temp\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\temp\arm_v6\
     目录           0  2016-11-17 14:25  snap7-full-1.4.1\build\temp\arm_v7\
............此处省略1583个文件信息

评论

共有 条评论