first commit

This commit is contained in:
lq
2026-09-07 08:07:08 +08:00
commit e703fb2752
2488 changed files with 2784663 additions and 0 deletions
File diff suppressed because one or more lines are too long
+62
View File
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<appSettings>
<!--//日志配置 开启日志-->
<add key="EnableLogging" value="true" />
<!--//日志配置 日志存储周期 默认30天-->
<add key="LogRetentionDays" value="30" />
<!--//日志配置 日志存储路径 暂未使用,存储在跟目录-->
<add key="LogDirectory" value="D:\APILog\MQTTService" />
<!--//日志配置 按日存储-->
<add key="LogSplitStrategy" value="ByDay" />
<!--//日志配置 存储文件大小-->
<add key="MaxLogFileSizeBytes" value="10485760" />
<!--//PLC IP地址 192.168.1.50-->
<add key="PlcIpAddress" value="192.168.1.50" />
<!--//PLC 端口-->
<add key="PlcPort" value="9600" />
<!--//MQTT服务器IP地址 10.22.160.144-->
<add key="MQTTServerAddress" value="10.22.160.144" />
<!--//MQTT服务器端口-->
<add key="MQTTServerPort" value="1883" />
<!--//MQTT服务器发布ID-->
<add key="ClientId" value="601UPW01" />
<!--//MQTT服务发布主题PPM-->
<add key="Topic" value="EVE/60J/EQP/NEW_PPM/601UPW01" />
<!--PPM其他数据-->
<add key="Topic1" value="eve/60J/EQP/601UPW01"/>
<!--直角坐标机械臂-->
<add key="LRobotTopic" value="EVE/60J/LRobot/601PWM01_LUR01"/>
<!--关节机械臂-->
<add key="JRobotTopic" value="EVE/60J/JRobot/601PWM01_STR01"/>
<!--//参数设置 事业部-->
<add key="BU_id" value="EVE2BU" />
<!--//参数设置 地区-->
<add key="District_id" value="JM" />
<!--//参数设置 工厂-->
<add key="Factory_id" value="60J" />
<!--//参数设置 线体号-->
<add key="Production_line_id" value="MW-601" />
<!--//参数设置 设备编号-->
<add key="Device_name" value="601UPW01" />
<!--//线程循环间隔 ms单位-->
<add key="ThreadInterval" value="50" />
<add key="SwitchLog" value="True" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
</configuration>
File diff suppressed because it is too large Load Diff
+129
View File
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{242400F4-9B01-4AEE-A6F7-05083757FCDD}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>IOT.Services</RootNamespace>
<AssemblyName>IOT.Services</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<LangVersion>10.0</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="DataConvertLib, Version=6.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Lib\DataConvertLib.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=3.0.0.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.3.0.0\lib\net462\log4net.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Lib\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="PLCCommunication, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Lib\PLCCommunication.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Configuration.Install" />
<Reference Include="System.Core" />
<Reference Include="System.Management" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.ServiceProcess" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Logger.cs" />
<Compile Include="Models.cs" />
<Compile Include="MqttClientWrapper.cs" />
<Compile Include="MqttDataService.cs" />
<Compile Include="PLCDataReader.cs" />
<Compile Include="PLCWrapper.cs" />
<Compile Include="Service1.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Service1.Designer.cs">
<DependentUpon>Service1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="StationDataComparer.cs" />
<Compile Include="XmlConfigReader.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="log4net.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Content Include="Lib\DataConvertLib.dll" />
<Content Include="Lib\Newtonsoft.Json.dll" />
<Content Include="Lib\PLCCommunication.dll" />
<Content Include="Config.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.8">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.8 %28x86 和 x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ProjectFiles</ProjectView>
<PublishUrlHistory>publish\</PublishUrlHistory>
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>zh-CN</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
</Project>
Binary file not shown.
Binary file not shown.
+126
View File
@@ -0,0 +1,126 @@
using System;
using System.IO;
using System.Timers;
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", ConfigFileExtension = "config", Watch = true)]
public class Logger
{
private static readonly log4net.ILog loginfo = log4net.LogManager.GetLogger("loginfo");
private static readonly log4net.ILog logerror = log4net.LogManager.GetLogger("logerror");
private static readonly log4net.ILog logmqtt = log4net.LogManager.GetLogger("logmqtt");
private static readonly Timer cleanupTimer;
private const int MAX_DAYS = 7;
private const string LOG_BASE_PATH = "Log";
static Logger()
{
try
{
// 创建一个每天执行一次的定时器
cleanupTimer = new Timer(24 * 60 * 60 * 1000); // 24小时
cleanupTimer.Elapsed += CleanupOldLogs;
cleanupTimer.Start();
// 启动时执行一次清理
CleanupOldLogs(null, null);
}
catch (Exception ex)
{
WriteError("Failed to initialize logger cleanup timer", ex);
}
}
public static void WriteInfo(string info)
{
if (loginfo.IsInfoEnabled)
{
loginfo.Info(info);
}
}
public static void WriteMqtt(string info)
{
if (logmqtt.IsInfoEnabled)
{
logmqtt.Info(info);
}
}
public static void WriteError(string error)
{
if (logerror.IsErrorEnabled)
{
logerror.Error(error);
}
}
public static void WriteError(string info, Exception ex)
{
if (logerror.IsErrorEnabled)
{
logerror.Error(info, ex);
}
}
private static void CleanupOldLogs(object sender, ElapsedEventArgs e)
{
try
{
if (!Directory.Exists(LOG_BASE_PATH))
return;
string[] logTypes = { "LogError", "LogInfo", "LogMqtt" };
DateTime cutoffDate = DateTime.Now.AddDays(-MAX_DAYS);
foreach (string logType in logTypes)
{
string logTypeDir = Path.Combine(LOG_BASE_PATH, logType);
if (!Directory.Exists(logTypeDir))
continue;
// 获取所有日期文件夹
string[] dateDirs = Directory.GetDirectories(logTypeDir);
foreach (string dateDir in dateDirs)
{
string dirName = Path.GetFileName(dateDir);
if (DateTime.TryParseExact(dirName, "yyyyMMdd", null,
System.Globalization.DateTimeStyles.None, out DateTime dirDate))
{
if (dirDate < cutoffDate)
{
try
{
Directory.Delete(dateDir, true);
WriteInfo($"Deleted old log directory: {dateDir}");
}
catch (Exception ex)
{
WriteError($"Failed to delete log directory: {dateDir}", ex);
}
}
}
}
}
}
catch (Exception ex)
{
WriteError("Error during log cleanup", ex);
}
}
// 提供手动清理方法
public static void ForceCleanupOldLogs()
{
CleanupOldLogs(null, null);
}
// 在应用程序退出时调用此方法
public static void Shutdown()
{
if (cleanupTimer != null)
{
cleanupTimer.Stop();
cleanupTimer.Dispose();
}
}
}
+88
View File
@@ -0,0 +1,88 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsService1
{
#region 1、系统内部
public enum AcquisitionType
{
PPM,
Axis,
Cylinder,
LRobot
}
public enum PLCDataType
{
Short,
Float
}
public class StationData
{
public string Name { get; set; }
public object MainValue { get; set; }
public DateTime Timestamp { get; set; }
}
public class TypeConfig
{
public string Name { get; set; }
public string Address { get; set; }
public string DataType { get; set; }
}
public class CollectionGroupConfig
{
public string Name { get; set; }
public string StartAddress { get; set; }
public int Length { get; set; }
public string DefaultDataType { get; set; }
public Dictionary<string, TypeConfig> Types { get; set; }
}
#endregion
#region 2、PPM点位
#endregion
#region 3、预测性点位
#endregion
#region 4、机械臂
//直角坐标机械臂
public class LRobot
{
public string bu_id { get; set; }
public string district_id { get; set; }
public string factory_id { get; set; }
public string production_line_id { get; set; }
public string production_processes_id { get; set; }
public string work_center_id { get; set; }
public string station_id { get; set; }
public string device_name { get; set; } = "601PWM01";
public string robot_name { get; set; }
public List<Taglist> taglist { get; set; }
}
public class Taglist
{
public string device_time { get; set; }
public Collection collections_items { get; set; }
}
public class Collection
{
public string robot_status { get; set; } = "1";
public string x_value { get; set; }
public string y_value { get; set; }
public string z_value { get; set; }
public string time_span { get; set; } = "2.5";
public string hand_status { get; set; } = "1";
}
#endregion
}
+380
View File
@@ -0,0 +1,380 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using PLCCommunication;
using PLCCommunication.LogNet;
using PLCCommunication.MQTT;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace WindowsService1
{
public class MqttClientWrapper
{
private MqttClient mqttClient;
private bool mqttIsConnected;
private const int MaxReconnectAttempts = 5;
private const int ReconnectDelay = 5000; // 5 seconds
private MqttConnectionOptions options;
public event Action<string, string, string> OnMessageReceived;
public long ReceiveCount { get; private set; }
public PLCCommunication.LogNet.ILogNet LogNet = new LogNetDateTime("D:\\APILog\\Logs\\MQTTLogs", GenerateMode.ByEveryDay, 20);
public enum MessageFormat
{
Binary,
Text,
Xml,
Json
}
public MqttClientWrapper(string ipAddress, int port, string clientId, MqttCredential credentials)
{
InitializeMqttOptions(ipAddress, port, clientId, credentials);
}
private void InitializeMqttOptions(string ipAddress, int port, string clientId, MqttCredential credentials)
{
options = new MqttConnectionOptions
{
IpAddress = ipAddress,
Port = port,
ClientId = clientId,
Credentials = credentials,
UseRSAProvider = false,
CleanSession = false,
UseSSL = false,
SSLSecure = false,
CertificateFile = "",
KeepAlivePeriod = TimeSpan.FromSeconds(30),
KeepAliveSendInterval = TimeSpan.FromSeconds(10),
ConnectTimeout = 5,
WillMessage = null
};
}
public async Task InitializeAndConnectAsync()
{
try
{
mqttClient = new MqttClient(options);
Logger.WriteMqtt("MQTT 初始化成功");
await ConnectMqttAsync();
}
catch (Exception ex)
{
Logger.WriteError($"MQTT 初始化失败: {ex.Message}");
}
}
private async Task ConnectMqttAsync()
{
try
{
JYResult connect = await mqttClient.ConnectServerAsync();
if (connect.IsSuccess)
{
mqttIsConnected = true;
Logger.WriteMqtt("MQTT 连接服务器成功");
}
else
{
Logger.WriteError("MQTT 无法连接到服务器");
}
}
catch (Exception ex)
{
Logger.WriteError($"MQTT 无法连接到服务器: {ex.Message}");
}
}
public async Task SendMessageAsync(string source, string publishTopic, string type, JObject messageObj)
{
if (!mqttClient.IsConnected)
{
mqttIsConnected = false;
Logger.WriteMqtt("客户端未连接到服务器。正在尝试重新连接...");
await ReconnectWithRetry();
if (!mqttClient.IsConnected)
{
throw new InvalidOperationException("无法与 MQTT 代理建立连接.");
}
}
try
{
if (messageObj != null)
{
string json = messageObj.ToString();
//string json = JsonConvert.SerializeObject(messageObj);
JYResult result = await mqttClient.PublishMessageAsync(new MqttApplicationMessage
{
Topic = publishTopic,
QualityOfServiceLevel = MqttQualityOfServiceLevel.AtMostOnce,
Payload = Encoding.UTF8.GetBytes(json),
Retain = false,
});
if (result.IsSuccess)
{
if (Service1.SwitchLog)
{
Logger.WriteMqtt($"线程 [{source}] 发送 [{type}] 消息到主题 [{publishTopic}]: {json}");
}
}
else
{
Logger.WriteMqtt($"线程 [{source}] 发送 [{type}] 消息到主题 [{publishTopic}] 失败: {result.Message}");
}
}
}
catch (Exception ex)
{
Logger.WriteError($"发送消息错误: {ex.Message}");
}
}
public async Task SendMessageAsync(string source, string publishTopic, string type, string messageObj)
{
if (!mqttClient.IsConnected)
{
mqttIsConnected = false;
Logger.WriteMqtt("客户端未连接到服务器。正在尝试重新连接...");
await ReconnectWithRetry();
if (!mqttClient.IsConnected)
{
throw new InvalidOperationException("无法与 MQTT 代理建立连接.");
}
}
try
{
if (messageObj != null)
{
JYResult result = await mqttClient.PublishMessageAsync(new MqttApplicationMessage
{
Topic = publishTopic,
QualityOfServiceLevel = MqttQualityOfServiceLevel.AtMostOnce,
Payload = Encoding.UTF8.GetBytes(messageObj),
Retain = false,
});
if (result.IsSuccess)
{
if (Service1.SwitchLog)
{
Logger.WriteMqtt($"线程 [{source}] 发送 [{type}] 消息到主题 [{publishTopic}]: {messageObj}");
}
}
else
{
Logger.WriteMqtt($"线程 [{source}] 发送 [{type}] 消息到主题 [{publishTopic}] 失败: {result.Message}");
}
}
}
catch (Exception ex)
{
Logger.WriteError($"发送消息错误: {ex.Message}");
}
}
public void SubscribeMessage(string topic, MessageFormat format = MessageFormat.Text, bool truncateLongMessage = false)
{
if (!mqttIsConnected)
{
ConnectMqttAsync().Wait();
}
try
{
JYResult operateResult = mqttClient.SubscribeMessage(new string[] { topic });
if (!operateResult.IsSuccess)
{
Logger.WriteMqtt($"订阅消息失败: {operateResult.Message}");
return;
}
SubscribeTopic subscribeTopic = mqttClient.GetSubscribeTopic(topic);
if (subscribeTopic != null)
{
subscribeTopic.OnMqttMessageReceived += (sender, args) =>
{
HandleReceivedMessage(args.Topic, args.Payload, format, truncateLongMessage);
};
Logger.WriteMqtt($"成功订阅主题: {topic}");
}
else
{
Logger.WriteMqtt($"无法获取订阅主题 {topic}");
}
}
catch (Exception ex)
{
Logger.WriteError($"订阅主题时出错 {topic}: {ex.Message}");
}
}
private void HandleReceivedMessage(string topic, byte[] payload, MessageFormat format, bool truncateLongMessage)
{
ReceiveCount++;
string text = string.Empty;
try
{
switch (format)
{
case MessageFormat.Binary:
text = BitConverter.ToString(payload).Replace("-", " ");
break;
case MessageFormat.Text:
text = Encoding.UTF8.GetString(payload);
break;
case MessageFormat.Xml:
try
{
text = XElement.Parse(Encoding.UTF8.GetString(payload)).ToString();
}
catch
{
text = Encoding.UTF8.GetString(payload);
}
break;
case MessageFormat.Json:
try
{
text = JObject.Parse(Encoding.UTF8.GetString(payload)).ToString();
}
catch
{
text = Encoding.UTF8.GetString(payload);
}
break;
}
//if (Service1.SwitchLog)
//{
// LogNet.WriteDebug($"收到主题 {topic}: {text}");
//}
//if (truncateLongMessage && text.Length > 200)
//{
// text = text.Substring(0, 200) + "...";
//}
string timestamp = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
OnMessageReceived?.Invoke(timestamp, topic, text);
}
catch (Exception ex)
{
Logger.WriteError($"处理收到的消息时出错: {ex.Message}");
}
}
public void UnsubscribeMessage(string topic)
{
try
{
JYResult operateResult = mqttClient.UnSubscribeMessage(new string[] { topic });
if (operateResult.IsSuccess)
{
Logger.WriteMqtt($"成功取消订阅主题: {topic}");
}
else
{
Logger.WriteMqtt($"取消订阅主题失败 {topic}: {operateResult.Message}");
}
}
catch (Exception ex)
{
Logger.WriteError($"取消订阅主题时出错 {topic}: {ex.Message}");
}
}
/// <summary>
/// 重连
/// </summary>
/// <returns></returns>
private async Task ReconnectWithRetry()
{
int attempts = 0;
while (!mqttClient.IsConnected && attempts < MaxReconnectAttempts)
{
try
{
await mqttClient.ConnectServerAsync();
Logger.WriteMqtt("重新连接成功.");
return;
}
catch (Exception ex)
{
attempts++;
Logger.WriteMqtt($"重新连接尝试 {attempts} 失败的: {ex.Message}");
await Task.Delay(ReconnectDelay);
}
}
if (!mqttClient.IsConnected)
{
Logger.WriteMqtt("尝试次数达到上限后仍无法重新连接.");
}
}
private async Task ReconnectAsync()
{
Logger.WriteMqtt("正在尝试重新连接...");
mqttIsConnected = false;
int retryCount = 0;
const int maxRetries = 5;
const int retryDelayMs = 5000;
while (!mqttIsConnected && retryCount < maxRetries)
{
try
{
await ConnectMqttAsync();
if (mqttIsConnected)
{
Logger.WriteMqtt("重新连接成功");
return;
}
}
catch (Exception ex)
{
Logger.WriteMqtt($"重新连接尝试 {retryCount + 1} 失败的: {ex.Message}");
}
retryCount++;
await Task.Delay(retryDelayMs);
}
if (!mqttIsConnected)
{
Logger.WriteMqtt("多次尝试后仍无法重新连接");
}
}
public async Task Disconnect()
{
await mqttClient.ConnectCloseAsync();
mqttIsConnected = false;
Logger.WriteMqtt("与 MQTT服务端断开连接!!!");
}
}
}
+732
View File
@@ -0,0 +1,732 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsService1
{
public class MqttDataService
{
public static string BU_id;
public static string District_id;
public static string Factory_id;
public static string Production_line_id;
public static string Device_name;
public static string Topic;
public static string Work_Center_id;
public class OperationData
{
public int Item_Value { get; set; }
public string Start_Time { get; set; }
public string End_Time { get; set; }
}
public class MqttMessage
{
public string bu_id { get; set; }
public string district_id { get; set; }
public string factory_id { get; set; }
public string production_line_id { get; set; }
public string production_processes_id { get; set; }
public string work_center_id { get; set; }
public string station_id { get; set; }
public string device_name { get; set; }
public List<TagList> taglist { get; set; }
}
public class TagList
{
public string device_time { get; set; }
public Dictionary<string, OperationData> collection_items { get; set; }
}
/// <summary>
///
/// </summary>
/// <param name="source"></param>
/// <param name="type"></param>
/// <param name="processedValues"></param>
/// <param name="_plcAddresses"></param>
/// <param name="_collectionGroups"></param>
/// <returns></returns>
public static MqttMessage CreateMqttMessage(string source, AcquisitionType type, List<StationData> processedValues,
Dictionary<AcquisitionType, Dictionary<string, string>> _plcAddresses,
Dictionary<AcquisitionType, CollectionGroupConfig> _collectionGroups)
{
try
{
Logger.WriteInfo($"开始创建 MQTT 消息, 类型: {type}, 数据点数量: {processedValues?.Count ?? 0}");
if (processedValues == null || processedValues.Count == 0)
{
Logger.WriteInfo("没有需要处理的数据,返回 null");
return null;
}
var addresses = _plcAddresses[type];
var config = _collectionGroups[type];
var collectionItems = new Dictionary<string, OperationData>();
// 获取当前时间作为设备时间
var currentTime = DateTime.Now;
var deviceTimeStr = currentTime.ToString("yyyy-MM-dd HH:mm:ss.fff");
Logger.WriteInfo($"处理数据类型: {type}, 当前时间: {deviceTimeStr}");
switch (type)
{
case AcquisitionType.PPM:
ProcessPPMData(processedValues, addresses, config, collectionItems);
break;
case AcquisitionType.Axis:
case AcquisitionType.Cylinder:
ProcessFloatData(processedValues, addresses, config, currentTime, collectionItems);
break;
default:
Logger.WriteError($"未知的数据类型: {type}");
return null;
}
if (collectionItems.Count == 0)
{
Logger.WriteInfo("没有有效的采集项,返回 null");
return null;
}
var message = new MqttMessage
{
bu_id = BU_id,
district_id = District_id,
factory_id = Factory_id,
production_line_id = Production_line_id,
production_processes_id = string.Empty,
work_center_id = Work_Center_id,
station_id = "1",
device_name = Device_name,
taglist = new List<TagList>
{
new TagList
{
device_time = deviceTimeStr,
collection_items = collectionItems
}
}
};
// 记录创建的消息内容
Logger.WriteInfo($"MQTT 消息创建完成: {JsonConvert.SerializeObject(message, Formatting.None)}");
return message;
}
catch (Exception ex)
{
Logger.WriteError($"创建 MQTT 消息时发生错误: {ex.Message}");
return null;
}
}
/// <summary>
/// PPM点位数据
/// </summary>
/// <param name="processedValues"></param>
/// <param name="addresses"></param>
/// <param name="config"></param>
/// <param name="collectionItems"></param>
///
// 添加静态字段来存储上次发送的数据
private static Dictionary<string, OperationData> _lastSentData = new Dictionary<string, OperationData>();
public static void ProcessPPMData(List<StationData> processedValues, Dictionary<string, string> addresses, CollectionGroupConfig config, Dictionary<string, OperationData> collectionItems)
{
try
{
Logger.WriteInfo($"开始处理 PPM 数据,数据点数量: {processedValues.Count}");
// 创建临时字典存储当前所有数据点
var tempItems = new Dictionary<string, OperationData>();
foreach (var value in processedValues)
{
var addressPair = addresses.FirstOrDefault(x => x.Key == value.Name);
if (!string.IsNullOrEmpty(addressPair.Key))
{
int itemValue = Convert.ToInt32(ConvertToIntegerWithThreeDecimals(value.MainValue));
// 计算开始时间 (结束时间 - 时长)
var startTime = value.Timestamp.AddMilliseconds(-itemValue);
var operationData = new OperationData
{
Item_Value = itemValue,
Start_Time = startTime.ToString("yyyy-MM-dd HH:mm:ss.fff"),
End_Time = value.Timestamp.ToString("yyyy-MM-dd HH:mm:ss.fff")
};
// 检查数据是否发生变化
bool shouldAdd = true;
// 检查是否与上次发送的数据重复
if (_lastSentData.TryGetValue(addressPair.Key, out var lastData))
{
var currentEndTime = operationData.End_Time.ToString();
var lastEndTime = lastData.End_Time.ToString();
if (string.Equals(lastEndTime, currentEndTime, StringComparison.OrdinalIgnoreCase))
{
shouldAdd = false;
Logger.WriteInfo($"跳过重复数据点: {addressPair.Key}");
continue;
}
}
if (shouldAdd)
{
tempItems[addressPair.Key] = operationData;
Logger.WriteInfo($"处理数据点: {addressPair.Key}, 值: {itemValue}, " +
$"开始时间: {startTime:yyyy-MM-dd HH:mm:ss.fff}, " +
$"结束时间: {operationData.End_Time}");
}
//if (shouldAdd)
//{
// // 检查是否与当前批次的其他数据有重复的结束时间
// var duplicateEndTimeItem = tempItems.FirstOrDefault(x =>
// string.Equals(x.Value.End_Time.ToString(), operationData.End_Time.ToString(), StringComparison.OrdinalIgnoreCase));
// if (duplicateEndTimeItem.Key != null)
// {
// Logger.WriteError($"检测到结束时间重复: {operationData.End_Time} 对应地址: {addressPair.Key}, " +
// $"与地址 {duplicateEndTimeItem.Key} 的数据重复");
// // 根据地址的字母顺序决定哪个需要调整时间,确保调整的一致性
// if (string.Compare(addressPair.Key, duplicateEndTimeItem.Key) > 0)
// {
// operationData.End_Time = value.Timestamp.AddMilliseconds(1).ToString("yyyy-MM-dd HH:mm:ss.fff");
// Logger.WriteInfo($"调整后的结束时间: {operationData.End_Time}");
// }
// }
// tempItems[addressPair.Key] = operationData;
// Logger.WriteInfo($"处理数据点: {addressPair.Key}, 值: {itemValue}, " +
// $"开始时间: {startTime:yyyy-MM-dd HH:mm:ss.fff}, " +
// $"结束时间: {operationData.End_Time}");
//}
}
else
{
Logger.WriteError($"未找到数据点 {value.Name} 对应的地址配置");
}
}
// 将处理后的数据添加到最终结果并更新上次发送的数据
foreach (var item in tempItems)
{
collectionItems[item.Key] = item.Value;
_lastSentData[item.Key] = item.Value; // 更新上次发送的数据
}
Logger.WriteInfo($"PPM 数据处理完成,处理后的数据点数量: {collectionItems.Count}");
}
catch (Exception ex)
{
Logger.WriteError($"处理 PPM 数据时出错: {ex.Message}");
throw;
}
}
private static bool IsDataEqual(OperationData data1, OperationData data2, string addressKey)
{
if (data1 == null || data2 == null)
return false;
bool isEqual = data1.Item_Value == data2.Item_Value &&
data1.Start_Time == data2.Start_Time &&
data1.End_Time == data2.End_Time;
if (isEqual)
{
Logger.WriteInfo($"检测到重复数据 - 地址: {addressKey}, " +
$"值: {data1.Item_Value}, " +
$"开始时间: {data1.Start_Time}, " +
$"结束时间: {data1.End_Time}");
}
return isEqual;
}
/// <summary>
/// 预测性点位
/// </summary>
/// <param name="processedValues"></param>
/// <param name="addresses"></param>
/// <param name="config"></param>
/// <param name="endTime"></param>
/// <param name="collectionItems"></param>
public static void ProcessFloatData(List<StationData> processedValues, Dictionary<string, string> addresses, CollectionGroupConfig config, DateTime endTime, Dictionary<string, OperationData> collectionItems)
{
for (int i = 0; i < processedValues.Count && i < config.Length; i++)
{
string address = $"D{int.Parse(config.StartAddress.Substring(1)) + i * 2}";
if (addresses.ContainsValue(address))
{
var key = addresses.FirstOrDefault(x => x.Value == address).Key;
int itemValue = Convert.ToInt32(ConvertToIntegerWithThreeDecimals(processedValues[i].MainValue));
// 计算开始时间 (结束时间 - 时长)
//var startTime = endTime.AddMilliseconds(-itemValue);
collectionItems[key] = new OperationData
{
Item_Value = (int)itemValue,
Start_Time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
End_Time = endTime.ToString("yyyy-MM-dd HH:mm:ss.fff")
};
}
}
}
/// <summary>
/// 机械臂数据
/// </summary>
/// <param name="source"></param>
/// <param name="type"></param>
/// <param name="processedValues"></param>
/// <param name="_plcAddresses"></param>
/// <param name="_collectionGroups"></param>
/// <returns></returns>
public static LRobot LRobotMessage(string source, AcquisitionType type, List<StationData> processedValues, Dictionary<AcquisitionType, Dictionary<string, string>> _plcAddresses,
Dictionary<AcquisitionType, CollectionGroupConfig> _collectionGroups)
{
if (processedValues == null || processedValues.Count == 0)
{
return null;
}
var addresses = _plcAddresses[type];
var config = _collectionGroups[type];
return new LRobot()
{
bu_id = BU_id,
district_id = District_id,
factory_id = Factory_id,
production_line_id = Production_line_id,
production_processes_id = "",
work_center_id = "",
station_id = "",
device_name = "601PWM01",
robot_name = "LUR01",
taglist = new List<Taglist>
{
new Taglist//上料动子1
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[0].MainValue.ToString(),
y_value="0",
z_value=processedValues[1].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//上料动子2
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[2].MainValue.ToString(),
y_value="0",
z_value=processedValues[3].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//上料动子3
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[4].MainValue.ToString(),
y_value="0",
z_value=processedValues[5].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//上料动子4
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[6].MainValue.ToString(),
y_value="0",
z_value=processedValues[7].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//上料动子5
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[8].MainValue.ToString(),
y_value="0",
z_value=processedValues[9].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//上料动子6
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[10].MainValue.ToString(),
y_value="0",
z_value=processedValues[11].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//上料动子7
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[13].MainValue.ToString(),
y_value="0",
z_value=processedValues[14].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//上料动子8
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[16].MainValue.ToString(),
y_value="0",
z_value=processedValues[17].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//上料动子9
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[18].MainValue.ToString(),
y_value="0",
z_value=processedValues[19].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//焊机1
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[20].MainValue.ToString(),
y_value=processedValues[21].MainValue.ToString(),
z_value=processedValues[22].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//焊机2
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[23].MainValue.ToString(),
y_value=processedValues[24].MainValue.ToString(),
z_value=processedValues[25].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//焊机3
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[26].MainValue.ToString(),
y_value=processedValues[27].MainValue.ToString(),
z_value=processedValues[28].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//焊机4
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[29].MainValue.ToString(),
y_value=processedValues[30].MainValue.ToString(),
z_value=processedValues[31].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//焊机5
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[32].MainValue.ToString(),
y_value=processedValues[33].MainValue.ToString(),
z_value=processedValues[34].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//焊机6
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[35].MainValue.ToString(),
y_value=processedValues[36].MainValue.ToString(),
z_value=processedValues[37].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//焊机7
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[38].MainValue.ToString(),
y_value=processedValues[39].MainValue.ToString(),
z_value=processedValues[40].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//焊机8
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[41].MainValue.ToString(),
y_value=processedValues[42].MainValue.ToString(),
z_value=processedValues[43].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//焊机9
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[44].MainValue.ToString(),
y_value=processedValues[45].MainValue.ToString(),
z_value=processedValues[46].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//焊机10
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[47].MainValue.ToString(),
y_value=processedValues[48].MainValue.ToString(),
z_value=processedValues[49].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//焊机11
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[50].MainValue.ToString(),
y_value=processedValues[51].MainValue.ToString(),
z_value=processedValues[52].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//焊机12
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[53].MainValue.ToString(),
y_value=processedValues[54].MainValue.ToString(),
z_value=processedValues[55].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//下料动子1
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[56].MainValue.ToString(),
y_value="0",
z_value=processedValues[57].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//下料动子2
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[58].MainValue.ToString(),
y_value="0",
z_value=processedValues[59].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//下料动子3
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[61].MainValue.ToString(),
y_value="0",
z_value=processedValues[62].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//下料动子4
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[63].MainValue.ToString(),
y_value="0",
z_value=processedValues[64].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//下料动子5
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[65].MainValue.ToString(),
y_value="0",
z_value=processedValues[66].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
},
new Taglist//下料动子6
{
device_time=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
collections_items=new Collection()
{
robot_status = "1",
x_value=processedValues[67].MainValue.ToString(),
y_value="0",
z_value=processedValues[68].MainValue.ToString(),
time_span="2.5",
hand_status="1",
}
}
}
};
}
// 辅助方法
private static List<short> ConvertToShortList(object[] data)
{
return data.Select(x => Convert.ToInt16(x)).ToList();
}
private static List<float> ConvertToFloatList(object[] data)
{
return data.Select(x => Convert.ToSingle(x)).ToList();
}
private static object ConvertToIntegerWithThreeDecimals(object value)
{
try
{
if (value == null) return 0;
if (value is float floatValue)
{
return (int)Math.Round(floatValue * 1000);
}
else if (value is double doubleValue)
{
return (int)Math.Round(doubleValue * 1000);
}
else if (value is decimal decimalValue)
{
return (int)Math.Round(decimalValue * 1000);
}
else
{
// 尝试转换其他类型
float converted = Convert.ToSingle(value);
return (int)Math.Round(converted * 1000);
}
}
catch (Exception ex)
{
Logger.WriteError($"转换值到整数时出错: {ex.Message}, 值: {value}");
return 0;
}
}
}
}
+158
View File
@@ -0,0 +1,158 @@
using JinYuan.DataConvertLib;
using log4net.Core;
using PLCCommunication.PLCType.Omron;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsService1
{
/// <summary>
/// 定义每个数据读取请求的参数。
/// </summary>
public class PLCDataReadRequest
{
/// <summary>
/// PLC起始地址
/// </summary>
public string StartAddress { get; set; }
/// <summary>
/// 读取长度
/// </summary>
public ushort Length { get; set; }
/// <summary>
/// 读取区域名称
/// </summary>
public string StorageName { get; set; }
/// <summary>
/// 读取数据类型
/// </summary>
public PLCDataType DataType { get; set; }
}
/// <summary>
/// 存储每次读取操作的结果。
/// </summary>
public class PLCDataResult
{
/// <summary>
/// 读取区域名称
/// </summary>
public string StorageName { get; set; }
/// <summary>
/// 读取数据类型
/// </summary>
public PLCDataType DataType { get; set; }
/// <summary>
/// 数据
/// </summary>
public byte[] Data { get; set; }
/// <summary>
/// 是否读取成功
/// </summary>
public bool IsSuccess { get; set; }
/// <summary>
/// 读取失败的错误信息
/// </summary>
public string ErrorMessage { get; set; }
}
public class PLCDataReader
{
private readonly OmronFinsNet _plc;
public PLCDataReader(OmronFinsNet plc)
{
_plc = plc ?? throw new ArgumentNullException(nameof(plc));
}
public async Task<PLCDataResult> ReadDataAsync(PLCDataReadRequest request)
{
try
{
var data = await _plc.ReadAsync(request.StartAddress, request.Length);
if (data.IsSuccess && data.Content.Length > 0)
{
Logger.WriteInfo($"成功读取PLC数据,起始地址:{request.StartAddress},长度:{request.Length},类型:{request.DataType}");
return new PLCDataResult
{
StorageName = request.StorageName,
DataType = request.DataType,
Data = data.Content,
IsSuccess = true
};
}
else
{
Logger.WriteInfo($"读取PLC数据失败,起始地址:{request.StartAddress},长度:{request.Length},类型:{request.DataType}");
return new PLCDataResult
{
StorageName = request.StorageName,
DataType = request.DataType,
IsSuccess = false,
ErrorMessage = "读取PLC数据失败"
};
}
}
catch (Exception ex)
{
Logger.WriteError($"读取PLC数据时发生错误:{ex.Message}");
return new PLCDataResult
{
StorageName = request.StorageName,
DataType = request.DataType,
IsSuccess = false,
ErrorMessage = ex.Message
};
}
}
private object[] ParseData(byte[] content, PLCDataType dataType)
{
switch (dataType)
{
case PLCDataType.Short:
return ParseShortData(content);
case PLCDataType.Float:
return ParseFloatData(content);
default:
throw new ArgumentException($"不支持的数据类型:{dataType}");
}
}
private object[] ParseShortData(byte[] content)
{
int count = content.Length / 2;
return Enumerable.Range(0, count)
.Select(i => (object)ShortLib.GetShortFromByteArray(content, i * 2))
.ToArray();
}
private object[] ParseFloatData(byte[] content)
{
int count = content.Length / 4;
return Enumerable.Range(0, count)
.Select(i => (object)FloatLib.GetFloatFromByteArray(content, i * 4))
.ToArray();
}
}
public static class ConvertHelper
{
/// <summary>
/// 字节数组高低位转换
/// </summary>
/// <param name="Arrbyte"></param>
/// <returns></returns>
public static byte[] ByteReverse(this byte[] Arrbyte)
{
byte[] ArrByte = Arrbyte.Select((x, i) => new { x, i }).GroupBy(x => x.i / 2).SelectMany(x => new byte[] { x.Last().x, x.First().x }).ToArray();
return ArrByte;
}
}
}
+108
View File
@@ -0,0 +1,108 @@
using log4net.Core;
using PLCCommunication.PLCType.Omron;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsService1
{
public class PLCWrapper
{
private OmronFinsNet _plc;
public bool _plcIsConnected;
private readonly string _ipAddress;
private readonly int _port;
private readonly int _maxReconnectAttempts;
private readonly int _reconnectDelay;
public PLCDataReader _dataReader;
public PLCWrapper(string ipAddress, int port, int maxReconnectAttempts = 3, int reconnectDelay = 5000)
{
_ipAddress = ipAddress;
_port = port;
_maxReconnectAttempts = maxReconnectAttempts;
_reconnectDelay = reconnectDelay;
}
public async Task<bool> ConnectAsync()
{
try
{
_plc = new OmronFinsNet
{
IpAddress = _ipAddress,
Port = _port
};
var connectResult = await Task.Run(() => _plc.ConnectServer());
_plcIsConnected = connectResult.IsSuccess;
if (_plcIsConnected)
{
_dataReader = new PLCDataReader(GetPLCClient());
Logger.WriteInfo("PLC连接成功");
}
else
{
Logger.WriteInfo("PLC连接失败");
}
return _plcIsConnected;
}
catch (Exception ex)
{
Logger.WriteError($"PLC连接失败: {ex.Message}");
return false;
}
}
public void Disconnect()
{
if (_plcIsConnected)
{
_plc.ConnectClose();
_plcIsConnected = false;
Logger.WriteInfo("与PLC断开连接");
}
}
public OmronFinsNet GetPLCClient()
{
if (!_plcIsConnected || _plc == null)
{
throw new InvalidOperationException("PLC 未连接或未初始化。请先调用 ConnectAsync()。");
}
return _plc;
}
public async Task<bool> ReconnectAsync()
{
if (_plcIsConnected)
{
Logger.WriteInfo("PLC已连接,无需重连");
return true;
}
for (int attempt = 1; attempt <= _maxReconnectAttempts; attempt++)
{
Logger.WriteInfo($"尝试重新连接PLC,第 {attempt} 次尝试");
if (await ConnectAsync())
{
Logger.WriteInfo("PLC重新连接成功");
return true;
}
if (attempt < _maxReconnectAttempts)
{
await Task.Delay(_reconnectDelay);
}
}
Logger.WriteError($"PLC重新连接失败,已尝试 {_maxReconnectAttempts} 次");
return false;
}
public bool IsConnected()
{
return _plcIsConnected;
}
}
}
+25
View File
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace WindowsService1
{
internal static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new Service1()
};
ServiceBase.Run(ServicesToRun);
}
}
}
+36
View File
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("WindowsService1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WindowsService1")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("242400f4-9b01-4aee-a6f7-05083757fcdd")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
+38
View File
@@ -0,0 +1,38 @@
namespace WindowsService1
{
partial class Service1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
Logger.Shutdown();
}
base.Dispose(disposing);
}
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
this.ServiceName = "Service1";
}
#endregion
}
}
File diff suppressed because it is too large Load Diff
+97
View File
@@ -0,0 +1,97 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsService1
{
/// <summary>
/// 判断工位耗时变化
/// </summary>
public class StationDataComparer:IEqualityComparer<StationData>
{
private const float FloatEpsilon = 0.000001f; // 可以调整精度
public bool Equals(StationData x, StationData y)
{
if (ReferenceEquals(x, y)) return true;
if (x is null || y is null) return false;
// 比较名称
if (x.Name != y.Name) return false;
// 比较主值
if (x.MainValue is float xFloat && y.MainValue is float yFloat)
{
if (Math.Abs(xFloat - yFloat) > FloatEpsilon) return false;
}
else if (x.MainValue is double xDouble && y.MainValue is double yDouble)
{
if (Math.Abs(xDouble - yDouble) > FloatEpsilon) return false;
}
else if (!Equals(x.MainValue, y.MainValue))
{
return false;
}
// 比较时间戳(可以选择是否忽略毫秒)
return Math.Abs((x.Timestamp - y.Timestamp).TotalMilliseconds) < 1;
}
public int GetHashCode(StationData obj)
{
if (obj is null) return 0;
unchecked
{
int hash = 17;
hash = hash * 23 + (obj.Name?.GetHashCode() ?? 0);
// 对于浮点数,可以先转换为整数再计算哈希
if (obj.MainValue is float f)
{
hash = hash * 23 + ((int)(f * 1000000)).GetHashCode();
}
else
{
hash = hash * 23 + (obj.MainValue?.GetHashCode() ?? 0);
}
hash = hash * 23 + obj.Timestamp.GetHashCode();
return hash;
}
}
}
/// <summary>
/// 判断时间戳变化
/// </summary>
public class StationDataComparer2 : IEqualityComparer<StationData>
{
public bool Equals(StationData x, StationData y)
{
if (ReferenceEquals(x, y)) return true;
if (x is null || y is null) return false;
// 只比较名称和时间戳
if (x.Name != y.Name) return false;
// 比较时间戳,检查是否完全相同
return x.Timestamp == y.Timestamp;
}
public int GetHashCode(StationData obj)
{
if (obj is null) return 0;
unchecked
{
int hash = 17;
hash = hash * 23 + (obj.Name?.GetHashCode() ?? 0);
hash = hash * 23 + obj.Timestamp.GetHashCode();
return hash;
}
}
}
}
+77
View File
@@ -0,0 +1,77 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace WindowsService1
{
public class XmlConfigReader
{
private Dictionary<string, Dictionary<string, Dictionary<string, string>>> deviceData;
public XmlConfigReader(string xmlContent)
{
XDocument doc = XDocument.Parse(xmlContent);
deviceData = ReadXmlToNestedDictionary(doc);
}
public XmlConfigReader(XDocument doc)
{
deviceData = ReadXmlToNestedDictionary(doc);
}
private Dictionary<string, Dictionary<string, Dictionary<string, string>>> ReadXmlToNestedDictionary(XDocument doc)
{
var result = new Dictionary<string, Dictionary<string, Dictionary<string, string>>>();
var mainDevice = doc.Root.Element("Device");
string mainDeviceName = mainDevice.Attribute("name").Value;
result[mainDeviceName] = new Dictionary<string, Dictionary<string, string>>();
foreach (var subDevice in mainDevice.Elements("Device"))
{
string subDeviceName = subDevice.Attribute("name").Value;
result[mainDeviceName][subDeviceName] = new Dictionary<string, string>();
foreach (var type in subDevice.Elements("Type"))
{
string typeName = type.Attribute("name").Value;
string typeValue = type.Value;
result[mainDeviceName][subDeviceName][typeName] = typeValue;
}
}
return result;
}
public void PrintStructure()
{
foreach (var mainDevice in deviceData)
{
Console.WriteLine($"Main Device: {mainDevice.Key}");
foreach (var subDevice in mainDevice.Value)
{
Console.WriteLine($" Sub Device: {subDevice.Key}");
foreach (var type in subDevice.Value)
{
Console.WriteLine($" Type: {type.Key}, Value: {type.Value}");
}
}
}
}
public bool TryGetValue(string mainDeviceName, string subDeviceName, string typeName, out string value)
{
value = null;
return deviceData.TryGetValue(mainDeviceName, out var mainDevice) &&
mainDevice.TryGetValue(subDeviceName, out var subDevice) &&
subDevice.TryGetValue(typeName, out value);
}
public Dictionary<string, Dictionary<string, Dictionary<string, string>>> GetAllData()
{
return deviceData;
}
}
}
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<appSettings>
<!--//日志配置 开启日志-->
<add key="EnableLogging" value="true" />
<!--//日志配置 日志存储周期 默认30天-->
<add key="LogRetentionDays" value="30" />
<!--//日志配置 日志存储路径 暂未使用,存储在跟目录-->
<add key="LogDirectory" value="D:\APILog\MQTTService" />
<!--//日志配置 按日存储-->
<add key="LogSplitStrategy" value="ByDay" />
<!--//日志配置 存储文件大小-->
<add key="MaxLogFileSizeBytes" value="10485760" />
<!--//PLC IP地址 192.168.1.50-->
<add key="PlcIpAddress" value="192.168.1.50" />
<!--//PLC 端口-->
<add key="PlcPort" value="9600" />
<!--//MQTT服务器IP地址 10.22.160.144-->
<add key="MQTTServerAddress" value="10.22.160.144" />
<!--//MQTT服务器端口-->
<add key="MQTTServerPort" value="1883" />
<!--//MQTT服务器发布ID-->
<add key="ClientId" value="601UPW01" />
<!--//MQTT服务发布主题PPM-->
<add key="Topic" value="EVE/60J/EQP/NEW_PPM/601UPW01" />
<!--PPM其他数据-->
<add key="Topic1" value="eve/60J/EQP/601UPW01"/>
<!--直角坐标机械臂-->
<add key="LRobotTopic" value="EVE/60J/LRobot/601PWM01_LUR01"/>
<!--关节机械臂-->
<add key="JRobotTopic" value="EVE/60J/JRobot/601PWM01_STR01"/>
<!--//参数设置 事业部-->
<add key="BU_id" value="EVE2BU" />
<!--//参数设置 地区-->
<add key="District_id" value="JM" />
<!--//参数设置 工厂-->
<add key="Factory_id" value="60J" />
<!--//参数设置 线体号-->
<add key="Production_line_id" value="MW-601" />
<!--//参数设置 设备编号-->
<add key="Device_name" value="601UPW01" />
<!--//线程循环间隔 ms单位-->
<add key="ThreadInterval" value="50" />
<add key="SwitchLog" value="True" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
</configuration>
Binary file not shown.
@@ -0,0 +1,21 @@
正在开始卸载。
查看日志文件的内容以获得 D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog。
卸载完成。
正在运行事务处理安装。
正在开始安装的“安装”阶段。
查看日志文件的内容以获得 C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.InstallLog。
“安装”阶段已成功完成,正在开始“提交”阶段。
查看日志文件的内容以获得 C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.InstallLog。
“提交”阶段已成功完成。
已完成事务处理安装。
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,344 @@
正在安装程序集“E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestService1...
正在日志 Application 中创建 EventLog 源 TestService1...
正在安装程序集“E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestService1...
已成功安装服务 TestService1。
正在日志 Application 中创建 EventLog 源 TestService1...
查看日志文件的内容以获得 E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog。
正在提交程序集“E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在卸载程序集“E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在移除 EventLog 源 TestService1。
正在从系统中移除服务 TestService1...
已成功地从系统中移除服务 TestService1。
正在安装程序集“E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestService1...
已成功安装服务 TestService1。
正在日志 Application 中创建 EventLog 源 TestService1...
查看日志文件的内容以获得 E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog。
正在提交程序集“E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在卸载程序集“E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在移除 EventLog 源 TestService1。
正在从系统中移除服务 TestService1...
已成功地从系统中移除服务 TestService1。
正在安装程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestService1...
已成功安装服务 TestService1。
正在日志 Application 中创建 EventLog 源 TestService1...
查看日志文件的内容以获得 D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog。
正在提交程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在卸载程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在移除 EventLog 源 TestService1。
正在从系统中移除服务 TestService1...
已成功地从系统中移除服务 TestService1。
正在安装程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestService1...
已成功安装服务 TestService1。
正在日志 Application 中创建 EventLog 源 TestService1...
查看日志文件的内容以获得 D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog。
正在提交程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在卸载程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在移除 EventLog 源 TestService1。
正在从系统中移除服务 TestService1...
已成功地从系统中移除服务 TestService1。
正在安装程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestService1...
已成功安装服务 TestService1。
正在日志 Application 中创建 EventLog 源 TestService1...
查看日志文件的内容以获得 D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog。
正在提交程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在卸载程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在移除 EventLog 源 TestService1。
正在从系统中移除服务 TestService1...
已成功地从系统中移除服务 TestService1。
正在安装程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestService1...
已成功安装服务 TestService1。
正在日志 Application 中创建 EventLog 源 TestService1...
查看日志文件的内容以获得 D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog。
正在提交程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在安装程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestMqttService...
已成功安装服务 TestMqttService。
正在日志 Application 中创建 EventLog 源 TestMqttService...
查看日志文件的内容以获得 D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog。
正在提交程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在安装程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestMqttService...
正在日志 Application 中创建 EventLog 源 TestMqttService...
正在安装程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestMqttService...
正在日志 Application 中创建 EventLog 源 TestMqttService...
正在安装程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestMqttService...
已成功安装服务 TestMqttService。
正在日志 Application 中创建 EventLog 源 TestMqttService...
查看日志文件的内容以获得 D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog。
正在提交程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在安装程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestMqttService...
正在日志 Application 中创建 EventLog 源 TestMqttService...
正在卸载程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在移除 EventLog 源 TestMqttService。
正在从系统中移除服务 TestMqttService...
已成功地从系统中移除服务 TestMqttService。
尝试停止服务 TestMqttService。
正在卸载程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在移除 EventLog 源 TestMqttService。
警告: 源 TestMqttService 未在本地计算机上注册。
正在从系统中移除服务 TestMqttService...
已成功地从系统中移除服务 TestMqttService。
尝试停止服务 TestMqttService。
正在卸载程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在移除 EventLog 源 TestMqttService。
警告: 源 TestMqttService 未在本地计算机上注册。
正在从系统中移除服务 TestMqttService...
已成功地从系统中移除服务 TestMqttService。
尝试停止服务 TestMqttService。
正在卸载程序集“D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在移除 EventLog 源 TestMqttService。
警告: 源 TestMqttService 未在本地计算机上注册。
正在从系统中移除服务 TestMqttService...
已成功地从系统中移除服务 TestMqttService。
尝试停止服务 TestMqttService。
正在安装程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在安装服务 TestMqttService...
已成功安装服务 TestMqttService。
正在日志 Application 中创建 EventLog 源 TestMqttService...
正在提交程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在卸载程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在移除 EventLog 源 TestMqttService。
在卸载 System.Diagnostics.EventLogInstaller 安装程序的过程中发生异常。
System.Security.SecurityException: 不允许所请求的注册表访问权。
在卸载的过程中发生异常。将忽略该异常并继续卸载。但是,在卸载完成之后应用程序可能未完全卸载。
正在安装程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
i =
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logtoconsole =
正在安装服务 TestMqttService...
正在日志 Application 中创建 EventLog 源 TestMqttService...
正在回滚程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
i =
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logtoconsole =
正在将事件日志还原到源 TestMqttService 的前一状态。
正在卸载程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在移除 EventLog 源 TestMqttService。
正在从系统中移除服务 TestMqttService...
已成功地从系统中移除服务 TestMqttService。
尝试停止服务 TestMqttService。
正在安装程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
i =
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logtoconsole =
正在安装服务 TestMqttService...
正在日志 Application 中创建 EventLog 源 TestMqttService...
正在回滚程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
i =
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logtoconsole =
正在将事件日志还原到源 TestMqttService 的前一状态。
正在卸载程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在移除 EventLog 源 TestMqttService。
警告: 源 TestMqttService 未在本地计算机上注册。
正在从系统中移除服务 TestMqttService...
已成功地从系统中移除服务 TestMqttService。
尝试停止服务 TestMqttService。
正在卸载程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在移除 EventLog 源 TestMqttService。
警告: 源 TestMqttService 未在本地计算机上注册。
正在从系统中移除服务 TestMqttService...
已成功地从系统中移除服务 TestMqttService。
尝试停止服务 TestMqttService。
正在安装程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
i =
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logtoconsole =
正在安装服务 TestMqttService...
已成功安装服务 TestMqttService。
正在日志 Application 中创建 EventLog 源 TestMqttService...
正在提交程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
i =
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logtoconsole =
正在卸载程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在移除 EventLog 源 TestMqttService。
正在从系统中移除服务 TestMqttService...
已成功地从系统中移除服务 TestMqttService。
尝试停止服务 TestMqttService。
正在安装程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在安装服务 TestMqttService...
已成功安装服务 TestMqttService。
正在日志 Application 中创建 EventLog 源 TestMqttService...
查看日志文件的内容以获得 D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog。
正在提交程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
正在卸载程序集“D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
assemblypath = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
logfile = D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.InstallLog
正在移除 EventLog 源 TestMqttService。
正在从系统中移除服务 TestMqttService...
已成功地从系统中移除服务 TestMqttService。
尝试停止服务 TestMqttService。
正在安装程序集“C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
assemblypath = C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.exe
logfile = C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.InstallLog
没有 RunInstallerAttribute.Yes 的公共安装程序。在 C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.exe 程序集中应该可以找到“Yes”特性。
正在提交程序集“C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
assemblypath = C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.exe
logfile = C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.InstallLog
没有 RunInstallerAttribute.Yes 的公共安装程序。在 C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.exe 程序集中应该可以找到“Yes”特性。
没有安装程序,因此移除 InstallState 文件。
Binary file not shown.
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<appSettings>
<!--//日志配置 开启日志-->
<add key="EnableLogging" value="true" />
<!--//日志配置 日志存储周期 默认30天-->
<add key="LogRetentionDays" value="30" />
<!--//日志配置 日志存储路径 暂未使用,存储在跟目录-->
<add key="LogDirectory" value="D:\APILog\MQTTService" />
<!--//日志配置 按日存储-->
<add key="LogSplitStrategy" value="ByDay" />
<!--//日志配置 存储文件大小-->
<add key="MaxLogFileSizeBytes" value="10485760" />
<!--//PLC IP地址 192.168.1.50-->
<add key="PlcIpAddress" value="192.168.1.50" />
<!--//PLC 端口-->
<add key="PlcPort" value="9600" />
<!--//MQTT服务器IP地址 10.22.160.144-->
<add key="MQTTServerAddress" value="10.22.160.144" />
<!--//MQTT服务器端口-->
<add key="MQTTServerPort" value="1883" />
<!--//MQTT服务器发布ID-->
<add key="ClientId" value="601UPW01" />
<!--//MQTT服务发布主题PPM-->
<add key="Topic" value="EVE/60J/EQP/NEW_PPM/601UPW01" />
<!--PPM其他数据-->
<add key="Topic1" value="eve/60J/EQP/601UPW01"/>
<!--直角坐标机械臂-->
<add key="LRobotTopic" value="EVE/60J/LRobot/601PWM01_LUR01"/>
<!--关节机械臂-->
<add key="JRobotTopic" value="EVE/60J/JRobot/601PWM01_STR01"/>
<!--//参数设置 事业部-->
<add key="BU_id" value="EVE2BU" />
<!--//参数设置 地区-->
<add key="District_id" value="JM" />
<!--//参数设置 工厂-->
<add key="Factory_id" value="60J" />
<!--//参数设置 线体号-->
<add key="Production_line_id" value="MW-601" />
<!--//参数设置 设备编号-->
<add key="Device_name" value="601UPW01" />
<!--//线程循环间隔 ms单位-->
<add key="ThreadInterval" value="50" />
<add key="SwitchLog" value="True" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
</configuration>
Binary file not shown.
+62
View File
@@ -0,0 +1,62 @@
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<!-- 错误日志类 -->
<logger name="logerror">
<level value="ALL" />
<appender-ref ref="ErrorAppender" />
</logger>
<!-- 信息日志类 -->
<logger name="loginfo">
<level value="ALL" />
<appender-ref ref="InfoAppender" />
</logger>
<!-- MQTT日志类 -->
<logger name="logmqtt">
<level value="ALL" />
<appender-ref ref="MqttAppender" />
</logger>
<!-- MQTT日志附加介质 -->
<appender name="MqttAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogMqtt\\" />
<param name="AppendToFile" value="true" />
<param name="StaticLogFileName" value="false" />
<param name="RollingStyle" value="Composite" />
<param name="DatePattern" value="'\\\\' yyyyMMdd'\\\\log_'HH'.htm'" />
<param name="LockingModel" type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="&lt;HR COLOR=blue&gt;%n日志时间:%d [%t] &lt;BR&gt;%n日志级别:%-5p &lt;BR&gt;%n日 志 类:%c [%x] &lt;BR&gt;%n%m &lt;BR&gt;%n &lt;HR Size=1&gt;" />
</layout>
</appender>
<!-- 错误日志附加介质 -->
<appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogError\\" />
<param name="AppendToFile" value="true" />
<param name="StaticLogFileName" value="false" />
<param name="RollingStyle" value="Composite" />
<param name="DatePattern" value="'\\\\' yyyyMMdd'\\\\log_'HH'.htm'" />
<param name="LockingModel" type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="&lt;HR COLOR=red&gt;%n异常时间:%d [%t] &lt;BR&gt;%n异常级别:%-5p &lt;BR&gt;%n异 常 类:%c [%x] &lt;BR&gt;%n%m &lt;BR&gt;%n &lt;HR Size=1&gt;" />
</layout>
</appender>
<!-- 信息日志附加介质 -->
<appender name="InfoAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogInfo\\" />
<param name="AppendToFile" value="true" />
<param name="StaticLogFileName" value="false" />
<param name="RollingStyle" value="Composite" />
<param name="DatePattern" value="'\\\\' yyyyMMdd'\\\\log_'HH'.htm'" />
<param name="LockingModel" type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="&lt;HR COLOR=blue&gt;%n日志时间:%d [%t] &lt;BR&gt;%n日志级别:%-5p &lt;BR&gt;%n日 志 类:%c [%x] &lt;BR&gt;%n%m &lt;BR&gt;%n &lt;HR Size=1&gt;" />
</layout>
</appender>
</log4net>
</configuration>
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
+2
View File
@@ -0,0 +1,2 @@
net stop TestMqttService
pause
+3
View File
@@ -0,0 +1,3 @@
net stop TestMqttService
sc delete TestMqttService binPath= "%~dp0JDWindowsService.exe" start= auto
pause
+3
View File
@@ -0,0 +1,3 @@
sc create TestMqttService binPath= "%~dp0WindowsService1.exe" start= auto
net start TestMqttService
pause
+62
View File
@@ -0,0 +1,62 @@
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<!-- 错误日志类 -->
<logger name="logerror">
<level value="ALL" />
<appender-ref ref="ErrorAppender" />
</logger>
<!-- 信息日志类 -->
<logger name="loginfo">
<level value="ALL" />
<appender-ref ref="InfoAppender" />
</logger>
<!-- MQTT日志类 -->
<logger name="logmqtt">
<level value="ALL" />
<appender-ref ref="MqttAppender" />
</logger>
<!-- MQTT日志附加介质 -->
<appender name="MqttAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogMqtt\\" />
<param name="AppendToFile" value="true" />
<param name="StaticLogFileName" value="false" />
<param name="RollingStyle" value="Composite" />
<param name="DatePattern" value="'\\\\' yyyyMMdd'\\\\log_'HH'.htm'" />
<param name="LockingModel" type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="&lt;HR COLOR=blue&gt;%n日志时间:%d [%t] &lt;BR&gt;%n日志级别:%-5p &lt;BR&gt;%n日 志 类:%c [%x] &lt;BR&gt;%n%m &lt;BR&gt;%n &lt;HR Size=1&gt;" />
</layout>
</appender>
<!-- 错误日志附加介质 -->
<appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogError\\" />
<param name="AppendToFile" value="true" />
<param name="StaticLogFileName" value="false" />
<param name="RollingStyle" value="Composite" />
<param name="DatePattern" value="'\\\\' yyyyMMdd'\\\\log_'HH'.htm'" />
<param name="LockingModel" type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="&lt;HR COLOR=red&gt;%n异常时间:%d [%t] &lt;BR&gt;%n异常级别:%-5p &lt;BR&gt;%n异 常 类:%c [%x] &lt;BR&gt;%n%m &lt;BR&gt;%n &lt;HR Size=1&gt;" />
</layout>
</appender>
<!-- 信息日志附加介质 -->
<appender name="InfoAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogInfo\\" />
<param name="AppendToFile" value="true" />
<param name="StaticLogFileName" value="false" />
<param name="RollingStyle" value="Composite" />
<param name="DatePattern" value="'\\\\' yyyyMMdd'\\\\log_'HH'.htm'" />
<param name="LockingModel" type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="&lt;HR COLOR=blue&gt;%n日志时间:%d [%t] &lt;BR&gt;%n日志级别:%-5p &lt;BR&gt;%n日 志 类:%c [%x] &lt;BR&gt;%n%m &lt;BR&gt;%n &lt;HR Size=1&gt;" />
</layout>
</appender>
</log4net>
</configuration>
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8.1", FrameworkDisplayName = ".NET Framework 4.8.1")]
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
@@ -0,0 +1 @@
92bc4b2a3314613a727caae5a56a5a405caf66fa49484abce6f85e4ef18c57c9
@@ -0,0 +1,348 @@
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\bin\Debug\Config.xml
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\bin\Debug\log4net.config
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\bin\Debug\IOT.Services.exe
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\bin\Debug\IOT.Services.pdb
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\bin\Debug\DataConvertLib.dll
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\bin\Debug\log4net.dll
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\bin\Debug\PLCCommunication.dll
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\bin\Debug\log4net.pdb
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\bin\Debug\log4net.xml
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\obj\Debug\IOT.Serv.4029DC49.Up2Date
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\obj\Debug\IOT.Services.exe
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-5 负极汇流盘焊接机\LargeSquareOne\IOT.Services\obj\Debug\IOT.Services.pdb
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\bin\Debug\Config.xml
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\bin\Debug\log4net.config
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\bin\Debug\IOT.Services.exe
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\bin\Debug\IOT.Services.pdb
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\bin\Debug\DataConvertLib.dll
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\bin\Debug\log4net.dll
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\bin\Debug\PLCCommunication.dll
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\bin\Debug\log4net.pdb
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\bin\Debug\log4net.xml
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\obj\Debug\IOT.Serv.4029DC49.Up2Date
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\obj\Debug\IOT.Services.exe
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\LargeSquareOne\IOT.Services\obj\Debug\IOT.Services.pdb
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\bin\Debug\Config.xml
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\bin\Debug\log4net.config
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\bin\Debug\IOT.Services.exe
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\bin\Debug\IOT.Services.pdb
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\bin\Debug\log4net.dll
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\bin\Debug\PLCCommunication.dll
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\bin\Debug\log4net.pdb
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\bin\Debug\log4net.xml
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\obj\Debug\IOT.Serv.4029DC49.Up2Date
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\obj\Debug\IOT.Services.exe
D:\JY_项目\2024年项目\匈牙利项目\1095大圆柱项目\JY-44J-1095-3 入壳机\1095-3C\1095-3C\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\bin\Debug\Config.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\bin\Debug\log4net.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\bin\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\bin\Debug\log4net.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\bin\Debug\log4net.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\bin\Debug\log4net.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\obj\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\1095-3C\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\bin\Debug\Config.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\bin\Debug\log4net.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\bin\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\bin\Debug\log4net.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\bin\Debug\log4net.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\bin\Debug\log4net.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\obj\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-13一次外观检测机\S1095-13C一次外观检测机\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\bin\Debug\Config.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\bin\Debug\log4net.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\bin\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\bin\Debug\log4net.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\bin\Debug\log4net.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\bin\Debug\log4net.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\obj\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\bin\Debug\Config.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\bin\Debug\log4net.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\bin\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\bin\Debug\log4net.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\bin\Debug\log4net.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\bin\Debug\log4net.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\obj\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-1\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Program\S1095-14滚标机-1\IOT.Services\bin\Debug\Config.xml
D:\Program\S1095-14滚标机-1\IOT.Services\bin\Debug\log4net.config
D:\Program\S1095-14滚标机-1\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Program\S1095-14滚标机-1\IOT.Services\bin\Debug\IOT.Services.exe
D:\Program\S1095-14滚标机-1\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Program\S1095-14滚标机-1\IOT.Services\bin\Debug\log4net.dll
D:\Program\S1095-14滚标机-1\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Program\S1095-14滚标机-1\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Program\S1095-14滚标机-1\IOT.Services\bin\Debug\log4net.pdb
D:\Program\S1095-14滚标机-1\IOT.Services\bin\Debug\log4net.xml
D:\Program\S1095-14滚标机-1\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Program\S1095-14滚标机-1\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Program\S1095-14滚标机-1\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Program\S1095-14滚标机-1\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Program\S1095-14滚标机-1\IOT.Services\obj\Debug\IOT.Services.exe
D:\Program\S1095-14滚标机-1\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Program\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\Config.xml
D:\Program\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.config
D:\Program\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Program\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\IOT.Services.exe
D:\Program\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Program\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.dll
D:\Program\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Program\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Program\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.pdb
D:\Program\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.xml
D:\Program\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Program\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Program\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Program\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Program\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.exe
D:\Program\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\Config.xml
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.config
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\IOT.Services.exe
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.dll
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.pdb
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.xml
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.exe
D:\Program\S1095-14滚标机-数据逻辑更改(测试版)\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\Config.xml
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.config
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\IOT.Services.exe
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.dll
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.pdb
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.xml
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.exe
D:\Program\S1095-14滚标机-稳产\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\Config.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\bin\Debug\log4net.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250804back\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\bin\Debug\Config.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\bin\Debug\log4net.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\bin\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\bin\Debug\log4net.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\bin\Debug\log4net.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\bin\Debug\log4net.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\obj\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250819_测试版\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\Config.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\log4net.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\log4net.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\log4net.pdb
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\log4net.xml
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\obj\Debug\IOT.Services.exe
D:\Users\10004998\Downloads\H491亿纬辽宁沈阳\491线模版\程序模版\S1095-14滚标机\S1095-14滚标机-20250821_测试版\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\Config.xml
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\log4net.config
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\IOT.Services.exe
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\log4net.dll
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\log4net.pdb
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\bin\Debug\log4net.xml
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\obj\Debug\IOT.Services.exe
D:\Program\S1095-14滚标机-20250821_测试版\IOT.Services\obj\Debug\IOT.Services.pdb
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\bin\Debug\Config.xml
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\bin\Debug\log4net.config
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\bin\Debug\IOT.Services.exe
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\bin\Debug\IOT.Services.pdb
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\bin\Debug\log4net.dll
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\bin\Debug\PLCCommunication.dll
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\bin\Debug\log4net.pdb
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\bin\Debug\log4net.xml
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.SuggestedBindingRedirects.cache
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\obj\Debug\IOT.Services.csproj.CopyComplete
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\obj\Debug\IOT.Services.exe
D:\Program\S1095-14滚标机-20250824_测试版\IOT.Services\obj\Debug\IOT.Services.pdb
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\bin\Debug\Config.xml
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\bin\Debug\log4net.config
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\bin\Debug\IOT.Services.exe
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\bin\Debug\IOT.Services.pdb
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\bin\Debug\log4net.dll
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\bin\Debug\PLCCommunication.dll
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\bin\Debug\log4net.pdb
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\bin\Debug\log4net.xml
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\obj\Debug\IOT.Serv.4029DC49.Up2Date
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\obj\Debug\IOT.Services.exe
D:\上位机程序\S1095-14滚标机-20250824_测试版com\IOT.Services\obj\Debug\IOT.Services.pdb
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\bin\Debug\Config.xml
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\bin\Debug\log4net.config
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\bin\Debug\IOT.Services.exe
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\bin\Debug\IOT.Services.pdb
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\bin\Debug\log4net.dll
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\bin\Debug\PLCCommunication.dll
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\bin\Debug\log4net.pdb
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\bin\Debug\log4net.xml
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\obj\Debug\IOT.Serv.4029DC49.Up2Date
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\obj\Debug\IOT.Services.exe
D:\上位机程序\431-1398-14-滚标机 0731\IOT.Services\obj\Debug\IOT.Services.pdb
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\Config.xml
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\log4net.config
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\IOT.Services.exe.config
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\IOT.Services.exe
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\IOT.Services.pdb
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\log4net.dll
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\Newtonsoft.Json.dll
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\PLCCommunication.dll
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\log4net.pdb
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\log4net.xml
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\obj\Debug\IOT.Serv.4029DC49.Up2Date
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\obj\Debug\IOT.Services.exe
D:\上位机程序\431-1398-14-滚标机 0901\IOT.Services\obj\Debug\IOT.Services.pdb
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\Config.xml
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\log4net.config
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\IOT.Services.exe.config
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\IOT.Services.exe
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\IOT.Services.pdb
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\log4net.dll
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\Newtonsoft.Json.dll
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\PLCCommunication.dll
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\log4net.pdb
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\bin\Debug\log4net.xml
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\obj\Debug\IOT.Services.exe.config
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\obj\Debug\IOT.Serv.4029DC49.Up2Date
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\obj\Debug\IOT.Services.exe
F:\workspaces\431-1398-14-滚标机 0901\IOT.Services\obj\Debug\IOT.Services.pdb
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\bin\Debug\Config.xml
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\bin\Debug\log4net.config
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\bin\Debug\IOT.Services.exe.config
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\bin\Debug\IOT.Services.exe
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\bin\Debug\IOT.Services.pdb
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\bin\Debug\log4net.dll
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\bin\Debug\Newtonsoft.Json.dll
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\bin\Debug\PLCCommunication.dll
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\bin\Debug\log4net.pdb
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\bin\Debug\log4net.xml
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\obj\Debug\IOT.Services.exe.config
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\obj\Debug\IOT.Serv.4029DC49.Up2Date
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\obj\Debug\IOT.Services.exe
F:\workspaces\431-1398-14-滚标机 0902-无散喷-无补传-部署版本1\IOT.Services\obj\Debug\IOT.Services.pdb
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\bin\Debug\Config.xml
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\bin\Debug\log4net.config
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\bin\Debug\IOT.Services.exe.config
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\bin\Debug\IOT.Services.exe
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\bin\Debug\IOT.Services.pdb
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\bin\Debug\log4net.dll
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\bin\Debug\Newtonsoft.Json.dll
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\bin\Debug\PLCCommunication.dll
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\bin\Debug\log4net.pdb
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\bin\Debug\log4net.xml
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\obj\Debug\IOT.Services.csproj.AssemblyReference.cache
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\obj\Debug\IOT.Services.exe.config
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\obj\Debug\IOT.Services.csproj.CoreCompileInputs.cache
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\obj\Debug\IOT.Serv.4029DC49.Up2Date
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\obj\Debug\IOT.Services.exe
F:\workspaces\滚标机\431-1398-14-滚标机 0905\IOT.Services\obj\Debug\IOT.Services.pdb
Binary file not shown.
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<appSettings>
<!--//日志配置 开启日志-->
<add key="EnableLogging" value="true" />
<!--//日志配置 日志存储周期 默认30天-->
<add key="LogRetentionDays" value="30" />
<!--//日志配置 日志存储路径 暂未使用,存储在跟目录-->
<add key="LogDirectory" value="D:\APILog\MQTTService" />
<!--//日志配置 按日存储-->
<add key="LogSplitStrategy" value="ByDay" />
<!--//日志配置 存储文件大小-->
<add key="MaxLogFileSizeBytes" value="10485760" />
<!--//PLC IP地址 192.168.1.50-->
<add key="PlcIpAddress" value="192.168.1.50" />
<!--//PLC 端口-->
<add key="PlcPort" value="9600" />
<!--//MQTT服务器IP地址 10.22.160.144-->
<add key="MQTTServerAddress" value="10.22.160.144" />
<!--//MQTT服务器端口-->
<add key="MQTTServerPort" value="1883" />
<!--//MQTT服务器发布ID-->
<add key="ClientId" value="601UPW01" />
<!--//MQTT服务发布主题PPM-->
<add key="Topic" value="EVE/60J/EQP/NEW_PPM/601UPW01" />
<!--PPM其他数据-->
<add key="Topic1" value="eve/60J/EQP/601UPW01"/>
<!--直角坐标机械臂-->
<add key="LRobotTopic" value="EVE/60J/LRobot/601PWM01_LUR01"/>
<!--关节机械臂-->
<add key="JRobotTopic" value="EVE/60J/JRobot/601PWM01_STR01"/>
<!--//参数设置 事业部-->
<add key="BU_id" value="EVE2BU" />
<!--//参数设置 地区-->
<add key="District_id" value="JM" />
<!--//参数设置 工厂-->
<add key="Factory_id" value="60J" />
<!--//参数设置 线体号-->
<add key="Production_line_id" value="MW-601" />
<!--//参数设置 设备编号-->
<add key="Device_name" value="601UPW01" />
<!--//线程循环间隔 ms单位-->
<add key="ThreadInterval" value="50" />
<add key="SwitchLog" value="True" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
</configuration>
Binary file not shown.
@@ -0,0 +1 @@
0b22c4daf96d6808ec753ee36a74e1cba47266d3
@@ -0,0 +1,178 @@
E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\log4net.config
E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe.config
E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\WindowsService1.pdb
E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\log4net.dll
E:\CSharp Project\Other\WindowsService1\WindowsService1\bin\Debug\log4net.xml
E:\CSharp Project\Other\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.AssemblyReference.cache
E:\CSharp Project\Other\WindowsService1\WindowsService1\obj\Debug\WindowsService1.ProjectInstaller.resources
E:\CSharp Project\Other\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.GenerateResource.cache
E:\CSharp Project\Other\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CoreCompileInputs.cache
E:\CSharp Project\Other\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CopyComplete
E:\CSharp Project\Other\WindowsService1\WindowsService1\obj\Debug\WindowsService1.exe
E:\CSharp Project\Other\WindowsService1\WindowsService1\obj\Debug\WindowsService1.pdb
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\log4net.config
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe.config
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\WindowsService1.pdb
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\log4net.dll
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\log4net.xml
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.AssemblyReference.cache
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\obj\Debug\WindowsService1.ProjectInstaller.resources
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.GenerateResource.cache
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CoreCompileInputs.cache
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\obj\Debug\WindowsS.24B08AB2.Up2Date
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\obj\Debug\WindowsService1.exe
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\obj\Debug\WindowsService1.pdb
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\DataConvertLib.dll
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\MQTTnet.dll
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\Newtonsoft.Json.dll
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\PLCCommunication.dll
D:\小米\C# Windows 服务程序的开发\WindowsService1\WindowsService1\bin\Debug\MQTTnet.xml
D:\小米\WindowsService1\WindowsService1\bin\Debug\log4net.config
D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe.config
D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
D:\小米\WindowsService1\WindowsService1\bin\Debug\DataConvertLib.dll
D:\小米\WindowsService1\WindowsService1\bin\Debug\log4net.dll
D:\小米\WindowsService1\WindowsService1\bin\Debug\MQTTnet.dll
D:\小米\WindowsService1\WindowsService1\bin\Debug\Newtonsoft.Json.dll
D:\小米\WindowsService1\WindowsService1\bin\Debug\PLCCommunication.dll
D:\小米\WindowsService1\WindowsService1\bin\Debug\log4net.xml
D:\小米\WindowsService1\WindowsService1\bin\Debug\MQTTnet.xml
D:\小米\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.AssemblyReference.cache
D:\小米\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CoreCompileInputs.cache
D:\小米\WindowsService1\WindowsService1\obj\Debug\WindowsS.24B08AB2.Up2Date
D:\小米\WindowsService1\WindowsService1\obj\Debug\WindowsService1.exe
D:\小米\WindowsService1\WindowsService1\obj\Debug\WindowsService1.pdb
D:\小米\WindowsService1\WindowsService1\bin\Debug\WindowsService1.pdb
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\bin\Debug\log4net.config
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe.config
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\bin\Debug\WindowsService1.pdb
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\bin\Debug\DataConvertLib.dll
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\bin\Debug\log4net.dll
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\bin\Debug\MQTTnet.dll
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\bin\Debug\Newtonsoft.Json.dll
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\bin\Debug\PLCCommunication.dll
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\bin\Debug\log4net.xml
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\bin\Debug\MQTTnet.xml
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.AssemblyReference.cache
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.SuggestedBindingRedirects.cache
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CoreCompileInputs.cache
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CopyComplete
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\obj\Debug\WindowsService1.exe
D:\上位机与电气通讯文档\WindowsService1\WindowsService1\obj\Debug\WindowsService1.pdb
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\bin\Debug\log4net.config
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe.config
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\bin\Debug\WindowsService1.pdb
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\bin\Debug\DataConvertLib.dll
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\bin\Debug\log4net.dll
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\bin\Debug\Newtonsoft.Json.dll
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\bin\Debug\PLCCommunication.dll
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\bin\Debug\log4net.xml
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.AssemblyReference.cache
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CoreCompileInputs.cache
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\obj\Debug\WindowsS.24B08AB2.Up2Date
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\obj\Debug\WindowsService1.exe
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\obj\Debug\WindowsService1.pdb
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\bin\Debug\log4net.pdb
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\bin\Debug\log4net.config
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe.config
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\bin\Debug\WindowsService1.pdb
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\bin\Debug\DataConvertLib.dll
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\bin\Debug\log4net.dll
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\bin\Debug\Newtonsoft.Json.dll
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\bin\Debug\PLCCommunication.dll
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\bin\Debug\log4net.pdb
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\bin\Debug\log4net.xml
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.AssemblyReference.cache
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.SuggestedBindingRedirects.cache
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CoreCompileInputs.cache
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CopyComplete
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\obj\Debug\WindowsService1.exe
D:\上位机与电气通讯文档\20240918\WindowsService1\WindowsService1\obj\Debug\WindowsService1.pdb
E:\JY_项目\1086大方形\IOT\WindowsService1\WindowsService1\bin\Debug\Device.xml
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\bin\Debug\log4net.config
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe.config
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\bin\Debug\WindowsService1.pdb
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\bin\Debug\DataConvertLib.dll
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\bin\Debug\log4net.dll
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\bin\Debug\Newtonsoft.Json.dll
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\bin\Debug\PLCCommunication.dll
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\bin\Debug\log4net.pdb
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\bin\Debug\log4net.xml
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.AssemblyReference.cache
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CoreCompileInputs.cache
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\obj\Debug\WindowsS.24B08AB2.Up2Date
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\obj\Debug\WindowsService1.exe
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\obj\Debug\WindowsService1.pdb
D:\JY_项目\1086大方形\IOT\测试服务\WindowsService1\WindowsService1\bin\Debug\Config.xml
C:\Users\aa\Desktop\WindowsService1\bin\Debug\Config.xml
C:\Users\aa\Desktop\WindowsService1\bin\Debug\log4net.config
C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.exe.config
C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.exe
C:\Users\aa\Desktop\WindowsService1\bin\Debug\WindowsService1.pdb
C:\Users\aa\Desktop\WindowsService1\bin\Debug\DataConvertLib.dll
C:\Users\aa\Desktop\WindowsService1\bin\Debug\log4net.dll
C:\Users\aa\Desktop\WindowsService1\bin\Debug\Newtonsoft.Json.dll
C:\Users\aa\Desktop\WindowsService1\bin\Debug\PLCCommunication.dll
C:\Users\aa\Desktop\WindowsService1\bin\Debug\log4net.pdb
C:\Users\aa\Desktop\WindowsService1\bin\Debug\log4net.xml
C:\Users\aa\Desktop\WindowsService1\obj\Debug\WindowsService1.csproj.AssemblyReference.cache
C:\Users\aa\Desktop\WindowsService1\obj\Debug\WindowsService1.csproj.CoreCompileInputs.cache
C:\Users\aa\Desktop\WindowsService1\obj\Debug\WindowsS.24B08AB2.Up2Date
C:\Users\aa\Desktop\WindowsService1\obj\Debug\WindowsService1.exe
C:\Users\aa\Desktop\WindowsService1\obj\Debug\WindowsService1.pdb
C:\Users\28298\Desktop\WindowsService1\WindowsService1\bin\Debug\Config.xml
C:\Users\28298\Desktop\WindowsService1\WindowsService1\bin\Debug\log4net.config
C:\Users\28298\Desktop\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe.config
C:\Users\28298\Desktop\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
C:\Users\28298\Desktop\WindowsService1\WindowsService1\bin\Debug\WindowsService1.pdb
C:\Users\28298\Desktop\WindowsService1\WindowsService1\bin\Debug\DataConvertLib.dll
C:\Users\28298\Desktop\WindowsService1\WindowsService1\bin\Debug\log4net.dll
C:\Users\28298\Desktop\WindowsService1\WindowsService1\bin\Debug\Newtonsoft.Json.dll
C:\Users\28298\Desktop\WindowsService1\WindowsService1\bin\Debug\PLCCommunication.dll
C:\Users\28298\Desktop\WindowsService1\WindowsService1\bin\Debug\log4net.pdb
C:\Users\28298\Desktop\WindowsService1\WindowsService1\bin\Debug\log4net.xml
C:\Users\28298\Desktop\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.AssemblyReference.cache
C:\Users\28298\Desktop\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CoreCompileInputs.cache
C:\Users\28298\Desktop\WindowsService1\WindowsService1\obj\Debug\WindowsS.24B08AB2.Up2Date
C:\Users\28298\Desktop\WindowsService1\WindowsService1\obj\Debug\WindowsService1.exe
C:\Users\28298\Desktop\WindowsService1\WindowsService1\obj\Debug\WindowsService1.pdb
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\bin\Debug\Config.xml
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\bin\Debug\log4net.config
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe.config
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\bin\Debug\WindowsService1.pdb
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\bin\Debug\DataConvertLib.dll
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\bin\Debug\log4net.dll
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\bin\Debug\Newtonsoft.Json.dll
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\bin\Debug\PLCCommunication.dll
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\bin\Debug\log4net.pdb
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\bin\Debug\log4net.xml
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.AssemblyReference.cache
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.SuggestedBindingRedirects.cache
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CoreCompileInputs.cache
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\obj\Debug\WindowsService1.csproj.CopyComplete
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\obj\Debug\WindowsService1.exe
D:\2024_9_2\IOT\1-2\WindowsService1\WindowsService1\obj\Debug\WindowsService1.pdb
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\bin\Debug\Config.xml
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\bin\Debug\log4net.config
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\bin\Debug\WindowsService1.exe.config
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\bin\Debug\WindowsService1.exe
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\bin\Debug\WindowsService1.pdb
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\bin\Debug\DataConvertLib.dll
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\bin\Debug\log4net.dll
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\bin\Debug\Newtonsoft.Json.dll
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\bin\Debug\PLCCommunication.dll
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\bin\Debug\log4net.pdb
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\bin\Debug\log4net.xml
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\obj\Debug\WindowsService1.csproj.AssemblyReference.cache
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\obj\Debug\WindowsService1.csproj.SuggestedBindingRedirects.cache
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\obj\Debug\WindowsService1.csproj.CoreCompileInputs.cache
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\obj\Debug\WindowsService1.csproj.CopyComplete
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\obj\Debug\WindowsService1.exe
D:\2024_9_2\IOT\1-2\WindowsService1-0107\WindowsService1\obj\Debug\WindowsService1.pdb
Binary file not shown.
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="3.0.0" targetFramework="net48" />
</packages>