Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e00a84eb
由
LN
编写于
2020-03-28 15:20:22 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
入料最后一盘报警
1 个父辈
42331e87
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
81 行增加
和
39 行删除
source/AssemblyLineClient/FrmDischargeLine.cs
source/AssemblyLineClient/FrmFeedingEquip.cs
source/AssemblyLineClient/FrmIOStatus.cs
source/AssemblyLineClient/FrmMoveEquip.cs
source/AssemblyLineClient/FrmProvidingEquip.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/UserFromControl/IOTextControl.Designer.cs
source/UserFromControl/IOTextControl.cs
source/AssemblyLineClient/FrmDischargeLine.cs
查看文件 @
e00a84e
...
@@ -59,6 +59,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -59,6 +59,7 @@ namespace OnlineStore.AssemblyLine
{
{
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
control
.
Click
+=
Control_Click
;
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
roleindex
++;
roleindex
++;
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
...
@@ -70,6 +71,17 @@ namespace OnlineStore.AssemblyLine
...
@@ -70,6 +71,17 @@ namespace OnlineStore.AssemblyLine
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
}
}
private
void
Control_Click
(
object
sender
,
EventArgs
e
)
{
IOTextControl
control
=
(
IOTextControl
)
sender
;
string
name
=
control
.
Name
.
Substring
(
3
,
control
.
Name
.
Length
-
3
);
List
<
string
>
keyList
=
new
List
<
string
>(
DOControlList
.
Keys
);
int
index
=
keyList
.
IndexOf
(
name
);
if
(
index
>=
0
)
{
cmbWriteIO
.
SelectedIndex
=
index
;
}
}
private
LineTurnBean
dlineRun
=
null
;
private
LineTurnBean
dlineRun
=
null
;
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
{
...
...
source/AssemblyLineClient/FrmFeedingEquip.cs
查看文件 @
e00a84e
...
@@ -69,6 +69,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -69,6 +69,7 @@ namespace OnlineStore.AssemblyLine
foreach
(
ConfigIO
ioValue
in
equipBean
.
Config
.
DOList
.
Values
)
foreach
(
ConfigIO
ioValue
in
equipBean
.
Config
.
DOList
.
Values
)
{
{
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
control
.
Click
+=
Control_Click
;
if
(
i
>=
maxCount
)
if
(
i
>=
maxCount
)
{
{
this
.
tableLayoutPanel4
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
26
));
this
.
tableLayoutPanel4
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
26
));
...
@@ -90,6 +91,17 @@ namespace OnlineStore.AssemblyLine
...
@@ -90,6 +91,17 @@ namespace OnlineStore.AssemblyLine
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
}
}
private
void
Control_Click
(
object
sender
,
EventArgs
e
)
{
IOTextControl
control
=
(
IOTextControl
)
sender
;
string
name
=
control
.
Name
.
Substring
(
3
,
control
.
Name
.
Length
-
3
);
List
<
string
>
keyList
=
new
List
<
string
>(
DOControlList
.
Keys
);
int
index
=
keyList
.
IndexOf
(
name
);
if
(
index
>=
0
)
{
cmbWriteIO
.
SelectedIndex
=
index
;
}
}
private
bool
IsInCheck
=
false
;
private
bool
IsInCheck
=
false
;
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
{
...
...
source/AssemblyLineClient/FrmIOStatus.cs
查看文件 @
e00a84e
...
@@ -72,6 +72,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -72,6 +72,7 @@ namespace OnlineStore.AssemblyLine
foreach
(
ConfigIO
ioValue
in
LineManager
.
Config
.
DOList
.
Values
)
foreach
(
ConfigIO
ioValue
in
LineManager
.
Config
.
DOList
.
Values
)
{
{
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
control
.
Click
+=
Control_Click
;
if
(
roleindex
>=
count
)
if
(
roleindex
>=
count
)
{
{
this
.
tableLayoutPanel4
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
this
.
tableLayoutPanel4
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
...
@@ -92,7 +93,17 @@ namespace OnlineStore.AssemblyLine
...
@@ -92,7 +93,17 @@ namespace OnlineStore.AssemblyLine
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
}
}
private
void
Control_Click
(
object
sender
,
EventArgs
e
)
{
IOTextControl
control
=
(
IOTextControl
)
sender
;
string
name
=
control
.
Name
.
Substring
(
3
,
control
.
Name
.
Length
-
3
);
List
<
string
>
keyList
=
new
List
<
string
>(
DOControlList
.
Keys
);
int
index
=
keyList
.
IndexOf
(
name
);
if
(
index
>=
0
)
{
cmbWriteIO
.
SelectedIndex
=
index
;
}
}
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
{
...
...
source/AssemblyLineClient/FrmMoveEquip.cs
查看文件 @
e00a84e
...
@@ -82,6 +82,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -82,6 +82,7 @@ namespace OnlineStore.AssemblyLine
{
{
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
control
.
Click
+=
Control_Click
;
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
roleindex
++;
roleindex
++;
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
...
@@ -93,6 +94,17 @@ namespace OnlineStore.AssemblyLine
...
@@ -93,6 +94,17 @@ namespace OnlineStore.AssemblyLine
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
}
}
private
void
Control_Click
(
object
sender
,
EventArgs
e
)
{
IOTextControl
control
=
(
IOTextControl
)
sender
;
string
name
=
control
.
Name
.
Substring
(
3
,
control
.
Name
.
Length
-
3
);
List
<
string
>
keyList
=
new
List
<
string
>(
DOControlList
.
Keys
);
int
index
=
keyList
.
IndexOf
(
name
);
if
(
index
>=
0
)
{
cmbWriteIO
.
SelectedIndex
=
index
;
}
}
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
{
...
...
source/AssemblyLineClient/FrmProvidingEquip.cs
查看文件 @
e00a84e
...
@@ -86,6 +86,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -86,6 +86,7 @@ namespace OnlineStore.AssemblyLine
{
{
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
control
.
Click
+=
Control_Click
;
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
roleindex
++;
roleindex
++;
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
...
@@ -97,7 +98,17 @@ namespace OnlineStore.AssemblyLine
...
@@ -97,7 +98,17 @@ namespace OnlineStore.AssemblyLine
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
}
}
private
void
Control_Click
(
object
sender
,
EventArgs
e
)
{
IOTextControl
control
=
(
IOTextControl
)
sender
;
string
name
=
control
.
Name
.
Substring
(
3
,
control
.
Name
.
Length
-
3
);
List
<
string
>
keyList
=
new
List
<
string
>(
DOControlList
.
Keys
);
int
index
=
keyList
.
IndexOf
(
name
);
if
(
index
>=
0
)
{
cmbWriteIO
.
SelectedIndex
=
index
;
}
}
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
{
try
try
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
e00a84e
...
@@ -792,26 +792,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -792,26 +792,7 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_20_SaveSize
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_20_SaveSize
))
{
{
// MoveInfo.NextMoveStep(LineMoveStep.FI_21_BatchAxisDown);
// MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(200));
// int maxtPosition = Config.BatchAxisP3 - Config.Height_ChangeValue * 30; //在上料位置基础上下降30mm
// int currPositon = BatchAxis.GetAclPosition();
// int targetPosition = currPositon - Config.Height_ChangeValue * 30;
// if (targetPosition <= Config.BatchAxisP2)
// {
// targetPosition = Config.BatchAxisP2;
// }
// else if (targetPosition > maxtPosition)
// {
// targetPosition = maxtPosition;
// }
// InLog("料盘移栽" + MoveInfo.SLog + ":提升轴下降到料盘不溢出(" + (currPositon - Config.Height_ChangeValue * 30) + "):" + targetPosition);
// BatchAxis.AbsMove(MoveInfo, targetPosition, Config.BatchAxis_P2Speed);
//}
//else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_21_BatchAxisDown))
//{
if
(
MoveCylineIsUp
())
if
(
MoveCylineIsUp
())
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_22_CylinderGive
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_22_CylinderGive
);
...
@@ -832,11 +813,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -832,11 +813,10 @@ namespace OnlineStore.DeviceLibrary
string
log
=
":移栽伺服下降到P2:"
+
targetPositon
;
string
log
=
":移栽伺服下降到P2:"
+
targetPositon
;
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":等待空托盘到达 "
+
log
+
""
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":等待空托盘到达 "
+
log
+
""
);
UpdownAxis
.
AbsMove
(
MoveInfo
,
targetPositon
,
Config
.
UpdownAxis_P2Speed
);
UpdownAxis
.
AbsMove
(
MoveInfo
,
targetPositon
,
Config
.
UpdownAxis_P2Speed
);
YuScanCode
();
if
(!
MoveInfo
.
ShelfNoTray
)
{
YuScanCode
();
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_23_WaitTray
))
//TODO
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_23_WaitTray
))
//TODO
{
{
...
@@ -848,9 +828,16 @@ namespace OnlineStore.DeviceLibrary
...
@@ -848,9 +828,16 @@ namespace OnlineStore.DeviceLibrary
//UpdownAxis.AbsMove(MoveInfo, targetPositon, Config.UpdownAxis_P2Speed);
//UpdownAxis.AbsMove(MoveInfo, targetPositon, Config.UpdownAxis_P2Speed);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_24_CylinderDown
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_24_CylinderDown
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料机构下降, 托盘号【"
+
currTrayNum
+
"】,获取库位号,更新托盘信息 , 提升轴下降指定位置"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Up
,
IO_Type
.
SL_MoveCylinder_Down
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Up
,
IO_Type
.
SL_MoveCylinder_Down
);
FI_21_BatchAxisDown
();
if
(!
MoveInfo
.
ShelfNoTray
)
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料机构下降, 托盘号【"
+
currTrayNum
+
"】,获取库位号,更新托盘信息 , 提升轴下降指定位置"
);
FI_21_BatchAxisDown
();
}
else
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料机构下降, 托盘号【"
+
currTrayNum
+
"】,获取库位号,更新托盘信息 ,"
);
}
Task
.
Factory
.
StartNew
(
delegate
Task
.
Factory
.
StartNew
(
delegate
{
{
//更新托盘条码信息
//更新托盘条码信息
...
...
source/UserFromControl/IOTextControl.Designer.cs
查看文件 @
e00a84e
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
53
,
12
);
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
53
,
12
);
this
.
label1
.
TabIndex
=
0
;
this
.
label1
.
TabIndex
=
0
;
this
.
label1
.
Text
=
"测试一下"
;
this
.
label1
.
Text
=
"测试一下"
;
this
.
label1
.
Click
+=
new
System
.
EventHandler
(
this
.
label1_DoubleClick
);
//
//
// pictureBox1
// pictureBox1
//
//
...
...
source/UserFromControl/IOTextControl.cs
查看文件 @
e00a84e
...
@@ -81,20 +81,16 @@ namespace UserFromControl
...
@@ -81,20 +81,16 @@ namespace UserFromControl
private
void
pictureBox2_Click
(
object
sender
,
EventArgs
e
)
private
void
pictureBox2_Click
(
object
sender
,
EventArgs
e
)
{
{
if
(
isCanClick
)
this
.
OnClick
(
e
);
{
pictureBox2
.
Visible
=
true
;
pictureBox1
.
Visible
=
false
;
}
}
}
private
void
pictureBox1_Click
(
object
sender
,
EventArgs
e
)
private
void
pictureBox1_Click
(
object
sender
,
EventArgs
e
)
{
{
if
(
isCanClick
)
this
.
OnClick
(
e
);
{
pictureBox2
.
Visible
=
false
;
pictureBox1
.
Visible
=
true
;
}
}
}
private
void
label1_DoubleClick
(
object
sender
,
EventArgs
e
)
{
this
.
OnClick
(
e
);
}
}
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论