Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 87d0f922
由
几米阳光
编写于
2018-04-03 15:43:55 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修改伺服的配置
1 个父辈
804cc3ce
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
307 行增加
和
323 行删除
source/ACSingleStore/ACSingleStore.csproj
source/ACSingleStore/FormManager.cs
source/ACSingleStore/FrmAxisMoveConfig.cs
source/ACSingleStore/FrmStoreBox.Designer.cs
source/ACSingleStore/FrmStoreBox.cs
source/DeviceLibrary/StoreConfig/AC/StoreConfig.csv
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/store/KTK_Store.cs
source/LoadCVSLibrary/storeConfig/ConfigItemBase.cs
source/LoadCVSLibrary/storeConfig/config/AC_SA_Config.cs
source/ACSingleStore/ACSingleStore.csproj
查看文件 @
87d0f92
...
@@ -64,12 +64,6 @@
...
@@ -64,12 +64,6 @@
<Compile Include="FrmAxisDebug.Designer.cs">
<Compile Include="FrmAxisDebug.Designer.cs">
<DependentUpon>FrmAxisDebug.cs</DependentUpon>
<DependentUpon>FrmAxisDebug.cs</DependentUpon>
</Compile>
</Compile>
<Compile Include="FrmAxisMoveConfig.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmAxisMoveConfig.Designer.cs">
<DependentUpon>FrmAxisMoveConfig.cs</DependentUpon>
</Compile>
<Compile Include="FrmBase.cs">
<Compile Include="FrmBase.cs">
<SubType>Form</SubType>
<SubType>Form</SubType>
</Compile>
</Compile>
...
@@ -99,9 +93,6 @@
...
@@ -99,9 +93,6 @@
<EmbeddedResource Include="FrmAxisDebug.resx">
<EmbeddedResource Include="FrmAxisDebug.resx">
<DependentUpon>FrmAxisDebug.cs</DependentUpon>
<DependentUpon>FrmAxisDebug.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
<EmbeddedResource Include="FrmAxisMoveConfig.resx">
<DependentUpon>FrmAxisMoveConfig.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmBase.resx">
<EmbeddedResource Include="FrmBase.resx">
<DependentUpon>FrmBase.cs</DependentUpon>
<DependentUpon>FrmBase.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
...
...
source/ACSingleStore/FormManager.cs
查看文件 @
87d0f92
...
@@ -67,42 +67,32 @@ namespace OnlineStore.ACSingleStore
...
@@ -67,42 +67,32 @@ namespace OnlineStore.ACSingleStore
return
returnList
;
return
returnList
;
}
}
//public static FrmAxisMoveConfig FrmAxisConfig = null;
//public static void ShowAxisConfig(AC_SA_BoxBean boxBean)
//{
// if (FormManager.FrmAxisConfig == null)
// {
// FormManager.FrmAxisConfig = new FrmAxisMoveConfig(boxBean);
// FormManager.FrmAxisConfig.Show();
// }
// else
public
static
FrmAxisMoveConfig
FrmAxisConfig
=
null
;
// {
public
static
void
ShowAxisConfig
(
AC_SA_BoxBean
boxBean
)
// //FormManager.FrmAxisConfig.ShowDialog();
{
// if (FormManager.FrmAxisConfig.IsDisposed)
if
(
FormManager
.
FrmAxisConfig
==
null
)
// {
{
// FormManager.FrmAxisConfig = new FrmAxisMoveConfig(boxBean);
FormManager
.
FrmAxisConfig
=
new
FrmAxisMoveConfig
(
boxBean
);
// FormManager.FrmAxisConfig.Show();
FormManager
.
FrmAxisConfig
.
Show
();
// }
}
// else
else
// {
{
// FormManager.FrmAxisConfig.Activate();
// }
//FormManager.FrmAxisConfig.ShowDialog();
// }
if
(
FormManager
.
FrmAxisConfig
.
IsDisposed
)
//}
{
FormManager
.
FrmAxisConfig
=
new
FrmAxisMoveConfig
(
boxBean
);
FormManager
.
FrmAxisConfig
.
Show
();
}
else
{
FormManager
.
FrmAxisConfig
.
Activate
();
}
}
}
private
static
FrmAxisDebug
debug
=
null
;
private
static
FrmAxisDebug
debug
=
null
;
public
static
void
ShowAxisDebug
(
AC_SA_BoxBean
store
)
public
static
void
ShowAxisDebug
(
AC_SA_BoxBean
store
)
...
...
source/ACSingleStore/FrmAxisMoveConfig.cs
查看文件 @
87d0f92
...
@@ -36,24 +36,22 @@ namespace OnlineStore.ACSingleStore
...
@@ -36,24 +36,22 @@ namespace OnlineStore.ACSingleStore
txtInOutP3S
.
Text
=
boxBean
.
Config
.
InOutAxis_P3_Speed
.
ToString
();
txtInOutP3S
.
Text
=
boxBean
.
Config
.
InOutAxis_P3_Speed
.
ToString
();
txtMiddleP1S
.
Text
=
boxBean
.
Config
.
MiddleAxis_P1_Speed
.
ToString
();
txtMiddleP1S
.
Text
=
boxBean
.
Config
.
MiddleAxis_P1_Speed
.
ToString
();
txtMiddleP2S
.
Text
=
boxBean
.
Config
.
MiddleAxis_P2_Speed
.
ToString
();
txtMiddleP2S
.
Text
=
boxBean
.
Config
.
MiddleAxis_P2_Speed
.
ToString
();
//txtMiddleSpeed.Text = boxBean.Config.MiddleAxis_StartSpeed.ToString();
txtMiddleSpeed
.
Text
=
boxBean
.
Config
.
MiddleAxis_StartSpeed
.
ToString
();
//txtInOutSpeed.Text = boxBean.Config.InoutAxis_StartSpeed.ToString();
txtInOutSpeed
.
Text
=
boxBean
.
Config
.
InoutAxis_StartSpeed
.
ToString
();
//txtUpDownSpeed.Text = boxBean.Config.UpdownAxis_StartSpeed.ToString();
txtUpDownSpeed
.
Text
=
boxBean
.
Config
.
UpdownAxis_StartSpeed
.
ToString
();
this
.
txtMSpeed
.
Text
=
boxBean
.
Config
.
MiddleAxis_TargetSpeed
.
ToString
();
this
.
txtMSpeed
.
Text
=
boxBean
.
Config
.
MiddleAxis_TargetSpeed
.
ToString
();
this
.
txtISpeed
.
Text
=
boxBean
.
Config
.
InoutAxis_TargetSpeed
.
ToString
();
this
.
txtISpeed
.
Text
=
boxBean
.
Config
.
InoutAxis_TargetSpeed
.
ToString
();
this
.
txtUSpeed
.
Text
=
boxBean
.
Config
.
UpdownAxis_TargetSpeed
.
ToString
();
this
.
txtUSpeed
.
Text
=
boxBean
.
Config
.
UpdownAxis_TargetSpeed
.
ToString
();
this
.
txtMAtime
.
Text
=
boxBean
.
Config
.
MiddleAxis_A
ccelTime
.
ToString
();
this
.
txtMAtime
.
Text
=
boxBean
.
Config
.
MiddleAxis_A
ddSpeed
.
ToString
();
this
.
txtIAtime
.
Text
=
boxBean
.
Config
.
InoutAxis_
AccelTime
.
ToString
();
this
.
txtIAtime
.
Text
=
boxBean
.
Config
.
InoutAxis_
DelSpeed
.
ToString
();
this
.
txtUAtime
.
Text
=
boxBean
.
Config
.
UpdownAxis_A
ccelTime
.
ToString
();
this
.
txtUAtime
.
Text
=
boxBean
.
Config
.
UpdownAxis_A
ddSpeed
.
ToString
();
this
.
txtMDtime
.
Text
=
boxBean
.
Config
.
MiddleAxis_De
celTime
.
ToString
();
this
.
txtMDtime
.
Text
=
boxBean
.
Config
.
MiddleAxis_De
lSpeed
.
ToString
();
this
.
txtIDtime
.
Text
=
boxBean
.
Config
.
InoutAxis_De
celTime
.
ToString
();
this
.
txtIDtime
.
Text
=
boxBean
.
Config
.
InoutAxis_De
lSpeed
.
ToString
();
this
.
txtUDtime
.
Text
=
boxBean
.
Config
.
UpdownAxis_De
celTime
.
ToString
();
this
.
txtUDtime
.
Text
=
boxBean
.
Config
.
UpdownAxis_De
lSpeed
.
ToString
();
txtMiddleMax
.
Text
=
boxBean
.
Config
.
MiddleAxis_ErrorCountMax
.
ToString
();
txtMiddleMax
.
Text
=
boxBean
.
Config
.
MiddleAxis_ErrorCountMax
.
ToString
();
txtUpdownMax
.
Text
=
boxBean
.
Config
.
UpdownAxis_ErrorCountMax
.
ToString
();
txtUpdownMax
.
Text
=
boxBean
.
Config
.
UpdownAxis_ErrorCountMax
.
ToString
();
...
@@ -106,22 +104,22 @@ namespace OnlineStore.ACSingleStore
...
@@ -106,22 +104,22 @@ namespace OnlineStore.ACSingleStore
//boxBean.Config.CompressAxis_P3_Speed = FormUtil.GetIntValue(txtComPressP3S);
//boxBean.Config.CompressAxis_P3_Speed = FormUtil.GetIntValue(txtComPressP3S);
boxBean
.
Config
.
MiddleAxis_StartSpeed
=
FormUtil
.
GetIntValue
(
txtMiddleSpeed
);
//
boxBean.Config.MiddleAxis_StartSpeed = FormUtil.GetIntValue(txtMiddleSpeed);
boxBean
.
Config
.
InoutAxis_StartSpeed
=
FormUtil
.
GetIntValue
(
txtInOutSpeed
);
//
boxBean.Config.InoutAxis_StartSpeed = FormUtil.GetIntValue(txtInOutSpeed);
boxBean
.
Config
.
UpdownAxis_StartSpeed
=
FormUtil
.
GetIntValue
(
txtUpDownSpeed
);
//
boxBean.Config.UpdownAxis_StartSpeed = FormUtil.GetIntValue(txtUpDownSpeed);
//boxBean.Config.CompressAxis_StartSpeed = FormUtil.GetIntValue(txtComSpeed);
//boxBean.Config.CompressAxis_StartSpeed = FormUtil.GetIntValue(txtComSpeed);
boxBean
.
Config
.
MiddleAxis_TargetSpeed
=
FormUtil
.
GetIntValue
(
txtMSpeed
);
boxBean
.
Config
.
MiddleAxis_TargetSpeed
=
FormUtil
.
GetIntValue
(
txtMSpeed
);
boxBean
.
Config
.
InoutAxis_TargetSpeed
=
FormUtil
.
GetIntValue
(
txtISpeed
);
boxBean
.
Config
.
InoutAxis_TargetSpeed
=
FormUtil
.
GetIntValue
(
txtISpeed
);
boxBean
.
Config
.
UpdownAxis_TargetSpeed
=
FormUtil
.
GetIntValue
(
txtUSpeed
);
boxBean
.
Config
.
UpdownAxis_TargetSpeed
=
FormUtil
.
GetIntValue
(
txtUSpeed
);
boxBean
.
Config
.
MiddleAxis_A
ccelTime
=
FormUtil
.
GetShortValue
(
txtMAtime
);
boxBean
.
Config
.
MiddleAxis_A
ddSpeed
=
FormUtil
.
GetShortValue
(
txtMAtime
);
boxBean
.
Config
.
InoutAxis_A
ccelTime
=
FormUtil
.
GetShortValue
(
txtIAtime
);
boxBean
.
Config
.
InoutAxis_A
ddSpeed
=
FormUtil
.
GetShortValue
(
txtIAtime
);
boxBean
.
Config
.
UpdownAxis_A
ccelTime
=
FormUtil
.
GetShortValue
(
txtUAtime
);
boxBean
.
Config
.
UpdownAxis_A
ddSpeed
=
FormUtil
.
GetShortValue
(
txtUAtime
);
boxBean
.
Config
.
MiddleAxis_De
celTime
=
FormUtil
.
GetShortValue
(
txtMDtime
);
boxBean
.
Config
.
MiddleAxis_De
lSpeed
=
FormUtil
.
GetShortValue
(
txtMDtime
);
boxBean
.
Config
.
InoutAxis_De
celTime
=
FormUtil
.
GetShortValue
(
txtIDtime
);
boxBean
.
Config
.
InoutAxis_De
lSpeed
=
FormUtil
.
GetShortValue
(
txtIDtime
);
boxBean
.
Config
.
UpdownAxis_De
celTime
=
FormUtil
.
GetShortValue
(
txtUDtime
);
boxBean
.
Config
.
UpdownAxis_De
lSpeed
=
FormUtil
.
GetShortValue
(
txtUDtime
);
boxBean
.
Config
.
MiddleAxis_ErrorCountMax
=
FormUtil
.
GetShortValue
(
txtMiddleMax
);
boxBean
.
Config
.
MiddleAxis_ErrorCountMax
=
FormUtil
.
GetShortValue
(
txtMiddleMax
);
boxBean
.
Config
.
UpdownAxis_ErrorCountMax
=
FormUtil
.
GetShortValue
(
txtUpdownMax
);
boxBean
.
Config
.
UpdownAxis_ErrorCountMax
=
FormUtil
.
GetShortValue
(
txtUpdownMax
);
...
...
source/ACSingleStore/FrmStoreBox.Designer.cs
查看文件 @
87d0f92
...
@@ -214,10 +214,10 @@
...
@@ -214,10 +214,10 @@
this
.
btnReadPosition
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnReadPosition
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
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
(
458
,
16
2
);
this
.
btnReadPosition
.
Location
=
new
System
.
Drawing
.
Point
(
458
,
16
1
);
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
,
3
0
);
this
.
btnReadPosition
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
3
);
this
.
btnReadPosition
.
TabIndex
=
278
;
this
.
btnReadPosition
.
TabIndex
=
278
;
this
.
btnReadPosition
.
Text
=
"读取位置"
;
this
.
btnReadPosition
.
Text
=
"读取位置"
;
this
.
btnReadPosition
.
UseVisualStyleBackColor
=
true
;
this
.
btnReadPosition
.
UseVisualStyleBackColor
=
true
;
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
this
.
lblServerOn
.
AutoSize
=
true
;
this
.
lblServerOn
.
AutoSize
=
true
;
this
.
lblServerOn
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Bold
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblServerOn
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Bold
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblServerOn
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lblServerOn
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lblServerOn
.
Location
=
new
System
.
Drawing
.
Point
(
231
,
162
);
this
.
lblServerOn
.
Location
=
new
System
.
Drawing
.
Point
(
48
,
167
);
this
.
lblServerOn
.
Name
=
"lblServerOn"
;
this
.
lblServerOn
.
Name
=
"lblServerOn"
;
this
.
lblServerOn
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
19
);
this
.
lblServerOn
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
19
);
this
.
lblServerOn
.
TabIndex
=
268
;
this
.
lblServerOn
.
TabIndex
=
268
;
...
@@ -262,7 +262,7 @@
...
@@ -262,7 +262,7 @@
this
.
btnOpenAxis
.
Location
=
new
System
.
Drawing
.
Point
(
458
,
15
);
this
.
btnOpenAxis
.
Location
=
new
System
.
Drawing
.
Point
(
458
,
15
);
this
.
btnOpenAxis
.
Name
=
"btnOpenAxis"
;
this
.
btnOpenAxis
.
Name
=
"btnOpenAxis"
;
this
.
btnOpenAxis
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnOpenAxis
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnOpenAxis
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
0
);
this
.
btnOpenAxis
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
3
);
this
.
btnOpenAxis
.
TabIndex
=
253
;
this
.
btnOpenAxis
.
TabIndex
=
253
;
this
.
btnOpenAxis
.
Text
=
"打开伺服"
;
this
.
btnOpenAxis
.
Text
=
"打开伺服"
;
this
.
btnOpenAxis
.
UseVisualStyleBackColor
=
true
;
this
.
btnOpenAxis
.
UseVisualStyleBackColor
=
true
;
...
@@ -277,7 +277,7 @@
...
@@ -277,7 +277,7 @@
this
.
btnCloseAxis
.
Location
=
new
System
.
Drawing
.
Point
(
458
,
48
);
this
.
btnCloseAxis
.
Location
=
new
System
.
Drawing
.
Point
(
458
,
48
);
this
.
btnCloseAxis
.
Name
=
"btnCloseAxis"
;
this
.
btnCloseAxis
.
Name
=
"btnCloseAxis"
;
this
.
btnCloseAxis
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnCloseAxis
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnCloseAxis
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
0
);
this
.
btnCloseAxis
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
3
);
this
.
btnCloseAxis
.
TabIndex
=
252
;
this
.
btnCloseAxis
.
TabIndex
=
252
;
this
.
btnCloseAxis
.
Text
=
"关闭伺服"
;
this
.
btnCloseAxis
.
Text
=
"关闭伺服"
;
this
.
btnCloseAxis
.
UseVisualStyleBackColor
=
true
;
this
.
btnCloseAxis
.
UseVisualStyleBackColor
=
true
;
...
@@ -336,7 +336,7 @@
...
@@ -336,7 +336,7 @@
this
.
btnAxisVMove
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
48
);
this
.
btnAxisVMove
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
48
);
this
.
btnAxisVMove
.
Name
=
"btnAxisVMove"
;
this
.
btnAxisVMove
.
Name
=
"btnAxisVMove"
;
this
.
btnAxisVMove
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisVMove
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisVMove
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
0
);
this
.
btnAxisVMove
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
3
);
this
.
btnAxisVMove
.
TabIndex
=
249
;
this
.
btnAxisVMove
.
TabIndex
=
249
;
this
.
btnAxisVMove
.
Text
=
"匀速运动"
;
this
.
btnAxisVMove
.
Text
=
"匀速运动"
;
this
.
btnAxisVMove
.
UseVisualStyleBackColor
=
true
;
this
.
btnAxisVMove
.
UseVisualStyleBackColor
=
true
;
...
@@ -351,7 +351,7 @@
...
@@ -351,7 +351,7 @@
this
.
btnAxisRMove
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
81
);
this
.
btnAxisRMove
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
81
);
this
.
btnAxisRMove
.
Name
=
"btnAxisRMove"
;
this
.
btnAxisRMove
.
Name
=
"btnAxisRMove"
;
this
.
btnAxisRMove
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisRMove
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisRMove
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
0
);
this
.
btnAxisRMove
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
3
);
this
.
btnAxisRMove
.
TabIndex
=
248
;
this
.
btnAxisRMove
.
TabIndex
=
248
;
this
.
btnAxisRMove
.
Text
=
"相对运动"
;
this
.
btnAxisRMove
.
Text
=
"相对运动"
;
this
.
btnAxisRMove
.
UseVisualStyleBackColor
=
true
;
this
.
btnAxisRMove
.
UseVisualStyleBackColor
=
true
;
...
@@ -366,7 +366,7 @@
...
@@ -366,7 +366,7 @@
this
.
btnAxisReturnHome
.
Location
=
new
System
.
Drawing
.
Point
(
458
,
114
);
this
.
btnAxisReturnHome
.
Location
=
new
System
.
Drawing
.
Point
(
458
,
114
);
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
,
3
0
);
this
.
btnAxisReturnHome
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
3
);
this
.
btnAxisReturnHome
.
TabIndex
=
247
;
this
.
btnAxisReturnHome
.
TabIndex
=
247
;
this
.
btnAxisReturnHome
.
Text
=
"原点返回"
;
this
.
btnAxisReturnHome
.
Text
=
"原点返回"
;
this
.
btnAxisReturnHome
.
UseVisualStyleBackColor
=
true
;
this
.
btnAxisReturnHome
.
UseVisualStyleBackColor
=
true
;
...
@@ -381,7 +381,7 @@
...
@@ -381,7 +381,7 @@
this
.
btnAxisAMove
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
15
);
this
.
btnAxisAMove
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
15
);
this
.
btnAxisAMove
.
Name
=
"btnAxisAMove"
;
this
.
btnAxisAMove
.
Name
=
"btnAxisAMove"
;
this
.
btnAxisAMove
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisAMove
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisAMove
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
0
);
this
.
btnAxisAMove
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
3
);
this
.
btnAxisAMove
.
TabIndex
=
245
;
this
.
btnAxisAMove
.
TabIndex
=
245
;
this
.
btnAxisAMove
.
Text
=
"绝对运动"
;
this
.
btnAxisAMove
.
Text
=
"绝对运动"
;
this
.
btnAxisAMove
.
UseVisualStyleBackColor
=
true
;
this
.
btnAxisAMove
.
UseVisualStyleBackColor
=
true
;
...
@@ -396,7 +396,7 @@
...
@@ -396,7 +396,7 @@
this
.
Bt_ClearCounter
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
114
);
this
.
Bt_ClearCounter
.
Location
=
new
System
.
Drawing
.
Point
(
347
,
114
);
this
.
Bt_ClearCounter
.
Name
=
"Bt_ClearCounter"
;
this
.
Bt_ClearCounter
.
Name
=
"Bt_ClearCounter"
;
this
.
Bt_ClearCounter
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
Bt_ClearCounter
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
Bt_ClearCounter
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
0
);
this
.
Bt_ClearCounter
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
3
);
this
.
Bt_ClearCounter
.
TabIndex
=
170
;
this
.
Bt_ClearCounter
.
TabIndex
=
170
;
this
.
Bt_ClearCounter
.
Text
=
"重置位置"
;
this
.
Bt_ClearCounter
.
Text
=
"重置位置"
;
this
.
Bt_ClearCounter
.
UseVisualStyleBackColor
=
true
;
this
.
Bt_ClearCounter
.
UseVisualStyleBackColor
=
true
;
...
@@ -406,7 +406,7 @@
...
@@ -406,7 +406,7 @@
//
//
this
.
btnComAlarmClear
.
Location
=
new
System
.
Drawing
.
Point
(
225
,
114
);
this
.
btnComAlarmClear
.
Location
=
new
System
.
Drawing
.
Point
(
225
,
114
);
this
.
btnComAlarmClear
.
Name
=
"btnComAlarmClear"
;
this
.
btnComAlarmClear
.
Name
=
"btnComAlarmClear"
;
this
.
btnComAlarmClear
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
0
);
this
.
btnComAlarmClear
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
3
);
this
.
btnComAlarmClear
.
TabIndex
=
50
;
this
.
btnComAlarmClear
.
TabIndex
=
50
;
this
.
btnComAlarmClear
.
Text
=
"清除报警"
;
this
.
btnComAlarmClear
.
Text
=
"清除报警"
;
this
.
btnComAlarmClear
.
UseVisualStyleBackColor
=
true
;
this
.
btnComAlarmClear
.
UseVisualStyleBackColor
=
true
;
...
@@ -448,7 +448,7 @@
...
@@ -448,7 +448,7 @@
this
.
btnAxisStop
.
Location
=
new
System
.
Drawing
.
Point
(
458
,
81
);
this
.
btnAxisStop
.
Location
=
new
System
.
Drawing
.
Point
(
458
,
81
);
this
.
btnAxisStop
.
Name
=
"btnAxisStop"
;
this
.
btnAxisStop
.
Name
=
"btnAxisStop"
;
this
.
btnAxisStop
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisStop
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnAxisStop
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
0
);
this
.
btnAxisStop
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
3
);
this
.
btnAxisStop
.
TabIndex
=
246
;
this
.
btnAxisStop
.
TabIndex
=
246
;
this
.
btnAxisStop
.
Text
=
" 停止运动"
;
this
.
btnAxisStop
.
Text
=
" 停止运动"
;
this
.
btnAxisStop
.
UseVisualStyleBackColor
=
true
;
this
.
btnAxisStop
.
UseVisualStyleBackColor
=
true
;
...
@@ -1142,9 +1142,9 @@
...
@@ -1142,9 +1142,9 @@
// btnInStore
// btnInStore
//
//
this
.
btnInStore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInStore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInStore
.
Location
=
new
System
.
Drawing
.
Point
(
315
,
22
);
this
.
btnInStore
.
Location
=
new
System
.
Drawing
.
Point
(
315
,
19
);
this
.
btnInStore
.
Name
=
"btnInStore"
;
this
.
btnInStore
.
Name
=
"btnInStore"
;
this
.
btnInStore
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
0
);
this
.
btnInStore
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
3
);
this
.
btnInStore
.
TabIndex
=
102
;
this
.
btnInStore
.
TabIndex
=
102
;
this
.
btnInStore
.
Text
=
"入库测试"
;
this
.
btnInStore
.
Text
=
"入库测试"
;
this
.
btnInStore
.
UseVisualStyleBackColor
=
true
;
this
.
btnInStore
.
UseVisualStyleBackColor
=
true
;
...
@@ -1153,9 +1153,9 @@
...
@@ -1153,9 +1153,9 @@
// btnOutStore
// btnOutStore
//
//
this
.
btnOutStore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOutStore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOutStore
.
Location
=
new
System
.
Drawing
.
Point
(
423
,
22
);
this
.
btnOutStore
.
Location
=
new
System
.
Drawing
.
Point
(
423
,
19
);
this
.
btnOutStore
.
Name
=
"btnOutStore"
;
this
.
btnOutStore
.
Name
=
"btnOutStore"
;
this
.
btnOutStore
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
0
);
this
.
btnOutStore
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
3
3
);
this
.
btnOutStore
.
TabIndex
=
101
;
this
.
btnOutStore
.
TabIndex
=
101
;
this
.
btnOutStore
.
Text
=
"出库测试"
;
this
.
btnOutStore
.
Text
=
"出库测试"
;
this
.
btnOutStore
.
UseVisualStyleBackColor
=
true
;
this
.
btnOutStore
.
UseVisualStyleBackColor
=
true
;
...
@@ -1554,35 +1554,35 @@
...
@@ -1554,35 +1554,35 @@
// 查看IOToolStripMenuItem
// 查看IOToolStripMenuItem
//
//
this
.
查看
IOToolStripMenuItem
.
Name
=
"查看IOToolStripMenuItem"
;
this
.
查看
IOToolStripMenuItem
.
Name
=
"查看IOToolStripMenuItem"
;
this
.
查看
IOToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
22
);
this
.
查看
IOToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
46
,
22
);
this
.
查看
IOToolStripMenuItem
.
Text
=
"查看IO"
;
this
.
查看
IOToolStripMenuItem
.
Text
=
"查看IO"
;
this
.
查看
IOToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
查看
IOToolStripMenuItem_Click
);
this
.
查看
IOToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
查看
IOToolStripMenuItem_Click
);
//
//
// 料仓运转ONToolStripMenuItem
// 料仓运转ONToolStripMenuItem
//
//
this
.
料仓运转
ONToolStripMenuItem
.
Name
=
"料仓运转ONToolStripMenuItem"
;
this
.
料仓运转
ONToolStripMenuItem
.
Name
=
"料仓运转ONToolStripMenuItem"
;
this
.
料仓运转
ONToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
22
);
this
.
料仓运转
ONToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
46
,
22
);
this
.
料仓运转
ONToolStripMenuItem
.
Text
=
"料仓运转ON"
;
this
.
料仓运转
ONToolStripMenuItem
.
Text
=
"料仓运转ON"
;
this
.
料仓运转
ONToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
料仓运转
ONToolStripMenuItem_Click
);
this
.
料仓运转
ONToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
料仓运转
ONToolStripMenuItem_Click
);
//
//
// 料仓运转OFFToolStripMenuItem
// 料仓运转OFFToolStripMenuItem
//
//
this
.
料仓运转
OFFToolStripMenuItem
.
Name
=
"料仓运转OFFToolStripMenuItem"
;
this
.
料仓运转
OFFToolStripMenuItem
.
Name
=
"料仓运转OFFToolStripMenuItem"
;
this
.
料仓运转
OFFToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
22
);
this
.
料仓运转
OFFToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
46
,
22
);
this
.
料仓运转
OFFToolStripMenuItem
.
Text
=
"料仓运转OFF"
;
this
.
料仓运转
OFFToolStripMenuItem
.
Text
=
"料仓运转OFF"
;
this
.
料仓运转
OFFToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
料仓运转
OFFToolStripMenuItem_Click
);
this
.
料仓运转
OFFToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
料仓运转
OFFToolStripMenuItem_Click
);
//
//
// 打开舱门ToolStripMenuItem
// 打开舱门ToolStripMenuItem
//
//
this
.
打开舱门
ToolStripMenuItem
.
Name
=
"打开舱门ToolStripMenuItem"
;
this
.
打开舱门
ToolStripMenuItem
.
Name
=
"打开舱门ToolStripMenuItem"
;
this
.
打开舱门
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
22
);
this
.
打开舱门
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
46
,
22
);
this
.
打开舱门
ToolStripMenuItem
.
Text
=
"打开仓门"
;
this
.
打开舱门
ToolStripMenuItem
.
Text
=
"打开仓门"
;
this
.
打开舱门
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
打开舱门
ToolStripMenuItem_Click
);
this
.
打开舱门
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
打开舱门
ToolStripMenuItem_Click
);
//
//
// 关闭仓门ToolStripMenuItem
// 关闭仓门ToolStripMenuItem
//
//
this
.
关闭仓门
ToolStripMenuItem
.
Name
=
"关闭仓门ToolStripMenuItem"
;
this
.
关闭仓门
ToolStripMenuItem
.
Name
=
"关闭仓门ToolStripMenuItem"
;
this
.
关闭仓门
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
22
);
this
.
关闭仓门
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
46
,
22
);
this
.
关闭仓门
ToolStripMenuItem
.
Text
=
"关闭仓门"
;
this
.
关闭仓门
ToolStripMenuItem
.
Text
=
"关闭仓门"
;
this
.
关闭仓门
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
关闭仓门
ToolStripMenuItem_Click
);
this
.
关闭仓门
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
关闭仓门
ToolStripMenuItem_Click
);
//
//
...
...
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
87d0f92
...
@@ -370,7 +370,9 @@ namespace OnlineStore.ACSingleStore
...
@@ -370,7 +370,9 @@ namespace OnlineStore.ACSingleStore
{
{
string
portName
=
txtAxisDeviceName
.
Text
;
string
portName
=
txtAxisDeviceName
.
Text
;
short
slvAddr
=
FormUtil
.
GetShortValue
(
txtAxisValue
);
short
slvAddr
=
FormUtil
.
GetShortValue
(
txtAxisValue
);
LogUtil
.
info
(
"点击【清理报警】,端口号【"
+
portName
+
"】地址【"
+
slvAddr
+
"】 "
);
ACServerManager
.
AlarmClear
(
portName
,
slvAddr
);
ACServerManager
.
AlarmClear
(
portName
,
slvAddr
);
Thread
.
Sleep
(
100
);
ACServerManager
.
ServoOn
(
portName
,
slvAddr
);
ACServerManager
.
ServoOn
(
portName
,
slvAddr
);
}
}
...
@@ -434,7 +436,8 @@ namespace OnlineStore.ACSingleStore
...
@@ -434,7 +436,8 @@ namespace OnlineStore.ACSingleStore
// MessageBox.Show("位置超出" + axisC.Explain + "上下限(" + axisC.PositionMin + "-" + axisC.PositionMax + ")");
// MessageBox.Show("位置超出" + axisC.Explain + "上下限(" + axisC.PositionMin + "-" + axisC.PositionMax + ")");
// return;
// return;
//}
//}
ACServerManager
.
AbsMove
(
portName
,
SlvAddr
,
position
,
speed
/
10
);
LogUtil
.
info
(
"点击【绝对运动】,端口号【"
+
portName
+
"】地址【"
+
SlvAddr
+
"】位置【"
+
position
+
"】速度【"
+
speed
+
"】"
);
ACServerManager
.
AbsMove
(
portName
,
SlvAddr
,
position
,
speed
);
}
}
private
void
btnAxisVMove_Click
(
object
sender
,
EventArgs
e
)
private
void
btnAxisVMove_Click
(
object
sender
,
EventArgs
e
)
{
{
...
@@ -442,6 +445,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -442,6 +445,7 @@ namespace OnlineStore.ACSingleStore
string
portName
=
txtAxisDeviceName
.
Text
;
string
portName
=
txtAxisDeviceName
.
Text
;
short
SlvAddr
=
FormUtil
.
GetShortValue
(
txtAxisValue
);
short
SlvAddr
=
FormUtil
.
GetShortValue
(
txtAxisValue
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
LogUtil
.
info
(
"点击【匀速运动】,端口号【"
+
portName
+
"】地址【"
+
SlvAddr
+
"】 速度【"
+
speed
+
"】"
);
ACServerManager
.
SpeedMove
(
portName
,
SlvAddr
,
speed
);
ACServerManager
.
SpeedMove
(
portName
,
SlvAddr
,
speed
);
}
}
...
@@ -459,7 +463,8 @@ namespace OnlineStore.ACSingleStore
...
@@ -459,7 +463,8 @@ namespace OnlineStore.ACSingleStore
// MessageBox.Show("位置超出"+axisC.Explain+"上下限(" + axisC.PositionMin + "-" + axisC.PositionMax + ")");
// MessageBox.Show("位置超出"+axisC.Explain+"上下限(" + axisC.PositionMin + "-" + axisC.PositionMax + ")");
// return;
// return;
//}
//}
ACServerManager
.
RelMove
(
portName
,
SlvAddr
,
position
,
speed
);
LogUtil
.
info
(
"点击【相对运动】,端口号【"
+
portName
+
"】地址【"
+
SlvAddr
+
"】位置【"
+
position
+
"】速度【"
+
speed
+
"】"
);
ACServerManager
.
RelMove
(
portName
,
SlvAddr
,
position
,
speed
);
}
}
...
@@ -467,7 +472,8 @@ namespace OnlineStore.ACSingleStore
...
@@ -467,7 +472,8 @@ namespace OnlineStore.ACSingleStore
private
void
btnAxisStop_Click
(
object
sender
,
EventArgs
e
)
private
void
btnAxisStop_Click
(
object
sender
,
EventArgs
e
)
{
{
string
portName
=
txtAxisDeviceName
.
Text
;
string
portName
=
txtAxisDeviceName
.
Text
;
short
SlvAddr
=
FormUtil
.
GetShortValue
(
txtAxisValue
);
short
SlvAddr
=
FormUtil
.
GetShortValue
(
txtAxisValue
);
LogUtil
.
info
(
"点击【停止运动】,端口号【"
+
portName
+
"】地址【"
+
SlvAddr
+
"】 "
);
ACServerManager
.
SuddenStop
(
portName
,
SlvAddr
);
ACServerManager
.
SuddenStop
(
portName
,
SlvAddr
);
}
}
...
@@ -584,6 +590,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -584,6 +590,7 @@ namespace OnlineStore.ACSingleStore
{
{
string
portName
=
txtAxisDeviceName
.
Text
;
string
portName
=
txtAxisDeviceName
.
Text
;
short
SlvAddr
=
FormUtil
.
GetShortValue
(
txtAxisValue
);
short
SlvAddr
=
FormUtil
.
GetShortValue
(
txtAxisValue
);
LogUtil
.
info
(
"点击【打开伺服】,端口号【"
+
portName
+
"】地址【"
+
SlvAddr
+
"】 "
);
ACServerManager
.
OpenPort
(
portName
);
ACServerManager
.
OpenPort
(
portName
);
//ACServerManager.InitSlvAddr(portName, SlvAddr);
//ACServerManager.InitSlvAddr(portName, SlvAddr);
//Thread.Sleep(100);
//Thread.Sleep(100);
...
@@ -596,6 +603,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -596,6 +603,7 @@ namespace OnlineStore.ACSingleStore
{
{
string
portName
=
txtAxisDeviceName
.
Text
;
string
portName
=
txtAxisDeviceName
.
Text
;
short
SlvAddr
=
FormUtil
.
GetShortValue
(
txtAxisValue
);
short
SlvAddr
=
FormUtil
.
GetShortValue
(
txtAxisValue
);
LogUtil
.
info
(
"点击【关闭伺服】,端口号【"
+
portName
+
"】地址【"
+
SlvAddr
+
"】 "
);
ACServerManager
.
ServoOff
(
portName
,
SlvAddr
);
ACServerManager
.
ServoOff
(
portName
,
SlvAddr
);
}
}
private
void
AxisABSMove
(
ConfigMoveAxis
moveAxis
,
int
targetPosition
,
int
targetSpeed
)
private
void
AxisABSMove
(
ConfigMoveAxis
moveAxis
,
int
targetPosition
,
int
targetSpeed
)
...
@@ -742,10 +750,10 @@ namespace OnlineStore.ACSingleStore
...
@@ -742,10 +750,10 @@ namespace OnlineStore.ACSingleStore
MessageBox
.
Show
(
"请先启动料仓!"
);
MessageBox
.
Show
(
"请先启动料仓!"
);
}
}
}
}
private
void
btnAxisConfig_Click
(
object
sender
,
EventArgs
e
)
//
private void btnAxisConfig_Click(object sender, EventArgs e)
{
//
{
FormManager
.
ShowAxisConfig
(
store
);
//
FormManager.ShowAxisConfig(store);
}
//
}
private
void
轴卡点动
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
private
void
轴卡点动
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
...
@@ -755,7 +763,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -755,7 +763,7 @@ namespace OnlineStore.ACSingleStore
private
void
轴运动配置
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
private
void
轴运动配置
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
{
FormManager
.
ShowAxisConfig
(
store
);
//
FormManager.ShowAxisConfig(store);
}
}
private
void
启动
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
private
void
启动
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
...
@@ -1021,6 +1029,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -1021,6 +1029,7 @@ namespace OnlineStore.ACSingleStore
string
portName
=
txtAxisDeviceName
.
Text
;
string
portName
=
txtAxisDeviceName
.
Text
;
short
SlvAddr
=
FormUtil
.
GetShortValue
(
txtAxisValue
);
short
SlvAddr
=
FormUtil
.
GetShortValue
(
txtAxisValue
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
LogUtil
.
info
(
"点击【原点返回】,端口号【"
+
portName
+
"】地址【"
+
SlvAddr
+
"】 速度【"
+
speed
+
"】"
);
ACServerManager
.
HomeMove
(
portName
,
SlvAddr
,
speed
);
ACServerManager
.
HomeMove
(
portName
,
SlvAddr
,
speed
);
}
}
...
...
source/DeviceLibrary/StoreConfig/AC/StoreConfig.csv
查看文件 @
87d0f92
...
@@ -28,13 +28,13 @@ AXIS,(轴一)旋转轴,Middle_Axis,1,COM3,0,,,,
...
@@ -28,13 +28,13 @@ AXIS,(轴一)旋转轴,Middle_Axis,1,COM3,0,,,,
AXIS,(轴二)升降轴轴,UpDown_Axis,1,COM4,0,,,,
AXIS,(轴二)升降轴轴,UpDown_Axis,1,COM4,0,,,,
AXIS,(轴三)进出轴,InOut_Axis,1,COM5,0,,,,
AXIS,(轴三)进出轴,InOut_Axis,1,COM5,0,,,,
PRO,温湿度传感器地址,Temperate_ServerAddress,192.168.200.14,,,,,,
PRO,温湿度传感器地址,Temperate_ServerAddress,192.168.200.14,,,,,,
PRO,升降轴 进料口取料点 P1,UpDownAxis_DoorOPosition_P1,-
886
,,,,,,
PRO,升降轴 进料口取料点 P1,UpDownAxis_DoorOPosition_P1,-
10000
,,,,,,
PRO,升降轴 进料口出料前点 P2,UpDownAxis_DoorIPosition_P2,-
9
00,,,,,,
PRO,升降轴 进料口出料前点 P2,UpDownAxis_DoorIPosition_P2,-
100
00,,,,,,
PRO,升降轴 进料口取料缓冲点 P7,UpDownAxis_DoorOBPosition_P7,-
9
00,,,,,,
PRO,升降轴 进料口取料缓冲点 P7,UpDownAxis_DoorOBPosition_P7,-
100
00,,,,,,
PRO,升降轴 进料口出料缓冲点 P8,UpDownAxis_DoorIBPosition_P8,-
886
,,,,,,
PRO,升降轴 进料口出料缓冲点 P8,UpDownAxis_DoorIBPosition_P8,-
10000
,,,,,,
,进出轴进料口取料点 P2,InOutAxis_DoorPosition_P2,9,,,,,,
,进出轴进料口取料点 P2,InOutAxis_DoorPosition_P2,9,,,,,,
PRO,旋转轴(轴1)P1 待机原位点,MiddleAxis_P1_Position,
219
,,,,,,
PRO,旋转轴(轴1)P1 待机原位点,MiddleAxis_P1_Position,
5000
,,,,,,
PRO,进出轴(轴3)P1待机原位点,InOutAxis_P1_Position,0,,,,,,
PRO,进出轴(轴3)P1待机原位点,InOutAxis_P1_Position,
100
0,,,,,,
PRO,押金轴(轴4)P1待机原位点,CompressAxis_P1_Position,360,,,,,,
PRO,押金轴(轴4)P1待机原位点,CompressAxis_P1_Position,360,,,,,,
,,,,,,,,,
,,,,,,,,,
PRO,是否使用压紧轴(1=使用),IsHasCompress_Axis,0,,,,, ,
PRO,是否使用压紧轴(1=使用),IsHasCompress_Axis,0,,,,, ,
...
@@ -43,42 +43,45 @@ PRO,气压检测IO关闭需要持续的时间,AirCheckSeconds,3,,,,,,
...
@@ -43,42 +43,45 @@ PRO,气压检测IO关闭需要持续的时间,AirCheckSeconds,3,,,,,,
PRO,温湿度传感器地址,TemperateServer_Port,9001,,,,,,
PRO,温湿度传感器地址,TemperateServer_Port,9001,,,,,,
PRO,预警温度,WarnTemperate,80,,,,,,
PRO,预警温度,WarnTemperate,80,,,,,,
PRO,预警湿度,WarnHumidity,80,,,,,,
PRO,预警湿度,WarnHumidity,80,,,,,,
PRO,(轴一)旋转轴原点目标速度,MiddleAxis_TargetSpeed,30,,,,,,
PRO,(轴一)旋转轴目标速度,MiddleAxis_TargetSpeed,100,,,,,,
PRO,(轴一)旋转轴原点开始速度,MiddleAxis_StartSpeed,30,,,,,,
PRO,(轴一)旋转轴加速度,MiddleAxis_AddSpeed,30,,,,,,
PRO,(轴一)旋转轴加速时间,MiddleAxis_AccelTime,10,,,,,,
PRO,(轴一)旋转轴减速度,MiddleAxis_DelSpeed,30,,,,,,
PRO,(轴一)旋转轴减速时间,MiddleAxis_DecelTime,10,,,,,,
PRO,(轴一)旋转轴原点低速度,MiddleAxis_HomeLowSpeed,50,,,,,,
PRO,(轴二)升降轴轴原点目标速度,UpdownAxis_TargetSpeed,50,,,,,,
PRO,(轴一)旋转轴原点高速,MiddleAxis_HomeHighSpeed,100,,,,,,
PRO,(轴二)升降轴轴原点开始速度,UpdownAxis_StartSpeed,50,,,,,,
PRO,(轴一)旋转轴原点加速度,MiddleAxis_HomeAddSpeed,30,,,,,,
PRO,(轴二)升降轴轴加速时间,UpdownAxis_AccelTime,10,,,,,,
PRO,(轴二)升降轴轴目标速度,UpdownAxis_TargetSpeed,100,,,,,,
PRO,(轴二)升降轴轴减速时间,UpdownAxis_DecelTime,10,,,,,,
PRO,(轴二)升降轴轴加速度,UpdownAxis_AddSpeed,30,,,,,,
PRO,(轴三)进出轴原点目标速度,InoutAxis_TargetSpeed,50,,,,,,
PRO,(轴二)升降轴轴减速度,UpdownAxis_DelSpeed,30,,,,,,
PRO,(轴三)进出轴原点开始速度,InoutAxis_StartSpeed,50,,,,,,
PRO,(轴二)升降轴轴原点低速度,UpdownAxis_HomeLowSpeed,50,,,,,,
PRO,(轴三)进出轴加速时间,InoutAxis_AccelTime,10,,,,,,
PRO,(轴二)升降轴轴原点高速,UpdownAxis_HomeHighSpeed,100,,,,,,
PRO,(轴三)进出轴减速时间,InoutAxis_DecelTime,10,,,,,,
PRO,(轴二)升降轴轴原点加速度,UpdownAxis_HomeAddSpeed,30,,,,,,
PRO,升降轴(轴2)P1速度,UpDownAxis_P1_Speed,130,,,,,,
PRO,(轴三)进出轴目标速度,InoutAxis_TargetSpeed,100,,,,,,
PRO,升降轴(轴2)P2速度,UpDownAxis_P2_Speed,130,,,,,,
PRO,(轴三)进出轴加速度,InoutAxis_AddSpeed,30,,,,,,
PRO,升降轴(轴2)P3速度,UpDownAxis_P3_Speed,130,,,,,,
PRO,(轴三)进出轴减速度,InoutAxis_DelSpeed,30,,,,,,
PRO,升降轴(轴2)P4速度,UpDownAxis_P4_Speed,20,,,,,,
PRO,(轴三)进出轴原点低速,InoutAxis_HomeLowSpeed,50,,,,,,
PRO,升降轴(轴2)P5速度,UpDownAxis_P5_Speed,130,,,,,,
PRO,(轴三)进出轴原点高速,InoutAxis_HomeHighSpeed,100,,,,,,
PRO,升降轴(轴2)P6速度,UpDownAxis_P6_Speed,20,,,,,,
PRO,(轴三)进出轴原点加速度,InoutAxis_HomeAddSpeed,30,,,,,,
PRO,升降轴(轴2)P7速度,UpDownAxis_P7_Speed,20,,,,,,
PRO,升降轴(轴2)P1速度,UpDownAxis_P1_Speed,100,,,,,,
PRO,升降轴(轴2)P8速度,UpDownAxis_P8_Speed,20,,,,,,
PRO,升降轴(轴2)P2速度,UpDownAxis_P2_Speed,100,,,,,,
PRO,旋转轴(轴1)P1速度,MiddleAxis_P1_Speed,100,,,,,,
PRO,升降轴(轴2)P3速度,UpDownAxis_P3_Speed,100,,,,,,
PRO,旋转轴(轴1)P2速度,MiddleAxis_P2_Speed,100,,,,,,
PRO,升降轴(轴2)P4速度,UpDownAxis_P4_Speed,40,,,,,,
PRO,进出轴(轴3)P1速度,InOutAxis_P1_Speed,20,,,,,,
PRO,升降轴(轴2)P5速度,UpDownAxis_P5_Speed,100,,,,,,
PRO,进出轴(轴3)P2速度,InOutAxis_P2_Speed,20,,,,,,
PRO,升降轴(轴2)P6速度,UpDownAxis_P6_Speed,40,,,,,,
PRO,进出轴(轴3)P3速度,InOutAxis_P3_Speed,20,,,,,,
PRO,升降轴(轴2)P7速度,UpDownAxis_P7_Speed,40,,,,,,
PRO,升降轴(轴2)P8速度,UpDownAxis_P8_Speed,40,,,,,,
PRO,旋转轴(轴1)P1速度,MiddleAxis_P1_Speed,80,,,,,,
PRO,旋转轴(轴1)P2速度,MiddleAxis_P2_Speed,80,,,,,,
PRO,进出轴(轴3)P1速度,InOutAxis_P1_Speed,40,,,,,,
PRO,进出轴(轴3)P2速度,InOutAxis_P2_Speed,40,,,,,,
PRO,进出轴(轴3)P3速度,InOutAxis_P3_Speed,40,,,,,,
PRO,(轴一)旋转轴停止时可误差的脉冲数的最小值,MiddleAxis_ErrorCountMin,10,,,,,,
PRO,(轴一)旋转轴停止时可误差的脉冲数的最小值,MiddleAxis_ErrorCountMin,10,,,,,,
PRO,(轴二)升降轴轴停止时可误差的脉冲数的最小值,UpdownAxis_ErrorCountMin,10,,,,,,
PRO,(轴二)升降轴轴停止时可误差的脉冲数的最小值,UpdownAxis_ErrorCountMin,10,,,,,,
PRO,(轴三)进出轴停止时可误差的脉冲数的最小值,InoutAxis_ErrorCountMin,10,,,,,,
PRO,(轴三)进出轴停止时可误差的脉冲数的最小值,InoutAxis_ErrorCountMin,10,,,,,,
PRO,(轴一)旋转轴停止时可误差的脉冲数的最大值,MiddleAxis_ErrorCountMax,1000,,,,,,
PRO,(轴一)旋转轴停止时可误差的脉冲数的最大值,MiddleAxis_ErrorCountMax,1000,,,,,,
PRO,(轴二)升降轴轴停止时可误差的脉冲数的最大值,UpdownAxis_ErrorCountMax,1000,,,,,,
PRO,(轴二)升降轴轴停止时可误差的脉冲数的最大值,UpdownAxis_ErrorCountMax,1000,,,,,,
PRO,(轴三)进出轴停止时可误差的脉冲数的最大值,InoutAxis_ErrorCountMax,1000,,,,,,
PRO,(轴三)进出轴停止时可误差的脉冲数的最大值,InoutAxis_ErrorCountMax,1000,,,,,,
PRO,出入库多少次,会自动重置旋转轴,Box_ResetMCount,1000,,,,,,
PRO,出入库多少次,会自动重置旋转轴,Box_ResetMCount,1000,,,,,,
PRO,出入库多少次,会自动重置所有轴操作,Box_ResetACount,100,,,,,,
PRO,出入库多少次,会自动重置所有轴操作,Box_ResetACount,100,,,,,,
PRO,(轴一)旋转轴速度倍率,MiddleAxis_ResolveSpeed,10,,,,,,
PRO,(轴二)升降轴速度倍率,UpdownAxis_ResolveSpeed,20,,,,,,
PRO,(轴三)进出轴速度倍率,InoutAxis_ResolveSpeed,10,,,,,,
PRO,IO信号超时时间(毫秒),IOSingle_TimerOut,10000,,,,,,
PRO,IO信号超时时间(毫秒),IOSingle_TimerOut,10000,,,,,,
PRO,是否使用料盘检测信号,IsUse_Tray_Check,0,,,,,,
PRO,是否使用料盘检测信号,IsUse_Tray_Check,0,,,,,,
,,,,,,,,,
,,,,,,,,,
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
87d0f92
...
@@ -153,21 +153,27 @@ namespace OnlineStore.DeviceLibrary
...
@@ -153,21 +153,27 @@ namespace OnlineStore.DeviceLibrary
/// 配置速度,加减速时间
/// 配置速度,加减速时间
/// </summary>
/// </summary>
public
void
MoveAxisConfig
()
public
void
MoveAxisConfig
()
{
{
Config
.
Middle_Axis
.
StartSpeed
=
Config
.
MiddleAxis_StartSpeed
;
Config
.
Middle_Axis
.
TargetSpeed
=
Config
.
MiddleAxis_TargetSpeed
;
Config
.
Middle_Axis
.
TargetSpeed
=
Config
.
MiddleAxis_TargetSpeed
;
Config
.
Middle_Axis
.
AccelTime
=
Config
.
MiddleAxis_AccelTime
;
Config
.
Middle_Axis
.
AddSpeed
=
Config
.
MiddleAxis_AddSpeed
;
Config
.
Middle_Axis
.
DecelTime
=
Config
.
MiddleAxis_DecelTime
;
Config
.
Middle_Axis
.
DelSpeed
=
Config
.
MiddleAxis_DelSpeed
;
Config
.
Middle_Axis
.
HomeAddSpeed
=
Config
.
MiddleAxis_HomeAddSpeed
;
Config
.
Middle_Axis
.
HomeHighSpeed
=
Config
.
MiddleAxis_HomeHighSpeed
;
Config
.
Middle_Axis
.
HomeLowSpeed
=
Config
.
MiddleAxis_HomeLowSpeed
;
Config
.
InOut_Axis
.
StartSpeed
=
Config
.
InoutAxis_StartSpeed
;
Config
.
InOut_Axis
.
TargetSpeed
=
Config
.
InoutAxis_TargetSpeed
;
Config
.
InOut_Axis
.
TargetSpeed
=
Config
.
InoutAxis_TargetSpeed
;
Config
.
InOut_Axis
.
DecelTime
=
Config
.
InoutAxis_DecelTime
;
Config
.
InOut_Axis
.
DelSpeed
=
Config
.
InoutAxis_AddSpeed
;
Config
.
InOut_Axis
.
AccelTime
=
Config
.
InoutAxis_AccelTime
;
Config
.
InOut_Axis
.
AddSpeed
=
Config
.
InoutAxis_DelSpeed
;
Config
.
InOut_Axis
.
HomeAddSpeed
=
Config
.
InoutAxis_HomeAddSpeed
;
Config
.
InOut_Axis
.
HomeHighSpeed
=
Config
.
InoutAxis_HomeHighSpeed
;
Config
.
InOut_Axis
.
HomeLowSpeed
=
Config
.
InoutAxis_HomeLowSpeed
;
Config
.
UpDown_Axis
.
StartSpeed
=
Config
.
UpdownAxis_StartSpeed
;
Config
.
UpDown_Axis
.
TargetSpeed
=
Config
.
UpdownAxis_TargetSpeed
;
Config
.
UpDown_Axis
.
TargetSpeed
=
Config
.
UpdownAxis_TargetSpeed
;
Config
.
UpDown_Axis
.
AccelTime
=
Config
.
UpdownAxis_AccelTime
;
Config
.
UpDown_Axis
.
AddSpeed
=
Config
.
UpdownAxis_AddSpeed
;
Config
.
UpDown_Axis
.
DecelTime
=
Config
.
UpdownAxis_DecelTime
;
Config
.
UpDown_Axis
.
DelSpeed
=
Config
.
UpdownAxis_DelSpeed
;
Config
.
UpDown_Axis
.
HomeAddSpeed
=
Config
.
UpdownAxis_HomeAddSpeed
;
Config
.
UpDown_Axis
.
HomeHighSpeed
=
Config
.
UpdownAxis_HomeHighSpeed
;
Config
.
UpDown_Axis
.
HomeLowSpeed
=
Config
.
UpdownAxis_HomeLowSpeed
;
Config
.
Middle_Axis
.
CanErrorCountMin
=
Config
.
MiddleAxis_ErrorCountMin
;
Config
.
Middle_Axis
.
CanErrorCountMin
=
Config
.
MiddleAxis_ErrorCountMin
;
Config
.
InOut_Axis
.
CanErrorCountMin
=
Config
.
MiddleAxis_ErrorCountMin
;
Config
.
InOut_Axis
.
CanErrorCountMin
=
Config
.
MiddleAxis_ErrorCountMin
;
...
@@ -184,9 +190,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -184,9 +190,9 @@ namespace OnlineStore.DeviceLibrary
Config
.
UpDown_Axis
.
PositionMax
=
Config
.
UpdownAxis_PositionMax
;
Config
.
UpDown_Axis
.
PositionMax
=
Config
.
UpdownAxis_PositionMax
;
Config
.
InOut_Axis
.
ResolveSpeed
=
Config
.
InoutAxis_ResolveSpeed
;
//
Config.InOut_Axis.ResolveSpeed = Config.InoutAxis_ResolveSpeed;
Config
.
UpDown_Axis
.
ResolveSpeed
=
Config
.
UpdownAxis_ResolveSpeed
;
//
Config.UpDown_Axis.ResolveSpeed = Config.UpdownAxis_ResolveSpeed;
Config
.
Middle_Axis
.
ResolveSpeed
=
Config
.
MiddleAxis_ResolveSpeed
;
//
Config.Middle_Axis.ResolveSpeed = Config.MiddleAxis_ResolveSpeed;
Config
.
Middle_Axis
.
DefaultPosition
=
Config
.
MiddleAxis_P1_Position
;
Config
.
Middle_Axis
.
DefaultPosition
=
Config
.
MiddleAxis_P1_Position
;
Config
.
InOut_Axis
.
DefaultPosition
=
Config
.
InOutAxis_P1_Position
;
Config
.
InOut_Axis
.
DefaultPosition
=
Config
.
InOutAxis_P1_Position
;
...
@@ -307,7 +313,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -307,7 +313,7 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
NewMove
(
StoreMoveType
.
StoreReset
);
StoreMove
.
NewMove
(
StoreMoveType
.
StoreReset
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_M_H_TOP1_InOutToP1
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_M_H_TOP1_InOutToP1
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"到待机状态,进出轴到P1,判断叉子没有料盘"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"到待机状态,进出轴到P1,判断叉子没有料盘"
);
ACAxisMove
(
Config
.
InOut_Axis
,
Config
.
InOutAxis_P1_Position
,
Config
.
InOutAxis_P1_Speed
,
Config
.
InOut_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
InOut_Axis
,
Config
.
InOutAxis_P1_Position
,
Config
.
InOutAxis_P1_Speed
);
//判断叉子没有料盘
//判断叉子没有料盘
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_3
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_3
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_4
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_4
,
IO_VALUE
.
LOW
));
...
@@ -407,7 +413,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -407,7 +413,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
LOGGER
,
StoreName
+
"重置中 ,进出轴已经回原点 , 并且进出轴退回P1点,关闭舱门,判断叉子没料盘"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"重置中 ,进出轴已经回原点 , 并且进出轴退回P1点,关闭舱门,判断叉子没料盘"
);
//进出轴原点返回完成,将进出轴的位置设置=0
//进出轴原点返回完成,将进出轴的位置设置=0
AxisCountClear
(
Config
.
InOut_Axis
);
AxisCountClear
(
Config
.
InOut_Axis
);
ACAxisMove
(
Config
.
InOut_Axis
,
Config
.
InOutAxis_P1_Position
,
Config
.
InOutAxis_P1_Speed
,
Config
.
InOut_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
InOut_Axis
,
Config
.
InOutAxis_P1_Position
,
Config
.
InOutAxis_P1_Speed
);
//判断叉子没有料盘
//判断叉子没有料盘
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_3
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_3
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_4
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_4
,
IO_VALUE
.
LOW
));
...
@@ -447,8 +453,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -447,8 +453,8 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_MiddleAxisToP1
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_MiddleAxisToP1
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"重置中:旋转轴运动到P1,上下轴走到P1!"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"重置中:旋转轴运动到P1,上下轴走到P1!"
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
,
Config
.
Middle_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorOPosition_P1
,
Config
.
UpDownAxis_P1_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorOPosition_P1
,
Config
.
UpDownAxis_P1_Speed
);
break
;
break
;
case
StoreMoveStep
.
BOX_H_MiddleAxisToP1
:
case
StoreMoveStep
.
BOX_H_MiddleAxisToP1
:
LogUtil
.
info
(
LOGGER
,
StoreName
+
"重置完成"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"重置完成"
);
...
@@ -478,8 +484,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -478,8 +484,8 @@ namespace OnlineStore.DeviceLibrary
case
StoreMoveStep
.
BOX_M_H_TOP1_CompressHome
:
case
StoreMoveStep
.
BOX_M_H_TOP1_CompressHome
:
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_M_H_TOP1_OtherAxisToP1
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_M_H_TOP1_OtherAxisToP1
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"重置中:旋转轴运动到P1,上下轴走到P1!"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"重置中:旋转轴运动到P1,上下轴走到P1!"
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
,
Config
.
Middle_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorOPosition_P1
,
Config
.
UpDownAxis_P1_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorOPosition_P1
,
Config
.
UpDownAxis_P1_Speed
);
break
;
break
;
case
StoreMoveStep
.
BOX_M_H_TOP1_OtherAxisToP1
:
case
StoreMoveStep
.
BOX_M_H_TOP1_OtherAxisToP1
:
LogUtil
.
info
(
LOGGER
,
StoreName
+
"到待机状态完成"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"到待机状态完成"
);
...
@@ -528,7 +534,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -528,7 +534,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
LOGGER
,
StoreName
+
"原点返回中,进出轴已经回原点, 进出轴退回P1点,关闭仓门,检测叉子没有料盘"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"原点返回中,进出轴已经回原点, 进出轴退回P1点,关闭仓门,检测叉子没有料盘"
);
//进出轴原点返回完成,将进出轴的位置设置=0
//进出轴原点返回完成,将进出轴的位置设置=0
AxisCountClear
(
Config
.
InOut_Axis
);
AxisCountClear
(
Config
.
InOut_Axis
);
ACAxisMove
(
Config
.
InOut_Axis
,
Config
.
InOutAxis_P1_Position
,
Config
.
InOutAxis_P1_Speed
,
Config
.
InOut_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
InOut_Axis
,
Config
.
InOutAxis_P1_Position
,
Config
.
InOutAxis_P1_Speed
);
//判断叉子没有料盘
//判断叉子没有料盘
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_3
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_3
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_4
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_4
,
IO_VALUE
.
LOW
));
...
@@ -571,8 +577,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -571,8 +577,8 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_MiddleAxisToP1
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_MiddleAxisToP1
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"原点返回中:旋转轴运动到P1,上下轴到P1!"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"原点返回中:旋转轴运动到P1,上下轴到P1!"
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
,
Config
.
Middle_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorOPosition_P1
,
Config
.
UpDownAxis_P1_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorOPosition_P1
,
Config
.
UpDownAxis_P1_Speed
);
break
;
break
;
case
StoreMoveStep
.
BOX_H_MiddleAxisToP1
:
case
StoreMoveStep
.
BOX_H_MiddleAxisToP1
:
LogUtil
.
info
(
LOGGER
,
StoreName
+
"原点返回完成"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"原点返回完成"
);
...
@@ -598,7 +604,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -598,7 +604,9 @@ namespace OnlineStore.DeviceLibrary
ACServerManager
.
OpenPort
(
portName
);
ACServerManager
.
OpenPort
(
portName
);
Thread
.
Sleep
(
100
);
Thread
.
Sleep
(
100
);
//初始化串口
//初始化串口
ACServerManager
.
InitSlvAddr
(
portName
,
slvAddr
);
//ACServerManager.InitSlvAddr(portName, slvAddr);
ACServerManager
.
InitSlvAddr
(
portName
,
slvAddr
,
moveAxis
.
TargetSpeed
,
moveAxis
.
AddSpeed
,
moveAxis
.
DelSpeed
,
moveAxis
.
HomeHighSpeed
,
moveAxis
.
HomeLowSpeed
,
moveAxis
.
HomeAddSpeed
);
Thread
.
Sleep
(
100
);
Thread
.
Sleep
(
100
);
//打开伺服
//打开伺服
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
87d0f92
...
@@ -3,7 +3,7 @@ using OnlineStore.LoadCSVLibrary;
...
@@ -3,7 +3,7 @@ using OnlineStore.LoadCSVLibrary;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
using
System.Text
;
using
System.Text
;
namespace
OnlineStore.DeviceLibrary
namespace
OnlineStore.DeviceLibrary
{
{
...
@@ -86,7 +86,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -86,7 +86,7 @@ namespace OnlineStore.DeviceLibrary
#
region
出入库结果验证
#
region
出入库结果验证
private
void
InOutBackToP1
(
int
InOut_P1
)
private
void
InOutBackToP1
(
int
InOut_P1
)
{
{
ACAxisMove
(
Config
.
InOut_Axis
,
InOut_P1
,
Config
.
InOutAxis_P1_Speed
,
Config
.
InOut_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
InOut_Axis
,
InOut_P1
,
Config
.
InOutAxis_P1_Speed
);
//StoreMove.WaitList.Add(WaitResultInfo.WaitAxisOrg(Config.InOut_Axis,IO_VALUE.HIGH));
//StoreMove.WaitList.Add(WaitResultInfo.WaitAxisOrg(Config.InOut_Axis,IO_VALUE.HIGH));
}
}
...
@@ -103,7 +103,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -103,7 +103,7 @@ namespace OnlineStore.DeviceLibrary
WarnMsg
=
WarnMsg
+
"\r\n"
+
wait
.
ToStr
();
WarnMsg
=
WarnMsg
+
"\r\n"
+
wait
.
ToStr
();
}
}
LogUtil
.
error
(
LOGGER
,
WarnMsg
,
12
);
LogUtil
.
error
(
LOGGER
,
WarnMsg
,
12
);
Alarm
(
StoreAlarmType
.
IoSingleTimeOut
,
""
,
WarnMsg
,
StoreMove
.
MoveType
);
Alarm
(
StoreAlarmType
.
IoSingleTimeOut
,
""
,
WarnMsg
,
StoreMove
.
MoveType
);
}
}
if
(
list
.
Count
>
0
)
if
(
list
.
Count
>
0
)
{
{
...
@@ -126,7 +126,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -126,7 +126,7 @@ namespace OnlineStore.DeviceLibrary
bool
isEnd
=
ACAxisMoveIsEnd
(
wait
.
AxisInfo
,
wait
.
TargetPosition
,
wait
.
TargetSpeed
,
out
msg
);
bool
isEnd
=
ACAxisMoveIsEnd
(
wait
.
AxisInfo
,
wait
.
TargetPosition
,
wait
.
TargetSpeed
,
out
msg
);
if
(!
msg
.
Equals
(
""
))
if
(!
msg
.
Equals
(
""
))
{
{
isOk
=
false
;
isOk
=
false
;
WarnMsg
=
msg
;
WarnMsg
=
msg
;
Alarm
(
StoreAlarmType
.
AxisMoveError
,
GetAlarmCodeByAxis
(
wait
.
AxisInfo
).
ToString
(),
WarnMsg
,
StoreMove
.
MoveType
);
Alarm
(
StoreAlarmType
.
AxisMoveError
,
GetAlarmCodeByAxis
(
wait
.
AxisInfo
).
ToString
(),
WarnMsg
,
StoreMove
.
MoveType
);
break
;
break
;
...
@@ -192,8 +192,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -192,8 +192,8 @@ namespace OnlineStore.DeviceLibrary
isOk
=
true
;
break
;
isOk
=
true
;
break
;
}
}
}
}
}
}
}
}
if
(
isOk
)
if
(
isOk
)
{
{
...
@@ -247,14 +247,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -247,14 +247,14 @@ namespace OnlineStore.DeviceLibrary
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Down
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Down
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
));
//ACAxisMove(Config.InOut_Axis, param.MoveP.InOut_P1, Config.InOutAxis_P1_Speed
, Config.InOut_Axis.StartSpeed
);
//ACAxisMove(Config.InOut_Axis, param.MoveP.InOut_P1, Config.InOutAxis_P1_Speed);
InOutBackToP1
(
param
.
MoveP
.
InOut_P1
);
InOutBackToP1
(
param
.
MoveP
.
InOut_P1
);
}
}
else
else
{
{
InStoreLog
(
" 入库处理:(SI_01_LocationCylinderDown 定位气缸下降"
);
InStoreLog
(
" 入库处理:(SI_01_LocationCylinderDown 定位气缸下降"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_01_LocationCylinderDown
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_01_LocationCylinderDown
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
LOW
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
HIGH
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
HIGH
));
...
@@ -297,7 +297,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -297,7 +297,7 @@ namespace OnlineStore.DeviceLibrary
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Down
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Down
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
));
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed
, Config.InOut_Axis.StartSpeed
);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed);
InOutBackToP1
(
moveP
.
InOut_P1
);
InOutBackToP1
(
moveP
.
InOut_P1
);
}
}
else
else
...
@@ -308,14 +308,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -308,14 +308,14 @@ namespace OnlineStore.DeviceLibrary
KNDIOMove
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
LOW
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
HIGH
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
HIGH
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
LOW
));
}
}
}
}
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_01_LocationCylinderDown
)
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_01_LocationCylinderDown
)
{
{
InStoreLog
(
" 入库处理:(SI_02_InOutAxisHome 进出轴(叉子)动作至P1,打开舱门"
);
InStoreLog
(
" 入库处理:(SI_02_InOutAxisHome 进出轴(叉子)动作至P1,打开舱门"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_02_InOutAxisHome
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_02_InOutAxisHome
);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed
, Config.InOut_Axis.StartSpeed
);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed);
InOutBackToP1
(
moveP
.
InOut_P1
);
InOutBackToP1
(
moveP
.
InOut_P1
);
//打开门 ,门上升
//打开门 ,门上升
...
@@ -323,7 +323,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -323,7 +323,7 @@ namespace OnlineStore.DeviceLibrary
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Down
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Down
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
));
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed
, Config.InOut_Axis.StartSpeed
);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_02_InOutAxisHome
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_02_InOutAxisHome
)
{
{
...
@@ -334,8 +334,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -334,8 +334,8 @@ namespace OnlineStore.DeviceLibrary
//ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P3);
//ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P3);
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P3, false));
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P3, false));
}
}
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P1
,
Config
.
UpDownAxis_P1_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P1
,
Config
.
UpDownAxis_P1_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
,
Config
.
Middle_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_03_ReturnHome
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_03_ReturnHome
)
{
{
...
@@ -350,14 +350,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -350,14 +350,14 @@ namespace OnlineStore.DeviceLibrary
{
{
InStoreLog
(
" 入库处理:(SI_05_DeviceToDoor 叉子进入入料口,轴3( 叉子) 至P2( 进料口取料点))开始"
);
InStoreLog
(
" 入库处理:(SI_05_DeviceToDoor 叉子进入入料口,轴3( 叉子) 至P2( 进料口取料点))开始"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_05_DeviceToDoor
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_05_DeviceToDoor
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P2
,
Config
.
InOutAxis_P2_Speed
,
Config
.
InOut_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P2
,
Config
.
InOutAxis_P2_Speed
);
}
}
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_04_CompressWare
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_04_CompressWare
)
{
{
InStoreLog
(
" 入库处理:(SI_05_DeviceToDoor 叉子进入入料口,轴3( 叉子) 至P2( 进料口取料点))开始"
);
InStoreLog
(
" 入库处理:(SI_05_DeviceToDoor 叉子进入入料口,轴3( 叉子) 至P2( 进料口取料点))开始"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_05_DeviceToDoor
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_05_DeviceToDoor
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P2
,
Config
.
InOutAxis_P2_Speed
,
Config
.
InOut_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P2
,
Config
.
InOutAxis_P2_Speed
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_05_DeviceToDoor
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_05_DeviceToDoor
)
{
{
...
@@ -369,14 +369,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -369,14 +369,14 @@ namespace OnlineStore.DeviceLibrary
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P2, false));
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P2, false));
System
.
Threading
.
Thread
.
Sleep
(
600
);
System
.
Threading
.
Thread
.
Sleep
(
600
);
}
}
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P7
,
Config
.
UpDownAxis_P7_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P7
,
Config
.
UpDownAxis_P7_Speed
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_06_DoorWarToDevice
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_06_DoorWarToDevice
)
{
{
InStoreLog
(
" 入库处理:(SI_07_DeviceBackFromDoor 叉子 从入料口抽出,轴3( 叉子) 至P1( 待机点))开始"
);
InStoreLog
(
" 入库处理:(SI_07_DeviceBackFromDoor 叉子 从入料口抽出,轴3( 叉子) 至P1( 待机点))开始"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_07_DeviceBackFromDoor
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_07_DeviceBackFromDoor
);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed
, Config.InOut_Axis.StartSpeed
);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed);
InOutBackToP1
(
moveP
.
InOut_P1
);
InOutBackToP1
(
moveP
.
InOut_P1
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_07_DeviceBackFromDoor
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_07_DeviceBackFromDoor
)
...
@@ -385,8 +385,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -385,8 +385,8 @@ namespace OnlineStore.DeviceLibrary
{
{
InStoreLog
(
" 入库处理:(SI_09_MoveToBag 移动到库位点,轴1( 转盘) 至P2( 库位点)轴2(上下) 至P3(库位入库前点))开始"
);
InStoreLog
(
" 入库处理:(SI_09_MoveToBag 移动到库位点,轴1( 转盘) 至P2( 库位点)轴2(上下) 至P3(库位入库前点))开始"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_09_MoveToBag
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_09_MoveToBag
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P2
,
Config
.
MiddleAxis_P2_Speed
,
Config
.
Middle_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P2
,
Config
.
MiddleAxis_P2_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P3
,
Config
.
UpDownAxis_P3_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P3
,
Config
.
UpDownAxis_P3_Speed
);
//关闭舱门
//关闭舱门
KNDIOMove
(
IO_Type
.
Door_Down
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Down
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
LOW
);
...
@@ -398,15 +398,15 @@ namespace OnlineStore.DeviceLibrary
...
@@ -398,15 +398,15 @@ namespace OnlineStore.DeviceLibrary
KNDIOMove
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
HIGH
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
HIGH
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
HIGH
));
}
}
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_08_LocationCylinder_Up
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_08_LocationCylinder_Up
)
{
{
InStoreLog
(
" 入库处理:(SI_09_MoveToBag 移动到库位点,轴1( 转盘) 至P2( 库位点)轴2(上下) 至P3(库位入库前点)),关闭舱门 开始"
);
InStoreLog
(
" 入库处理:(SI_09_MoveToBag 移动到库位点,轴1( 转盘) 至P2( 库位点)轴2(上下) 至P3(库位入库前点)),关闭舱门 开始"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_09_MoveToBag
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_09_MoveToBag
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P2
,
Config
.
MiddleAxis_P1_Speed
,
Config
.
Middle_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P2
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P3
,
Config
.
UpDownAxis_P3_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P3
,
Config
.
UpDownAxis_P3_Speed
);
//关闭舱门
//关闭舱门
KNDIOMove
(
IO_Type
.
Door_Down
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Down
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
LOW
);
...
@@ -419,13 +419,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -419,13 +419,13 @@ namespace OnlineStore.DeviceLibrary
{
{
InStoreLog
(
" 入库处理:(SI_11_DeviceToBag 叉子进入库位中,轴3( 叉子) 至P3(库位取放料点))开始"
);
InStoreLog
(
" 入库处理:(SI_11_DeviceToBag 叉子进入库位中,轴3( 叉子) 至P3(库位取放料点))开始"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_11_DeviceToBag
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_11_DeviceToBag
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P3
,
Config
.
InOutAxis_P3_Speed
,
Config
.
InOut_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P3
,
Config
.
InOutAxis_P3_Speed
);
}
}
else
else
{
{
InStoreLog
(
" 入库处理:(SI_10_LocationCylinder_Down 定位气缸退回 (有压紧轴的不需要此步骤) )开始"
);
InStoreLog
(
" 入库处理:(SI_10_LocationCylinder_Down 定位气缸退回 (有压紧轴的不需要此步骤) )开始"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_10_LocationCylinder_Down
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_10_LocationCylinder_Down
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
LOW
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
HIGH
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
HIGH
));
...
@@ -437,7 +437,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -437,7 +437,7 @@ namespace OnlineStore.DeviceLibrary
KNDIOMove
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
LOW
);
InStoreLog
(
" 入库处理:(SI_11_DeviceToBag 叉子进入库位中,轴3( 叉子) 至P3(库位取放料点))开始"
);
InStoreLog
(
" 入库处理:(SI_11_DeviceToBag 叉子进入库位中,轴3( 叉子) 至P3(库位取放料点))开始"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_11_DeviceToBag
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_11_DeviceToBag
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P3
,
Config
.
InOutAxis_P3_Speed
,
Config
.
InOut_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P3
,
Config
.
InOutAxis_P3_Speed
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_11_DeviceToBag
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_11_DeviceToBag
)
...
@@ -449,7 +449,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -449,7 +449,7 @@ namespace OnlineStore.DeviceLibrary
//ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P3);
//ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P3);
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P3, false));
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P3, false));
}
}
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P4
,
Config
.
UpDownAxis_P4_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P4
,
Config
.
UpDownAxis_P4_Speed
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_12_PutWareToBag
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_12_PutWareToBag
)
{
{
...
@@ -474,8 +474,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -474,8 +474,8 @@ namespace OnlineStore.DeviceLibrary
//ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P1);
//ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P1);
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P1, false));
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P1, false));
}
}
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
,
Config
.
Middle_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P1
,
Config
.
UpDownAxis_P1_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P1
,
Config
.
UpDownAxis_P1_Speed
);
//关闭门
//关闭门
KNDIOMove
(
IO_Type
.
Door_Down
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Down
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
LOW
);
...
@@ -525,7 +525,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -525,7 +525,7 @@ namespace OnlineStore.DeviceLibrary
{
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_02_DeviceBack
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_02_DeviceBack
);
OutStoreLog
(
" 出库处理:(SO_02_DeviceBack 叉子先运动到P1 ,打开舱门 开始"
);
OutStoreLog
(
" 出库处理:(SO_02_DeviceBack 叉子先运动到P1 ,打开舱门 开始"
);
//ACAxisMove(Config.InOut_Axis, StoreMove.MoveParam.MoveP.InOut_P1, Config.InOutAxis_P1_Speed
, Config.InOut_Axis.StartSpeed
);
//ACAxisMove(Config.InOut_Axis, StoreMove.MoveParam.MoveP.InOut_P1, Config.InOutAxis_P1_Speed);
InOutBackToP1
(
StoreMove
.
MoveParam
.
MoveP
.
InOut_P1
);
InOutBackToP1
(
StoreMove
.
MoveParam
.
MoveP
.
InOut_P1
);
//打开舱门
//打开舱门
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
);
...
@@ -575,14 +575,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -575,14 +575,14 @@ namespace OnlineStore.DeviceLibrary
//ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P3);
//ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P3);
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P3, false));
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P3, false));
}
}
ACAxisMove
(
Config
.
Middle_Axis
,
StoreMove
.
MoveParam
.
MoveP
.
Middle_P2
,
Config
.
MiddleAxis_P2_Speed
,
Config
.
Middle_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
Middle_Axis
,
StoreMove
.
MoveParam
.
MoveP
.
Middle_P2
,
Config
.
MiddleAxis_P2_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
StoreMove
.
MoveParam
.
MoveP
.
UpDown_P5
,
Config
.
UpDownAxis_P5_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
StoreMove
.
MoveParam
.
MoveP
.
UpDown_P5
,
Config
.
UpDownAxis_P5_Speed
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_03_ToBagPosition
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_03_ToBagPosition
)
{
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_04_DeviceToBag
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_04_DeviceToBag
);
OutStoreLog
(
" 出库处理:(SO_04_DeviceToBag叉子进入库位中, 轴3( 叉子) 至P3(库位取放料点))开始"
);
OutStoreLog
(
" 出库处理:(SO_04_DeviceToBag叉子进入库位中, 轴3( 叉子) 至P3(库位取放料点))开始"
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P3
,
Config
.
InOutAxis_P3_Speed
,
Config
.
InOut_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P3
,
Config
.
InOutAxis_P3_Speed
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_04_DeviceToBag
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_04_DeviceToBag
)
{
{
...
@@ -594,19 +594,19 @@ namespace OnlineStore.DeviceLibrary
...
@@ -594,19 +594,19 @@ namespace OnlineStore.DeviceLibrary
//ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P2);
//ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P2);
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P2, false));
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P2, false));
}
}
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P6
,
Config
.
UpDownAxis_P6_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P6
,
Config
.
UpDownAxis_P6_Speed
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_05_BagWareToDevice
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_05_BagWareToDevice
)
{
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_06_BagDeviceBack
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_06_BagDeviceBack
);
OutStoreLog
(
" 出库处理:(SO_06_BagDeviceBack,叉子从 库位返回,轴3( 叉子) 至P1( 待机点))开始"
);
OutStoreLog
(
" 出库处理:(SO_06_BagDeviceBack,叉子从 库位返回,轴3( 叉子) 至P1( 待机点))开始"
);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed
, Config.InOut_Axis.StartSpeed
);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed);
InOutBackToP1
(
moveP
.
InOut_P1
);
InOutBackToP1
(
moveP
.
InOut_P1
);
//把库位的物品放到取到叉子上之后是出仓完成
//把库位的物品放到取到叉子上之后是出仓完成
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PositionNum
:
""
;
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PositionNum
:
""
;
lastPosId
=
posId
;
lastPosId
=
posId
;
lastPosIdStatus
=
StoreStatus
.
OutStoreBoxEnd
;
lastPosIdStatus
=
StoreStatus
.
OutStoreBoxEnd
;
storeStatus
=
StoreStatus
.
OutStoreBoxEnd
;
storeStatus
=
StoreStatus
.
OutStoreBoxEnd
;
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_06_BagDeviceBack
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_06_BagDeviceBack
)
...
@@ -615,8 +615,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -615,8 +615,8 @@ namespace OnlineStore.DeviceLibrary
{
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_08_ToDoorPosition
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_08_ToDoorPosition
);
OutStoreLog
(
" 出库处理: (SO_08_ToDoorPosition所有设备运行到门,,轴1( 转盘) 至P1( 待机点)轴2( 上下) 至P2( 进料口出料前点)),打开舱门 开始"
);
OutStoreLog
(
" 出库处理: (SO_08_ToDoorPosition所有设备运行到门,,轴1( 转盘) 至P1( 待机点)轴2( 上下) 至P2( 进料口出料前点)),打开舱门 开始"
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P2
,
Config
.
UpDownAxis_P2_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P2
,
Config
.
UpDownAxis_P2_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
,
Config
.
Middle_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
);
//打开舱门
//打开舱门
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Down
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
Door_Down
,
IO_VALUE
.
LOW
);
...
@@ -631,27 +631,27 @@ namespace OnlineStore.DeviceLibrary
...
@@ -631,27 +631,27 @@ namespace OnlineStore.DeviceLibrary
KNDIOMove
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
HIGH
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
HIGH
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
HIGH
));
}
}
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_07_LocationCylinder_Up
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_07_LocationCylinder_Up
)
{
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_08_ToDoorPosition
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_08_ToDoorPosition
);
OutStoreLog
(
" 出库处理: (SO_08_ToDoorPosition所有设备运行到门,,轴1( 转盘) 至P1( 待机点)轴2( 上下) 至P2( 进料口出料前点))开始"
);
OutStoreLog
(
" 出库处理: (SO_08_ToDoorPosition所有设备运行到门,,轴1( 转盘) 至P1( 待机点)轴2( 上下) 至P2( 进料口出料前点))开始"
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P2
,
Config
.
UpDownAxis_P2_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P2
,
Config
.
UpDownAxis_P2_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
,
Config
.
Middle_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
);
//此处需要等待box门口没有盘
//此处需要等待box门口没有盘
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_1
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_1
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_2
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_2
,
IO_VALUE
.
LOW
));
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_08_ToDoorPosition
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_08_ToDoorPosition
)
{
{
if
(
IsHasCompress_Axis
)
if
(
IsHasCompress_Axis
)
{
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_10_DeviceToDoor
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_10_DeviceToDoor
);
OutStoreLog
(
" 出库处理:(SO_10_DeviceToDoor叉子进出料口,,轴3( 叉子) 至P2( 进料口取料点))开始"
);
OutStoreLog
(
" 出库处理:(SO_10_DeviceToDoor叉子进出料口,,轴3( 叉子) 至P2( 进料口取料点))开始"
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P2
,
Config
.
InOutAxis_P2_Speed
,
Config
.
InOut_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P2
,
Config
.
InOutAxis_P2_Speed
);
}
}
else
else
{
{
...
@@ -660,15 +660,15 @@ namespace OnlineStore.DeviceLibrary
...
@@ -660,15 +660,15 @@ namespace OnlineStore.DeviceLibrary
KNDIOMove
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
LOW
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
HIGH
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Down
,
IO_VALUE
.
HIGH
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LocationCylinder_Up
,
IO_VALUE
.
LOW
));
}
}
}
}
//此处需要等待移栽没有工作,才能把盘放入出料口
//此处需要等待移栽没有工作,才能把盘放入出料口
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_09_LocationCylinder_Down
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_09_LocationCylinder_Down
)
{
{
OutStoreLog
(
" 出库处理:(SO_10_DeviceToDoor叉子进出料口,,轴3( 叉子) 至P2( 进料口取料点))开始"
);
OutStoreLog
(
" 出库处理:(SO_10_DeviceToDoor叉子进出料口,,轴3( 叉子) 至P2( 进料口取料点))开始"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_10_DeviceToDoor
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_10_DeviceToDoor
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P2
,
Config
.
InOutAxis_P2_Speed
,
Config
.
InOut_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P2
,
Config
.
InOutAxis_P2_Speed
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_10_DeviceToDoor
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_10_DeviceToDoor
)
{
{
...
@@ -679,7 +679,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -679,7 +679,7 @@ namespace OnlineStore.DeviceLibrary
//ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P1);
//ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P1);
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P1, false));
//StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P1, false));
}
}
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P8
,
Config
.
UpDownAxis_P8_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P8
,
Config
.
UpDownAxis_P8_Speed
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_11_DevicePutWare
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_11_DevicePutWare
)
{
{
...
@@ -691,7 +691,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -691,7 +691,7 @@ namespace OnlineStore.DeviceLibrary
{
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_13_GoBack
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_13_GoBack
);
OutStoreLog
(
" 出库处理:(SO_13_GoBack升降轴返回,, 轴2至P1( 待机点))开始,关闭舱门!"
);
OutStoreLog
(
" 出库处理:(SO_13_GoBack升降轴返回,, 轴2至P1( 待机点))开始,关闭舱门!"
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P1
,
Config
.
UpDownAxis_P1_Speed
,
Config
.
UpDown_Axis
.
StartSpeed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P1
,
Config
.
UpDownAxis_P1_Speed
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
Door_Up
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
Door_Down
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Door_Down
,
IO_VALUE
.
HIGH
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Up
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Door_Up
,
IO_VALUE
.
LOW
));
...
@@ -819,7 +819,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -819,7 +819,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
error
(
LOGGER
,
ex
.
ToString
());
LogUtil
.
error
(
LOGGER
,
ex
.
ToString
());
}
}
}
}
private
void
InStoreLog
(
string
msg
)
private
void
InStoreLog
(
string
msg
)
{
{
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PositionNum
:
""
;
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PositionNum
:
""
;
...
...
source/DeviceLibrary/store/KTK_Store.cs
查看文件 @
87d0f92
...
@@ -255,7 +255,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -255,7 +255,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
/// 松下伺服电机运动
/// 松下伺服电机运动
/// </summary>
/// </summary>
protected
void
ACAxisMove
(
ConfigMoveAxis
moveAxis
,
int
targetPosition
,
int
targetSpeed
,
int
startSpeed
)
protected
void
ACAxisMove
(
ConfigMoveAxis
moveAxis
,
int
targetPosition
,
int
targetSpeed
)
{
{
moveAxis
.
TargetPosition
=
targetPosition
;
moveAxis
.
TargetPosition
=
targetPosition
;
AddAxisMoveTime
(
moveAxis
);
AddAxisMoveTime
(
moveAxis
);
...
...
source/LoadCVSLibrary/storeConfig/ConfigItemBase.cs
查看文件 @
87d0f92
...
@@ -88,21 +88,21 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -88,21 +88,21 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary>
/// </summary>
//[CSVAttribute("目标速度")]
//[CSVAttribute("目标速度")]
public
int
TargetSpeed
{
get
;
set
;
}
public
int
TargetSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 开始速度
/// 加速度
/// </summary>
//[CSVAttribute("开始速度")]
public
int
StartSpeed
{
get
;
set
;
}
/// <summary>
/// 加速时间
/// </summary>
/// </summary>
//[CSVAttribute("加速时间")]
//[CSVAttribute("加速时间")]
public
short
A
ccelTime
{
get
;
set
;
}
public
short
A
ddSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 减速
时间
/// 减速
度
/// </summary>
/// </summary>
//[CSVAttribute("减速时间")]
//[CSVAttribute("减速时间")]
public
short
DecelTime
{
get
;
set
;
}
public
short
DelSpeed
{
get
;
set
;
}
public
int
HomeLowSpeed
{
get
;
set
;
}
public
int
HomeHighSpeed
{
get
;
set
;
}
public
int
HomeAddSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 可以误差的脉冲范围的最小值
/// 可以误差的脉冲范围的最小值
/// </summary>
/// </summary>
...
@@ -116,10 +116,10 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -116,10 +116,10 @@ namespace OnlineStore.LoadCSVLibrary
/// 出入库目标值(只有出入库过程中才会有效)
/// 出入库目标值(只有出入库过程中才会有效)
/// </summary>
/// </summary>
public
int
TargetPosition
{
get
;
set
;
}
public
int
TargetPosition
{
get
;
set
;
}
/// <summary>
///
//
<summary>
/// 速度倍率
///
//
速度倍率
/// </summary>
///
//
</summary>
public
int
ResolveSpeed
{
get
;
set
;
}
//
public int ResolveSpeed { get; set; }
/// <summary>
/// <summary>
/// 最小位置
/// 最小位置
/// </summary>
/// </summary>
...
...
source/LoadCVSLibrary/storeConfig/config/AC_SA_Config.cs
查看文件 @
87d0f92
...
@@ -46,127 +46,112 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -46,127 +46,112 @@ namespace OnlineStore.LoadCSVLibrary
/// IsHasCompress_Axis是否使用压紧轴
/// IsHasCompress_Axis是否使用压紧轴
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"IsHasCompress_Axis"
)]
[
ConfigProAttribute
(
"IsHasCompress_Axis"
)]
public
int
IsHasCompress_Axis
{
get
;
set
;
}
public
int
IsHasCompress_Axis
{
get
;
set
;
}
///// <summary>
///// PRO 硕科步进电机(压紧轴)控制端口号 CompressAxis_PortName COM4
///// </summary>
//[ConfigProAttribute("CompressAxis_PortName")]
//public string CompressAxis_PortName { get; set; }
///// <summary>
///// PRO 硕科步进电机(压紧轴)控制波特率 CompressAxis_PortBaudrate 9600
///// </summary>
//[ConfigProAttribute("CompressAxis_PortBaudrate")]
//public int CompressAxis_PortBaudrate { get; set; }
///// <summary>
///// PRO 硕科步进电机(压紧轴)控制奇偶校验 CompressAxis_PortParity 2
///// </summary>
//[ConfigProAttribute("CompressAxis_PortParity")]
//public int CompressAxis_PortParity { get; set; }
///// <summary>
///// PRO 硕科步进电机(压紧轴)控制停止位 CompressAxis_StopBits 1
///// </summary>
//[ConfigProAttribute("CompressAxis_StopBits")]
//public int CompressAxis_StopBits { get; set; }
///// <summary>
///// PRO 硕科步进电机(压紧轴)控制初速度 CompressAxis_StartSpeed 100
///// </summary>
//[ConfigProAttribute("CompressAxis_StartSpeed")]
//public int CompressAxis_StartSpeed { get; set; }
///// <summary>
///// PRO 硕科步进电机(压紧轴)控制最大速度 CompressAxis_MaxSpeed 10000
///// </summary>
//[ConfigProAttribute("CompressAxis_MaxSpeed")]
//public int CompressAxis_MaxSpeed { get; set; }
///// <summary>
///// PRO 硕科步进电机(压紧轴)控制末速度 CompressAxis_EndSpeed 10000
///// </summary>
//[ConfigProAttribute("CompressAxis_EndSpeed")]
//public int CompressAxis_EndSpeed { get; set; }
///// <summary>
///// PRO 硕科步进电机(压紧轴)控制加速度 CompressAxis_AddSpeed 5000
///// </summary>
//[ConfigProAttribute("CompressAxis_AddSpeed")]
//public int CompressAxis_AddSpeed { get; set; }
///// <summary>
///// PRO 硕科步进电机(压紧轴)控制减速度 CompressAxis_DelSpeed 1000
///// </summary>
//[ConfigProAttribute("CompressAxis_DelSpeed")]
//public int CompressAxis_DelSpeed { get; set; }
///// <summary>
///// PRO 硕科步进电机(压紧轴)控制归零速度(原点返回速度) CompressAxis_HomeSpeed 10000
///// </summary>
//[ConfigProAttribute("CompressAxis_HomeSpeed")]
//public int CompressAxis_HomeSpeed { get; set; }
///// <summary>
///// PRO,硕科步进电机轴地址(压紧轴),CompressAxis_Slv,1,,,,,,
///// </summary>
//[ConfigProAttribute("CompressAxis_Slv")]
//public int CompressAxis_Slv { get; set; }
/// <summary>
/// <summary>
/// PRO (轴一)旋转轴原点目标速度 MiddleAxis_TargetSpeed 30000
/// PRO (轴一)旋转轴原点目标速度 MiddleAxis_TargetSpeed 30000
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"MiddleAxis_TargetSpeed"
)]
[
ConfigProAttribute
(
"MiddleAxis_TargetSpeed"
)]
public
int
MiddleAxis_TargetSpeed
{
get
;
set
;
}
public
int
MiddleAxis_TargetSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// PRO (轴一)旋转轴原点开始速度 MiddleAxis_StartSpeed 1000
/// PRO (轴一)旋转轴加速度 MiddleAxis_AddSpeed 500
/// </summary>
[
ConfigProAttribute
(
"MiddleAxis_StartSpeed"
)]
public
int
MiddleAxis_StartSpeed
{
get
;
set
;
}
/// <summary>
/// PRO (轴一)旋转轴加速时间 MiddleAxis_AccelTime 500
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"MiddleAxis_A
ccelTime
"
)]
[
ConfigProAttribute
(
"MiddleAxis_A
ddSpeed
"
)]
public
short
MiddleAxis_A
ccelTime
{
get
;
set
;
}
public
short
MiddleAxis_A
ddSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// PRO (轴一)旋转轴减速
时间 MiddleAxis_DecelTime
500
/// PRO (轴一)旋转轴减速
度 MiddleAxis_DelSpeed
500
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"MiddleAxis_De
celTime
"
)]
[
ConfigProAttribute
(
"MiddleAxis_De
lSpeed
"
)]
public
short
MiddleAxis_De
celTime
{
get
;
set
;
}
public
short
MiddleAxis_De
lSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// PRO (轴二)升降轴轴原点目标速度 UpdownAxis_TargetSpeed 120000
/// PRO (轴二)升降轴轴原点目标速度 UpdownAxis_TargetSpeed 120000
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"UpdownAxis_TargetSpeed"
)]
[
ConfigProAttribute
(
"UpdownAxis_TargetSpeed"
)]
public
int
UpdownAxis_TargetSpeed
{
get
;
set
;
}
public
int
UpdownAxis_TargetSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// PRO (轴二)升降轴轴原点开始速度 UpdownAxis_StartSpeed 15000
/// PRO (轴二)升降轴轴加速度 UpdownAxis_AddSpeed 200
/// </summary>
[
ConfigProAttribute
(
"UpdownAxis_StartSpeed"
)]
public
int
UpdownAxis_StartSpeed
{
get
;
set
;
}
/// <summary>
/// PRO (轴二)升降轴轴加速时间 UpdownAxis_AccelTime 200
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"UpdownAxis_A
ccelTime
"
)]
[
ConfigProAttribute
(
"UpdownAxis_A
ddSpeed
"
)]
public
short
UpdownAxis_A
ccelTime
{
get
;
set
;
}
public
short
UpdownAxis_A
ddSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// PRO (轴二)升降轴轴减速
时间 UpdownAxis_DecelTime
200
/// PRO (轴二)升降轴轴减速
度 UpdownAxis_DelSpeed
200
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"UpdownAxis_De
celTime
"
)]
[
ConfigProAttribute
(
"UpdownAxis_De
lSpeed
"
)]
public
short
UpdownAxis_De
celTime
{
get
;
set
;
}
public
short
UpdownAxis_De
lSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// PRO (轴三)进出轴原点目标速度 InoutAxis_TargetSpeed 12000
/// PRO (轴三)进出轴原点目标速度 InoutAxis_TargetSpeed 12000
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"InoutAxis_TargetSpeed"
)]
[
ConfigProAttribute
(
"InoutAxis_TargetSpeed"
)]
public
int
InoutAxis_TargetSpeed
{
get
;
set
;
}
public
int
InoutAxis_TargetSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// PRO (轴三)进出轴
原点开始速度 InoutAxis_StartSpeed 40
00
/// PRO (轴三)进出轴
加速度 InoutAxis_AddSpeed 2
00
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"InoutAxis_StartSpeed"
)]
[
ConfigProAttribute
(
"InoutAxis_AddSpeed"
)]
public
int
InoutAxis_StartSpeed
{
get
;
set
;
}
public
short
InoutAxis_AddSpeed
{
get
;
set
;
}
/// <summary>
/// PRO (轴三)进出轴减速度 InoutAxis_DelSpeed 200
/// </summary>
[
ConfigProAttribute
(
"InoutAxis_DelSpeed"
)]
public
short
InoutAxis_DelSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
///
PRO (轴三)进出轴加速时间 InoutAxis_AccelTime 20
0
///
PRO (轴一)旋转轴原点低速度 MiddleAxis_HomeLowSpeed 5
0
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"
InoutAxis_AccelTime
"
)]
[
ConfigProAttribute
(
"
MiddleAxis_HomeLowSpeed
"
)]
public
short
InoutAxis_AccelTime
{
get
;
set
;
}
public
short
MiddleAxis_HomeLowSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
///
PRO (轴三)进出轴减速时间 InoutAxis_DecelTime 2
00
///
PRO (轴一)旋转轴原点高速 MiddleAxis_HomeHighSpeed 1
00
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"InoutAxis_DecelTime"
)]
[
ConfigProAttribute
(
"MiddleAxis_HomeHighSpeed"
)]
public
short
InoutAxis_DecelTime
{
get
;
set
;
}
public
short
MiddleAxis_HomeHighSpeed
{
get
;
set
;
}
/// <summary>
/// PRO (轴一)旋转轴原点加速度 MiddleAxis_HomeAddSpeed 30
/// </summary>
[
ConfigProAttribute
(
"MiddleAxis_HomeAddSpeed"
)]
public
short
MiddleAxis_HomeAddSpeed
{
get
;
set
;
}
/// <summary>
/// PRO (轴二)升降轴轴原点低速度 UpdownAxis_HomeLowSpeed 50
/// </summary>
[
ConfigProAttribute
(
"UpdownAxis_HomeLowSpeed"
)]
public
short
UpdownAxis_HomeLowSpeed
{
get
;
set
;
}
/// <summary>
/// PRO (轴二)升降轴轴原点高速 UpdownAxis_HomeHighSpeed 100
/// </summary>
[
ConfigProAttribute
(
"UpdownAxis_HomeHighSpeed"
)]
public
short
UpdownAxis_HomeHighSpeed
{
get
;
set
;
}
/// <summary>
/// PRO (轴二)升降轴轴原点加速度 UpdownAxis_HomeAddSpeed 30
/// </summary>
[
ConfigProAttribute
(
"UpdownAxis_HomeAddSpeed"
)]
public
short
UpdownAxis_HomeAddSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// PRO (轴三)进出轴原点低速 InoutAxis_HomeLowSpeed 50
/// </summary>
[
ConfigProAttribute
(
"InoutAxis_HomeLowSpeed"
)]
public
short
InoutAxis_HomeLowSpeed
{
get
;
set
;
}
/// <summary>
/// PRO (轴三)进出轴原点高速 InoutAxis_HomeHighSpeed 100
/// </summary>
[
ConfigProAttribute
(
"InoutAxis_HomeHighSpeed"
)]
public
short
InoutAxis_HomeHighSpeed
{
get
;
set
;
}
/// <summary>
/// PRO (轴三)进出轴原点加速度 InoutAxis_HomeAddSpeed 30
/// </summary>
[
ConfigProAttribute
(
"InoutAxis_HomeAddSpeed"
)]
public
short
InoutAxis_HomeAddSpeed
{
get
;
set
;
}
/// <summary>
/// PRO 升降轴(轴2)P1速度 UpDownAxis_P1_Speed
/// PRO 升降轴(轴2)P1速度 UpDownAxis_P1_Speed
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"UpDownAxis_P1_Speed"
)]
[
ConfigProAttribute
(
"UpDownAxis_P1_Speed"
)]
...
@@ -285,21 +270,21 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -285,21 +270,21 @@ namespace OnlineStore.LoadCSVLibrary
public
int
Box_ResetACount
{
get
;
set
;
}
public
int
Box_ResetACount
{
get
;
set
;
}
/// <summary>
///
//
<summary>
/// PRO (轴一)旋转轴速度倍率 MiddleAxis_ResolveSpeed 10
///
//
PRO (轴一)旋转轴速度倍率 MiddleAxis_ResolveSpeed 10
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"MiddleAxis_ResolveSpeed"
)]
//
[ConfigProAttribute("MiddleAxis_ResolveSpeed")]
public
int
MiddleAxis_ResolveSpeed
{
get
;
set
;
}
//
public int MiddleAxis_ResolveSpeed { get; set; }
/// <summary>
///
//
<summary>
/// PRO (轴二)升降轴速度倍率 UpdownAxis_ResolveSpeed 20
///
//
PRO (轴二)升降轴速度倍率 UpdownAxis_ResolveSpeed 20
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"UpdownAxis_ResolveSpeed"
)]
//
[ConfigProAttribute("UpdownAxis_ResolveSpeed")]
public
int
UpdownAxis_ResolveSpeed
{
get
;
set
;
}
//
public int UpdownAxis_ResolveSpeed { get; set; }
/// <summary>
///
//
<summary>
/// PRO (轴三)进出轴速度倍率 InoutAxis_ResolveSpeed 10
///
//
PRO (轴三)进出轴速度倍率 InoutAxis_ResolveSpeed 10
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"InoutAxis_ResolveSpeed"
)]
//
[ConfigProAttribute("InoutAxis_ResolveSpeed")]
public
int
InoutAxis_ResolveSpeed
{
get
;
set
;
}
//
public int InoutAxis_ResolveSpeed { get; set; }
/// <summary>
/// <summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论