資源簡介
C#通過3E幀SLMP/MC協議讀寫三菱FX5U/Q系列PLC數據案例,僅做數據讀寫報文測試。附帶自己整理的SLMP/MC通訊協議表。
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.Net.Sockets;
using?System.Net;
using?System.Threading;
namespace?WindowsFormsApp7
{
????public?partial?class?FX5U遠程監視?:?Form
????{
????????private?Socket?tcpClient;
????????//private?TcpListener?myListener;//無使用,偵聽的?TCP?網絡客戶端的連接。
????????bool?bool_a;
????????bool?bool_Linajiezt;
????????public?FX5U遠程監視()
????????{
????????????InitializeComponent();
????????????richTextBox2.Text?=?(“500000FFFF03000C00100001040000C80000A80100“);
????????????button2.Enabled?=?false;
????????????button4.Enabled?=?false;
????????}
????????private?void?button1_Click(object?sender?Ev
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.?????73216??2019-12-13?20:04??SLMP以太網讀寫PLC數據20191206\.vs\WindowsFormsApp7\v15\.suo
?????文件????1038217??2019-12-06?20:19??SLMP以太網讀寫PLC數據20191206\SLMP與MC協議3E幀通訊協議表.xlsx
?????文件??????45568??2019-12-06?20:30??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\bin\Debug\WindowsFormsApp7.exe
?????文件??????38400??2019-12-06?20:30??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\bin\Debug\WindowsFormsApp7.pdb
?????文件??????10376??2019-12-06?20:30??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\FX5U遠程監視.cs
?????文件??????10542??2019-12-06?13:20??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\FX5U遠程監視.Designer.cs
?????文件??????50255??2019-12-06?13:20??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\FX5U遠程監視.resx
?????文件???????1209??2019-12-13?19:59??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????7064??2019-12-06?10:00??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件?????????42??2019-12-06?10:00??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\obj\Debug\WindowsFormsApp7.csproj.CoreCompileInputs.cache
?????文件???????4626??2019-12-06?13:20??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\obj\Debug\WindowsFormsApp7.csproj.FileListAbsolute.txt
?????文件????????926??2019-12-06?13:20??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\obj\Debug\WindowsFormsApp7.csproj.GenerateResource.cache
?????文件???????9084??2019-11-16?16:19??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\obj\Debug\WindowsFormsApp7.csprojAssemblyReference.cache
?????文件??????45568??2019-12-06?20:30??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\obj\Debug\WindowsFormsApp7.exe
?????文件??????29988??2019-12-06?13:20??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\obj\Debug\WindowsFormsApp7.FX5U遠程監視.resources
?????文件??????38400??2019-12-06?20:30??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\obj\Debug\WindowsFormsApp7.pdb
?????文件????????180??2019-12-06?13:20??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\obj\Debug\WindowsFormsApp7.Properties.Resources.resources
?????文件??????29988??2019-12-05?08:47??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\obj\Debug\WindowsFormsApp7.服務端窗口.resources
?????文件????????508??2019-12-06?10:00??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\Program.cs
?????文件???????1348??2019-11-16?16:19??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\Properties\AssemblyInfo.cs
?????文件???????2845??2019-11-16?16:19??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\Properties\Resources.Designer.cs
?????文件???????5612??2019-11-16?16:19??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\Properties\Resources.resx
?????文件???????1103??2019-11-16?16:19??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\Properties\Settings.Designer.cs
?????文件????????249??2019-11-16?16:19??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\Properties\Settings.settings
?????文件???????3445??2019-12-06?13:20??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\WindowsFormsApp7.csproj
?????文件???????1147??2019-11-16?16:19??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7.sln
?????目錄??????????0??2019-12-06?09:49??SLMP以太網讀寫PLC數據20191206\.vs\WindowsFormsApp7\v15\Server\sqlite3
?????目錄??????????0??2019-12-06?09:49??SLMP以太網讀寫PLC數據20191206\.vs\WindowsFormsApp7\v15\Server
?????目錄??????????0??2019-11-16?16:19??SLMP以太網讀寫PLC數據20191206\WindowsFormsApp7\obj\Debug\TempPE
?????目錄??????????0??2019-12-06?09:49??SLMP以太網讀寫PLC數據20191206\.vs\WindowsFormsApp7\v15
............此處省略17個文件信息
評論
共有 條評論