Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit db74f038
由
刘韬
编写于
2023-03-13 09:16:15 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
8359205b
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
7 行删除
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
DeviceLibrary/theMachine/BoxTransport.cs
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
查看文件 @
db74f03
...
@@ -45,8 +45,8 @@ namespace DeviceLibrary
...
@@ -45,8 +45,8 @@ namespace DeviceLibrary
int
lockerrtime
=
0
;
int
lockerrtime
=
0
;
private
void
ServerConnectTimer_Elapsed
(
object
sender
,
System
.
Timers
.
ElapsedEventArgs
e
)
private
void
ServerConnectTimer_Elapsed
(
object
sender
,
System
.
Timers
.
ElapsedEventArgs
e
)
{
{
if
(!
Monitor
.
TryEnter
(
serverConnectTimer
))
//
if (!Monitor.TryEnter(serverConnectTimer))
{
//
{
try
try
{
{
if
(!
server
.
StartsWith
(
"http"
))
if
(!
server
.
StartsWith
(
"http"
))
...
@@ -61,9 +61,9 @@ namespace DeviceLibrary
...
@@ -61,9 +61,9 @@ namespace DeviceLibrary
}
}
finally
finally
{
{
Monitor
.
Exit
(
serverConnectTimer
);
//
Monitor.Exit(serverConnectTimer);
}
}
}
//
}
}
}
public
void
StartConnectServer
()
public
void
StartConnectServer
()
...
...
DeviceLibrary/theMachine/BoxTransport.cs
查看文件 @
db74f03
...
@@ -114,7 +114,7 @@ namespace DeviceLibrary
...
@@ -114,7 +114,7 @@ namespace DeviceLibrary
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
HIGH
))
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
HIGH
))
{
{
if
(!
IgnoreX09
&&
IOMonitor
.
IODebound
(
IO_Type
.
TrayCheck_Fixture
,
Config
,
IO_VALUE
.
HIGH
,
5000
))
if
(!
IgnoreX09
&&
IOMonitor
.
IODebound
(
IO_Type
.
TrayCheck_Fixture
,
Config
,
IO_VALUE
.
HIGH
,
5000
))
Msg
.
add
(
crc
.
GetString
(
L
.
out_store_detect_material
,
"
出库时
料叉X30检测到有物料无法继续,请检查."
),
MsgLevel
.
alarm
,
ErrInfo
.
X09_BoxNotDetect
);
Msg
.
add
(
crc
.
GetString
(
L
.
out_store_detect_material
,
"
取料前
料叉X30检测到有物料无法继续,请检查."
),
MsgLevel
.
alarm
,
ErrInfo
.
X09_BoxNotDetect
);
//RobotManage.UserPause("出库时料叉X30检测到有物料无法继续,请检查");
//RobotManage.UserPause("出库时料叉X30检测到有物料无法继续,请检查");
}
}
else
else
...
@@ -174,7 +174,7 @@ namespace DeviceLibrary
...
@@ -174,7 +174,7 @@ namespace DeviceLibrary
RobotManage
.
CameraA
.
CameraGrabOne
(
RobotManage
.
CameraA
.
GetFixtureStateFilename
(
From
.
posid
,
WareCode
,
storeMoveType
,
FixtureState
.
FromOut
));
RobotManage
.
CameraA
.
CameraGrabOne
(
RobotManage
.
CameraA
.
GetFixtureStateFilename
(
From
.
posid
,
WareCode
,
storeMoveType
,
FixtureState
.
FromOut
));
if
(!
IgnoreX09
&&
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
LOW
))
if
(!
IgnoreX09
&&
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
LOW
))
{
{
Msg
.
add
(
crc
.
GetString
(
L
.
out_store_not_detect_material
,
"
出库时
料叉X30没有检测到有物料无法继续,请检查."
),
MsgLevel
.
alarm
,
ErrInfo
.
X09_BoxNotDetect
);
Msg
.
add
(
crc
.
GetString
(
L
.
out_store_not_detect_material
,
"
取料前
料叉X30没有检测到有物料无法继续,请检查."
),
MsgLevel
.
alarm
,
ErrInfo
.
X09_BoxNotDetect
);
//RobotManage.UserPause("出库时料叉X30没有检测到有物料无法继续,请检查");
//RobotManage.UserPause("出库时料叉X30没有检测到有物料无法继续,请检查");
}
}
else
else
...
@@ -279,7 +279,7 @@ namespace DeviceLibrary
...
@@ -279,7 +279,7 @@ namespace DeviceLibrary
RobotManage
.
CameraA
.
CameraGrabOne
(
RobotManage
.
CameraA
.
GetFixtureStateFilename
(
To
.
posid
,
WareCode
,
storeMoveType
,
FixtureState
.
ToOut
));
RobotManage
.
CameraA
.
CameraGrabOne
(
RobotManage
.
CameraA
.
GetFixtureStateFilename
(
To
.
posid
,
WareCode
,
storeMoveType
,
FixtureState
.
ToOut
));
if
(!
IgnoreX09
&&
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
HIGH
))
if
(!
IgnoreX09
&&
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
HIGH
))
{
{
Msg
.
add
(
crc
.
GetString
(
L
.
in_store_detect_material
,
"
入库
后料叉X30上任然检测到物料,请检查."
),
MsgLevel
.
alarm
,
ErrInfo
.
X09_BoxNotDetect
);
Msg
.
add
(
crc
.
GetString
(
L
.
in_store_detect_material
,
"
放料
后料叉X30上任然检测到物料,请检查."
),
MsgLevel
.
alarm
,
ErrInfo
.
X09_BoxNotDetect
);
//RobotManage.UserPause("入库后料叉X30上任然检测到物料,请检查");
//RobotManage.UserPause("入库后料叉X30上任然检测到物料,请检查");
}
}
else
else
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论