Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 75e3e848
由
LN
编写于
2020-12-14 13:19:10 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
配置修改
1 个父辈
4b5318c9
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
22 行增加
和
16 行删除
source/AssemblyLineClient/image/449412711.png
source/DeviceLibrary/LineConfig/Config_Line.csv
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/assemblyLine/LineBean_T3-C1.cs
source/DeviceLibrary/assemblymanager/RFIDManagercs.cs
source/DeviceLibrary/server/LineServer.cs
source/AssemblyLineClient/image/449412711.png
0 → 100644
查看文件 @
75e3e84
1.7 MB
source/DeviceLibrary/LineConfig/Config_Line.csv
查看文件 @
75e3e84
...
@@ -18,8 +18,8 @@ PRO,0,D5-1移栽9-托盘-RFID-IP,PRO_RFIP_009,192.168.210.113,,
...
@@ -18,8 +18,8 @@ PRO,0,D5-1移栽9-托盘-RFID-IP,PRO_RFIP_009,192.168.210.113,,
PRO,0,D5-2移栽10-托盘-RFID-IP,PRO_RFIP_010,192.168.210.114,,
PRO,0,D5-2移栽10-托盘-RFID-IP,PRO_RFIP_010,192.168.210.114,,
PRO,0,D6-1移栽11-托盘-RFID-IP,PRO_RFIP_011,192.168.210.108,,
PRO,0,D6-1移栽11-托盘-RFID-IP,PRO_RFIP_011,192.168.210.108,,
PRO,0,D6-2移栽12-托盘-RFID-IP,PRO_RFIP_012,192.168.210.109,,
PRO,0,D6-2移栽12-托盘-RFID-IP,PRO_RFIP_012,192.168.210.109,,
PRO,0,D7-
1移栽13-托盘-RFID-IP,PRO_RFIP_013,192.168.210.140
,,
PRO,0,D7-
2移栽13-托盘-RFID-IP,PRO_RFIP_013,192.168.210.141
,,
PRO,0,D7-
2移栽14-托盘-RFID-IP,PRO_RFIP_014,192.168.210.141
,,
PRO,0,D7-
1移栽14-托盘-RFID-IP,PRO_RFIP_014,192.168.210.140
,,
PRO,0,D8-2移栽15-托盘-RFID-IP,PRO_RFIP_015,192.168.210.134,,
PRO,0,D8-2移栽15-托盘-RFID-IP,PRO_RFIP_015,192.168.210.134,,
PRO,0,D8-1移栽16-托盘-RFID-IP,PRO_RFIP_016,192.168.210.133,,
PRO,0,D8-1移栽16-托盘-RFID-IP,PRO_RFIP_016,192.168.210.133,,
PRO,0,D9-2移栽17-托盘-RFID-IP,PRO_RFIP_017,192.168.210.125,,
PRO,0,D9-2移栽17-托盘-RFID-IP,PRO_RFIP_017,192.168.210.125,,
...
@@ -40,7 +40,7 @@ PRO,0,横移-HY6-托盘-RFID-IP,PRO_RFIP_206,192.168.210.137,,
...
@@ -40,7 +40,7 @@ PRO,0,横移-HY6-托盘-RFID-IP,PRO_RFIP_206,192.168.210.137,,
PRO,0,横移-HY8-托盘-RFID-IP,PRO_RFIP_208,192.168.210.123,,
PRO,0,横移-HY8-托盘-RFID-IP,PRO_RFIP_208,192.168.210.123,,
PRO,0,横移-HY9-托盘-RFID-IP,PRO_RFIP_209,192.168.210.135,,
PRO,0,横移-HY9-托盘-RFID-IP,PRO_RFIP_209,192.168.210.135,,
PRO,0,横移-HY10-托盘-RFID-IP,PRO_RFIP_210,192.168.210.136,,
PRO,0,横移-HY10-托盘-RFID-IP,PRO_RFIP_210,192.168.210.136,,
PRO
,0,横移-HY11-托盘-RFID-IP,PRO_RFIP_211,192.168.210.127,,
,0,横移-HY11-托盘-RFID-IP,PRO_RFIP_211,192.168.210.127,,
PRO,0,横移-HY12-托盘-RFID-IP,PRO_RFIP_212,192.168.210.128,,
PRO,0,横移-HY12-托盘-RFID-IP,PRO_RFIP_212,192.168.210.128,,
PRO,0,横移-HY13-托盘-RFID-IP,PRO_RFIP_213,192.168.210.115,,
PRO,0,横移-HY13-托盘-RFID-IP,PRO_RFIP_213,192.168.210.115,,
,0,横移-HY14-托盘-RFID-IP,PRO_RFIP_214,,,
,0,横移-HY14-托盘-RFID-IP,PRO_RFIP_214,,,
...
...
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
75e3e84
...
@@ -315,7 +315,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -315,7 +315,7 @@ namespace OnlineStore.DeviceLibrary
trayCount
++;
trayCount
++;
//此处先对托盘号进行验证
//此处先对托盘号进行验证
preTrayNum
=
currTrayNum
;
preTrayNum
=
currTrayNum
;
currTrayNum
=
RFIDManager
.
GetTrayNum
(
DeviceID
,
true
);
currTrayNum
=
RFIDManager
.
GetTrayNum
(
Name
,
DeviceID
,
true
);
LogUtil
.
LOGGER
.
Info
(
Name
+
" ["
+
trayCount
+
"] IP ["
+
RFIDManager
.
GetRFIP
(
DeviceID
)
+
"] ["
+
preTrayNum
+
"] 当前托盘 ["
+
currTrayNum
+
"]"
);
LogUtil
.
LOGGER
.
Info
(
Name
+
" ["
+
trayCount
+
"] IP ["
+
RFIDManager
.
GetRFIP
(
DeviceID
)
+
"] ["
+
preTrayNum
+
"] 当前托盘 ["
+
currTrayNum
+
"]"
);
if
(
preTrayNum
.
Equals
(
currTrayNum
)
&&
currTrayNum
>
0
)
if
(
preTrayNum
.
Equals
(
currTrayNum
)
&&
currTrayNum
>
0
)
{
{
...
...
source/DeviceLibrary/assemblyLine/LineBean_T3-C1.cs
查看文件 @
75e3e84
...
@@ -21,7 +21,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -21,7 +21,7 @@ namespace OnlineStore.DeviceLibrary
private
void
Update_T3C1_TrayNum
()
private
void
Update_T3C1_TrayNum
()
{
{
T3C1_TrayNum
=
RFIDManager
.
GetTrayNum
(
300
);
T3C1_TrayNum
=
RFIDManager
.
GetTrayNum
(
T3C1_MoveInfo
.
Name
,
300
);
}
}
public
void
T3C1_Stop
(
LineMoveInfo
moveInfo
=
null
)
public
void
T3C1_Stop
(
LineMoveInfo
moveInfo
=
null
)
{
{
...
...
source/DeviceLibrary/assemblymanager/RFIDManagercs.cs
查看文件 @
75e3e84
...
@@ -41,7 +41,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -41,7 +41,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
error
(
"Open 出错:"
+
ex
.
ToString
());
LogUtil
.
error
(
"Open 出错:"
+
ex
.
ToString
());
}
}
}
}
public
static
int
GetTrayNum
(
int
subType
,
bool
isClear
=
false
)
public
static
int
GetTrayNum
(
string
deviceName
,
int
subType
,
bool
isClear
=
false
)
{
{
if
(
DefaultTrayNum
>
0
)
if
(
DefaultTrayNum
>
0
)
{
{
...
@@ -63,11 +63,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -63,11 +63,11 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
data
.
RFType
>
0
)
else
if
(
data
.
RFType
>
0
)
{
{
LogUtil
.
error
(
"RFID [ "
+
ip
+
" ] 读到数据 "
+
data
.
NumStr
()
+
" 返回盘号 0"
);
LogUtil
.
error
(
deviceName
+
"RFID [ "
+
ip
+
" ] 读到数据 "
+
data
.
NumStr
()
+
" 返回盘号 0"
);
}
}
else
else
{
{
LogUtil
.
debug
(
"RFID [ "
+
ip
+
" ] 读到数据 "
+
data
.
NumStr
()
+
" 返回盘号 0"
);
LogUtil
.
debug
(
deviceName
+
"RFID [ "
+
ip
+
" ] 读到数据 "
+
data
.
NumStr
()
+
" 返回盘号 0"
);
}
}
return
0
;
return
0
;
}
}
...
...
source/DeviceLibrary/server/LineServer.cs
查看文件 @
75e3e84
...
@@ -11,8 +11,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -11,8 +11,6 @@ namespace OnlineStore.DeviceLibrary
{
{
public
class
LineServer
public
class
LineServer
{
{
//private static readonly ILog LOGGER = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private
static
TcpServer
tcpserver
=
null
;
private
static
TcpServer
tcpserver
=
null
;
public
static
bool
IsStart
=
false
;
public
static
bool
IsStart
=
false
;
public
static
int
ClientKeepSecond
=
10
;
public
static
int
ClientKeepSecond
=
10
;
...
@@ -144,9 +142,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -144,9 +142,13 @@ namespace OnlineStore.DeviceLibrary
int
num
=
equipId
%
100
;
int
num
=
equipId
%
100
;
string
result
=
""
;
string
result
=
""
;
List
<
int
>
IdList
=
new
List
<
int
>();
List
<
int
>
IdList
=
new
List
<
int
>();
if
(
num
.
Equals
(
2
))
if
(
num
.
Equals
(
3
))
{
for
(
int
i
=
7
;
i
<=
12
;
i
++)
{
{
for
(
int
i
=
7
;
i
<=
18
;
i
++)
IdList
.
Add
(
i
);
}
for
(
int
i
=
24
;
i
<=
13
;
i
--)
{
{
IdList
.
Add
(
i
);
IdList
.
Add
(
i
);
}
}
...
@@ -155,20 +157,24 @@ namespace OnlineStore.DeviceLibrary
...
@@ -155,20 +157,24 @@ namespace OnlineStore.DeviceLibrary
IdList
.
Add
(
i
);
IdList
.
Add
(
i
);
}
}
}
}
else
if
(
num
.
Equals
(
3
))
else
if
(
num
.
Equals
(
5
))
{
{
for
(
int
i
=
11
;
i
<=
18
;
i
++
)
for
(
int
i
=
24
;
i
<=
13
;
i
--
)
{
{
IdList
.
Add
(
i
);
IdList
.
Add
(
i
);
}
}
for
(
int
i
=
1
;
i
<=
1
0
;
i
++)
for
(
int
i
=
1
;
i
<=
1
2
;
i
++)
{
{
IdList
.
Add
(
i
);
IdList
.
Add
(
i
);
}
}
}
}
else
else
{
{
for
(
int
i
=
1
;
i
<=
18
;
i
++)
for
(
int
i
=
1
;
i
<=
12
;
i
++)
{
IdList
.
Add
(
i
);
}
for
(
int
i
=
24
;
i
<=
13
;
i
--)
{
{
IdList
.
Add
(
i
);
IdList
.
Add
(
i
);
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论