Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b682d26d
由
LN
编写于
2019-12-01 12:09:55 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
1454cbb8
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
113 行增加
和
58 行删除
source/AssemblyLineClient/App.config
source/AssemblyLineClient/FrmFeedingEquip.cs
source/AssemblyLineClient/FrmIOStatus.Designer.cs
source/AssemblyLineClient/FrmIOStatus.cs
source/AssemblyLineClient/useControl/AxisMoveControl.Designer.cs
source/DeviceLibrary/assemblyLine/LineBean.cs
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
source/DeviceLibrary/deviceLibrary/PanasonicServo/ACServerManager.cs
source/DeviceLibrary/deviceLibrary/PanasonicServo/ACServerManager_Partial.cs
source/AssemblyLineClient/App.config
查看文件 @
b682d26
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<!--二维码类型列表配置,用
#分割,一维码=Barcode 二维码: QR Code#Data Matrix ECC 200#Micro QR Code-->
<!--二维码类型列表配置,用
#分割,一维码=Barcode 二维码: QR Code#Data Matrix ECC 200#Micro QR Code-->
<
add
key
=
"CodeType"
value
=
"QR Code"
/>
<
add
key
=
"CodeType"
value
=
"QR Code"
/>
<!--<
add
key
=
"CodeType"
value
=
"Data Matrix ECC 200"
/>-->
<!--<
add
key
=
"CodeType"
value
=
"Data Matrix ECC 200"
/>-->
<
add
key
=
"ACBaudRate"
value
=
"1
15
200"
/>
<
add
key
=
"ACBaudRate"
value
=
"1
9
200"
/>
<!--二维码参数文件所在路径,文件名与二维码类型名一样-->
<!--二维码参数文件所在路径,文件名与二维码类型名一样-->
<
add
key
=
"CodeParamPath"
value
=
"\CodeParam\"
/>
<
add
key
=
"CodeParamPath"
value
=
"\CodeParam\"
/>
<
add
key
=
"Config_Pwd"
value
=
"123456"
/>
<
add
key
=
"Config_Pwd"
value
=
"123456"
/>
...
...
source/AssemblyLineClient/FrmFeedingEquip.cs
查看文件 @
b682d26
...
@@ -221,7 +221,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -221,7 +221,7 @@ namespace OnlineStore.AssemblyLine
cmbSizeList
.
SelectedIndex
=
0
;
cmbSizeList
.
SelectedIndex
=
0
;
lblStoreStatus
.
Text
=
KTK_Store
.
GetRunStr
(
equipBean
.
lineStatus
,
equipBean
.
runStatus
);
lblStoreStatus
.
Text
=
KTK_Store
.
GetRunStr
(
equipBean
.
lineStatus
,
equipBean
.
runStatus
);
lblThisSta
.
Text
=
equipBean
.
WarnMsg
;
lblThisSta
.
Text
=
equipBean
.
WarnMsg
;
txtP1
.
Text
=
equipBean
.
Config
.
Batch
AxisP1
.
ToString
();
txtP1
.
Text
=
equipBean
.
Config
.
UpDown
AxisP1
.
ToString
();
if
(
equipBean
.
Config
.
SidesWayNum
>
0
)
if
(
equipBean
.
Config
.
SidesWayNum
>
0
)
{
{
...
...
source/AssemblyLineClient/FrmIOStatus.Designer.cs
查看文件 @
b682d26
...
@@ -53,12 +53,15 @@
...
@@ -53,12 +53,15 @@
this
.
btnSW4Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSW4Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnDriveMotor_Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnDriveMotor_Run
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
groupBox6
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel4
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
groupBox5
.
SuspendLayout
();
this
.
groupBox5
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
groupBox6
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// timer1
// timer1
...
@@ -78,7 +81,7 @@
...
@@ -78,7 +81,7 @@
this
.
groupBox1
.
Controls
.
Add
(
this
.
label5
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label5
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
cmbWriteIO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
cmbWriteIO
);
this
.
groupBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
738
,
5
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
984
,
5
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
343
,
154
);
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
343
,
154
);
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabIndex
=
105
;
...
@@ -198,7 +201,7 @@
...
@@ -198,7 +201,7 @@
this
.
chbAutoRead
.
Checked
=
true
;
this
.
chbAutoRead
.
Checked
=
true
;
this
.
chbAutoRead
.
CheckState
=
System
.
Windows
.
Forms
.
CheckState
.
Checked
;
this
.
chbAutoRead
.
CheckState
=
System
.
Windows
.
Forms
.
CheckState
.
Checked
;
this
.
chbAutoRead
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbAutoRead
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbAutoRead
.
Location
=
new
System
.
Drawing
.
Point
(
22
,
681
);
this
.
chbAutoRead
.
Location
=
new
System
.
Drawing
.
Point
(
22
,
457
);
this
.
chbAutoRead
.
Name
=
"chbAutoRead"
;
this
.
chbAutoRead
.
Name
=
"chbAutoRead"
;
this
.
chbAutoRead
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
21
);
this
.
chbAutoRead
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
21
);
this
.
chbAutoRead
.
TabIndex
=
244
;
this
.
chbAutoRead
.
TabIndex
=
244
;
...
@@ -211,9 +214,9 @@
...
@@ -211,9 +214,9 @@
this
.
groupBox4
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
this
.
groupBox4
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox4
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
groupBox4
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
49
0
,
5
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
49
2
,
5
);
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
868
);
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
644
);
this
.
groupBox4
.
TabIndex
=
104
;
this
.
groupBox4
.
TabIndex
=
104
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"DO列表"
;
this
.
groupBox4
.
Text
=
"DO列表"
;
...
@@ -231,7 +234,7 @@
...
@@ -231,7 +234,7 @@
this
.
tableLayoutPanel2
.
RowCount
=
2
;
this
.
tableLayoutPanel2
.
RowCount
=
2
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
848
);
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
624
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
//
// groupBox3
// groupBox3
...
@@ -241,7 +244,7 @@
...
@@ -241,7 +244,7 @@
this
.
groupBox3
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
5
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
5
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
868
);
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
644
);
this
.
groupBox3
.
TabIndex
=
103
;
this
.
groupBox3
.
TabIndex
=
103
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"DI列表"
;
this
.
groupBox3
.
Text
=
"DI列表"
;
...
@@ -259,7 +262,7 @@
...
@@ -259,7 +262,7 @@
this
.
tableLayoutPanel1
.
RowCount
=
2
;
this
.
tableLayoutPanel1
.
RowCount
=
2
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
848
);
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
624
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
//
// groupBox2
// groupBox2
...
@@ -267,9 +270,9 @@
...
@@ -267,9 +270,9 @@
this
.
groupBox2
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
this
.
groupBox2
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox2
.
Controls
.
Add
(
this
.
tableLayoutPanel3
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
tableLayoutPanel3
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
24
8
,
5
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
24
9
,
5
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
868
);
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
644
);
this
.
groupBox2
.
TabIndex
=
245
;
this
.
groupBox2
.
TabIndex
=
245
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
Text
=
"DI列表"
;
this
.
groupBox2
.
Text
=
"DI列表"
;
...
@@ -286,7 +289,7 @@
...
@@ -286,7 +289,7 @@
this
.
tableLayoutPanel3
.
RowCount
=
2
;
this
.
tableLayoutPanel3
.
RowCount
=
2
;
this
.
tableLayoutPanel3
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel3
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel3
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel3
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel3
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
848
);
this
.
tableLayoutPanel3
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
624
);
this
.
tableLayoutPanel3
.
TabIndex
=
102
;
this
.
tableLayoutPanel3
.
TabIndex
=
102
;
//
//
// groupBox5
// groupBox5
...
@@ -310,9 +313,9 @@
...
@@ -310,9 +313,9 @@
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnNGCylinder
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnNGCylinder
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnSW4Run
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnSW4Run
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnDriveMotor_Run
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
btnDriveMotor_Run
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
738
,
165
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
984
,
165
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
343
,
708
);
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
343
,
484
);
this
.
groupBox5
.
TabIndex
=
246
;
this
.
groupBox5
.
TabIndex
=
246
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
Text
=
"IO操作测试"
;
this
.
groupBox5
.
Text
=
"IO操作测试"
;
...
@@ -514,6 +517,7 @@
...
@@ -514,6 +517,7 @@
// panel1
// panel1
//
//
this
.
panel1
.
AutoScroll
=
true
;
this
.
panel1
.
AutoScroll
=
true
;
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox6
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox4
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox4
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox5
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox5
);
...
@@ -522,14 +526,42 @@
...
@@ -522,14 +526,42 @@
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
13
84
,
881
);
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
13
42
,
657
);
this
.
panel1
.
TabIndex
=
248
;
this
.
panel1
.
TabIndex
=
248
;
//
//
// groupBox6
//
this
.
groupBox6
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox6
.
Controls
.
Add
(
this
.
tableLayoutPanel4
);
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
735
,
5
);
this
.
groupBox6
.
Name
=
"groupBox6"
;
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
644
);
this
.
groupBox6
.
TabIndex
=
105
;
this
.
groupBox6
.
TabStop
=
false
;
this
.
groupBox6
.
Text
=
"DO列表"
;
//
// tableLayoutPanel4
//
this
.
tableLayoutPanel4
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
tableLayoutPanel4
.
AutoScroll
=
true
;
this
.
tableLayoutPanel4
.
ColumnCount
=
1
;
this
.
tableLayoutPanel4
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel4
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
14
);
this
.
tableLayoutPanel4
.
Name
=
"tableLayoutPanel4"
;
this
.
tableLayoutPanel4
.
RowCount
=
2
;
this
.
tableLayoutPanel4
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel4
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel4
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
624
);
this
.
tableLayoutPanel4
.
TabIndex
=
103
;
//
// FrmIOStatus
// FrmIOStatus
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
13
84
,
881
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
13
42
,
657
);
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
MaximizeBox
=
false
;
this
.
MaximizeBox
=
false
;
...
@@ -547,6 +579,7 @@
...
@@ -547,6 +579,7 @@
this
.
groupBox5
.
ResumeLayout
(
false
);
this
.
groupBox5
.
ResumeLayout
(
false
);
this
.
groupBox5
.
PerformLayout
();
this
.
groupBox5
.
PerformLayout
();
this
.
panel1
.
ResumeLayout
(
false
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
groupBox6
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
}
}
...
@@ -589,6 +622,8 @@
...
@@ -589,6 +622,8 @@
private
System
.
Windows
.
Forms
.
Button
btnSw1Location
;
private
System
.
Windows
.
Forms
.
Button
btnSw1Location
;
private
System
.
Windows
.
Forms
.
Button
btnSw1Top
;
private
System
.
Windows
.
Forms
.
Button
btnSw1Top
;
private
System
.
Windows
.
Forms
.
Button
button1
;
private
System
.
Windows
.
Forms
.
Button
button1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox6
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel4
;
}
}
}
}
source/AssemblyLineClient/FrmIOStatus.cs
查看文件 @
b682d26
...
@@ -33,7 +33,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -33,7 +33,7 @@ namespace OnlineStore.AssemblyLine
Dictionary
<
string
,
IOTextControl
>
DOControlList
=
new
Dictionary
<
string
,
IOTextControl
>();
Dictionary
<
string
,
IOTextControl
>
DOControlList
=
new
Dictionary
<
string
,
IOTextControl
>();
private
void
LoadIOList
()
private
void
LoadIOList
()
{
{
int
count
=
30
;
int
count
=
16
;
int
roleindex
=
0
;
int
roleindex
=
0
;
this
.
tableLayoutPanel1
.
RowStyles
.
Clear
();
this
.
tableLayoutPanel1
.
RowStyles
.
Clear
();
this
.
tableLayoutPanel1
.
RowCount
=
count
;
this
.
tableLayoutPanel1
.
RowCount
=
count
;
...
@@ -65,14 +65,23 @@ namespace OnlineStore.AssemblyLine
...
@@ -65,14 +65,23 @@ namespace OnlineStore.AssemblyLine
}
}
tableLayoutPanel2
.
RowStyles
.
Clear
();
tableLayoutPanel2
.
RowStyles
.
Clear
();
this
.
tableLayoutPanel2
.
RowCount
=
LineManager
.
Config
.
DOList
.
Count
;
this
.
tableLayoutPanel2
.
RowCount
=
count
;
this
.
tableLayoutPanel4
.
RowStyles
.
Clear
();
this
.
tableLayoutPanel4
.
RowCount
=
count
;
roleindex
=
0
;
roleindex
=
0
;
foreach
(
ConfigIO
ioValue
in
LineManager
.
Config
.
DOList
.
Values
)
foreach
(
ConfigIO
ioValue
in
LineManager
.
Config
.
DOList
.
Values
)
{
{
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
);
if
(
roleindex
>=
count
)
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
{
this
.
tableLayoutPanel4
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
this
.
tableLayoutPanel4
.
Controls
.
Add
(
control
,
0
,
roleindex
-
count
);
}
else
{
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
}
roleindex
++;
roleindex
++;
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
}
}
...
...
source/AssemblyLineClient/useControl/AxisMoveControl.Designer.cs
查看文件 @
b682d26
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/assemblyLine/LineBean.cs
查看文件 @
b682d26
...
@@ -735,6 +735,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -735,6 +735,8 @@ namespace OnlineStore.DeviceLibrary
SideWayTimerProcess
();
SideWayTimerProcess
();
CodeProcess
();
}
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
...
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
查看文件 @
b682d26
...
@@ -9,7 +9,7 @@ using System.Threading.Tasks;
...
@@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace
OnlineStore.DeviceLibrary
namespace
OnlineStore.DeviceLibrary
{
{
partial
class
LineBean
partial
class
LineBean
{
{
#
region
定时处理方法
#
region
定时处理方法
public
bool
LineCanRun
()
public
bool
LineCanRun
()
...
@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
public
bool
CanProcessLine
(
bool
isCheckSleep
=
true
)
public
bool
CanProcessLine
(
bool
isCheckSleep
=
true
)
{
{
if
(
LineCanRun
()
&&
if
(
LineCanRun
()
&&
IOManager
.
IOValue
(
IO_Type
.
DriveMotor_Run1
,
0
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOManager
.
IOValue
(
IO_Type
.
DriveMotor_Run1
,
0
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOManager
.
IOValue
(
IO_Type
.
DriveMotor_Run2
,
0
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOManager
.
IOValue
(
IO_Type
.
DriveMotor_Run2
,
0
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOManager
.
IOValue
(
IO_Type
.
DriveMotor_Run3
,
0
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOManager
.
IOValue
(
IO_Type
.
DriveMotor_Run3
,
0
).
Equals
(
IO_VALUE
.
HIGH
)
&&
...
@@ -39,7 +39,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -39,7 +39,7 @@ namespace OnlineStore.DeviceLibrary
{
{
return
false
;
return
false
;
}
}
}
}
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
@@ -58,15 +58,16 @@ namespace OnlineStore.DeviceLibrary
...
@@ -58,15 +58,16 @@ namespace OnlineStore.DeviceLibrary
return
true
;
return
true
;
}
}
}
}
}
return
false
;
}
return
false
;
}
}
internal
bool
DLineStopOut
(
int
dlineId
,
int
LineNum
)
internal
bool
DLineStopOut
(
int
dlineId
,
int
LineNum
)
{
{
foreach
(
DischargeLine
line
in
DisLineMap
.
Values
)
foreach
(
DischargeLine
line
in
DisLineMap
.
Values
)
{
{
if
((
line
.
DeviceID
%
100
).
Equals
(
dlineId
))
if
((
line
.
DeviceID
%
100
).
Equals
(
dlineId
))
{
{
if
(
LineNum
.
Equals
(
1
)
&&
line
.
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
))
if
(
LineNum
.
Equals
(
1
)
&&
line
.
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
))
{
{
line
.
MoveInfo
.
EndMove
();
line
.
MoveInfo
.
EndMove
();
}
}
...
@@ -98,7 +99,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -98,7 +99,7 @@ namespace OnlineStore.DeviceLibrary
// isInprocess = false;
// isInprocess = false;
// return;
// return;
//}
//}
//TODO 需要处理NG料盘推出
//TODO 需要处理NG料盘推出
}
}
...
@@ -146,7 +147,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -146,7 +147,7 @@ namespace OnlineStore.DeviceLibrary
{
{
LogUtil
.
info
(
Name
+
"清理信号超时报警【"
+
WarnMsg
+
"】 "
);
LogUtil
.
info
(
Name
+
"清理信号超时报警【"
+
WarnMsg
+
"】 "
);
alarmType
=
LineAlarmType
.
None
;
alarmType
=
LineAlarmType
.
None
;
SetWarnMsg
(
""
);
SetWarnMsg
(
""
);
}
}
}
}
}
}
...
@@ -182,7 +183,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -182,7 +183,7 @@ namespace OnlineStore.DeviceLibrary
continue
;
continue
;
}
}
NotOkMsg
=
wait
.
ToStr
();
NotOkMsg
=
wait
.
ToStr
();
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W002_IOValue
))
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W002_IOValue
))
{
{
NotOkMsg
=
" ("
+
Config
.
GetDisplayName
(
wait
.
IoType
)
+
"="
+
wait
.
IoValue
+
") "
;
NotOkMsg
=
" ("
+
Config
.
GetDisplayName
(
wait
.
IoType
)
+
"="
+
wait
.
IoValue
+
") "
;
wait
.
IsEnd
=
IOValue
(
wait
.
IoType
).
Equals
(
wait
.
IoValue
);
wait
.
IsEnd
=
IOValue
(
wait
.
IoType
).
Equals
(
wait
.
IoValue
);
...
@@ -196,7 +197,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -196,7 +197,7 @@ namespace OnlineStore.DeviceLibrary
ConfigIO
io
=
Config
.
getWaitIO
(
wait
.
IoType
);
ConfigIO
io
=
Config
.
getWaitIO
(
wait
.
IoType
);
WarnMsg
=
Name
+
" 等待"
+
NotOkMsg
+
"超时"
;
WarnMsg
=
Name
+
" 等待"
+
NotOkMsg
+
"超时"
;
Alarm
(
LineAlarmType
.
IoSingleTimeOut
);
Alarm
(
LineAlarmType
.
IoSingleTimeOut
);
LogUtil
.
error
(
checkWaitInfo
.
Name
+
":"
+
checkWaitInfo
.
MoveStep
+
"等待"
+
NotOkMsg
+
"超时"
,
14
);
LogUtil
.
error
(
checkWaitInfo
.
Name
+
":"
+
checkWaitInfo
.
MoveStep
+
"等待"
+
NotOkMsg
+
"超时"
,
14
);
isOk
=
false
;
isOk
=
false
;
...
@@ -249,7 +250,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -249,7 +250,7 @@ namespace OnlineStore.DeviceLibrary
{
{
WarnMsg
=
checkWaitInfo
.
Name
+
"["
+
checkWaitInfo
.
MoveStep
+
"]["
+
NotOkMsg
+
"]已等待["
+
Math
.
Round
(
span
.
TotalSeconds
,
1
)
+
"]秒"
;
WarnMsg
=
checkWaitInfo
.
Name
+
"["
+
checkWaitInfo
.
MoveStep
+
"]["
+
NotOkMsg
+
"]已等待["
+
Math
.
Round
(
span
.
TotalSeconds
,
1
)
+
"]秒"
;
LogUtil
.
error
(
WarnMsg
,
100
);
LogUtil
.
error
(
WarnMsg
,
100
);
Alarm
(
LineAlarmType
.
IoSingleTimeOut
);
Alarm
(
LineAlarmType
.
IoSingleTimeOut
);
}
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
@@ -259,12 +260,18 @@ namespace OnlineStore.DeviceLibrary
...
@@ -259,12 +260,18 @@ namespace OnlineStore.DeviceLibrary
}
}
#
endregion
#
endregion
#
region
扫码处理
private
void
CodeProcess
()
{
}
#
endregion
#
region
出库
#
region
出库
public
override
bool
StartOutStoreMove
(
InOutParam
param
)
public
override
bool
StartOutStoreMove
(
InOutParam
param
)
{
{
//阻挡气缸0-2下降
//阻挡气缸0-2下降
runStatus
=
LineRunStatus
.
Busy
;
runStatus
=
LineRunStatus
.
Busy
;
InOutLog
(
"开始出库忙碌中[BUSY]"
);
InOutLog
(
"开始出库忙碌中[BUSY]"
);
...
@@ -285,7 +292,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -285,7 +292,7 @@ namespace OnlineStore.DeviceLibrary
if
(
MoveInfo
.
IsInWait
)
if
(
MoveInfo
.
IsInWait
)
{
{
return
;
return
;
}
}
}
}
#
endregion
#
endregion
...
@@ -322,7 +329,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -322,7 +329,7 @@ namespace OnlineStore.DeviceLibrary
if
(
MoveInfo
.
IsInWait
)
if
(
MoveInfo
.
IsInWait
)
{
{
return
;
return
;
}
}
}
}
#
endregion
#
endregion
...
@@ -332,7 +339,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -332,7 +339,7 @@ namespace OnlineStore.DeviceLibrary
{
{
LogUtil
.
debug
(
Name
+
msg
);
LogUtil
.
debug
(
Name
+
msg
);
}
}
private
bool
IsDoValue
(
string
ioType
,
IO_VALUE
value
)
private
bool
IsDoValue
(
string
ioType
,
IO_VALUE
value
)
{
{
if
(
IOManager
.
DOValue
(
ioType
,
0
).
Equals
(
value
))
if
(
IOManager
.
DOValue
(
ioType
,
0
).
Equals
(
value
))
...
@@ -352,7 +359,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -352,7 +359,7 @@ namespace OnlineStore.DeviceLibrary
/// <param name="sidesWayNum"></param>
/// <param name="sidesWayNum"></param>
/// <returns></returns>
/// <returns></returns>
internal
bool
SwNoProcess
(
int
sidesWayNum
)
internal
bool
SwNoProcess
(
int
sidesWayNum
)
{
{
if
(
sidesWayNum
.
Equals
(
1
)
||
sidesWayNum
.
Equals
(
4
))
if
(
sidesWayNum
.
Equals
(
1
)
||
sidesWayNum
.
Equals
(
4
))
{
{
if
(
SW41_MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
if
(
SW41_MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
...
@@ -400,8 +407,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -400,8 +407,8 @@ namespace OnlineStore.DeviceLibrary
IOMove
(
IO_Type
.
SW2_MotorRun
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SW2_MotorRun
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SW3_MotorRun
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SW3_MotorRun
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SW4_MotorRun
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SW4_MotorRun
,
IO_VALUE
.
LOW
);
}
}
private
DateTime
SideWay41Ntime
=
DateTime
.
Now
;
private
DateTime
SideWay41Ntime
=
DateTime
.
Now
;
private
bool
SideWay41IsWait
=
false
;
private
bool
SideWay41IsWait
=
false
;
private
DateTime
SideWay23Ntime
=
DateTime
.
Now
;
private
DateTime
SideWay23Ntime
=
DateTime
.
Now
;
...
@@ -430,17 +437,17 @@ namespace OnlineStore.DeviceLibrary
...
@@ -430,17 +437,17 @@ namespace OnlineStore.DeviceLibrary
}
}
if
(
SW41_MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
if
(
SW41_MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
{
{
if
(
IOValue
(
IO_Type
.
SW4_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
SW1_TrayCheck
).
Equals
(
IO_VALUE
.
LOW
)&&
TrayManager
.
CanMoveSidesWay
(
4
)&&
TrayManager
.
CanMoveSidesWay
(
1
))
if
(
IOValue
(
IO_Type
.
SW4_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
SW1_TrayCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
TrayManager
.
CanMoveSidesWay
(
4
)
&&
TrayManager
.
CanMoveSidesWay
(
1
))
{
{
TimeSpan
span12
=
DateTime
.
Now
-
SideWay41Ntime
;
TimeSpan
span12
=
DateTime
.
Now
-
SideWay41Ntime
;
if
(
SideWay41IsWait
&&
span12
.
TotalSeconds
>
1
)
if
(
SideWay41IsWait
&&
span12
.
TotalSeconds
>
1
)
{
{
// TrayManager.UpdateSWState(4, 2);
// TrayManager.UpdateSWState(4, 2);
// TrayManager.UpdateSWState(1, 2);
// TrayManager.UpdateSWState(1, 2);
SW41_MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
SW41_MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_WaitFixtureCheck
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_WaitFixtureCheck
);
SWLog
(
"横移轨道41: 等待横移4托盘检测信号 "
);
SWLog
(
"横移轨道41: 等待横移4托盘检测信号 "
);
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW4_TrayCheck
,
IO_VALUE
.
HIGH
));
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW4_TrayCheck
,
IO_VALUE
.
HIGH
));
...
@@ -464,7 +471,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -464,7 +471,7 @@ namespace OnlineStore.DeviceLibrary
if
(
SW23_MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
if
(
SW23_MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
{
{
//检测到阻挡夹具信号后,阻挡气缸下降,等待有夹具信号,阻挡气缸上升,
//检测到阻挡夹具信号后,阻挡气缸下降,等待有夹具信号,阻挡气缸上升,
//顶升气缸上升到位,开始流水线转动,检测到出口信号后,停止转动,顶升气缸下降,阻挡4下降,盘通过
//顶升气缸上升到位,开始流水线转动,检测到出口信号后,停止转动,顶升气缸下降,阻挡4下降,盘通过
if
(
IOValue
(
IO_Type
.
SW2_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
SW3_TrayCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
if
(
IOValue
(
IO_Type
.
SW2_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
SW3_TrayCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
...
@@ -473,7 +480,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -473,7 +480,7 @@ namespace OnlineStore.DeviceLibrary
TimeSpan
span34
=
DateTime
.
Now
-
SideWay23Ntime
;
TimeSpan
span34
=
DateTime
.
Now
-
SideWay23Ntime
;
if
(
SideWay23IsWait
&&
span34
.
TotalSeconds
>
1
)
if
(
SideWay23IsWait
&&
span34
.
TotalSeconds
>
1
)
{
{
// TrayManager.UpdateSWState(2, 2);
// TrayManager.UpdateSWState(2, 2);
//TrayManager.UpdateSWState(3, 2);
//TrayManager.UpdateSWState(3, 2);
SW23_MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
SW23_MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_WaitFixtureCheck
);
SW23_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_WaitFixtureCheck
);
...
@@ -514,11 +521,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -514,11 +521,11 @@ namespace OnlineStore.DeviceLibrary
if
(
SW41_MoveInfo
.
IsInWait
)
if
(
SW41_MoveInfo
.
IsInWait
)
{
{
return
;
return
;
}
}
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW01_LocationCylinderDown
))
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW01_LocationCylinderDown
))
{
{
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_WaitFixtureCheck
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW02_WaitFixtureCheck
);
SWLog
(
"横移轨道41: 等待横移4托盘检测信号 "
);
SWLog
(
"横移轨道41: 等待横移4托盘检测信号 "
);
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW4_TrayCheck
,
IO_VALUE
.
HIGH
));
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW4_TrayCheck
,
IO_VALUE
.
HIGH
));
}
}
else
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW02_WaitFixtureCheck
))
else
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW02_WaitFixtureCheck
))
...
@@ -528,7 +535,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -528,7 +535,7 @@ namespace OnlineStore.DeviceLibrary
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
CylinderMove
(
SW23_MoveInfo
,
IO_Type
.
SW4_TopCylinder_Down
,
IO_Type
.
SW4_TopCylinder_Up
);
CylinderMove
(
SW23_MoveInfo
,
IO_Type
.
SW4_TopCylinder_Down
,
IO_Type
.
SW4_TopCylinder_Up
);
CylinderMove
(
SW23_MoveInfo
,
IO_Type
.
SW1_TopCylinder_Down
,
IO_Type
.
SW1_TopCylinder_Up
);
CylinderMove
(
SW23_MoveInfo
,
IO_Type
.
SW1_TopCylinder_Down
,
IO_Type
.
SW1_TopCylinder_Up
);
}
}
else
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW03_TopCylinderUp
))
else
if
(
SW41_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW03_TopCylinderUp
))
{
{
...
@@ -572,9 +579,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -572,9 +579,9 @@ namespace OnlineStore.DeviceLibrary
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW09_WaitTrayGo
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW09_WaitTrayGo
);
SWLog
(
"横移轨道41:关闭皮带电机,不需要等待 托盘离开"
);
SWLog
(
"横移轨道41:关闭皮带电机,不需要等待 托盘离开"
);
IOMove
(
IO_Type
.
SW4_MotorRun
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SW4_MotorRun
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SW1_MotorRun
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SW1_MotorRun
,
IO_VALUE
.
LOW
);
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW4_MotorRun
,
IO_VALUE
.
LOW
));
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW4_MotorRun
,
IO_VALUE
.
LOW
));
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW1_MotorRun
,
IO_VALUE
.
LOW
));
SW41_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SW1_MotorRun
,
IO_VALUE
.
LOW
));
}
}
else
else
{
{
...
@@ -602,7 +609,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -602,7 +609,7 @@ namespace OnlineStore.DeviceLibrary
private
bool
CheckTrayIsNeed
(
int
deviceId
)
private
bool
CheckTrayIsNeed
(
int
deviceId
)
{
{
//横移1对应入料1
//横移1对应入料1
if
(
FeedingEquipMap
.
ContainsKey
(
deviceId
))
if
(
FeedingEquipMap
.
ContainsKey
(
deviceId
))
{
{
FeedingEquip
equip
=
FeedingEquipMap
[
deviceId
];
FeedingEquip
equip
=
FeedingEquipMap
[
deviceId
];
...
@@ -615,7 +622,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -615,7 +622,7 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
return
false
;
return
false
;
}
}
private
void
SideWay23BusyProcess
()
private
void
SideWay23BusyProcess
()
{
{
if
(
SW23_MoveInfo
.
IsInWait
)
if
(
SW23_MoveInfo
.
IsInWait
)
...
...
source/DeviceLibrary/deviceLibrary/PanasonicServo/ACServerManager.cs
查看文件 @
b682d26
...
@@ -181,10 +181,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -181,10 +181,10 @@ namespace OnlineStore.DeviceLibrary
string
slvAddrStr
=
string
.
Format
(
strFromat
,
slvAddr
);
string
slvAddrStr
=
string
.
Format
(
strFromat
,
slvAddr
);
////block0=原点返回,正方向
////block0=原点返回,正方向
//string str0 = slvAddrStr + "104800 000408 00000420 00000000 ffff";
//string str0 = slvAddrStr + "104800 000408 00000420 00000000 ffff";
//SendStrAndSleep(portName, str0, sleep);
//SendStrAndSleep(portName, str0, sleep);
////block1=原点返回,反方向
////block1=原点返回,反方向
//string str1 = slvAddrStr + "104804 000408 04000420 00000000 ffff";
//string str1 = slvAddrStr + "104804 000408 04000420 00000000 ffff";
//SendStrAndSleep(portName, str1, sleep);
//SendStrAndSleep(portName, str1, sleep);
////block2=绝对位置运动
////block2=绝对位置运动
//string str2 = slvAddrStr + "104808 000408 10000211EC78FFFF ffff";
//string str2 = slvAddrStr + "104808 000408 10000211EC78FFFF ffff";
//SendStrAndSleep(portName, str2, sleep);
//SendStrAndSleep(portName, str2, sleep);
...
...
source/DeviceLibrary/deviceLibrary/PanasonicServo/ACServerManager_Partial.cs
查看文件 @
b682d26
...
@@ -215,9 +215,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -215,9 +215,11 @@ namespace OnlineStore.DeviceLibrary
else
else
{
{
int
ret
=
bean
.
SendCommand
(
data
,
ref
returnData
,
outTime
,
reviceLength
);
int
ret
=
bean
.
SendCommand
(
data
,
ref
returnData
,
outTime
,
reviceLength
);
if
(!
ret
.
Equals
(
reviceLength
))
if
(!
ret
.
Equals
(
reviceLength
))
{
{
LogUtil
.
error
(
"串口"
+
portName
+
" 写入数据:"
+
strSend
+
",预计返回字节数【"
+
reviceLength
+
"】实际返回【"
+
ret
+
"】"
);
string
datastr
=
AcSerialBean
.
ByteToString
(
returnData
);
LogUtil
.
error
(
"串口"
+
portName
+
" 写入数据:"
+
strSend
+
",预计返回字节数【"
+
reviceLength
+
"】实际返回【"
+
ret
+
"】:"
+
datastr
);
}
}
else
else
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论