Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit bbfcdee8
由
LN
编写于
2020-03-09 12:54:59 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
启动停止优化
1 个父辈
2b76268b
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
55 行增加
和
34 行删除
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
source/DeviceLibrary/assemblyLine/LineBean.cs
source/DeviceLibrary/assemblyLine/MoveEquip.cs
source/DeviceLibrary/assemblyLine/ProvidingEquip.cs
source/DeviceLibrary/deviceLibrary/RFID/RFIDAutoReader.cs
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
查看文件 @
bbfcdee
...
...
@@ -294,18 +294,18 @@ namespace OnlineStore.DeviceLibrary
CloseAxis
(
UpdownAxis
);
if
(
Config
.
SidesWayNum
<=
0
)
{
IO
Move
(
IO_Type
.
FL_StopCylinder_Down1
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
FL_StopCylinder_Down2
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
FL_TopCylinder_Down
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
FL_TopCylinder_Up
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
FL_StopCylinder_Down1
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
FL_StopCylinder_Down2
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
FL_TopCylinder_Down
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
FL_TopCylinder_Up
,
IO_VALUE
.
LOW
);
}
IO
Move
(
IO_Type
.
SL_Line_Run
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
SL_LocationSideWay_Run
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
SL_OutLine_Run
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
SL_Line_Run
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
SL_LocationSideWay_Run
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
SL_OutLine_Run
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
SL_Entry_StopDown
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
SL_Buffer_StopDown
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
SL_Out_StopDown
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
SL_Entry_StopDown
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
SL_Buffer_StopDown
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
SL_Out_StopDown
,
IO_VALUE
.
LOW
);
}
/// <summary>
...
...
source/DeviceLibrary/assemblyLine/LineBean.cs
查看文件 @
bbfcdee
...
...
@@ -423,7 +423,27 @@ namespace OnlineStore.DeviceLibrary
mainTimer
.
Enabled
=
false
;
AgvClient
.
SetCancelState
(
true
);
//停止运行时,把阻挡气缸上升
StopMove
();
//StopMove();
foreach
(
EquipBase
equip
in
this
.
AllEquipMap
.
Values
)
{
if
(!
equip
.
IsDebug
)
{
equip
.
StopRun
();
}
else
{
equip
.
CloseCylinderStop
();
}
}
MoveInfo
.
EndMove
();
WriteDrivetMotorRun
(
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SW4_MotorRun
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SW4_TopCylinder_Down
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SW4_TopCylinder_Up
,
IO_VALUE
.
LOW
);
SideWayStop
();
runStatus
=
LineRunStatus
.
Wait
;
ledProcessTimer
.
Enabled
=
false
;
...
...
@@ -815,14 +835,14 @@ namespace OnlineStore.DeviceLibrary
}
#
endregion
internal
override
void
StopMove
()
internal
override
void
StopMove
(
)
{
foreach
(
EquipBase
equip
in
this
.
AllEquipMap
.
Values
)
{
if
(!
equip
.
IsDebug
)
{
equip
.
Stop
Run
();
equip
.
Stop
Move
();
}
else
{
...
...
source/DeviceLibrary/assemblyLine/MoveEquip.cs
查看文件 @
bbfcdee
...
...
@@ -199,19 +199,19 @@ namespace OnlineStore.DeviceLibrary
}
StopMove
();
//停止运行时,把所有IO 置零
IO
Move
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
TopCylinder_UP
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
TopCylinder_Down
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
BeforeAfterCylinder_Before
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
BeforeAfterCylinder_After
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
TopCylinder_UP
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
TopCylinder_Down
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
BeforeAfterCylinder_Before
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
BeforeAfterCylinder_After
,
IO_VALUE
.
LOW
);
if
(
UseAxis
.
Equals
(
false
))
{
IO
Move
(
IO_Type
.
UpDownCylinder_Up
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
UpDownCylinder_Down
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
UpDownCylinder_Up
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
UpDownCylinder_Down
,
IO_VALUE
.
LOW
);
}
IO
Move
(
IO_Type
.
ClampCylinder_Slack
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
ClampCylinder_Tighten
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
ClampCylinder_Slack
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
ClampCylinder_Tighten
,
IO_VALUE
.
LOW
);
runStatus
=
LineRunStatus
.
Wait
;
}
...
...
source/DeviceLibrary/assemblyLine/ProvidingEquip.cs
查看文件 @
bbfcdee
...
...
@@ -179,19 +179,19 @@ namespace OnlineStore.DeviceLibrary
StopMove
();
CloseAxis
(
UpdownAxis
);
//停止运行时,把所有IO 置零
IO
Move
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
TopCylinder_UP
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
TopCylinder_Down
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
BeforeAfterCylinder_Before
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
BeforeAfterCylinder_After
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
StopCylinder_Down1
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
StopCylinder_Down2
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
TopCylinder_UP
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
TopCylinder_Down
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
BeforeAfterCylinder_Before
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
BeforeAfterCylinder_After
,
IO_VALUE
.
LOW
);
if
(
UseAxis
.
Equals
(
false
))
{
IO
Move
(
IO_Type
.
UpDownCylinder_Up
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
UpDownCylinder_Down
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
UpDownCylinder_Up
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
UpDownCylinder_Down
,
IO_VALUE
.
LOW
);
}
IO
Move
(
IO_Type
.
ClampCylinder_Slack
,
IO_VALUE
.
LOW
);
IO
Move
(
IO_Type
.
ClampCylinder_Tighten
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
ClampCylinder_Slack
,
IO_VALUE
.
LOW
);
CheckAnd
Move
(
IO_Type
.
ClampCylinder_Tighten
,
IO_VALUE
.
LOW
);
runStatus
=
LineRunStatus
.
Wait
;
}
...
...
source/DeviceLibrary/deviceLibrary/RFID/RFIDAutoReader.cs
查看文件 @
bbfcdee
...
...
@@ -86,10 +86,11 @@ namespace Asa.RFID
/// </summary>
public
static
void
CloseAll
()
{
foreach
(
var
rfid
in
rfidMap
.
Values
)
foreach
(
var
rfid
in
rfidMap
.
Values
)
{
rfid
.
StopAutoScan
();
}
rfidMap
=
new
Dictionary
<
string
,
RFIDAuto
>();
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论