Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO20242OutBound
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 79191892
由
LN
编写于
2023-07-02 12:39:33 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
bug修改
1 个父辈
bfb74392
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
134 行增加
和
46 行删除
DeviceLibrary/theMachine/InReelBean.cs
DeviceLibrary/theMachine/MainMachine.cs
DeviceLibrary/theMachine/OutShelfBean.cs
DeviceLibrary/theMachine/OutShelfBean_AgvPro.cs
LoadCVSLibrary/Config/Config.csv
SharedDLL/Asa.RFID.PuYue.dll
TheMachine/FormMain.Designer.cs
TheMachine/FormMain.cs
TheMachine/IOControls.Designer.cs
TheMachine/IOControls.cs
DeviceLibrary/theMachine/InReelBean.cs
查看文件 @
7919189
...
...
@@ -106,8 +106,9 @@ namespace DeviceLibrary
case
MoveStep
.
IN02_ScanCode
:
if
(
ScanCodeTask
==
null
||
ScanCodeTask
.
IsCompleted
)
{
MoveInfo
.
NewMove
(
MoveStep
.
IN03_GetPos
);
MoveInfo
.
log
(
"获取库位号"
);
//MoveInfo.NewMove(MoveStep.IN03_GetPos);
//MoveInfo.log("获取库位号");
IN03_GetPos
();
}
else
if
(
MoveInfo
.
IsTimeOut
(
60
))
{
...
...
DeviceLibrary/theMachine/MainMachine.cs
查看文件 @
7919189
...
...
@@ -649,6 +649,13 @@ namespace DeviceLibrary
}
private
void
ClearNgPos
()
{
//清空ng库位列表
LogUtil
.
info
(
"ClearNgPos清空NG库位缓存列表"
);
NgPosMap
=
new
Dictionary
<
string
,
ReelParam
>();
}
public
string
getReadyShelf
(
string
split
=
","
)
{
string
rfid
=
""
;
...
...
DeviceLibrary/theMachine/OutShelfBean.cs
查看文件 @
7919189
...
...
@@ -8,16 +8,17 @@ namespace DeviceLibrary
{
public
partial
class
OutShelfBean
:
BaseBean
{
public
static
PuYueRFID_C2S
RFID
=
null
;
public
PuYueRFID_C2S
RFID
=
null
;
/// <summary>
/// 出料口定位气缸,high=up,low=down
/// </summary>
private
CylinderManger
locationCylinder
;
public
ShelfInfo
CurrShelf
;
public
ShelfInfo
CurrShelf
=
new
ShelfInfo
()
;
public
string
rfidIp
;
public
int
agvId
;
public
string
agvName
;
public
bool
rfidOpenOk
=
false
;
public
OutShelfBean
(
string
name
,
string
ip
,
int
agvid
,
string
agvname
)
{
...
...
@@ -44,6 +45,11 @@ namespace DeviceLibrary
{
SetWarnMsg
(
name
+
" RFID 打开失败:"
+
rfidIp
);
}
else
{
rfidOpenOk
=
true
;
LogUtil
.
info
(
$
"RFID[{RFID.IP}] 打开成功"
);
}
#
endregion
}
public
void
Reset
()
...
...
@@ -275,7 +281,7 @@ namespace DeviceLibrary
case
MoveStep
.
S04_WaitTime
:
//如果料架需要离开,直接离开
if
(
CurrShelf
.
IsNeedLeave
)
if
(
CurrShelf
!=
null
&&
CurrShelf
.
IsNeedLeave
)
{
S21_ShelfNeedLeave
(
"料架已经是离开状态"
);
}
...
...
@@ -406,26 +412,53 @@ namespace DeviceLibrary
private
bool
ReadShelfId
()
{
CurrShelf
=
new
ShelfInfo
(
""
);
if
(
RFID
.
Open
()
)
if
(
!
rfidOpenOk
)
{
if
(
RFID
.
ReadByte
(
0x20
,
16
,
out
byte
[]
data
))
{
string
rfid
=
Encoding
.
ASCII
.
GetString
(
data
).
Trim
();
CurrShelf
=
new
ShelfInfo
(
rfid
);
LogUtil
.
info
(
Name
+
"RFID["
+
rfidIp
+
"]读取到料架号:"
+
CurrShelf
.
ToStr
());
return
true
;
rfidOpenOk
=
RFID
.
Open
();
if
(!
rfidOpenOk
)
{
SetWarnMsg
(
Name
+
"RFID["
+
RFID
.
IP
+
"]打开失败"
,
MsgLevel
.
alarm
);
}
else
}
//if (RFID.Open())
//{
if
(
RFID
.
ReadByte
(
0x20
,
16
,
out
byte
[]
data
,
out
string
errmsg
))
{
string
rfid
=
Encoding
.
ASCII
.
GetString
(
data
).
Trim
().
TrimEnd
(
'\0'
);
CurrShelf
=
new
ShelfInfo
(
rfid
);
LogUtil
.
info
(
Name
+
"RFID["
+
RFID
.
IP
+
"]读取到料架号:"
+
CurrShelf
.
ToStr
());
return
true
;
}
else
{
//读取失败,重试之类
SetWarnMsg
(
Name
+
"RFID["
+
RFID
.
IP
+
"]读取失败:"
+
errmsg
,
MsgLevel
.
alarm
);
}
//}
//else
//{
// SetWarnMsg(Name + "RFID[" + RFID.IP + "]打开失败", MsgLevel.alarm);
//}
return
false
;
}
public
string
ReadTest
()
{
if
(!
rfidOpenOk
)
{
rfidOpenOk
=
RFID
.
Open
();
if
(!
rfidOpenOk
)
{
//读取失败,重试之类
SetWarnMsg
(
Name
+
"RFID["
+
rfidIp
+
"]读取失败"
,
MsgLevel
.
alarm
);
return
"RFID["
+
RFID
.
IP
+
"]打开失败"
;
}
}
else
if
(
RFID
.
ReadByte
(
0x20
,
16
,
out
byte
[]
data
,
out
string
errmsg
))
{
SetWarnMsg
(
Name
+
"RFID["
+
rfidIp
+
"]打开失败"
,
MsgLevel
.
alarm
);
string
rfid
=
Encoding
.
ASCII
.
GetString
(
data
).
Trim
().
TrimEnd
(
'\0'
);
return
rfid
;
}
return
false
;
return
"RFID["
+
RFID
.
IP
+
"]读取失败:"
+
errmsg
;
}
#
region
IO
操作
...
...
DeviceLibrary/theMachine/OutShelfBean_AgvPro.cs
查看文件 @
7919189
...
...
@@ -43,7 +43,7 @@ namespace DeviceLibrary
}
AgvClient
.
SetToNone
(
agvId
,
agvName
);
}
else
if
(
CurrShelf
.
realRFID
.
Equals
(
""
)
&&
IOManager
.
IOValue
(
Shelf_Front_Check
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOManager
.
IOValue
(
Shelf_Back_Check
).
Equals
(
IO_VALUE
.
LOW
))
else
if
(
(
CurrShelf
==
null
||
CurrShelf
.
realRFID
.
Equals
(
""
)
)
&&
IOManager
.
IOValue
(
Shelf_Front_Check
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOManager
.
IOValue
(
Shelf_Back_Check
).
Equals
(
IO_VALUE
.
LOW
))
{
if
(
locationCylinder
.
IsLow
())
{
...
...
LoadCVSLibrary/Config/Config.csv
查看文件 @
7919189
...
...
@@ -4,10 +4,10 @@ AXIS,,升降轴,UpDown_Axis,1,HC,,20000,0,0,0,40000,0,10,700,0,0
AXIS,,进出轴,InOut_Axis,2,HC,,100000,0,0,0,40000,0,10,700,0,
AXIS,,压紧轴,Comp_Axis,3,HC,,100000,0,0,0,40000,0,10,700,0,0
,,,,,,,,,,,,,,,,
PRO,50,RFID-U1,RFID_U1,192.168.10
.
1,,,,,,,,,,,,
PRO,50,RFID-U2,RFID_U2,192.168.10
.
2,,,,,,,,,,,,
PRO,50,RFID-U3,RFID_U3,192.168.10
.
3,,,,,,,,,,,,
PRO,50,RFID-U4,RFID_U4,192.168.10
.
4,,,,,,,,,,,,
PRO,50,RFID-U1,RFID_U1,192.168.10
3.2
1,,,,,,,,,,,,
PRO,50,RFID-U2,RFID_U2,192.168.10
3.2
2,,,,,,,,,,,,
PRO,50,RFID-U3,RFID_U3,192.168.10
3.2
3,,,,,,,,,,,,
PRO,50,RFID-U4,RFID_U4,192.168.10
3.2
4,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
DI,0,急停,SuddenStop_BTN,0,HC,X00,,,,,,,,,,
DI,0,复位,Reset_BTN,1,HC,X01,,,,,,,,,,
...
...
SharedDLL/Asa.RFID.PuYue.dll
查看文件 @
7919189
此文件类型无法预览
TheMachine/FormMain.Designer.cs
查看文件 @
7919189
...
...
@@ -49,6 +49,7 @@ namespace TheMachine
this
.
tabc
=
new
System
.
Windows
.
Forms
.
TabControl
();
this
.
tabP1
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
pnl
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
chbDIsAgv
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
btnDownScan
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpScan
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnResetOut4
=
new
System
.
Windows
.
Forms
.
Button
();
...
...
@@ -62,7 +63,7 @@ namespace TheMachine
this
.
btn_IgnoreX09
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_PauseBuzzer
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
listView1
=
new
System
.
Windows
.
Forms
.
ListView
();
this
.
chbDIsAgv
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
btnClearNgPos
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
menuStrip1
.
SuspendLayout
();
this
.
tabc
.
SuspendLayout
();
this
.
tabP1
.
SuspendLayout
();
...
...
@@ -107,32 +108,32 @@ namespace TheMachine
// btn_run
//
this
.
btn_run
.
Name
=
"btn_run"
;
this
.
btn_run
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
btn_run
.
Size
=
new
System
.
Drawing
.
Size
(
1
76
,
26
);
this
.
btn_run
.
Text
=
"启动"
;
this
.
btn_run
.
Click
+=
new
System
.
EventHandler
(
this
.
btn_run_Click
);
//
// toolStripSeparator2
//
this
.
toolStripSeparator2
.
Name
=
"toolStripSeparator2"
;
this
.
toolStripSeparator2
.
Size
=
new
System
.
Drawing
.
Size
(
17
7
,
6
);
this
.
toolStripSeparator2
.
Size
=
new
System
.
Drawing
.
Size
(
17
3
,
6
);
//
// btn_stop
//
this
.
btn_stop
.
Name
=
"btn_stop"
;
this
.
btn_stop
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
btn_stop
.
Size
=
new
System
.
Drawing
.
Size
(
1
76
,
26
);
this
.
btn_stop
.
Text
=
"停止"
;
this
.
btn_stop
.
Click
+=
new
System
.
EventHandler
(
this
.
btn_stop_Click
);
//
// toolStripSeparator3
//
this
.
toolStripSeparator3
.
Name
=
"toolStripSeparator3"
;
this
.
toolStripSeparator3
.
Size
=
new
System
.
Drawing
.
Size
(
17
7
,
6
);
this
.
toolStripSeparator3
.
Size
=
new
System
.
Drawing
.
Size
(
17
3
,
6
);
//
// 启用调试模式ToolStripMenuItem
//
this
.
启用调试模式
ToolStripMenuItem
.
Enabled
=
false
;
this
.
启用调试模式
ToolStripMenuItem
.
Name
=
"启用调试模式ToolStripMenuItem"
;
this
.
启用调试模式
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
启用调试模式
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
76
,
26
);
this
.
启用调试模式
ToolStripMenuItem
.
Tag
=
"not"
;
this
.
启用调试模式
ToolStripMenuItem
.
Text
=
"启用配置模式"
;
this
.
启用调试模式
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
启用调试模式
ToolStripMenuItem_Click
);
...
...
@@ -140,36 +141,36 @@ namespace TheMachine
// toolStripSeparator4
//
this
.
toolStripSeparator4
.
Name
=
"toolStripSeparator4"
;
this
.
toolStripSeparator4
.
Size
=
new
System
.
Drawing
.
Size
(
17
7
,
6
);
this
.
toolStripSeparator4
.
Size
=
new
System
.
Drawing
.
Size
(
17
3
,
6
);
//
// 禁用蜂鸣器ToolStripMenuItem
//
this
.
禁用蜂鸣器
ToolStripMenuItem
.
Name
=
"禁用蜂鸣器ToolStripMenuItem"
;
this
.
禁用蜂鸣器
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
禁用蜂鸣器
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
76
,
26
);
this
.
禁用蜂鸣器
ToolStripMenuItem
.
Text
=
"禁用蜂鸣器"
;
this
.
禁用蜂鸣器
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
禁用蜂鸣器
ToolStripMenuItem_Click
);
//
// toolStripSeparator1
//
this
.
toolStripSeparator1
.
Name
=
"toolStripSeparator1"
;
this
.
toolStripSeparator1
.
Size
=
new
System
.
Drawing
.
Size
(
17
7
,
6
);
this
.
toolStripSeparator1
.
Size
=
new
System
.
Drawing
.
Size
(
17
3
,
6
);
//
// toolStripMenuItem1
//
this
.
toolStripMenuItem1
.
Name
=
"toolStripMenuItem1"
;
this
.
toolStripMenuItem1
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
toolStripMenuItem1
.
Size
=
new
System
.
Drawing
.
Size
(
1
76
,
26
);
this
.
toolStripMenuItem1
.
Text
=
"扫码测试"
;
this
.
toolStripMenuItem1
.
Click
+=
new
System
.
EventHandler
(
this
.
toolStripMenuItem1_Click
);
//
// toolStripSeparator5
//
this
.
toolStripSeparator5
.
Name
=
"toolStripSeparator5"
;
this
.
toolStripSeparator5
.
Size
=
new
System
.
Drawing
.
Size
(
17
7
,
6
);
this
.
toolStripSeparator5
.
Size
=
new
System
.
Drawing
.
Size
(
17
3
,
6
);
//
// 退出ToolStripMenuItem
//
this
.
退出
ToolStripMenuItem
.
Name
=
"退出ToolStripMenuItem"
;
this
.
退出
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
退出
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
76
,
26
);
this
.
退出
ToolStripMenuItem
.
Text
=
"退出"
;
this
.
退出
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
退出
ToolStripMenuItem_Click
);
//
...
...
@@ -186,7 +187,7 @@ namespace TheMachine
// 简体中文ToolStripMenuItem
//
this
.
简体中文
ToolStripMenuItem
.
Name
=
"简体中文ToolStripMenuItem"
;
this
.
简体中文
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
简体中文
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
44
,
26
);
this
.
简体中文
ToolStripMenuItem
.
Tag
=
"not"
;
this
.
简体中文
ToolStripMenuItem
.
Text
=
"简体中文"
;
this
.
简体中文
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
简体中文
ToolStripMenuItem_Click
);
...
...
@@ -194,7 +195,7 @@ namespace TheMachine
// englishToolStripMenuItem
//
this
.
englishToolStripMenuItem
.
Name
=
"englishToolStripMenuItem"
;
this
.
englishToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
englishToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
44
,
26
);
this
.
englishToolStripMenuItem
.
Tag
=
"not"
;
this
.
englishToolStripMenuItem
.
Text
=
"English"
;
this
.
englishToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
englishToolStripMenuItem_Click
);
...
...
@@ -232,6 +233,7 @@ namespace TheMachine
//
// pnl
//
this
.
pnl
.
Controls
.
Add
(
this
.
btnClearNgPos
);
this
.
pnl
.
Controls
.
Add
(
this
.
chbDIsAgv
);
this
.
pnl
.
Controls
.
Add
(
this
.
btnDownScan
);
this
.
pnl
.
Controls
.
Add
(
this
.
btnUpScan
);
...
...
@@ -250,6 +252,17 @@ namespace TheMachine
this
.
pnl
.
Size
=
new
System
.
Drawing
.
Size
(
1000
,
576
);
this
.
pnl
.
TabIndex
=
273
;
//
// chbDIsAgv
//
this
.
chbDIsAgv
.
AutoSize
=
true
;
this
.
chbDIsAgv
.
Location
=
new
System
.
Drawing
.
Point
(
862
,
263
);
this
.
chbDIsAgv
.
Name
=
"chbDIsAgv"
;
this
.
chbDIsAgv
.
Size
=
new
System
.
Drawing
.
Size
(
127
,
25
);
this
.
chbDIsAgv
.
TabIndex
=
277
;
this
.
chbDIsAgv
.
Text
=
"禁用AGV对接"
;
this
.
chbDIsAgv
.
UseVisualStyleBackColor
=
true
;
this
.
chbDIsAgv
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
chbDIsAgv_CheckedChanged
);
//
// btnDownScan
//
this
.
btnDownScan
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
...
...
@@ -416,16 +429,17 @@ namespace TheMachine
this
.
listView1
.
TabIndex
=
2
;
this
.
listView1
.
UseCompatibleStateImageBehavior
=
false
;
//
//
chbDIsAgv
//
btnClearNgPos
//
this
.
chbDIsAgv
.
AutoSize
=
true
;
this
.
chbDIsAgv
.
Location
=
new
System
.
Drawing
.
Point
(
862
,
263
);
this
.
chbDIsAgv
.
Name
=
"chbDIsAgv"
;
this
.
chbDIsAgv
.
Size
=
new
System
.
Drawing
.
Size
(
127
,
25
);
this
.
chbDIsAgv
.
TabIndex
=
277
;
this
.
chbDIsAgv
.
Text
=
"禁用AGV对接"
;
this
.
chbDIsAgv
.
UseVisualStyleBackColor
=
true
;
this
.
chbDIsAgv
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
chbDIsAgv_CheckedChanged
);
this
.
btnClearNgPos
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClearNgPos
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClearNgPos
.
Location
=
new
System
.
Drawing
.
Point
(
710
,
254
);
this
.
btnClearNgPos
.
Name
=
"btnClearNgPos"
;
this
.
btnClearNgPos
.
Size
=
new
System
.
Drawing
.
Size
(
130
,
32
);
this
.
btnClearNgPos
.
TabIndex
=
278
;
this
.
btnClearNgPos
.
Text
=
"清空NG库位"
;
this
.
btnClearNgPos
.
UseVisualStyleBackColor
=
true
;
this
.
btnClearNgPos
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClearNgPos_Click
);
//
// FormMain
//
...
...
@@ -491,6 +505,7 @@ namespace TheMachine
private
System
.
Windows
.
Forms
.
Button
btnDownScan
;
private
System
.
Windows
.
Forms
.
Button
btnUpScan
;
private
System
.
Windows
.
Forms
.
CheckBox
chbDIsAgv
;
private
System
.
Windows
.
Forms
.
Button
btnClearNgPos
;
}
}
TheMachine/FormMain.cs
查看文件 @
7919189
...
...
@@ -751,5 +751,10 @@ namespace TheMachine
AgvClient
.
setDisAgv
(
chbDIsAgv
.
Checked
);
}
private
void
btnClearNgPos_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
"用户点击了【"
+
btnClearNgPos
.
Text
+
"】"
);
}
}
}
\ No newline at end of file
TheMachine/IOControls.Designer.cs
查看文件 @
7919189
...
...
@@ -38,6 +38,7 @@ namespace TheMachine
this
.
btnLocationStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUp
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnRfid
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SuspendLayout
();
//
// cb_motolist
...
...
@@ -155,9 +156,23 @@ namespace TheMachine
this
.
btnUp
.
UseVisualStyleBackColor
=
false
;
this
.
btnUp
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUp_Click
);
//
// btnRfid
//
this
.
btnRfid
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnRfid
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnRfid
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnRfid
.
Location
=
new
System
.
Drawing
.
Point
(
565
,
389
);
this
.
btnRfid
.
Name
=
"btnRfid"
;
this
.
btnRfid
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
33
);
this
.
btnRfid
.
TabIndex
=
7
;
this
.
btnRfid
.
Text
=
"RFID读取测试"
;
this
.
btnRfid
.
UseVisualStyleBackColor
=
false
;
this
.
btnRfid
.
Click
+=
new
System
.
EventHandler
(
this
.
btnRfid_Click
);
//
// IOControls
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
Controls
.
Add
(
this
.
btnRfid
);
this
.
Controls
.
Add
(
this
.
btnLocationStop
);
this
.
Controls
.
Add
(
this
.
btnDown
);
this
.
Controls
.
Add
(
this
.
btnUp
);
...
...
@@ -185,5 +200,6 @@ namespace TheMachine
private
System
.
Windows
.
Forms
.
Button
btnLocationStop
;
private
System
.
Windows
.
Forms
.
Button
btnDown
;
private
System
.
Windows
.
Forms
.
Button
btnUp
;
private
System
.
Windows
.
Forms
.
Button
btnRfid
;
}
}
TheMachine/IOControls.cs
查看文件 @
7919189
...
...
@@ -99,5 +99,16 @@ namespace TheMachine
{
}
private
void
btnRfid_Click
(
object
sender
,
EventArgs
e
)
{
var
u
=
(
KeyValuePair
<
string
,
string
>)
cb_motolist
.
SelectedItem
;
string
name
=
"U"
+
u
.
Value
;
OutShelfBean
outShelf
=
RobotManage
.
mainMachine
.
getOutShelf
(
name
);
string
rfid
=
outShelf
.
ReadTest
();
LogUtil
.
info
(
$
"手动点击 U{u.Value} 读取rfid测试 结果:"
+
rfid
);
MessageBox
.
Show
(
$
"U{u.Value} 读取rfid测试 结果:"
+
rfid
);
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论