Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 73023c7c
由
LN
编写于
2019-12-06 09:14:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
eb08dc23
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
33 行增加
和
14 行删除
source/AssemblyLineClient/FrmLineStore.Designer.cs
source/AssemblyLineClient/FrmLineStore.cs
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_Partial.cs
source/DeviceLibrary/assemblyLine/LineBean.cs
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
source/DeviceLibrary/assemblymanager/StoreServerManager.cs
source/AssemblyLineClient/FrmLineStore.Designer.cs
查看文件 @
73023c7
此文件的差异被折叠,
点击展开。
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
73023c7
...
...
@@ -413,6 +413,7 @@ namespace OnlineStore.AssemblyLine
//{
// lblWarnMsg.Text = "未扫到二维码,请重新放入料盘";
//}
lblMoveInfo
.
Text
=
LineManager
.
Line
.
GetMoveStr
();
if
(
lblWarnMsg
.
Text
.
Equals
(
""
))
{
lblWarnMsg
.
Text
=
TrayManager
.
TrayErrorMsg
;
...
...
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
73023c7
...
...
@@ -487,11 +487,11 @@ namespace OnlineStore.DeviceLibrary
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosId
:
""
;
if
(
String
.
IsNullOrEmpty
(
posId
))
{
LogUtil
.
info
(
Name
+
msg
);
LogUtil
.
info
(
Name
+
" "
+
msg
);
}
else
{
LogUtil
.
info
(
Name
+
"["
+
posId
+
"]"
+
msg
);
LogUtil
.
info
(
Name
+
"
"
+
"
["
+
posId
+
"]"
+
msg
);
}
}
protected
void
OutStoreLog
(
string
msg
)
...
...
@@ -499,18 +499,18 @@ namespace OnlineStore.DeviceLibrary
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosId
:
""
;
if
(
String
.
IsNullOrEmpty
(
posId
))
{
LogUtil
.
info
(
Name
+
msg
);
LogUtil
.
info
(
Name
+
" "
+
msg
);
}
else
{
LogUtil
.
info
(
Name
+
"
["
+
posId
+
"]
"
+
msg
);
LogUtil
.
info
(
Name
+
"
"
+
"["
+
posId
+
"]
"
+
msg
);
}
}
public
string
GetMoveStr
()
{
string
msg
=
""
;
int
tLength
=
1
2
;
int
tLength
=
1
5
;
msg
+=
"preTrayNum:"
.
PadRight
(
tLength
,
' '
)
+
preTrayNum
+
"\n"
;
msg
+=
"currTrayNum:"
.
PadRight
(
tLength
,
' '
)
+
currTrayNum
+
"\n"
;
...
...
@@ -519,7 +519,7 @@ namespace OnlineStore.DeviceLibrary
msg
+=
"MoveType:"
.
PadRight
(
tLength
,
' '
)
+
MoveInfo
.
MoveType
+
"\n"
;
msg
+=
"MoveStep:"
.
PadRight
(
tLength
,
' '
)
+
MoveInfo
.
MoveStep
+
"\n"
;
msg
+=
"SMoveType:"
.
PadRight
(
tLength
,
' '
)
+
SecondMoveInfo
.
MoveType
+
"\n"
;
msg
+=
"SMove
Type
:"
.
PadRight
(
tLength
,
' '
)
+
SecondMoveInfo
.
MoveStep
+
""
;
msg
+=
"SMove
Step
:"
.
PadRight
(
tLength
,
' '
)
+
SecondMoveInfo
.
MoveStep
+
""
;
return
msg
;
}
}
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_Partial.cs
查看文件 @
73023c7
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/assemblyLine/LineBean.cs
查看文件 @
73023c7
...
...
@@ -917,6 +917,22 @@ namespace OnlineStore.DeviceLibrary
}
}
}
public
string
GetMoveStr
()
{
string
msg
=
""
;
int
tLength
=
20
;
//msg += "preTrayNum:".PadRight(tLength, ' ') + preTrayNum + "\n";
//msg += "currTrayNum:".PadRight(tLength, ' ') + currTrayNum + "\n";
msg
+=
"runStatus: "
+
runStatus
+
"\n"
;
msg
+=
"lineStatus: "
+
lineStatus
+
"\n"
;
msg
+=
"MoveType: "
+
MoveInfo
.
MoveType
+
"\n"
;
msg
+=
"MoveStep: "
+
MoveInfo
.
MoveStep
+
"\n"
;
msg
+=
"SW41_Move: "
+
SW41_MoveInfo
.
MoveType
+
" "
+
SW41_MoveInfo
.
MoveStep
+
"\n"
;
msg
+=
"SW23_Move: "
+
SW23_MoveInfo
.
MoveType
+
" "
+
SW23_MoveInfo
.
MoveStep
+
"\n"
;
return
msg
;
}
}
}
\ No newline at end of file
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
查看文件 @
73023c7
...
...
@@ -33,6 +33,7 @@ namespace OnlineStore.DeviceLibrary
IOManager
.
IOValue
(
IO_Type
.
DriveMotor_Run3
,
0
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOManager
.
IOValue
(
IO_Type
.
DriveMotor_Run4
,
0
).
Equals
(
IO_VALUE
.
HIGH
))
{
return
true
;
if
(
isCheckSleep
)
{
if
(
runStatus
>=
LineRunStatus
.
Runing
&&
IsSleep
.
Equals
(
false
))
...
...
source/DeviceLibrary/assemblymanager/StoreServerManager.cs
查看文件 @
73023c7
...
...
@@ -15,17 +15,18 @@ namespace OnlineStore.DeviceLibrary
string
msg
=
""
;
try
{
string
codeStr
=
""
;
string
codeStr
=
""
;
List
<
string
>
list
=
new
List
<
string
>();
foreach
(
string
str
in
codeList
)
{
if
(
codeStr
.
Equals
(
""
))
if
(
list
.
Contains
(
str
.
Trim
()
))
{
codeStr
=
str
;
}
else
{
codeStr
+=
spiltStr
+
str
;
continue
;
}
list
.
Add
(
str
.
Trim
());
//string code = "=1+0x0-" + width + "x" + height + "=" + str.Trim();
string
code
=
width
+
"x"
+
height
+
"%3D"
+
str
.
Trim
();
codeStr
=
codeStr
+
code
+
spiltStr
;
}
if
(
String
.
IsNullOrEmpty
(
codeStr
))
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论