Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO775-DUOStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 419a02c5
由
刘韬
编写于
2020-11-18 16:41:35 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
去除未使用IO及汇川轴不需要的伺服IO
1 个父辈
1c43d39d
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
9 行增加
和
35 行删除
source/DUOStore/positionTool/FrmPositionTool.cs
source/DeviceLibrary/duoStore/BoxBean.cs
source/DeviceLibrary/duoStore/DUOStoreBean.cs
source/DeviceLibrary/store/KTK_Store.cs
source/LoadCVSLibrary/storeConfig/config/IO_Type.cs
source/DUOStore/positionTool/FrmPositionTool.cs
查看文件 @
419a02c
...
@@ -24,7 +24,6 @@ namespace OnlineStore.DUOStore
...
@@ -24,7 +24,6 @@ namespace OnlineStore.DUOStore
private
short
SlvAddr
=
0
;
private
short
SlvAddr
=
0
;
private
string
IoIp
=
""
;
private
string
IoIp
=
""
;
private
int
IoIndex
=
0
;
private
int
IoIndex
=
0
;
public
string
Axis_Brake
=
IO_Type
.
UpdownAxis_Break
;
private
int
subType
=
0
;
private
int
subType
=
0
;
private
System
.
Timers
.
Timer
toolTimer
=
new
System
.
Timers
.
Timer
();
private
System
.
Timers
.
Timer
toolTimer
=
new
System
.
Timers
.
Timer
();
public
int
ptpAcc
=
0
;
public
int
ptpAcc
=
0
;
...
@@ -123,14 +122,6 @@ namespace OnlineStore.DUOStore
...
@@ -123,14 +122,6 @@ namespace OnlineStore.DUOStore
Thread
.
Sleep
(
100
);
Thread
.
Sleep
(
100
);
AxisManager
.
instance
.
AlarmClear
(
PortName
,
SlvAddr
);
AxisManager
.
instance
.
AlarmClear
(
PortName
,
SlvAddr
);
AxisManager
.
instance
.
ServoOn
(
PortName
,
SlvAddr
);
AxisManager
.
instance
.
ServoOn
(
PortName
,
SlvAddr
);
try
{
IOManager
.
IOMove
(
Axis_Brake
,
IO_VALUE
.
HIGH
,
subType
);
}
catch
(
Exception
ex
)
{
}
}
}
...
@@ -140,14 +131,6 @@ namespace OnlineStore.DUOStore
...
@@ -140,14 +131,6 @@ namespace OnlineStore.DUOStore
// toolTimer.Stop();
// toolTimer.Stop();
AxisManager
.
instance
.
SuddenStop
(
PortName
,
SlvAddr
);
AxisManager
.
instance
.
SuddenStop
(
PortName
,
SlvAddr
);
Thread
.
Sleep
(
100
);
Thread
.
Sleep
(
100
);
try
{
IOManager
.
IOMove
(
Axis_Brake
,
IO_VALUE
.
LOW
,
subType
);
}
catch
(
Exception
ex
)
{
}
AxisManager
.
instance
.
ServoOff
(
PortName
,
SlvAddr
);
AxisManager
.
instance
.
ServoOff
(
PortName
,
SlvAddr
);
formStatus
(
false
);
formStatus
(
false
);
}
}
...
...
source/DeviceLibrary/duoStore/BoxBean.cs
查看文件 @
419a02c
...
@@ -90,7 +90,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -90,7 +90,7 @@ namespace OnlineStore.DeviceLibrary
}
}
internal
void
MoveAxisConfig
()
internal
void
MoveAxisConfig
()
{
{
Config
.
UpDown_Axis
.
BreakOnDO
=
IO_Type
.
UpdownAxis_Break
;
//
Config.UpDown_Axis.BreakOnDO = IO_Type.UpdownAxis_Break;
moveAxisList
=
new
List
<
ConfigMoveAxis
>();
moveAxisList
=
new
List
<
ConfigMoveAxis
>();
moveAxisList
.
Add
(
Config
.
Middle_Axis
);
moveAxisList
.
Add
(
Config
.
Middle_Axis
);
moveAxisList
.
Add
(
Config
.
UpDown_Axis
);
moveAxisList
.
Add
(
Config
.
UpDown_Axis
);
...
@@ -366,7 +366,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -366,7 +366,7 @@ namespace OnlineStore.DeviceLibrary
public
override
void
StopMove
()
public
override
void
StopMove
()
{
{
MoveInfo
.
EndMove
();
MoveInfo
.
EndMove
();
IOMove
(
IO_Type
.
UpdownAxis_Break
,
IO_VALUE
.
LOW
);
//
IOMove(IO_Type.UpdownAxis_Break, IO_VALUE.LOW);
//运动版停止
//运动版停止
MiddleAxis
.
SuddenStop
();
MiddleAxis
.
SuddenStop
();
UpdownAxis
.
SuddenStop
();
UpdownAxis
.
SuddenStop
();
...
@@ -379,12 +379,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -379,12 +379,12 @@ namespace OnlineStore.DeviceLibrary
public
bool
OpenAllAxis
(
bool
isCheck
)
public
bool
OpenAllAxis
(
bool
isCheck
)
{
{
return
RunMultiAxis
(
true
,
IO_Type
.
Axis_Run
,
IO_Type
.
UpdownAxis_Break
,
new
AxisBean
[]
{
MiddleAxis
,
UpdownAxis
,
InoutAxis
,
ComAxis
});
return
RunMultiAxis
(
true
,
new
AxisBean
[]
{
MiddleAxis
,
UpdownAxis
,
InoutAxis
,
ComAxis
});
}
}
public
void
CloseAllAxis
()
public
void
CloseAllAxis
()
{
{
LogUtil
.
info
(
Name
+
"关闭刹车,关闭伺服"
);
LogUtil
.
info
(
Name
+
"关闭刹车,关闭伺服"
);
CloseMultiAxis
(
IO_Type
.
Axis_Run
,
IO_Type
.
UpdownAxis_Break
,
new
AxisBean
[]
{
MiddleAxis
,
UpdownAxis
,
InoutAxis
,
ComAxis
});
CloseMultiAxis
(
new
AxisBean
[]
{
MiddleAxis
,
UpdownAxis
,
InoutAxis
,
ComAxis
});
}
}
...
...
source/DeviceLibrary/duoStore/DUOStoreBean.cs
查看文件 @
419a02c
...
@@ -63,8 +63,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -63,8 +63,7 @@ namespace OnlineStore.DeviceLibrary
BoxMap
.
Add
(
config
.
Id
,
equip
);
BoxMap
.
Add
(
config
.
Id
,
equip
);
BoxConfigMap
.
Add
(
config
.
Id
,
config
);
BoxConfigMap
.
Add
(
config
.
Id
,
config
);
}
}
Config
.
T3_Updown_Axis
.
BreakOnDO
=
IO_Type
.
MoveAxis_Break
;
//Config.T1_Batch_Axis.BreakOnDO = IO_Type.BatchAxis_Break;
Config
.
T1_Batch_Axis
.
BreakOnDO
=
IO_Type
.
BatchAxis_Break
;
T1_BatchAxis
=
new
AxisBean
(
Config
.
T1_Batch_Axis
,
Name
);
T1_BatchAxis
=
new
AxisBean
(
Config
.
T1_Batch_Axis
,
Name
);
T2_MiddleAxis
=
new
AxisBean
(
Config
.
T2_Middle_Axis
,
Name
);
T2_MiddleAxis
=
new
AxisBean
(
Config
.
T2_Middle_Axis
,
Name
);
T3_UpdownAxis
=
new
AxisBean
(
Config
.
T3_Updown_Axis
,
Name
);
T3_UpdownAxis
=
new
AxisBean
(
Config
.
T3_Updown_Axis
,
Name
);
...
@@ -654,7 +653,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -654,7 +653,7 @@ namespace OnlineStore.DeviceLibrary
public
bool
OpenAllAxis
(
bool
isCheck
=
true
)
public
bool
OpenAllAxis
(
bool
isCheck
=
true
)
{
{
if
(
RunMultiAxis
(
isCheck
,
IO_Type
.
MoveAxis_Run
,
IO_Type
.
MoveAxis_Break
,
new
AxisBean
[]{
T3_UpdownAxis
,
T2_MiddleAxis
}))
if
(
RunMultiAxis
(
isCheck
,
new
AxisBean
[]{
T3_UpdownAxis
,
T2_MiddleAxis
}))
{
{
if
(
RunAxis
(
isCheck
,
T1_BatchAxis
)
)
if
(
RunAxis
(
isCheck
,
T1_BatchAxis
)
)
{
{
...
@@ -666,10 +665,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -666,10 +665,7 @@ namespace OnlineStore.DeviceLibrary
public
void
CloseAllAxis
()
public
void
CloseAllAxis
()
{
{
IOMove
(
IO_Type
.
MoveAxis_Break
,
IO_VALUE
.
LOW
);
CloseMultiAxis
(
new
AxisBean
[]
{
T3_UpdownAxis
,
T2_MiddleAxis
});
IOMove
(
IO_Type
.
BatchAxis_Break
,
IO_VALUE
.
LOW
);
CloseMultiAxis
(
IO_Type
.
MoveAxis_Run
,
IO_Type
.
MoveAxis_Break
,
new
AxisBean
[]
{
T3_UpdownAxis
,
T2_MiddleAxis
});
CloseAxis
(
T1_BatchAxis
);
CloseAxis
(
T1_BatchAxis
);
}
}
}
}
...
...
source/DeviceLibrary/store/KTK_Store.cs
查看文件 @
419a02c
...
@@ -459,7 +459,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -459,7 +459,6 @@ namespace OnlineStore.DeviceLibrary
public
bool
RunMultiAxis
(
bool
isCheck
,
params
AxisBean
[]
axisArray
)
public
bool
RunMultiAxis
(
bool
isCheck
,
params
AxisBean
[]
axisArray
)
{
{
IOManager
.
IOMove
(
serverOnDO
,
IO_VALUE
.
HIGH
,
baseConfig
.
Id
);
string
msg
=
""
;
string
msg
=
""
;
foreach
(
AxisBean
axis
in
axisArray
)
foreach
(
AxisBean
axis
in
axisArray
)
{
{
...
@@ -485,19 +484,15 @@ namespace OnlineStore.DeviceLibrary
...
@@ -485,19 +484,15 @@ namespace OnlineStore.DeviceLibrary
// }
// }
// }
// }
//}
//}
IOManager
.
IOMove
(
breakOnDO
,
IO_VALUE
.
HIGH
,
baseConfig
.
Id
);
return
true
;
return
true
;
}
}
public
void
CloseMultiAxis
(
string
serverOnDO
,
string
breakOnDO
,
params
AxisBean
[]
axisArray
)
public
void
CloseMultiAxis
(
params
AxisBean
[]
axisArray
)
{
{
IOManager
.
IOMove
(
breakOnDO
,
IO_VALUE
.
LOW
,
baseConfig
.
Id
);
foreach
(
AxisBean
axis
in
axisArray
)
foreach
(
AxisBean
axis
in
axisArray
)
{
{
axis
.
ServoOff
();
axis
.
ServoOff
();
}
}
Thread
.
Sleep
(
100
);
IOManager
.
IOMove
(
serverOnDO
,
IO_VALUE
.
LOW
,
baseConfig
.
Id
);
}
}
public
bool
RunAxis
(
bool
isCheck
,
AxisBean
axis
)
public
bool
RunAxis
(
bool
isCheck
,
AxisBean
axis
)
...
...
source/LoadCVSLibrary/storeConfig/config/IO_Type.cs
查看文件 @
419a02c
...
@@ -184,7 +184,7 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -184,7 +184,7 @@ namespace OnlineStore.LoadCSVLibrary
/// <summary>
/// <summary>
/// DO,0,取料机构伺服ON,MoveAxis_Run,1,PRO_AOI_IP_2,Y22,
/// DO,0,取料机构伺服ON,MoveAxis_Run,1,PRO_AOI_IP_2,Y22,
/// </summary>
/// </summary>
public
static
string
MoveAxis_Run
=
"MoveAxis_Run"
;
//
public static string MoveAxis_Run = "MoveAxis_Run";
/// <summary>
/// <summary>
/// DO,0,线体皮带正转,Line_Run,2,PRO_AOI_IP_2,Y23,
/// DO,0,线体皮带正转,Line_Run,2,PRO_AOI_IP_2,Y23,
/// </summary>
/// </summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论