| | |
| | | using Admin.NET.Core.Service; |
| | | using Furion.Logging; |
| | | using Furion.Logging; |
| | | using Microsoft.AspNetCore.SignalR; |
| | | |
| | | namespace WCS.Application; |
| | | public static class PLCTaskAction |
| | | { |
| | | //服务运行状态 |
| | | public static bool boRunningState = false; |
| | | |
| | | private static readonly ISqlSugarClient _db = SqlSugarSetup.ITenant.GetConnectionScope(SqlSugarConst.MainConfigId); |
| | | |
| | | private static List<WcsPlc> listPlc; |
| | |
| | | listPlcUtil.Add(plc); |
| | | } |
| | | cts = new CancellationTokenSource(); |
| | | boRunningState = true; |
| | | StartRead(); |
| | | } |
| | | /// <summary> |
| | |
| | | public static void Stop() |
| | | { |
| | | cts.Cancel(); |
| | | boRunningState = false; |
| | | } |
| | | } |