Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-ACPackingStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 22533e32
由
LN
编写于
2020-02-14 08:57:34 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
扫码按钮修改
1 个父辈
3f22a0a2
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
61 行增加
和
18 行删除
source/ACPackingStore/FrmBox.Designer.cs
source/ACPackingStore/FrmBox.cs
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Shelf.cs
source/DeviceLibrary/agvClient/AgvClient.cs
source/DeviceLibrary/store/InOutParam.cs
source/ACPackingStore/FrmBox.Designer.cs
查看文件 @
22533e3
此文件的差异被折叠,
点击展开。
source/ACPackingStore/FrmBox.cs
查看文件 @
22533e3
...
...
@@ -153,7 +153,16 @@ namespace OnlineStore.ACPackingStore
lblTemp
.
Text
=
BoxBean
.
humBean
.
currTempStr
;
lblWarnMsg
.
Text
=
BoxBean
.
GetWarnMsg
();
lblMoveInfo
.
Text
=
BoxBean
.
GetMoveStr
();
lblMoveEquipInfo
.
Text
=
"当前出入库信息:"
if
(
BoxBean
.
MoveInfo
.
MoveType
.
Equals
(
StoreMoveType
.
OutStore
)
||
BoxBean
.
MoveInfo
.
MoveType
.
Equals
(
StoreMoveType
.
InStore
))
{
lblMoveEquipInfo
.
Text
=
"入库:"
+
BoxBean
.
MoveInfo
.
MoveParam
.
ToShortStr
();
}
else
{
lblMoveEquipInfo
.
Text
=
""
;
// lblMoveEquipInfo.Text = "";
}
//ReadPosistion();
if
(
BoxBean
.
storeRunStatus
>
StoreRunStatus
.
Wait
)
{
...
...
@@ -793,7 +802,9 @@ namespace OnlineStore.ACPackingStore
private
void
btnScanTest_Click
(
object
sender
,
EventArgs
e
)
{
List
<
string
>
codes
=
CodeManager
.
CameraScan
(
BoxBean
.
Config
.
GetCameraList
());
BoxBean
.
IOMove
(
IO_Type
.
Camera_Led
,
IO_VALUE
.
HIGH
);
List
<
string
>
codes
=
CodeManager
.
CameraScan
(
BoxBean
.
Config
.
GetCameraList
());
BoxBean
.
IOMove
(
IO_Type
.
Camera_Led
,
IO_VALUE
.
LOW
);
string
result
=
""
;
if
(
codes
.
Count
>
0
)
{
...
...
@@ -804,6 +815,11 @@ namespace OnlineStore.ACPackingStore
MessageBox
.
Show
(
"扫到二维码:"
+
result
);
LogUtil
.
info
(
"扫到二维码:"
+
result
);
}
else
{
MessageBox
.
Show
(
"未扫到二维码"
);
}
}
private
void
cmbShelfPosition_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
...
...
@@ -1005,5 +1021,40 @@ namespace OnlineStore.ACPackingStore
}
}
}
private
void
btnUpdownP101_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtUpdownP101
);
AxisABSMove
(
BoxBean
.
Config
.
UpDown_Axis
,
value
,
BoxBean
.
Config
.
UpDownAxis_P101_Speed
);
}
}
private
void
btnUpdownP102_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtUpdownP102
);
AxisABSMove
(
BoxBean
.
Config
.
UpDown_Axis
,
value
,
BoxBean
.
Config
.
UpDownAxis_P102_Speed
);
}
}
private
void
button5_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtMP101
);
AxisABSMove
(
BoxBean
.
Config
.
Middle_Axis
,
value
,
BoxBean
.
Config
.
MiddleAxis_P101_Speed
);
}
}
private
void
btnInoutP101_Click
(
object
sender
,
EventArgs
e
)
{
int
value
=
FormUtil
.
GetIntValue
(
txtInoutP101
);
AxisABSMove
(
BoxBean
.
Config
.
InOut_Axis
,
value
,
BoxBean
.
Config
.
InOutAxis_P101_Speed
);
}
}
}
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Shelf.cs
查看文件 @
22533e3
...
...
@@ -298,6 +298,8 @@ namespace OnlineStore.DeviceLibrary
// return usable;
//}
//else
//Arrive收到后打开门
if
(
action
.
Equals
(
ClientAction
.
Arrive
))
{
//出库处理中不处理
...
...
source/DeviceLibrary/agvClient/AgvClient.cs
查看文件 @
22533e3
...
...
@@ -46,13 +46,7 @@ namespace OnlineStore.DeviceLibrary
{
LogUtil
.
error
(
"初始化agvClient "
+
ServerIp
+
" 出错:"
+
ex
.
ToString
());
}
}
//private static void AgvClient_GetRFID(string name, byte[] content)
//{
// RFIDData data = new RFIDData(content);
// LogUtil.info("收到 AgvClient_GetRFID [" + name + "] [" + data.ToData() + "] ");
//}
}
public
static
void
SetStatus
(
string
id
,
string
mark
=
""
,
string
shelfId
=
""
,
ClientAction
action
=
ClientAction
.
None
,
ClientLevel
level
=
ClientLevel
.
Low
)
{
ClientAction
currA
=
GetAction
(
id
);
...
...
@@ -72,15 +66,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
"收到 AgvClient_Ready ["
+
id
+
"] ["
+
data
.
ToData
()
+
"] "
);
StoreManager
.
Store
.
AGVProcess
(
id
,
ClientAction
.
Ready
);
}
//private static void AgvClient_CanEnter(string id, byte[] content)
//{
// UpdateAction(id, ClientAction.CanEnter);
// RFIDData data = new RFIDData(content);
// LogUtil.info("收到 AgvClient_Ready [" + id + "] [" + data.ToData() + "] ");
// StoreManager.Store.AGVProcess(id, ClientAction.CanEnter);
//}
private
static
void
AgvClient_Arrive
(
string
id
,
byte
[]
content
)
{
...
...
source/DeviceLibrary/store/InOutParam.cs
查看文件 @
22533e3
...
...
@@ -144,6 +144,10 @@ namespace OnlineStore.DeviceLibrary
"NeedEnterShelf【"
+
NeedEnterShelf
+
"】NeedOutShelf【"
+
NeedOutShelf
+
"】"
+
"urgentReel ["
+
urgentReel
+
"],cutReel ["
+
cutReel
+
"],smallReel ["
+
smallReel
+
"],rfid ["
+
rfid
+
"],rfidLoc ["
+
rfidLoc
+
"]"
;
}
public
string
ToShortStr
()
{
return
" ["
+
ShelfPosID
+
"] ["
+
PosID
+
"] ["
+
WareCode
+
"], ["
+
PlateW
+
"x"
+
PlateH
+
"]"
;
}
internal
void
UpdateShelfPosId
(
string
pId
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论