Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
TinPasteStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit fd7a2d7a
由
LN
编写于
2022-11-08 10:14:29 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
搅拌轴增加转速显示,配置的速度单位改为转速。
1 个父辈
42b30212
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
156 行增加
和
80 行删除
dll/DeviceLib.dll
source/ACSingleStore/FrmStoreBox.cs
source/ACSingleStore/useControl/AxisMoveControl.Designer.cs
source/ACSingleStore/useControl/AxisMoveControl.cs
source/DeviceLibrary/StoreConfig/StoreConfig.csv
source/DeviceLibrary/acTinStore/TinStoreBean.cs
source/DeviceLibrary/acTinStore/TinStoreBean_Partial.cs
source/LoadCVSLibrary/storeConfig/ConfigItemBase.cs
source/LoadCVSLibrary/storeConfig/config/TieStoreConfig.cs
dll/DeviceLib.dll
查看文件 @
fd7a2d7
此文件类型无法预览
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
fd7a2d7
...
@@ -697,12 +697,12 @@ namespace OnlineStore.TinPasteStore
...
@@ -697,12 +697,12 @@ namespace OnlineStore.TinPasteStore
private
void
btnStirP1_Click
(
object
sender
,
EventArgs
e
)
private
void
btnStirP1_Click
(
object
sender
,
EventArgs
e
)
{
{
AxisABSMove
(
store
.
Config
.
Stir_Axis
,
txtStirP1
,
store
.
Config
.
StirAxis_P1_Speed
);
AxisABSMove
(
store
.
Config
.
Stir_Axis
,
txtStirP1
,
store
.
Config
.
GetStirAxis_P1_Speed
()
);
}
}
private
void
btnStirP2_Click
(
object
sender
,
EventArgs
e
)
private
void
btnStirP2_Click
(
object
sender
,
EventArgs
e
)
{
{
AxisABSMove
(
store
.
Config
.
Stir_Axis
,
txtStirP2
,
store
.
Config
.
StirAxis_P2_Speed
);
AxisABSMove
(
store
.
Config
.
Stir_Axis
,
txtStirP2
,
store
.
Config
.
GetStirAxis_P2_Speed
()
);
}
}
#
endregion
#
endregion
...
...
source/ACSingleStore/useControl/AxisMoveControl.Designer.cs
查看文件 @
fd7a2d7
...
@@ -29,6 +29,12 @@
...
@@ -29,6 +29,12 @@
private
void
InitializeComponent
()
private
void
InitializeComponent
()
{
{
this
.
groupAxis
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupAxis
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
lblSpeed
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label9
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtS
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
linkLabel1
=
new
System
.
Windows
.
Forms
.
LinkLabel
();
this
.
btnMovej
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnMove
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
label7
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label7
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtServoStatue
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtServoStatue
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label17
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label17
=
new
System
.
Windows
.
Forms
.
Label
();
...
@@ -90,9 +96,6 @@
...
@@ -90,9 +96,6 @@
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label43
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label43
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label42
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label42
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnMovej
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnMove
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
linkLabel1
=
new
System
.
Windows
.
Forms
.
LinkLabel
();
this
.
groupAxis
.
SuspendLayout
();
this
.
groupAxis
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
...
@@ -101,6 +104,9 @@
...
@@ -101,6 +104,9 @@
//
//
this
.
groupAxis
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
this
.
groupAxis
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupAxis
.
Controls
.
Add
(
this
.
lblSpeed
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
label9
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
txtS
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
linkLabel1
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
linkLabel1
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
btnMovej
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
btnMovej
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
btnMove
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
btnMove
);
...
@@ -149,10 +155,76 @@
...
@@ -149,10 +155,76 @@
this
.
groupAxis
.
Text
=
"伺服运动"
;
this
.
groupAxis
.
Text
=
"伺服运动"
;
this
.
groupAxis
.
Enter
+=
new
System
.
EventHandler
(
this
.
groupAxis_Enter
);
this
.
groupAxis
.
Enter
+=
new
System
.
EventHandler
(
this
.
groupAxis_Enter
);
//
//
// lblSpeed
//
this
.
lblSpeed
.
AutoSize
=
true
;
this
.
lblSpeed
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblSpeed
.
Location
=
new
System
.
Drawing
.
Point
(
310
,
152
);
this
.
lblSpeed
.
Name
=
"lblSpeed"
;
this
.
lblSpeed
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
17
);
this
.
lblSpeed
.
TabIndex
=
334
;
//
// label9
//
this
.
label9
.
AutoSize
=
true
;
this
.
label9
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label9
.
Location
=
new
System
.
Drawing
.
Point
(
142
,
151
);
this
.
label9
.
Name
=
"label9"
;
this
.
label9
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
17
);
this
.
label9
.
TabIndex
=
333
;
this
.
label9
.
Text
=
"实时速度:"
;
//
// txtS
//
this
.
txtS
.
Location
=
new
System
.
Drawing
.
Point
(
206
,
149
);
this
.
txtS
.
Name
=
"txtS"
;
this
.
txtS
.
ReadOnly
=
true
;
this
.
txtS
.
Size
=
new
System
.
Drawing
.
Size
(
87
,
23
);
this
.
txtS
.
TabIndex
=
332
;
//
// linkLabel1
//
this
.
linkLabel1
.
AutoSize
=
true
;
this
.
linkLabel1
.
Location
=
new
System
.
Drawing
.
Point
(
313
,
183
);
this
.
linkLabel1
.
Name
=
"linkLabel1"
;
this
.
linkLabel1
.
Size
=
new
System
.
Drawing
.
Size
(
56
,
17
);
this
.
linkLabel1
.
TabIndex
=
331
;
this
.
linkLabel1
.
TabStop
=
true
;
this
.
linkLabel1
.
Text
=
"复制位置"
;
this
.
linkLabel1
.
LinkClicked
+=
new
System
.
Windows
.
Forms
.
LinkLabelLinkClickedEventHandler
(
this
.
linkLabel1_LinkClicked
);
//
// btnMovej
//
this
.
btnMovej
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnMovej
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnMovej
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnMovej
.
Location
=
new
System
.
Drawing
.
Point
(
260
,
331
);
this
.
btnMovej
.
Name
=
"btnMovej"
;
this
.
btnMovej
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
45
);
this
.
btnMovej
.
TabIndex
=
330
;
this
.
btnMovej
.
Text
=
" 轴点动- "
;
this
.
btnMovej
.
UseVisualStyleBackColor
=
false
;
this
.
btnMovej
.
MouseDown
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
btnMovej_MouseDown
);
this
.
btnMovej
.
MouseUp
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
btnMovej_MouseUp
);
//
// btnMove
//
this
.
btnMove
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnMove
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnMove
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnMove
.
Location
=
new
System
.
Drawing
.
Point
(
114
,
331
);
this
.
btnMove
.
Name
=
"btnMove"
;
this
.
btnMove
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
45
);
this
.
btnMove
.
TabIndex
=
329
;
this
.
btnMove
.
Text
=
"轴点动+ "
;
this
.
btnMove
.
UseVisualStyleBackColor
=
false
;
this
.
btnMove
.
MouseDown
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
btnMove_MouseDown
);
this
.
btnMove
.
MouseUp
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
btnMove_MouseUp
);
//
// label7
// label7
//
//
this
.
label7
.
AutoSize
=
true
;
this
.
label7
.
AutoSize
=
true
;
this
.
label7
.
Location
=
new
System
.
Drawing
.
Point
(
51
,
1
72
);
this
.
label7
.
Location
=
new
System
.
Drawing
.
Point
(
51
,
1
83
);
this
.
label7
.
Name
=
"label7"
;
this
.
label7
.
Name
=
"label7"
;
this
.
label7
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
17
);
this
.
label7
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
17
);
this
.
label7
.
TabIndex
=
328
;
this
.
label7
.
TabIndex
=
328
;
...
@@ -161,7 +233,7 @@
...
@@ -161,7 +233,7 @@
// txtServoStatue
// txtServoStatue
//
//
this
.
txtServoStatue
.
Enabled
=
false
;
this
.
txtServoStatue
.
Enabled
=
false
;
this
.
txtServoStatue
.
Location
=
new
System
.
Drawing
.
Point
(
112
,
1
69
);
this
.
txtServoStatue
.
Location
=
new
System
.
Drawing
.
Point
(
112
,
1
80
);
this
.
txtServoStatue
.
Name
=
"txtServoStatue"
;
this
.
txtServoStatue
.
Name
=
"txtServoStatue"
;
this
.
txtServoStatue
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtServoStatue
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtServoStatue
.
TabIndex
=
327
;
this
.
txtServoStatue
.
TabIndex
=
327
;
...
@@ -169,7 +241,7 @@
...
@@ -169,7 +241,7 @@
// label17
// label17
//
//
this
.
label17
.
AutoSize
=
true
;
this
.
label17
.
AutoSize
=
true
;
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
174
,
2
72
);
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
174
,
2
83
);
this
.
label17
.
Name
=
"label17"
;
this
.
label17
.
Name
=
"label17"
;
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
71
,
17
);
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
71
,
17
);
this
.
label17
.
TabIndex
=
316
;
this
.
label17
.
TabIndex
=
316
;
...
@@ -179,7 +251,7 @@
...
@@ -179,7 +251,7 @@
// txtLimit2
// txtLimit2
//
//
this
.
txtLimit2
.
Enabled
=
false
;
this
.
txtLimit2
.
Enabled
=
false
;
this
.
txtLimit2
.
Location
=
new
System
.
Drawing
.
Point
(
250
,
2
69
);
this
.
txtLimit2
.
Location
=
new
System
.
Drawing
.
Point
(
250
,
2
80
);
this
.
txtLimit2
.
Name
=
"txtLimit2"
;
this
.
txtLimit2
.
Name
=
"txtLimit2"
;
this
.
txtLimit2
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtLimit2
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtLimit2
.
TabIndex
=
313
;
this
.
txtLimit2
.
TabIndex
=
313
;
...
@@ -187,7 +259,7 @@
...
@@ -187,7 +259,7 @@
// label19
// label19
//
//
this
.
label19
.
AutoSize
=
true
;
this
.
label19
.
AutoSize
=
true
;
this
.
label19
.
Location
=
new
System
.
Drawing
.
Point
(
174
,
2
38
);
this
.
label19
.
Location
=
new
System
.
Drawing
.
Point
(
174
,
2
49
);
this
.
label19
.
Name
=
"label19"
;
this
.
label19
.
Name
=
"label19"
;
this
.
label19
.
Size
=
new
System
.
Drawing
.
Size
(
71
,
17
);
this
.
label19
.
Size
=
new
System
.
Drawing
.
Size
(
71
,
17
);
this
.
label19
.
TabIndex
=
312
;
this
.
label19
.
TabIndex
=
312
;
...
@@ -197,7 +269,7 @@
...
@@ -197,7 +269,7 @@
// txtLimit1
// txtLimit1
//
//
this
.
txtLimit1
.
Enabled
=
false
;
this
.
txtLimit1
.
Enabled
=
false
;
this
.
txtLimit1
.
Location
=
new
System
.
Drawing
.
Point
(
250
,
2
35
);
this
.
txtLimit1
.
Location
=
new
System
.
Drawing
.
Point
(
250
,
2
46
);
this
.
txtLimit1
.
Name
=
"txtLimit1"
;
this
.
txtLimit1
.
Name
=
"txtLimit1"
;
this
.
txtLimit1
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtLimit1
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtLimit1
.
TabIndex
=
309
;
this
.
txtLimit1
.
TabIndex
=
309
;
...
@@ -205,7 +277,7 @@
...
@@ -205,7 +277,7 @@
// label6
// label6
//
//
this
.
label6
.
AutoSize
=
true
;
this
.
label6
.
AutoSize
=
true
;
this
.
label6
.
Location
=
new
System
.
Drawing
.
Point
(
186
,
2
04
);
this
.
label6
.
Location
=
new
System
.
Drawing
.
Point
(
186
,
2
15
);
this
.
label6
.
Name
=
"label6"
;
this
.
label6
.
Name
=
"label6"
;
this
.
label6
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
17
);
this
.
label6
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
17
);
this
.
label6
.
TabIndex
=
300
;
this
.
label6
.
TabIndex
=
300
;
...
@@ -214,7 +286,7 @@
...
@@ -214,7 +286,7 @@
// txtHomeSingle
// txtHomeSingle
//
//
this
.
txtHomeSingle
.
Enabled
=
false
;
this
.
txtHomeSingle
.
Enabled
=
false
;
this
.
txtHomeSingle
.
Location
=
new
System
.
Drawing
.
Point
(
250
,
2
01
);
this
.
txtHomeSingle
.
Location
=
new
System
.
Drawing
.
Point
(
250
,
2
12
);
this
.
txtHomeSingle
.
Name
=
"txtHomeSingle"
;
this
.
txtHomeSingle
.
Name
=
"txtHomeSingle"
;
this
.
txtHomeSingle
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtHomeSingle
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtHomeSingle
.
TabIndex
=
297
;
this
.
txtHomeSingle
.
TabIndex
=
297
;
...
@@ -222,7 +294,7 @@
...
@@ -222,7 +294,7 @@
// label11
// label11
//
//
this
.
label11
.
AutoSize
=
true
;
this
.
label11
.
AutoSize
=
true
;
this
.
label11
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
2
72
);
this
.
label11
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
2
83
);
this
.
label11
.
Name
=
"label11"
;
this
.
label11
.
Name
=
"label11"
;
this
.
label11
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
17
);
this
.
label11
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
17
);
this
.
label11
.
TabIndex
=
292
;
this
.
label11
.
TabIndex
=
292
;
...
@@ -231,7 +303,7 @@
...
@@ -231,7 +303,7 @@
// txtHomeStatus
// txtHomeStatus
//
//
this
.
txtHomeStatus
.
Enabled
=
false
;
this
.
txtHomeStatus
.
Enabled
=
false
;
this
.
txtHomeStatus
.
Location
=
new
System
.
Drawing
.
Point
(
112
,
2
69
);
this
.
txtHomeStatus
.
Location
=
new
System
.
Drawing
.
Point
(
112
,
2
80
);
this
.
txtHomeStatus
.
Name
=
"txtHomeStatus"
;
this
.
txtHomeStatus
.
Name
=
"txtHomeStatus"
;
this
.
txtHomeStatus
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtHomeStatus
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtHomeStatus
.
TabIndex
=
291
;
this
.
txtHomeStatus
.
TabIndex
=
291
;
...
@@ -239,7 +311,7 @@
...
@@ -239,7 +311,7 @@
// label10
// label10
//
//
this
.
label10
.
AutoSize
=
true
;
this
.
label10
.
AutoSize
=
true
;
this
.
label10
.
Location
=
new
System
.
Drawing
.
Point
(
44
,
2
38
);
this
.
label10
.
Location
=
new
System
.
Drawing
.
Point
(
44
,
2
49
);
this
.
label10
.
Name
=
"label10"
;
this
.
label10
.
Name
=
"label10"
;
this
.
label10
.
Size
=
new
System
.
Drawing
.
Size
(
66
,
17
);
this
.
label10
.
Size
=
new
System
.
Drawing
.
Size
(
66
,
17
);
this
.
label10
.
TabIndex
=
289
;
this
.
label10
.
TabIndex
=
289
;
...
@@ -248,7 +320,7 @@
...
@@ -248,7 +320,7 @@
// txtBusyStatus
// txtBusyStatus
//
//
this
.
txtBusyStatus
.
Enabled
=
false
;
this
.
txtBusyStatus
.
Enabled
=
false
;
this
.
txtBusyStatus
.
Location
=
new
System
.
Drawing
.
Point
(
112
,
2
35
);
this
.
txtBusyStatus
.
Location
=
new
System
.
Drawing
.
Point
(
112
,
2
46
);
this
.
txtBusyStatus
.
Name
=
"txtBusyStatus"
;
this
.
txtBusyStatus
.
Name
=
"txtBusyStatus"
;
this
.
txtBusyStatus
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtBusyStatus
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtBusyStatus
.
TabIndex
=
288
;
this
.
txtBusyStatus
.
TabIndex
=
288
;
...
@@ -256,7 +328,7 @@
...
@@ -256,7 +328,7 @@
// label2
// label2
//
//
this
.
label2
.
AutoSize
=
true
;
this
.
label2
.
AutoSize
=
true
;
this
.
label2
.
Location
=
new
System
.
Drawing
.
Point
(
51
,
2
04
);
this
.
label2
.
Location
=
new
System
.
Drawing
.
Point
(
51
,
2
15
);
this
.
label2
.
Name
=
"label2"
;
this
.
label2
.
Name
=
"label2"
;
this
.
label2
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
17
);
this
.
label2
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
17
);
this
.
label2
.
TabIndex
=
286
;
this
.
label2
.
TabIndex
=
286
;
...
@@ -265,7 +337,7 @@
...
@@ -265,7 +337,7 @@
// txtAlarmStatus
// txtAlarmStatus
//
//
this
.
txtAlarmStatus
.
Enabled
=
false
;
this
.
txtAlarmStatus
.
Enabled
=
false
;
this
.
txtAlarmStatus
.
Location
=
new
System
.
Drawing
.
Point
(
112
,
2
01
);
this
.
txtAlarmStatus
.
Location
=
new
System
.
Drawing
.
Point
(
112
,
2
12
);
this
.
txtAlarmStatus
.
Name
=
"txtAlarmStatus"
;
this
.
txtAlarmStatus
.
Name
=
"txtAlarmStatus"
;
this
.
txtAlarmStatus
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtAlarmStatus
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
23
);
this
.
txtAlarmStatus
.
TabIndex
=
285
;
this
.
txtAlarmStatus
.
TabIndex
=
285
;
...
@@ -274,7 +346,7 @@
...
@@ -274,7 +346,7 @@
//
//
this
.
btnGetAlarm
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnGetAlarm
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnGetAlarm
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnGetAlarm
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnGetAlarm
.
Location
=
new
System
.
Drawing
.
Point
(
308
,
2
05
);
this
.
btnGetAlarm
.
Location
=
new
System
.
Drawing
.
Point
(
308
,
2
16
);
this
.
btnGetAlarm
.
Name
=
"btnGetAlarm"
;
this
.
btnGetAlarm
.
Name
=
"btnGetAlarm"
;
this
.
btnGetAlarm
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
33
);
this
.
btnGetAlarm
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
33
);
this
.
btnGetAlarm
.
TabIndex
=
284
;
this
.
btnGetAlarm
.
TabIndex
=
284
;
...
@@ -289,7 +361,7 @@
...
@@ -289,7 +361,7 @@
this
.
btnReadPosition
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnReadPosition
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnReadPosition
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnReadPosition
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnReadPosition
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
ControlText
;
this
.
btnReadPosition
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
ControlText
;
this
.
btnReadPosition
.
Location
=
new
System
.
Drawing
.
Point
(
423
,
2
44
);
this
.
btnReadPosition
.
Location
=
new
System
.
Drawing
.
Point
(
423
,
2
55
);
this
.
btnReadPosition
.
Name
=
"btnReadPosition"
;
this
.
btnReadPosition
.
Name
=
"btnReadPosition"
;
this
.
btnReadPosition
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnReadPosition
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnReadPosition
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
33
);
this
.
btnReadPosition
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
33
);
...
@@ -302,7 +374,7 @@
...
@@ -302,7 +374,7 @@
//
//
this
.
label8
.
AutoSize
=
true
;
this
.
label8
.
AutoSize
=
true
;
this
.
label8
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label8
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label8
.
Location
=
new
System
.
Drawing
.
Point
(
143
,
1
71
);
this
.
label8
.
Location
=
new
System
.
Drawing
.
Point
(
143
,
1
82
);
this
.
label8
.
Name
=
"label8"
;
this
.
label8
.
Name
=
"label8"
;
this
.
label8
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
17
);
this
.
label8
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
17
);
this
.
label8
.
TabIndex
=
255
;
this
.
label8
.
TabIndex
=
255
;
...
@@ -342,7 +414,7 @@
...
@@ -342,7 +414,7 @@
//
//
// txtP
// txtP
//
//
this
.
txtP
.
Location
=
new
System
.
Drawing
.
Point
(
207
,
1
69
);
this
.
txtP
.
Location
=
new
System
.
Drawing
.
Point
(
207
,
1
80
);
this
.
txtP
.
Name
=
"txtP"
;
this
.
txtP
.
Name
=
"txtP"
;
this
.
txtP
.
ReadOnly
=
true
;
this
.
txtP
.
ReadOnly
=
true
;
this
.
txtP
.
Size
=
new
System
.
Drawing
.
Size
(
87
,
23
);
this
.
txtP
.
Size
=
new
System
.
Drawing
.
Size
(
87
,
23
);
...
@@ -416,7 +488,7 @@
...
@@ -416,7 +488,7 @@
this
.
btnAxisReturnHome
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnAxisReturnHome
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnAxisReturnHome
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnAxisReturnHome
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnAxisReturnHome
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
ControlText
;
this
.
btnAxisReturnHome
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
ControlText
;
this
.
btnAxisReturnHome
.
Location
=
new
System
.
Drawing
.
Point
(
423
,
2
05
);
this
.
btnAxisReturnHome
.
Location
=
new
System
.
Drawing
.
Point
(
423
,
2
16
);
this
.
btnAxisReturnHome
.
Name
=
"btnAxisReturnHome"
;
this
.
btnAxisReturnHome
.
Name
=
"btnAxisReturnHome"
;
this
.
btnAxisReturnHome
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisReturnHome
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisReturnHome
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
33
);
this
.
btnAxisReturnHome
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
33
);
...
@@ -445,7 +517,7 @@
...
@@ -445,7 +517,7 @@
//
//
this
.
btnComAlarmClear
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnComAlarmClear
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnComAlarmClear
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnComAlarmClear
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnComAlarmClear
.
Location
=
new
System
.
Drawing
.
Point
(
308
,
2
44
);
this
.
btnComAlarmClear
.
Location
=
new
System
.
Drawing
.
Point
(
308
,
2
55
);
this
.
btnComAlarmClear
.
Name
=
"btnComAlarmClear"
;
this
.
btnComAlarmClear
.
Name
=
"btnComAlarmClear"
;
this
.
btnComAlarmClear
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
33
);
this
.
btnComAlarmClear
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
33
);
this
.
btnComAlarmClear
.
TabIndex
=
50
;
this
.
btnComAlarmClear
.
TabIndex
=
50
;
...
@@ -820,45 +892,6 @@
...
@@ -820,45 +892,6 @@
this
.
label42
.
TabIndex
=
24
;
this
.
label42
.
TabIndex
=
24
;
this
.
label42
.
Text
=
"编码器计数:"
;
this
.
label42
.
Text
=
"编码器计数:"
;
//
//
// btnMovej
//
this
.
btnMovej
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnMovej
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnMovej
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnMovej
.
Location
=
new
System
.
Drawing
.
Point
(
260
,
326
);
this
.
btnMovej
.
Name
=
"btnMovej"
;
this
.
btnMovej
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
45
);
this
.
btnMovej
.
TabIndex
=
330
;
this
.
btnMovej
.
Text
=
" 轴点动- "
;
this
.
btnMovej
.
UseVisualStyleBackColor
=
false
;
this
.
btnMovej
.
MouseDown
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
btnMovej_MouseDown
);
this
.
btnMovej
.
MouseUp
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
btnMovej_MouseUp
);
//
// btnMove
//
this
.
btnMove
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnMove
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnMove
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnMove
.
Location
=
new
System
.
Drawing
.
Point
(
114
,
326
);
this
.
btnMove
.
Name
=
"btnMove"
;
this
.
btnMove
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
45
);
this
.
btnMove
.
TabIndex
=
329
;
this
.
btnMove
.
Text
=
"轴点动+ "
;
this
.
btnMove
.
UseVisualStyleBackColor
=
false
;
this
.
btnMove
.
MouseDown
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
btnMove_MouseDown
);
this
.
btnMove
.
MouseUp
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
btnMove_MouseUp
);
//
// linkLabel1
//
this
.
linkLabel1
.
AutoSize
=
true
;
this
.
linkLabel1
.
Location
=
new
System
.
Drawing
.
Point
(
313
,
172
);
this
.
linkLabel1
.
Name
=
"linkLabel1"
;
this
.
linkLabel1
.
Size
=
new
System
.
Drawing
.
Size
(
56
,
17
);
this
.
linkLabel1
.
TabIndex
=
331
;
this
.
linkLabel1
.
TabStop
=
true
;
this
.
linkLabel1
.
Text
=
"复制位置"
;
this
.
linkLabel1
.
LinkClicked
+=
new
System
.
Windows
.
Forms
.
LinkLabelLinkClickedEventHandler
(
this
.
linkLabel1_LinkClicked
);
//
// AxisMoveControl
// AxisMoveControl
//
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
@@ -941,5 +974,8 @@
...
@@ -941,5 +974,8 @@
private
System
.
Windows
.
Forms
.
Button
btnMovej
;
private
System
.
Windows
.
Forms
.
Button
btnMovej
;
private
System
.
Windows
.
Forms
.
Button
btnMove
;
private
System
.
Windows
.
Forms
.
Button
btnMove
;
private
System
.
Windows
.
Forms
.
LinkLabel
linkLabel1
;
private
System
.
Windows
.
Forms
.
LinkLabel
linkLabel1
;
private
System
.
Windows
.
Forms
.
Label
label9
;
private
System
.
Windows
.
Forms
.
TextBox
txtS
;
private
System
.
Windows
.
Forms
.
Label
lblSpeed
;
}
}
}
}
source/ACSingleStore/useControl/AxisMoveControl.cs
查看文件 @
fd7a2d7
...
@@ -22,9 +22,9 @@ namespace OnlineStore.ACPackingStore
...
@@ -22,9 +22,9 @@ namespace OnlineStore.ACPackingStore
private
TinStoreBean
BoxBean
=
null
;
private
TinStoreBean
BoxBean
=
null
;
private
string
PortName
=
""
;
private
string
PortName
=
""
;
private
int
SlvAddr
=
0
;
private
int
SlvAddr
=
0
;
public
AxisMoveControl
(
)
public
AxisMoveControl
(
)
{
{
InitializeComponent
();
InitializeComponent
();
}
}
public
void
LoadData
(
TinStoreBean
boxBean
,
params
ConfigMoveAxis
[]
moveAxis
)
public
void
LoadData
(
TinStoreBean
boxBean
,
params
ConfigMoveAxis
[]
moveAxis
)
...
@@ -161,11 +161,26 @@ namespace OnlineStore.ACPackingStore
...
@@ -161,11 +161,26 @@ namespace OnlineStore.ACPackingStore
this
.
txtHomeSingle
.
Text
=
ACServerManager
.
GetHomeSingle
(
PortName
,
SlvAddr
).
ToString
();
this
.
txtHomeSingle
.
Text
=
ACServerManager
.
GetHomeSingle
(
PortName
,
SlvAddr
).
ToString
();
this
.
txtLimit1
.
Text
=
ACServerManager
.
GetLimitPositiveSingle
(
PortName
,
SlvAddr
).
ToString
();
this
.
txtLimit1
.
Text
=
ACServerManager
.
GetLimitPositiveSingle
(
PortName
,
SlvAddr
).
ToString
();
this
.
txtLimit2
.
Text
=
ACServerManager
.
GetLimitNegativeSingle
(
PortName
,
SlvAddr
).
ToString
();
this
.
txtLimit2
.
Text
=
ACServerManager
.
GetLimitNegativeSingle
(
PortName
,
SlvAddr
).
ToString
();
int
speed
=
ACServerManager
.
GetActualSpeed
(
PortName
,
SlvAddr
);
this
.
txtS
.
Text
=
speed
.
ToString
();
if
(
axis
!=
null
&&
axis
.
SpeedChangeV
!=
1
)
{
int
r
=(
int
)
Math
.
Round
(
speed
/
axis
.
SpeedChangeV
);
lblSpeed
.
Text
=
"转速:"
+
r
;
}
else
{
lblSpeed
.
Text
=
""
;
}
UpdatePosition
();
}
}
private
void
btnReadPosition_Click
(
object
sender
,
EventArgs
e
)
private
void
btnReadPosition_Click
(
object
sender
,
EventArgs
e
)
{
{
ReadPosistion
();
ReadPosistion
();
UpdatePosition
();
}
}
private
void
ReadPosistion
()
private
void
ReadPosistion
()
...
@@ -203,11 +218,12 @@ namespace OnlineStore.ACPackingStore
...
@@ -203,11 +218,12 @@ namespace OnlineStore.ACPackingStore
}
}
}
}
}
}
private
ConfigMoveAxis
axis
=
null
;
private
void
comboBox1_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
private
void
comboBox1_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
{
if
(
comboBox1
.
SelectedIndex
>=
0
)
if
(
comboBox1
.
SelectedIndex
>=
0
)
{
{
ConfigMoveAxis
axis
=
axisList
[
comboBox1
.
SelectedIndex
];
axis
=
axisList
[
comboBox1
.
SelectedIndex
];
PortName
=
axis
.
DeviceName
;
PortName
=
axis
.
DeviceName
;
SlvAddr
=
axis
.
GetAxisValue
();
SlvAddr
=
axis
.
GetAxisValue
();
txtAxisDeviceName
.
Text
=
PortName
;
txtAxisDeviceName
.
Text
=
PortName
;
...
...
source/DeviceLibrary/StoreConfig/StoreConfig.csv
查看文件 @
fd7a2d7
...
@@ -124,8 +124,9 @@ PRO,回温区旋转轴(轴4)P1速度,WarmingAxis_P1_Speed,500,,,,,,,,,,,,,,
...
@@ -124,8 +124,9 @@ PRO,回温区旋转轴(轴4)P1速度,WarmingAxis_P1_Speed,500,,,,,,,,,,,,,,
PRO,回温区旋转轴(轴4)P2速度,WarmingAxis_P2_Speed,500,,,,,,,,,,,,,,
PRO,回温区旋转轴(轴4)P2速度,WarmingAxis_P2_Speed,500,,,,,,,,,,,,,,
PRO,冷藏区旋转轴(轴5)P1速度(匀速运动速度),ColdingAxis_P1_Speed,500,,,,,,,,,,,,,,
PRO,冷藏区旋转轴(轴5)P1速度(匀速运动速度),ColdingAxis_P1_Speed,500,,,,,,,,,,,,,,
PRO,冷藏区旋转轴(轴5)P2速度,ColdingAxis_P2_Speed,500,,,,,,,,,,,,,,
PRO,冷藏区旋转轴(轴5)P2速度,ColdingAxis_P2_Speed,500,,,,,,,,,,,,,,
PRO,搅拌区旋转轴(轴6)P1速度(匀速运动速度),StirAxis_P1_Speed,400,,,,,,,,,,,,,,
PRO,搅拌区旋转轴(轴6)P1速度_转速需要X系数(匀速运动速度),StirAxis_P1_Speed,400,,,,,,,,,,,,,,
PRO,搅拌区旋转轴(轴6)P2速度,StirAxis_P2_Speed,100,,,,,,,,,,,,,,
PRO,搅拌区旋转轴(轴6)P2速度_转速需要X系数,StirAxis_P2_Speed,100,,,,,,,,,,,,,,
PRO,搅拌区旋转轴(轴6)速度和转速系数,StirAxis_Speed_Change,3.2,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,
PRO,伺服停止时可误差的脉冲数的最小值,Axis_ErrorCountMin,10,,,,,,,,,,,,,,
PRO,伺服停止时可误差的脉冲数的最小值,Axis_ErrorCountMin,10,,,,,,,,,,,,,,
PRO,伺服停止时可误差的脉冲数的最大值,Axis_ErrorCountMax,1000,,,,,,,,,,,,,,
PRO,伺服停止时可误差的脉冲数的最大值,Axis_ErrorCountMax,1000,,,,,,,,,,,,,,
...
...
source/DeviceLibrary/acTinStore/TinStoreBean.cs
查看文件 @
fd7a2d7
...
@@ -231,7 +231,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -231,7 +231,7 @@ namespace OnlineStore.DeviceLibrary
ResetLog
(
"复位:旋转轴,升降轴,搅拌轴到待机点"
);
ResetLog
(
"复位:旋转轴,升降轴,搅拌轴到待机点"
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_OL_P1
,
Config
.
UpDownAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_OL_P1
,
Config
.
UpDownAxis_P1_Speed
);
ACAxisMove
(
Config
.
Stir_Axis
,
Config
.
Stir_Axis_P1
,
Config
.
StirAxis_P1_Speed
);
ACAxisMove
(
Config
.
Stir_Axis
,
Config
.
Stir_Axis_P1
,
Config
.
GetStirAxis_P1_Speed
()
);
break
;
break
;
case
StoreMoveStep
.
R04_AxisToP1
:
case
StoreMoveStep
.
R04_AxisToP1
:
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
R05_StartWork
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
R05_StartWork
);
...
@@ -267,7 +267,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -267,7 +267,7 @@ namespace OnlineStore.DeviceLibrary
if
(
CurrStirInfo
.
StopTime
>
DateTime
.
Now
)
if
(
CurrStirInfo
.
StopTime
>
DateTime
.
Now
)
{
{
LogUtil
.
info
(
Name
+
"搅拌区【"
+
CurrStirInfo
.
StirParam
.
LogName
+
"】状态【"
+
CurrStirInfo
.
MoveStatus
+
"】结束时间【"
+
CurrStirInfo
.
StopTime
.
ToLongTimeString
()
+
"】开始继续搅拌 "
);
LogUtil
.
info
(
Name
+
"搅拌区【"
+
CurrStirInfo
.
StirParam
.
LogName
+
"】状态【"
+
CurrStirInfo
.
MoveStatus
+
"】结束时间【"
+
CurrStirInfo
.
StopTime
.
ToLongTimeString
()
+
"】开始继续搅拌 "
);
ACServerManager
.
SpeedMove
(
Config
.
Stir_Axis
.
DeviceName
,
Config
.
Stir_Axis
.
GetAxisValue
(),
Config
.
StirAxis_P1_Speed
);
ACServerManager
.
SpeedMove
(
Config
.
Stir_Axis
.
DeviceName
,
Config
.
Stir_Axis
.
GetAxisValue
(),
Config
.
GetStirAxis_P1_Speed
()
);
}
}
}
}
break
;
break
;
...
@@ -291,6 +291,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -291,6 +291,8 @@ namespace OnlineStore.DeviceLibrary
{
{
TieStoreConfig
.
ConfigAxis
(
Config
);
TieStoreConfig
.
ConfigAxis
(
Config
);
Config
.
Stir_Axis
.
SpeedChangeV
=
Config
.
StirAxis_Speed_Change
;
moveAxisList
=
new
List
<
ConfigMoveAxis
>();
moveAxisList
=
new
List
<
ConfigMoveAxis
>();
moveAxisList
.
Add
(
Config
.
Middle_Axis
);
moveAxisList
.
Add
(
Config
.
Middle_Axis
);
moveAxisList
.
Add
(
Config
.
UpDown_Axis
);
moveAxisList
.
Add
(
Config
.
UpDown_Axis
);
...
...
source/DeviceLibrary/acTinStore/TinStoreBean_Partial.cs
查看文件 @
fd7a2d7
...
@@ -379,7 +379,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -379,7 +379,7 @@ namespace OnlineStore.DeviceLibrary
OutStoreLog
(
" 送料1搅拌:移动到搅拌位置,升降轴到搅拌区高点P101 ["
+
Config
.
UpDownAxis_StirH_P101
+
"],旋转轴到P101 ["
+
Config
.
UpDownAxis_StirH_P101
+
"], 搅拌轴到P1["
+
Config
.
Stir_Axis_P1
+
"]"
);
OutStoreLog
(
" 送料1搅拌:移动到搅拌位置,升降轴到搅拌区高点P101 ["
+
Config
.
UpDownAxis_StirH_P101
+
"],旋转轴到P101 ["
+
Config
.
UpDownAxis_StirH_P101
+
"], 搅拌轴到P1["
+
Config
.
Stir_Axis_P1
+
"]"
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_StirH_P101
,
Config
.
UpDownAxis_P101_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_StirH_P101
,
Config
.
UpDownAxis_P101_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_Stir_P101
,
Config
.
MiddleAxis_P101_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_Stir_P101
,
Config
.
MiddleAxis_P101_Speed
);
ACAxisMove
(
Config
.
Stir_Axis
,
Config
.
Stir_Axis_P1
,
Config
.
StirAxis_P1_Speed
);
ACAxisMove
(
Config
.
Stir_Axis
,
Config
.
Stir_Axis_P1
,
Config
.
GetStirAxis_P1_Speed
()
);
}
}
else
if
(
MoveInfo
.
IsStep
(
StoreMoveStep
.
ST_09_MoveToStir
))
else
if
(
MoveInfo
.
IsStep
(
StoreMoveStep
.
ST_09_MoveToStir
))
{
{
...
@@ -497,7 +497,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -497,7 +497,7 @@ namespace OnlineStore.DeviceLibrary
OutStoreLog
(
" 送料2搅拌:移动到搅拌位置,升降轴到搅拌区高点P101["
+
Config
.
MiddleAxis_Stir_P101
+
"],旋转轴到P101 ["
+
Config
.
UpDownAxis_StirH_P101
+
"], 搅拌轴到P2["
+
Config
.
Stir_Axis_P2
+
"]"
);
OutStoreLog
(
" 送料2搅拌:移动到搅拌位置,升降轴到搅拌区高点P101["
+
Config
.
MiddleAxis_Stir_P101
+
"],旋转轴到P101 ["
+
Config
.
UpDownAxis_StirH_P101
+
"], 搅拌轴到P2["
+
Config
.
Stir_Axis_P2
+
"]"
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_Stir_P101
,
Config
.
MiddleAxis_P101_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_Stir_P101
,
Config
.
MiddleAxis_P101_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_StirH_P101
,
Config
.
UpDownAxis_P101_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_StirH_P101
,
Config
.
UpDownAxis_P101_Speed
);
ACAxisMove
(
Config
.
Stir_Axis
,
Config
.
Stir_Axis_P2
,
Config
.
StirAxis_P2_Speed
);
ACAxisMove
(
Config
.
Stir_Axis
,
Config
.
Stir_Axis_P2
,
Config
.
GetStirAxis_P2_Speed
()
);
}
}
else
if
(
MoveInfo
.
IsStep
(
StoreMoveStep
.
ST_29_MoveToStir
))
else
if
(
MoveInfo
.
IsStep
(
StoreMoveStep
.
ST_29_MoveToStir
))
{
{
...
@@ -541,7 +541,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -541,7 +541,7 @@ namespace OnlineStore.DeviceLibrary
{
{
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
ST_41_StartStir
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
ST_41_StartStir
);
OutStoreLog
(
" 搅拌:开始搅拌,回温轴,搅拌轴,开始匀速旋转"
);
OutStoreLog
(
" 搅拌:开始搅拌,回温轴,搅拌轴,开始匀速旋转"
);
ACServerManager
.
SpeedMove
(
Config
.
Stir_Axis
.
DeviceName
,
Config
.
Stir_Axis
.
GetAxisValue
(),
Config
.
StirAxis_P1_Speed
);
ACServerManager
.
SpeedMove
(
Config
.
Stir_Axis
.
DeviceName
,
Config
.
Stir_Axis
.
GetAxisValue
(),
Config
.
GetStirAxis_P1_Speed
()
);
StartWork
(
2
);
StartWork
(
2
);
UpdateCurrStirState
(
3
,
MoveInfo
.
MoveParam
.
StirSecsond
);
UpdateCurrStirState
(
3
,
MoveInfo
.
MoveParam
.
StirSecsond
);
if
(
MoveInfo
.
MoveParam
.
TarPosition
.
PosType
>=
100
)
if
(
MoveInfo
.
MoveParam
.
TarPosition
.
PosType
>=
100
)
...
@@ -578,7 +578,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -578,7 +578,7 @@ namespace OnlineStore.DeviceLibrary
OutStoreLog
(
" 搅拌1回库:移动到搅拌位置,升降轴到搅拌区低点P102 ["
+
Config
.
UpDownAxis_StirL_P102
+
"],旋转轴到P101 ["
+
Config
.
MiddleAxis_Stir_P101
+
"], 搅拌轴到P1["
+
Config
.
Stir_Axis_P1
+
"]"
);
OutStoreLog
(
" 搅拌1回库:移动到搅拌位置,升降轴到搅拌区低点P102 ["
+
Config
.
UpDownAxis_StirL_P102
+
"],旋转轴到P101 ["
+
Config
.
MiddleAxis_Stir_P101
+
"], 搅拌轴到P1["
+
Config
.
Stir_Axis_P1
+
"]"
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_StirL_P102
,
Config
.
UpDownAxis_P102_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_StirL_P102
,
Config
.
UpDownAxis_P102_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_Stir_P101
,
Config
.
MiddleAxis_P101_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_Stir_P101
,
Config
.
MiddleAxis_P101_Speed
);
ACAxisMove
(
Config
.
Stir_Axis
,
Config
.
Stir_Axis_P1
,
Config
.
StirAxis_P1_Speed
);
ACAxisMove
(
Config
.
Stir_Axis
,
Config
.
Stir_Axis_P1
,
Config
.
GetStirAxis_P1_Speed
()
);
}
}
else
if
(
MoveInfo
.
IsStep
(
StoreMoveStep
.
SR_52_MoveToStir
))
else
if
(
MoveInfo
.
IsStep
(
StoreMoveStep
.
SR_52_MoveToStir
))
{
{
...
@@ -667,7 +667,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -667,7 +667,7 @@ namespace OnlineStore.DeviceLibrary
OutStoreLog
(
" 搅拌2回库:移动到搅拌位置,升降轴到搅拌区低点P102 ["
+
Config
.
UpDownAxis_StirL_P102
+
"],旋转轴到P101 ["
+
Config
.
MiddleAxis_Stir_P101
+
"], 搅拌轴到P2 ["
+
Config
.
Stir_Axis_P2
+
"]"
);
OutStoreLog
(
" 搅拌2回库:移动到搅拌位置,升降轴到搅拌区低点P102 ["
+
Config
.
UpDownAxis_StirL_P102
+
"],旋转轴到P101 ["
+
Config
.
MiddleAxis_Stir_P101
+
"], 搅拌轴到P2 ["
+
Config
.
Stir_Axis_P2
+
"]"
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_StirL_P102
,
Config
.
UpDownAxis_P102_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_StirL_P102
,
Config
.
UpDownAxis_P102_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_Stir_P101
,
Config
.
MiddleAxis_P101_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_Stir_P101
,
Config
.
MiddleAxis_P101_Speed
);
ACAxisMove
(
Config
.
Stir_Axis
,
Config
.
Stir_Axis_P2
,
Config
.
StirAxis_P2_Speed
);
ACAxisMove
(
Config
.
Stir_Axis
,
Config
.
Stir_Axis_P2
,
Config
.
GetStirAxis_P2_Speed
()
);
UpdateLastStatus
(
StoreStatus
.
Mix_Putting
,
MoveInfo
.
MoveParam
.
TarPosId
);
UpdateLastStatus
(
StoreStatus
.
Mix_Putting
,
MoveInfo
.
MoveParam
.
TarPosId
);
}
}
else
if
(
MoveInfo
.
IsStep
(
StoreMoveStep
.
SR_72_MoveToStir
))
else
if
(
MoveInfo
.
IsStep
(
StoreMoveStep
.
SR_72_MoveToStir
))
...
...
source/LoadCVSLibrary/storeConfig/ConfigItemBase.cs
查看文件 @
fd7a2d7
...
@@ -136,6 +136,12 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -136,6 +136,12 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary>
/// </summary>
[
CSVAttribute
(
"脉冲最大限位"
)]
[
CSVAttribute
(
"脉冲最大限位"
)]
public
int
PositionMax
{
get
;
set
;
}
public
int
PositionMax
{
get
;
set
;
}
/// <summary>
/// 速度转换系数,只有搅拌轴使用
/// </summary>
public
float
SpeedChangeV
{
get
;
set
;
}
=
1
;
public
string
GetNameStr
()
public
string
GetNameStr
()
{
{
return
DeviceName
+
"_"
+
GetAxisValue
();
return
DeviceName
+
"_"
+
GetAxisValue
();
...
...
source/LoadCVSLibrary/storeConfig/config/TieStoreConfig.cs
查看文件 @
fd7a2d7
...
@@ -313,15 +313,30 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -313,15 +313,30 @@ namespace OnlineStore.LoadCSVLibrary
[
ConfigProAttribute
(
"ColdingAxis_P2_Speed"
)]
[
ConfigProAttribute
(
"ColdingAxis_P2_Speed"
)]
public
int
ColdingAxis_P2_Speed
{
get
;
set
;
}
public
int
ColdingAxis_P2_Speed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// PRO,搅拌区旋转轴(轴6)P1速度,StirAxis_P1_Speed,120,,,,,,,
/// PRO,搅拌区旋转轴(轴6)P1速度
_转速需要X系数
,StirAxis_P1_Speed,120,,,,,,,
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"StirAxis_P1_Speed"
)]
[
ConfigProAttribute
(
"StirAxis_P1_Speed"
)]
public
int
StirAxis_P1_Speed
{
get
;
set
;
}
public
int
StirAxis_P1_Speed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// PRO,搅拌区旋转轴(轴6)P2速度,StirAxis_P2_Speed,120,,,,,,,
/// PRO,搅拌区旋转轴(轴6)P2速度
_转速需要X系数
,StirAxis_P2_Speed,120,,,,,,,
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"StirAxis_P2_Speed"
)]
[
ConfigProAttribute
(
"StirAxis_P2_Speed"
)]
public
int
StirAxis_P2_Speed
{
get
;
set
;
}
public
int
StirAxis_P2_Speed
{
get
;
set
;
}
public
int
GetStirAxis_P1_Speed
()
{
return
(
int
)(
StirAxis_P1_Speed
*
StirAxis_Speed_Change
);
}
public
int
GetStirAxis_P2_Speed
()
{
return
(
int
)(
StirAxis_P2_Speed
*
StirAxis_Speed_Change
);
}
/// <summary>
/// PRO,搅拌区旋转轴(轴6)速度和转速系数,StirAxis_Speed_Change,100,,,,,,,,,,,,,,
/// </summary>
[
ConfigProAttribute
(
"StirAxis_Speed_Change"
)]
public
float
StirAxis_Speed_Change
{
get
;
set
;
}
=
1
;
/// <summary>
/// <summary>
/// PRO,伺服停止时可误差的脉冲数的最小值,Axis_ErrorCountMin,10,,,,,,,
/// PRO,伺服停止时可误差的脉冲数的最小值,Axis_ErrorCountMin,10,,,,,,,
/// </summary>
/// </summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论