Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-ACPackingStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b657c1cc
由
LN
编写于
2019-12-30 12:04:19 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
rfid更新,增加ng线体按钮
1 个父辈
18693286
显示空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
225 行增加
和
249 行删除
dll/RFID/Asa.RFID.dll
dll/RFID/Asa.RFID.xml
dll/RFID/Basic.dll
dll/RFID/ClassLibrary1.dll
dll/RFID/HFReader9CSharp.dll
source/ACPackingStore/FrmBox.Designer.cs
source/ACPackingStore/FrmBox.cs
source/ACPackingStore/FrmIOStatus.Designer.cs
source/ACPackingStore/FrmIOStatus.cs
source/ACPackingStore/FrmRFIPEdit.cs
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean.cs
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Partial.cs
source/DeviceLibrary/DeviceLibrary.csproj
source/DeviceLibrary/device/RFID/RFIDManager.cs
source/DeviceLibrary/store/StoreStep.cs
source/LoadCVSLibrary/position/CSVPositionReader.cs
dll/RFID/Asa.RFID.dll
查看文件 @
b657c1c
此文件类型无法预览
dll/RFID/Asa.RFID.xml
查看文件 @
b657c1c
...
@@ -14,6 +14,11 @@
...
@@ -14,6 +14,11 @@
RFID读卡器
RFID读卡器
</summary>
</summary>
</member>
</member>
<member
name=
"M:Asa.RFID.Reader.#ctor(System.String)"
>
<summary>
RFID读卡器
</summary>
</member>
<member
name=
"P:Asa.RFID.Reader.IsConn"
>
<member
name=
"P:Asa.RFID.Reader.IsConn"
>
<summary>
<summary>
是否连接
是否连接
...
@@ -34,18 +39,21 @@
...
@@ -34,18 +39,21 @@
错误代码
错误代码
</summary>
</summary>
</member>
</member>
<member
name=
"P:Asa.RFID.Reader.IP"
>
<summary>
IP地址
</summary>
</member>
<member
name=
"P:Asa.RFID.Reader.ID"
>
<member
name=
"P:Asa.RFID.Reader.ID"
>
<summary>
<summary>
ID号码
ID号码
</summary>
</summary>
</member>
</member>
<member
name=
"M:Asa.RFID.Reader.Connect(System.
String,System.
Boolean)"
>
<member
name=
"M:Asa.RFID.Reader.Connect(System.Boolean)"
>
<summary>
<summary>
连接
连接
</summary>
</summary>
<param
name=
"ip"
>
设备IP地址
</param>
<param
name=
"autoScan"
>
自动扫描
</param>
<param
name=
"autoScan"
>
自动扫描
</param>
<returns></returns>
</member>
</member>
<member
name=
"M:Asa.RFID.Reader.Close"
>
<member
name=
"M:Asa.RFID.Reader.Close"
>
<summary>
<summary>
...
@@ -64,14 +72,6 @@
...
@@ -64,14 +72,6 @@
</summary>
</summary>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Asa.RFID.Reader.Read(System.Int32,System.Int32)"
>
<summary>
读取电子标签
</summary>
<param
name=
"start"
></param>
<param
name=
"len"
></param>
<returns></returns>
</member>
<member
name=
"M:Asa.RFID.Reader.Write(System.Byte[])"
>
<member
name=
"M:Asa.RFID.Reader.Write(System.Byte[])"
>
<summary>
<summary>
写入数据到电子标签,扫描模式不能使用
写入数据到电子标签,扫描模式不能使用
...
@@ -79,168 +79,44 @@
...
@@ -79,168 +79,44 @@
<param
name=
"buff"
>
数据,必须小于等于112字节
</param>
<param
name=
"buff"
>
数据,必须小于等于112字节
</param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Asa.RFID.Reader.Write(System.Byte[],System.Int32)"
>
<member
name=
"T:Asa.RFID.ReaderAll"
>
<summary>
写入数据到电子标签,扫描模式不能使用
</summary>
<param
name=
"buff"
></param>
<param
name=
"start"
></param>
<returns></returns>
</member>
<member
name=
"M:Asa.RFID.Reader.Receive"
>
<summary>
自动扫描接受数据事件
</summary>
</member>
<member
name=
"M:Asa.RFID.Reader.ReadRFID"
>
<summary>
读取电子标签内所有数据
</summary>
</member>
<member
name=
"M:Asa.RFID.Reader.ReadRFID(System.Int32)"
>
<summary>
读取电子标签指定块
</summary>
<param
name=
"num"
></param>
<returns></returns>
</member>
<member
name=
"M:Asa.RFID.Reader.WriteRFID(System.Int32)"
>
<summary>
写入指定块数据到电子标签
</summary>
<param
name=
"num"
></param>
<returns></returns>
</member>
<member
name=
"M:Asa.RFID.Reader.InitBuff(System.Int32,System.Int32)"
>
<summary>
初始buff为0
</summary>
<param
name=
"start"
></param>
<param
name=
"len"
></param>
</member>
<member
name=
"T:Asa.RFID.Reader2"
>
<summary>
<summary>
RFID读卡器
RFID读卡器
</summary>
</summary>
</member>
</member>
<member
name=
"M:Asa.RFID.Reader
2
.#ctor"
>
<member
name=
"M:Asa.RFID.Reader
All
.#ctor"
>
<summary>
<summary>
RFID
读卡器
RFID
</summary>
</summary>
</member>
</member>
<member
name=
"
M:Asa.RFID.Reader2.IsConn(System.Int32)
"
>
<member
name=
"
P:Asa.RFID.ReaderAll.LogPath
"
>
<summary>
<summary>
是否连接
日志目录
</summary>
</summary>
<returns></returns>
</member>
</member>
<member
name=
"M:Asa.RFID.Reader
2.AddIP
(System.String[])"
>
<member
name=
"M:Asa.RFID.Reader
All.Open
(System.String[])"
>
<summary>
<summary>
添加设备IP地址
打开所有
</summary>
</summary>
<param
name=
"ip"
></param>
<param
name=
"ip"
></param>
</member>
</member>
<member
name=
"M:Asa.RFID.Reader2.Connect(System.Boolean)"
>
<member
name=
"M:Asa.RFID.ReaderAll.Close"
>
<summary>
连接
</summary>
<param
name=
"autoScan"
>
自动扫描
</param>
</member>
<member
name=
"M:Asa.RFID.Reader2.Connect(System.Int32,System.Boolean)"
>
<summary>
连接
</summary>
<param
name=
"index"
></param>
<param
name=
"autoScan"
>
自动扫描
</param>
</member>
<member
name=
"M:Asa.RFID.Reader2.Close"
>
<summary>
<summary>
关闭所有
关闭所有
</summary>
</summary>
</member>
</member>
<member
name=
"M:Asa.RFID.Reader2.Close(System.Int32)"
>
<member
name=
"M:Asa.RFID.ReaderAll.Read(System.String)"
>
<summary>
关闭
</summary>
<param
name=
"index"
></param>
</member>
<member
name=
"M:Asa.RFID.Reader2.FindRFID(System.Int32)"
>
<summary>
查找电子标签
</summary>
<param
name=
"index"
></param>
<returns></returns>
</member>
<member
name=
"M:Asa.RFID.Reader2.GetID(System.Int32)"
>
<summary>
ID号码
</summary>
<param
name=
"index"
></param>
<returns></returns>
</member>
<member
name=
"M:Asa.RFID.Reader2.Read(System.Int32)"
>
<summary>
读取电子标签
</summary>
<param
name=
"index"
></param>
<returns></returns>
</member>
<member
name=
"M:Asa.RFID.Reader2.Read(System.Int32,System.Int32,System.Int32)"
>
<summary>
读取电子标签
</summary>
<param
name=
"index"
></param>
<param
name=
"start"
></param>
<param
name=
"len"
></param>
<returns></returns>
</member>
<member
name=
"M:Asa.RFID.Reader2.Write(System.Int32,System.Byte[],System.Int32)"
>
<summary>
<summary>
写入数据到电子标签
读取
</summary>
</summary>
<param
name=
"index"
></param>
<param
name=
"ip"
></param>
<param
name=
"buff"
></param>
<param
name=
"start"
></param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Asa.RFID.Reader2.AutoScan(System.Int32,System.Boolean)"
>
<member
name=
"M:Asa.RFID.ReaderAll.Clear(System.String)"
>
<summary>
自动读取扫描,扫描模式只读
</summary>
<param
name=
"idx"
></param>
<param
name=
"open"
></param>
</member>
<member
name=
"M:Asa.RFID.Reader2.Receive(System.Object)"
>
<summary>
自动扫描接受数据事件
</summary>
</member>
<member
name=
"M:Asa.RFID.Reader2.Find(System.Int32)"
>
<summary>
<summary>
查找电子标签
清零
</summary>
</summary>
<param
name=
"idx"
></param>
<param
name=
"ip"
></param>
</member>
<member
name=
"M:Asa.RFID.Reader2.ReadRFID(System.Int32)"
>
<summary>
读取电子标签内所有数据
</summary>
<param
name=
"idx"
></param>
</member>
<member
name=
"M:Asa.RFID.Reader2.ReadRFID(System.Int32,System.Int32)"
>
<summary>
读取电子标签指定块
</summary>
<param
name=
"idx"
></param>
<param
name=
"num"
></param>
</member>
<member
name=
"M:Asa.RFID.Reader2.WriteRFID(System.Int32,System.Int32)"
>
<summary>
写入指定块数据到电子标签
</summary>
<param
name=
"idx"
></param>
<param
name=
"num"
></param>
<returns></returns>
</member>
</member>
<member
name=
"T:Asa.RFID.IP"
>
<member
name=
"T:Asa.RFID.IP"
>
<summary>
<summary>
...
...
dll/RFID/Basic.dll
查看文件 @
b657c1c
此文件类型无法预览
dll/RFID/ClassLibrary1.dll
查看文件 @
b657c1c
此文件类型无法预览
dll/RFID/HFReader9CSharp.dll
查看文件 @
b657c1c
此文件类型无法预览
source/ACPackingStore/FrmBox.Designer.cs
查看文件 @
b657c1c
...
@@ -122,6 +122,10 @@
...
@@ -122,6 +122,10 @@
this
.
btnTempClose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTempClose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTempInit
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTempInit
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
axisMoveControl1
=
new
OnlineStore
.
ACPackingStore
.
AxisMoveControl
();
this
.
axisMoveControl1
=
new
OnlineStore
.
ACPackingStore
.
AxisMoveControl
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
txtCID
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label4
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnSaveCID
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupShelf
.
SuspendLayout
();
this
.
groupShelf
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabControl1
.
SuspendLayout
();
...
@@ -131,6 +135,7 @@
...
@@ -131,6 +135,7 @@
this
.
groupBox3
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
tabPage1
.
SuspendLayout
();
this
.
tabPage1
.
SuspendLayout
();
this
.
groupBox7
.
SuspendLayout
();
this
.
groupBox7
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// timer1
// timer1
...
@@ -1438,6 +1443,7 @@
...
@@ -1438,6 +1443,7 @@
//
//
// tabPage1
// tabPage1
//
//
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox2
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox7
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox7
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
axisMoveControl1
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
axisMoveControl1
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
29
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
29
);
...
@@ -1570,6 +1576,50 @@
...
@@ -1570,6 +1576,50 @@
this
.
axisMoveControl1
.
Size
=
new
System
.
Drawing
.
Size
(
547
,
449
);
this
.
axisMoveControl1
.
Size
=
new
System
.
Drawing
.
Size
(
547
,
449
);
this
.
axisMoveControl1
.
TabIndex
=
0
;
this
.
axisMoveControl1
.
TabIndex
=
0
;
//
//
// groupBox2
//
this
.
groupBox2
.
Controls
.
Add
(
this
.
txtCID
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
label4
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
btnSaveCID
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
560
,
177
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
532
,
88
);
this
.
groupBox2
.
TabIndex
=
273
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
Text
=
"CID修改"
;
//
// txtCID
//
this
.
txtCID
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtCID
.
Location
=
new
System
.
Drawing
.
Point
(
95
,
28
);
this
.
txtCID
.
MaxLength
=
30
;
this
.
txtCID
.
Name
=
"txtCID"
;
this
.
txtCID
.
Size
=
new
System
.
Drawing
.
Size
(
184
,
26
);
this
.
txtCID
.
TabIndex
=
243
;
this
.
txtCID
.
Text
=
"package-store-1"
;
//
// label4
//
this
.
label4
.
AutoSize
=
true
;
this
.
label4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label4
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label4
.
Location
=
new
System
.
Drawing
.
Point
(
41
,
33
);
this
.
label4
.
Name
=
"label4"
;
this
.
label4
.
Size
=
new
System
.
Drawing
.
Size
(
32
,
17
);
this
.
label4
.
TabIndex
=
242
;
this
.
label4
.
Text
=
"CID:"
;
this
.
label4
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// btnSaveCID
//
this
.
btnSaveCID
.
Location
=
new
System
.
Drawing
.
Point
(
322
,
24
);
this
.
btnSaveCID
.
Name
=
"btnSaveCID"
;
this
.
btnSaveCID
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
33
);
this
.
btnSaveCID
.
TabIndex
=
88
;
this
.
btnSaveCID
.
Text
=
"保存"
;
this
.
btnSaveCID
.
UseVisualStyleBackColor
=
true
;
this
.
btnSaveCID
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSaveCID_Click
);
//
// FrmBox
// FrmBox
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
96F
,
96F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
96F
,
96F
);
...
@@ -1598,6 +1648,8 @@
...
@@ -1598,6 +1648,8 @@
this
.
tabPage1
.
ResumeLayout
(
false
);
this
.
tabPage1
.
ResumeLayout
(
false
);
this
.
groupBox7
.
ResumeLayout
(
false
);
this
.
groupBox7
.
ResumeLayout
(
false
);
this
.
groupBox7
.
PerformLayout
();
this
.
groupBox7
.
PerformLayout
();
this
.
groupBox2
.
ResumeLayout
(
false
);
this
.
groupBox2
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
}
}
...
@@ -1702,6 +1754,10 @@
...
@@ -1702,6 +1754,10 @@
public
System
.
Windows
.
Forms
.
Button
btnUpdownP12
;
public
System
.
Windows
.
Forms
.
Button
btnUpdownP12
;
public
System
.
Windows
.
Forms
.
TextBox
txtInoutP11
;
public
System
.
Windows
.
Forms
.
TextBox
txtInoutP11
;
public
System
.
Windows
.
Forms
.
Button
btnInoutP11
;
public
System
.
Windows
.
Forms
.
Button
btnInoutP11
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox2
;
private
System
.
Windows
.
Forms
.
TextBox
txtCID
;
private
System
.
Windows
.
Forms
.
Label
label4
;
private
System
.
Windows
.
Forms
.
Button
btnSaveCID
;
}
}
}
}
source/ACPackingStore/FrmBox.cs
查看文件 @
b657c1c
...
@@ -53,6 +53,7 @@ namespace OnlineStore.ACPackingStore
...
@@ -53,6 +53,7 @@ namespace OnlineStore.ACPackingStore
this
.
Close
();
this
.
Close
();
return
;
return
;
}
}
txtCID
.
Text
=
BoxBean
.
CID
.
ToString
();
this
.
groupBox3
.
Text
=
"设备["
+
BoxBean
.
CID
+
"]状态"
;
this
.
groupBox3
.
Text
=
"设备["
+
BoxBean
.
CID
+
"]状态"
;
this
.
Text
=
BoxBean
.
Name
;
this
.
Text
=
BoxBean
.
Name
;
axisMoveControl1
.
LoadData
(
BoxBean
,
BoxBean
.
moveAxisList
.
ToArray
());
axisMoveControl1
.
LoadData
(
BoxBean
,
BoxBean
.
moveAxisList
.
ToArray
());
...
@@ -906,5 +907,15 @@ namespace OnlineStore.ACPackingStore
...
@@ -906,5 +907,15 @@ namespace OnlineStore.ACPackingStore
AxisABSMove
(
BoxBean
.
Config
.
Comp_Axis
,
value
,
BoxBean
.
Config
.
CompAxis_P2_Speed
);
AxisABSMove
(
BoxBean
.
Config
.
Comp_Axis
,
value
,
BoxBean
.
Config
.
CompAxis_P2_Speed
);
}
}
}
}
private
void
btnSaveCID_Click
(
object
sender
,
EventArgs
e
)
{
string
cid
=
txtCID
.
Text
.
Trim
();
DialogResult
result
=
MessageBox
.
Show
(
"确定将CID修改为【"
+
cid
+
"】,修改后需要重启生效"
,
""
,
MessageBoxButtons
.
YesNo
);
if
(
result
.
Equals
(
DialogResult
.
Yes
))
{
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
Store_CID
+
"_"
+
BoxBean
.
DeviceID
,
cid
);
}
}
}
}
}
}
source/ACPackingStore/FrmIOStatus.Designer.cs
查看文件 @
b657c1c
...
@@ -48,6 +48,8 @@
...
@@ -48,6 +48,8 @@
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
btnNGlineStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnNgLine
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
...
@@ -73,6 +75,8 @@
...
@@ -73,6 +75,8 @@
//
//
this
.
groupBox1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
this
.
groupBox1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnNGlineStop
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnNgLine
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnDoorStop
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnDoorStop
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnBlow
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnBlow
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnStoreOn
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnStoreOn
);
...
@@ -182,7 +186,7 @@
...
@@ -182,7 +186,7 @@
//
//
this
.
btnTopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTopDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopDown
.
Location
=
new
System
.
Drawing
.
Point
(
175
,
2
72
);
this
.
btnTopDown
.
Location
=
new
System
.
Drawing
.
Point
(
175
,
2
96
);
this
.
btnTopDown
.
Name
=
"btnTopDown"
;
this
.
btnTopDown
.
Name
=
"btnTopDown"
;
this
.
btnTopDown
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnTopDown
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnTopDown
.
TabIndex
=
289
;
this
.
btnTopDown
.
TabIndex
=
289
;
...
@@ -194,7 +198,7 @@
...
@@ -194,7 +198,7 @@
//
//
this
.
btnTopUp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTopUp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTopUp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopUp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTopUp
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
2
72
);
this
.
btnTopUp
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
2
96
);
this
.
btnTopUp
.
Name
=
"btnTopUp"
;
this
.
btnTopUp
.
Name
=
"btnTopUp"
;
this
.
btnTopUp
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnTopUp
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnTopUp
.
TabIndex
=
288
;
this
.
btnTopUp
.
TabIndex
=
288
;
...
@@ -206,7 +210,7 @@
...
@@ -206,7 +210,7 @@
//
//
this
.
btnNGDoorDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnNGDoorDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnNGDoorDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnNGDoorDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnNGDoorDown
.
Location
=
new
System
.
Drawing
.
Point
(
175
,
2
27
);
this
.
btnNGDoorDown
.
Location
=
new
System
.
Drawing
.
Point
(
175
,
2
51
);
this
.
btnNGDoorDown
.
Name
=
"btnNGDoorDown"
;
this
.
btnNGDoorDown
.
Name
=
"btnNGDoorDown"
;
this
.
btnNGDoorDown
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnNGDoorDown
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnNGDoorDown
.
TabIndex
=
287
;
this
.
btnNGDoorDown
.
TabIndex
=
287
;
...
@@ -218,7 +222,7 @@
...
@@ -218,7 +222,7 @@
//
//
this
.
btnNGDoorUp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnNGDoorUp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnNGDoorUp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnNGDoorUp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnNGDoorUp
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
2
27
);
this
.
btnNGDoorUp
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
2
51
);
this
.
btnNGDoorUp
.
Name
=
"btnNGDoorUp"
;
this
.
btnNGDoorUp
.
Name
=
"btnNGDoorUp"
;
this
.
btnNGDoorUp
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnNGDoorUp
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnNGDoorUp
.
TabIndex
=
286
;
this
.
btnNGDoorUp
.
TabIndex
=
286
;
...
@@ -332,7 +336,7 @@
...
@@ -332,7 +336,7 @@
//
//
this
.
btnLocationDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLocationDown
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLocationDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLocationDown
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLocationDown
.
Location
=
new
System
.
Drawing
.
Point
(
175
,
3
17
);
this
.
btnLocationDown
.
Location
=
new
System
.
Drawing
.
Point
(
175
,
3
41
);
this
.
btnLocationDown
.
Name
=
"btnLocationDown"
;
this
.
btnLocationDown
.
Name
=
"btnLocationDown"
;
this
.
btnLocationDown
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnLocationDown
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnLocationDown
.
TabIndex
=
251
;
this
.
btnLocationDown
.
TabIndex
=
251
;
...
@@ -357,7 +361,7 @@
...
@@ -357,7 +361,7 @@
//
//
this
.
btnLocationUp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLocationUp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLocationUp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLocationUp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLocationUp
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
3
17
);
this
.
btnLocationUp
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
3
41
);
this
.
btnLocationUp
.
Name
=
"btnLocationUp"
;
this
.
btnLocationUp
.
Name
=
"btnLocationUp"
;
this
.
btnLocationUp
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnLocationUp
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnLocationUp
.
TabIndex
=
250
;
this
.
btnLocationUp
.
TabIndex
=
250
;
...
@@ -459,6 +463,30 @@
...
@@ -459,6 +463,30 @@
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
570
);
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
570
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
//
// btnNGlineStop
//
this
.
btnNGlineStop
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnNGlineStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnNGlineStop
.
Location
=
new
System
.
Drawing
.
Point
(
175
,
210
);
this
.
btnNGlineStop
.
Name
=
"btnNGlineStop"
;
this
.
btnNGlineStop
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnNGlineStop
.
TabIndex
=
298
;
this
.
btnNGlineStop
.
Text
=
"NG线体停止"
;
this
.
btnNGlineStop
.
UseVisualStyleBackColor
=
false
;
this
.
btnNGlineStop
.
Click
+=
new
System
.
EventHandler
(
this
.
btnNGlineStop_Click
);
//
// btnNgLine
//
this
.
btnNgLine
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnNgLine
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnNgLine
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
210
);
this
.
btnNgLine
.
Name
=
"btnNgLine"
;
this
.
btnNgLine
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
34
);
this
.
btnNgLine
.
TabIndex
=
297
;
this
.
btnNgLine
.
Text
=
"NG线体运转"
;
this
.
btnNgLine
.
UseVisualStyleBackColor
=
false
;
this
.
btnNgLine
.
Click
+=
new
System
.
EventHandler
(
this
.
btnNgLine_Click
);
//
// FrmIOStatus
// FrmIOStatus
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
...
@@ -517,6 +545,8 @@
...
@@ -517,6 +545,8 @@
private
System
.
Windows
.
Forms
.
Button
btnStoreOn
;
private
System
.
Windows
.
Forms
.
Button
btnStoreOn
;
private
System
.
Windows
.
Forms
.
Button
btnBlow
;
private
System
.
Windows
.
Forms
.
Button
btnBlow
;
private
System
.
Windows
.
Forms
.
Button
btnDoorStop
;
private
System
.
Windows
.
Forms
.
Button
btnDoorStop
;
private
System
.
Windows
.
Forms
.
Button
btnNGlineStop
;
private
System
.
Windows
.
Forms
.
Button
btnNgLine
;
}
}
}
}
source/ACPackingStore/FrmIOStatus.cs
查看文件 @
b657c1c
...
@@ -348,5 +348,15 @@ namespace OnlineStore.ACPackingStore
...
@@ -348,5 +348,15 @@ namespace OnlineStore.ACPackingStore
{
{
boxBean
.
DoorBean
.
Stop
();
boxBean
.
DoorBean
.
Stop
();
}
}
private
void
btnNgLine_Click
(
object
sender
,
EventArgs
e
)
{
boxBean
.
IOMove
(
IO_Type
.
NGLine_Run
,
IO_VALUE
.
HIGH
);
}
private
void
btnNGlineStop_Click
(
object
sender
,
EventArgs
e
)
{
boxBean
.
IOMove
(
IO_Type
.
NGLine_Run
,
IO_VALUE
.
LOW
);
}
}
}
}
}
source/ACPackingStore/FrmRFIPEdit.cs
查看文件 @
b657c1c
...
@@ -61,7 +61,7 @@ namespace OnlineStore.ACPackingStore
...
@@ -61,7 +61,7 @@ namespace OnlineStore.ACPackingStore
private
void
button1_Click
(
object
sender
,
EventArgs
e
)
private
void
button1_Click
(
object
sender
,
EventArgs
e
)
{
{
string
ip
=
txtIP
.
Text
;
string
ip
=
txtIP
.
Text
;
RFIDData
data
=
RFIDManager
.
Read
Data
(
ip
);
RFIDData
data
=
RFIDManager
.
Read
RFID
(
ip
);
string
resul
=
""
;
string
resul
=
""
;
if
(
data
!=
null
)
if
(
data
!=
null
)
{
{
...
...
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean.cs
查看文件 @
b657c1c
...
@@ -262,8 +262,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -262,8 +262,7 @@ namespace OnlineStore.DeviceLibrary
LogInfo
(
MoveInfo
.
MoveType
+
": 开始料架入库,线体停止,进出轴先原点返回"
);
LogInfo
(
MoveInfo
.
MoveType
+
": 开始料架入库,线体停止,进出轴先原点返回"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
IOMove
(
IO_Type
.
Line_BackRun
,
IO_VALUE
.
LOW
);
LineStop
();
IOMove
(
IO_Type
.
Line_Run
,
IO_VALUE
.
LOW
);
ACAxisHomeMove
(
Config
.
InOut_Axis
);
ACAxisHomeMove
(
Config
.
InOut_Axis
);
}
}
...
@@ -285,9 +284,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -285,9 +284,8 @@ namespace OnlineStore.DeviceLibrary
case
StoreMoveStep
.
BOX_H01_InOutBack
:
case
StoreMoveStep
.
BOX_H01_InOutBack
:
Thread
.
Sleep
(
200
);
Thread
.
Sleep
(
200
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BOX_H02_InoutTOP1_TopDown
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BOX_H02_InoutTOP1_TopDown
);
LogInfo
(
MoveInfo
.
MoveType
+
": ,线体停止,进出轴到待机点P1,顶升气缸下降,NG门下降,入料移门关闭"
);
LogInfo
(
MoveInfo
.
MoveType
+
": 线体停止,进出轴到待机点P1,顶升气缸下降,NG门下降,入料移门关闭"
);
IOMove
(
IO_Type
.
Line_BackRun
,
IO_VALUE
.
LOW
);
LineStop
();
IOMove
(
IO_Type
.
Line_Run
,
IO_VALUE
.
LOW
);
AxisCountClear
(
Config
.
InOut_Axis
);
AxisCountClear
(
Config
.
InOut_Axis
);
ACAxisMove
(
Config
.
InOut_Axis
,
Config
.
InOutAxis_P1_Position
,
Config
.
InOutAxis_P1_Speed
);
ACAxisMove
(
Config
.
InOut_Axis
,
Config
.
InOutAxis_P1_Position
,
Config
.
InOutAxis_P1_Speed
);
CylinderMove
(
MoveInfo
,
IO_Type
.
NGDoowCylinder_Up
,
IO_Type
.
NGDoorCylinder_Down
);
CylinderMove
(
MoveInfo
,
IO_Type
.
NGDoowCylinder_Up
,
IO_Type
.
NGDoorCylinder_Down
);
...
@@ -299,28 +297,20 @@ namespace OnlineStore.DeviceLibrary
...
@@ -299,28 +297,20 @@ namespace OnlineStore.DeviceLibrary
if
(
IOValue
(
IO_Type
.
LineTake_Check
).
Equals
(
IO_VALUE
.
HIGH
))
if
(
IOValue
(
IO_Type
.
LineTake_Check
).
Equals
(
IO_VALUE
.
HIGH
))
{
{
LogInfo
(
MoveInfo
.
MoveType
+
":取料工位有料架,线体停止 "
);
LogInfo
(
MoveInfo
.
MoveType
+
":取料工位有料架,线体停止 "
);
IOMove
(
IO_Type
.
Line_BackRun
,
IO_VALUE
.
LOW
);
LineStop
();
IOMove
(
IO_Type
.
Line_Run
,
IO_VALUE
.
LOW
);
}
}
else
else
{
{
LogInfo
(
MoveInfo
.
MoveType
+
":取料工位无料架, 线体先正转3000"
);
LogInfo
(
MoveInfo
.
MoveType
+
":取料工位无料架, 线体先正转3000或等待取料工位有料架"
);
IOMove
(
IO_Type
.
Line_BackRun
,
IO_VALUE
.
LOW
);
LineRun
();
IOMove
(
IO_Type
.
Line_Run
,
IO_VALUE
.
HIGH
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LineTake_Check
,
IO_VALUE
.
HIGH
));
MoveInfo
.
OneWaitCanEndStep
=
true
;
}
}
break
;
break
;
// Thread.Sleep(200);
// MoveInfo.NextMoveStep(StoreMoveStep.BOX_H04_InOutToP1);
// LogInfo(MoveInfo.MoveType + ": 进出轴到待机点P1,关闭舱门,关闭入料移门");
// //进出轴原点返回完成,将进出轴的位置设置=0
// AxisCountClear(Config.InOut_Axis);
// ACAxisMove(Config.InOut_Axis, Config.InOutAxis_P1_Position, Config.InOutAxis_P1_Speed);
// CylinderMove(MoveInfo, IO_Type.NGDoowCylinder_Up, IO_Type.NGDoorCylinder_Down);
// DoorBean.StartClose(MoveInfo);
// break;
//case StoreMoveStep.BOX_H04_InOutToP1:
case
StoreMoveStep
.
BOX_H03_LineRun
:
case
StoreMoveStep
.
BOX_H03_LineRun
:
LineStop
();
//如果此时轴三还在报警,需要提示错误并等待
//如果此时轴三还在报警,需要提示错误并等待
if
(
ACServerManager
.
GetAlarmStatus
(
Config
.
InOut_Axis
.
DeviceName
,
Config
.
InOut_Axis
.
GetAxisValue
())
>
0
)
if
(
ACServerManager
.
GetAlarmStatus
(
Config
.
InOut_Axis
.
DeviceName
,
Config
.
InOut_Axis
.
GetAxisValue
())
>
0
)
{
{
...
@@ -330,7 +320,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -330,7 +320,7 @@ namespace OnlineStore.DeviceLibrary
return
;
return
;
}
}
//复位和回原点要等轴3进出轴ORG亮了以后才能返回其他轴
//复位和回原点要等轴3进出轴ORG亮了以后才能返回其他轴
LogInfo
(
MoveInfo
.
MoveType
+
": 压紧轴,旋转轴,上下轴开始 原点返回"
);
LogInfo
(
MoveInfo
.
MoveType
+
":
线体停止转动,
压紧轴,旋转轴,上下轴开始 原点返回"
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BOX_H05_OtherAxisBack
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BOX_H05_OtherAxisBack
);
ACAxisHomeMove
(
Config
.
Comp_Axis
);
ACAxisHomeMove
(
Config
.
Comp_Axis
);
ACAxisHomeMove
(
Config
.
Middle_Axis
);
ACAxisHomeMove
(
Config
.
Middle_Axis
);
...
@@ -1079,5 +1069,21 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1079,5 +1069,21 @@ namespace OnlineStore.DeviceLibrary
}
}
#
endregion
#
endregion
public
void
LineRun
()
{
IOMove
(
IO_Type
.
Line_BackRun
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
Line_Run
,
IO_VALUE
.
HIGH
);
}
public
void
LineBackRun
()
{
IOMove
(
IO_Type
.
Line_Run
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
Line_BackRun
,
IO_VALUE
.
HIGH
);
}
public
void
LineStop
()
{
IOMove
(
IO_Type
.
Line_BackRun
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
Line_Run
,
IO_VALUE
.
LOW
);
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Partial.cs
查看文件 @
b657c1c
...
@@ -61,7 +61,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -61,7 +61,7 @@ namespace OnlineStore.DeviceLibrary
wait
.
IsEnd
=
IOValue
(
wait
.
IoType
).
Equals
(
wait
.
IoValue
);
wait
.
IsEnd
=
IOValue
(
wait
.
IoType
).
Equals
(
wait
.
IoValue
);
int
timeOutMs
=
Config
.
IOSingle_TimerOut
;
int
timeOutMs
=
Config
.
IOSingle_TimerOut
;
if
((!
wait
.
IsEnd
)
&&
span
.
TotalMilliseconds
>
timeOutMs
&&
NoAlarm
())
if
((!
wait
.
IsEnd
)
&&
span
.
TotalMilliseconds
>
timeOutMs
&&
NoAlarm
())
{
{
ConfigIO
io
=
Config
.
getWaitIO
(
wait
.
IoType
);
ConfigIO
io
=
Config
.
getWaitIO
(
wait
.
IoType
);
WarnMsg
=
Name
+
" 等待信号"
+
io
.
DisplayStr
+
"="
+
wait
.
IoValue
+
"超时!"
;
WarnMsg
=
Name
+
" 等待信号"
+
io
.
DisplayStr
+
"="
+
wait
.
IoValue
+
"超时!"
;
...
@@ -88,7 +88,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -88,7 +88,7 @@ namespace OnlineStore.DeviceLibrary
else
else
{
{
bool
result
=
ACAxisMoveIsEnd
(
wait
.
AxisInfo
,
wait
.
TargetPosition
,
wait
.
TargetSpeed
,
out
msg
);
bool
result
=
ACAxisMoveIsEnd
(
wait
.
AxisInfo
,
wait
.
TargetPosition
,
wait
.
TargetSpeed
,
out
msg
);
if
(!
result
)
if
(!
result
&&
(!
msg
.
Equals
(
""
))
)
{
{
LogUtil
.
error
(
msg
);
LogUtil
.
error
(
msg
);
}
}
...
@@ -256,7 +256,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -256,7 +256,7 @@ namespace OnlineStore.DeviceLibrary
private
void
UpdateShelfId
()
private
void
UpdateShelfId
()
{
{
//读取RFID
//读取RFID
RFIDData
data
=
RFIDManager
.
Read
Data
(
Config
.
RFID_IP
);
RFIDData
data
=
RFIDManager
.
Read
RFID
(
Config
.
RFID_IP
);
//TODO 判断料架是否正确
//TODO 判断料架是否正确
if
(
data
.
RFType
.
Equals
(
"A"
))
if
(
data
.
RFType
.
Equals
(
"A"
))
{
{
...
@@ -744,8 +744,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -744,8 +744,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_03_LineRun
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_03_LineRun
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"调用AgvClient.MayEnter,线体正转,等待取料位检测到信号"
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"调用AgvClient.MayEnter,线体正转,等待取料位检测到信号"
);
AgvClient
.
MayEnter
(
Config
.
AgvNodeName
);
AgvClient
.
MayEnter
(
Config
.
AgvNodeName
);
IOMove
(
IO_Type
.
Line_BackRun
,
IO_VALUE
.
LOW
);
LineRun
();
IOMove
(
IO_Type
.
Line_Run
,
IO_VALUE
.
HIGH
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LineIn_Check
,
IO_VALUE
.
LOW
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LineIn_Check
,
IO_VALUE
.
LOW
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LineTake_Check
,
IO_VALUE
.
HIGH
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LineTake_Check
,
IO_VALUE
.
HIGH
));
...
@@ -754,7 +753,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -754,7 +753,7 @@ namespace OnlineStore.DeviceLibrary
{
{
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_04_LineStop
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_04_LineStop
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"调用AgvClient.FinishEnter,取料位检测到信号,停止线体正转"
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"调用AgvClient.FinishEnter,取料位检测到信号,停止线体正转"
);
IOMove
(
IO_Type
.
Line_Run
,
IO_VALUE
.
LOW
);
LineStop
(
);
AgvClient
.
FinishEnter
(
Config
.
AgvNodeName
);
AgvClient
.
FinishEnter
(
Config
.
AgvNodeName
);
if
(!
instoreShelf
)
if
(!
instoreShelf
)
...
@@ -796,8 +795,16 @@ namespace OnlineStore.DeviceLibrary
...
@@ -796,8 +795,16 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BI_05_DoorClose
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BI_05_DoorClose
))
{
{
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_06_LocationUp
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_06_LineRun
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
MoveInfo
.
SLog
+
"定位装置上升"
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"继续转动1500"
);
LineRun
();
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1500
));
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BI_06_LineRun
))
{
LineStop
();
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_07_LocationUp
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"线体停止转动,定位装置上升"
);
// CylinderMove(MoveInfo, IO_Type.LocationCylinder_Down, IO_Type.LocationCylinder_Up);
// CylinderMove(MoveInfo, IO_Type.LocationCylinder_Down, IO_Type.LocationCylinder_Up);
if
(!
instoreShelf
)
if
(!
instoreShelf
)
...
@@ -806,9 +813,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -806,9 +813,9 @@ namespace OnlineStore.DeviceLibrary
ACAxisMove
(
Config
.
InOut_Axis
,
MoveInfo
.
MoveParam
.
MoveP
.
InOut_P3
,
Config
.
InOutAxis_P3_Speed
);
ACAxisMove
(
Config
.
InOut_Axis
,
MoveInfo
.
MoveParam
.
MoveP
.
InOut_P3
,
Config
.
InOutAxis_P3_Speed
);
}
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BI_0
6
_LocationUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BI_0
7
_LocationUp
))
{
{
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_0
7_TopCylinderUp
);
MoveInfo
.
NextMoveStep
(
StoreMoveStep
.
BI_0
8_StartGetTray
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"顶升装置上升"
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
"顶升装置上升"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_Up
);
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_Up
);
...
@@ -819,7 +826,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -819,7 +826,7 @@ namespace OnlineStore.DeviceLibrary
ACAxisMove
(
Config
.
UpDown_Axis
,
MoveInfo
.
MoveParam
.
MoveP
.
UpDown_P6
,
Config
.
UpDownAxis_P6_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
MoveInfo
.
MoveParam
.
MoveP
.
UpDown_P6
,
Config
.
UpDownAxis_P6_Speed
);
}
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BI_0
7_TopCylinderUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BI_0
8_StartGetTray
))
{
{
if
(
instoreShelf
)
if
(
instoreShelf
)
{
{
...
@@ -838,7 +845,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -838,7 +845,6 @@ namespace OnlineStore.DeviceLibrary
lastPosIdStatus
=
StoreStatus
.
OutStoreBoxEnd
;
lastPosIdStatus
=
StoreStatus
.
OutStoreBoxEnd
;
storeStatus
=
StoreStatus
.
OutStoreBoxEnd
;
storeStatus
=
StoreStatus
.
OutStoreBoxEnd
;
}
}
}
}
}
}
...
@@ -896,8 +902,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -896,8 +902,7 @@ namespace OnlineStore.DeviceLibrary
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
": 调用AgvClient.MayOut,线体开始反转"
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
": 调用AgvClient.MayOut,线体开始反转"
);
}
}
AgvClient
.
MayOut
(
Config
.
AgvNodeName
);
AgvClient
.
MayOut
(
Config
.
AgvNodeName
);
IOMove
(
IO_Type
.
Line_Run
,
IO_VALUE
.
LOW
);
LineBackRun
();
IOMove
(
IO_Type
.
Line_BackRun
,
IO_VALUE
.
HIGH
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BS_04_LineBack
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
StoreMoveStep
.
BS_04_LineBack
))
{
{
...
@@ -922,8 +927,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -922,8 +927,7 @@ namespace OnlineStore.DeviceLibrary
EmprtShelfList
=
new
ConcurrentQueue
<
string
>();
EmprtShelfList
=
new
ConcurrentQueue
<
string
>();
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
":停止转动,料架入料结束"
);
InOutStoreLog
(
moveName
+
MoveInfo
.
SLog
+
":停止转动,料架入料结束"
);
IOMove
(
IO_Type
.
Line_Run
,
IO_VALUE
.
LOW
);
LineStop
();
IOMove
(
IO_Type
.
Line_BackRun
,
IO_VALUE
.
LOW
);
}
}
}
}
...
...
source/DeviceLibrary/DeviceLibrary.csproj
查看文件 @
b657c1c
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
<Reference Include="Asa.IOModule.AIOBOX">
<Reference Include="Asa.IOModule.AIOBOX">
<HintPath>..\..\dll\Asa.IOModule.AIOBOX.dll</HintPath>
<HintPath>..\..\dll\Asa.IOModule.AIOBOX.dll</HintPath>
</Reference>
</Reference>
<Reference Include="
ClassLibrary1
">
<Reference Include="
Asa.RFID
">
<HintPath>..\..\
..\RC1250-AssemblyLine\dll\RFID\ClassLibrary1
.dll</HintPath>
<HintPath>..\..\
dll\RFID\Asa.RFID
.dll</HintPath>
</Reference>
</Reference>
<Reference Include="Client">
<Reference Include="Client">
<HintPath>..\..\dll\Client.dll</HintPath>
<HintPath>..\..\dll\Client.dll</HintPath>
...
...
source/DeviceLibrary/device/RFID/RFIDManager.cs
查看文件 @
b657c1c
using
Asa
;
using
Asa
.RFID
;
using
OnlineStore.Common
;
using
OnlineStore.Common
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
...
@@ -7,53 +7,33 @@ using System.Linq;
...
@@ -7,53 +7,33 @@ using System.Linq;
using
System.Text
;
using
System.Text
;
using
System.Threading
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
namespace
OnlineStore.DeviceLibrary
namespace
OnlineStore.DeviceLibrary
{
{
public
class
RFIDManager
public
class
RFIDManager
{
{
public
static
RFID
RfidReader
=
new
RFID
();
public
static
ReaderAll
RfidReader
=
new
Asa
.
RFID
.
ReaderAll
();
// private static int DefaultTrayNum = ConfigAppSettings.GetIntValue(Setting_Init.DefaultTrayNum);
///// <summary>
///// 获取托盘编码
///// </summary>
//public static int GetTrayNum(int subType, bool isClear = false)
//{
// if (DefaultTrayNum > 0)
// {
// return DefaultTrayNum;
// }
// // return 9;
// if (subType.Equals(104))
// {
// return LineManager.Line.Sw23TrayNum;
// }
// else if (subType.Equals(101))
// {
// return LineManager.Line.Sw41TrayNum;
// }
// string ip = GetRFIP(subType);
// //获取盘号
// RFIDData data = ReadRFID(ip, isClear);
// if (data != null)
// {
// if (data.RFType.Equals((byte)'E'))
// {
// return data.Num;
// }
// return 0;
// }
// return 0;
//}
public
static
void
Open
(
string
[]
iparray
)
{
string
path
=
Application
.
StartupPath
+
@"\logs\rfid\"
;
RFIDManager
.
RfidReader
.
LogPath
=
path
;
// string[] rfidArray = rfidList.ToArray();
//连接rfip
RFIDManager
.
RfidReader
.
Open
(
iparray
);
RfidReader
.
GetValue
+=
RfidReader_GetValue
;
}
public
static
RFIDData
ReadData
(
string
ip
,
bool
isClear
=
false
)
private
static
void
RfidReader_GetValue
(
string
s
)
{
LogUtil
.
info
(
"RfidReader_GetValue:"
+
s
);
}
public
static
RFIDData
ReadRFID
(
string
ip
,
bool
isClear
=
false
)
{
{
try
try
{
{
// if (String.IsNullOrEmpty(ip).Equals(false) && LineManager.Line.rfidList.Contains(ip)
)
if
(
String
.
IsNullOrEmpty
(
ip
).
Equals
(
false
)
)
{
{
RFIDData
data
=
new
RFIDData
(
RfidReader
.
Read
(
ip
));
RFIDData
data
=
new
RFIDData
(
RfidReader
.
Read
(
ip
));
if
(
isClear
)
if
(
isClear
)
...
@@ -70,20 +50,19 @@ namespace OnlineStore.DeviceLibrary
...
@@ -70,20 +50,19 @@ namespace OnlineStore.DeviceLibrary
return
new
RFIDData
(-
1
,
-
1
);
return
new
RFIDData
(-
1
,
-
1
);
}
}
//public static string GetRFIP(int subType, int rtType = 0)
//{
public
static
void
Close
()
// string ip = "";
{
// string rtName = DeviceConfig.RFIP_Str + "_" + subType.ToString().PadLeft(3, '0');
try
// if (rtType > 0)
{
// {
RfidReader
.
Close
();
// rtName += "-" + rtType.ToString();
}
// }
catch
(
Exception
ex
)
// if (DeviceConfig.ProRFIpMap.ContainsKey(rtName))
{
// {
LogUtil
.
error
(
"关闭RFID出错:"
+
ex
.
ToString
());
// ip = DeviceConfig.ProRFIpMap[rtName];
}
// }
}
// return ip;
//}
}
}
public
class
RFIDData
public
class
RFIDData
{
{
...
...
source/DeviceLibrary/store/StoreStep.cs
查看文件 @
b657c1c
...
@@ -182,13 +182,17 @@ namespace OnlineStore.DeviceLibrary
...
@@ -182,13 +182,17 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
BI_05_DoorClose
=
1005
,
BI_05_DoorClose
=
1005
,
/// <summary>
/// <summary>
/// 线体再正转1秒
/// </summary>
BI_06_LineRun
=
1006
,
/// <summary>
/// 料架入库:定位装置上升
/// 料架入库:定位装置上升
/// </summary>
/// </summary>
BI_0
6_LocationUp
=
1006
,
BI_0
7_LocationUp
=
1007
,
/// <summary>
/// <summary>
/// 料架入库:顶升装置上升
/// 料架入库:顶升装置上升
/// </summary>
/// </summary>
BI_0
7_TopCylinderUp
=
1007
,
BI_0
8_TopCylinderUp
=
1008
,
#
endregion
#
endregion
...
...
source/LoadCVSLibrary/position/CSVPositionReader.cs
查看文件 @
b657c1c
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论