Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC30-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e1ba4c05
由
几米阳光
编写于
2019-06-03 16:55:52 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加DI28信号,作为门口料盘检测信号
1 个父辈
7865aff4
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
61 行增加
和
16 行删除
source/ACSingleStore/FrmStoreBox.cs
source/ACSingleStore/Properties/Resource.en-US.resx
source/ACSingleStore/Properties/Resource.zh-CN.resx
source/DeviceLibrary/DeviceLibrary/IO/AIOBOX/BLL2.cs
source/DeviceLibrary/StoreConfig/AC/StoreConfig.csv
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
source/DeviceLibrary/acSingleStore/AutomaticBaiting_Partial.cs
source/LoadCVSLibrary/storeConfig/config/Store_IO_Type.cs
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
e1ba4c0
...
@@ -1511,10 +1511,14 @@ namespace OnlineStore.AutoInOutStore
...
@@ -1511,10 +1511,14 @@ namespace OnlineStore.AutoInOutStore
private
void
btnWaitTrgGo_Click
(
object
sender
,
EventArgs
e
)
private
void
btnWaitTrgGo_Click
(
object
sender
,
EventArgs
e
)
{
{
DialogResult
result
=
MessageBox
.
Show
(
ResourceControl
.
GetString
(
ResourceControl
.
TakeTrayOut
,
"已确认料盘已手动拿出"
),
ResourceCulture
.
GetString
(
ResourceCulture
.
MsgTitle
,
"提示"
),
MessageBoxButtons
.
YesNo
,
MessageBoxIcon
.
Question
);
DialogResult
result
=
MessageBox
.
Show
(
ResourceControl
.
GetString
(
ResourceControl
.
TakeTrayOut
,
"已确认料盘已手动拿出"
),
ResourceCulture
.
GetString
(
ResourceCulture
.
MsgTitle
,
"提示"
),
MessageBoxButtons
.
YesNo
,
MessageBoxIcon
.
Question
);
if
(
result
.
Equals
(
DialogResult
.
Yes
))
if
(
result
.
Equals
(
DialogResult
.
Yes
))
{
{
AutomaticBaiting
.
doConfirmReelGo
();
string
r
=
AutomaticBaiting
.
doConfirmReelGo
();
if
(!
String
.
IsNullOrEmpty
(
r
))
{
MessageBox
.
Show
(
r
,
ResourceCulture
.
GetString
(
ResourceCulture
.
MsgTitle
,
"提示"
));
}
}
}
}
}
...
...
source/ACSingleStore/Properties/Resource.en-US.resx
查看文件 @
e1ba4c0
...
@@ -731,7 +731,7 @@
...
@@ -731,7 +731,7 @@
<value>Door lock Error: Close feeding device</value>
<value>Door lock Error: Close feeding device</value>
</data>
</data>
<data name="TakeTrayOut" xml:space="preserve">
<data name="TakeTrayOut" xml:space="preserve">
<value>
Take out reel manually
</value>
<value>
Close the doors
</value>
</data>
</data>
<data name="NoAIr" xml:space="preserve">
<data name="NoAIr" xml:space="preserve">
<value>Pressure signal undetected</value>
<value>Pressure signal undetected</value>
...
...
source/ACSingleStore/Properties/Resource.zh-CN.resx
查看文件 @
e1ba4c0
...
@@ -727,7 +727,7 @@
...
@@ -727,7 +727,7 @@
<value>锁门失败:请先关闭上料机构</value>
<value>锁门失败:请先关闭上料机构</value>
</data>
</data>
<data name="TakeTrayOut" xml:space="preserve">
<data name="TakeTrayOut" xml:space="preserve">
<value>
已确认料盘已手动拿出
</value>
<value>
关闭仓门
</value>
</data>
</data>
<data name="NoAIr" xml:space="preserve">
<data name="NoAIr" xml:space="preserve">
<value>未检测到气压信号</value>
<value>未检测到气压信号</value>
...
...
source/DeviceLibrary/DeviceLibrary/IO/AIOBOX/BLL2.cs
查看文件 @
e1ba4c0
...
@@ -603,12 +603,24 @@ namespace Asa.IOModule
...
@@ -603,12 +603,24 @@ namespace Asa.IOModule
{
{
if
(
_receive
.
TryDequeue
(
out
byte
[]
buff
))
if
(
_receive
.
TryDequeue
(
out
byte
[]
buff
))
{
{
if
(
buff
[
7
]
==
1
)
if
(
buff
.
Length
>=
8
)
ReadDO
(
buff
);
{
else
if
(
buff
[
7
]
==
2
)
if
(
buff
[
7
]
==
1
)
ReadDI
(
buff
);
ReadDO
(
buff
);
else
if
(
buff
[
7
]
==
5
)
else
if
(
buff
[
7
]
==
2
)
ReadSingle
(
buff
);
ReadDI
(
buff
);
else
if
(
buff
[
7
]
==
5
)
ReadSingle
(
buff
);
}
else
{
string
s
=
""
;
foreach
(
byte
b
in
buff
)
{
s
+=
b
+
" "
;
}
LogUtil
.
error
(
"AIOBOX2 Receive长度不足:"
+
s
);
}
}
}
}
catch
(
Exception
ex
)
}
catch
(
Exception
ex
)
{
{
...
...
source/DeviceLibrary/StoreConfig/AC/StoreConfig.csv
查看文件 @
e1ba4c0
...
@@ -38,7 +38,7 @@ DI,左侧门关闭,DoorColse_Single,3,192.168.200.12,0,左侧门关闭,X24,DI-24,0,
...
@@ -38,7 +38,7 @@ DI,左侧门关闭,DoorColse_Single,3,192.168.200.12,0,左侧门关闭,X24,DI-24,0,
DI,门锁气缸打开端2,BatchDoor_Open2,4,192.168.200.12,0,门锁气缸打开端2,X25,DI-25,0,
DI,门锁气缸打开端2,BatchDoor_Open2,4,192.168.200.12,0,门锁气缸打开端2,X25,DI-25,0,
DI,门锁气缸关闭端2,BatchDoor_Close2,5,192.168.200.12,0,门锁气缸关闭端2,X26,DI-26,0,
DI,门锁气缸关闭端2,BatchDoor_Close2,5,192.168.200.12,0,门锁气缸关闭端2,X26,DI-26,0,
DI,批量轴极限信号,BatchAxis_Limit,6,192.168.200.12,0,批量轴极限信号,X27,DI-27,0,
DI,批量轴极限信号,BatchAxis_Limit,6,192.168.200.12,0,批量轴极限信号,X27,DI-27,0,
,,,7,192.168.200.12,0,
,X28,DI-28,0,
DI,仓门料盘检测信号,TrayCheck_Door,7,192.168.200.12,0,仓门料盘检测信号
,X28,DI-28,0,
,,,16,192.168.200.12,0,,Y21,DO-21,0,
,,,16,192.168.200.12,0,,Y21,DO-21,0,
,,,17,192.168.200.12,0,,Y22,DO-22,0,
,,,17,192.168.200.12,0,,Y22,DO-22,0,
,,,18,192.168.200.12,0,,Y23,DO-23,0,
,,,18,192.168.200.12,0,,Y23,DO-23,0,
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
e1ba4c0
...
@@ -482,6 +482,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -482,6 +482,8 @@ namespace OnlineStore.DeviceLibrary
AutomaticBaiting
.
IsWaitTragGo
=
true
;
AutomaticBaiting
.
IsWaitTragGo
=
true
;
AutomaticBaiting
.
IsGetTrayGo
=
false
;
AutomaticBaiting
.
IsGetTrayGo
=
false
;
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTakeTray
());
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTakeTray
());
AutomaticBaiting
.
WaitIoValue
=
IO_VALUE
.
LOW
;
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
LOW
));
break
;
break
;
case
StoreMoveStep
.
BOX_R43_WaitTrayGo
:
case
StoreMoveStep
.
BOX_R43_WaitTrayGo
:
if
(
IOManager
.
IOValue
(
IO_Type
.
SafetyLightCurtains
).
Equals
(
IO_VALUE
.
HIGH
))
if
(
IOManager
.
IOValue
(
IO_Type
.
SafetyLightCurtains
).
Equals
(
IO_VALUE
.
HIGH
))
...
@@ -1838,7 +1840,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1838,7 +1840,7 @@ namespace OnlineStore.DeviceLibrary
else
if
(
dataMap
.
ContainsKey
(
ParamDefine
.
confirmReelOut
)
&&
dataMap
[
ParamDefine
.
confirmReelOut
].
Equals
(
ParamDefine
.
doit
))
else
if
(
dataMap
.
ContainsKey
(
ParamDefine
.
confirmReelOut
)
&&
dataMap
[
ParamDefine
.
confirmReelOut
].
Equals
(
ParamDefine
.
doit
))
{
{
LogUtil
.
info
(
StoreName
+
"收到服务器命令:confirmReelOut=doit"
);
LogUtil
.
info
(
StoreName
+
"收到服务器命令:confirmReelOut=doit"
);
AutomaticBaiting
.
doConfirmReelGo
();
result
=
AutomaticBaiting
.
doConfirmReelGo
();
}
else
if
(
dataMap
.
ContainsKey
(
ParamDefine
.
singleReelIn
)
&&
dataMap
[
ParamDefine
.
singleReelIn
].
Equals
(
ParamDefine
.
doit
))
}
else
if
(
dataMap
.
ContainsKey
(
ParamDefine
.
singleReelIn
)
&&
dataMap
[
ParamDefine
.
singleReelIn
].
Equals
(
ParamDefine
.
doit
))
{
{
LogUtil
.
info
(
StoreName
+
"收到服务器命令:SingleReelIn=doit"
);
LogUtil
.
info
(
StoreName
+
"收到服务器命令:SingleReelIn=doit"
);
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
e1ba4c0
...
@@ -596,7 +596,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -596,7 +596,8 @@ namespace OnlineStore.DeviceLibrary
AutomaticBaiting
.
IsGetTrayGo
=
false
;
AutomaticBaiting
.
IsGetTrayGo
=
false
;
AutomaticBaiting
.
IsWaitTragGo
=
true
;
AutomaticBaiting
.
IsWaitTragGo
=
true
;
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTakeTray
());
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTakeTray
());
AutomaticBaiting
.
WaitIoValue
=
IO_VALUE
.
LOW
;
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
LOW
));
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_25_WaitTrayGo
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_25_WaitTrayGo
)
{
{
...
@@ -640,6 +641,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -640,6 +641,8 @@ namespace OnlineStore.DeviceLibrary
AutomaticBaiting
.
IsGetTrayGo
=
false
;
AutomaticBaiting
.
IsGetTrayGo
=
false
;
AutomaticBaiting
.
IsWaitTragGo
=
true
;
AutomaticBaiting
.
IsWaitTragGo
=
true
;
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTakeTray
());
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTakeTray
());
AutomaticBaiting
.
WaitIoValue
=
IO_VALUE
.
HIGH
;
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
HIGH
));
}
}
else
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
SIS_33_WaitTray
))
else
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
SIS_33_WaitTray
))
{
{
...
@@ -988,6 +991,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -988,6 +991,9 @@ namespace OnlineStore.DeviceLibrary
AutomaticBaiting
.
IsWaitTragGo
=
true
;
AutomaticBaiting
.
IsWaitTragGo
=
true
;
AutomaticBaiting
.
IsGetTrayGo
=
false
;
AutomaticBaiting
.
IsGetTrayGo
=
false
;
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTakeTray
());
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTakeTray
());
//需要检测是否已拿走
AutomaticBaiting
.
WaitIoValue
=
IO_VALUE
.
LOW
;
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
LOW
));
}
}
else
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
SO_22_WaitTrayGo
))
else
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
SO_22_WaitTrayGo
))
{
{
...
...
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
查看文件 @
e1ba4c0
...
@@ -16,6 +16,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -16,6 +16,7 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
public
static
bool
IsGetTrayGo
=
false
;
public
static
bool
IsGetTrayGo
=
false
;
public
static
bool
IsWaitTragGo
=
false
;
public
static
bool
IsWaitTragGo
=
false
;
public
static
IO_VALUE
WaitIoValue
=
IO_VALUE
.
LOW
;
/// <summary>
/// <summary>
/// 0=未知。1=门打开,2=门关闭
/// 0=未知。1=门打开,2=门关闭
/// </summary>
/// </summary>
...
...
source/DeviceLibrary/acSingleStore/AutomaticBaiting_Partial.cs
查看文件 @
e1ba4c0
...
@@ -656,13 +656,26 @@ namespace OnlineStore.DeviceLibrary
...
@@ -656,13 +656,26 @@ namespace OnlineStore.DeviceLibrary
Reset
(
false
,
false
);
Reset
(
false
,
false
);
return
""
;
return
""
;
}
}
public
static
bool
doConfirmReelGo
()
public
static
string
doConfirmReelGo
()
{
{
LogUtil
.
info
(
ResourceControl
.
GetString
(
ResourceControl
.
TakeTrayOut
,
"Take out reel manually"
));
LogUtil
.
info
(
ResourceControl
.
GetString
(
ResourceControl
.
TakeTrayOut
,
"Take out reel manually"
));
//判断IO是否正确
if
(!
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
).
Equals
(
WaitIoValue
))
{
if
(
WaitIoValue
.
Equals
(
IO_VALUE
.
LOW
))
{
return
ResourceControl
.
GetString
(
ResourceControl
.
TakeTrayOut
,
"Take out reel manually"
)
+
" 失败,请先拿走料盘"
;
}
else
{
return
ResourceControl
.
GetString
(
ResourceControl
.
TakeTrayOut
,
"Take out reel manually"
)
+
" 失败,请先放入料盘"
;
}
}
IsWaitTragGo
=
false
;
IsWaitTragGo
=
false
;
IsGetTrayGo
=
true
;
IsGetTrayGo
=
true
;
return
true
;
return
""
;
}
}
public
static
string
doSingleReelIn
()
public
static
string
doSingleReelIn
()
...
...
source/LoadCVSLibrary/storeConfig/config/Store_IO_Type.cs
查看文件 @
e1ba4c0
...
@@ -205,5 +205,12 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -205,5 +205,12 @@ namespace OnlineStore.LoadCSVLibrary
/// DI 批量轴极限信号 BatchAxis_Limit
/// DI 批量轴极限信号 BatchAxis_Limit
/// </summary>
/// </summary>
public
static
string
BatchAxis_Limit
=
"BatchAxis_Limit"
;
public
static
string
BatchAxis_Limit
=
"BatchAxis_Limit"
;
/// <summary>
/// DI 仓门料盘检测信号 TrayCheck_Door
/// </summary>
public
static
string
TrayCheck_Door
=
"TrayCheck_Door"
;
}
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论