Commit e373bcae 张东亮

光栅屏蔽可配置

1 个父辈 780a7474
......@@ -151,6 +151,8 @@ namespace OnlineStore.Common
public static MyConfig<bool> Disable_SingleDoor = false;
[MyConfigComment("屏蔽料串门")]
public static MyConfig<bool> Disable_StringDoor = false;
[MyConfigComment("屏蔽光栅")]
public static MyConfig<bool> Disable_SafetyLightCurtains = false;
[MyConfigComment("关闭日志窗口")]
public static MyConfig<bool> Disable_LogWindow = true;
[MyConfigComment("屏蔽门安全检查")]
......
......@@ -39,6 +39,13 @@ namespace DeviceLibrary
IO_VALUE ioValue = IO_VALUE.LOW;
if (StoreManager.Config.DIList.ContainsKey(ioType))
{
if (IO_Type.SafetyLightCurtains.Equals(ioType))
{
if (Setting_Init.Disable_SafetyLightCurtains)
{
return IO_VALUE.HIGH;
}
}
ConfigIO configIo = StoreManager.Config.DIList[ioType];
ioValue = instance.GetDIValue(configIo.DeviceName, configIo.SlaveID, configIo.GetIOAddr());
//UpdateDoValue(ioType, ioValue);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!