资源简介

Snap7是一款开源的32/64位多平台以太网通信套件,用于与西门子S7 PLC进行本地连接。 新款CPU 1200/1500,旧款S7200,小型LOGO 0BA7 / 0BA8和SINAMICS Drives也得到部分支持。

资源截图

代码片段和文件信息

/*=============================================================================|
|  PROJECT SNAP7                                                         1.1.0 |
|==============================================================================|
|  Copyright (C) 2013 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       |
|  SMART7 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/                                   |
|==============================================================================|
|                                                                              |
|  32/64 bit LabVIEW interface                                                 |
|                                                                              |
|=============================================================================*/
#include “lv_snap7.h“

#ifndef OS_WINDOWS
void libinit(void) __attribute__((constructor));
void libdone(void) __attribute__((destructor));
#endif

#ifdef OS_WINDOWS
#define WIN32_LEAN_AND_MEAN
#include 
#endif

static bool libresult = true;

void libinit(void)
{
     // in future expansions here can be inserted some initialization code
     libresult=true;
}

void libdone(void)
{
     // in future expansions here can be inserted some destruction code
}

#ifdef OS_WINDOWS
BOOL APIENTRY DllMain (HINSTANCE hInst
                       DWORD reason
                       LPVOID 

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

     文件      17645  2019-05-22 22:17  Snap7\Examples\Client\Block-Down-Upload.vi

     文件      13348  2019-05-22 22:17  Snap7\Examples\Client\BlockDel.vi

     文件      18201  2019-05-22 22:17  Snap7\Examples\Client\BlockInfo.vi

     文件      19591  2019-05-22 22:17  Snap7\Examples\Client\BlockUpload.vi

     文件      16794  2019-05-22 22:17  Snap7\Examples\Client\DBFill.vi

     文件      19929  2019-05-22 22:17  Snap7\Examples\Client\DBGet.vi

     文件      18337  2019-05-22 22:17  Snap7\Examples\Client\Directory.vi

     文件      18043  2019-05-22 22:17  Snap7\Examples\Client\GetSetParam.vi

     文件      18936  2019-05-22 22:17  Snap7\Examples\Client\Password.vi

     文件      21155  2019-05-22 22:17  Snap7\Examples\Client\PlcDateTime.vi

     文件      18211  2019-05-22 22:17  Snap7\Examples\Client\PlcInfo.vi

     文件      21540  2019-05-22 22:17  Snap7\Examples\Client\ReadArea.vi

     文件      20975  2019-05-22 22:17  Snap7\Examples\Client\ReadSZL.vi

     文件      20251  2019-05-22 22:17  Snap7\Examples\Client\RunStop.vi

     文件      21336  2019-05-22 22:17  Snap7\Examples\Partner\APartner.vi

     文件      21012  2019-05-22 22:17  Snap7\Examples\Partner\PPartner.vi

     文件      23186  2019-05-22 22:17  Snap7\Examples\Server\ServerDemo.vi

     文件         89  2020-03-18 22:24  Snap7\Examples\Snap7Examples.aliases

     文件        165  2019-01-20 12:54  Snap7\Examples\Snap7Examples.lvlps

     文件       2524  2019-01-20 12:54  Snap7\Examples\Snap7Examples.lvproj

     文件         40  2013-08-13 00:07  Snap7\LabVIEW_32.bat

     文件         40  2013-08-13 00:07  Snap7\LabVIEW_64.bat

     文件      44361  2020-03-18 22:22  Snap7\lib\CliABRead.vi

     文件      47430  2019-05-22 22:17  Snap7\lib\CliABWrite.vi

     文件      28983  2019-05-22 22:17  Snap7\lib\CliClearSessionPassword.vi

     文件      25656  2019-05-22 22:17  Snap7\lib\CliColdStart.vi

     文件      35835  2019-05-22 22:17  Snap7\lib\CliCompress.vi

     文件      25502  2019-05-22 22:17  Snap7\lib\CliConnect.vi

     文件      29732  2019-05-22 22:15  Snap7\lib\CliConnectTo.vi

     文件      39115  2019-05-22 22:17  Snap7\lib\CliCopyRamToRom.vi

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

评论

共有 条评论