Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c7a1d128
由
几米阳光
编写于
2018-05-28 15:49:09 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.界面调整。2.入库时先定位气缸下降。
1 个父辈
c63e8bb9
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
51 行增加
和
51 行删除
source/ACSingleStore/FrmAxisDebug.Designer.cs
source/ACSingleStore/FrmStoreBox.Designer.cs
source/ACSingleStore/FrmStoreBox.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/ACSingleStore/FrmAxisDebug.Designer.cs
查看文件 @
c7a1d12
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
7
3
7
,
318
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
7
0
7
,
318
);
this
.
Controls
.
Add
(
this
.
label6
);
this
.
Controls
.
Add
(
this
.
label6
);
this
.
Controls
.
Add
(
this
.
label5
);
this
.
Controls
.
Add
(
this
.
label5
);
this
.
Controls
.
Add
(
this
.
txtInOutPosition
);
this
.
Controls
.
Add
(
this
.
txtInOutPosition
);
...
...
source/ACSingleStore/FrmStoreBox.Designer.cs
查看文件 @
c7a1d12
此文件的差异被折叠,
点击展开。
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
c7a1d12
...
@@ -1026,56 +1026,56 @@ namespace OnlineStore.ACSingleStore
...
@@ -1026,56 +1026,56 @@ namespace OnlineStore.ACSingleStore
public
List
<
WaitResultInfo
>
waitResultList
=
new
List
<
WaitResultInfo
>();
public
List
<
WaitResultInfo
>
waitResultList
=
new
List
<
WaitResultInfo
>();
private
void
btnStart_Click
(
object
sender
,
EventArgs
e
)
//
private void btnStart_Click(object sender, EventArgs e)
{
//
{
waitResultList
=
new
List
<
WaitResultInfo
>();
//
waitResultList = new List<WaitResultInfo>();
string
deviceName
=
""
;
//
string deviceName = "";
short
slvAddr
=
0
;
//
short slvAddr = 0;
int
position
=
0
;
//
int position=0;
if
(
chb1
.
Checked
)
//
if (chb1.Checked)
{
//
{
position
=
FormUtil
.
GetIntValue
(
txtPosition1
);
//
position=FormUtil.GetIntValue(txtPosition1);
deviceName
=
store
.
Config
.
Middle_Axis
.
DeviceName
;
//
deviceName = store.Config.Middle_Axis.DeviceName;
slvAddr
=
store
.
Config
.
Middle_Axis
.
GetAxisValue
();
//
slvAddr = store.Config.Middle_Axis.GetAxisValue();
if
(
ACServerManager
.
ServerOnStatus
(
deviceName
,
slvAddr
))
//
if (ACServerManager.ServerOnStatus(deviceName, slvAddr))
{
//
{
ACServerManager
.
AbsMove
(
deviceName
,
slvAddr
,
position
);
//
ACServerManager.AbsMove(deviceName, slvAddr, position);
waitResultList
.
Add
(
WaitResultInfo
.
WaitAxis
(
store
.
Config
.
Middle_Axis
,
position
,
store
.
Config
.
Middle_Axis
.
TargetSpeed
));
//
waitResultList.Add(WaitResultInfo.WaitAxis(store.Config.Middle_Axis,position,store.Config.Middle_Axis.TargetSpeed));
}
//
}
}
//
}
if
(
chb2
.
Checked
)
//
if (chb2.Checked)
{
//
{
position
=
FormUtil
.
GetIntValue
(
txtPosition2
);
//
position = FormUtil.GetIntValue(txtPosition2);
deviceName
=
store
.
Config
.
UpDown_Axis
.
DeviceName
;
//
deviceName = store.Config.UpDown_Axis.DeviceName;
slvAddr
=
store
.
Config
.
UpDown_Axis
.
GetAxisValue
();
//
slvAddr = store.Config.UpDown_Axis.GetAxisValue();
if
(
ACServerManager
.
ServerOnStatus
(
deviceName
,
slvAddr
))
//
if (ACServerManager.ServerOnStatus(deviceName, slvAddr))
{
//
{
ACServerManager
.
AbsMove
(
deviceName
,
slvAddr
,
position
);
//
ACServerManager.AbsMove(deviceName, slvAddr, position);
waitResultList
.
Add
(
WaitResultInfo
.
WaitAxis
(
store
.
Config
.
UpDown_Axis
,
position
,
store
.
Config
.
UpDown_Axis
.
TargetSpeed
));
//
waitResultList.Add(WaitResultInfo.WaitAxis(store.Config.UpDown_Axis, position, store.Config.UpDown_Axis.TargetSpeed));
}
//
}
}
//
}
if
(
chb3
.
Checked
)
//
if (chb3.Checked)
{
//
{
position
=
FormUtil
.
GetIntValue
(
txtPosition3
);
//
position = FormUtil.GetIntValue(txtPosition3);
deviceName
=
store
.
Config
.
InOut_Axis
.
DeviceName
;
//
deviceName = store.Config.InOut_Axis.DeviceName;
slvAddr
=
store
.
Config
.
InOut_Axis
.
GetAxisValue
();
//
slvAddr = store.Config.InOut_Axis.GetAxisValue();
if
(
ACServerManager
.
ServerOnStatus
(
deviceName
,
slvAddr
))
//
if (ACServerManager.ServerOnStatus(deviceName, slvAddr))
{
//
{
ACServerManager
.
AbsMove
(
deviceName
,
slvAddr
,
position
);
//
ACServerManager.AbsMove(deviceName, slvAddr, position);
waitResultList
.
Add
(
WaitResultInfo
.
WaitAxis
(
store
.
Config
.
UpDown_Axis
,
position
,
store
.
Config
.
UpDown_Axis
.
TargetSpeed
));
//
waitResultList.Add(WaitResultInfo.WaitAxis(store.Config.UpDown_Axis, position, store.Config.UpDown_Axis.TargetSpeed));
}
//
}
}
//
}
if
(
waitResultList
.
Count
>
0
)
//
if (waitResultList.Count > 0)
{
//
{
LOGGER
.
Info
(
"运动开始"
);
//
LOGGER.Info("运动开始");
// MessageBox.Show("运动开始!");
//
// MessageBox.Show("运动开始!");
}
//
}
else
//
else
{
//
{
MessageBox
.
Show
(
"未选择运动轴或伺服未打开"
);
//
MessageBox.Show("未选择运动轴或伺服未打开");
}
//
}
}
//
}
private
int
GetSlaveAddr
()
private
int
GetSlaveAddr
()
{
{
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
c7a1d12
...
@@ -268,7 +268,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -268,7 +268,7 @@ namespace OnlineStore.DeviceLibrary
{
{
InStoreLog
(
"入库:SI_01 定位气缸下降"
);
InStoreLog
(
"入库:SI_01 定位气缸下降"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_01_LocationCylinderDown
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_01_LocationCylinderDown
);
Location
Up
AndWait
();
Location
Down
AndWait
();
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论