1
z8018
2025-06-10 e46aa927d231af83724683c7286d9db503e24cf7
ÏîÄ¿´úÂë/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
@@ -34,6 +34,16 @@
namespace WIDESEAWCS_Tasks
{
    /// <summary>
    /// é€šç”¨è¾“送线任务,负责处理输送线设备的通信与任务执行
    /// </summary>
    /// <remarks>
    /// 1. é€šè¿‡PLC通信读取设备状态和条码信息 <br/>
    /// 2. æ ¹æ®æ¡ç æŸ¥è¯¢äº§å“ä¿¡æ¯å’ŒåŽ»å‘å·¥ä½ <br/>
    /// 3. å°†äº§å“å°ºå¯¸å’ŒåŽ»å‘ä¿¡æ¯å†™å…¥PLC <br/>
    /// 4. å¤„理异常情况并记录错误日志
    /// </remarks>
    /// <attribute>[DisallowConcurrentExecution]</attribute>
    [DisallowConcurrentExecution]
    public class CommonConveyorLineJob : JobBase, IJob
    {
@@ -59,10 +69,8 @@
            try
            {
                bool flag = context.JobDetail.JobDataMap.TryGetValue("JobParams", out object? value);
                if (flag && value != null && value is OtherDevice)
                if (flag && value != null && value is OtherDevice otherDevice)
                {
                    OtherDevice otherDevice = (OtherDevice)value;
                    bool request = otherDevice.Communicator.Read<bool>("DB15.22.0");   //申请
                    bool response = otherDevice.Communicator.Read<bool>("DB15.22.1");   //应答