Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5400e627
由
LN
编写于
2021-12-31 09:10:06 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
IO断开时急停
1 个父辈
22a5f8c7
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
6 行删除
source/DeviceLibrary/LineConfig/Config_FeedingEquip_1.csv
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/deviceLibrary/IO/AIOBOX/AIOBOXManager.cs
source/DeviceLibrary/LineConfig/Config_FeedingEquip_1.csv
查看文件 @
5400e62
...
@@ -6,6 +6,7 @@ PRO,0,对应的横移模块,SidesWayNum,1,,,,,
...
@@ -6,6 +6,7 @@ PRO,0,对应的横移模块,SidesWayNum,1,,,,,
PRO,0,是否是用来出料,IsCanOut,0,,,,,
PRO,0,是否是用来出料,IsCanOut,0,,,,,
PRO,0,上料流水线入口AGV小车站号名称,AgvInName,C5,,,,,
PRO,0,上料流水线入口AGV小车站号名称,AgvInName,C5,,,,,
PRO,0,上料流水线出口AGV小车站号名称,AgvOutName,C6,,,,,
PRO,0,上料流水线出口AGV小车站号名称,AgvOutName,C6,,,,,
PRO,0,最后一盘料补充高度(mm),LastReel_AHeight,5,,,,,
,,,,,,,,,
,,,,,,,,,
AXIS,0,轴二提升上料轴,Batch_Axis,1,COM1,0,,,
AXIS,0,轴二提升上料轴,Batch_Axis,1,COM1,0,,,
PRO,0,提升上料轴上升待机点 P1,BatchAxisP1,6504500,,,,,
PRO,0,提升上料轴上升待机点 P1,BatchAxisP1,6504500,,,,,
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
5400e62
...
@@ -911,9 +911,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -911,9 +911,10 @@ namespace OnlineStore.DeviceLibrary
else
else
{
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_01_StopDownWait
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_01_StopDownWait
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
"
前阻挡检测消失后再等待300ms上升阻挡,最多等待5秒
"
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
"
再次等待前阻挡检测消失或托盘到达
"
);
//
SecondMoveInfo.OneWaitCanEndStep = true;
SecondMoveInfo
.
OneWaitCanEndStep
=
true
;
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Check1
,
IO_VALUE
.
LOW
));
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Check1
,
IO_VALUE
.
LOW
));
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
StopCylinder_Check2
,
IO_VALUE
.
HIGH
));
//SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(30000));
//SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(30000));
}
}
}
}
...
...
source/DeviceLibrary/deviceLibrary/IO/AIOBOX/AIOBOXManager.cs
查看文件 @
5400e62
...
@@ -386,7 +386,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -386,7 +386,7 @@ namespace OnlineStore.DeviceLibrary
try
try
{
{
AIOBOX
aioBox
=
getAIO
(
ioIp
);
AIOBOX
aioBox
=
getAIO
(
ioIp
);
if
(
aioBox
!=
null
)
if
(
aioBox
!=
null
&&
aioBox
.
IsConn
)
{
{
Box_Sta
[]
allDi
=
aioBox
.
ReadDI
(
0
,
LineManager
.
Config
.
GetDILength
(
ioIp
));
Box_Sta
[]
allDi
=
aioBox
.
ReadDI
(
0
,
LineManager
.
Config
.
GetDILength
(
ioIp
));
UpdateAllDI
(
ioIp
,
allDi
);
UpdateAllDI
(
ioIp
,
allDi
);
...
@@ -402,7 +402,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -402,7 +402,7 @@ namespace OnlineStore.DeviceLibrary
try
try
{
{
AIOBOX
aioBox
=
getAIO
(
ioIp
);
AIOBOX
aioBox
=
getAIO
(
ioIp
);
if
(
aioBox
!=
null
)
if
(
aioBox
!=
null
&&
aioBox
.
IsConn
)
{
{
// int startIndex = StoreManager.Config.GetDILength(ioIp);
// int startIndex = StoreManager.Config.GetDILength(ioIp);
Box_Sta
[]
allDO
=
aioBox
.
ReadDO
(
0
,
LineManager
.
Config
.
GetDOLength
(
ioIp
));
Box_Sta
[]
allDO
=
aioBox
.
ReadDO
(
0
,
LineManager
.
Config
.
GetDOLength
(
ioIp
));
...
@@ -416,7 +416,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -416,7 +416,11 @@ namespace OnlineStore.DeviceLibrary
}
}
public
override
IO_VALUE
GetDOValue
(
string
ioIP
,
byte
slaveId
,
ushort
StartAddress
)
public
override
IO_VALUE
GetDOValue
(
string
ioIP
,
byte
slaveId
,
ushort
StartAddress
)
{
{
IO_VALUE
value
=
IO_VALUE
.
None
;
IO_VALUE
value
=
IO_VALUE
.
LOW
;
if
(!
IsConnect
(
ioIP
))
{
return
value
;
}
try
try
{
{
AIOBOX
aioBox
=
getAIO
(
ioIP
);
AIOBOX
aioBox
=
getAIO
(
ioIP
);
...
@@ -448,7 +452,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -448,7 +452,11 @@ namespace OnlineStore.DeviceLibrary
public
override
IO_VALUE
GetDIValue
(
string
ioIP
,
byte
slaveId
,
ushort
StartAddress
)
public
override
IO_VALUE
GetDIValue
(
string
ioIP
,
byte
slaveId
,
ushort
StartAddress
)
{
{
IO_VALUE
value
=
IO_VALUE
.
None
;
IO_VALUE
value
=
IO_VALUE
.
LOW
;
if
(!
IsConnect
(
ioIP
))
{
return
value
;
}
for
(
int
i
=
1
;
i
<=
3
;
i
++)
for
(
int
i
=
1
;
i
<=
3
;
i
++)
{
{
try
try
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论