Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d3f82a30
由
LN
编写于
2019-10-24 16:28:33 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
b2a13516
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
110 行增加
和
107 行删除
source/AssemblyLineClient/App.config
source/AssemblyLineClient/FrmLineStore.cs
source/AssemblyLineClient/FrmRFIPEdit.Designer.cs
source/AssemblyLineClient/FrmRFIPEdit.cs
source/AssemblyLineSystem/LineStoreSystem.cs
source/Common/Setting_Init.cs
source/DeviceLibrary/DeviceLibrary.csproj
source/DeviceLibrary/assemblyLine/LineBean.cs
source/DeviceLibrary/assemblyLine/TrayManager.cs
source/DeviceLibrary/deviceLibrary/RFID/RFIDManager.cs
source/LoadCVSLibrary/storeConfig/config/Line_Config.cs
source/AssemblyLineClient/App.config
查看文件 @
d3f82a3
...
@@ -43,6 +43,8 @@
...
@@ -43,6 +43,8 @@
<
add
key
=
"LineRunTest"
value
=
"1"
/>
<
add
key
=
"LineRunTest"
value
=
"1"
/>
<!--
ABB
机器人服务器-->
<!--
ABB
机器人服务器-->
<
add
key
=
"ABBServerPort"
value
=
"21"
/>
<
add
key
=
"ABBServerPort"
value
=
"21"
/>
<!--是否打开托盘编码界面-->
<
add
key
=
"OpenRFIDWrite"
value
=
"1"
/>
</
appSettings
>
</
appSettings
>
<
log4net
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
...
...
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
d3f82a3
...
@@ -113,6 +113,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -113,6 +113,7 @@ namespace OnlineStore.AssemblyLine
int
autoValue
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
App_AutoRun
);
int
autoValue
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
App_AutoRun
);
chbAutoRun
.
Checked
=
autoValue
.
Equals
(
1
);
chbAutoRun
.
Checked
=
autoValue
.
Equals
(
1
);
LoadListView
();
LoadListView
();
托盘初始化
ToolStripMenuItem
.
Visible
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
OpenRFIDWrite
).
Equals
(
1
);
LoadOk
=
true
;
LoadOk
=
true
;
HideForm
();
HideForm
();
timer1
.
Start
();
timer1
.
Start
();
...
@@ -252,7 +253,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -252,7 +253,7 @@ namespace OnlineStore.AssemblyLine
IOManager
.
instance
.
CloseAllDO
();
IOManager
.
instance
.
CloseAllDO
();
IOManager
.
instance
.
CloseAllConnection
();
IOManager
.
instance
.
CloseAllConnection
();
AIManager
.
CloseConnect
();
//
AIManager.CloseConnect();
ACServerManager
.
CloseAllPort
();
ACServerManager
.
CloseAllPort
();
//this.Close();
//this.Close();
System
.
Environment
.
Exit
(
System
.
Environment
.
ExitCode
);
System
.
Environment
.
Exit
(
System
.
Environment
.
ExitCode
);
...
...
source/AssemblyLineClient/FrmRFIPEdit.Designer.cs
查看文件 @
d3f82a3
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
this
.
btnBack
.
Anchor
=
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
;
this
.
btnBack
.
Anchor
=
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
;
this
.
btnBack
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnBack
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnBack
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnBack
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnBack
.
Location
=
new
System
.
Drawing
.
Point
(
383
,
392
);
this
.
btnBack
.
Location
=
new
System
.
Drawing
.
Point
(
420
,
392
);
this
.
btnBack
.
Name
=
"btnBack"
;
this
.
btnBack
.
Name
=
"btnBack"
;
this
.
btnBack
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
45
);
this
.
btnBack
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
45
);
this
.
btnBack
.
TabIndex
=
274
;
this
.
btnBack
.
TabIndex
=
274
;
...
@@ -119,8 +119,8 @@
...
@@ -119,8 +119,8 @@
this
.
comType
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
comType
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
comType
.
FormattingEnabled
=
true
;
this
.
comType
.
FormattingEnabled
=
true
;
this
.
comType
.
Items
.
AddRange
(
new
object
[]
{
this
.
comType
.
Items
.
AddRange
(
new
object
[]
{
"
L
"
,
"
流水线托盘
"
,
"
R
"
});
"
料架
"
});
this
.
comType
.
Location
=
new
System
.
Drawing
.
Point
(
222
,
187
);
this
.
comType
.
Location
=
new
System
.
Drawing
.
Point
(
222
,
187
);
this
.
comType
.
Name
=
"comType"
;
this
.
comType
.
Name
=
"comType"
;
this
.
comType
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
28
);
this
.
comType
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
28
);
...
@@ -134,7 +134,7 @@
...
@@ -134,7 +134,7 @@
this
.
label3
.
Name
=
"label3"
;
this
.
label3
.
Name
=
"label3"
;
this
.
label3
.
Size
=
new
System
.
Drawing
.
Size
(
167
,
25
);
this
.
label3
.
Size
=
new
System
.
Drawing
.
Size
(
167
,
25
);
this
.
label3
.
TabIndex
=
279
;
this
.
label3
.
TabIndex
=
279
;
this
.
label3
.
Text
=
"
读卡器
类型:"
;
this
.
label3
.
Text
=
"
卡
类型:"
;
this
.
label3
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label3
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
//
// button1
// button1
...
...
source/AssemblyLineClient/FrmRFIPEdit.cs
查看文件 @
d3f82a3
...
@@ -42,7 +42,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -42,7 +42,7 @@ namespace OnlineStore.AssemblyLine
DialogResult
result
=
MessageBox
.
Show
(
"确定将【"
+
comboxType
.
Text
+
"】当前的托盘编号定为【"
+
value
+
"】?"
,
"确定提示"
,
MessageBoxButtons
.
OKCancel
);
DialogResult
result
=
MessageBox
.
Show
(
"确定将【"
+
comboxType
.
Text
+
"】当前的托盘编号定为【"
+
value
+
"】?"
,
"确定提示"
,
MessageBoxButtons
.
OKCancel
);
if
(
result
.
Equals
(
DialogResult
.
OK
))
if
(
result
.
Equals
(
DialogResult
.
OK
))
{
{
RFI
PManager
.
WriteData
(
ip
,
new
RFIP
Data
(
value
,
type
));
RFI
DManager
.
WriteData
(
ip
,
new
RFID
Data
(
value
,
type
));
}
}
}
}
...
@@ -55,7 +55,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -55,7 +55,7 @@ namespace OnlineStore.AssemblyLine
private
void
button1_Click
(
object
sender
,
EventArgs
e
)
private
void
button1_Click
(
object
sender
,
EventArgs
e
)
{
{
string
ip
=
txtIP
.
Text
;
string
ip
=
txtIP
.
Text
;
RFIPData
data
=
RFIP
Manager
.
ReadData
(
ip
);
RFIDData
data
=
RFID
Manager
.
ReadData
(
ip
);
string
resul
=
""
;
string
resul
=
""
;
if
(
data
!=
null
)
if
(
data
!=
null
)
{
{
...
@@ -79,7 +79,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -79,7 +79,7 @@ namespace OnlineStore.AssemblyLine
private
void
btnFind_Click
(
object
sender
,
EventArgs
e
)
private
void
btnFind_Click
(
object
sender
,
EventArgs
e
)
{
{
string
ip
=
txtIP
.
Text
;
string
ip
=
txtIP
.
Text
;
bool
result
=
RFI
P
Manager
.
FindRFID
(
ip
);
bool
result
=
RFI
D
Manager
.
FindRFID
(
ip
);
if
(
result
)
if
(
result
)
{
{
lblHas
.
Text
=
"有标签"
;
lblHas
.
Text
=
"有标签"
;
...
...
source/AssemblyLineSystem/LineStoreSystem.cs
查看文件 @
d3f82a3
...
@@ -43,7 +43,7 @@ namespace StoreServer
...
@@ -43,7 +43,7 @@ namespace StoreServer
}
}
IOManager
.
instance
.
CloseAllDO
();
IOManager
.
instance
.
CloseAllDO
();
IOManager
.
instance
.
CloseAllConnection
();
IOManager
.
instance
.
CloseAllConnection
();
AIManager
.
CloseConnect
();
//
AIManager.CloseConnect();
LOGGER
.
Info
(
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss "
)
+
"*************************Stop."
);
LOGGER
.
Info
(
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss "
)
+
"*************************Stop."
);
}
}
}
}
...
...
source/Common/Setting_Init.cs
查看文件 @
d3f82a3
...
@@ -74,5 +74,6 @@ namespace OnlineStore.Common
...
@@ -74,5 +74,6 @@ namespace OnlineStore.Common
public
static
string
ConfigPath_DischargeLine
=
"ConfigPath_DischargeLine"
;
public
static
string
ConfigPath_DischargeLine
=
"ConfigPath_DischargeLine"
;
public
static
string
ABBServerPort
=
"ABBServerPort"
;
public
static
string
ABBServerPort
=
"ABBServerPort"
;
public
static
string
OpenRFIDWrite
=
"OpenRFIDWrite"
;
}
}
}
}
source/DeviceLibrary/DeviceLibrary.csproj
查看文件 @
d3f82a3
...
@@ -71,7 +71,6 @@
...
@@ -71,7 +71,6 @@
<Compile Include="assemblyLine\FeedingEquip.cs" />
<Compile Include="assemblyLine\FeedingEquip.cs" />
<Compile Include="assemblyLine\TrayManager.cs" />
<Compile Include="assemblyLine\TrayManager.cs" />
<Compile Include="deviceLibrary\halcon\CodeManager.cs" />
<Compile Include="deviceLibrary\halcon\CodeManager.cs" />
<Compile Include="deviceLibrary\IO\AIManager.cs" />
<Compile Include="deviceLibrary\IO\AIOBOX\AIOBOXManager.cs" />
<Compile Include="deviceLibrary\IO\AIOBOX\AIOBOXManager.cs" />
<Compile Include="deviceLibrary\IO\IOManager.cs" />
<Compile Include="deviceLibrary\IO\IOManager.cs" />
<Compile Include="assemblyLine\LineBean.cs" />
<Compile Include="assemblyLine\LineBean.cs" />
...
...
source/DeviceLibrary/assemblyLine/LineBean.cs
查看文件 @
d3f82a3
...
@@ -118,11 +118,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -118,11 +118,11 @@ namespace OnlineStore.DeviceLibrary
Task
.
Factory
.
StartNew
(
delegate
Task
.
Factory
.
StartNew
(
delegate
{
{
//连接rfip
//连接rfip
RFI
P
Manager
.
ConnectRFIOList
(
new
List
<
string
>(
DeviceConfig
.
ProRFIpMap
.
Values
));
RFI
D
Manager
.
ConnectRFIOList
(
new
List
<
string
>(
DeviceConfig
.
ProRFIpMap
.
Values
));
Thread
.
Sleep
(
5
);
Thread
.
Sleep
(
5
);
IOManager
.
instance
.
ConnectionIOList
(
ioList
);
IOManager
.
instance
.
ConnectionIOList
(
ioList
);
Thread
.
Sleep
(
10
);
//
Thread.Sleep(10);
AIManager
.
ConnectionIP
(
Config
.
AIDevice_IP
);
//
AIManager.ConnectionIP(Config.AIDevice_IP);
addLastDI
(
IO_Type
.
Airpressure_Check
,
IOValue
(
IO_Type
.
Airpressure_Check
));
addLastDI
(
IO_Type
.
Airpressure_Check
,
IOValue
(
IO_Type
.
Airpressure_Check
));
addLastDI
(
IO_Type
.
SuddenStop_BTN
,
IOValue
(
IO_Type
.
SuddenStop_BTN
));
addLastDI
(
IO_Type
.
SuddenStop_BTN
,
IOValue
(
IO_Type
.
SuddenStop_BTN
));
...
...
source/DeviceLibrary/assemblyLine/TrayManager.cs
查看文件 @
d3f82a3
...
@@ -174,7 +174,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -174,7 +174,7 @@ namespace OnlineStore.DeviceLibrary
{
{
string
ip
=
GetRFIP
(
subType
,
rtType
);
string
ip
=
GetRFIP
(
subType
,
rtType
);
//获取盘号
//获取盘号
RFI
PData
data
=
RFIP
Manager
.
ReadData
(
ip
);
RFI
DData
data
=
RFID
Manager
.
ReadData
(
ip
);
if
(
data
!=
null
)
if
(
data
!=
null
)
{
{
return
data
.
Num
;
return
data
.
Num
;
...
...
source/DeviceLibrary/deviceLibrary/RFID/RFIDManager.cs
查看文件 @
d3f82a3
...
@@ -9,7 +9,7 @@ using System.Threading.Tasks;
...
@@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace
OnlineStore.DeviceLibrary
namespace
OnlineStore.DeviceLibrary
{
{
public
class
RFI
P
Manager
public
class
RFI
D
Manager
{
{
public
static
Dictionary
<
string
,
Reader
>
RFReaderMap
=
new
Dictionary
<
string
,
Reader
>();
public
static
Dictionary
<
string
,
Reader
>
RFReaderMap
=
new
Dictionary
<
string
,
Reader
>();
...
@@ -68,40 +68,40 @@ namespace OnlineStore.DeviceLibrary
...
@@ -68,40 +68,40 @@ namespace OnlineStore.DeviceLibrary
isProcess
=
false
;
isProcess
=
false
;
}
}
internal
static
void
ConnectionIP
(
string
rfi
p
)
internal
static
void
ConnectionIP
(
string
rfi
d
)
{
{
Reader
rfi
p
Reader
=
null
;
Reader
rfi
d
Reader
=
null
;
if
(
RFReaderMap
.
ContainsKey
(
rfi
p
))
if
(
RFReaderMap
.
ContainsKey
(
rfi
d
))
{
{
rfi
pReader
=
RFReaderMap
[
rfip
];
rfi
dReader
=
RFReaderMap
[
rfid
];
if
(
null
!=
rfi
p
Reader
)
if
(
null
!=
rfi
d
Reader
)
{
{
rfi
p
Reader
.
Close
();
rfi
d
Reader
.
Close
();
rfi
p
Reader
=
null
;
rfi
d
Reader
=
null
;
}
}
RFReaderMap
.
Remove
(
rfi
p
);
RFReaderMap
.
Remove
(
rfi
d
);
}
}
string
logName
=
"RFIP模块["
+
rfi
p
+
"] "
;
string
logName
=
"RFIP模块["
+
rfi
d
+
"] "
;
try
try
{
{
rfi
p
Reader
=
new
Reader
();
rfi
d
Reader
=
new
Reader
();
rfip
Reader
.
LocalIP
=
"192.168.100.101"
;
// rfid
Reader.LocalIP = "192.168.100.101";
rfi
pReader
.
RemoteIP
=
rfip
;
rfi
dReader
.
RemoteIP
=
rfid
;
RFReaderMap
.
Add
(
rfi
p
,
rfip
Reader
);
RFReaderMap
.
Add
(
rfi
d
,
rfid
Reader
);
LogUtil
.
debug
(
"开始连接"
+
logName
+
",尝试重连3次"
);
LogUtil
.
debug
(
"开始连接"
+
logName
+
",尝试重连3次"
);
for
(
int
i
=
1
;
i
<=
3
;
i
++)
for
(
int
i
=
1
;
i
<=
3
;
i
++)
{
{
bool
result
=
rfi
p
Reader
.
Connect
();
bool
result
=
rfi
d
Reader
.
Connect
();
if
(
result
)
if
(
result
)
{
{
LogUtil
.
info
(
"第【"
+
i
+
"】次连接 "
+
logName
+
" 成功:"
);
LogUtil
.
info
(
"第【"
+
i
+
"】次连接 "
+
logName
+
" 成功:"
);
Thread
.
Sleep
(
10
);
Thread
.
Sleep
(
10
);
if
(
RfIPList
.
Contains
(
rfi
p
))
if
(
RfIPList
.
Contains
(
rfi
d
))
{
{
RfIPList
.
Remove
(
rfi
p
);
RfIPList
.
Remove
(
rfi
d
);
}
}
break
;
break
;
}
}
...
@@ -126,25 +126,25 @@ namespace OnlineStore.DeviceLibrary
...
@@ -126,25 +126,25 @@ namespace OnlineStore.DeviceLibrary
reader
.
Close
();
reader
.
Close
();
}
}
}
}
public
static
bool
WriteData
(
string
rfIp
,
RFIP
Data
obj
)
public
static
bool
WriteData
(
string
IP
,
RFID
Data
obj
)
{
{
byte
[]
sendData
=
obj
.
ToData
();
byte
[]
sendData
=
obj
.
ToData
();
return
WriteData
(
rfIp
,
sendData
,
3
);
return
WriteData
(
IP
,
sendData
,
3
);
}
}
public
static
RFI
PData
ReadData
(
string
rfIp
)
public
static
RFI
DData
ReadData
(
string
IP
)
{
{
byte
[]
reviceData
=
ReadData
(
rfIp
,
3
);
byte
[]
reviceData
=
ReadData
(
IP
,
3
);
if
(
reviceData
!=
null
)
if
(
reviceData
!=
null
)
{
{
return
new
RFI
P
Data
(
reviceData
);
return
new
RFI
D
Data
(
reviceData
);
}
}
return
null
;
return
null
;
}
}
public
static
bool
FindRFID
(
string
rfIp
)
public
static
bool
FindRFID
(
string
IP
)
{
{
try
try
{
{
Reader
rfReader
=
getRfReader
(
rfIp
);
Reader
rfReader
=
getRfReader
(
IP
);
if
(
rfReader
!=
null
)
if
(
rfReader
!=
null
)
{
{
return
rfReader
.
FindRFID
();
return
rfReader
.
FindRFID
();
...
@@ -152,15 +152,15 @@ namespace OnlineStore.DeviceLibrary
...
@@ -152,15 +152,15 @@ namespace OnlineStore.DeviceLibrary
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
"RFIP FindRFID ["
+
rfIp
+
"] 出错 :"
+
ex
.
ToString
());
LogUtil
.
error
(
"RFIP FindRFID ["
+
IP
+
"] 出错 :"
+
ex
.
ToString
());
}
}
return
false
;
return
false
;
}
}
public
static
byte
[]
ReadData
(
string
rfIp
,
int
reReadCount
=
1
,
int
startIndex
=
0
,
int
readLength
=
10
)
public
static
byte
[]
ReadData
(
string
IP
,
int
reReadCount
=
1
,
int
startIndex
=
0
,
int
readLength
=
10
)
{
{
try
try
{
{
Reader
rfReader
=
getRfReader
(
rfIp
);
Reader
rfReader
=
getRfReader
(
IP
);
if
(
rfReader
==
null
)
if
(
rfReader
==
null
)
{
{
return
null
;
return
null
;
...
@@ -172,20 +172,20 @@ namespace OnlineStore.DeviceLibrary
...
@@ -172,20 +172,20 @@ namespace OnlineStore.DeviceLibrary
{
{
return
reviceData
;
return
reviceData
;
}
}
LogUtil
.
error
(
"RFIP ReadData ["
+
rfIp
+
"] 第"
+
i
+
"次失败 "
);
LogUtil
.
error
(
"RFIP ReadData ["
+
IP
+
"] 第"
+
i
+
"次失败 "
);
}
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
"RFIP ReadData ["
+
rfIp
+
"] 出错 :"
+
ex
.
ToString
());
LogUtil
.
error
(
"RFIP ReadData ["
+
IP
+
"] 出错 :"
+
ex
.
ToString
());
}
}
return
null
;
return
null
;
}
}
public
static
bool
WriteData
(
string
rfIp
,
byte
[]
data
,
int
reWriteCount
=
1
)
public
static
bool
WriteData
(
string
IP
,
byte
[]
data
,
int
reWriteCount
=
1
)
{
{
try
try
{
{
Reader
rfReader
=
getRfReader
(
rfIp
);
Reader
rfReader
=
getRfReader
(
IP
);
if
(
rfReader
==
null
)
if
(
rfReader
==
null
)
{
{
return
false
;
return
false
;
...
@@ -197,30 +197,30 @@ namespace OnlineStore.DeviceLibrary
...
@@ -197,30 +197,30 @@ namespace OnlineStore.DeviceLibrary
{
{
return
result
;
return
result
;
}
}
LogUtil
.
error
(
"RFIP WriteData ["
+
rfIp
+
"] 第"
+
i
+
"次失败:"
);
LogUtil
.
error
(
"RFIP WriteData ["
+
IP
+
"] 第"
+
i
+
"次失败:"
);
}
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
"RFIP WriteData ["
+
rfIp
+
"] 出错 :"
+
ex
.
ToString
());
LogUtil
.
error
(
"RFIP WriteData ["
+
IP
+
"] 出错 :"
+
ex
.
ToString
());
}
}
return
false
;
return
false
;
}
}
private
static
Reader
getRfReader
(
string
rfIp
)
private
static
Reader
getRfReader
(
string
IP
)
{
{
Reader
rfReader
=
null
;
Reader
rfReader
=
null
;
if
(
RFReaderMap
.
ContainsKey
(
rfIp
))
if
(
RFReaderMap
.
ContainsKey
(
IP
))
{
{
rfReader
=
RFReaderMap
[
rfIp
];
rfReader
=
RFReaderMap
[
IP
];
}
}
else
else
{
{
LogUtil
.
error
(
"getRfReader 没有连接RFIP模块:"
+
rfIp
);
LogUtil
.
error
(
"getRfReader 没有连接RFIP模块:"
+
IP
);
}
}
return
rfReader
;
return
rfReader
;
}
}
}
}
public
class
RFI
P
Data
public
class
RFI
D
Data
{
{
/// <summary>
/// <summary>
/// RFID类型,区分是料架还是托盘,托盘=L
/// RFID类型,区分是料架还是托盘,托盘=L
...
@@ -231,13 +231,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -231,13 +231,13 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
public
int
Num
=
0
;
public
int
Num
=
0
;
public
RFI
P
Data
(
int
num
,
int
t
=
1
)
public
RFI
D
Data
(
int
num
,
int
t
=
1
)
{
{
this
.
RFType
=
t
;
this
.
RFType
=
t
;
this
.
Num
=
num
;
this
.
Num
=
num
;
}
}
public
RFI
P
Data
(
byte
[]
data
)
public
RFI
D
Data
(
byte
[]
data
)
{
{
try
try
{
{
...
...
source/LoadCVSLibrary/storeConfig/config/Line_Config.cs
查看文件 @
d3f82a3
...
@@ -59,59 +59,59 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -59,59 +59,59 @@ namespace OnlineStore.LoadCSVLibrary
[
ConfigProAttribute
(
"IO_DOLength"
)]
[
ConfigProAttribute
(
"IO_DOLength"
)]
public
string
IO_DOLength
{
get
;
set
;
}
public
string
IO_DOLength
{
get
;
set
;
}
/// <summary>
///
//
<summary>
/// PRO 模拟量IO模块的IP地址 AIDevice_IP 192.168.200.11
///
//
PRO 模拟量IO模块的IP地址 AIDevice_IP 192.168.200.11
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"AIDevice_IP"
,
true
)]
//
[ConfigProAttribute("AIDevice_IP", true)]
public
string
AIDevice_IP
{
get
;
set
;
}
//
public string AIDevice_IP { get; set; }
/// <summary>
///
//
<summary>
/// PRO 模拟量测高1mm对应的转换值 AI_ConvertPosition 55
///
//
PRO 模拟量测高1mm对应的转换值 AI_ConvertPosition 55
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"AI_ConvertPosition"
,
true
)]
//
[ConfigProAttribute("AI_ConvertPosition", true)]
public
int
AI_ConvertPosition
{
get
;
set
;
}
//
public int AI_ConvertPosition { get; set; }
/// <summary>
///
//
<summary>
/// PRO,模拟信号1默认高度,AIDI1_DefaultPosition,1,,,,,,,
///
//
PRO,模拟信号1默认高度,AIDI1_DefaultPosition,1,,,,,,,
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"AIDI1_DefaultPosition"
,
true
)]
//
[ConfigProAttribute("AIDI1_DefaultPosition", true)]
public
double
AIDI1_DefaultPosition
{
get
;
set
;
}
//
public double AIDI1_DefaultPosition { get; set; }
/// <summary>
///
//
<summary>
/// PRO,模拟信号2默认高度,AIDI2_DefaultPosition,1,,,,,,,
///
//
PRO,模拟信号2默认高度,AIDI2_DefaultPosition,1,,,,,,,
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"AIDI2_DefaultPosition"
,
true
)]
//
[ConfigProAttribute("AIDI2_DefaultPosition", true)]
public
double
AIDI2_DefaultPosition
{
get
;
set
;
}
//
public double AIDI2_DefaultPosition { get; set; }
/// <summary>
///
//
<summary>
/// PRO,模拟信号3默认高度,AIDI3_DefaultPosition,1,,,,,,,
///
//
PRO,模拟信号3默认高度,AIDI3_DefaultPosition,1,,,,,,,
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"AIDI3_DefaultPosition"
,
true
)]
//
[ConfigProAttribute("AIDI3_DefaultPosition", true)]
public
double
AIDI3_DefaultPosition
{
get
;
set
;
}
//
public double AIDI3_DefaultPosition { get; set; }
/// <summary>
///
//
<summary>
/// PRO,模拟信号4默认高度,AIDI4_DefaultPosition,1,,,,,,,
///
//
PRO,模拟信号4默认高度,AIDI4_DefaultPosition,1,,,,,,,
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"AIDI4_DefaultPosition"
,
true
)]
//
[ConfigProAttribute("AIDI4_DefaultPosition", true)]
public
double
AIDI4_DefaultPosition
{
get
;
set
;
}
//
public double AIDI4_DefaultPosition { get; set; }
/// <summary>
///
//
<summary>
/// PRO 模拟信号1的地址 AIDI1_Addr 7
///
//
PRO 模拟信号1的地址 AIDI1_Addr 7
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"AIDI1_Addr"
,
true
)]
//
[ConfigProAttribute("AIDI1_Addr", true)]
public
int
AIDI1_Addr
{
get
;
set
;
}
//
public int AIDI1_Addr { get; set; }
/// <summary>
///
//
<summary>
/// PRO 模拟信号2的地址 AIDI2_Addr 8
///
//
PRO 模拟信号2的地址 AIDI2_Addr 8
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"AIDI2_Addr"
,
true
)]
//
[ConfigProAttribute("AIDI2_Addr", true)]
public
int
AIDI2_Addr
{
get
;
set
;
}
//
public int AIDI2_Addr { get; set; }
/// <summary>
///
//
<summary>
/// PRO 模拟信号3的地址 AIDI3_Addr 5
///
//
PRO 模拟信号3的地址 AIDI3_Addr 5
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"AIDI3_Addr"
,
true
)]
//
[ConfigProAttribute("AIDI3_Addr", true)]
public
int
AIDI3_Addr
{
get
;
set
;
}
//
public int AIDI3_Addr { get; set; }
/// <summary>
///
//
<summary>
/// PRO 模拟信号4的地址 AIDI4_Addr 6
///
//
PRO 模拟信号4的地址 AIDI4_Addr 6
/// </summary>
///
//
</summary>
[
ConfigProAttribute
(
"AIDI4_Addr"
,
true
)]
//
[ConfigProAttribute("AIDI4_Addr", true)]
public
int
AIDI4_Addr
{
get
;
set
;
}
//
public int AIDI4_Addr { get; set; }
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论