西门子PLC以太网s7协议组件.rar

  • lc138221
    了解作者
  • C#
    开发工具
  • 170KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 4
    下载次数
  • 2020-06-12 16:18
    上传日期
C# Siemens PLC Ethernet S7 protocol using third-party DLL
西门子PLC以太网s7协议组件.rar
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/62758a5816f2c0769c057b5c/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/62758a5816f2c0769c057b5c/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#21487;&#32534;&#31243;&#25511;&#21046;&#22120;<span class="_ _0"> </span><span class="ff2">PC </span>&#36890;&#35759;&#32452;&#20214;&#20351;&#29992;&#35828;&#26126;</div><div class="t m0 x2 h4 y3 ff2 fs1 fc0 sc0 ls0 ws0">1. <span class="ff1">&#36890;&#35759;&#32452;&#20214;&#27010;&#36848;</span></div><div class="t m0 x2 h4 y4 ff2 fs1 fc0 sc0 ls0 ws0"> <span class="_ _1"></span> <span class="_ _1"></span> <span class="ff1">&#36890;<span class="_ _1"></span>&#35759;&#32452;<span class="_ _1"></span>&#20214;&#29992;&#20110;<span class="_ _2"> </span></span>PC<span class="_"> </span><span class="ff1">&#19982;&#21487;&#32534;<span class="_ _1"></span>&#31243;&#25511;&#21046;<span class="_ _1"></span>&#22120;<span class="_ _1"></span></span>, <span class="_ _1"></span><span class="ff1">&#21487;&#32534;<span class="_ _1"></span>&#31243;&#25511;&#21046;<span class="_ _1"></span>&#22120;</span>(PLC)<span class="_ _1"></span><span class="ff1">&#12289;&#26234;<span class="_ _1"></span>&#33021;&#20202;&#34920;<span class="_ _1"></span>&#31561;&#36827;<span class="_ _1"></span>&#34892;&#25968;&#25454;<span class="_ _1"></span>&#36890;&#35759;<span class="_ _1"></span>&#65292;&#36866;<span class="_ _1"></span>&#29992;</span></div><div class="t m0 x2 h4 y5 ff1 fs1 fc0 sc0 ls0 ws0">&#20110;&#22522;&#20110;<span class="_ _2"> </span><span class="ff2">PC<span class="_ _3"> </span></span>&#39640;&#32423;&#35821;&#35328;&#30340;&#24037;<span class="_ _1"></span>&#19994;&#33258;&#21160;&#21270;&#25511;&#21046;&#31995;&#32479;<span class="_ _1"></span>&#12290;&#32452;&#20214;&#37319;&#29992;&#21160;<span class="_ _1"></span>&#24577;&#38142;&#25509;&#24211;&#25991;&#20214;<span class="_ _4"></span><span class="ff2">(*.DLL)</span>&#30340;&#24418;&#65292;<span class="_ _1"></span>&#35843;&#29992;&#30456;</div><div class="t m0 x2 h4 y6 ff1 fs1 fc0 sc0 ls0 ws0">&#24212;&#30340;&#23646;&#24615;&#19982;&#26041;&#27861;&#20989;&#25968;&#65292;&#21363;&#21487;&#24555;&#36895;&#23454;&#29616;<span class="_ _3"> </span><span class="ff2">PC<span class="_"> </span></span>&#19982;<span class="_ _3"> </span><span class="ff2">PLC<span class="_ _3"> </span></span>&#30340;&#39640;&#25928;&#25968;&#25454;&#20132;&#25442;&#12290;</div><div class="t m0 x2 h4 y7 ff2 fs1 fc0 sc0 ls0 ws0">2. <span class="ff1">&#20989;&#25968;&#19982;&#21442;&#25968;</span></div><div class="t m0 x2 h5 y8 ff3 fs2 fc1 sc0 ls0 ws0">public<span class="fc0"> </span>int<span class="fc0"> ConnectTo(</span>string<span class="fc0"> Address, </span>int<span class="fc0"> Rack, </span>int<span class="fc0"> Slot)</span></div><div class="t m0 x2 h5 y9 ff3 fs2 fc1 sc0 ls0 ws0">public<span class="fc0"> </span>int<span class="fc0"> Disconnect()</span></div><div class="t m0 x2 h5 ya ff3 fs2 fc1 sc0 ls0 ws0"> #region<span class="fc0"> Get/Set the bit at Pos.Bit</span></div><div class="t m0 x2 h5 yb ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">bool</span> GetBitAt<span class="_ _5"></span>(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos, <span class="fc1">int</span> Bit)</div><div class="t m0 x2 h5 yc ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">void</span> SetBitAt<span class="_ _5"></span>(<span class="fc1">ref</span> <span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos, <span class="fc1">int</span> Bit,</div><div class="t m0 x2 h5 yd ff3 fs2 fc1 sc0 ls0 ws0">bool<span class="fc0"> Value)</span></div><div class="t m0 x2 h5 ye ff3 fs2 fc1 sc0 ls0 ws0"> #region<span class="fc0"> Get/Set 8 bit signed value (S7 SInt) -128..1<span class="_ _5"></span>27</span></div><div class="t m0 x2 h5 yf ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">int</span> GetSIntAt(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos)</div><div class="t m0 x2 h5 y10 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">void</span> SetSIntA<span class="_ _5"></span>t(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos, <span class="fc1">int</span> Value)</div><div class="t m0 x2 h5 y11 ff3 fs2 fc0 sc0 ls0 ws0"> </div><div class="t m0 x2 h5 y12 ff3 fs2 fc1 sc0 ls0 ws0"> #region<span class="fc0"> Get/Set 16 bit signed value (S7 int) -32768.<span class="_ _5"></span>.32767</span></div><div class="t m0 x2 h5 y13 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">int</span> GetIntAt(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos)</div><div class="t m0 x2 h5 y14 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">void</span> SetIntAt<span class="_ _5"></span>(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos, <span class="fc2">Int16</span> Value)</div><div class="t m0 x2 h5 y15 ff3 fs2 fc1 sc0 ls0 ws0"> #region<span class="fc0"> Get/Set 32 bit signed value (S7 DInt) -21474<span class="_ _5"></span>83648..2147483647</span></div><div class="t m0 x2 h5 y16 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">int</span> GetDIntAt(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos)</div><div class="t m0 x2 h5 y17 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">void</span> SetDIntA<span class="_ _5"></span>t(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos, <span class="fc1">int</span> Value)</div><div class="t m0 x2 h5 y18 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">#region</span> Get/Set 64 bit signed value (S7 LInt) -</div><div class="t m0 x2 h5 y19 ff3 fs2 fc0 sc0 ls0 ws0">9223372036854775808..922337203685477580<span class="_ _5"></span>7</div><div class="t m0 x2 h5 y1a ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc2">Int64</span> GetLIntAt(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos)</div><div class="t m0 x2 h5 y1b ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">void</span> SetLIntA<span class="_ _5"></span>t(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos, <span class="fc2">Int64</span> </div><div class="t m0 x2 h5 y1c ff3 fs2 fc0 sc0 ls0 ws0">Value)</div><div class="t m0 x2 h5 y1d ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1"> #region</span> Get/Set 8 bit unsigned value (S7 USInt) 0..255</div><div class="t m0 x2 h5 y1e ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">byte</span> GetUSInt<span class="_ _5"></span>At(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos)</div><div class="t m0 x2 h5 y1f ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">void</span> SetUSInt<span class="_ _5"></span>At(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos, <span class="fc1">byte</span> </div><div class="t m0 x2 h5 y20 ff3 fs2 fc0 sc0 ls0 ws0">Value)</div><div class="t m0 x2 h5 y21 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1"> #region</span> Get/Set 16 bit unsigned value (S7 UInt) 0..65535</div><div class="t m0 x2 h5 y22 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc2">UInt16</span> GetUIntAt(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos)</div><div class="t m0 x2 h5 y23 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">void</span> SetUIntA<span class="_ _5"></span>t(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos, <span class="fc2">UInt16</span> </div><div class="t m0 x2 h5 y24 ff3 fs2 fc0 sc0 ls0 ws0">Value)</div><div class="t m0 x2 h5 y25 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">#region</span> Get/Set 32 bit unsigned value (S7 UDInt) 0..42949<span class="_ _5"></span>67296</div><div class="t m0 x2 h5 y26 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc2">UInt32</span> GetUDIntAt(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos)</div><div class="t m0 x2 h5 y27 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc1">void</span> SetUDInt<span class="_ _5"></span>At(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos, <span class="fc2">UInt32</span> </div><div class="t m0 x2 h5 y28 ff3 fs2 fc0 sc0 ls0 ws0">Value)</div><div class="t m0 x2 h5 y29 ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">#region</span> Get/Set 64 bit unsigned value (S7 ULint) </div><div class="t m0 x2 h5 y2a ff3 fs2 fc0 sc0 ls0 ws0">0..18446744073709551616</div><div class="t m0 x2 h5 y2b ff3 fs2 fc0 sc0 ls0 ws0"> <span class="fc1">public</span> <span class="fc1">static</span> <span class="fc2">UInt64</span> GetULIntAt(<span class="fc1">byte</span>[] Buffer, <span class="fc1">int</span> Pos)</div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐