Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC30-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b31bb69f
由
几米阳光
编写于
2019-05-17 16:53:09 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
7b083fb1
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
24 行增加
和
32 行删除
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/acSingleStore/AutomaticBaiting_Partial.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
b31bb69
...
@@ -1787,6 +1787,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1787,6 +1787,10 @@ namespace OnlineStore.DeviceLibrary
public
void
OperationProcess
(
Operation
resultOperation
)
public
void
OperationProcess
(
Operation
resultOperation
)
{
{
if
(
resultOperation
.
data
!=
null
)
{
ProcessHumidityCMD
(
resultOperation
);
}
if
(
resultOperation
.
op
.
Equals
(
2
))
if
(
resultOperation
.
op
.
Equals
(
2
))
{
{
try
try
...
@@ -1802,10 +1806,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1802,10 +1806,10 @@ namespace OnlineStore.DeviceLibrary
{
{
//ReviceInStoreProcess("", resultOperation);
//ReviceInStoreProcess("", resultOperation);
}
}
else
if
(
resultOperation
.
op
.
Equals
(
5
))
//
else if (resultOperation.op.Equals(5))
{
//
{
ProcessHumidityCMD
(
resultOperation
);
//
ProcessHumidityCMD(resultOperation);
}
//
}
else
if
(
resultOperation
.
data
!=
null
)
else
if
(
resultOperation
.
data
!=
null
)
{
{
string
result
=
""
;
string
result
=
""
;
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
b31bb69
...
@@ -165,6 +165,15 @@ namespace OnlineStore.DeviceLibrary
...
@@ -165,6 +165,15 @@ namespace OnlineStore.DeviceLibrary
{
{
timeOutMs
=
650000
;
timeOutMs
=
650000
;
}
}
if
(!
wait
.
IsEnd
&&
span
.
TotalSeconds
>
1
&&
(
wait
.
IoType
.
Equals
(
IO_Type
.
SuckingDisc_Air
)
))
{
IO_VALUE
doValue
=
IOManager
.
DOValue
(
wait
.
IoType
);
if
(!
doValue
.
Equals
(
wait
.
IoValue
))
{
LogUtil
.
error
(
"等待["
+
NotOkMsg
+
"],重写DO("
+
wait
.
IoType
+
"="
+
wait
.
IoValue
+
")"
);
IOManager
.
IOMove
(
wait
.
IoType
,
wait
.
IoValue
);
}
}
if
((!
wait
.
IsEnd
)
&&
span
.
TotalMilliseconds
>
timeOutMs
)
if
((!
wait
.
IsEnd
)
&&
span
.
TotalMilliseconds
>
timeOutMs
)
{
{
ConfigIO
io
=
Config
.
getWaitIO
(
wait
.
IoType
);
ConfigIO
io
=
Config
.
getWaitIO
(
wait
.
IoType
);
...
...
source/DeviceLibrary/acSingleStore/AutomaticBaiting_Partial.cs
查看文件 @
b31bb69
...
@@ -119,6 +119,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -119,6 +119,10 @@ namespace OnlineStore.DeviceLibrary
{
{
LogUtil
.
error
(
"等待["
+
NotOkMsg
+
"],重写DO("
+
wait
.
IoType
+
"="
+
wait
.
IoValue
+
")"
);
LogUtil
.
error
(
"等待["
+
NotOkMsg
+
"],重写DO("
+
wait
.
IoType
+
"="
+
wait
.
IoValue
+
")"
);
IOManager
.
IOMove
(
wait
.
IoType
,
wait
.
IoValue
);
IOManager
.
IOMove
(
wait
.
IoType
,
wait
.
IoValue
);
string
ioType
=
wait
.
IoType
.
Equals
(
IO_Type
.
SuckingDisc_Down
)
?
IO_Type
.
SuckingDisc_Up
:
IO_Type
.
SuckingDisc_Down
;
IO_VALUE
ioValue
=
wait
.
IoValue
.
Equals
(
IO_VALUE
.
LOW
)
?
IO_VALUE
.
HIGH
:
IO_VALUE
.
LOW
;
LogUtil
.
error
(
"等待["
+
wait
.
ToStr
()
+
"],重写气缸DO("
+
ioType
+
"="
+
ioValue
+
")"
);
IOManager
.
IOMove
(
ioType
,
ioValue
);
}
}
}
}
}
}
...
@@ -178,33 +182,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -178,33 +182,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
error
(
WarnMsg
,
102
);
LogUtil
.
error
(
WarnMsg
,
102
);
StoreManager
.
Store
.
Alarm
(
StoreAlarmType
.
BatchIoTimeOut
,
""
,
WarnMsg
,
StoreMove
.
MoveType
);
StoreManager
.
Store
.
Alarm
(
StoreAlarmType
.
BatchIoTimeOut
,
""
,
WarnMsg
,
StoreMove
.
MoveType
);
}
}
if
(!
isOk
)
{
//重写气缸
foreach
(
WaitResultInfo
wait
in
list
)
{
if
(
wait
.
IsEnd
.
Equals
(
false
)
&&
(
wait
.
WaitType
==
(
int
)
Wait_Type
.
IOMove_2
))
{
if
(!
wait
.
IsEnd
&&
span
.
TotalSeconds
>
1
&&
(
wait
.
IoType
.
Equals
(
IO_Type
.
SuckingDisc_Down
)
||
wait
.
IoType
.
Equals
(
IO_Type
.
SuckingDisc_Up
)))
{
IO_VALUE
doValue
=
IOManager
.
DOValue
(
wait
.
IoType
);
if
(!
doValue
.
Equals
(
wait
.
IoValue
))
{
LogUtil
.
error
(
"等待["
+
wait
.
ToStr
()
+
"],重写DO("
+
wait
.
IoType
+
"="
+
wait
.
IoValue
+
")"
);
IOManager
.
IOMove
(
wait
.
IoType
,
wait
.
IoValue
);
string
ioType
=
wait
.
IoType
.
Equals
(
IO_Type
.
SuckingDisc_Down
)
?
IO_Type
.
SuckingDisc_Up
:
IO_Type
.
SuckingDisc_Down
;
IO_VALUE
ioValue
=
wait
.
IoValue
.
Equals
(
IO_VALUE
.
LOW
)
?
IO_VALUE
.
HIGH
:
IO_VALUE
.
LOW
;
LogUtil
.
error
(
"等待["
+
wait
.
ToStr
()
+
"],重写DO("
+
ioType
+
"="
+
ioValue
+
")"
);
IOManager
.
IOMove
(
ioType
,
ioValue
);
}
}
}
}
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
@@ -465,7 +443,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -465,7 +443,8 @@ namespace OnlineStore.DeviceLibrary
{
{
LogUtil
.
info
(
Name
+
"服务器反馈 二维码【"
+
message
+
"】【"
+
autoposId
+
"】 :"
+
resultOperation
.
msg
);
LogUtil
.
info
(
Name
+
"服务器反馈 二维码【"
+
message
+
"】【"
+
autoposId
+
"】 :"
+
resultOperation
.
msg
);
return
;
return
;
}
}
Dictionary
<
string
,
string
>
data
=
resultOperation
.
data
;
Dictionary
<
string
,
string
>
data
=
resultOperation
.
data
;
if
(
data
!=
null
&&
data
.
ContainsKey
(
ParamDefine
.
posId
)
&&
data
.
ContainsKey
(
ParamDefine
.
plateH
)
&&
data
.
ContainsKey
(
ParamDefine
.
plateW
))
if
(
data
!=
null
&&
data
.
ContainsKey
(
ParamDefine
.
posId
)
&&
data
.
ContainsKey
(
ParamDefine
.
plateH
)
&&
data
.
ContainsKey
(
ParamDefine
.
plateW
))
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论