Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1131-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 3dac20b8
由
张东亮
编写于
2023-02-15 09:50:08 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
三色灯逻辑优化
1 个父辈
b6dbd966
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
36 行增加
和
36 行删除
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
source/DeviceLibrary/storeBean/EquipBase.cs
source/DeviceLibrary/storeBean/inputBean/InputEquip.cs
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
查看文件 @
3dac20b
...
...
@@ -207,7 +207,10 @@ namespace OnlineStore.DeviceLibrary
SaveNGImageToFile
(
deviceName
,
cameraName
+
nameStr
,
bmp
);
}
SaveOKImageToFile
(
deviceName
,
cameraName
,
bmp
);
else
{
SaveOKImageToFile
(
deviceName
,
cameraName
,
bmp
);
}
}
if
(
deviceName
!=
""
||
r
!=
""
)
{
...
...
@@ -415,11 +418,11 @@ namespace OnlineStore.DeviceLibrary
string
iamgeName
=
date
+
".bmp"
;
try
{
Bitmap
bit
=
(
Bitmap
)
bitmap
.
Clone
();
if
(
Directory
.
Exists
(
dire
).
Equals
(
false
))
{
Directory
.
CreateDirectory
(
dire
);
}
Bitmap
bit
=
(
Bitmap
)
bitmap
.
Clone
();
//deleteFiles(dire);
bit
.
Save
(
dire
+
iamgeName
,
ImageFormat
.
Bmp
);
bit
.
Dispose
();
...
...
@@ -439,14 +442,16 @@ namespace OnlineStore.DeviceLibrary
string
iamgeName
=
date
+
".bmp"
;
try
{
Bitmap
bit
=
(
Bitmap
)
bitmap
.
Clone
();
if
(
Directory
.
Exists
(
dire
).
Equals
(
false
))
{
Directory
.
CreateDirectory
(
dire
);
}
deleteFiles
(
dire
);
bit
.
Save
(
dire
+
iamgeName
,
ImageFormat
.
Bmp
);
bit
.
Dispose
();
using
(
Bitmap
bit
=
(
Bitmap
)
bitmap
.
Clone
())
{
deleteFiles
(
dire
);
bit
.
Save
(
dire
+
iamgeName
,
ImageFormat
.
Bmp
);
// bit.Dispose();
}
LogUtil
.
info
(
deviceName
+
" 【"
+
cameraName
+
"】保存OK图片到【"
+
dire
+
iamgeName
+
"】成功"
);
}
...
...
source/DeviceLibrary/storeBean/EquipBase.cs
查看文件 @
3dac20b
...
...
@@ -198,7 +198,7 @@ namespace OnlineStore.DeviceLibrary
//空闲时,自动清除
if
(
runStatus
==
RunStatus
.
Runing
)
{
if
(!
string
.
IsNullOrEmpty
(
WarnMsg
))
if
(!
string
.
IsNullOrEmpty
(
WarnMsg
))
{
WarnMsg
=
""
;
}
...
...
@@ -561,27 +561,19 @@ namespace OnlineStore.DeviceLibrary
{
yellowMove
=
true
;
}
if
(
isInSuddenDown
||
isNoAirpressure_Check
||
alarmType
>=
alarmRedLedType
)
if
(
isInSuddenDown
||
isNoAirpressure_Check
||
alarmType
>=
alarmRedLedType
||
MoveStop
||
!
string
.
IsNullOrEmpty
(
WarnMsg
))
{
isNeedAlarmLed
=
true
;
}
else
if
(
alarmType
.
Equals
(
AlarmType
.
None
).
Equals
(
false
)
||
MoveStop
)
{
yellowMove
=
true
;
}
if
(
isNoAirpressure_Check
||
isInSuddenDown
||
alarmType
>=
alarmRedLedType
)
{
isNeedAlarmLed
=
true
;
}
else
if
(
alarmType
.
Equals
(
AlarmType
.
None
).
Equals
(
false
))
if
(
alarmType
.
Equals
(
AlarmType
.
None
).
Equals
(
false
))
{
yellowMove
=
true
;
}
//黄灯
if
(
yellowMove
)
{
...
...
source/DeviceLibrary/storeBean/inputBean/InputEquip.cs
查看文件 @
3dac20b
...
...
@@ -565,34 +565,37 @@ namespace OnlineStore.DeviceLibrary
{
return
;
}
if
(
CurrSecurityAccess
.
Equals
(
0
))
if
(
!
StoreManager
.
DisSecurityAccess
)
//未屏蔽光栅
{
if
(
StoreManager
.
DisSecurityAccess
)
if
(
CurrSecurityAccess
.
Equals
(
0
)
)
{
if
(
IOValue
(
IO_Type
.
Shelf_SafetyRasterSignal
).
Equals
(
IO_VALUE
.
LOW
))
{
SecurityAccessStop
();
}
else
if
(
IOValue
(
IO_Type
.
TurnoverBox_SafetyRasterSignal
).
Equals
(
IO_VALUE
.
LOW
))
{
SecurityAccessStop
();
}
}
else
if
(
IOValue
(
IO_Type
.
Shelf_SafetyRasterSignal
).
Equals
(
IO_VALUE
.
LOW
))
{
SecurityAccessStop
();
}
else
if
(
IOValue
(
IO_Type
.
TurnoverBox_SafetyRasterSignal
).
Equals
(
IO_VALUE
.
LOW
))
else
if
(
CurrSecurityAccess
.
Equals
(
1
))
{
SecurityAccessStop
();
if
(
IOValue
(
IO_Type
.
Shelf_SafetyRasterSignal
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
TurnoverBox_SafetyRasterSignal
).
Equals
(
IO_VALUE
.
HIGH
))
{
SecurityAccessReset
();
}
}
}
else
if
(
CurrSecurityAccess
.
Equals
(
1
))
else
{
//if (!StoreManager.DisSecurityAccess)
//{
// SecurityAccessReset();
//}
//else
if
(
IOValue
(
IO_Type
.
Shelf_SafetyRasterSignal
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
TurnoverBox_SafetyRasterSignal
).
Equals
(
IO_VALUE
.
HIGH
))
if
(
CurrSecurityAccess
.
Equals
(
1
))
{
SecurityAccessReset
();
{
SecurityAccessReset
();
}
}
}
}
catch
(
Exception
ex
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论