Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 8955813d
由
张东亮
编写于
2023-11-15 09:09:52 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
分级管理
1 个父辈
ac414820
显示空白字符变更
内嵌
并排
正在显示
30 个修改的文件
包含
3070 行增加
和
2132 行删除
source/DeviceLibrary/manager/StoreManager.cs
source/DeviceLibrary/manager/model/DeviceStep.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_InExecute.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_OutExecute.cs
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean.cs
source/DeviceLibrary/storeBean/inputBean/InputEquip.cs
source/DeviceLibrary/storeBean/inputBean/InputEquip_InStore.cs
source/XLRStoreClient/FrmPwd.cs
source/XLRStoreClient/FrmXLRStore.Designer.cs
source/XLRStoreClient/FrmXLRStore.cs
source/XLRStoreClient/XLRStore.csproj
source/XLRStoreClient/boxForm/FrmAxisMove.Designer.cs
source/XLRStoreClient/boxForm/FrmAxisMove.cs
source/XLRStoreClient/boxForm/FrmBoxEquip.Designer.cs
source/XLRStoreClient/boxForm/FrmBoxEquip.cs
source/XLRStoreClient/boxForm/userControl/Box_IO.Designer.cs
source/XLRStoreClient/boxForm/userControl/Box_IO.cs
source/XLRStoreClient/boxForm/userControl/Box_IO.resx
source/XLRStoreClient/inputForm/FrmBatchMove.cs
source/XLRStoreClient/inputForm/FrmInputEquip.Designer.cs
source/XLRStoreClient/inputForm/FrmInputEquip.cs
source/XLRStoreClient/inputForm/uc/Input_AxisControl.Designer.cs
source/XLRStoreClient/inputForm/uc/Input_AxisControl.cs
source/XLRStoreClient/inputForm/uc/Input_AxisControl.resx
source/XLRStoreClient/inputForm/uc/Input_IO.Designer.cs
source/XLRStoreClient/inputForm/uc/Input_IO.cs
source/XLRStoreClient/inputForm/uc/Input_IO.resx
source/XLRStoreClient/useControl/AxisPointControl.Designer.cs
source/DeviceLibrary/manager/StoreManager.cs
查看文件 @
8955813
...
...
@@ -15,6 +15,7 @@ namespace OnlineStore.DeviceLibrary
{
public
class
StoreManager
{
public
static
bool
IsConfigMode
=
false
;
public
static
int
OutMoveId
=
7
;
public
static
bool
TrayToOutLineTest
=
false
;
...
...
source/DeviceLibrary/manager/model/DeviceStep.cs
查看文件 @
8955813
...
...
@@ -301,6 +301,7 @@ namespace OnlineStore.DeviceLibrary
/// 料仓出库:料斗拉取进出轴到P1(待机点)
/// </summary>
SO_13_InoutBack
,
SO_13_InoutBack_1
,
/// <summary>
/// 料仓出库:取料完成,准备去出料口
/// </summary>
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
查看文件 @
8955813
...
...
@@ -130,6 +130,21 @@ namespace OnlineStore.DeviceLibrary
InitPosDebugInfo
();
alarmRedLedType
=
AlarmType
.
IoSingleTimeOut
;
}
public
void
DeviceLED
(
bool
on
)
{
if
(
on
)
{
IOMove
(
IO_Type
.
DeviceLed
,
IO_VALUE
.
HIGH
);
}
else
{
IOMove
(
IO_Type
.
DeviceLed
,
IO_VALUE
.
LOW
);
}
}
public
bool
IsDeviceLEDOn
()
{
return
IOValue
(
IO_Type
.
DeviceLed
).
Equals
(
IO_VALUE
.
HIGH
);
}
void
InitRowColumnSig
()
{
trayAColumns
=
new
string
[]
{
IO_Type
.
SuddenStop_BTN
,
...
...
@@ -680,7 +695,7 @@ namespace OnlineStore.DeviceLibrary
if
(
IOValue
(
IO_Type
.
ForkB_Tray_Check
).
Equals
(
IO_VALUE
.
HIGH
))
{
posId
=
$
"{CID}BB{1.ToString().PadLeft(2, '0')}{1.ToString().PadLeft(2, '0')}0101"
;
MoveInfo
.
MoveParam
.
PosInfoBack
=
new
InOutPosInfo
(
"ResetNG_B"
,
posId
);
MoveInfo
.
MoveParam
.
PosInfoBack
=
new
InOutPosInfo
(
"ResetNG_B"
,
posId
);
MoveInfo
.
MoveParam
.
PosInfoBack
.
IsNG
=
true
;
}
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_14_GetReels_Ready
);
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
查看文件 @
8955813
...
...
@@ -73,7 +73,7 @@ namespace OnlineStore.DeviceLibrary
isInProcess
=
false
;
}
}
public
bool
SendStoreState
(
string
posid
,
DeviceStatus
storeStatus
)
public
bool
SendStoreState
(
string
posid
,
string
barcode
,
DeviceStatus
storeStatus
)
{
if
(
Monitor
.
TryEnter
(
serverLoc
))
{
...
...
@@ -89,6 +89,12 @@ namespace OnlineStore.DeviceLibrary
{
operation
.
boxStatus
[
1
].
data
[
ParamDefine
.
posId
]
=
posid
;
}
if
(!
string
.
IsNullOrEmpty
(
barcode
)
&&
!
operation
.
boxStatus
[
1
].
data
.
ContainsKey
(
ParamDefine
.
barcode
))
operation
.
boxStatus
[
1
].
data
.
Add
(
ParamDefine
.
barcode
,
barcode
);
else
if
(!
string
.
IsNullOrEmpty
(
barcode
)
&&
operation
.
boxStatus
[
1
].
data
.
ContainsKey
(
ParamDefine
.
barcode
))
{
operation
.
boxStatus
[
1
].
data
[
ParamDefine
.
barcode
]
=
barcode
;
}
operation
.
boxStatus
[
1
].
status
=
(
int
)
storeStatus
;
LogUtil
.
info
(
JsonHelper
.
SerializeObject
(
operation
));
Operation
resultOperation
=
HttpHelper
.
Post
(
SServerManager
.
GetPostApi
(
server
),
operation
,
false
);
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_InExecute.cs
查看文件 @
8955813
...
...
@@ -272,7 +272,7 @@ namespace OnlineStore.DeviceLibrary
case
StepEnum
.
SI_05_GetReel
:
if
(!
CheckReel
(
true
))
{
WarnMsg
=
"未检测到
料叉上的料盘,请检查"
;
WarnMsg
=
$
"未检测到{MoveInfo.MoveParam.PosInfo.GetPosSide()}面
料叉上的料盘,请检查"
;
return
;
}
ignoreCurFork
=
false
;
...
...
@@ -337,7 +337,7 @@ namespace OnlineStore.DeviceLibrary
case
StepEnum
.
SI_08_ToPosition
:
if
(!
CheckReel
(
true
))
{
WarnMsg
=
"未检测到
料叉上的料盘,请检查"
;
WarnMsg
=
$
"未检测到{MoveInfo.MoveParam.PosInfo.GetPosSide()}面
料叉上的料盘,请检查"
;
return
;
}
ignoreCurFork
=
false
;
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_OutExecute.cs
查看文件 @
8955813
...
...
@@ -151,13 +151,12 @@ namespace OnlineStore.DeviceLibrary
break
;
case
StepEnum
.
SO_12_PutTrayMiddle
:
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_12_PutTrayDown
);
LogInfo
(
$
"出库 {MoveInfo.SLog}:放下抽屉,
移栽旋转轴到取放料水平点P2,
抽屉拉取升降轴到抽屉提取低点P4[{MoveInfo.MoveParam.PosInfo.GetPosSide()}面]"
);
LogInfo
(
$
"出库 {MoveInfo.SLog}:放下抽屉,抽屉拉取升降轴到抽屉提取低点P4[{MoveInfo.MoveParam.PosInfo.GetPosSide()}面]"
);
AddHookCheck
(
false
);
PullAxis_UpdownToLowP4
();
MiddleAxis_To_P2
();
break
;
case
StepEnum
.
SO_12_PutTrayDown
:
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_13_InoutBack
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_13_InoutBack
_1
);
//AddReelCheck(true);
LogInfo
(
$
"出库 {MoveInfo.SLog}:抽屉拉取进出轴到拍照点,检测料叉信号,同时检测{trayAColumns[GetPosColumn()]}=1 [{MoveInfo.MoveParam.PosInfo.GetPosSide()}面]"
);
if
(
CheckASide
())
...
...
@@ -172,6 +171,17 @@ namespace OnlineStore.DeviceLibrary
}
PullAxis_Inout_To_Cam
();
break
;
case
StepEnum
.
SO_13_InoutBack_1
:
if
(!
CheckReel
(
true
))
{
WarnMsg
=
$
"未检测到{MoveInfo.MoveParam.PosInfo.GetPosSide()}面料叉上的料盘,请检查"
;
return
;
}
ignoreCurFork
=
false
;
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_13_InoutBack
);
LogInfo
(
$
"出库 {MoveInfo.SLog}:抽屉拉取进出轴已到达拍照点,移栽旋转轴到取放料水平点P2[{MoveInfo.MoveParam.PosInfo.GetPosSide()}面]"
);
MiddleAxis_To_P2
();
break
;
case
StepEnum
.
SO_13_InoutBack
:
//检查另一面是否有出库任务
//if (MoveInfo.MoveParam.PosInfoBack == null)
...
...
@@ -221,12 +231,6 @@ namespace OnlineStore.DeviceLibrary
// }
//}
//直接出库,执行该步骤的情况:1.另一个料叉有料;2.另一面有出库任务但出料口有料;3.另一面没有出库任务;
if
(!
CheckReel
(
true
))
{
WarnMsg
=
"未检测到料叉上的料盘,请检查"
;
return
;
}
ignoreCurFork
=
false
;
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_14_GetReels_Ready
);
MoveAxisToP1
();
PullAxis_UpdownToP1
();
...
...
@@ -281,7 +285,7 @@ namespace OnlineStore.DeviceLibrary
UpdownAxisTo_P5_P11
();
break
;
case
StepEnum
.
SO_18_PutReel
:
if
(!
StoreManager
.
XLRStore
.
boxEquip
.
SendStoreState
(
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
,
DeviceStatus
.
OutStoreBoxEnd
))
if
(!
StoreManager
.
XLRStore
.
boxEquip
.
SendStoreState
(
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
,
MoveInfo
.
MoveParam
.
PosInfo
.
barcode
,
DeviceStatus
.
OutStoreBoxEnd
))
return
;
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_19_InOutBackFromBuff
);
LogInfo
(
$
"出库 {MoveInfo.SLog}:[{MoveInfo.MoveParam.PosInfo.ToStr()}]出库完成[耗时:{(DateTime.Now - startTime).TotalSeconds.ToString("
f2
")}秒],移栽X轴到待机点P1,行走机构到待机点P1[{MoveInfo.MoveParam.PosInfo.GetPosSide()}面]"
);
...
...
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean.cs
查看文件 @
8955813
...
...
@@ -236,7 +236,7 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
IsStep
(
StepEnum
.
IBR06_BatchToP1
))
{
Robot
.
IOMove
(
IO_Type
.
CameraLed
,
IO_VALUE
.
HIGH
);
//
Robot.IOMove(IO_Type.CameraLed, IO_VALUE.HIGH);
WorkLog
(
"复位完成"
);
MoveInfo
.
EndMove
();
}
...
...
source/DeviceLibrary/storeBean/inputBean/InputEquip.cs
查看文件 @
8955813
...
...
@@ -29,7 +29,21 @@ namespace OnlineStore.DeviceLibrary
public
bool
AutoInput
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
AutoInput
).
Equals
(
1
);
public
int
DefautTargetP
=
1
;
public
void
DeviceLED
(
bool
on
)
{
if
(
on
)
{
IOMove
(
IO_Type
.
CameraLed
,
IO_VALUE
.
HIGH
);
}
else
{
IOMove
(
IO_Type
.
CameraLed
,
IO_VALUE
.
LOW
);
}
}
public
bool
IsDeviceLEDOn
()
{
return
IOValue
(
IO_Type
.
CameraLed
).
Equals
(
IO_VALUE
.
HIGH
);
}
public
InputEquip
(
string
cid
,
InputEquip_Config
config
)
{
Name
=
(
" "
+
"上料机构"
+
" "
).
ToUpper
();
...
...
source/DeviceLibrary/storeBean/inputBean/InputEquip_InStore.cs
查看文件 @
8955813
...
...
@@ -1107,7 +1107,7 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
IsStep
(
StepEnum
.
IO31_ClampRelax
))
{
if
(!
StoreManager
.
XLRStore
.
boxEquip
.
SendStoreState
(
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
,
DeviceStatus
.
OutStoreEnd
))
if
(!
StoreManager
.
XLRStore
.
boxEquip
.
SendStoreState
(
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
,
MoveInfo
.
MoveParam
.
PosInfo
.
barcode
,
DeviceStatus
.
OutStoreEnd
))
return
;
if
(
shelf
.
Equals
(
1
))
{
...
...
source/XLRStoreClient/FrmPwd.cs
查看文件 @
8955813
...
...
@@ -26,18 +26,13 @@ namespace OnlineStore.XLRStore
private
void
FrmPwd_Load
(
object
sender
,
EventArgs
e
)
{
this
.
DialogResult
=
DialogResult
.
None
;
txtPwd
.
Text
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
DefaultPWD
);
//
txtPwd.Text = ConfigAppSettings.GetValue(Setting_Init.DefaultPWD);
}
private
void
btnNext_Click
(
object
sender
,
EventArgs
e
)
{
string
pwd
=
txtPwd
.
Text
;
string
configPwd
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Config_Pwd
);
if
(
configPwd
.
Equals
(
""
))
{
configPwd
=
"123456"
;
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
Config_Pwd
,
configPwd
);
}
string
configPwd
=
ConfigHelper
.
Config
.
Get
(
Setting_Init
.
Config_Pwd
,
"123456"
);
if
(
pwd
.
Equals
(
configPwd
))
{
this
.
DialogResult
=
DialogResult
.
OK
;
...
...
source/XLRStoreClient/FrmXLRStore.Designer.cs
查看文件 @
8955813
...
...
@@ -58,9 +58,12 @@
this
.
toolStripSeparator3
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
停止
TToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator5
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
启用配置模式
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator2
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
退出
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
设置
TToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
忽略当次料叉检查
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator13
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
a
料口重置料串
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator6
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
b
料口重置料串
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
...
...
@@ -94,8 +97,6 @@
this
.
lbldiancifa
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
statusStrip1
=
new
System
.
Windows
.
Forms
.
StatusStrip
();
this
.
lblStatus
=
new
System
.
Windows
.
Forms
.
ToolStripStatusLabel
();
this
.
忽略当次料叉检查
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator13
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabPage1
.
SuspendLayout
();
this
.
tabPage2
.
SuspendLayout
();
...
...
@@ -120,7 +121,7 @@
this
.
tabControl1
.
Multiline
=
true
;
this
.
tabControl1
.
Name
=
"tabControl1"
;
this
.
tabControl1
.
SelectedIndex
=
0
;
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
998
,
600
);
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
1160
,
642
);
this
.
tabControl1
.
TabIndex
=
0
;
this
.
tabControl1
.
DrawItem
+=
new
System
.
Windows
.
Forms
.
DrawItemEventHandler
(
this
.
tabControl1_DrawItem
);
this
.
tabControl1
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
tabControl1_SelectedIndexChanged
);
...
...
@@ -130,7 +131,7 @@
this
.
tabPage1
.
Controls
.
Add
(
this
.
logBox
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
32
);
this
.
tabPage1
.
Name
=
"tabPage1"
;
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
990
,
564
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
1152
,
606
);
this
.
tabPage1
.
TabIndex
=
0
;
this
.
tabPage1
.
Text
=
" 运行日志 "
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -143,7 +144,7 @@
this
.
logBox
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
logBox
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
3
);
this
.
logBox
.
Name
=
"logBox"
;
this
.
logBox
.
Size
=
new
System
.
Drawing
.
Size
(
979
,
553
);
this
.
logBox
.
Size
=
new
System
.
Drawing
.
Size
(
1141
,
595
);
this
.
logBox
.
TabIndex
=
106
;
this
.
logBox
.
Text
=
""
;
this
.
logBox
.
VisibleChanged
+=
new
System
.
EventHandler
(
this
.
logBox_VisibleChanged
);
...
...
@@ -153,7 +154,7 @@
this
.
tabPage2
.
Controls
.
Add
(
this
.
panel1
);
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
32
);
this
.
tabPage2
.
Name
=
"tabPage2"
;
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
1
92
,
64
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
1
152
,
606
);
this
.
tabPage2
.
TabIndex
=
1
;
this
.
tabPage2
.
Text
=
" 设备状态 "
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -164,7 +165,7 @@
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
1
92
,
64
);
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
1
152
,
606
);
this
.
panel1
.
TabIndex
=
1
;
//
// tableLayoutPanel1
...
...
@@ -189,7 +190,7 @@
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
14.28571F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
19.04762F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
19.04762F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
1
92
,
64
);
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
1
152
,
606
);
this
.
tableLayoutPanel1
.
TabIndex
=
0
;
//
// InputControl
...
...
@@ -200,11 +201,11 @@
this
.
tableLayoutPanel1
.
SetColumnSpan
(
this
.
InputControl
,
2
);
this
.
InputControl
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
InputControl
.
EquipText
=
"上料机构"
;
this
.
InputControl
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
43
);
this
.
InputControl
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
377
);
this
.
InputControl
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
InputControl
.
MoveInfo
=
"暂无出入库"
;
this
.
InputControl
.
Name
=
"InputControl"
;
this
.
InputControl
.
Size
=
new
System
.
Drawing
.
Size
(
1
84
,
4
);
this
.
InputControl
.
Size
=
new
System
.
Drawing
.
Size
(
1
144
,
107
);
this
.
InputControl
.
TabIndex
=
5
;
this
.
InputControl
.
WorkStatus
=
"暂未启动"
;
//
...
...
@@ -214,11 +215,11 @@
this
.
ReelControlA1
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
FixedSingle
;
this
.
ReelControlA1
.
ColorStatus
=
System
.
Drawing
.
Color
.
White
;
this
.
ReelControlA1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ReelControlA1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
25
);
this
.
ReelControlA1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
2
0
5
);
this
.
ReelControlA1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
ReelControlA1
.
Name
=
"ReelControlA1"
;
this
.
ReelControlA1
.
ReelText
=
"暂存区物料"
;
this
.
ReelControlA1
.
Size
=
new
System
.
Drawing
.
Size
(
88
,
1
);
this
.
ReelControlA1
.
Size
=
new
System
.
Drawing
.
Size
(
568
,
78
);
this
.
ReelControlA1
.
TabIndex
=
0
;
//
// ReelControlA2
...
...
@@ -227,11 +228,11 @@
this
.
ReelControlA2
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
FixedSingle
;
this
.
ReelControlA2
.
ColorStatus
=
System
.
Drawing
.
Color
.
White
;
this
.
ReelControlA2
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ReelControlA2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
34
);
this
.
ReelControlA2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
291
);
this
.
ReelControlA2
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
ReelControlA2
.
Name
=
"ReelControlA2"
;
this
.
ReelControlA2
.
ReelText
=
"暂存区物料"
;
this
.
ReelControlA2
.
Size
=
new
System
.
Drawing
.
Size
(
88
,
1
);
this
.
ReelControlA2
.
Size
=
new
System
.
Drawing
.
Size
(
568
,
78
);
this
.
ReelControlA2
.
TabIndex
=
1
;
//
// ReelControlB1
...
...
@@ -240,11 +241,11 @@
this
.
ReelControlB1
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
FixedSingle
;
this
.
ReelControlB1
.
ColorStatus
=
System
.
Drawing
.
Color
.
White
;
this
.
ReelControlB1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ReelControlB1
.
Location
=
new
System
.
Drawing
.
Point
(
100
,
2
5
);
this
.
ReelControlB1
.
Location
=
new
System
.
Drawing
.
Point
(
580
,
20
5
);
this
.
ReelControlB1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
ReelControlB1
.
Name
=
"ReelControlB1"
;
this
.
ReelControlB1
.
ReelText
=
"暂存区物料"
;
this
.
ReelControlB1
.
Size
=
new
System
.
Drawing
.
Size
(
88
,
1
);
this
.
ReelControlB1
.
Size
=
new
System
.
Drawing
.
Size
(
568
,
78
);
this
.
ReelControlB1
.
TabIndex
=
2
;
//
// ReelControlB2
...
...
@@ -253,11 +254,11 @@
this
.
ReelControlB2
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
FixedSingle
;
this
.
ReelControlB2
.
ColorStatus
=
System
.
Drawing
.
Color
.
White
;
this
.
ReelControlB2
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ReelControlB2
.
Location
=
new
System
.
Drawing
.
Point
(
100
,
34
);
this
.
ReelControlB2
.
Location
=
new
System
.
Drawing
.
Point
(
580
,
291
);
this
.
ReelControlB2
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
ReelControlB2
.
Name
=
"ReelControlB2"
;
this
.
ReelControlB2
.
ReelText
=
"暂存区物料"
;
this
.
ReelControlB2
.
Size
=
new
System
.
Drawing
.
Size
(
88
,
1
);
this
.
ReelControlB2
.
Size
=
new
System
.
Drawing
.
Size
(
568
,
78
);
this
.
ReelControlB2
.
TabIndex
=
3
;
//
// BoxControl
...
...
@@ -272,7 +273,7 @@
this
.
BoxControl
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
BoxControl
.
MoveInfo
=
"暂无出入库"
;
this
.
BoxControl
.
Name
=
"BoxControl"
;
this
.
BoxControl
.
Size
=
new
System
.
Drawing
.
Size
(
1
84
,
1
3
);
this
.
BoxControl
.
Size
=
new
System
.
Drawing
.
Size
(
1
144
,
19
3
);
this
.
BoxControl
.
TabIndex
=
4
;
this
.
BoxControl
.
WorkStatus
=
"暂未启动"
;
//
...
...
@@ -283,11 +284,11 @@
this
.
ShelfAControl
.
ColorStatus
=
System
.
Drawing
.
Color
.
White
;
this
.
ShelfAControl
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ShelfAControl
.
EquipText
=
"A料口"
;
this
.
ShelfAControl
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
55
);
this
.
ShelfAControl
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
492
);
this
.
ShelfAControl
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
ShelfAControl
.
MoveInfo
=
"暂无出入库"
;
this
.
ShelfAControl
.
Name
=
"ShelfAControl"
;
this
.
ShelfAControl
.
Size
=
new
System
.
Drawing
.
Size
(
88
,
5
);
this
.
ShelfAControl
.
Size
=
new
System
.
Drawing
.
Size
(
568
,
110
);
this
.
ShelfAControl
.
TabIndex
=
6
;
this
.
ShelfAControl
.
WorkStatus
=
"暂未启动"
;
//
...
...
@@ -298,11 +299,11 @@
this
.
ShelfBControl
.
ColorStatus
=
System
.
Drawing
.
Color
.
White
;
this
.
ShelfBControl
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ShelfBControl
.
EquipText
=
"B料口"
;
this
.
ShelfBControl
.
Location
=
new
System
.
Drawing
.
Point
(
100
,
55
);
this
.
ShelfBControl
.
Location
=
new
System
.
Drawing
.
Point
(
580
,
492
);
this
.
ShelfBControl
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
4
,
4
,
4
);
this
.
ShelfBControl
.
MoveInfo
=
"暂无出入库"
;
this
.
ShelfBControl
.
Name
=
"ShelfBControl"
;
this
.
ShelfBControl
.
Size
=
new
System
.
Drawing
.
Size
(
88
,
5
);
this
.
ShelfBControl
.
Size
=
new
System
.
Drawing
.
Size
(
568
,
110
);
this
.
ShelfBControl
.
TabIndex
=
7
;
this
.
ShelfBControl
.
WorkStatus
=
"暂未启动"
;
//
...
...
@@ -359,6 +360,7 @@
this
.
toolStripSeparator3
,
this
.
停止
TToolStripMenuItem
,
this
.
toolStripSeparator5
,
this
.
启用配置模式
ToolStripMenuItem
,
this
.
toolStripSeparator2
,
this
.
退出
ToolStripMenuItem
});
this
.
操作
ToolStripMenuItem
.
Name
=
"操作ToolStripMenuItem"
;
...
...
@@ -368,54 +370,62 @@
// toolStripSeparator1
//
this
.
toolStripSeparator1
.
Name
=
"toolStripSeparator1"
;
this
.
toolStripSeparator1
.
Size
=
new
System
.
Drawing
.
Size
(
2
21
,
6
);
this
.
toolStripSeparator1
.
Size
=
new
System
.
Drawing
.
Size
(
2
15
,
6
);
//
// 启动AToolStripMenuItem
//
this
.
启动
AToolStripMenuItem
.
Name
=
"启动AToolStripMenuItem"
;
this
.
启动
AToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
24
,
32
);
this
.
启动
AToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
18
,
32
);
this
.
启动
AToolStripMenuItem
.
Text
=
"启动 "
;
this
.
启动
AToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
启动所有料仓
AToolStripMenuItem_Click
);
//
// toolStripSeparator4
//
this
.
toolStripSeparator4
.
Name
=
"toolStripSeparator4"
;
this
.
toolStripSeparator4
.
Size
=
new
System
.
Drawing
.
Size
(
2
21
,
6
);
this
.
toolStripSeparator4
.
Size
=
new
System
.
Drawing
.
Size
(
2
15
,
6
);
//
// 复位RToolStripMenuItem
//
this
.
复位
RToolStripMenuItem
.
Name
=
"复位RToolStripMenuItem"
;
this
.
复位
RToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
24
,
32
);
this
.
复位
RToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
18
,
32
);
this
.
复位
RToolStripMenuItem
.
Text
=
"复位"
;
this
.
复位
RToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
复位
RToolStripMenuItem_Click
);
//
// toolStripSeparator3
//
this
.
toolStripSeparator3
.
Name
=
"toolStripSeparator3"
;
this
.
toolStripSeparator3
.
Size
=
new
System
.
Drawing
.
Size
(
2
21
,
6
);
this
.
toolStripSeparator3
.
Size
=
new
System
.
Drawing
.
Size
(
2
15
,
6
);
//
// 停止TToolStripMenuItem
//
this
.
停止
TToolStripMenuItem
.
Name
=
"停止TToolStripMenuItem"
;
this
.
停止
TToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
24
,
32
);
this
.
停止
TToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
18
,
32
);
this
.
停止
TToolStripMenuItem
.
Text
=
"停止"
;
this
.
停止
TToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
停止所有料仓
TToolStripMenuItem_Click
);
//
// toolStripSeparator5
//
this
.
toolStripSeparator5
.
Name
=
"toolStripSeparator5"
;
this
.
toolStripSeparator5
.
Size
=
new
System
.
Drawing
.
Size
(
221
,
6
);
this
.
toolStripSeparator5
.
Size
=
new
System
.
Drawing
.
Size
(
215
,
6
);
//
// 启用配置模式ToolStripMenuItem
//
this
.
启用配置模式
ToolStripMenuItem
.
Enabled
=
false
;
this
.
启用配置模式
ToolStripMenuItem
.
Name
=
"启用配置模式ToolStripMenuItem"
;
this
.
启用配置模式
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
32
);
this
.
启用配置模式
ToolStripMenuItem
.
Text
=
"启用配置模式"
;
this
.
启用配置模式
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
启用配置模式
ToolStripMenuItem_Click
);
//
// toolStripSeparator2
//
this
.
toolStripSeparator2
.
Name
=
"toolStripSeparator2"
;
this
.
toolStripSeparator2
.
Size
=
new
System
.
Drawing
.
Size
(
2
21
,
6
);
this
.
toolStripSeparator2
.
Size
=
new
System
.
Drawing
.
Size
(
2
15
,
6
);
this
.
toolStripSeparator2
.
Visible
=
false
;
//
// 退出ToolStripMenuItem
//
this
.
退出
ToolStripMenuItem
.
Name
=
"退出ToolStripMenuItem"
;
this
.
退出
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
24
,
32
);
this
.
退出
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
2
18
,
32
);
this
.
退出
ToolStripMenuItem
.
Text
=
"退出"
;
this
.
退出
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
退出
ToolStripMenuItem_Click_1
);
//
...
...
@@ -439,6 +449,18 @@
this
.
设置
TToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
112
,
31
);
this
.
设置
TToolStripMenuItem
.
Text
=
"设备调试 "
;
//
// 忽略当次料叉检查ToolStripMenuItem
//
this
.
忽略当次料叉检查
ToolStripMenuItem
.
Name
=
"忽略当次料叉检查ToolStripMenuItem"
;
this
.
忽略当次料叉检查
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
258
,
32
);
this
.
忽略当次料叉检查
ToolStripMenuItem
.
Text
=
"忽略当次料叉检查"
;
this
.
忽略当次料叉检查
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
忽略当次料叉检查
ToolStripMenuItem_Click
);
//
// toolStripSeparator13
//
this
.
toolStripSeparator13
.
Name
=
"toolStripSeparator13"
;
this
.
toolStripSeparator13
.
Size
=
new
System
.
Drawing
.
Size
(
255
,
6
);
//
// a料口重置料串ToolStripMenuItem
//
this
.
a
料口重置料串
ToolStripMenuItem
.
Name
=
"a料口重置料串ToolStripMenuItem"
;
...
...
@@ -561,7 +583,7 @@
this
.
帮助
ToolStripMenuItem
});
this
.
menuStrip1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
menuStrip1
.
Name
=
"menuStrip1"
;
this
.
menuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
1
004
,
35
);
this
.
menuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
1
166
,
35
);
this
.
menuStrip1
.
TabIndex
=
4
;
this
.
menuStrip1
.
Text
=
"menuStrip1"
;
//
...
...
@@ -644,7 +666,7 @@
this
.
tableLayoutPanel2
.
RowCount
=
2
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
80F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
1
004
,
686
);
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
1
166
,
728
);
this
.
tableLayoutPanel2
.
TabIndex
=
97
;
//
// tableLayoutPanel3
...
...
@@ -659,7 +681,7 @@
this
.
tableLayoutPanel3
.
Name
=
"tableLayoutPanel3"
;
this
.
tableLayoutPanel3
.
RowCount
=
1
;
this
.
tableLayoutPanel3
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
50F
));
this
.
tableLayoutPanel3
.
Size
=
new
System
.
Drawing
.
Size
(
998
,
74
);
this
.
tableLayoutPanel3
.
Size
=
new
System
.
Drawing
.
Size
(
1160
,
74
);
this
.
tableLayoutPanel3
.
TabIndex
=
1
;
//
// lblWarnMsg
...
...
@@ -670,16 +692,16 @@
this
.
lblWarnMsg
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lblWarnMsg
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
0
);
this
.
lblWarnMsg
.
Name
=
"lblWarnMsg"
;
this
.
lblWarnMsg
.
Size
=
new
System
.
Drawing
.
Size
(
606
,
74
);
this
.
lblWarnMsg
.
Size
=
new
System
.
Drawing
.
Size
(
705
,
74
);
this
.
lblWarnMsg
.
TabIndex
=
97
;
this
.
lblWarnMsg
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
// lbldiancifa
//
this
.
lbldiancifa
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
lbldiancifa
.
Location
=
new
System
.
Drawing
.
Point
(
615
,
0
);
this
.
lbldiancifa
.
Location
=
new
System
.
Drawing
.
Point
(
714
,
0
);
this
.
lbldiancifa
.
Name
=
"lbldiancifa"
;
this
.
lbldiancifa
.
Size
=
new
System
.
Drawing
.
Size
(
380
,
74
);
this
.
lbldiancifa
.
Size
=
new
System
.
Drawing
.
Size
(
443
,
74
);
this
.
lbldiancifa
.
TabIndex
=
98
;
this
.
lbldiancifa
.
Text
=
"label1"
;
//
...
...
@@ -688,9 +710,9 @@
this
.
statusStrip1
.
ImageScalingSize
=
new
System
.
Drawing
.
Size
(
20
,
20
);
this
.
statusStrip1
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
lblStatus
});
this
.
statusStrip1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
695
);
this
.
statusStrip1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
737
);
this
.
statusStrip1
.
Name
=
"statusStrip1"
;
this
.
statusStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
1
004
,
26
);
this
.
statusStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
1
166
,
26
);
this
.
statusStrip1
.
TabIndex
=
98
;
this
.
statusStrip1
.
Text
=
"statusStrip1"
;
//
...
...
@@ -701,23 +723,11 @@
this
.
lblStatus
.
Size
=
new
System
.
Drawing
.
Size
(
69
,
20
);
this
.
lblStatus
.
Text
=
"等待启动"
;
//
// 忽略当次料叉检查ToolStripMenuItem
//
this
.
忽略当次料叉检查
ToolStripMenuItem
.
Name
=
"忽略当次料叉检查ToolStripMenuItem"
;
this
.
忽略当次料叉检查
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
258
,
32
);
this
.
忽略当次料叉检查
ToolStripMenuItem
.
Text
=
"忽略当次料叉检查"
;
this
.
忽略当次料叉检查
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
忽略当次料叉检查
ToolStripMenuItem_Click
);
//
// toolStripSeparator13
//
this
.
toolStripSeparator13
.
Name
=
"toolStripSeparator13"
;
this
.
toolStripSeparator13
.
Size
=
new
System
.
Drawing
.
Size
(
255
,
6
);
//
// FrmXLRStore
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1
004
,
721
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1
166
,
763
);
this
.
Controls
.
Add
(
this
.
statusStrip1
);
this
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
Controls
.
Add
(
this
.
menuStrip1
);
...
...
@@ -725,7 +735,6 @@
this
.
FormBorderStyle
=
System
.
Windows
.
Forms
.
FormBorderStyle
.
FixedSingle
;
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
MainMenuStrip
=
this
.
menuStrip1
;
this
.
MaximizeBox
=
false
;
this
.
Name
=
"FrmXLRStore"
;
this
.
Opacity
=
0.1D
;
this
.
Text
=
"盘料仓客户端"
;
...
...
@@ -817,6 +826,7 @@
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator12
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
忽略当次料叉检查
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator13
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
启用配置模式
ToolStripMenuItem
;
}
}
source/XLRStoreClient/FrmXLRStore.cs
查看文件 @
8955813
...
...
@@ -70,6 +70,7 @@ namespace OnlineStore.XLRStore
}
//tabControl1.TabPages.Remove(tabPage5);
timer1
.
Start
();
启用配置模式
ToolStripMenuItem
.
Enabled
=
true
;
}
private
FrmInputEquip
inputEquip
=
null
;
private
FrmBoxEquip
box
=
null
;
...
...
@@ -86,10 +87,13 @@ namespace OnlineStore.XLRStore
Application
.
Exit
();
return
;
}
ConfigModeEvent
+=
FrmXLRStore_ConfigModeEvent
;
inputEquip
=
new
FrmInputEquip
(
StoreManager
.
XLRStore
.
inputEquip
);
ConfigModeEvent
+=
inputEquip
.
Frm_ConfigModeEvent
;
AddForm
(
" 入料机构 "
,
inputEquip
);
box
=
new
FrmBoxEquip
(
StoreManager
.
XLRStore
.
boxEquip
);
ConfigModeEvent
+=
box
.
Frm_ConfigModeEvent
;
AddForm
(
" 存储机构 "
,
box
);
托盘初始化
ToolStripMenuItem
.
Visible
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
OpenRFIDWrite
).
Equals
(
1
);
...
...
@@ -824,5 +828,35 @@ namespace OnlineStore.XLRStore
StoreManager
.
XLRStore
.
boxEquip
.
ignoreCurFork
=
true
;
LogUtil
.
info
(
StoreManager
.
XLRStore
.
boxEquip
.
Name
+
"点击:忽略当次料叉检查"
);
}
public
delegate
void
ConfigModeEventHandler
(
bool
state
);
public
event
ConfigModeEventHandler
ConfigModeEvent
;
private
void
启用配置模式
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
if
(!
StoreManager
.
IsConfigMode
)
{
FrmPwd
fw
=
new
FrmPwd
(
10
);
DialogResult
result
=
fw
.
ShowDialog
();
if
(!
result
.
Equals
(
DialogResult
.
OK
))
return
;
}
StoreManager
.
IsConfigMode
=
StoreManager
.
IsConfigMode
?
false
:
true
;
(
sender
as
ToolStripMenuItem
).
Text
=
!
StoreManager
.
IsConfigMode
?
"启用配置模式"
:
"停用配置模式"
;
if
(
StoreManager
.
IsConfigMode
)
{
ConfigModeEvent
?.
Invoke
(
true
);
}
else
{
ConfigModeEvent
?.
Invoke
(
false
);
}
}
private
void
FrmXLRStore_ConfigModeEvent
(
bool
state
)
{
}
}
}
source/XLRStoreClient/XLRStore.csproj
查看文件 @
8955813
...
...
@@ -66,8 +66,9 @@
<Reference Include="CodeLibrary">
<HintPath>..\..\dll\CodeLibrary.dll</HintPath>
</Reference>
<Reference Include="ConfigHelper">
<HintPath>..\..\..\..\SharedRefDll\Neotel\ConfigHelper.dll</HintPath>
<Reference Include="ConfigHelper, Version=1.0.0.2, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>bin\Debug\ConfigHelper.dll</HintPath>
</Reference>
<Reference Include="halcondotnet">
<HintPath>..\..\dll\halcondotnet.dll</HintPath>
...
...
@@ -121,6 +122,12 @@
<Compile Include="boxForm\FrmPosResult.Designer.cs">
<DependentUpon>FrmPosResult.cs</DependentUpon>
</Compile>
<Compile Include="boxForm\userControl\Box_IO.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="boxForm\userControl\Box_IO.Designer.cs">
<DependentUpon>Box_IO.cs</DependentUpon>
</Compile>
<Compile Include="boxForm\userControl\UCStatusPanel.cs">
<SubType>UserControl</SubType>
</Compile>
...
...
@@ -151,6 +158,18 @@
<Compile Include="inputForm\FrmBatchMove.Designer.cs">
<DependentUpon>FrmBatchMove.cs</DependentUpon>
</Compile>
<Compile Include="inputForm\uc\Input_AxisControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="inputForm\uc\Input_AxisControl.Designer.cs">
<DependentUpon>Input_AxisControl.cs</DependentUpon>
</Compile>
<Compile Include="inputForm\uc\Input_IO.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="inputForm\uc\Input_IO.Designer.cs">
<DependentUpon>Input_IO.cs</DependentUpon>
</Compile>
<Compile Include="useControl\AxisMoveControl.cs">
<SubType>UserControl</SubType>
</Compile>
...
...
@@ -235,6 +254,9 @@
<EmbeddedResource Include="boxForm\FrmPosResult.resx">
<DependentUpon>FrmPosResult.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="boxForm\userControl\Box_IO.resx">
<DependentUpon>Box_IO.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="boxForm\userControl\UCStatusPanel.resx">
<DependentUpon>UCStatusPanel.cs</DependentUpon>
</EmbeddedResource>
...
...
@@ -250,6 +272,12 @@
<EmbeddedResource Include="inputForm\FrmBatchMove.resx">
<DependentUpon>FrmBatchMove.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="inputForm\uc\Input_AxisControl.resx">
<DependentUpon>Input_AxisControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="inputForm\uc\Input_IO.resx">
<DependentUpon>Input_IO.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="useControl\AxisMoveControl.resx">
<DependentUpon>AxisMoveControl.cs</DependentUpon>
</EmbeddedResource>
...
...
source/XLRStoreClient/boxForm/FrmAxisMove.Designer.cs
查看文件 @
8955813
此文件的差异太大,无法显示。
source/XLRStoreClient/boxForm/FrmAxisMove.cs
查看文件 @
8955813
...
...
@@ -14,7 +14,7 @@ using System.IO;
namespace
OnlineStore.XLRStore
{
internal
partial
class
FrmAxisMove
:
FrmBase
internal
partial
class
FrmAxisMove
:
Form
{
internal
FrmAxisMove
(
bool
isDebug
)
{
...
...
source/XLRStoreClient/boxForm/FrmBoxEquip.Designer.cs
查看文件 @
8955813
...
...
@@ -18,26 +18,6 @@
this
.
components
=
new
System
.
ComponentModel
.
Container
();
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
FrmBoxEquip
));
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnCloseAll
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtDOIndex
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtDoName
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lblAddr
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnOpenDo
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnWriteSingleDO
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtWriteTime
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtSlaveId
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
cmbWriteIO
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
groupBox4
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupDO
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucHumitempure4
=
new
OnlineStore
.
XLRStore
.
UCHumitempure
();
this
.
ucHumitempure3
=
new
OnlineStore
.
XLRStore
.
UCHumitempure
();
this
.
ucHumitempure2
=
new
OnlineStore
.
XLRStore
.
UCHumitempure
();
this
.
ucHumitempure1
=
new
OnlineStore
.
XLRStore
.
UCHumitempure
();
this
.
lblThisSta
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tabControl1
=
new
System
.
Windows
.
Forms
.
TabControl
();
this
.
tabPage3
=
new
System
.
Windows
.
Forms
.
TabPage
();
...
...
@@ -45,23 +25,17 @@
this
.
lblInoutInfo
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblMoveInfo
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblInstoreList
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tabPage1
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
panBase
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
btnDe
bugAxis
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnDe
viceLed
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
chbMoveStop
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
lblName
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
chbDebug
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
lblStoreStatus
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnStart
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
groupDO
.
SuspendLayout
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabPage3
.
SuspendLayout
();
this
.
groupBox6
.
SuspendLayout
();
this
.
tabPage1
.
SuspendLayout
();
this
.
panBase
.
SuspendLayout
();
this
.
SuspendLayout
();
//
...
...
@@ -70,252 +44,6 @@
this
.
timer1
.
Interval
=
1000
;
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer1_Tick
);
//
// groupBox1
//
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnCloseAll
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtDOIndex
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtDoName
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
lblAddr
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnOpenDo
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnWriteSingleDO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtWriteTime
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label5
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtSlaveId
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
cmbWriteIO
);
this
.
groupBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
414
,
6
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
565
,
116
);
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
//
// btnCloseAll
//
this
.
btnCloseAll
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCloseAll
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseAll
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
423
,
63
);
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnCloseAll
.
TabIndex
=
259
;
this
.
btnCloseAll
.
Text
=
"关闭所有DO"
;
this
.
btnCloseAll
.
UseVisualStyleBackColor
=
false
;
//
// txtDOIndex
//
this
.
txtDOIndex
.
Enabled
=
false
;
this
.
txtDOIndex
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtDOIndex
.
Location
=
new
System
.
Drawing
.
Point
(
493
,
25
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
40
,
27
);
this
.
txtDOIndex
.
TabIndex
=
276
;
this
.
txtDOIndex
.
Text
=
"0"
;
this
.
txtDOIndex
.
Visible
=
false
;
//
// txtDoName
//
this
.
txtDoName
.
Enabled
=
false
;
this
.
txtDoName
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtDoName
.
Location
=
new
System
.
Drawing
.
Point
(
467
,
25
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
27
,
27
);
this
.
txtDoName
.
TabIndex
=
275
;
this
.
txtDoName
.
Text
=
"0"
;
this
.
txtDoName
.
Visible
=
false
;
//
// lblAddr
//
this
.
lblAddr
.
AutoSize
=
true
;
this
.
lblAddr
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblAddr
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblAddr
.
Location
=
new
System
.
Drawing
.
Point
(
286
,
28
);
this
.
lblAddr
.
Name
=
"lblAddr"
;
this
.
lblAddr
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
20
);
this
.
lblAddr
.
TabIndex
=
274
;
this
.
lblAddr
.
Text
=
"设备:"
;
this
.
lblAddr
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// btnOpenDo
//
this
.
btnOpenDo
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnOpenDo
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenDo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDo
.
Location
=
new
System
.
Drawing
.
Point
(
161
,
63
);
this
.
btnOpenDo
.
Name
=
"btnOpenDo"
;
this
.
btnOpenDo
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnOpenDo
.
TabIndex
=
272
;
this
.
btnOpenDo
.
Text
=
"打开"
;
this
.
btnOpenDo
.
UseVisualStyleBackColor
=
false
;
this
.
btnOpenDo
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenDo_Click
);
//
// btnWriteSingleDO
//
this
.
btnWriteSingleDO
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnWriteSingleDO
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnWriteSingleDO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnWriteSingleDO
.
Location
=
new
System
.
Drawing
.
Point
(
289
,
63
);
this
.
btnWriteSingleDO
.
Name
=
"btnWriteSingleDO"
;
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnWriteSingleDO
.
TabIndex
=
269
;
this
.
btnWriteSingleDO
.
Text
=
"关闭"
;
this
.
btnWriteSingleDO
.
UseVisualStyleBackColor
=
false
;
this
.
btnWriteSingleDO
.
Click
+=
new
System
.
EventHandler
(
this
.
btnWriteSingleDO_Click
);
//
// txtWriteTime
//
this
.
txtWriteTime
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtWriteTime
.
Location
=
new
System
.
Drawing
.
Point
(
84
,
69
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
58
,
27
);
this
.
txtWriteTime
.
TabIndex
=
271
;
this
.
txtWriteTime
.
Text
=
"0"
;
//
// label5
//
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label5
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
18
,
72
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
20
);
this
.
label5
.
TabIndex
=
270
;
this
.
label5
.
Text
=
"定时(ms):"
;
this
.
label5
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// txtSlaveId
//
this
.
txtSlaveId
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtSlaveId
.
Location
=
new
System
.
Drawing
.
Point
(
544
,
29
);
this
.
txtSlaveId
.
MaxLength
=
10
;
this
.
txtSlaveId
.
Name
=
"txtSlaveId"
;
this
.
txtSlaveId
.
Size
=
new
System
.
Drawing
.
Size
(
12
,
27
);
this
.
txtSlaveId
.
TabIndex
=
255
;
this
.
txtSlaveId
.
Text
=
"0"
;
this
.
txtSlaveId
.
Visible
=
false
;
//
// cmbWriteIO
//
this
.
cmbWriteIO
.
DisplayMember
=
"ProName"
;
this
.
cmbWriteIO
.
DrawMode
=
System
.
Windows
.
Forms
.
DrawMode
.
OwnerDrawVariable
;
this
.
cmbWriteIO
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbWriteIO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbWriteIO
.
FormattingEnabled
=
true
;
this
.
cmbWriteIO
.
ItemHeight
=
22
;
this
.
cmbWriteIO
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
22
);
this
.
cmbWriteIO
.
Name
=
"cmbWriteIO"
;
this
.
cmbWriteIO
.
Size
=
new
System
.
Drawing
.
Size
(
259
,
28
);
this
.
cmbWriteIO
.
TabIndex
=
234
;
this
.
cmbWriteIO
.
ValueMember
=
"ProName"
;
this
.
cmbWriteIO
.
DrawItem
+=
new
System
.
Windows
.
Forms
.
DrawItemEventHandler
(
this
.
cmbWriteIO_DrawItem
);
this
.
cmbWriteIO
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbWriteIO_SelectedIndexChanged
);
//
// groupBox4
//
this
.
groupBox4
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox4
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
210
,
6
);
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
200
,
505
);
this
.
groupBox4
.
TabIndex
=
104
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"DO列表"
;
//
// tableLayoutPanel2
//
this
.
tableLayoutPanel2
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
tableLayoutPanel2
.
AutoScroll
=
true
;
this
.
tableLayoutPanel2
.
ColumnCount
=
1
;
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel2
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
14
);
this
.
tableLayoutPanel2
.
Name
=
"tableLayoutPanel2"
;
this
.
tableLayoutPanel2
.
RowCount
=
2
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
189
,
485
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
// groupBox3
//
this
.
groupBox3
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox3
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
6
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
200
,
505
);
this
.
groupBox3
.
TabIndex
=
103
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"DI列表"
;
//
// tableLayoutPanel1
//
this
.
tableLayoutPanel1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
tableLayoutPanel1
.
AutoScroll
=
true
;
this
.
tableLayoutPanel1
.
ColumnCount
=
1
;
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
14
);
this
.
tableLayoutPanel1
.
Name
=
"tableLayoutPanel1"
;
this
.
tableLayoutPanel1
.
RowCount
=
2
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
189
,
485
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// groupDO
//
this
.
groupDO
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupDO
.
Controls
.
Add
(
this
.
ucHumitempure4
);
this
.
groupDO
.
Controls
.
Add
(
this
.
ucHumitempure3
);
this
.
groupDO
.
Controls
.
Add
(
this
.
ucHumitempure2
);
this
.
groupDO
.
Controls
.
Add
(
this
.
ucHumitempure1
);
this
.
groupDO
.
Location
=
new
System
.
Drawing
.
Point
(
414
,
128
);
this
.
groupDO
.
Name
=
"groupDO"
;
this
.
groupDO
.
Size
=
new
System
.
Drawing
.
Size
(
565
,
381
);
this
.
groupDO
.
TabIndex
=
255
;
this
.
groupDO
.
TabStop
=
false
;
this
.
groupDO
.
Text
=
"温湿度"
;
//
// ucHumitempure4
//
this
.
ucHumitempure4
.
Location
=
new
System
.
Drawing
.
Point
(
241
,
186
);
this
.
ucHumitempure4
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
5
,
3
,
5
);
this
.
ucHumitempure4
.
Name
=
"ucHumitempure4"
;
this
.
ucHumitempure4
.
Size
=
new
System
.
Drawing
.
Size
(
194
,
153
);
this
.
ucHumitempure4
.
TabIndex
=
3
;
//
// ucHumitempure3
//
this
.
ucHumitempure3
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
186
);
this
.
ucHumitempure3
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
5
,
3
,
5
);
this
.
ucHumitempure3
.
Name
=
"ucHumitempure3"
;
this
.
ucHumitempure3
.
Size
=
new
System
.
Drawing
.
Size
(
194
,
153
);
this
.
ucHumitempure3
.
TabIndex
=
2
;
//
// ucHumitempure2
//
this
.
ucHumitempure2
.
Location
=
new
System
.
Drawing
.
Point
(
241
,
28
);
this
.
ucHumitempure2
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
5
,
3
,
5
);
this
.
ucHumitempure2
.
Name
=
"ucHumitempure2"
;
this
.
ucHumitempure2
.
Size
=
new
System
.
Drawing
.
Size
(
194
,
153
);
this
.
ucHumitempure2
.
TabIndex
=
1
;
//
// ucHumitempure1
//
this
.
ucHumitempure1
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
27
);
this
.
ucHumitempure1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
4
,
3
,
4
);
this
.
ucHumitempure1
.
Name
=
"ucHumitempure1"
;
this
.
ucHumitempure1
.
Size
=
new
System
.
Drawing
.
Size
(
194
,
153
);
this
.
ucHumitempure1
.
TabIndex
=
0
;
//
// lblThisSta
//
this
.
lblThisSta
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
...
...
@@ -336,7 +64,6 @@
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage3
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage1
);
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
60
);
this
.
tabControl1
.
Name
=
"tabControl1"
;
this
.
tabControl1
.
SelectedIndex
=
0
;
...
...
@@ -348,7 +75,7 @@
this
.
tabPage3
.
Controls
.
Add
(
this
.
groupBox6
);
this
.
tabPage3
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
29
);
this
.
tabPage3
.
Name
=
"tabPage3"
;
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
985
,
468
);
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
985
,
514
);
this
.
tabPage3
.
TabIndex
=
2
;
this
.
tabPage3
.
Text
=
" 设备状态 "
;
this
.
tabPage3
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -401,26 +128,12 @@
this
.
lblInstoreList
.
Size
=
new
System
.
Drawing
.
Size
(
736
,
74
);
this
.
lblInstoreList
.
TabIndex
=
277
;
//
// tabPage1
//
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupDO
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox4
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
29
);
this
.
tabPage1
.
Name
=
"tabPage1"
;
this
.
tabPage1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
985
,
514
);
this
.
tabPage1
.
TabIndex
=
0
;
this
.
tabPage1
.
Text
=
" IO列表 "
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
//
// panBase
//
this
.
panBase
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
panBase
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
FixedSingle
;
this
.
panBase
.
Controls
.
Add
(
this
.
btnDe
bugAxis
);
this
.
panBase
.
Controls
.
Add
(
this
.
btnDe
viceLed
);
this
.
panBase
.
Controls
.
Add
(
this
.
chbMoveStop
);
this
.
panBase
.
Controls
.
Add
(
this
.
lblName
);
this
.
panBase
.
Controls
.
Add
(
this
.
chbDebug
);
...
...
@@ -432,24 +145,24 @@
this
.
panBase
.
Size
=
new
System
.
Drawing
.
Size
(
997
,
50
);
this
.
panBase
.
TabIndex
=
260
;
//
// btnDe
bugAxis
// btnDe
viceLed
//
this
.
btnDe
bugAxis
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnDe
bugAxis
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnDe
bugAxis
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnDe
bugAxis
.
Location
=
new
System
.
Drawing
.
Point
(
240
,
3
);
this
.
btnDe
bugAxis
.
Name
=
"btnDebugAxis
"
;
this
.
btnDe
bugAxis
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
40
);
this
.
btnDe
bugAxis
.
TabIndex
=
263
;
this
.
btnDe
bugAxis
.
Text
=
"点位调试
"
;
this
.
btnDe
bugAxis
.
UseVisualStyleBackColor
=
false
;
this
.
btnDe
bugAxis
.
Click
+=
new
System
.
EventHandler
(
this
.
btnDebugAxis_Click
);
this
.
btnDe
viceLed
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnDe
viceLed
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnDe
viceLed
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnDe
viceLed
.
Location
=
new
System
.
Drawing
.
Point
(
479
,
4
);
this
.
btnDe
viceLed
.
Name
=
"btnDeviceLed
"
;
this
.
btnDe
viceLed
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
40
);
this
.
btnDe
viceLed
.
TabIndex
=
263
;
this
.
btnDe
viceLed
.
Text
=
"开启照明
"
;
this
.
btnDe
viceLed
.
UseVisualStyleBackColor
=
false
;
this
.
btnDe
viceLed
.
Click
+=
new
System
.
EventHandler
(
this
.
btnDebugAxis_Click
);
//
// chbMoveStop
//
this
.
chbMoveStop
.
AutoSize
=
true
;
this
.
chbMoveStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbMoveStop
.
Location
=
new
System
.
Drawing
.
Point
(
597
,
14
);
this
.
chbMoveStop
.
Location
=
new
System
.
Drawing
.
Point
(
741
,
14
);
this
.
chbMoveStop
.
Name
=
"chbMoveStop"
;
this
.
chbMoveStop
.
Size
=
new
System
.
Drawing
.
Size
(
104
,
28
);
this
.
chbMoveStop
.
TabIndex
=
262
;
...
...
@@ -473,7 +186,7 @@
//
this
.
chbDebug
.
AutoSize
=
true
;
this
.
chbDebug
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbDebug
.
Location
=
new
System
.
Drawing
.
Point
(
496
,
14
);
this
.
chbDebug
.
Location
=
new
System
.
Drawing
.
Point
(
620
,
14
);
this
.
chbDebug
.
Name
=
"chbDebug"
;
this
.
chbDebug
.
Size
=
new
System
.
Drawing
.
Size
(
104
,
28
);
this
.
chbDebug
.
TabIndex
=
247
;
...
...
@@ -487,7 +200,7 @@
this
.
lblStoreStatus
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblStoreStatus
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblStoreStatus
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblStoreStatus
.
Location
=
new
System
.
Drawing
.
Point
(
701
,
15
);
this
.
lblStoreStatus
.
Location
=
new
System
.
Drawing
.
Point
(
862
,
15
);
this
.
lblStoreStatus
.
Name
=
"lblStoreStatus"
;
this
.
lblStoreStatus
.
Size
=
new
System
.
Drawing
.
Size
(
82
,
24
);
this
.
lblStoreStatus
.
TabIndex
=
245
;
...
...
@@ -503,7 +216,7 @@
this
.
btnStart
.
Name
=
"btnStart"
;
this
.
btnStart
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
40
);
this
.
btnStart
.
TabIndex
=
86
;
this
.
btnStart
.
Text
=
"启动
调试
"
;
this
.
btnStart
.
Text
=
"启动"
;
this
.
btnStart
.
UseVisualStyleBackColor
=
false
;
this
.
btnStart
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStart_Click
);
//
...
...
@@ -512,7 +225,7 @@
this
.
btnStop
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnStop
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnStop
.
Location
=
new
System
.
Drawing
.
Point
(
351
,
4
);
this
.
btnStop
.
Location
=
new
System
.
Drawing
.
Point
(
240
,
5
);
this
.
btnStop
.
Name
=
"btnStop"
;
this
.
btnStop
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
40
);
this
.
btnStop
.
TabIndex
=
87
;
...
...
@@ -535,16 +248,10 @@
this
.
FormClosing
+=
new
System
.
Windows
.
Forms
.
FormClosingEventHandler
(
this
.
FrmTest_FormClosing
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmStoreIOStatus_Load
);
this
.
Shown
+=
new
System
.
EventHandler
(
this
.
FrmIOStatus_Shown
);
this
.
groupBox1
.
ResumeLayout
(
false
);
this
.
groupBox1
.
PerformLayout
();
this
.
groupBox4
.
ResumeLayout
(
false
);
this
.
groupBox3
.
ResumeLayout
(
false
);
this
.
groupDO
.
ResumeLayout
(
false
);
this
.
tabControl1
.
ResumeLayout
(
false
);
this
.
tabPage3
.
ResumeLayout
(
false
);
this
.
groupBox6
.
ResumeLayout
(
false
);
this
.
groupBox6
.
PerformLayout
();
this
.
tabPage1
.
ResumeLayout
(
false
);
this
.
panBase
.
ResumeLayout
(
false
);
this
.
panBase
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
...
...
@@ -554,29 +261,12 @@
#
endregion
private
System
.
Windows
.
Forms
.
Timer
timer1
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox3
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel2
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox4
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbWriteIO
;
private
System
.
Windows
.
Forms
.
GroupBox
groupDO
;
private
System
.
Windows
.
Forms
.
Label
lblThisSta
;
private
System
.
Windows
.
Forms
.
TabControl
tabControl1
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage1
;
private
System
.
Windows
.
Forms
.
Button
btnCloseAll
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox6
;
private
System
.
Windows
.
Forms
.
Label
lblInstoreList
;
private
System
.
Windows
.
Forms
.
TextBox
txtDOIndex
;
private
System
.
Windows
.
Forms
.
TextBox
txtDoName
;
private
System
.
Windows
.
Forms
.
Label
lblAddr
;
private
System
.
Windows
.
Forms
.
Button
btnOpenDo
;
private
System
.
Windows
.
Forms
.
Button
btnWriteSingleDO
;
private
System
.
Windows
.
Forms
.
TextBox
txtWriteTime
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
Label
lblMoveInfo
;
private
System
.
Windows
.
Forms
.
Label
lblInoutInfo
;
private
System
.
Windows
.
Forms
.
TextBox
txtSlaveId
;
protected
System
.
Windows
.
Forms
.
Panel
panBase
;
protected
System
.
Windows
.
Forms
.
CheckBox
chbMoveStop
;
protected
System
.
Windows
.
Forms
.
Label
lblName
;
...
...
@@ -585,11 +275,7 @@
protected
System
.
Windows
.
Forms
.
Button
btnStart
;
protected
System
.
Windows
.
Forms
.
Button
btnStop
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage3
;
protected
System
.
Windows
.
Forms
.
Button
btnDebugAxis
;
private
UCHumitempure
ucHumitempure4
;
private
UCHumitempure
ucHumitempure3
;
private
UCHumitempure
ucHumitempure2
;
private
UCHumitempure
ucHumitempure1
;
protected
System
.
Windows
.
Forms
.
Button
btnDeviceLed
;
}
}
source/XLRStoreClient/boxForm/FrmBoxEquip.cs
查看文件 @
8955813
using
OnlineStore.Common
;
using
OnlineStore.DeviceLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
OnlineStore.XLRStore.inputForm.uc
;
using
System
;
using
System.Collections.Generic
;
using
System.Drawing
;
using
System.Windows.Forms
;
using
UserFromControl
;
using
static
System
.
Windows
.
Forms
.
AxHost
;
namespace
OnlineStore.XLRStore
{
internal
partial
class
FrmBoxEquip
:
FrmBase
{
FrmAxisMove
frmAxisMove
=
null
;
private
bool
IsLoad
=
false
;
private
BoxEquip
boxBean
;
List
<
UCHumitempure
>
humitempures
=
new
List
<
UCHumitempure
>();
internal
FrmBoxEquip
(
BoxEquip
moveEquip
)
{
this
.
boxBean
=
moveEquip
;
Control
.
CheckForIllegalCrossThreadCalls
=
false
;
InitializeComponent
();
LoadIOList
();
}
private
void
FrmStoreIOStatus_Load
(
object
sender
,
EventArgs
e
)
{
chbMoveStop
.
Checked
=
boxBean
.
MoveStop
;
lblStoreStatus
.
Text
=
DeviceBase
.
GetRunStr
(
boxBean
.
runStatus
);
lblThisSta
.
Text
=
boxBean
.
WarnMsg
;
humitempures
.
Add
(
ucHumitempure1
);
humitempures
.
Add
(
ucHumitempure2
);
humitempures
.
Add
(
ucHumitempure3
);
humitempures
.
Add
(
ucHumitempure4
);
lblName
.
Text
=
boxBean
.
Name
;
this
.
Text
=
boxBean
.
Name
;
chbDebug
.
Checked
=
boxBean
.
IsDebug
;
FrmPosDebug
frmPosDebug
=
new
FrmPosDebug
();
AddForm
(
tabControl1
,
" 库位调试 "
,
frmPosDebug
);
initConfigWindow
(
boxBean
);
IsLoad
=
true
;
}
protected
Dictionary
<
string
,
IOTextControl
>
DIControlList
=
new
Dictionary
<
string
,
IOTextControl
>();
...
...
@@ -119,51 +114,6 @@ namespace OnlineStore.XLRStore
}
}
private
void
LoadIOList
()
{
int
roleindex
=
0
;
this
.
tableLayoutPanel1
.
RowStyles
.
Clear
();
this
.
tableLayoutPanel1
.
RowCount
=
boxBean
.
Config
.
DIList
.
Count
;
foreach
(
ConfigIO
ioValue
in
boxBean
.
Config
.
DIList
.
Values
)
{
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
,
220
);
this
.
tableLayoutPanel1
.
Controls
.
Add
(
control
,
0
,
roleindex
);
roleindex
++;
DIControlList
.
Add
(
ioValue
.
ProName
,
control
);
}
tableLayoutPanel2
.
RowStyles
.
Clear
();
this
.
tableLayoutPanel2
.
RowCount
=
boxBean
.
Config
.
DOList
.
Count
;
roleindex
=
0
;
foreach
(
ConfigIO
ioValue
in
boxBean
.
Config
.
DOList
.
Values
)
{
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
,
220
);
control
.
Click
+=
Control_Click
;
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
roleindex
++;
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
}
this
.
SuspendLayout
();
cmbWriteIO
.
DataSource
=
new
List
<
ConfigIO
>(
boxBean
.
Config
.
DOList
.
Values
);
cmbWriteIO
.
ValueMember
=
"ProName"
;
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
}
private
void
Control_Click
(
object
sender
,
EventArgs
e
)
{
IOTextControl
control
=
(
IOTextControl
)
sender
;
string
name
=
control
.
Name
.
Substring
(
3
,
control
.
Name
.
Length
-
3
);
List
<
string
>
keyList
=
new
List
<
string
>(
DOControlList
.
Keys
);
int
index
=
keyList
.
IndexOf
(
name
);
if
(
index
>=
0
)
{
cmbWriteIO
.
SelectedIndex
=
index
;
}
}
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
try
...
...
@@ -172,9 +122,16 @@ namespace OnlineStore.XLRStore
{
return
;
}
ReadIOList
();
//ReadBtnDO();
// clampJawControl1.UpdateSta();
if
(
boxBean
.
IsDeviceLEDOn
())
{
btnDeviceLed
.
Text
=
"关闭照明"
;
}
else
{
btnDeviceLed
.
Text
=
"开启照明"
;
}
lblName
.
BackColor
=
boxBean
.
GetShowColor
();
if
(
boxBean
.
runStatus
>
RunStatus
.
Wait
)
{
...
...
@@ -255,14 +212,6 @@ namespace OnlineStore.XLRStore
//{
// btnHlhasReel.Visible = false;
//}
List
<
HumitureParam
>
huparam
=
HumitureBean
.
GetHumitureParams
();
for
(
int
i
=
0
;
i
<
humitempures
.
Count
;
i
++)
{
humitempures
[
i
].
Humiti
=
huparam
[
i
].
Humidity
;
humitempures
[
i
].
Tempure
=
huparam
[
i
].
Temperate
;
humitempures
[
i
].
Nitrogen
=
100
-
huparam
[
i
].
OxygenV
;
humitempures
[
i
].
HumiName
=
huparam
[
i
].
DeviceAddress
;
}
}
catch
(
Exception
ex
)
{
...
...
@@ -286,79 +235,6 @@ namespace OnlineStore.XLRStore
LogUtil
.
error
(
""
,
ex
);
}
}
private
void
btnOpenDo_Click
(
object
sender
,
EventArgs
e
)
{
WriteDO
(
IO_VALUE
.
HIGH
);
}
private
void
btnWriteSingleDO_Click
(
object
sender
,
EventArgs
e
)
{
WriteDO
(
IO_VALUE
.
LOW
);
}
private
void
WriteDO
(
IO_VALUE
value
)
{
string
deviceName
=
txtDoName
.
Text
;
int
index
=
FormUtil
.
GetIntValue
(
txtDOIndex
);
// IO_VALUE value = checkBox1.Checked ? IO_VALUE.HIGH : IO_VALUE.LOW;
int
time
=
FormUtil
.
GetIntValue
(
txtWriteTime
);
int
slaveId
=
FormUtil
.
GetIntValue
(
txtSlaveId
);
if
(
time
>
0
)
{
IOManager
.
instance
.
WriteSingleDO
(
deviceName
,
(
byte
)
slaveId
,
(
ushort
)
index
,
(
IO_VALUE
)
value
,
time
);
}
else
{
IOManager
.
instance
.
WriteSingleDO
(
deviceName
,
(
byte
)
slaveId
,
(
ushort
)
index
,
(
IO_VALUE
)
value
);
}
}
private
ConfigIO
GetSelectDO
()
{
string
text
=
cmbWriteIO
.
SelectedValue
.
ToString
();
if
(
boxBean
.
Config
.
DOList
.
ContainsKey
(
text
))
{
ConfigIO
io
=
boxBean
.
Config
.
DOList
[
text
];
return
io
;
}
return
null
;
}
IOTextControl
selectControl
=
null
;
private
void
cmbWriteIO_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
if
(
cmbWriteIO
.
SelectedIndex
>=
0
)
{
ConfigIO
io
=
GetSelectDO
();
if
(
io
!=
null
)
{
// txtIp.Text = io.DeviceName;
txtDOIndex
.
Text
=
io
.
GetIOAddr
().
ToString
();
txtDoName
.
Text
=
io
.
IO_IP
;
txtSlaveId
.
Text
=
io
.
SlaveID
.
ToString
();
lblAddr
.
Text
=
txtDoName
.
Text
+
"_"
+
txtDOIndex
.
Text
;
IOTextControl
newControl
=
DOControlList
[
io
.
ProName
];
if
(
selectControl
!=
null
)
{
selectControl
.
BackColor
=
Color
.
White
;
}
newControl
.
BackColor
=
Color
.
SkyBlue
;
selectControl
=
newControl
;
}
}
}
private
void
cmbWriteIO_DrawItem
(
object
sender
,
DrawItemEventArgs
e
)
{
if
(
e
.
Index
<
0
)
{
return
;
}
e
.
DrawBackground
();
e
.
DrawFocusRectangle
();
if
(
cmbWriteIO
.
Items
.
Count
>
e
.
Index
)
{
ConfigIO
io
=
(
ConfigIO
)
cmbWriteIO
.
Items
[
e
.
Index
];
e
.
Graphics
.
DrawString
(
io
.
DisplayStr
,
e
.
Font
,
new
SolidBrush
(
e
.
ForeColor
),
e
.
Bounds
.
X
,
e
.
Bounds
.
Y
+
3
);
}
}
private
void
btnReadIO_Click
(
object
sender
,
EventArgs
e
)
{
ReadIOList
();
}
private
void
FrmIOStatus_Shown
(
object
sender
,
EventArgs
e
)
{
timer1
.
Start
();
...
...
@@ -388,7 +264,7 @@ namespace OnlineStore.XLRStore
}
else
{
btnStart
.
Text
=
"启动
调试
"
;
btnStart
.
Text
=
"启动"
;
}
//btnReset.Enabled = isStart;
}
...
...
@@ -485,25 +361,74 @@ namespace OnlineStore.XLRStore
private
void
btnDebugAxis_Click
(
object
sender
,
EventArgs
e
)
{
if
(
frmAxisMove
==
null
)
if
(
boxBean
.
IsDeviceLEDOn
()
)
{
frmAxisMove
=
new
FrmAxisMove
(
true
);
frmAxisMove
.
ShowDialog
();
boxBean
.
DeviceLED
(
false
);
}
else
{
if
(
frmAxisMove
.
IsDisposed
)
boxBean
.
DeviceLED
(
true
);
}
}
#
region
调试界面展示
FrmPosDebug
frmPosDebug
;
Box_IO
io
;
FrmAxisMove
axisMove
;
void
initConfigWindow
(
BoxEquip
equip
)
{
axisMove
=
new
FrmAxisMove
(
true
);
frmPosDebug
=
new
FrmPosDebug
();
io
=
new
Box_IO
(
equip
);
}
// AddForm(tabControl1, " 库位调试 ", frmPosDebug);
void
addTablePage
()
{
AddForm
(
"IO调试"
,
io
);
AddForm
(
"伺服调试"
,
axisMove
);
AddForm
(
"库位调试"
,
frmPosDebug
);
}
public
void
Frm_ConfigModeEvent
(
bool
state
)
{
if
(
state
)
{
frmAxisMove
=
new
FrmAxisMove
(
true
);
frmAxisMove
.
ShowDialog
();
addTablePage
();
}
else
{
frmAxisMove
.
DebugStatus
(
true
);
frmAxisMove
.
ShowDialog
();
for
(
int
i
=
tabControl1
.
TabPages
.
Count
-
1
;
i
>
0
;
i
--)
{
tabControl1
.
TabPages
[
i
].
Parent
=
null
;
}
}
}
private
void
AddForm
(
string
text
,
UserControl
form
)
{
//text = text.PadLeft(10, ' ');
TabPage
lineTabPage
=
new
TabPage
(
text
);
// lineTabPage.AutoScroll = true;
//lineTabPage.Tag = robot;
Panel
linePan
=
new
Panel
();
linePan
.
Dock
=
DockStyle
.
Fill
;
linePan
.
AutoScroll
=
true
;
lineTabPage
.
Controls
.
Add
(
linePan
);
//form.FormBorderStyle = FormBorderStyle.None;
//form.TopLevel = false;
linePan
.
Controls
.
Add
(
form
);
form
.
Dock
=
DockStyle
.
Fill
;
linePan
.
Anchor
=
((
AnchorStyles
)((
AnchorStyles
.
Top
|
AnchorStyles
.
Right
|
AnchorStyles
.
Bottom
|
AnchorStyles
.
Left
)));
form
.
Anchor
=
((
AnchorStyles
)((
AnchorStyles
.
Top
|
AnchorStyles
.
Right
|
AnchorStyles
.
Bottom
|
AnchorStyles
.
Left
)));
form
.
Show
();
//tabPageList.Add(lineTabPage);
tabControl1
.
Controls
.
Add
(
lineTabPage
);
}
private
void
AddForm
(
string
text
,
Form
form
)
{
AddForm
(
tabControl1
,
text
,
form
);
}
#
endregion
}
}
...
...
source/XLRStoreClient/boxForm/userControl/Box_IO.Designer.cs
0 → 100644
查看文件 @
8955813
namespace
OnlineStore.XLRStore.inputForm.uc
{
partial
class
Box_IO
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private
System
.
ComponentModel
.
IContainer
components
=
null
;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
disposing
&&
(
components
!=
null
))
{
components
.
Dispose
();
}
base
.
Dispose
(
disposing
);
}
#
region
组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private
void
InitializeComponent
()
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox4
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
txtDOIndex
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtDoName
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lblAddr
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnOpenDo
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtSlaveId
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
cmbWriteIO
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnWriteSingleDO
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtWriteTime
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
btnCloseAll
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupDO
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucHumitempure4
=
new
OnlineStore
.
XLRStore
.
UCHumitempure
();
this
.
ucHumitempure3
=
new
OnlineStore
.
XLRStore
.
UCHumitempure
();
this
.
ucHumitempure2
=
new
OnlineStore
.
XLRStore
.
UCHumitempure
();
this
.
ucHumitempure1
=
new
OnlineStore
.
XLRStore
.
UCHumitempure
();
this
.
groupBox3
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupDO
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// groupBox3
//
this
.
groupBox3
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox3
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
231
,
558
);
this
.
groupBox3
.
TabIndex
=
104
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"DI列表"
;
//
// tableLayoutPanel1
//
this
.
tableLayoutPanel1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
tableLayoutPanel1
.
AutoScroll
=
true
;
this
.
tableLayoutPanel1
.
ColumnCount
=
1
;
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
24
);
this
.
tableLayoutPanel1
.
Name
=
"tableLayoutPanel1"
;
this
.
tableLayoutPanel1
.
RowCount
=
2
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
528
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// groupBox4
//
this
.
groupBox4
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox4
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
240
,
9
);
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
231
,
546
);
this
.
groupBox4
.
TabIndex
=
105
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"DO列表"
;
//
// tableLayoutPanel2
//
this
.
tableLayoutPanel2
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
tableLayoutPanel2
.
AutoScroll
=
true
;
this
.
tableLayoutPanel2
.
ColumnCount
=
1
;
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel2
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
14
);
this
.
tableLayoutPanel2
.
Name
=
"tableLayoutPanel2"
;
this
.
tableLayoutPanel2
.
RowCount
=
2
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
526
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
// groupBox1
//
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnCloseAll
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtDOIndex
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtDoName
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
lblAddr
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnOpenDo
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtSlaveId
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
cmbWriteIO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnWriteSingleDO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtWriteTime
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label5
);
this
.
groupBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
477
,
23
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
466
,
157
);
this
.
groupBox1
.
TabIndex
=
106
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
//
// txtDOIndex
//
this
.
txtDOIndex
.
Enabled
=
false
;
this
.
txtDOIndex
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtDOIndex
.
Location
=
new
System
.
Drawing
.
Point
(
386
,
47
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
27
);
this
.
txtDOIndex
.
TabIndex
=
260
;
this
.
txtDOIndex
.
Text
=
"0"
;
this
.
txtDOIndex
.
Visible
=
false
;
//
// txtDoName
//
this
.
txtDoName
.
Enabled
=
false
;
this
.
txtDoName
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtDoName
.
Location
=
new
System
.
Drawing
.
Point
(
386
,
64
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
53
,
27
);
this
.
txtDoName
.
TabIndex
=
259
;
this
.
txtDoName
.
Text
=
"0"
;
this
.
txtDoName
.
Visible
=
false
;
//
// lblAddr
//
this
.
lblAddr
.
AutoSize
=
true
;
this
.
lblAddr
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblAddr
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblAddr
.
Location
=
new
System
.
Drawing
.
Point
(
364
,
27
);
this
.
lblAddr
.
Name
=
"lblAddr"
;
this
.
lblAddr
.
Size
=
new
System
.
Drawing
.
Size
(
56
,
20
);
this
.
lblAddr
.
TabIndex
=
258
;
this
.
lblAddr
.
Text
=
"设备IP:"
;
this
.
lblAddr
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// btnOpenDo
//
this
.
btnOpenDo
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnOpenDo
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenDo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDo
.
Location
=
new
System
.
Drawing
.
Point
(
147
,
55
);
this
.
btnOpenDo
.
Name
=
"btnOpenDo"
;
this
.
btnOpenDo
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnOpenDo
.
TabIndex
=
256
;
this
.
btnOpenDo
.
Text
=
"打开"
;
this
.
btnOpenDo
.
UseVisualStyleBackColor
=
false
;
this
.
btnOpenDo
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenDo_Click
);
//
// txtSlaveId
//
this
.
txtSlaveId
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtSlaveId
.
Location
=
new
System
.
Drawing
.
Point
(
427
,
24
);
this
.
txtSlaveId
.
MaxLength
=
10
;
this
.
txtSlaveId
.
Name
=
"txtSlaveId"
;
this
.
txtSlaveId
.
Size
=
new
System
.
Drawing
.
Size
(
12
,
27
);
this
.
txtSlaveId
.
TabIndex
=
255
;
this
.
txtSlaveId
.
Text
=
"0"
;
this
.
txtSlaveId
.
Visible
=
false
;
//
// cmbWriteIO
//
this
.
cmbWriteIO
.
DisplayMember
=
"ProName"
;
this
.
cmbWriteIO
.
DrawMode
=
System
.
Windows
.
Forms
.
DrawMode
.
OwnerDrawVariable
;
this
.
cmbWriteIO
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbWriteIO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbWriteIO
.
FormattingEnabled
=
true
;
this
.
cmbWriteIO
.
ItemHeight
=
22
;
this
.
cmbWriteIO
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
21
);
this
.
cmbWriteIO
.
Name
=
"cmbWriteIO"
;
this
.
cmbWriteIO
.
Size
=
new
System
.
Drawing
.
Size
(
341
,
28
);
this
.
cmbWriteIO
.
TabIndex
=
234
;
this
.
cmbWriteIO
.
ValueMember
=
"ProName"
;
this
.
cmbWriteIO
.
DrawItem
+=
new
System
.
Windows
.
Forms
.
DrawItemEventHandler
(
this
.
cmbWriteIO_DrawItem
);
this
.
cmbWriteIO
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbWriteIO_SelectedIndexChanged
);
//
// btnWriteSingleDO
//
this
.
btnWriteSingleDO
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnWriteSingleDO
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnWriteSingleDO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnWriteSingleDO
.
Location
=
new
System
.
Drawing
.
Point
(
262
,
55
);
this
.
btnWriteSingleDO
.
Name
=
"btnWriteSingleDO"
;
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnWriteSingleDO
.
TabIndex
=
232
;
this
.
btnWriteSingleDO
.
Text
=
"关闭"
;
this
.
btnWriteSingleDO
.
UseVisualStyleBackColor
=
false
;
this
.
btnWriteSingleDO
.
Click
+=
new
System
.
EventHandler
(
this
.
btnWriteSingleDO_Click
);
//
// txtWriteTime
//
this
.
txtWriteTime
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtWriteTime
.
Location
=
new
System
.
Drawing
.
Point
(
82
,
61
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
27
);
this
.
txtWriteTime
.
TabIndex
=
238
;
this
.
txtWriteTime
.
Text
=
"0"
;
//
// label5
//
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label5
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
64
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
20
);
this
.
label5
.
TabIndex
=
237
;
this
.
label5
.
Text
=
"定时(ms):"
;
this
.
label5
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// timer1
//
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer1_Tick
);
//
// btnCloseAll
//
this
.
btnCloseAll
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCloseAll
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseAll
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
104
,
104
);
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
164
,
35
);
this
.
btnCloseAll
.
TabIndex
=
259
;
this
.
btnCloseAll
.
Text
=
"关闭所有DO"
;
this
.
btnCloseAll
.
UseVisualStyleBackColor
=
false
;
this
.
btnCloseAll
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCloseAll_Click
);
//
// groupDO
//
this
.
groupDO
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupDO
.
Controls
.
Add
(
this
.
ucHumitempure4
);
this
.
groupDO
.
Controls
.
Add
(
this
.
ucHumitempure3
);
this
.
groupDO
.
Controls
.
Add
(
this
.
ucHumitempure2
);
this
.
groupDO
.
Controls
.
Add
(
this
.
ucHumitempure1
);
this
.
groupDO
.
Location
=
new
System
.
Drawing
.
Point
(
477
,
186
);
this
.
groupDO
.
Name
=
"groupDO"
;
this
.
groupDO
.
Size
=
new
System
.
Drawing
.
Size
(
479
,
369
);
this
.
groupDO
.
TabIndex
=
256
;
this
.
groupDO
.
TabStop
=
false
;
this
.
groupDO
.
Text
=
"温湿度"
;
//
// ucHumitempure4
//
this
.
ucHumitempure4
.
Location
=
new
System
.
Drawing
.
Point
(
241
,
186
);
this
.
ucHumitempure4
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
5
,
3
,
5
);
this
.
ucHumitempure4
.
Name
=
"ucHumitempure4"
;
this
.
ucHumitempure4
.
Size
=
new
System
.
Drawing
.
Size
(
194
,
153
);
this
.
ucHumitempure4
.
TabIndex
=
3
;
//
// ucHumitempure3
//
this
.
ucHumitempure3
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
186
);
this
.
ucHumitempure3
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
5
,
3
,
5
);
this
.
ucHumitempure3
.
Name
=
"ucHumitempure3"
;
this
.
ucHumitempure3
.
Size
=
new
System
.
Drawing
.
Size
(
194
,
153
);
this
.
ucHumitempure3
.
TabIndex
=
2
;
//
// ucHumitempure2
//
this
.
ucHumitempure2
.
Location
=
new
System
.
Drawing
.
Point
(
241
,
28
);
this
.
ucHumitempure2
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
5
,
3
,
5
);
this
.
ucHumitempure2
.
Name
=
"ucHumitempure2"
;
this
.
ucHumitempure2
.
Size
=
new
System
.
Drawing
.
Size
(
194
,
153
);
this
.
ucHumitempure2
.
TabIndex
=
1
;
//
// ucHumitempure1
//
this
.
ucHumitempure1
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
27
);
this
.
ucHumitempure1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
4
,
3
,
4
);
this
.
ucHumitempure1
.
Name
=
"ucHumitempure1"
;
this
.
ucHumitempure1
.
Size
=
new
System
.
Drawing
.
Size
(
194
,
153
);
this
.
ucHumitempure1
.
TabIndex
=
0
;
//
// Box_IO
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
8F
,
15F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
Controls
.
Add
(
this
.
groupDO
);
this
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
Controls
.
Add
(
this
.
groupBox4
);
this
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
Name
=
"Box_IO"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
972
,
564
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
Input_IO_Load
);
this
.
groupBox3
.
ResumeLayout
(
false
);
this
.
groupBox4
.
ResumeLayout
(
false
);
this
.
groupBox1
.
ResumeLayout
(
false
);
this
.
groupBox1
.
PerformLayout
();
this
.
groupDO
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
}
#
endregion
private
System
.
Windows
.
Forms
.
GroupBox
groupBox3
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox4
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel2
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
TextBox
txtDOIndex
;
private
System
.
Windows
.
Forms
.
TextBox
txtDoName
;
private
System
.
Windows
.
Forms
.
Label
lblAddr
;
private
System
.
Windows
.
Forms
.
Button
btnOpenDo
;
private
System
.
Windows
.
Forms
.
TextBox
txtSlaveId
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbWriteIO
;
private
System
.
Windows
.
Forms
.
Button
btnWriteSingleDO
;
private
System
.
Windows
.
Forms
.
TextBox
txtWriteTime
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
Timer
timer1
;
private
System
.
Windows
.
Forms
.
Button
btnCloseAll
;
private
System
.
Windows
.
Forms
.
GroupBox
groupDO
;
private
UCHumitempure
ucHumitempure4
;
private
UCHumitempure
ucHumitempure3
;
private
UCHumitempure
ucHumitempure2
;
private
UCHumitempure
ucHumitempure1
;
}
}
source/XLRStoreClient/boxForm/userControl/Box_IO.cs
0 → 100644
查看文件 @
8955813
using
OnlineStore.Common
;
using
OnlineStore.DeviceLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Drawing
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
using
UserFromControl
;
using
static
System
.
Windows
.
Forms
.
VisualStyles
.
VisualStyleElement
.
Button
;
namespace
OnlineStore.XLRStore.inputForm.uc
{
public
partial
class
Box_IO
:
UserControl
{
public
Box_IO
(
BoxEquip
equip
)
{
Control
.
CheckForIllegalCrossThreadCalls
=
false
;
InitializeComponent
();
this
.
equip
=
equip
;
LoadIOList
();
humitempures
.
Add
(
ucHumitempure1
);
humitempures
.
Add
(
ucHumitempure2
);
humitempures
.
Add
(
ucHumitempure3
);
humitempures
.
Add
(
ucHumitempure4
);
}
List
<
UCHumitempure
>
humitempures
=
new
List
<
UCHumitempure
>();
private
BoxEquip
equip
;
IOTextControl
selectControl
=
null
;
protected
Dictionary
<
string
,
IOTextControl
>
DIControlList
=
new
Dictionary
<
string
,
IOTextControl
>();
protected
Dictionary
<
string
,
IOTextControl
>
DOControlList
=
new
Dictionary
<
string
,
IOTextControl
>();
protected
void
ReadIOList
()
{
foreach
(
string
key
in
DIControlList
.
Keys
)
{
IOTextControl
control
=
DIControlList
[
key
];
int
iov
=
(
int
)
IOManager
.
IOValue
(
key
,
equip
.
DeviceID
);
if
(
iov
!=
control
.
IOValue
)
{
control
.
IOValue
=
iov
;
control
.
ShowData
();
}
}
foreach
(
string
key
in
this
.
DOControlList
.
Keys
)
{
IOTextControl
control
=
DOControlList
[
key
];
int
iov
=
(
int
)
IOManager
.
DOValue
(
key
,
equip
.
DeviceID
);
if
(
iov
!=
control
.
IOValue
)
{
control
.
IOValue
=
iov
;
control
.
ShowData
();
}
}
}
private
void
LoadIOList
()
{
int
maxCount
=
20
;
int
roleindex
=
0
;
this
.
tableLayoutPanel1
.
RowStyles
.
Clear
();
this
.
tableLayoutPanel1
.
RowCount
=
maxCount
;
//this.tableLayoutPanel3.RowStyles.Clear();
//this.tableLayoutPanel3.RowCount = maxCount;
int
i
=
0
;
foreach
(
ConfigIO
ioValue
in
equip
.
Config
.
DIList
.
Values
)
{
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
//if (i >= maxCount)
//{
// this.tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Absolute, 28));
// this.tableLayoutPanel3.Controls.Add(control, 0, roleindex - maxCount);
//}
//else
{
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
this
.
tableLayoutPanel1
.
Controls
.
Add
(
control
,
0
,
roleindex
);
}
roleindex
++;
i
++;
DIControlList
.
Add
(
ioValue
.
ProName
,
control
);
}
tableLayoutPanel2
.
RowStyles
.
Clear
();
this
.
tableLayoutPanel2
.
RowCount
=
maxCount
;
roleindex
=
0
;
i
=
0
;
foreach
(
ConfigIO
ioValue
in
equip
.
Config
.
DOList
.
Values
)
{
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
control
.
Click
+=
Control_Click
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
roleindex
++;
i
++;
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
}
this
.
SuspendLayout
();
//此处为不闪屏,一定要有的!
cmbWriteIO
.
DataSource
=
new
List
<
ConfigIO
>(
equip
.
Config
.
DOList
.
Values
);
cmbWriteIO
.
ValueMember
=
"ProName"
;
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
}
private
void
Control_Click
(
object
sender
,
EventArgs
e
)
{
IOTextControl
control
=
(
IOTextControl
)
sender
;
string
name
=
control
.
Name
.
Substring
(
3
,
control
.
Name
.
Length
-
3
);
List
<
string
>
keyList
=
new
List
<
string
>(
DOControlList
.
Keys
);
int
index
=
keyList
.
IndexOf
(
name
);
if
(
index
>=
0
)
{
cmbWriteIO
.
SelectedIndex
=
index
;
}
}
private
void
cmbWriteIO_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
if
(
cmbWriteIO
.
SelectedIndex
>=
0
)
{
ConfigIO
io
=
GetSelectDO
();
if
(
io
!=
null
)
{
// txtIp.Text = io.DeviceName;
txtDOIndex
.
Text
=
io
.
GetIOAddr
().
ToString
();
txtDoName
.
Text
=
io
.
IO_IP
;
txtSlaveId
.
Text
=
io
.
SlaveID
.
ToString
();
lblAddr
.
Text
=
txtDoName
.
Text
+
"_"
+
txtDOIndex
.
Text
;
IOTextControl
newControl
=
DOControlList
[
io
.
ProName
];
if
(
selectControl
!=
null
)
{
selectControl
.
BackColor
=
Color
.
White
;
}
newControl
.
BackColor
=
Color
.
SkyBlue
;
selectControl
=
newControl
;
//txtIOInfo.Text = "IP:" + io.DeviceName + " /" + io.GetIOAddr().ToString();
}
}
}
private
ConfigIO
GetSelectDO
()
{
string
text
=
cmbWriteIO
.
SelectedValue
.
ToString
();
string
newType
=
text
.
Replace
(
"SW1_"
,
"SW_"
).
Replace
(
"SW2_"
,
"SW_"
).
Replace
(
"SW3_"
,
"SW_"
).
Replace
(
"SW4_"
,
"SW_"
);
if
(
equip
.
Config
.
DOList
.
ContainsKey
(
newType
))
{
ConfigIO
io
=
equip
.
Config
.
DOList
[
newType
];
return
io
;
}
return
null
;
}
private
void
WriteDO
(
IO_VALUE
value
)
{
string
deviceName
=
txtDoName
.
Text
;
int
index
=
FormUtil
.
GetIntValue
(
txtDOIndex
);
// IO_VALUE value = checkBox1.Checked ? IO_VALUE.HIGH : IO_VALUE.LOW;
int
time
=
FormUtil
.
GetIntValue
(
txtWriteTime
);
int
slaveId
=
FormUtil
.
GetIntValue
(
txtSlaveId
);
if
(
time
>
0
)
{
IOManager
.
instance
.
WriteSingleDO
(
deviceName
,
(
byte
)
slaveId
,
(
ushort
)
index
,
(
IO_VALUE
)
value
,
time
);
}
else
{
IOManager
.
instance
.
WriteSingleDO
(
deviceName
,
(
byte
)
slaveId
,
(
ushort
)
index
,
(
IO_VALUE
)
value
);
}
}
private
void
btnCloseAll_Click
(
object
sender
,
EventArgs
e
)
{
//foreach (Control con in groupDO.Controls)
//{
// if (con is Button)
// {
// con.BackColor = BackColor = Color.White;
// }
//}
//foreach (ConfigIO io in inputEquip.baseConfig.DOList.Values)
//{
// IOManager.instance.WriteSingleDO(io.IO_IP, io.SlaveID, io.GetIOAddr(), IO_VALUE.LOW);
//}
}
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
try
{
if
(!
this
.
Visible
)
{
return
;
}
ReadIOList
();
List
<
HumitureParam
>
huparam
=
HumitureBean
.
GetHumitureParams
();
for
(
int
i
=
0
;
i
<
humitempures
.
Count
;
i
++)
{
humitempures
[
i
].
Humiti
=
huparam
[
i
].
Humidity
;
humitempures
[
i
].
Tempure
=
huparam
[
i
].
Temperate
;
humitempures
[
i
].
Nitrogen
=
100
-
huparam
[
i
].
OxygenV
;
humitempures
[
i
].
HumiName
=
huparam
[
i
].
DeviceAddress
;
}
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
equip
.
Name
+
"读取IO定时器出错:"
,
ex
);
}
}
private
void
btnOpenDo_Click
(
object
sender
,
EventArgs
e
)
{
WriteDO
(
IO_VALUE
.
HIGH
);
}
private
void
btnWriteSingleDO_Click
(
object
sender
,
EventArgs
e
)
{
WriteDO
(
IO_VALUE
.
LOW
);
}
private
void
cmbWriteIO_DrawItem
(
object
sender
,
DrawItemEventArgs
e
)
{
if
(
e
.
Index
<
0
)
{
return
;
}
e
.
DrawBackground
();
e
.
DrawFocusRectangle
();
if
(
cmbWriteIO
.
Items
.
Count
>
e
.
Index
)
{
ConfigIO
io
=
(
ConfigIO
)
cmbWriteIO
.
Items
[
e
.
Index
];
e
.
Graphics
.
DrawString
(
io
.
DisplayStr
,
e
.
Font
,
new
SolidBrush
(
e
.
ForeColor
),
e
.
Bounds
.
X
,
e
.
Bounds
.
Y
+
3
);
}
}
private
void
Input_IO_Load
(
object
sender
,
EventArgs
e
)
{
timer1
.
Start
();
}
}
}
source/XLRStoreClient/boxForm/userControl/Box_IO.resx
0 → 100644
查看文件 @
8955813
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
\ No newline at end of file
source/XLRStoreClient/inputForm/FrmBatchMove.cs
查看文件 @
8955813
...
...
@@ -85,7 +85,7 @@ namespace OnlineStore.XLRStore
axisMoveControl1
.
LoadData
(
StoreManager
.
XLRStore
.
inputEquip
,
new
AxisBean
[]
{
moveBean
.
BatchAxis
});
batchAxisP1
.
SetMoveData
(
moveBean
.
BatchAxis
,
StoreManager
.
XLRStore
.
inputEquip
.
Config
.
BatchAxis_P1Speed
,
moveBean
.
Config
.
BatchAxisP1
);
batchAxisP2
.
SetMoveData
(
moveBean
.
BatchAxis
,
StoreManager
.
XLRStore
.
inputEquip
.
Config
.
BatchAxis_P2Speed
,
moveBean
.
Config
.
BatchAxisP2
);
batchAxisP2
.
SetMoveData
(
moveBean
.
BatchAxis
,
StoreManager
.
XLRStore
.
inputEquip
.
Config
.
BatchAxis_P2Speed
,
moveBean
.
Config
.
BatchAxisP2
);
batchAxisP4
.
SetMoveData
(
moveBean
.
BatchAxis
,
StoreManager
.
XLRStore
.
inputEquip
.
Config
.
BatchAxis_P4Speed
,
moveBean
.
Config
.
BatchAxisP4
,
true
);
lblWarnMsg
.
Text
=
moveBean
.
WarnMsg
;
...
...
@@ -114,9 +114,9 @@ namespace OnlineStore.XLRStore
int
p2
=
batchAxisP2
.
PointValue
;
int
p4
=
batchAxisP4
.
PointValue
;
if
(
p4
<
0
)
if
(
p4
<
0
)
{
MessageBox
.
Show
(
"扫码时上升高度P4不能小于0 ,请重新设置P4点位置"
,
"保存失败"
,
MessageBoxButtons
.
OK
,
MessageBoxIcon
.
Error
);
MessageBox
.
Show
(
"扫码时上升高度P4不能小于0 ,请重新设置P4点位置"
,
"保存失败"
,
MessageBoxButtons
.
OK
,
MessageBoxIcon
.
Error
);
return
;
}
...
...
@@ -252,7 +252,7 @@ namespace OnlineStore.XLRStore
}
moveBean
.
ShelfNeedLeave
=
true
;
LogUtil
.
info
(
moveBean
.
Name
+
"用户点击:"
+
btnShelfOut
.
Text
);
LogUtil
.
info
(
moveBean
.
Name
+
"用户点击:"
+
btnShelfOut
.
Text
);
}
private
void
btnScanTest_Click
(
object
sender
,
EventArgs
e
)
...
...
@@ -283,14 +283,14 @@ namespace OnlineStore.XLRStore
private
void
LineStart_A_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
moveBean
.
Name
+
"点击:"
+
LineStart_A
.
Text
);
moveBean
.
LineRun
();
LogUtil
.
info
(
moveBean
.
Name
+
"点击:"
+
LineStart_A
.
Text
);
moveBean
.
LineRun
();
}
private
void
LineBack_A_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
moveBean
.
Name
+
"点击:"
+
LineBack_A
.
Text
);
moveBean
.
LineBack
();
moveBean
.
LineBack
();
}
private
void
LineStop_A_Click
(
object
sender
,
EventArgs
e
)
...
...
@@ -317,6 +317,14 @@ namespace OnlineStore.XLRStore
moveBean
.
MoveStop
=
chbMoveStop
.
Checked
;
LogUtil
.
info
(
moveBean
.
Name
+
"用户切换是否暂停: "
+
moveBean
.
MoveStop
);
}
public
void
ShowConfig
(
bool
state
)
{
axisMoveControl1
.
Visible
=
state
;
groupBox1
.
Visible
=
state
;
groupBox2
.
Visible
=
state
;
groupBox3
.
Visible
=
state
;
chbAutoOut
.
Visible
=
state
;
}
}
}
...
...
source/XLRStoreClient/inputForm/FrmInputEquip.Designer.cs
查看文件 @
8955813
...
...
@@ -21,77 +21,9 @@ namespace OnlineStore.XLRStore
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
FrmInputEquip
));
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
btnScan
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
tabPage2
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
chbPointEditEnable
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
groupBox11
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
inoutAxisP5
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
inoutAxisP4
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP3
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP2
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP2
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP3
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
groupBox10
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
inoutAxisP1
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP1
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP1
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
groupBox9
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
inoutAxisP6
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP8
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP9
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP6
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
btnSave
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox8
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
updownAxisP13
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP8
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP12
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
groupBox7
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
inoutAxisP3
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP5
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP10
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP11
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
groupBox5
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
mideleAxisP7
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP6
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP7
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
inoutAxisP2
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP4
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP4
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP5
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
axisMoveControl1
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisMoveRectControl
();
this
.
tabPage1
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
groupDO
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnClampRelax
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnClampWork
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineStop_B
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineBack_B
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineStart_B
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineStop_A
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineBack_A
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
Shelf_StopDown_B
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
Shelf_StopDown_A
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
Shelf_StopUp_A
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
Shelf_StopUp_B
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineStart_A
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCloseAll
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
clampJawControl1
=
new
OnlineStore
.
XLRStore
.
useControl
.
ClampJawControl
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
txtDOIndex
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtDoName
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lblAddr
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnOpenDo
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtSlaveId
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
cmbWriteIO
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnWriteSingleDO
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtWriteTime
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox4
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
tabPage3
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
panBase
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
btnCameraLed
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnHlhasReel
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
chbMoveStop
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
lblName
=
new
System
.
Windows
.
Forms
.
Label
();
...
...
@@ -116,37 +48,11 @@ namespace OnlineStore.XLRStore
this
.
lblMoveInfo
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblThisSta
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tabControl1
=
new
System
.
Windows
.
Forms
.
TabControl
();
this
.
tabControl2
=
new
System
.
Windows
.
Forms
.
TabControl
();
this
.
tabPage4
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
tabPage5
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
tabPage6
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
updownAxisP14
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP15
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP16
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP17
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
tabPage2
.
SuspendLayout
();
this
.
groupBox11
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
groupBox10
.
SuspendLayout
();
this
.
groupBox9
.
SuspendLayout
();
this
.
groupBox8
.
SuspendLayout
();
this
.
groupBox7
.
SuspendLayout
();
this
.
groupBox5
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
tabPage1
.
SuspendLayout
();
this
.
groupDO
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
tabPage3
.
SuspendLayout
();
this
.
panBase
.
SuspendLayout
();
this
.
groupBox6
.
SuspendLayout
();
this
.
groupBox12
.
SuspendLayout
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabControl2
.
SuspendLayout
();
this
.
tabPage4
.
SuspendLayout
();
this
.
tabPage5
.
SuspendLayout
();
this
.
tabPage6
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// timer1
...
...
@@ -166,887 +72,13 @@ namespace OnlineStore.XLRStore
this
.
btnScan
.
Text
=
"扫码测试"
;
this
.
btnScan
.
UseVisualStyleBackColor
=
false
;
//
// tabPage2
//
this
.
tabPage2
.
Controls
.
Add
(
this
.
tabControl2
);
this
.
tabPage2
.
Controls
.
Add
(
this
.
chbPointEditEnable
);
this
.
tabPage2
.
Controls
.
Add
(
this
.
groupBox11
);
this
.
tabPage2
.
Controls
.
Add
(
this
.
btnSave
);
this
.
tabPage2
.
Controls
.
Add
(
this
.
axisMoveControl1
);
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage2
.
Name
=
"tabPage2"
;
this
.
tabPage2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
986
,
561
);
this
.
tabPage2
.
TabIndex
=
1
;
this
.
tabPage2
.
Text
=
" 伺服信息 "
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
//
// chbPointEditEnable
//
this
.
chbPointEditEnable
.
AutoSize
=
true
;
this
.
chbPointEditEnable
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
,
System
.
Drawing
.
FontStyle
.
Bold
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbPointEditEnable
.
Location
=
new
System
.
Drawing
.
Point
(
716
,
299
);
this
.
chbPointEditEnable
.
Name
=
"chbPointEditEnable"
;
this
.
chbPointEditEnable
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
26
);
this
.
chbPointEditEnable
.
TabIndex
=
229
;
this
.
chbPointEditEnable
.
Text
=
"启用点位编辑"
;
this
.
chbPointEditEnable
.
UseVisualStyleBackColor
=
true
;
this
.
chbPointEditEnable
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
chbPointEditEnable_CheckedChanged
);
//
// groupBox11
//
this
.
groupBox11
.
Controls
.
Add
(
this
.
panel1
);
this
.
groupBox11
.
Location
=
new
System
.
Drawing
.
Point
(
710
,
331
);
this
.
groupBox11
.
Name
=
"groupBox11"
;
this
.
groupBox11
.
Size
=
new
System
.
Drawing
.
Size
(
268
,
224
);
this
.
groupBox11
.
TabIndex
=
228
;
this
.
groupBox11
.
TabStop
=
false
;
this
.
groupBox11
.
Text
=
"料串取放料点位"
;
//
// panel1
//
this
.
panel1
.
Controls
.
Add
(
this
.
inoutAxisP5
);
this
.
panel1
.
Controls
.
Add
(
this
.
inoutAxisP4
);
this
.
panel1
.
Controls
.
Add
(
this
.
mideleAxisP3
);
this
.
panel1
.
Controls
.
Add
(
this
.
mideleAxisP2
);
this
.
panel1
.
Controls
.
Add
(
this
.
updownAxisP2
);
this
.
panel1
.
Controls
.
Add
(
this
.
updownAxisP3
);
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
19
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
262
,
202
);
this
.
panel1
.
TabIndex
=
220
;
this
.
panel1
.
Paint
+=
new
System
.
Windows
.
Forms
.
PaintEventHandler
(
this
.
panel1_Paint
);
//
// inoutAxisP5
//
this
.
inoutAxisP5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
inoutAxisP5
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
164
);
this
.
inoutAxisP5
.
Name
=
"inoutAxisP5"
;
this
.
inoutAxisP5
.
PointBackColor
=
System
.
Drawing
.
Color
.
RoyalBlue
;
this
.
inoutAxisP5
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
inoutAxisP5
.
PointText
=
"进出轴-B料口取料点P5:"
;
this
.
inoutAxisP5
.
PointValue
=
0
;
this
.
inoutAxisP5
.
Size
=
new
System
.
Drawing
.
Size
(
223
,
33
);
this
.
inoutAxisP5
.
TabIndex
=
4
;
//
// inoutAxisP4
//
this
.
inoutAxisP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
inoutAxisP4
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
129
);
this
.
inoutAxisP4
.
Name
=
"inoutAxisP4"
;
this
.
inoutAxisP4
.
PointBackColor
=
System
.
Drawing
.
Color
.
RoyalBlue
;
this
.
inoutAxisP4
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
inoutAxisP4
.
PointText
=
"进出轴-A料口取料点P4:"
;
this
.
inoutAxisP4
.
PointValue
=
0
;
this
.
inoutAxisP4
.
Size
=
new
System
.
Drawing
.
Size
(
223
,
33
);
this
.
inoutAxisP4
.
TabIndex
=
3
;
//
// mideleAxisP3
//
this
.
mideleAxisP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP3
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
33
);
this
.
mideleAxisP3
.
Name
=
"mideleAxisP3"
;
this
.
mideleAxisP3
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP3
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP3
.
PointText
=
"旋转轴-B料口取料点P3:"
;
this
.
mideleAxisP3
.
PointValue
=
0
;
this
.
mideleAxisP3
.
Size
=
new
System
.
Drawing
.
Size
(
223
,
33
);
this
.
mideleAxisP3
.
TabIndex
=
2
;
//
// mideleAxisP2
//
this
.
mideleAxisP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP2
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
mideleAxisP2
.
Name
=
"mideleAxisP2"
;
this
.
mideleAxisP2
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP2
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP2
.
PointText
=
"旋转轴-A料口取料点P2:"
;
this
.
mideleAxisP2
.
PointValue
=
0
;
this
.
mideleAxisP2
.
Size
=
new
System
.
Drawing
.
Size
(
223
,
33
);
this
.
mideleAxisP2
.
TabIndex
=
1
;
//
// updownAxisP2
//
this
.
updownAxisP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP2
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
65
);
this
.
updownAxisP2
.
Name
=
"updownAxisP2"
;
this
.
updownAxisP2
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP2
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP2
.
PointText
=
"升降轴-A料口取料点P2:"
;
this
.
updownAxisP2
.
PointValue
=
0
;
this
.
updownAxisP2
.
Size
=
new
System
.
Drawing
.
Size
(
223
,
33
);
this
.
updownAxisP2
.
TabIndex
=
1
;
//
// updownAxisP3
//
this
.
updownAxisP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP3
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
97
);
this
.
updownAxisP3
.
Name
=
"updownAxisP3"
;
this
.
updownAxisP3
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP3
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP3
.
PointText
=
"升降轴-B料口取料点P3:"
;
this
.
updownAxisP3
.
PointValue
=
0
;
this
.
updownAxisP3
.
Size
=
new
System
.
Drawing
.
Size
(
223
,
33
);
this
.
updownAxisP3
.
TabIndex
=
2
;
//
// groupBox10
//
this
.
groupBox10
.
Controls
.
Add
(
this
.
inoutAxisP1
);
this
.
groupBox10
.
Controls
.
Add
(
this
.
mideleAxisP1
);
this
.
groupBox10
.
Controls
.
Add
(
this
.
updownAxisP1
);
this
.
groupBox10
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
15
);
this
.
groupBox10
.
Name
=
"groupBox10"
;
this
.
groupBox10
.
Size
=
new
System
.
Drawing
.
Size
(
286
,
155
);
this
.
groupBox10
.
TabIndex
=
227
;
this
.
groupBox10
.
TabStop
=
false
;
this
.
groupBox10
.
Text
=
"待机点点位"
;
//
// inoutAxisP1
//
this
.
inoutAxisP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
inoutAxisP1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
81
);
this
.
inoutAxisP1
.
Name
=
"inoutAxisP1"
;
this
.
inoutAxisP1
.
PointBackColor
=
System
.
Drawing
.
Color
.
RoyalBlue
;
this
.
inoutAxisP1
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
inoutAxisP1
.
PointText
=
"进出轴-待机点P1:"
;
this
.
inoutAxisP1
.
PointValue
=
0
;
this
.
inoutAxisP1
.
Size
=
new
System
.
Drawing
.
Size
(
247
,
32
);
this
.
inoutAxisP1
.
TabIndex
=
1
;
//
// mideleAxisP1
//
this
.
mideleAxisP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
18
);
this
.
mideleAxisP1
.
Name
=
"mideleAxisP1"
;
this
.
mideleAxisP1
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP1
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP1
.
PointText
=
"旋转轴待机点P1:"
;
this
.
mideleAxisP1
.
PointValue
=
0
;
this
.
mideleAxisP1
.
Size
=
new
System
.
Drawing
.
Size
(
247
,
33
);
this
.
mideleAxisP1
.
TabIndex
=
0
;
//
// updownAxisP1
//
this
.
updownAxisP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
49
);
this
.
updownAxisP1
.
Name
=
"updownAxisP1"
;
this
.
updownAxisP1
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP1
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP1
.
PointText
=
"升降轴-待机点P1:"
;
this
.
updownAxisP1
.
PointValue
=
0
;
this
.
updownAxisP1
.
Size
=
new
System
.
Drawing
.
Size
(
247
,
32
);
this
.
updownAxisP1
.
TabIndex
=
0
;
//
// groupBox9
//
this
.
groupBox9
.
Controls
.
Add
(
this
.
inoutAxisP6
);
this
.
groupBox9
.
Controls
.
Add
(
this
.
updownAxisP8
);
this
.
groupBox9
.
Controls
.
Add
(
this
.
updownAxisP9
);
this
.
groupBox9
.
Controls
.
Add
(
this
.
mideleAxisP6
);
this
.
groupBox9
.
Location
=
new
System
.
Drawing
.
Point
(
316
,
15
);
this
.
groupBox9
.
Name
=
"groupBox9"
;
this
.
groupBox9
.
Size
=
new
System
.
Drawing
.
Size
(
286
,
161
);
this
.
groupBox9
.
TabIndex
=
225
;
this
.
groupBox9
.
TabStop
=
false
;
this
.
groupBox9
.
Text
=
"NG料区点位"
;
//
// inoutAxisP6
//
this
.
inoutAxisP6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
inoutAxisP6
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
122
);
this
.
inoutAxisP6
.
Name
=
"inoutAxisP6"
;
this
.
inoutAxisP6
.
PointBackColor
=
System
.
Drawing
.
Color
.
RoyalBlue
;
this
.
inoutAxisP6
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
inoutAxisP6
.
PointText
=
"进出轴-NG料区点P9:"
;
this
.
inoutAxisP6
.
PointValue
=
0
;
this
.
inoutAxisP6
.
Size
=
new
System
.
Drawing
.
Size
(
247
,
33
);
this
.
inoutAxisP6
.
TabIndex
=
9
;
//
// updownAxisP8
//
this
.
updownAxisP8
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP8
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
48
);
this
.
updownAxisP8
.
Name
=
"updownAxisP8"
;
this
.
updownAxisP8
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP8
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP8
.
PointText
=
"升降轴-NG料区放料高点P8:"
;
this
.
updownAxisP8
.
PointValue
=
0
;
this
.
updownAxisP8
.
Size
=
new
System
.
Drawing
.
Size
(
247
,
32
);
this
.
updownAxisP8
.
TabIndex
=
7
;
//
// updownAxisP9
//
this
.
updownAxisP9
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP9
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
84
);
this
.
updownAxisP9
.
Name
=
"updownAxisP9"
;
this
.
updownAxisP9
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP9
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP9
.
PointText
=
"升降轴-NG料区放料低点P9:"
;
this
.
updownAxisP9
.
PointValue
=
0
;
this
.
updownAxisP9
.
Size
=
new
System
.
Drawing
.
Size
(
247
,
33
);
this
.
updownAxisP9
.
TabIndex
=
8
;
//
// mideleAxisP6
//
this
.
mideleAxisP6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP6
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
16
);
this
.
mideleAxisP6
.
Name
=
"mideleAxisP6"
;
this
.
mideleAxisP6
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP6
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP6
.
PointText
=
"旋转轴-NG料区放料点P6:"
;
this
.
mideleAxisP6
.
PointValue
=
0
;
this
.
mideleAxisP6
.
Size
=
new
System
.
Drawing
.
Size
(
247
,
32
);
this
.
mideleAxisP6
.
TabIndex
=
5
;
//
// btnSave
//
this
.
btnSave
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnSave
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnSave
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnSave
.
Location
=
new
System
.
Drawing
.
Point
(
850
,
297
);
this
.
btnSave
.
Name
=
"btnSave"
;
this
.
btnSave
.
Size
=
new
System
.
Drawing
.
Size
(
108
,
34
);
this
.
btnSave
.
TabIndex
=
226
;
this
.
btnSave
.
Text
=
"保存点位信息"
;
this
.
btnSave
.
UseVisualStyleBackColor
=
false
;
this
.
btnSave
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSave_Click
);
//
// groupBox8
//
this
.
groupBox8
.
Controls
.
Add
(
this
.
updownAxisP17
);
this
.
groupBox8
.
Controls
.
Add
(
this
.
updownAxisP13
);
this
.
groupBox8
.
Controls
.
Add
(
this
.
mideleAxisP8
);
this
.
groupBox8
.
Controls
.
Add
(
this
.
updownAxisP12
);
this
.
groupBox8
.
Location
=
new
System
.
Drawing
.
Point
(
497
,
13
);
this
.
groupBox8
.
Name
=
"groupBox8"
;
this
.
groupBox8
.
Size
=
new
System
.
Drawing
.
Size
(
415
,
227
);
this
.
groupBox8
.
TabIndex
=
224
;
this
.
groupBox8
.
TabStop
=
false
;
this
.
groupBox8
.
Text
=
"B下暂存区点位"
;
//
// updownAxisP13
//
this
.
updownAxisP13
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP13
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
95
);
this
.
updownAxisP13
.
Name
=
"updownAxisP13"
;
this
.
updownAxisP13
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP13
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP13
.
PointText
=
"升降轴-B下暂存区7寸取料低点P13:"
;
this
.
updownAxisP13
.
PointValue
=
0
;
this
.
updownAxisP13
.
Size
=
new
System
.
Drawing
.
Size
(
331
,
32
);
this
.
updownAxisP13
.
TabIndex
=
12
;
//
// mideleAxisP8
//
this
.
mideleAxisP8
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP8
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
22
);
this
.
mideleAxisP8
.
Name
=
"mideleAxisP8"
;
this
.
mideleAxisP8
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP8
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP8
.
PointText
=
"旋转轴-B下暂存区取料点P8:"
;
this
.
mideleAxisP8
.
PointValue
=
0
;
this
.
mideleAxisP8
.
Size
=
new
System
.
Drawing
.
Size
(
331
,
32
);
this
.
mideleAxisP8
.
TabIndex
=
7
;
//
// updownAxisP12
//
this
.
updownAxisP12
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP12
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
57
);
this
.
updownAxisP12
.
Name
=
"updownAxisP12"
;
this
.
updownAxisP12
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP12
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP12
.
PointText
=
"升降轴-B下暂存区取料高点P12:"
;
this
.
updownAxisP12
.
PointValue
=
0
;
this
.
updownAxisP12
.
Size
=
new
System
.
Drawing
.
Size
(
331
,
32
);
this
.
updownAxisP12
.
TabIndex
=
11
;
//
// groupBox7
//
this
.
groupBox7
.
Controls
.
Add
(
this
.
updownAxisP16
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
inoutAxisP3
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
mideleAxisP5
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
updownAxisP10
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
updownAxisP11
);
this
.
groupBox7
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
13
);
this
.
groupBox7
.
Name
=
"groupBox7"
;
this
.
groupBox7
.
Size
=
new
System
.
Drawing
.
Size
(
390
,
227
);
this
.
groupBox7
.
TabIndex
=
224
;
this
.
groupBox7
.
TabStop
=
false
;
this
.
groupBox7
.
Text
=
"B上暂存区点位"
;
//
// inoutAxisP3
//
this
.
inoutAxisP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
inoutAxisP3
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
161
);
this
.
inoutAxisP3
.
Name
=
"inoutAxisP3"
;
this
.
inoutAxisP3
.
PointBackColor
=
System
.
Drawing
.
Color
.
RoyalBlue
;
this
.
inoutAxisP3
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
inoutAxisP3
.
PointText
=
"进出轴-B暂存区点P3:"
;
this
.
inoutAxisP3
.
PointValue
=
0
;
this
.
inoutAxisP3
.
Size
=
new
System
.
Drawing
.
Size
(
316
,
36
);
this
.
inoutAxisP3
.
TabIndex
=
11
;
//
// mideleAxisP5
//
this
.
mideleAxisP5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP5
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
18
);
this
.
mideleAxisP5
.
Name
=
"mideleAxisP5"
;
this
.
mideleAxisP5
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP5
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP5
.
PointText
=
"旋转轴-B上暂存区放料点P5:"
;
this
.
mideleAxisP5
.
PointValue
=
0
;
this
.
mideleAxisP5
.
Size
=
new
System
.
Drawing
.
Size
(
316
,
32
);
this
.
mideleAxisP5
.
TabIndex
=
4
;
//
// updownAxisP10
//
this
.
updownAxisP10
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP10
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
49
);
this
.
updownAxisP10
.
Name
=
"updownAxisP10"
;
this
.
updownAxisP10
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP10
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP10
.
PointText
=
"升降轴-B上暂存区放料高点P10:"
;
this
.
updownAxisP10
.
PointValue
=
0
;
this
.
updownAxisP10
.
Size
=
new
System
.
Drawing
.
Size
(
316
,
32
);
this
.
updownAxisP10
.
TabIndex
=
9
;
//
// updownAxisP11
//
this
.
updownAxisP11
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP11
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
81
);
this
.
updownAxisP11
.
Name
=
"updownAxisP11"
;
this
.
updownAxisP11
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP11
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP11
.
PointText
=
"升降轴-B上暂存区7寸放料低点P11:"
;
this
.
updownAxisP11
.
PointValue
=
0
;
this
.
updownAxisP11
.
Size
=
new
System
.
Drawing
.
Size
(
316
,
34
);
this
.
updownAxisP11
.
TabIndex
=
10
;
//
// groupBox5
//
this
.
groupBox5
.
Controls
.
Add
(
this
.
updownAxisP15
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
mideleAxisP7
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
updownAxisP6
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
updownAxisP7
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
470
,
13
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
481
,
239
);
this
.
groupBox5
.
TabIndex
=
223
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
Text
=
"A下暂存区点位"
;
//
// mideleAxisP7
//
this
.
mideleAxisP7
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP7
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
24
);
this
.
mideleAxisP7
.
Name
=
"mideleAxisP7"
;
this
.
mideleAxisP7
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP7
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP7
.
PointText
=
"旋转轴-A下暂存区取料点P7:"
;
this
.
mideleAxisP7
.
PointValue
=
0
;
this
.
mideleAxisP7
.
Size
=
new
System
.
Drawing
.
Size
(
327
,
32
);
this
.
mideleAxisP7
.
TabIndex
=
6
;
//
// updownAxisP6
//
this
.
updownAxisP6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP6
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
56
);
this
.
updownAxisP6
.
Name
=
"updownAxisP6"
;
this
.
updownAxisP6
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP6
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP6
.
PointText
=
"升降轴-A下暂存区取料高点P6:"
;
this
.
updownAxisP6
.
PointValue
=
0
;
this
.
updownAxisP6
.
Size
=
new
System
.
Drawing
.
Size
(
327
,
33
);
this
.
updownAxisP6
.
TabIndex
=
5
;
//
// updownAxisP7
//
this
.
updownAxisP7
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP7
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
88
);
this
.
updownAxisP7
.
Name
=
"updownAxisP7"
;
this
.
updownAxisP7
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP7
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP7
.
PointText
=
"升降轴-A下暂存区7寸取料低点P7:"
;
this
.
updownAxisP7
.
PointValue
=
0
;
this
.
updownAxisP7
.
Size
=
new
System
.
Drawing
.
Size
(
327
,
35
);
this
.
updownAxisP7
.
TabIndex
=
6
;
//
// groupBox2
//
this
.
groupBox2
.
Controls
.
Add
(
this
.
updownAxisP14
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
inoutAxisP2
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
mideleAxisP4
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
updownAxisP4
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
updownAxisP5
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
13
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
406
,
239
);
this
.
groupBox2
.
TabIndex
=
222
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
Text
=
"A上暂存区点位"
;
//
// inoutAxisP2
//
this
.
inoutAxisP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
inoutAxisP2
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
163
);
this
.
inoutAxisP2
.
Name
=
"inoutAxisP2"
;
this
.
inoutAxisP2
.
PointBackColor
=
System
.
Drawing
.
Color
.
RoyalBlue
;
this
.
inoutAxisP2
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
inoutAxisP2
.
PointText
=
"进出轴-A暂存区点P2:"
;
this
.
inoutAxisP2
.
PointValue
=
0
;
this
.
inoutAxisP2
.
Size
=
new
System
.
Drawing
.
Size
(
306
,
36
);
this
.
inoutAxisP2
.
TabIndex
=
5
;
//
// mideleAxisP4
//
this
.
mideleAxisP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP4
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
19
);
this
.
mideleAxisP4
.
Name
=
"mideleAxisP4"
;
this
.
mideleAxisP4
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP4
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP4
.
PointText
=
"旋转轴-A上暂存区放料点P4:"
;
this
.
mideleAxisP4
.
PointValue
=
0
;
this
.
mideleAxisP4
.
Size
=
new
System
.
Drawing
.
Size
(
306
,
32
);
this
.
mideleAxisP4
.
TabIndex
=
3
;
//
// updownAxisP4
//
this
.
updownAxisP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP4
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
49
);
this
.
updownAxisP4
.
Name
=
"updownAxisP4"
;
this
.
updownAxisP4
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP4
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP4
.
PointText
=
"升降轴-A上暂存区放料高点P4:"
;
this
.
updownAxisP4
.
PointValue
=
0
;
this
.
updownAxisP4
.
Size
=
new
System
.
Drawing
.
Size
(
306
,
32
);
this
.
updownAxisP4
.
TabIndex
=
3
;
//
// updownAxisP5
//
this
.
updownAxisP5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP5
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
79
);
this
.
updownAxisP5
.
Name
=
"updownAxisP5"
;
this
.
updownAxisP5
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP5
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP5
.
PointText
=
"升降轴-A上暂存区7寸放料低点P5:"
;
this
.
updownAxisP5
.
PointValue
=
0
;
this
.
updownAxisP5
.
Size
=
new
System
.
Drawing
.
Size
(
306
,
36
);
this
.
updownAxisP5
.
TabIndex
=
4
;
//
// axisMoveControl1
//
this
.
axisMoveControl1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
297
);
this
.
axisMoveControl1
.
Name
=
"axisMoveControl1"
;
this
.
axisMoveControl1
.
Size
=
new
System
.
Drawing
.
Size
(
713
,
264
);
this
.
axisMoveControl1
.
TabIndex
=
219
;
//
// tabPage1
//
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupDO
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
clampJawControl1
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupBox4
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage1
.
Name
=
"tabPage1"
;
this
.
tabPage1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
986
,
561
);
this
.
tabPage1
.
TabIndex
=
0
;
this
.
tabPage1
.
Text
=
" IO列表 "
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
//
// groupDO
//
this
.
groupDO
.
Controls
.
Add
(
this
.
btnClampRelax
);
this
.
groupDO
.
Controls
.
Add
(
this
.
btnClampWork
);
this
.
groupDO
.
Controls
.
Add
(
this
.
LineStop_B
);
this
.
groupDO
.
Controls
.
Add
(
this
.
LineBack_B
);
this
.
groupDO
.
Controls
.
Add
(
this
.
LineStart_B
);
this
.
groupDO
.
Controls
.
Add
(
this
.
LineStop_A
);
this
.
groupDO
.
Controls
.
Add
(
this
.
LineBack_A
);
this
.
groupDO
.
Controls
.
Add
(
this
.
Shelf_StopDown_B
);
this
.
groupDO
.
Controls
.
Add
(
this
.
Shelf_StopDown_A
);
this
.
groupDO
.
Controls
.
Add
(
this
.
Shelf_StopUp_A
);
this
.
groupDO
.
Controls
.
Add
(
this
.
Shelf_StopUp_B
);
this
.
groupDO
.
Controls
.
Add
(
this
.
LineStart_A
);
this
.
groupDO
.
Controls
.
Add
(
this
.
btnCloseAll
);
this
.
groupDO
.
Location
=
new
System
.
Drawing
.
Point
(
480
,
119
);
this
.
groupDO
.
Name
=
"groupDO"
;
this
.
groupDO
.
Size
=
new
System
.
Drawing
.
Size
(
466
,
230
);
this
.
groupDO
.
TabIndex
=
255
;
this
.
groupDO
.
TabStop
=
false
;
this
.
groupDO
.
Text
=
"IO操作测试"
;
//
// btnClampRelax
//
this
.
btnClampRelax
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnClampRelax
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClampRelax
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClampRelax
.
Location
=
new
System
.
Drawing
.
Point
(
162
,
185
);
this
.
btnClampRelax
.
Name
=
"btnClampRelax"
;
this
.
btnClampRelax
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
btnClampRelax
.
TabIndex
=
288
;
this
.
btnClampRelax
.
Text
=
"吸盘放料"
;
this
.
btnClampRelax
.
UseVisualStyleBackColor
=
false
;
this
.
btnClampRelax
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClampRelax_Click
);
//
// btnClampWork
//
this
.
btnClampWork
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnClampWork
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClampWork
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClampWork
.
Location
=
new
System
.
Drawing
.
Point
(
162
,
145
);
this
.
btnClampWork
.
Name
=
"btnClampWork"
;
this
.
btnClampWork
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
btnClampWork
.
TabIndex
=
287
;
this
.
btnClampWork
.
Text
=
"吸盘抓料"
;
this
.
btnClampWork
.
UseVisualStyleBackColor
=
false
;
this
.
btnClampWork
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClampWork_Click
);
//
// LineStop_B
//
this
.
LineStop_B
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
LineStop_B
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
LineStop_B
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LineStop_B
.
Location
=
new
System
.
Drawing
.
Point
(
314
,
101
);
this
.
LineStop_B
.
Name
=
"LineStop_B"
;
this
.
LineStop_B
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
LineStop_B
.
TabIndex
=
286
;
this
.
LineStop_B
.
Text
=
"B料口电机停止"
;
this
.
LineStop_B
.
UseVisualStyleBackColor
=
false
;
this
.
LineStop_B
.
Click
+=
new
System
.
EventHandler
(
this
.
LineStop_B_Click
);
//
// LineBack_B
//
this
.
LineBack_B
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
LineBack_B
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
LineBack_B
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LineBack_B
.
Location
=
new
System
.
Drawing
.
Point
(
314
,
61
);
this
.
LineBack_B
.
Name
=
"LineBack_B"
;
this
.
LineBack_B
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
LineBack_B
.
TabIndex
=
285
;
this
.
LineBack_B
.
Text
=
"B料口电机反转<<"
;
this
.
LineBack_B
.
UseVisualStyleBackColor
=
false
;
this
.
LineBack_B
.
Click
+=
new
System
.
EventHandler
(
this
.
LineBack_B_Click
);
//
// LineStart_B
//
this
.
LineStart_B
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
LineStart_B
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
LineStart_B
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LineStart_B
.
Location
=
new
System
.
Drawing
.
Point
(
314
,
21
);
this
.
LineStart_B
.
Name
=
"LineStart_B"
;
this
.
LineStart_B
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
LineStart_B
.
TabIndex
=
284
;
this
.
LineStart_B
.
Text
=
"B料口电机启动>>"
;
this
.
LineStart_B
.
UseVisualStyleBackColor
=
false
;
this
.
LineStart_B
.
Click
+=
new
System
.
EventHandler
(
this
.
LineStart_B_Click
);
//
// LineStop_A
//
this
.
LineStop_A
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
LineStop_A
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
LineStop_A
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LineStop_A
.
Location
=
new
System
.
Drawing
.
Point
(
162
,
101
);
this
.
LineStop_A
.
Name
=
"LineStop_A"
;
this
.
LineStop_A
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
LineStop_A
.
TabIndex
=
283
;
this
.
LineStop_A
.
Text
=
"A料口电机停止"
;
this
.
LineStop_A
.
UseVisualStyleBackColor
=
false
;
this
.
LineStop_A
.
Click
+=
new
System
.
EventHandler
(
this
.
LineStop_A_Click
);
//
// LineBack_A
//
this
.
LineBack_A
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
LineBack_A
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
LineBack_A
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LineBack_A
.
Location
=
new
System
.
Drawing
.
Point
(
162
,
61
);
this
.
LineBack_A
.
Name
=
"LineBack_A"
;
this
.
LineBack_A
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
LineBack_A
.
TabIndex
=
282
;
this
.
LineBack_A
.
Text
=
"A料口电机反转<<"
;
this
.
LineBack_A
.
UseVisualStyleBackColor
=
false
;
this
.
LineBack_A
.
Click
+=
new
System
.
EventHandler
(
this
.
LineBack_A_Click
);
//
// Shelf_StopDown_B
//
this
.
Shelf_StopDown_B
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
Shelf_StopDown_B
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
Shelf_StopDown_B
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Shelf_StopDown_B
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
145
);
this
.
Shelf_StopDown_B
.
Name
=
"Shelf_StopDown_B"
;
this
.
Shelf_StopDown_B
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
Shelf_StopDown_B
.
TabIndex
=
277
;
this
.
Shelf_StopDown_B
.
Text
=
"B料口阻挡下降 ↓"
;
this
.
Shelf_StopDown_B
.
UseVisualStyleBackColor
=
false
;
this
.
Shelf_StopDown_B
.
Click
+=
new
System
.
EventHandler
(
this
.
Shelf_StopDown_B_Click
);
//
// Shelf_StopDown_A
//
this
.
Shelf_StopDown_A
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
Shelf_StopDown_A
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
Shelf_StopDown_A
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Shelf_StopDown_A
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
61
);
this
.
Shelf_StopDown_A
.
Name
=
"Shelf_StopDown_A"
;
this
.
Shelf_StopDown_A
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
Shelf_StopDown_A
.
TabIndex
=
276
;
this
.
Shelf_StopDown_A
.
Text
=
"A料口阻挡下降 ↓"
;
this
.
Shelf_StopDown_A
.
UseVisualStyleBackColor
=
false
;
this
.
Shelf_StopDown_A
.
Click
+=
new
System
.
EventHandler
(
this
.
Shelf_StopDown_A_Click
);
//
// Shelf_StopUp_A
//
this
.
Shelf_StopUp_A
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
Shelf_StopUp_A
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
Shelf_StopUp_A
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Shelf_StopUp_A
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
21
);
this
.
Shelf_StopUp_A
.
Name
=
"Shelf_StopUp_A"
;
this
.
Shelf_StopUp_A
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
Shelf_StopUp_A
.
TabIndex
=
274
;
this
.
Shelf_StopUp_A
.
Text
=
"A料口阻挡上升 ↑"
;
this
.
Shelf_StopUp_A
.
UseVisualStyleBackColor
=
false
;
this
.
Shelf_StopUp_A
.
Click
+=
new
System
.
EventHandler
(
this
.
Shelf_StopUp_A_Click
);
//
// Shelf_StopUp_B
//
this
.
Shelf_StopUp_B
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
Shelf_StopUp_B
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
Shelf_StopUp_B
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Shelf_StopUp_B
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
105
);
this
.
Shelf_StopUp_B
.
Name
=
"Shelf_StopUp_B"
;
this
.
Shelf_StopUp_B
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
Shelf_StopUp_B
.
TabIndex
=
273
;
this
.
Shelf_StopUp_B
.
Text
=
"B料口阻挡上升 ↑"
;
this
.
Shelf_StopUp_B
.
UseVisualStyleBackColor
=
false
;
this
.
Shelf_StopUp_B
.
Click
+=
new
System
.
EventHandler
(
this
.
Shelf_StopUp_B_Click
);
//
// LineStart_A
//
this
.
LineStart_A
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
LineStart_A
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
LineStart_A
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LineStart_A
.
Location
=
new
System
.
Drawing
.
Point
(
162
,
21
);
this
.
LineStart_A
.
Name
=
"LineStart_A"
;
this
.
LineStart_A
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
LineStart_A
.
TabIndex
=
255
;
this
.
LineStart_A
.
Text
=
"A料口电机启动>>"
;
this
.
LineStart_A
.
UseVisualStyleBackColor
=
false
;
this
.
LineStart_A
.
Click
+=
new
System
.
EventHandler
(
this
.
LineStart_A_Click
);
//
// btnCloseAll
//
this
.
btnCloseAll
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCloseAll
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseAll
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
314
,
145
);
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
btnCloseAll
.
TabIndex
=
259
;
this
.
btnCloseAll
.
Text
=
"关闭所有DO"
;
this
.
btnCloseAll
.
UseVisualStyleBackColor
=
false
;
this
.
btnCloseAll
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCloseAll_Click
);
//
// clampJawControl1
//
this
.
clampJawControl1
.
Location
=
new
System
.
Drawing
.
Point
(
478
,
352
);
this
.
clampJawControl1
.
Name
=
"clampJawControl1"
;
this
.
clampJawControl1
.
Size
=
new
System
.
Drawing
.
Size
(
469
,
192
);
this
.
clampJawControl1
.
TabIndex
=
280
;
//
// groupBox1
//
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtDOIndex
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtDoName
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
lblAddr
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnOpenDo
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtSlaveId
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
cmbWriteIO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnWriteSingleDO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtWriteTime
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label5
);
this
.
groupBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
480
,
6
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
466
,
107
);
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
//
// txtDOIndex
//
this
.
txtDOIndex
.
Enabled
=
false
;
this
.
txtDOIndex
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtDOIndex
.
Location
=
new
System
.
Drawing
.
Point
(
386
,
47
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
23
);
this
.
txtDOIndex
.
TabIndex
=
260
;
this
.
txtDOIndex
.
Text
=
"0"
;
this
.
txtDOIndex
.
Visible
=
false
;
//
// txtDoName
//
this
.
txtDoName
.
Enabled
=
false
;
this
.
txtDoName
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtDoName
.
Location
=
new
System
.
Drawing
.
Point
(
386
,
64
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
53
,
23
);
this
.
txtDoName
.
TabIndex
=
259
;
this
.
txtDoName
.
Text
=
"0"
;
this
.
txtDoName
.
Visible
=
false
;
//
// lblAddr
//
this
.
lblAddr
.
AutoSize
=
true
;
this
.
lblAddr
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblAddr
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblAddr
.
Location
=
new
System
.
Drawing
.
Point
(
364
,
27
);
this
.
lblAddr
.
Name
=
"lblAddr"
;
this
.
lblAddr
.
Size
=
new
System
.
Drawing
.
Size
(
46
,
17
);
this
.
lblAddr
.
TabIndex
=
258
;
this
.
lblAddr
.
Text
=
"设备IP:"
;
this
.
lblAddr
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// btnOpenDo
//
this
.
btnOpenDo
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnOpenDo
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenDo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDo
.
Location
=
new
System
.
Drawing
.
Point
(
147
,
55
);
this
.
btnOpenDo
.
Name
=
"btnOpenDo"
;
this
.
btnOpenDo
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnOpenDo
.
TabIndex
=
256
;
this
.
btnOpenDo
.
Text
=
"打开"
;
this
.
btnOpenDo
.
UseVisualStyleBackColor
=
false
;
this
.
btnOpenDo
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenDo_Click
);
//
// txtSlaveId
//
this
.
txtSlaveId
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtSlaveId
.
Location
=
new
System
.
Drawing
.
Point
(
427
,
24
);
this
.
txtSlaveId
.
MaxLength
=
10
;
this
.
txtSlaveId
.
Name
=
"txtSlaveId"
;
this
.
txtSlaveId
.
Size
=
new
System
.
Drawing
.
Size
(
12
,
23
);
this
.
txtSlaveId
.
TabIndex
=
255
;
this
.
txtSlaveId
.
Text
=
"0"
;
this
.
txtSlaveId
.
Visible
=
false
;
//
// cmbWriteIO
//
this
.
cmbWriteIO
.
DisplayMember
=
"ProName"
;
this
.
cmbWriteIO
.
DrawMode
=
System
.
Windows
.
Forms
.
DrawMode
.
OwnerDrawVariable
;
this
.
cmbWriteIO
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbWriteIO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbWriteIO
.
FormattingEnabled
=
true
;
this
.
cmbWriteIO
.
ItemHeight
=
22
;
this
.
cmbWriteIO
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
21
);
this
.
cmbWriteIO
.
Name
=
"cmbWriteIO"
;
this
.
cmbWriteIO
.
Size
=
new
System
.
Drawing
.
Size
(
341
,
28
);
this
.
cmbWriteIO
.
TabIndex
=
234
;
this
.
cmbWriteIO
.
ValueMember
=
"ProName"
;
this
.
cmbWriteIO
.
DrawItem
+=
new
System
.
Windows
.
Forms
.
DrawItemEventHandler
(
this
.
cmbWriteIO_DrawItem
);
this
.
cmbWriteIO
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbWriteIO_SelectedIndexChanged
);
//
// btnWriteSingleDO
//
this
.
btnWriteSingleDO
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnWriteSingleDO
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnWriteSingleDO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnWriteSingleDO
.
Location
=
new
System
.
Drawing
.
Point
(
262
,
55
);
this
.
btnWriteSingleDO
.
Name
=
"btnWriteSingleDO"
;
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnWriteSingleDO
.
TabIndex
=
232
;
this
.
btnWriteSingleDO
.
Text
=
"关闭"
;
this
.
btnWriteSingleDO
.
UseVisualStyleBackColor
=
false
;
this
.
btnWriteSingleDO
.
Click
+=
new
System
.
EventHandler
(
this
.
btnWriteSingleDO_Click
);
//
// txtWriteTime
//
this
.
txtWriteTime
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtWriteTime
.
Location
=
new
System
.
Drawing
.
Point
(
82
,
61
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
23
);
this
.
txtWriteTime
.
TabIndex
=
238
;
this
.
txtWriteTime
.
Text
=
"0"
;
//
// label5
//
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label5
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
64
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
17
);
this
.
label5
.
TabIndex
=
237
;
this
.
label5
.
Text
=
"定时(ms):"
;
this
.
label5
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// groupBox3
//
this
.
groupBox3
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox3
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
6
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
231
,
546
);
this
.
groupBox3
.
TabIndex
=
103
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"DI列表"
;
//
// tableLayoutPanel1
//
this
.
tableLayoutPanel1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
tableLayoutPanel1
.
AutoScroll
=
true
;
this
.
tableLayoutPanel1
.
ColumnCount
=
1
;
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
14
);
this
.
tableLayoutPanel1
.
Name
=
"tableLayoutPanel1"
;
this
.
tableLayoutPanel1
.
RowCount
=
2
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
526
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// groupBox4
//
this
.
groupBox4
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox4
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
243
,
6
);
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
231
,
546
);
this
.
groupBox4
.
TabIndex
=
104
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"DO列表"
;
//
// tableLayoutPanel2
//
this
.
tableLayoutPanel2
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
tableLayoutPanel2
.
AutoScroll
=
true
;
this
.
tableLayoutPanel2
.
ColumnCount
=
1
;
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel2
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
14
);
this
.
tableLayoutPanel2
.
Name
=
"tableLayoutPanel2"
;
this
.
tableLayoutPanel2
.
RowCount
=
2
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
526
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
// tabPage3
//
this
.
tabPage3
.
Controls
.
Add
(
this
.
panBase
);
this
.
tabPage3
.
Controls
.
Add
(
this
.
groupBox6
);
this
.
tabPage3
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
2
6
);
this
.
tabPage3
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
2
9
);
this
.
tabPage3
.
Name
=
"tabPage3"
;
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
986
,
5
61
);
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
986
,
5
58
);
this
.
tabPage3
.
TabIndex
=
2
;
this
.
tabPage3
.
Text
=
"状态信息"
;
this
.
tabPage3
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -1056,6 +88,7 @@ namespace OnlineStore.XLRStore
this
.
panBase
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
panBase
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
FixedSingle
;
this
.
panBase
.
Controls
.
Add
(
this
.
btnCameraLed
);
this
.
panBase
.
Controls
.
Add
(
this
.
btnHlhasReel
);
this
.
panBase
.
Controls
.
Add
(
this
.
chbMoveStop
);
this
.
panBase
.
Controls
.
Add
(
this
.
lblName
);
...
...
@@ -1068,6 +101,19 @@ namespace OnlineStore.XLRStore
this
.
panBase
.
Size
=
new
System
.
Drawing
.
Size
(
980
,
50
);
this
.
panBase
.
TabIndex
=
260
;
//
// btnCameraLed
//
this
.
btnCameraLed
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCameraLed
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCameraLed
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCameraLed
.
Location
=
new
System
.
Drawing
.
Point
(
349
,
3
);
this
.
btnCameraLed
.
Name
=
"btnCameraLed"
;
this
.
btnCameraLed
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
40
);
this
.
btnCameraLed
.
TabIndex
=
289
;
this
.
btnCameraLed
.
Text
=
"开启照明"
;
this
.
btnCameraLed
.
UseVisualStyleBackColor
=
false
;
this
.
btnCameraLed
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCameraLed_Click
);
//
// btnHlhasReel
//
this
.
btnHlhasReel
.
BackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
...
...
@@ -1085,9 +131,9 @@ namespace OnlineStore.XLRStore
//
this
.
chbMoveStop
.
AutoSize
=
true
;
this
.
chbMoveStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbMoveStop
.
Location
=
new
System
.
Drawing
.
Point
(
454
,
11
);
this
.
chbMoveStop
.
Location
=
new
System
.
Drawing
.
Point
(
562
,
11
);
this
.
chbMoveStop
.
Name
=
"chbMoveStop"
;
this
.
chbMoveStop
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
24
);
this
.
chbMoveStop
.
Size
=
new
System
.
Drawing
.
Size
(
104
,
28
);
this
.
chbMoveStop
.
TabIndex
=
262
;
this
.
chbMoveStop
.
Text
=
"暂停运动"
;
this
.
chbMoveStop
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -1109,9 +155,9 @@ namespace OnlineStore.XLRStore
//
this
.
chbDebug
.
AutoSize
=
true
;
this
.
chbDebug
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbDebug
.
Location
=
new
System
.
Drawing
.
Point
(
3
65
,
11
);
this
.
chbDebug
.
Location
=
new
System
.
Drawing
.
Point
(
4
65
,
11
);
this
.
chbDebug
.
Name
=
"chbDebug"
;
this
.
chbDebug
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
24
);
this
.
chbDebug
.
Size
=
new
System
.
Drawing
.
Size
(
104
,
28
);
this
.
chbDebug
.
TabIndex
=
247
;
this
.
chbDebug
.
Text
=
"调试状态"
;
this
.
chbDebug
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -1124,9 +170,9 @@ namespace OnlineStore.XLRStore
this
.
lblStoreStatus
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblStoreStatus
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblStoreStatus
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblStoreStatus
.
Location
=
new
System
.
Drawing
.
Point
(
543
,
13
);
this
.
lblStoreStatus
.
Location
=
new
System
.
Drawing
.
Point
(
664
,
13
);
this
.
lblStoreStatus
.
Name
=
"lblStoreStatus"
;
this
.
lblStoreStatus
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
20
);
this
.
lblStoreStatus
.
Size
=
new
System
.
Drawing
.
Size
(
82
,
24
);
this
.
lblStoreStatus
.
TabIndex
=
245
;
this
.
lblStoreStatus
.
Text
=
"等待启动"
;
this
.
lblStoreStatus
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
...
...
@@ -1140,7 +186,7 @@ namespace OnlineStore.XLRStore
this
.
btnStart
.
Name
=
"btnStart"
;
this
.
btnStart
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
40
);
this
.
btnStart
.
TabIndex
=
86
;
this
.
btnStart
.
Text
=
"启动
调试
"
;
this
.
btnStart
.
Text
=
"启动"
;
this
.
btnStart
.
UseVisualStyleBackColor
=
false
;
this
.
btnStart
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStart_Click
);
//
...
...
@@ -1180,10 +226,11 @@ namespace OnlineStore.XLRStore
this
.
checkBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
checkBox1
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
328
);
this
.
checkBox1
.
Name
=
"checkBox1"
;
this
.
checkBox1
.
Size
=
new
System
.
Drawing
.
Size
(
1
54
,
24
);
this
.
checkBox1
.
Size
=
new
System
.
Drawing
.
Size
(
1
94
,
28
);
this
.
checkBox1
.
TabIndex
=
291
;
this
.
checkBox1
.
Text
=
"检测到料串自动入库"
;
this
.
checkBox1
.
UseVisualStyleBackColor
=
true
;
this
.
checkBox1
.
Visible
=
false
;
this
.
checkBox1
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
checkBox1_CheckedChanged
);
//
// groupBox12
...
...
@@ -1204,6 +251,7 @@ namespace OnlineStore.XLRStore
this
.
groupBox12
.
TabIndex
=
280
;
this
.
groupBox12
.
TabStop
=
false
;
this
.
groupBox12
.
Text
=
"取料机构测试"
;
this
.
groupBox12
.
Visible
=
false
;
//
// cmbOutstorePos
//
...
...
@@ -1212,7 +260,7 @@ namespace OnlineStore.XLRStore
this
.
cmbOutstorePos
.
FormattingEnabled
=
true
;
this
.
cmbOutstorePos
.
Location
=
new
System
.
Drawing
.
Point
(
104
,
70
);
this
.
cmbOutstorePos
.
Name
=
"cmbOutstorePos"
;
this
.
cmbOutstorePos
.
Size
=
new
System
.
Drawing
.
Size
(
142
,
28
);
this
.
cmbOutstorePos
.
Size
=
new
System
.
Drawing
.
Size
(
142
,
31
);
this
.
cmbOutstorePos
.
TabIndex
=
290
;
//
// cmbInstorePos
...
...
@@ -1222,7 +270,7 @@ namespace OnlineStore.XLRStore
this
.
cmbInstorePos
.
FormattingEnabled
=
true
;
this
.
cmbInstorePos
.
Location
=
new
System
.
Drawing
.
Point
(
266
,
28
);
this
.
cmbInstorePos
.
Name
=
"cmbInstorePos"
;
this
.
cmbInstorePos
.
Size
=
new
System
.
Drawing
.
Size
(
142
,
28
);
this
.
cmbInstorePos
.
Size
=
new
System
.
Drawing
.
Size
(
142
,
31
);
this
.
cmbInstorePos
.
TabIndex
=
289
;
//
// btnOutStoreTest
...
...
@@ -1248,7 +296,7 @@ namespace OnlineStore.XLRStore
"B下暂存区"
});
this
.
cmbOutStartP
.
Location
=
new
System
.
Drawing
.
Point
(
9
,
70
);
this
.
cmbOutStartP
.
Name
=
"cmbOutStartP"
;
this
.
cmbOutStartP
.
Size
=
new
System
.
Drawing
.
Size
(
90
,
28
);
this
.
cmbOutStartP
.
Size
=
new
System
.
Drawing
.
Size
(
90
,
31
);
this
.
cmbOutStartP
.
TabIndex
=
287
;
this
.
cmbOutStartP
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbOutShelf_SelectedIndexChanged
);
//
...
...
@@ -1258,7 +306,7 @@ namespace OnlineStore.XLRStore
this
.
label2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label2
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
74
);
this
.
label2
.
Name
=
"label2"
;
this
.
label2
.
Size
=
new
System
.
Drawing
.
Size
(
3
1
,
20
);
this
.
label2
.
Size
=
new
System
.
Drawing
.
Size
(
3
9
,
24
);
this
.
label2
.
TabIndex
=
286
;
this
.
label2
.
Text
=
"-->"
;
//
...
...
@@ -1272,7 +320,7 @@ namespace OnlineStore.XLRStore
"B料口"
});
this
.
cmbOutShelf
.
Location
=
new
System
.
Drawing
.
Point
(
287
,
70
);
this
.
cmbOutShelf
.
Name
=
"cmbOutShelf"
;
this
.
cmbOutShelf
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
28
);
this
.
cmbOutShelf
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
31
);
this
.
cmbOutShelf
.
TabIndex
=
285
;
//
// BtnInStoreTest
...
...
@@ -1298,7 +346,7 @@ namespace OnlineStore.XLRStore
"B上暂存区"
});
this
.
cmbInstoreTargetP
.
Location
=
new
System
.
Drawing
.
Point
(
171
,
28
);
this
.
cmbInstoreTargetP
.
Name
=
"cmbInstoreTargetP"
;
this
.
cmbInstoreTargetP
.
Size
=
new
System
.
Drawing
.
Size
(
90
,
28
);
this
.
cmbInstoreTargetP
.
Size
=
new
System
.
Drawing
.
Size
(
90
,
31
);
this
.
cmbInstoreTargetP
.
TabIndex
=
2
;
this
.
cmbInstoreTargetP
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbInstoreTargetP_SelectedIndexChanged
);
//
...
...
@@ -1308,7 +356,7 @@ namespace OnlineStore.XLRStore
this
.
label1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
135
,
32
);
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
3
1
,
20
);
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
3
9
,
24
);
this
.
label1
.
TabIndex
=
1
;
this
.
label1
.
Text
=
"-->"
;
//
...
...
@@ -1322,7 +370,7 @@ namespace OnlineStore.XLRStore
"B料口"
});
this
.
cmbInstoreShelf
.
Location
=
new
System
.
Drawing
.
Point
(
9
,
28
);
this
.
cmbInstoreShelf
.
Name
=
"cmbInstoreShelf"
;
this
.
cmbInstoreShelf
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
28
);
this
.
cmbInstoreShelf
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
31
);
this
.
cmbInstoreShelf
.
TabIndex
=
0
;
//
// lblwidth
...
...
@@ -1344,7 +392,7 @@ namespace OnlineStore.XLRStore
this
.
lblMoveInfo
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblMoveInfo
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
109
);
this
.
lblMoveInfo
.
Name
=
"lblMoveInfo"
;
this
.
lblMoveInfo
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
17
);
this
.
lblMoveInfo
.
Size
=
new
System
.
Drawing
.
Size
(
73
,
20
);
this
.
lblMoveInfo
.
TabIndex
=
278
;
this
.
lblMoveInfo
.
Text
=
"运动信息:"
;
//
...
...
@@ -1368,8 +416,6 @@ namespace OnlineStore.XLRStore
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage3
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage2
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage1
);
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
2
,
2
);
this
.
tabControl1
.
Name
=
"tabControl1"
;
this
.
tabControl1
.
SelectedIndex
=
0
;
...
...
@@ -1377,103 +423,9 @@ namespace OnlineStore.XLRStore
this
.
tabControl1
.
TabIndex
=
257
;
this
.
tabControl1
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
tabControl1_SelectedIndexChanged
);
//
// tabControl2
//
this
.
tabControl2
.
Controls
.
Add
(
this
.
tabPage4
);
this
.
tabControl2
.
Controls
.
Add
(
this
.
tabPage5
);
this
.
tabControl2
.
Controls
.
Add
(
this
.
tabPage6
);
this
.
tabControl2
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
tabControl2
.
Name
=
"tabControl2"
;
this
.
tabControl2
.
SelectedIndex
=
0
;
this
.
tabControl2
.
Size
=
new
System
.
Drawing
.
Size
(
979
,
288
);
this
.
tabControl2
.
TabIndex
=
230
;
//
// tabPage4
//
this
.
tabPage4
.
Controls
.
Add
(
this
.
groupBox2
);
this
.
tabPage4
.
Controls
.
Add
(
this
.
groupBox5
);
this
.
tabPage4
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage4
.
Name
=
"tabPage4"
;
this
.
tabPage4
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage4
.
Size
=
new
System
.
Drawing
.
Size
(
971
,
258
);
this
.
tabPage4
.
TabIndex
=
0
;
this
.
tabPage4
.
Text
=
"A暂存区"
;
this
.
tabPage4
.
UseVisualStyleBackColor
=
true
;
//
// tabPage5
//
this
.
tabPage5
.
Controls
.
Add
(
this
.
groupBox7
);
this
.
tabPage5
.
Controls
.
Add
(
this
.
groupBox8
);
this
.
tabPage5
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage5
.
Name
=
"tabPage5"
;
this
.
tabPage5
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage5
.
Size
=
new
System
.
Drawing
.
Size
(
971
,
258
);
this
.
tabPage5
.
TabIndex
=
1
;
this
.
tabPage5
.
Text
=
"B暂存区"
;
this
.
tabPage5
.
UseVisualStyleBackColor
=
true
;
//
// tabPage6
//
this
.
tabPage6
.
Controls
.
Add
(
this
.
groupBox10
);
this
.
tabPage6
.
Controls
.
Add
(
this
.
groupBox9
);
this
.
tabPage6
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
26
);
this
.
tabPage6
.
Name
=
"tabPage6"
;
this
.
tabPage6
.
Size
=
new
System
.
Drawing
.
Size
(
971
,
258
);
this
.
tabPage6
.
TabIndex
=
2
;
this
.
tabPage6
.
Text
=
"NG/待机"
;
this
.
tabPage6
.
UseVisualStyleBackColor
=
true
;
//
// updownAxisP14
//
this
.
updownAxisP14
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP14
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
121
);
this
.
updownAxisP14
.
Name
=
"updownAxisP14"
;
this
.
updownAxisP14
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP14
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP14
.
PointText
=
"升降轴-A上暂存区13寸放料低点P14:"
;
this
.
updownAxisP14
.
PointValue
=
0
;
this
.
updownAxisP14
.
Size
=
new
System
.
Drawing
.
Size
(
306
,
36
);
this
.
updownAxisP14
.
TabIndex
=
6
;
//
// updownAxisP15
//
this
.
updownAxisP15
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP15
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
129
);
this
.
updownAxisP15
.
Name
=
"updownAxisP15"
;
this
.
updownAxisP15
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP15
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP15
.
PointText
=
"升降轴-A下暂存区13寸取料低点P15:"
;
this
.
updownAxisP15
.
PointValue
=
0
;
this
.
updownAxisP15
.
Size
=
new
System
.
Drawing
.
Size
(
327
,
35
);
this
.
updownAxisP15
.
TabIndex
=
7
;
//
// updownAxisP16
//
this
.
updownAxisP16
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP16
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
121
);
this
.
updownAxisP16
.
Name
=
"updownAxisP16"
;
this
.
updownAxisP16
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP16
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP16
.
PointText
=
"升降轴-B上暂存区13寸放料低点:"
;
this
.
updownAxisP16
.
PointValue
=
0
;
this
.
updownAxisP16
.
Size
=
new
System
.
Drawing
.
Size
(
316
,
34
);
this
.
updownAxisP16
.
TabIndex
=
12
;
//
// updownAxisP17
//
this
.
updownAxisP17
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP17
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
133
);
this
.
updownAxisP17
.
Name
=
"updownAxisP17"
;
this
.
updownAxisP17
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP17
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP17
.
PointText
=
"升降轴-B下暂存区13寸取料低点P17:"
;
this
.
updownAxisP17
.
PointValue
=
0
;
this
.
updownAxisP17
.
Size
=
new
System
.
Drawing
.
Size
(
331
,
32
);
this
.
updownAxisP17
.
TabIndex
=
13
;
//
// FrmInputEquip
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17
F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
9F
,
20
F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1000
,
596
);
this
.
Controls
.
Add
(
this
.
tabControl1
);
...
...
@@ -1486,22 +438,6 @@ namespace OnlineStore.XLRStore
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmInputEquip_Load
);
this
.
Shown
+=
new
System
.
EventHandler
(
this
.
FrmIOStatus_Shown
);
this
.
VisibleChanged
+=
new
System
.
EventHandler
(
this
.
FrmInputEquip_VisibleChanged
);
this
.
tabPage2
.
ResumeLayout
(
false
);
this
.
tabPage2
.
PerformLayout
();
this
.
groupBox11
.
ResumeLayout
(
false
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
groupBox10
.
ResumeLayout
(
false
);
this
.
groupBox9
.
ResumeLayout
(
false
);
this
.
groupBox8
.
ResumeLayout
(
false
);
this
.
groupBox7
.
ResumeLayout
(
false
);
this
.
groupBox5
.
ResumeLayout
(
false
);
this
.
groupBox2
.
ResumeLayout
(
false
);
this
.
tabPage1
.
ResumeLayout
(
false
);
this
.
groupDO
.
ResumeLayout
(
false
);
this
.
groupBox1
.
ResumeLayout
(
false
);
this
.
groupBox1
.
PerformLayout
();
this
.
groupBox3
.
ResumeLayout
(
false
);
this
.
groupBox4
.
ResumeLayout
(
false
);
this
.
tabPage3
.
ResumeLayout
(
false
);
this
.
panBase
.
ResumeLayout
(
false
);
this
.
panBase
.
PerformLayout
();
...
...
@@ -1510,10 +446,6 @@ namespace OnlineStore.XLRStore
this
.
groupBox12
.
ResumeLayout
(
false
);
this
.
groupBox12
.
PerformLayout
();
this
.
tabControl1
.
ResumeLayout
(
false
);
this
.
tabControl2
.
ResumeLayout
(
false
);
this
.
tabPage4
.
ResumeLayout
(
false
);
this
.
tabPage5
.
ResumeLayout
(
false
);
this
.
tabPage6
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
}
...
...
@@ -1522,36 +454,6 @@ namespace OnlineStore.XLRStore
private
System
.
Windows
.
Forms
.
Timer
timer1
;
private
System
.
Windows
.
Forms
.
Button
btnScan
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage2
;
private
AxisMoveRectControl
axisMoveControl1
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupDO
;
private
System
.
Windows
.
Forms
.
Button
LineStop_B
;
private
System
.
Windows
.
Forms
.
Button
LineBack_B
;
private
System
.
Windows
.
Forms
.
Button
LineStart_B
;
private
System
.
Windows
.
Forms
.
Button
LineStop_A
;
private
System
.
Windows
.
Forms
.
Button
LineBack_A
;
private
System
.
Windows
.
Forms
.
Button
Shelf_StopDown_B
;
private
System
.
Windows
.
Forms
.
Button
Shelf_StopDown_A
;
private
System
.
Windows
.
Forms
.
Button
Shelf_StopUp_A
;
private
System
.
Windows
.
Forms
.
Button
Shelf_StopUp_B
;
private
System
.
Windows
.
Forms
.
Button
LineStart_A
;
private
System
.
Windows
.
Forms
.
Button
btnCloseAll
;
private
useControl
.
ClampJawControl
clampJawControl1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
TextBox
txtDOIndex
;
private
System
.
Windows
.
Forms
.
TextBox
txtDoName
;
private
System
.
Windows
.
Forms
.
Label
lblAddr
;
private
System
.
Windows
.
Forms
.
Button
btnOpenDo
;
private
System
.
Windows
.
Forms
.
TextBox
txtSlaveId
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbWriteIO
;
private
System
.
Windows
.
Forms
.
Button
btnWriteSingleDO
;
private
System
.
Windows
.
Forms
.
TextBox
txtWriteTime
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox3
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox4
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel2
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage3
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox6
;
private
System
.
Windows
.
Forms
.
Button
btnHlhasReel
;
...
...
@@ -1565,43 +467,12 @@ namespace OnlineStore.XLRStore
protected
System
.
Windows
.
Forms
.
Label
lblStoreStatus
;
protected
System
.
Windows
.
Forms
.
Button
btnStart
;
protected
System
.
Windows
.
Forms
.
Button
btnStop
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
useControl
.
AxisPointControl
mideleAxisP8
;
private
useControl
.
AxisPointControl
mideleAxisP7
;
private
useControl
.
AxisPointControl
mideleAxisP6
;
private
useControl
.
AxisPointControl
mideleAxisP5
;
private
useControl
.
AxisPointControl
mideleAxisP4
;
private
useControl
.
AxisPointControl
mideleAxisP3
;
private
useControl
.
AxisPointControl
mideleAxisP2
;
private
useControl
.
AxisPointControl
mideleAxisP1
;
private
useControl
.
AxisPointControl
updownAxisP13
;
private
useControl
.
AxisPointControl
updownAxisP12
;
private
useControl
.
AxisPointControl
updownAxisP11
;
private
useControl
.
AxisPointControl
updownAxisP10
;
private
useControl
.
AxisPointControl
updownAxisP9
;
private
useControl
.
AxisPointControl
updownAxisP8
;
private
useControl
.
AxisPointControl
updownAxisP7
;
private
useControl
.
AxisPointControl
updownAxisP6
;
private
useControl
.
AxisPointControl
updownAxisP5
;
private
useControl
.
AxisPointControl
updownAxisP4
;
private
useControl
.
AxisPointControl
updownAxisP3
;
private
useControl
.
AxisPointControl
updownAxisP2
;
private
useControl
.
AxisPointControl
updownAxisP1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox2
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox8
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox7
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox5
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox9
;
protected
System
.
Windows
.
Forms
.
Button
btnSave
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox10
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox11
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox12
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbInstoreShelf
;
private
System
.
Windows
.
Forms
.
Button
BtnInStoreTest
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbInstoreTargetP
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
Button
btnOutStoreTest
;
private
System
.
Windows
.
Forms
.
CheckBox
chbPointEditEnable
;
public
System
.
Windows
.
Forms
.
TabControl
tabControl1
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbInstorePos
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbOutstorePos
;
...
...
@@ -1609,22 +480,7 @@ namespace OnlineStore.XLRStore
private
System
.
Windows
.
Forms
.
Label
label2
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbOutShelf
;
protected
System
.
Windows
.
Forms
.
CheckBox
checkBox1
;
private
System
.
Windows
.
Forms
.
Button
btnClampRelax
;
private
System
.
Windows
.
Forms
.
Button
btnClampWork
;
private
AxisPointControl
inoutAxisP5
;
private
AxisPointControl
inoutAxisP4
;
private
AxisPointControl
inoutAxisP1
;
private
AxisPointControl
inoutAxisP6
;
private
AxisPointControl
inoutAxisP3
;
private
AxisPointControl
inoutAxisP2
;
private
System
.
Windows
.
Forms
.
TabControl
tabControl2
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage4
;
private
AxisPointControl
updownAxisP14
;
private
AxisPointControl
updownAxisP15
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage5
;
private
AxisPointControl
updownAxisP16
;
private
AxisPointControl
updownAxisP17
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage6
;
protected
System
.
Windows
.
Forms
.
Button
btnCameraLed
;
}
}
source/XLRStoreClient/inputForm/FrmInputEquip.cs
查看文件 @
8955813
...
...
@@ -16,6 +16,8 @@ using System.Reflection;
using
UserFromControl
;
using
OnlineStore.LoadCSVLibrary
;
using
OnlineStore.Common
;
using
OnlineStore.XLRStore.inputForm.uc
;
using
static
System
.
Windows
.
Forms
.
AxHost
;
namespace
OnlineStore.XLRStore
{
...
...
@@ -29,33 +31,6 @@ namespace OnlineStore.XLRStore
this
.
inputEquip
=
moveEquip
;
Control
.
CheckForIllegalCrossThreadCalls
=
false
;
InitializeComponent
();
LoadIOList
();
}
protected
Dictionary
<
string
,
IOTextControl
>
DIControlList
=
new
Dictionary
<
string
,
IOTextControl
>();
protected
Dictionary
<
string
,
IOTextControl
>
DOControlList
=
new
Dictionary
<
string
,
IOTextControl
>();
protected
void
ReadIOList
()
{
foreach
(
string
key
in
DIControlList
.
Keys
)
{
IOTextControl
control
=
DIControlList
[
key
];
int
iov
=
(
int
)
IOManager
.
IOValue
(
key
,
inputEquip
.
DeviceID
);
if
(
iov
!=
control
.
IOValue
)
{
control
.
IOValue
=
iov
;
control
.
ShowData
();
}
}
foreach
(
string
key
in
this
.
DOControlList
.
Keys
)
{
IOTextControl
control
=
DOControlList
[
key
];
int
iov
=
(
int
)
IOManager
.
DOValue
(
key
,
inputEquip
.
DeviceID
);
if
(
iov
!=
control
.
IOValue
)
{
control
.
IOValue
=
iov
;
control
.
ShowData
();
}
}
}
protected
void
StartDebug
()
...
...
@@ -111,69 +86,6 @@ namespace OnlineStore.XLRStore
MessageBox
.
Show
(
inputEquip
.
Name
+
"请先启动设备"
,
"提示"
,
MessageBoxButtons
.
OK
,
MessageBoxIcon
.
Warning
);
}
}
private
void
LoadIOList
()
{
int
maxCount
=
20
;
int
roleindex
=
0
;
this
.
tableLayoutPanel1
.
RowStyles
.
Clear
();
this
.
tableLayoutPanel1
.
RowCount
=
maxCount
;
//this.tableLayoutPanel3.RowStyles.Clear();
//this.tableLayoutPanel3.RowCount = maxCount;
int
i
=
0
;
foreach
(
ConfigIO
ioValue
in
inputEquip
.
Config
.
DIList
.
Values
)
{
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
//if (i >= maxCount)
//{
// this.tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Absolute, 28));
// this.tableLayoutPanel3.Controls.Add(control, 0, roleindex - maxCount);
//}
//else
{
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
this
.
tableLayoutPanel1
.
Controls
.
Add
(
control
,
0
,
roleindex
);
}
roleindex
++;
i
++;
DIControlList
.
Add
(
ioValue
.
ProName
,
control
);
}
tableLayoutPanel2
.
RowStyles
.
Clear
();
this
.
tableLayoutPanel2
.
RowCount
=
maxCount
;
roleindex
=
0
;
i
=
0
;
foreach
(
ConfigIO
ioValue
in
inputEquip
.
Config
.
DOList
.
Values
)
{
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
control
.
Click
+=
Control_Click
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
roleindex
++;
i
++;
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
}
this
.
SuspendLayout
();
//此处为不闪屏,一定要有的!
cmbWriteIO
.
DataSource
=
new
List
<
ConfigIO
>(
inputEquip
.
Config
.
DOList
.
Values
);
cmbWriteIO
.
ValueMember
=
"ProName"
;
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
}
private
void
Control_Click
(
object
sender
,
EventArgs
e
)
{
IOTextControl
control
=
(
IOTextControl
)
sender
;
string
name
=
control
.
Name
.
Substring
(
3
,
control
.
Name
.
Length
-
3
);
List
<
string
>
keyList
=
new
List
<
string
>(
DOControlList
.
Keys
);
int
index
=
keyList
.
IndexOf
(
name
);
if
(
index
>=
0
)
{
cmbWriteIO
.
SelectedIndex
=
index
;
}
}
private
bool
IsInCheck
=
false
;
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -183,8 +95,14 @@ namespace OnlineStore.XLRStore
{
return
;
}
clampJawControl1
.
UpdateSta
();
ReadIOList
();
if
(
inputEquip
.
IsDeviceLEDOn
())
{
btnCameraLed
.
Text
=
"关闭照明"
;
}
else
{
btnCameraLed
.
Text
=
"开启照明"
;
}
lblName
.
BackColor
=
inputEquip
.
GetShowColor
();
lblStoreStatus
.
Text
=
inputEquip
.
GetRunStr
();
if
(
inputEquip
.
runStatus
>
RunStatus
.
Wait
)
...
...
@@ -246,65 +164,8 @@ namespace OnlineStore.XLRStore
LogUtil
.
error
(
""
,
ex
);
}
}
private
void
btnOpenDo_Click
(
object
sender
,
EventArgs
e
)
{
WriteDO
(
IO_VALUE
.
HIGH
);
}
private
void
btnWriteSingleDO_Click
(
object
sender
,
EventArgs
e
)
{
WriteDO
(
IO_VALUE
.
LOW
);
}
private
void
WriteDO
(
IO_VALUE
value
)
{
string
deviceName
=
txtDoName
.
Text
;
int
index
=
FormUtil
.
GetIntValue
(
txtDOIndex
);
// IO_VALUE value = checkBox1.Checked ? IO_VALUE.HIGH : IO_VALUE.LOW;
int
time
=
FormUtil
.
GetIntValue
(
txtWriteTime
);
int
slaveId
=
FormUtil
.
GetIntValue
(
txtSlaveId
);
if
(
time
>
0
)
{
IOManager
.
instance
.
WriteSingleDO
(
deviceName
,
(
byte
)
slaveId
,
(
ushort
)
index
,
(
IO_VALUE
)
value
,
time
);
}
else
{
IOManager
.
instance
.
WriteSingleDO
(
deviceName
,
(
byte
)
slaveId
,
(
ushort
)
index
,
(
IO_VALUE
)
value
);
}
}
private
ConfigIO
GetSelectDO
()
{
string
text
=
cmbWriteIO
.
SelectedValue
.
ToString
();
string
newType
=
text
.
Replace
(
"SW1_"
,
"SW_"
).
Replace
(
"SW2_"
,
"SW_"
).
Replace
(
"SW3_"
,
"SW_"
).
Replace
(
"SW4_"
,
"SW_"
);
if
(
inputEquip
.
Config
.
DOList
.
ContainsKey
(
newType
))
{
ConfigIO
io
=
inputEquip
.
Config
.
DOList
[
newType
];
return
io
;
}
return
null
;
}
IOTextControl
selectControl
=
null
;
private
void
cmbWriteIO_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
if
(
cmbWriteIO
.
SelectedIndex
>=
0
)
{
ConfigIO
io
=
GetSelectDO
();
if
(
io
!=
null
)
{
// txtIp.Text = io.DeviceName;
txtDOIndex
.
Text
=
io
.
GetIOAddr
().
ToString
();
txtDoName
.
Text
=
io
.
IO_IP
;
txtSlaveId
.
Text
=
io
.
SlaveID
.
ToString
();
lblAddr
.
Text
=
txtDoName
.
Text
+
"_"
+
txtDOIndex
.
Text
;
IOTextControl
newControl
=
DOControlList
[
io
.
ProName
];
if
(
selectControl
!=
null
)
{
selectControl
.
BackColor
=
Color
.
White
;
}
newControl
.
BackColor
=
Color
.
SkyBlue
;
selectControl
=
newControl
;
//txtIOInfo.Text = "IP:" + io.DeviceName + " /" + io.GetIOAddr().ToString();
}
}
}
FrmBatchMove
frmMove1
;
FrmBatchMove
frmMove2
;
private
void
FrmInputEquip_Load
(
object
sender
,
EventArgs
e
)
{
cmbInstoreShelf
.
SelectedIndex
=
0
;
...
...
@@ -316,70 +177,17 @@ namespace OnlineStore.XLRStore
chbDebug
.
Checked
=
inputEquip
.
IsDebug
;
chbMoveStop
.
Checked
=
inputEquip
.
MoveStop
;
if
(
inputEquip
.
ClampJaw
==
null
)
{
clampJawControl1
.
Visible
=
false
;
btnClampRelax
.
Visible
=
true
;
btnClampWork
.
Visible
=
true
;
}
else
{
clampJawControl1
.
Visible
=
true
;
btnClampRelax
.
Visible
=
false
;
btnClampWork
.
Visible
=
false
;
clampJawControl1
.
clampJaw
=
inputEquip
.
ClampJaw
;
clampJawControl1
.
ShowData
();
}
axisMoveControl1
.
LoadData
(
inputEquip
,
new
AxisBean
[]
{
inputEquip
.
MiddleAxis
,
inputEquip
.
UpdownAxis
,
inputEquip
.
InOutAxis
});
FrmBatchMove
frmMove1
=
new
FrmBatchMove
(
inputEquip
.
BatchMove_A
);
initConfigWindow
(
inputEquip
);
frmMove1
=
new
FrmBatchMove
(
inputEquip
.
BatchMove_A
);
frmMove1
.
ShowConfig
(
false
);
AddForm
(
tabControl1
,
" "
+
inputEquip
.
BatchMove_A
.
Name
+
" "
,
frmMove1
);
FrmBatchMove
frmMove2
=
new
FrmBatchMove
(
inputEquip
.
BatchMove_B
);
frmMove2
=
new
FrmBatchMove
(
inputEquip
.
BatchMove_B
);
frmMove2
.
ShowConfig
(
false
);
AddForm
(
tabControl1
,
" "
+
inputEquip
.
BatchMove_B
.
Name
+
" "
,
frmMove2
);
PointEditEnable
(
false
);
checkBox1
.
Checked
=
inputEquip
.
AutoInput
;
LoadPoint
();
IsLoad
=
true
;
}
private
void
LoadPoint
()
{
InputEquip_Config
config
=
inputEquip
.
Config
;
mideleAxisP1
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P1_Speed
,
config
.
Middle_P1
);
mideleAxisP2
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P2_Speed
,
config
.
Middle_P2_ATake
);
mideleAxisP3
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P3_Speed
,
config
.
Middle_P3_BTake
);
mideleAxisP4
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P4_Speed
,
config
.
Middle_P4_AUpper
);
mideleAxisP5
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P5_Speed
,
config
.
Middle_P5_BUpper
);
mideleAxisP6
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P6_Speed
,
config
.
Middle_P6_NG
);
mideleAxisP7
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P7_Speed
,
config
.
Middle_P7_AUnder
);
mideleAxisP8
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P8_Speed
,
config
.
Middle_P8_BUnder
);
updownAxisP1
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P1_Speed
,
config
.
Updown_P1
);
updownAxisP2
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P2_Speed
,
config
.
Updown_P2_ATake
);
updownAxisP3
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P3_Speed
,
config
.
Updown_P3_BTake
);
updownAxisP4
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P4_Speed
,
config
.
Updown_P4_AUpperH
);
updownAxisP5
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P5_Speed
,
config
.
Updown_P5_AUpperL7
);
updownAxisP6
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P6_Speed
,
config
.
Updown_P6_AUnderH
);
updownAxisP7
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P7_Speed
,
config
.
Updown_P7_AUnderL7
);
updownAxisP8
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P8_Speed
,
config
.
Updown_P8_NGH
);
updownAxisP9
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P9_Speed
,
config
.
Updown_P9_NGL
);
updownAxisP10
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P10_Speed
,
config
.
Updown_P10_BUpperH
);
updownAxisP11
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P11_Speed
,
config
.
Updown_P11_BUpperL7
);
updownAxisP12
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P12_Speed
,
config
.
Updown_P12_BUnderH
);
updownAxisP13
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P13_Speed
,
config
.
Updown_P13_BUnderL7
);
updownAxisP14
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P14_Speed
,
config
.
Updown_P14_AUpperL13
);
updownAxisP15
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P15_Speed
,
config
.
Updown_P15_AUnderL13
);
updownAxisP16
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P16_Speed
,
config
.
Updown_P16_BUpperL13
);
updownAxisP17
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P17_Speed
,
config
.
Updown_P17_BUnderL13
);
inoutAxisP1
.
SetMoveData
(
inputEquip
.
InOutAxis
,
config
.
Inout_P1_Speed
,
config
.
Inout_P1
);
inoutAxisP2
.
SetMoveData
(
inputEquip
.
InOutAxis
,
config
.
Inout_P2_Speed
,
config
.
Inout_P2
);
inoutAxisP3
.
SetMoveData
(
inputEquip
.
InOutAxis
,
config
.
Inout_P3_Speed
,
config
.
Inout_P3
);
inoutAxisP4
.
SetMoveData
(
inputEquip
.
InOutAxis
,
config
.
Inout_P4_Speed
,
config
.
Inout_P4
);
inoutAxisP5
.
SetMoveData
(
inputEquip
.
InOutAxis
,
config
.
Inout_P5_Speed
,
config
.
Inout_P5
);
inoutAxisP6
.
SetMoveData
(
inputEquip
.
InOutAxis
,
config
.
Inout_P6_Speed
,
config
.
Inout_P6
);
}
protected
void
AddForm
(
TabControl
tabcon
,
string
text
,
Form
form
)
{
//text = text.PadRight(10, ' ');
...
...
@@ -400,25 +208,6 @@ namespace OnlineStore.XLRStore
//tabPageList.Add(lineTabPage);
tabcon
.
Controls
.
Add
(
lineTabPage
);
}
private
void
cmbWriteIO_DrawItem
(
object
sender
,
DrawItemEventArgs
e
)
{
if
(
e
.
Index
<
0
)
{
return
;
}
e
.
DrawBackground
();
e
.
DrawFocusRectangle
();
if
(
cmbWriteIO
.
Items
.
Count
>
e
.
Index
)
{
ConfigIO
io
=
(
ConfigIO
)
cmbWriteIO
.
Items
[
e
.
Index
];
e
.
Graphics
.
DrawString
(
io
.
DisplayStr
,
e
.
Font
,
new
SolidBrush
(
e
.
ForeColor
),
e
.
Bounds
.
X
,
e
.
Bounds
.
Y
+
3
);
}
}
private
void
btnReadIO_Click
(
object
sender
,
EventArgs
e
)
{
ReadIOList
();
}
private
void
FrmIOStatus_Shown
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -449,7 +238,7 @@ namespace OnlineStore.XLRStore
}
else
{
btnStart
.
Text
=
"启动
调试
"
;
btnStart
.
Text
=
"启动"
;
}
//btnReset.Enabled = isStart;
}
...
...
@@ -499,21 +288,6 @@ namespace OnlineStore.XLRStore
}
}
private
void
btnCloseAll_Click
(
object
sender
,
EventArgs
e
)
{
foreach
(
Control
con
in
groupDO
.
Controls
)
{
if
(
con
is
Button
)
{
con
.
BackColor
=
BackColor
=
Color
.
White
;
}
}
foreach
(
ConfigIO
io
in
inputEquip
.
baseConfig
.
DOList
.
Values
)
{
IOManager
.
instance
.
WriteSingleDO
(
io
.
IO_IP
,
io
.
SlaveID
,
io
.
GetIOAddr
(),
IO_VALUE
.
LOW
);
}
}
private
void
chbMoveStop_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -526,139 +300,12 @@ namespace OnlineStore.XLRStore
LogUtil
.
info
(
inputEquip
.
Name
+
"用户切换是否暂停: "
+
inputEquip
.
MoveStop
);
}
private
void
Shelf_StopUp_A_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_A
.
Name
+
"点击:"
+
Shelf_StopUp_A
.
Text
);
inputEquip
.
BatchMove_A
.
StopUp
();
}
private
void
Shelf_StopDown_A_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_A
.
Name
+
"点击:"
+
Shelf_StopDown_A
.
Text
);
inputEquip
.
BatchMove_A
.
StopDown
();
}
private
void
LineStart_A_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_A
.
Name
+
"点击:"
+
LineStart_A
.
Text
);
inputEquip
.
BatchMove_A
.
LineRun
();
}
private
void
LineBack_A_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_A
.
Name
+
"点击:"
+
LineBack_A
.
Text
);
inputEquip
.
BatchMove_A
.
LineBack
();
}
private
void
LineStop_A_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_A
.
Name
+
"点击:"
+
LineStop_A
.
Text
);
inputEquip
.
BatchMove_A
.
LineStop
();
}
private
void
Shelf_StopUp_B_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_B
.
Name
+
"点击:"
+
Shelf_StopUp_B
.
Text
);
inputEquip
.
BatchMove_B
.
StopUp
();
}
private
void
Shelf_StopDown_B_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_B
.
Name
+
"点击:"
+
Shelf_StopDown_B
.
Text
);
inputEquip
.
BatchMove_B
.
StopDown
();
}
private
void
LineStart_B_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_B
.
Name
+
"点击:"
+
LineStart_B
.
Text
);
inputEquip
.
BatchMove_B
.
LineRun
();
}
private
void
LineBack_B_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_B
.
Name
+
"点击:"
+
LineBack_B
.
Text
);
inputEquip
.
BatchMove_B
.
LineBack
();
}
private
void
LineStop_B_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_B
.
Name
+
"点击:"
+
LineStop_B
.
Text
);
inputEquip
.
BatchMove_B
.
LineStop
();
}
private
void
btnSave_Click
(
object
sender
,
EventArgs
e
)
{
inputEquip
.
Config
.
Updown_P1
=
updownAxisP1
.
PointValue
;
inputEquip
.
Config
.
Updown_P2_ATake
=
updownAxisP2
.
PointValue
;
inputEquip
.
Config
.
Updown_P3_BTake
=
updownAxisP3
.
PointValue
;
inputEquip
.
Config
.
Updown_P4_AUpperH
=
updownAxisP4
.
PointValue
;
inputEquip
.
Config
.
Updown_P5_AUpperL7
=
updownAxisP5
.
PointValue
;
inputEquip
.
Config
.
Updown_P6_AUnderH
=
updownAxisP6
.
PointValue
;
inputEquip
.
Config
.
Updown_P7_AUnderL7
=
updownAxisP7
.
PointValue
;
inputEquip
.
Config
.
Updown_P8_NGH
=
updownAxisP8
.
PointValue
;
inputEquip
.
Config
.
Updown_P9_NGL
=
updownAxisP9
.
PointValue
;
inputEquip
.
Config
.
Updown_P10_BUpperH
=
updownAxisP10
.
PointValue
;
inputEquip
.
Config
.
Updown_P11_BUpperL7
=
updownAxisP11
.
PointValue
;
inputEquip
.
Config
.
Updown_P12_BUnderH
=
updownAxisP12
.
PointValue
;
inputEquip
.
Config
.
Updown_P13_BUnderL7
=
updownAxisP13
.
PointValue
;
inputEquip
.
Config
.
Updown_P14_AUpperL13
=
updownAxisP14
.
PointValue
;
inputEquip
.
Config
.
Updown_P15_AUnderL13
=
updownAxisP15
.
PointValue
;
inputEquip
.
Config
.
Updown_P16_BUpperL13
=
updownAxisP16
.
PointValue
;
inputEquip
.
Config
.
Updown_P17_BUnderL13
=
updownAxisP17
.
PointValue
;
inputEquip
.
Config
.
Middle_P1
=
mideleAxisP1
.
PointValue
;
inputEquip
.
Config
.
Middle_P2_ATake
=
mideleAxisP2
.
PointValue
;
inputEquip
.
Config
.
Middle_P3_BTake
=
mideleAxisP3
.
PointValue
;
inputEquip
.
Config
.
Middle_P4_AUpper
=
mideleAxisP4
.
PointValue
;
inputEquip
.
Config
.
Middle_P5_BUpper
=
mideleAxisP5
.
PointValue
;
inputEquip
.
Config
.
Middle_P6_NG
=
mideleAxisP6
.
PointValue
;
inputEquip
.
Config
.
Middle_P7_AUnder
=
mideleAxisP7
.
PointValue
;
inputEquip
.
Config
.
Middle_P8_BUnder
=
mideleAxisP8
.
PointValue
;
inputEquip
.
Config
.
Inout_P1
=
inoutAxisP1
.
PointValue
;
inputEquip
.
Config
.
Inout_P2
=
inoutAxisP2
.
PointValue
;
inputEquip
.
Config
.
Inout_P3
=
inoutAxisP3
.
PointValue
;
inputEquip
.
Config
.
Inout_P4
=
inoutAxisP4
.
PointValue
;
inputEquip
.
Config
.
Inout_P5
=
inoutAxisP5
.
PointValue
;
inputEquip
.
Config
.
Inout_P6
=
inoutAxisP6
.
PointValue
;
StoreManager
.
SaveInputEquipConfig
(
inputEquip
.
Config
);
MessageBox
.
Show
(
"保存成功"
);
}
private
void
panel1_Paint
(
object
sender
,
PaintEventArgs
e
)
{
}
private
void
PointEditEnable
(
bool
enable
)
{
groupBox2
.
Enabled
=
enable
;
groupBox5
.
Enabled
=
enable
;
groupBox7
.
Enabled
=
enable
;
groupBox8
.
Enabled
=
enable
;
groupBox9
.
Enabled
=
enable
;
groupBox10
.
Enabled
=
enable
;
groupBox11
.
Enabled
=
enable
;
}
private
void
chbPointEditEnable_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
if
(!
IsLoad
)
{
return
;
}
PointEditEnable
(
chbPointEditEnable
.
Checked
);
}
internal
void
FrmInputEquip_VisibleChanged
(
object
sender
,
EventArgs
e
)
{
if
(!
IsLoad
)
{
return
;
}
chbPointEditEnable
.
Checked
=
false
;
}
private
void
tabControl1_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
...
...
@@ -667,7 +314,6 @@ namespace OnlineStore.XLRStore
{
return
;
}
chbPointEditEnable
.
Checked
=
false
;
}
private
void
BtnInStoreTest_Click
(
object
sender
,
EventArgs
e
)
...
...
@@ -676,13 +322,13 @@ namespace OnlineStore.XLRStore
string
pos
=
cmbInstorePos
.
Text
;
if
(
String
.
IsNullOrEmpty
(
pos
))
{
MessageBox
.
Show
(
"请选择目标库位"
,
"提示"
);
MessageBox
.
Show
(
"请选择目标库位"
,
"提示"
);
return
;
}
BoxPosition
posiiton
=
CSVPositionReader
<
BoxPosition
>.
GetPositon
(
pos
);
InOutParam
param
=
new
InOutParam
(
new
InOutPosInfo
(
"InstoreTEST"
,
pos
,
posiiton
.
BagHigh
,
posiiton
.
BagWidth
));
InOutParam
param
=
new
InOutParam
(
new
InOutPosInfo
(
"InstoreTEST"
,
pos
,
posiiton
.
BagHigh
,
posiiton
.
BagWidth
));
param
.
ShelfType
=
startShelf
;
LogUtil
.
info
(
"点击 "
+
BtnInStoreTest
.
Text
+
" :料串["
+
startShelf
+
"]->"
+
param
.
PosInfo
.
ToStr
());
LogUtil
.
info
(
"点击 "
+
BtnInStoreTest
.
Text
+
" :料串["
+
startShelf
+
"]->"
+
param
.
PosInfo
.
ToStr
());
inputEquip
.
StartInstore
(
param
);
}
...
...
@@ -698,7 +344,7 @@ namespace OnlineStore.XLRStore
BoxPosition
posiiton
=
CSVPositionReader
<
BoxPosition
>.
GetPositon
(
pos
);
InOutParam
param
=
new
InOutParam
(
new
InOutPosInfo
(
"OutstoreTEST"
,
pos
,
posiiton
.
BagHigh
,
posiiton
.
BagWidth
));
param
.
ShelfType
=
startShelf
;
LogUtil
.
info
(
"点击 "
+
btnOutStoreTest
.
Text
+
" :"
+
param
.
PosInfo
.
ToStr
()+
"->料串["
+
startShelf
+
"]"
);
LogUtil
.
info
(
"点击 "
+
btnOutStoreTest
.
Text
+
" :"
+
param
.
PosInfo
.
ToStr
()
+
"->料串["
+
startShelf
+
"]"
);
inputEquip
.
StartOutstore
(
param
);
}
...
...
@@ -727,7 +373,8 @@ namespace OnlineStore.XLRStore
if
(
pIndex
.
Equals
(
0
))
{
positions
=
(
from
m
in
StoreManager
.
XLRStore
.
boxEquip
.
PositionNumList
where
m
.
Contains
(
"AA"
)
select
m
).
ToList
<
string
>();
}
else
if
(
pIndex
.
Equals
(
1
))
}
else
if
(
pIndex
.
Equals
(
1
))
{
positions
=
(
from
m
in
StoreManager
.
XLRStore
.
boxEquip
.
PositionNumList
where
m
.
Contains
(
"BB"
)
select
m
).
ToList
<
string
>();
}
...
...
@@ -755,9 +402,9 @@ namespace OnlineStore.XLRStore
if
(
result
.
Equals
(
DialogResult
.
Yes
))
{
checkBox1
.
Checked
=
true
;
inputEquip
.
AutoInput
=
true
;
inputEquip
.
AutoInput
=
true
;
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
AutoInput
,
1
);
LogUtil
.
info
(
inputEquip
.
Name
+
"检测到料串自动入库= "
+
checkBox1
.
Checked
);
LogUtil
.
info
(
inputEquip
.
Name
+
"检测到料串自动入库= "
+
checkBox1
.
Checked
);
}
}
}
...
...
@@ -786,7 +433,72 @@ namespace OnlineStore.XLRStore
{
inputEquip
.
ClampRelax
(
null
);
}
#
region
配置窗口
Input_AxisControl
ac
;
Input_IO
io
;
void
initConfigWindow
(
InputEquip
input
)
{
ac
=
new
Input_AxisControl
(
input
);
io
=
new
Input_IO
(
input
);
}
public
void
Frm_ConfigModeEvent
(
bool
state
)
{
checkBox1
.
Visible
=
state
;
groupBox12
.
Visible
=
state
;
frmMove1
.
ShowConfig
(
state
);
frmMove2
.
ShowConfig
(
state
);
if
(
state
)
{
addTablePage
();
}
else
{
for
(
int
i
=
tabControl1
.
TabPages
.
Count
-
1
;
i
>
2
;
i
--)
{
tabControl1
.
TabPages
[
i
].
Parent
=
null
;
}
}
}
private
void
AddForm
(
string
text
,
UserControl
form
)
{
//text = text.PadLeft(10, ' ');
TabPage
lineTabPage
=
new
TabPage
(
text
);
// lineTabPage.AutoScroll = true;
//lineTabPage.Tag = robot;
Panel
linePan
=
new
Panel
();
linePan
.
Dock
=
DockStyle
.
Fill
;
linePan
.
AutoScroll
=
true
;
lineTabPage
.
Controls
.
Add
(
linePan
);
//form.FormBorderStyle = FormBorderStyle.None;
//form.TopLevel = false;
linePan
.
Controls
.
Add
(
form
);
form
.
Dock
=
DockStyle
.
Fill
;
linePan
.
Anchor
=
((
AnchorStyles
)((
AnchorStyles
.
Top
|
AnchorStyles
.
Right
|
AnchorStyles
.
Bottom
|
AnchorStyles
.
Left
)));
form
.
Anchor
=
((
AnchorStyles
)((
AnchorStyles
.
Top
|
AnchorStyles
.
Right
|
AnchorStyles
.
Bottom
|
AnchorStyles
.
Left
)));
form
.
Show
();
//tabPageList.Add(lineTabPage);
tabControl1
.
Controls
.
Add
(
lineTabPage
);
}
void
addTablePage
()
{
AddForm
(
"IO调试"
,
io
);
AddForm
(
"伺服调试"
,
ac
);
}
#
endregion
private
void
btnCameraLed_Click
(
object
sender
,
EventArgs
e
)
{
if
(
inputEquip
.
IsDeviceLEDOn
())
{
inputEquip
.
DeviceLED
(
false
);
}
else
{
inputEquip
.
DeviceLED
(
true
);
}
}
}
}
...
...
source/XLRStoreClient/inputForm/uc/Input_AxisControl.Designer.cs
0 → 100644
查看文件 @
8955813
namespace
OnlineStore.XLRStore.inputForm.uc
{
partial
class
Input_AxisControl
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private
System
.
ComponentModel
.
IContainer
components
=
null
;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
disposing
&&
(
components
!=
null
))
{
components
.
Dispose
();
}
base
.
Dispose
(
disposing
);
}
#
region
组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private
void
InitializeComponent
()
{
this
.
tabControl2
=
new
System
.
Windows
.
Forms
.
TabControl
();
this
.
tabPage4
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox5
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tabPage5
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
groupBox7
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox8
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tabPage6
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
groupBox10
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox9
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox11
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
chbPointEditEnable
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
btnSave
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
inoutAxisP5
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
inoutAxisP4
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP3
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP2
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP2
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP3
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
axisMoveControl1
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisMoveRectControl
();
this
.
updownAxisP14
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
inoutAxisP2
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP4
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP4
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP5
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP15
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP7
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP6
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP7
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP16
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
inoutAxisP3
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP5
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP10
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP11
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP17
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP13
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP8
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP12
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
inoutAxisP1
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP1
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP1
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
inoutAxisP6
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP8
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
updownAxisP9
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
mideleAxisP6
=
new
OnlineStore
.
XLRStore
.
useControl
.
AxisPointControl
();
this
.
tabControl2
.
SuspendLayout
();
this
.
tabPage4
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
groupBox5
.
SuspendLayout
();
this
.
tabPage5
.
SuspendLayout
();
this
.
groupBox7
.
SuspendLayout
();
this
.
groupBox8
.
SuspendLayout
();
this
.
tabPage6
.
SuspendLayout
();
this
.
groupBox10
.
SuspendLayout
();
this
.
groupBox9
.
SuspendLayout
();
this
.
groupBox11
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// tabControl2
//
this
.
tabControl2
.
Controls
.
Add
(
this
.
tabPage4
);
this
.
tabControl2
.
Controls
.
Add
(
this
.
tabPage5
);
this
.
tabControl2
.
Controls
.
Add
(
this
.
tabPage6
);
this
.
tabControl2
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
9
);
this
.
tabControl2
.
Name
=
"tabControl2"
;
this
.
tabControl2
.
SelectedIndex
=
0
;
this
.
tabControl2
.
Size
=
new
System
.
Drawing
.
Size
(
979
,
288
);
this
.
tabControl2
.
TabIndex
=
231
;
//
// tabPage4
//
this
.
tabPage4
.
Controls
.
Add
(
this
.
groupBox2
);
this
.
tabPage4
.
Controls
.
Add
(
this
.
groupBox5
);
this
.
tabPage4
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
25
);
this
.
tabPage4
.
Name
=
"tabPage4"
;
this
.
tabPage4
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage4
.
Size
=
new
System
.
Drawing
.
Size
(
971
,
259
);
this
.
tabPage4
.
TabIndex
=
0
;
this
.
tabPage4
.
Text
=
"A暂存区"
;
this
.
tabPage4
.
UseVisualStyleBackColor
=
true
;
//
// groupBox2
//
this
.
groupBox2
.
Controls
.
Add
(
this
.
updownAxisP14
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
inoutAxisP2
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
mideleAxisP4
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
updownAxisP4
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
updownAxisP5
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
13
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
406
,
239
);
this
.
groupBox2
.
TabIndex
=
222
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
Text
=
"A上暂存区点位"
;
//
// groupBox5
//
this
.
groupBox5
.
Controls
.
Add
(
this
.
updownAxisP15
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
mideleAxisP7
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
updownAxisP6
);
this
.
groupBox5
.
Controls
.
Add
(
this
.
updownAxisP7
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
470
,
13
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
481
,
239
);
this
.
groupBox5
.
TabIndex
=
223
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
Text
=
"A下暂存区点位"
;
//
// tabPage5
//
this
.
tabPage5
.
Controls
.
Add
(
this
.
groupBox7
);
this
.
tabPage5
.
Controls
.
Add
(
this
.
groupBox8
);
this
.
tabPage5
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
25
);
this
.
tabPage5
.
Name
=
"tabPage5"
;
this
.
tabPage5
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage5
.
Size
=
new
System
.
Drawing
.
Size
(
971
,
259
);
this
.
tabPage5
.
TabIndex
=
1
;
this
.
tabPage5
.
Text
=
"B暂存区"
;
this
.
tabPage5
.
UseVisualStyleBackColor
=
true
;
//
// groupBox7
//
this
.
groupBox7
.
Controls
.
Add
(
this
.
updownAxisP16
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
inoutAxisP3
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
mideleAxisP5
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
updownAxisP10
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
updownAxisP11
);
this
.
groupBox7
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
13
);
this
.
groupBox7
.
Name
=
"groupBox7"
;
this
.
groupBox7
.
Size
=
new
System
.
Drawing
.
Size
(
390
,
227
);
this
.
groupBox7
.
TabIndex
=
224
;
this
.
groupBox7
.
TabStop
=
false
;
this
.
groupBox7
.
Text
=
"B上暂存区点位"
;
//
// groupBox8
//
this
.
groupBox8
.
Controls
.
Add
(
this
.
updownAxisP17
);
this
.
groupBox8
.
Controls
.
Add
(
this
.
updownAxisP13
);
this
.
groupBox8
.
Controls
.
Add
(
this
.
mideleAxisP8
);
this
.
groupBox8
.
Controls
.
Add
(
this
.
updownAxisP12
);
this
.
groupBox8
.
Location
=
new
System
.
Drawing
.
Point
(
497
,
13
);
this
.
groupBox8
.
Name
=
"groupBox8"
;
this
.
groupBox8
.
Size
=
new
System
.
Drawing
.
Size
(
415
,
227
);
this
.
groupBox8
.
TabIndex
=
224
;
this
.
groupBox8
.
TabStop
=
false
;
this
.
groupBox8
.
Text
=
"B下暂存区点位"
;
//
// tabPage6
//
this
.
tabPage6
.
Controls
.
Add
(
this
.
groupBox10
);
this
.
tabPage6
.
Controls
.
Add
(
this
.
groupBox9
);
this
.
tabPage6
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
25
);
this
.
tabPage6
.
Name
=
"tabPage6"
;
this
.
tabPage6
.
Size
=
new
System
.
Drawing
.
Size
(
971
,
259
);
this
.
tabPage6
.
TabIndex
=
2
;
this
.
tabPage6
.
Text
=
"NG/待机"
;
this
.
tabPage6
.
UseVisualStyleBackColor
=
true
;
//
// groupBox10
//
this
.
groupBox10
.
Controls
.
Add
(
this
.
inoutAxisP1
);
this
.
groupBox10
.
Controls
.
Add
(
this
.
mideleAxisP1
);
this
.
groupBox10
.
Controls
.
Add
(
this
.
updownAxisP1
);
this
.
groupBox10
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
15
);
this
.
groupBox10
.
Name
=
"groupBox10"
;
this
.
groupBox10
.
Size
=
new
System
.
Drawing
.
Size
(
286
,
206
);
this
.
groupBox10
.
TabIndex
=
227
;
this
.
groupBox10
.
TabStop
=
false
;
this
.
groupBox10
.
Text
=
"待机点点位"
;
//
// groupBox9
//
this
.
groupBox9
.
Controls
.
Add
(
this
.
inoutAxisP6
);
this
.
groupBox9
.
Controls
.
Add
(
this
.
updownAxisP8
);
this
.
groupBox9
.
Controls
.
Add
(
this
.
updownAxisP9
);
this
.
groupBox9
.
Controls
.
Add
(
this
.
mideleAxisP6
);
this
.
groupBox9
.
Location
=
new
System
.
Drawing
.
Point
(
316
,
15
);
this
.
groupBox9
.
Name
=
"groupBox9"
;
this
.
groupBox9
.
Size
=
new
System
.
Drawing
.
Size
(
422
,
206
);
this
.
groupBox9
.
TabIndex
=
225
;
this
.
groupBox9
.
TabStop
=
false
;
this
.
groupBox9
.
Text
=
"NG料区点位"
;
//
// groupBox11
//
this
.
groupBox11
.
Controls
.
Add
(
this
.
panel1
);
this
.
groupBox11
.
Location
=
new
System
.
Drawing
.
Point
(
842
,
333
);
this
.
groupBox11
.
Name
=
"groupBox11"
;
this
.
groupBox11
.
Size
=
new
System
.
Drawing
.
Size
(
304
,
224
);
this
.
groupBox11
.
TabIndex
=
233
;
this
.
groupBox11
.
TabStop
=
false
;
this
.
groupBox11
.
Text
=
"料串取放料点位"
;
//
// panel1
//
this
.
panel1
.
Controls
.
Add
(
this
.
inoutAxisP5
);
this
.
panel1
.
Controls
.
Add
(
this
.
inoutAxisP4
);
this
.
panel1
.
Controls
.
Add
(
this
.
mideleAxisP3
);
this
.
panel1
.
Controls
.
Add
(
this
.
mideleAxisP2
);
this
.
panel1
.
Controls
.
Add
(
this
.
updownAxisP2
);
this
.
panel1
.
Controls
.
Add
(
this
.
updownAxisP3
);
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
21
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
298
,
200
);
this
.
panel1
.
TabIndex
=
220
;
//
// chbPointEditEnable
//
this
.
chbPointEditEnable
.
AutoSize
=
true
;
this
.
chbPointEditEnable
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
,
System
.
Drawing
.
FontStyle
.
Bold
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbPointEditEnable
.
Location
=
new
System
.
Drawing
.
Point
(
1002
,
66
);
this
.
chbPointEditEnable
.
Name
=
"chbPointEditEnable"
;
this
.
chbPointEditEnable
.
Size
=
new
System
.
Drawing
.
Size
(
154
,
31
);
this
.
chbPointEditEnable
.
TabIndex
=
234
;
this
.
chbPointEditEnable
.
Text
=
"启用点位编辑"
;
this
.
chbPointEditEnable
.
UseVisualStyleBackColor
=
true
;
this
.
chbPointEditEnable
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
chbPointEditEnable_CheckedChanged
);
//
// btnSave
//
this
.
btnSave
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnSave
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnSave
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnSave
.
Location
=
new
System
.
Drawing
.
Point
(
1002
,
135
);
this
.
btnSave
.
Name
=
"btnSave"
;
this
.
btnSave
.
Size
=
new
System
.
Drawing
.
Size
(
144
,
69
);
this
.
btnSave
.
TabIndex
=
235
;
this
.
btnSave
.
Text
=
"保存点位信息"
;
this
.
btnSave
.
UseVisualStyleBackColor
=
false
;
this
.
btnSave
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSave_Click
);
//
// inoutAxisP5
//
this
.
inoutAxisP5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
inoutAxisP5
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
164
);
this
.
inoutAxisP5
.
Name
=
"inoutAxisP5"
;
this
.
inoutAxisP5
.
PointBackColor
=
System
.
Drawing
.
Color
.
RoyalBlue
;
this
.
inoutAxisP5
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
inoutAxisP5
.
PointText
=
"进出轴-B料口取料点P5:"
;
this
.
inoutAxisP5
.
PointValue
=
0
;
this
.
inoutAxisP5
.
Size
=
new
System
.
Drawing
.
Size
(
292
,
33
);
this
.
inoutAxisP5
.
TabIndex
=
4
;
//
// inoutAxisP4
//
this
.
inoutAxisP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
inoutAxisP4
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
129
);
this
.
inoutAxisP4
.
Name
=
"inoutAxisP4"
;
this
.
inoutAxisP4
.
PointBackColor
=
System
.
Drawing
.
Color
.
RoyalBlue
;
this
.
inoutAxisP4
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
inoutAxisP4
.
PointText
=
"进出轴-A料口取料点P4:"
;
this
.
inoutAxisP4
.
PointValue
=
0
;
this
.
inoutAxisP4
.
Size
=
new
System
.
Drawing
.
Size
(
292
,
33
);
this
.
inoutAxisP4
.
TabIndex
=
3
;
//
// mideleAxisP3
//
this
.
mideleAxisP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP3
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
33
);
this
.
mideleAxisP3
.
Name
=
"mideleAxisP3"
;
this
.
mideleAxisP3
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP3
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP3
.
PointText
=
"旋转轴-B料口取料点P3:"
;
this
.
mideleAxisP3
.
PointValue
=
0
;
this
.
mideleAxisP3
.
Size
=
new
System
.
Drawing
.
Size
(
292
,
33
);
this
.
mideleAxisP3
.
TabIndex
=
2
;
//
// mideleAxisP2
//
this
.
mideleAxisP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP2
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
mideleAxisP2
.
Name
=
"mideleAxisP2"
;
this
.
mideleAxisP2
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP2
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP2
.
PointText
=
"旋转轴-A料口取料点P2:"
;
this
.
mideleAxisP2
.
PointValue
=
0
;
this
.
mideleAxisP2
.
Size
=
new
System
.
Drawing
.
Size
(
292
,
33
);
this
.
mideleAxisP2
.
TabIndex
=
1
;
//
// updownAxisP2
//
this
.
updownAxisP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP2
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
65
);
this
.
updownAxisP2
.
Name
=
"updownAxisP2"
;
this
.
updownAxisP2
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP2
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP2
.
PointText
=
"升降轴-A料口取料点P2:"
;
this
.
updownAxisP2
.
PointValue
=
0
;
this
.
updownAxisP2
.
Size
=
new
System
.
Drawing
.
Size
(
292
,
33
);
this
.
updownAxisP2
.
TabIndex
=
1
;
//
// updownAxisP3
//
this
.
updownAxisP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP3
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
97
);
this
.
updownAxisP3
.
Name
=
"updownAxisP3"
;
this
.
updownAxisP3
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP3
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP3
.
PointText
=
"升降轴-B料口取料点P3:"
;
this
.
updownAxisP3
.
PointValue
=
0
;
this
.
updownAxisP3
.
Size
=
new
System
.
Drawing
.
Size
(
292
,
33
);
this
.
updownAxisP3
.
TabIndex
=
2
;
//
// axisMoveControl1
//
this
.
axisMoveControl1
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
318
);
this
.
axisMoveControl1
.
Name
=
"axisMoveControl1"
;
this
.
axisMoveControl1
.
Size
=
new
System
.
Drawing
.
Size
(
811
,
264
);
this
.
axisMoveControl1
.
TabIndex
=
232
;
//
// updownAxisP14
//
this
.
updownAxisP14
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP14
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
121
);
this
.
updownAxisP14
.
Name
=
"updownAxisP14"
;
this
.
updownAxisP14
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP14
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP14
.
PointText
=
"升降轴-A上暂存区13寸放料低点P14:"
;
this
.
updownAxisP14
.
PointValue
=
0
;
this
.
updownAxisP14
.
Size
=
new
System
.
Drawing
.
Size
(
306
,
36
);
this
.
updownAxisP14
.
TabIndex
=
6
;
//
// inoutAxisP2
//
this
.
inoutAxisP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
inoutAxisP2
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
163
);
this
.
inoutAxisP2
.
Name
=
"inoutAxisP2"
;
this
.
inoutAxisP2
.
PointBackColor
=
System
.
Drawing
.
Color
.
RoyalBlue
;
this
.
inoutAxisP2
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
inoutAxisP2
.
PointText
=
"进出轴-A暂存区点P2:"
;
this
.
inoutAxisP2
.
PointValue
=
0
;
this
.
inoutAxisP2
.
Size
=
new
System
.
Drawing
.
Size
(
306
,
36
);
this
.
inoutAxisP2
.
TabIndex
=
5
;
//
// mideleAxisP4
//
this
.
mideleAxisP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP4
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
19
);
this
.
mideleAxisP4
.
Name
=
"mideleAxisP4"
;
this
.
mideleAxisP4
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP4
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP4
.
PointText
=
"旋转轴-A上暂存区放料点P4:"
;
this
.
mideleAxisP4
.
PointValue
=
0
;
this
.
mideleAxisP4
.
Size
=
new
System
.
Drawing
.
Size
(
306
,
32
);
this
.
mideleAxisP4
.
TabIndex
=
3
;
//
// updownAxisP4
//
this
.
updownAxisP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP4
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
49
);
this
.
updownAxisP4
.
Name
=
"updownAxisP4"
;
this
.
updownAxisP4
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP4
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP4
.
PointText
=
"升降轴-A上暂存区放料高点P4:"
;
this
.
updownAxisP4
.
PointValue
=
0
;
this
.
updownAxisP4
.
Size
=
new
System
.
Drawing
.
Size
(
306
,
32
);
this
.
updownAxisP4
.
TabIndex
=
3
;
//
// updownAxisP5
//
this
.
updownAxisP5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP5
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
79
);
this
.
updownAxisP5
.
Name
=
"updownAxisP5"
;
this
.
updownAxisP5
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP5
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP5
.
PointText
=
"升降轴-A上暂存区7寸放料低点P5:"
;
this
.
updownAxisP5
.
PointValue
=
0
;
this
.
updownAxisP5
.
Size
=
new
System
.
Drawing
.
Size
(
306
,
36
);
this
.
updownAxisP5
.
TabIndex
=
4
;
//
// updownAxisP15
//
this
.
updownAxisP15
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP15
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
129
);
this
.
updownAxisP15
.
Name
=
"updownAxisP15"
;
this
.
updownAxisP15
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP15
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP15
.
PointText
=
"升降轴-A下暂存区13寸取料低点P15:"
;
this
.
updownAxisP15
.
PointValue
=
0
;
this
.
updownAxisP15
.
Size
=
new
System
.
Drawing
.
Size
(
327
,
35
);
this
.
updownAxisP15
.
TabIndex
=
7
;
//
// mideleAxisP7
//
this
.
mideleAxisP7
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP7
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
24
);
this
.
mideleAxisP7
.
Name
=
"mideleAxisP7"
;
this
.
mideleAxisP7
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP7
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP7
.
PointText
=
"旋转轴-A下暂存区取料点P7:"
;
this
.
mideleAxisP7
.
PointValue
=
0
;
this
.
mideleAxisP7
.
Size
=
new
System
.
Drawing
.
Size
(
327
,
32
);
this
.
mideleAxisP7
.
TabIndex
=
6
;
//
// updownAxisP6
//
this
.
updownAxisP6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP6
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
56
);
this
.
updownAxisP6
.
Name
=
"updownAxisP6"
;
this
.
updownAxisP6
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP6
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP6
.
PointText
=
"升降轴-A下暂存区取料高点P6:"
;
this
.
updownAxisP6
.
PointValue
=
0
;
this
.
updownAxisP6
.
Size
=
new
System
.
Drawing
.
Size
(
327
,
33
);
this
.
updownAxisP6
.
TabIndex
=
5
;
//
// updownAxisP7
//
this
.
updownAxisP7
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP7
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
88
);
this
.
updownAxisP7
.
Name
=
"updownAxisP7"
;
this
.
updownAxisP7
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP7
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP7
.
PointText
=
"升降轴-A下暂存区7寸取料低点P7:"
;
this
.
updownAxisP7
.
PointValue
=
0
;
this
.
updownAxisP7
.
Size
=
new
System
.
Drawing
.
Size
(
327
,
35
);
this
.
updownAxisP7
.
TabIndex
=
6
;
//
// updownAxisP16
//
this
.
updownAxisP16
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP16
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
140
);
this
.
updownAxisP16
.
Name
=
"updownAxisP16"
;
this
.
updownAxisP16
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP16
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP16
.
PointText
=
"升降轴-B上暂存区13寸放料低点:"
;
this
.
updownAxisP16
.
PointValue
=
0
;
this
.
updownAxisP16
.
Size
=
new
System
.
Drawing
.
Size
(
356
,
34
);
this
.
updownAxisP16
.
TabIndex
=
12
;
//
// inoutAxisP3
//
this
.
inoutAxisP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
inoutAxisP3
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
182
);
this
.
inoutAxisP3
.
Name
=
"inoutAxisP3"
;
this
.
inoutAxisP3
.
PointBackColor
=
System
.
Drawing
.
Color
.
RoyalBlue
;
this
.
inoutAxisP3
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
inoutAxisP3
.
PointText
=
"进出轴-B暂存区点P3:"
;
this
.
inoutAxisP3
.
PointValue
=
0
;
this
.
inoutAxisP3
.
Size
=
new
System
.
Drawing
.
Size
(
356
,
36
);
this
.
inoutAxisP3
.
TabIndex
=
11
;
//
// mideleAxisP5
//
this
.
mideleAxisP5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP5
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
18
);
this
.
mideleAxisP5
.
Name
=
"mideleAxisP5"
;
this
.
mideleAxisP5
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP5
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP5
.
PointText
=
"旋转轴-B上暂存区放料点P5:"
;
this
.
mideleAxisP5
.
PointValue
=
0
;
this
.
mideleAxisP5
.
Size
=
new
System
.
Drawing
.
Size
(
356
,
32
);
this
.
mideleAxisP5
.
TabIndex
=
4
;
//
// updownAxisP10
//
this
.
updownAxisP10
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP10
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
58
);
this
.
updownAxisP10
.
Name
=
"updownAxisP10"
;
this
.
updownAxisP10
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP10
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP10
.
PointText
=
"升降轴-B上暂存区放料高点P10:"
;
this
.
updownAxisP10
.
PointValue
=
0
;
this
.
updownAxisP10
.
Size
=
new
System
.
Drawing
.
Size
(
356
,
32
);
this
.
updownAxisP10
.
TabIndex
=
9
;
//
// updownAxisP11
//
this
.
updownAxisP11
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP11
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
98
);
this
.
updownAxisP11
.
Name
=
"updownAxisP11"
;
this
.
updownAxisP11
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP11
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP11
.
PointText
=
"升降轴-B上暂存区7寸放料低点P11:"
;
this
.
updownAxisP11
.
PointValue
=
0
;
this
.
updownAxisP11
.
Size
=
new
System
.
Drawing
.
Size
(
356
,
34
);
this
.
updownAxisP11
.
TabIndex
=
10
;
//
// updownAxisP17
//
this
.
updownAxisP17
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP17
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
181
);
this
.
updownAxisP17
.
Name
=
"updownAxisP17"
;
this
.
updownAxisP17
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP17
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP17
.
PointText
=
"升降轴-B下暂存区13寸取料低点P17:"
;
this
.
updownAxisP17
.
PointValue
=
0
;
this
.
updownAxisP17
.
Size
=
new
System
.
Drawing
.
Size
(
370
,
32
);
this
.
updownAxisP17
.
TabIndex
=
13
;
//
// updownAxisP13
//
this
.
updownAxisP13
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP13
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
128
);
this
.
updownAxisP13
.
Name
=
"updownAxisP13"
;
this
.
updownAxisP13
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP13
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP13
.
PointText
=
"升降轴-B下暂存区7寸取料低点P13:"
;
this
.
updownAxisP13
.
PointValue
=
0
;
this
.
updownAxisP13
.
Size
=
new
System
.
Drawing
.
Size
(
370
,
32
);
this
.
updownAxisP13
.
TabIndex
=
12
;
//
// mideleAxisP8
//
this
.
mideleAxisP8
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP8
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
22
);
this
.
mideleAxisP8
.
Name
=
"mideleAxisP8"
;
this
.
mideleAxisP8
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP8
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP8
.
PointText
=
"旋转轴-B下暂存区取料点P8:"
;
this
.
mideleAxisP8
.
PointValue
=
0
;
this
.
mideleAxisP8
.
Size
=
new
System
.
Drawing
.
Size
(
370
,
32
);
this
.
mideleAxisP8
.
TabIndex
=
7
;
//
// updownAxisP12
//
this
.
updownAxisP12
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP12
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
75
);
this
.
updownAxisP12
.
Name
=
"updownAxisP12"
;
this
.
updownAxisP12
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP12
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP12
.
PointText
=
"升降轴-B下暂存区取料高点P12:"
;
this
.
updownAxisP12
.
PointValue
=
0
;
this
.
updownAxisP12
.
Size
=
new
System
.
Drawing
.
Size
(
370
,
32
);
this
.
updownAxisP12
.
TabIndex
=
11
;
//
// inoutAxisP1
//
this
.
inoutAxisP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
inoutAxisP1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
121
);
this
.
inoutAxisP1
.
Name
=
"inoutAxisP1"
;
this
.
inoutAxisP1
.
PointBackColor
=
System
.
Drawing
.
Color
.
RoyalBlue
;
this
.
inoutAxisP1
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
inoutAxisP1
.
PointText
=
"进出轴-待机点P1:"
;
this
.
inoutAxisP1
.
PointValue
=
0
;
this
.
inoutAxisP1
.
Size
=
new
System
.
Drawing
.
Size
(
247
,
32
);
this
.
inoutAxisP1
.
TabIndex
=
1
;
//
// mideleAxisP1
//
this
.
mideleAxisP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
18
);
this
.
mideleAxisP1
.
Name
=
"mideleAxisP1"
;
this
.
mideleAxisP1
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP1
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP1
.
PointText
=
"旋转轴待机点P1:"
;
this
.
mideleAxisP1
.
PointValue
=
0
;
this
.
mideleAxisP1
.
Size
=
new
System
.
Drawing
.
Size
(
247
,
33
);
this
.
mideleAxisP1
.
TabIndex
=
0
;
//
// updownAxisP1
//
this
.
updownAxisP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
70
);
this
.
updownAxisP1
.
Name
=
"updownAxisP1"
;
this
.
updownAxisP1
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP1
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP1
.
PointText
=
"升降轴-待机点P1:"
;
this
.
updownAxisP1
.
PointValue
=
0
;
this
.
updownAxisP1
.
Size
=
new
System
.
Drawing
.
Size
(
247
,
32
);
this
.
updownAxisP1
.
TabIndex
=
0
;
//
// inoutAxisP6
//
this
.
inoutAxisP6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
inoutAxisP6
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
155
);
this
.
inoutAxisP6
.
Name
=
"inoutAxisP6"
;
this
.
inoutAxisP6
.
PointBackColor
=
System
.
Drawing
.
Color
.
RoyalBlue
;
this
.
inoutAxisP6
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
inoutAxisP6
.
PointText
=
"进出轴-NG料区点P9:"
;
this
.
inoutAxisP6
.
PointValue
=
0
;
this
.
inoutAxisP6
.
Size
=
new
System
.
Drawing
.
Size
(
303
,
33
);
this
.
inoutAxisP6
.
TabIndex
=
9
;
//
// updownAxisP8
//
this
.
updownAxisP8
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP8
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
62
);
this
.
updownAxisP8
.
Name
=
"updownAxisP8"
;
this
.
updownAxisP8
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP8
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP8
.
PointText
=
"升降轴-NG料区放料高点P8:"
;
this
.
updownAxisP8
.
PointValue
=
0
;
this
.
updownAxisP8
.
Size
=
new
System
.
Drawing
.
Size
(
303
,
32
);
this
.
updownAxisP8
.
TabIndex
=
7
;
//
// updownAxisP9
//
this
.
updownAxisP9
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
updownAxisP9
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
108
);
this
.
updownAxisP9
.
Name
=
"updownAxisP9"
;
this
.
updownAxisP9
.
PointBackColor
=
System
.
Drawing
.
Color
.
LightGreen
;
this
.
updownAxisP9
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
updownAxisP9
.
PointText
=
"升降轴-NG料区放料低点P9:"
;
this
.
updownAxisP9
.
PointValue
=
0
;
this
.
updownAxisP9
.
Size
=
new
System
.
Drawing
.
Size
(
303
,
33
);
this
.
updownAxisP9
.
TabIndex
=
8
;
//
// mideleAxisP6
//
this
.
mideleAxisP6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
mideleAxisP6
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
16
);
this
.
mideleAxisP6
.
Name
=
"mideleAxisP6"
;
this
.
mideleAxisP6
.
PointBackColor
=
System
.
Drawing
.
Color
.
SkyBlue
;
this
.
mideleAxisP6
.
PointForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
mideleAxisP6
.
PointText
=
"旋转轴-NG料区放料点P6:"
;
this
.
mideleAxisP6
.
PointValue
=
0
;
this
.
mideleAxisP6
.
Size
=
new
System
.
Drawing
.
Size
(
303
,
32
);
this
.
mideleAxisP6
.
TabIndex
=
5
;
//
// Input_AxisControl
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
8F
,
15F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
Controls
.
Add
(
this
.
btnSave
);
this
.
Controls
.
Add
(
this
.
chbPointEditEnable
);
this
.
Controls
.
Add
(
this
.
groupBox11
);
this
.
Controls
.
Add
(
this
.
axisMoveControl1
);
this
.
Controls
.
Add
(
this
.
tabControl2
);
this
.
Name
=
"Input_AxisControl"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
1181
,
596
);
this
.
VisibleChanged
+=
new
System
.
EventHandler
(
this
.
Input_AxisControl_VisibleChanged
);
this
.
tabControl2
.
ResumeLayout
(
false
);
this
.
tabPage4
.
ResumeLayout
(
false
);
this
.
groupBox2
.
ResumeLayout
(
false
);
this
.
groupBox5
.
ResumeLayout
(
false
);
this
.
tabPage5
.
ResumeLayout
(
false
);
this
.
groupBox7
.
ResumeLayout
(
false
);
this
.
groupBox8
.
ResumeLayout
(
false
);
this
.
tabPage6
.
ResumeLayout
(
false
);
this
.
groupBox10
.
ResumeLayout
(
false
);
this
.
groupBox9
.
ResumeLayout
(
false
);
this
.
groupBox11
.
ResumeLayout
(
false
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
}
#
endregion
private
System
.
Windows
.
Forms
.
TabControl
tabControl2
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage4
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox2
;
private
useControl
.
AxisPointControl
updownAxisP14
;
private
useControl
.
AxisPointControl
inoutAxisP2
;
private
useControl
.
AxisPointControl
mideleAxisP4
;
private
useControl
.
AxisPointControl
updownAxisP4
;
private
useControl
.
AxisPointControl
updownAxisP5
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox5
;
private
useControl
.
AxisPointControl
updownAxisP15
;
private
useControl
.
AxisPointControl
mideleAxisP7
;
private
useControl
.
AxisPointControl
updownAxisP6
;
private
useControl
.
AxisPointControl
updownAxisP7
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage5
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox7
;
private
useControl
.
AxisPointControl
updownAxisP16
;
private
useControl
.
AxisPointControl
inoutAxisP3
;
private
useControl
.
AxisPointControl
mideleAxisP5
;
private
useControl
.
AxisPointControl
updownAxisP10
;
private
useControl
.
AxisPointControl
updownAxisP11
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox8
;
private
useControl
.
AxisPointControl
updownAxisP17
;
private
useControl
.
AxisPointControl
updownAxisP13
;
private
useControl
.
AxisPointControl
mideleAxisP8
;
private
useControl
.
AxisPointControl
updownAxisP12
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage6
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox10
;
private
useControl
.
AxisPointControl
inoutAxisP1
;
private
useControl
.
AxisPointControl
mideleAxisP1
;
private
useControl
.
AxisPointControl
updownAxisP1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox9
;
private
useControl
.
AxisPointControl
inoutAxisP6
;
private
useControl
.
AxisPointControl
updownAxisP8
;
private
useControl
.
AxisPointControl
updownAxisP9
;
private
useControl
.
AxisPointControl
mideleAxisP6
;
private
useControl
.
AxisMoveRectControl
axisMoveControl1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox11
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
useControl
.
AxisPointControl
inoutAxisP5
;
private
useControl
.
AxisPointControl
inoutAxisP4
;
private
useControl
.
AxisPointControl
mideleAxisP3
;
private
useControl
.
AxisPointControl
mideleAxisP2
;
private
useControl
.
AxisPointControl
updownAxisP2
;
private
useControl
.
AxisPointControl
updownAxisP3
;
private
System
.
Windows
.
Forms
.
CheckBox
chbPointEditEnable
;
protected
System
.
Windows
.
Forms
.
Button
btnSave
;
}
}
source/XLRStoreClient/inputForm/uc/Input_AxisControl.cs
0 → 100644
查看文件 @
8955813
using
OnlineStore.DeviceLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Drawing
;
using
System.Linq
;
using
System.Runtime.CompilerServices
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
namespace
OnlineStore.XLRStore.inputForm.uc
{
public
partial
class
Input_AxisControl
:
UserControl
{
public
Input_AxisControl
(
InputEquip
inputEquip
)
{
Control
.
CheckForIllegalCrossThreadCalls
=
false
;
InitializeComponent
();
this
.
inputEquip
=
inputEquip
;
LoadPoint
();
LoadAxis
();
PointEditEnable
(
false
);
IsLoad
=
true
;
}
private
InputEquip
inputEquip
;
private
bool
IsLoad
=
false
;
private
void
LoadPoint
()
{
InputEquip_Config
config
=
inputEquip
.
Config
;
mideleAxisP1
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P1_Speed
,
config
.
Middle_P1
);
mideleAxisP2
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P2_Speed
,
config
.
Middle_P2_ATake
);
mideleAxisP3
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P3_Speed
,
config
.
Middle_P3_BTake
);
mideleAxisP4
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P4_Speed
,
config
.
Middle_P4_AUpper
);
mideleAxisP5
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P5_Speed
,
config
.
Middle_P5_BUpper
);
mideleAxisP6
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P6_Speed
,
config
.
Middle_P6_NG
);
mideleAxisP7
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P7_Speed
,
config
.
Middle_P7_AUnder
);
mideleAxisP8
.
SetMoveData
(
inputEquip
.
MiddleAxis
,
config
.
Middle_P8_Speed
,
config
.
Middle_P8_BUnder
);
updownAxisP1
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P1_Speed
,
config
.
Updown_P1
);
updownAxisP2
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P2_Speed
,
config
.
Updown_P2_ATake
);
updownAxisP3
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P3_Speed
,
config
.
Updown_P3_BTake
);
updownAxisP4
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P4_Speed
,
config
.
Updown_P4_AUpperH
);
updownAxisP5
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P5_Speed
,
config
.
Updown_P5_AUpperL7
);
updownAxisP6
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P6_Speed
,
config
.
Updown_P6_AUnderH
);
updownAxisP7
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P7_Speed
,
config
.
Updown_P7_AUnderL7
);
updownAxisP8
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P8_Speed
,
config
.
Updown_P8_NGH
);
updownAxisP9
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P9_Speed
,
config
.
Updown_P9_NGL
);
updownAxisP10
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P10_Speed
,
config
.
Updown_P10_BUpperH
);
updownAxisP11
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P11_Speed
,
config
.
Updown_P11_BUpperL7
);
updownAxisP12
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P12_Speed
,
config
.
Updown_P12_BUnderH
);
updownAxisP13
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P13_Speed
,
config
.
Updown_P13_BUnderL7
);
updownAxisP14
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P14_Speed
,
config
.
Updown_P14_AUpperL13
);
updownAxisP15
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P15_Speed
,
config
.
Updown_P15_AUnderL13
);
updownAxisP16
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P16_Speed
,
config
.
Updown_P16_BUpperL13
);
updownAxisP17
.
SetMoveData
(
inputEquip
.
UpdownAxis
,
config
.
Updown_P17_Speed
,
config
.
Updown_P17_BUnderL13
);
inoutAxisP1
.
SetMoveData
(
inputEquip
.
InOutAxis
,
config
.
Inout_P1_Speed
,
config
.
Inout_P1
);
inoutAxisP2
.
SetMoveData
(
inputEquip
.
InOutAxis
,
config
.
Inout_P2_Speed
,
config
.
Inout_P2
);
inoutAxisP3
.
SetMoveData
(
inputEquip
.
InOutAxis
,
config
.
Inout_P3_Speed
,
config
.
Inout_P3
);
inoutAxisP4
.
SetMoveData
(
inputEquip
.
InOutAxis
,
config
.
Inout_P4_Speed
,
config
.
Inout_P4
);
inoutAxisP5
.
SetMoveData
(
inputEquip
.
InOutAxis
,
config
.
Inout_P5_Speed
,
config
.
Inout_P5
);
inoutAxisP6
.
SetMoveData
(
inputEquip
.
InOutAxis
,
config
.
Inout_P6_Speed
,
config
.
Inout_P6
);
}
private
void
LoadAxis
()
{
axisMoveControl1
.
LoadData
(
inputEquip
,
new
AxisBean
[]
{
inputEquip
.
MiddleAxis
,
inputEquip
.
UpdownAxis
,
inputEquip
.
InOutAxis
});
}
private
void
chbPointEditEnable_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
if
(!
IsLoad
)
{
return
;
}
PointEditEnable
(
chbPointEditEnable
.
Checked
);
}
private
void
PointEditEnable
(
bool
enable
)
{
groupBox2
.
Enabled
=
enable
;
groupBox5
.
Enabled
=
enable
;
groupBox7
.
Enabled
=
enable
;
groupBox8
.
Enabled
=
enable
;
groupBox9
.
Enabled
=
enable
;
groupBox10
.
Enabled
=
enable
;
groupBox11
.
Enabled
=
enable
;
}
private
void
btnSave_Click
(
object
sender
,
EventArgs
e
)
{
inputEquip
.
Config
.
Updown_P1
=
updownAxisP1
.
PointValue
;
inputEquip
.
Config
.
Updown_P2_ATake
=
updownAxisP2
.
PointValue
;
inputEquip
.
Config
.
Updown_P3_BTake
=
updownAxisP3
.
PointValue
;
inputEquip
.
Config
.
Updown_P4_AUpperH
=
updownAxisP4
.
PointValue
;
inputEquip
.
Config
.
Updown_P5_AUpperL7
=
updownAxisP5
.
PointValue
;
inputEquip
.
Config
.
Updown_P6_AUnderH
=
updownAxisP6
.
PointValue
;
inputEquip
.
Config
.
Updown_P7_AUnderL7
=
updownAxisP7
.
PointValue
;
inputEquip
.
Config
.
Updown_P8_NGH
=
updownAxisP8
.
PointValue
;
inputEquip
.
Config
.
Updown_P9_NGL
=
updownAxisP9
.
PointValue
;
inputEquip
.
Config
.
Updown_P10_BUpperH
=
updownAxisP10
.
PointValue
;
inputEquip
.
Config
.
Updown_P11_BUpperL7
=
updownAxisP11
.
PointValue
;
inputEquip
.
Config
.
Updown_P12_BUnderH
=
updownAxisP12
.
PointValue
;
inputEquip
.
Config
.
Updown_P13_BUnderL7
=
updownAxisP13
.
PointValue
;
inputEquip
.
Config
.
Updown_P14_AUpperL13
=
updownAxisP14
.
PointValue
;
inputEquip
.
Config
.
Updown_P15_AUnderL13
=
updownAxisP15
.
PointValue
;
inputEquip
.
Config
.
Updown_P16_BUpperL13
=
updownAxisP16
.
PointValue
;
inputEquip
.
Config
.
Updown_P17_BUnderL13
=
updownAxisP17
.
PointValue
;
inputEquip
.
Config
.
Middle_P1
=
mideleAxisP1
.
PointValue
;
inputEquip
.
Config
.
Middle_P2_ATake
=
mideleAxisP2
.
PointValue
;
inputEquip
.
Config
.
Middle_P3_BTake
=
mideleAxisP3
.
PointValue
;
inputEquip
.
Config
.
Middle_P4_AUpper
=
mideleAxisP4
.
PointValue
;
inputEquip
.
Config
.
Middle_P5_BUpper
=
mideleAxisP5
.
PointValue
;
inputEquip
.
Config
.
Middle_P6_NG
=
mideleAxisP6
.
PointValue
;
inputEquip
.
Config
.
Middle_P7_AUnder
=
mideleAxisP7
.
PointValue
;
inputEquip
.
Config
.
Middle_P8_BUnder
=
mideleAxisP8
.
PointValue
;
inputEquip
.
Config
.
Inout_P1
=
inoutAxisP1
.
PointValue
;
inputEquip
.
Config
.
Inout_P2
=
inoutAxisP2
.
PointValue
;
inputEquip
.
Config
.
Inout_P3
=
inoutAxisP3
.
PointValue
;
inputEquip
.
Config
.
Inout_P4
=
inoutAxisP4
.
PointValue
;
inputEquip
.
Config
.
Inout_P5
=
inoutAxisP5
.
PointValue
;
inputEquip
.
Config
.
Inout_P6
=
inoutAxisP6
.
PointValue
;
StoreManager
.
SaveInputEquipConfig
(
inputEquip
.
Config
);
MessageBox
.
Show
(
"保存成功"
);
}
private
void
Input_AxisControl_VisibleChanged
(
object
sender
,
EventArgs
e
)
{
if
(!
IsLoad
)
{
return
;
}
chbPointEditEnable
.
Checked
=
false
;
}
}
}
source/XLRStoreClient/inputForm/uc/Input_AxisControl.resx
0 → 100644
查看文件 @
8955813
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
source/XLRStoreClient/inputForm/uc/Input_IO.Designer.cs
0 → 100644
查看文件 @
8955813
namespace
OnlineStore.XLRStore.inputForm.uc
{
partial
class
Input_IO
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private
System
.
ComponentModel
.
IContainer
components
=
null
;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
disposing
&&
(
components
!=
null
))
{
components
.
Dispose
();
}
base
.
Dispose
(
disposing
);
}
#
region
组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private
void
InitializeComponent
()
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox4
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
txtDOIndex
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtDoName
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lblAddr
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnOpenDo
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtSlaveId
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
cmbWriteIO
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnWriteSingleDO
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtWriteTime
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
groupDO
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnClampRelax
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnClampWork
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineStop_B
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineBack_B
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineStart_B
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineStop_A
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineBack_A
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
Shelf_StopDown_B
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
Shelf_StopDown_A
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
Shelf_StopUp_A
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
Shelf_StopUp_B
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineStart_A
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCloseAll
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
clampJawControl1
=
new
OnlineStore
.
XLRStore
.
useControl
.
ClampJawControl
();
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
groupBox3
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupDO
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// groupBox3
//
this
.
groupBox3
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox3
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
231
,
558
);
this
.
groupBox3
.
TabIndex
=
104
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"DI列表"
;
//
// tableLayoutPanel1
//
this
.
tableLayoutPanel1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
tableLayoutPanel1
.
AutoScroll
=
true
;
this
.
tableLayoutPanel1
.
ColumnCount
=
1
;
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
24
);
this
.
tableLayoutPanel1
.
Name
=
"tableLayoutPanel1"
;
this
.
tableLayoutPanel1
.
RowCount
=
2
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
528
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// groupBox4
//
this
.
groupBox4
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox4
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
240
,
9
);
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
231
,
546
);
this
.
groupBox4
.
TabIndex
=
105
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"DO列表"
;
//
// tableLayoutPanel2
//
this
.
tableLayoutPanel2
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
tableLayoutPanel2
.
AutoScroll
=
true
;
this
.
tableLayoutPanel2
.
ColumnCount
=
1
;
this
.
tableLayoutPanel2
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel2
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
14
);
this
.
tableLayoutPanel2
.
Name
=
"tableLayoutPanel2"
;
this
.
tableLayoutPanel2
.
RowCount
=
2
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
17F
));
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
526
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
// groupBox1
//
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtDOIndex
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtDoName
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
lblAddr
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnOpenDo
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtSlaveId
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
cmbWriteIO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnWriteSingleDO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtWriteTime
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label5
);
this
.
groupBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
477
,
23
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
466
,
107
);
this
.
groupBox1
.
TabIndex
=
106
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
//
// txtDOIndex
//
this
.
txtDOIndex
.
Enabled
=
false
;
this
.
txtDOIndex
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtDOIndex
.
Location
=
new
System
.
Drawing
.
Point
(
386
,
47
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
27
);
this
.
txtDOIndex
.
TabIndex
=
260
;
this
.
txtDOIndex
.
Text
=
"0"
;
this
.
txtDOIndex
.
Visible
=
false
;
//
// txtDoName
//
this
.
txtDoName
.
Enabled
=
false
;
this
.
txtDoName
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtDoName
.
Location
=
new
System
.
Drawing
.
Point
(
386
,
64
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
53
,
27
);
this
.
txtDoName
.
TabIndex
=
259
;
this
.
txtDoName
.
Text
=
"0"
;
this
.
txtDoName
.
Visible
=
false
;
//
// lblAddr
//
this
.
lblAddr
.
AutoSize
=
true
;
this
.
lblAddr
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblAddr
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblAddr
.
Location
=
new
System
.
Drawing
.
Point
(
364
,
27
);
this
.
lblAddr
.
Name
=
"lblAddr"
;
this
.
lblAddr
.
Size
=
new
System
.
Drawing
.
Size
(
56
,
20
);
this
.
lblAddr
.
TabIndex
=
258
;
this
.
lblAddr
.
Text
=
"设备IP:"
;
this
.
lblAddr
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// btnOpenDo
//
this
.
btnOpenDo
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnOpenDo
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenDo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDo
.
Location
=
new
System
.
Drawing
.
Point
(
147
,
55
);
this
.
btnOpenDo
.
Name
=
"btnOpenDo"
;
this
.
btnOpenDo
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnOpenDo
.
TabIndex
=
256
;
this
.
btnOpenDo
.
Text
=
"打开"
;
this
.
btnOpenDo
.
UseVisualStyleBackColor
=
false
;
this
.
btnOpenDo
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenDo_Click
);
//
// txtSlaveId
//
this
.
txtSlaveId
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtSlaveId
.
Location
=
new
System
.
Drawing
.
Point
(
427
,
24
);
this
.
txtSlaveId
.
MaxLength
=
10
;
this
.
txtSlaveId
.
Name
=
"txtSlaveId"
;
this
.
txtSlaveId
.
Size
=
new
System
.
Drawing
.
Size
(
12
,
27
);
this
.
txtSlaveId
.
TabIndex
=
255
;
this
.
txtSlaveId
.
Text
=
"0"
;
this
.
txtSlaveId
.
Visible
=
false
;
//
// cmbWriteIO
//
this
.
cmbWriteIO
.
DisplayMember
=
"ProName"
;
this
.
cmbWriteIO
.
DrawMode
=
System
.
Windows
.
Forms
.
DrawMode
.
OwnerDrawVariable
;
this
.
cmbWriteIO
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbWriteIO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbWriteIO
.
FormattingEnabled
=
true
;
this
.
cmbWriteIO
.
ItemHeight
=
22
;
this
.
cmbWriteIO
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
21
);
this
.
cmbWriteIO
.
Name
=
"cmbWriteIO"
;
this
.
cmbWriteIO
.
Size
=
new
System
.
Drawing
.
Size
(
341
,
28
);
this
.
cmbWriteIO
.
TabIndex
=
234
;
this
.
cmbWriteIO
.
ValueMember
=
"ProName"
;
this
.
cmbWriteIO
.
DrawItem
+=
new
System
.
Windows
.
Forms
.
DrawItemEventHandler
(
this
.
cmbWriteIO_DrawItem
);
this
.
cmbWriteIO
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbWriteIO_SelectedIndexChanged
);
//
// btnWriteSingleDO
//
this
.
btnWriteSingleDO
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnWriteSingleDO
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnWriteSingleDO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnWriteSingleDO
.
Location
=
new
System
.
Drawing
.
Point
(
262
,
55
);
this
.
btnWriteSingleDO
.
Name
=
"btnWriteSingleDO"
;
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
34
);
this
.
btnWriteSingleDO
.
TabIndex
=
232
;
this
.
btnWriteSingleDO
.
Text
=
"关闭"
;
this
.
btnWriteSingleDO
.
UseVisualStyleBackColor
=
false
;
this
.
btnWriteSingleDO
.
Click
+=
new
System
.
EventHandler
(
this
.
btnWriteSingleDO_Click
);
//
// txtWriteTime
//
this
.
txtWriteTime
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtWriteTime
.
Location
=
new
System
.
Drawing
.
Point
(
82
,
61
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
27
);
this
.
txtWriteTime
.
TabIndex
=
238
;
this
.
txtWriteTime
.
Text
=
"0"
;
//
// label5
//
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label5
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
64
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
20
);
this
.
label5
.
TabIndex
=
237
;
this
.
label5
.
Text
=
"定时(ms):"
;
this
.
label5
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// groupDO
//
this
.
groupDO
.
Controls
.
Add
(
this
.
btnClampRelax
);
this
.
groupDO
.
Controls
.
Add
(
this
.
btnClampWork
);
this
.
groupDO
.
Controls
.
Add
(
this
.
LineStop_B
);
this
.
groupDO
.
Controls
.
Add
(
this
.
LineBack_B
);
this
.
groupDO
.
Controls
.
Add
(
this
.
LineStart_B
);
this
.
groupDO
.
Controls
.
Add
(
this
.
LineStop_A
);
this
.
groupDO
.
Controls
.
Add
(
this
.
LineBack_A
);
this
.
groupDO
.
Controls
.
Add
(
this
.
Shelf_StopDown_B
);
this
.
groupDO
.
Controls
.
Add
(
this
.
Shelf_StopDown_A
);
this
.
groupDO
.
Controls
.
Add
(
this
.
Shelf_StopUp_A
);
this
.
groupDO
.
Controls
.
Add
(
this
.
Shelf_StopUp_B
);
this
.
groupDO
.
Controls
.
Add
(
this
.
LineStart_A
);
this
.
groupDO
.
Controls
.
Add
(
this
.
btnCloseAll
);
this
.
groupDO
.
Location
=
new
System
.
Drawing
.
Point
(
477
,
136
);
this
.
groupDO
.
Name
=
"groupDO"
;
this
.
groupDO
.
Size
=
new
System
.
Drawing
.
Size
(
466
,
230
);
this
.
groupDO
.
TabIndex
=
256
;
this
.
groupDO
.
TabStop
=
false
;
this
.
groupDO
.
Text
=
"IO操作测试"
;
//
// btnClampRelax
//
this
.
btnClampRelax
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnClampRelax
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClampRelax
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClampRelax
.
Location
=
new
System
.
Drawing
.
Point
(
162
,
185
);
this
.
btnClampRelax
.
Name
=
"btnClampRelax"
;
this
.
btnClampRelax
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
btnClampRelax
.
TabIndex
=
288
;
this
.
btnClampRelax
.
Text
=
"吸盘放料"
;
this
.
btnClampRelax
.
UseVisualStyleBackColor
=
false
;
this
.
btnClampRelax
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClampRelax_Click
);
//
// btnClampWork
//
this
.
btnClampWork
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnClampWork
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClampWork
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClampWork
.
Location
=
new
System
.
Drawing
.
Point
(
162
,
145
);
this
.
btnClampWork
.
Name
=
"btnClampWork"
;
this
.
btnClampWork
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
btnClampWork
.
TabIndex
=
287
;
this
.
btnClampWork
.
Text
=
"吸盘抓料"
;
this
.
btnClampWork
.
UseVisualStyleBackColor
=
false
;
this
.
btnClampWork
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClampWork_Click
);
//
// LineStop_B
//
this
.
LineStop_B
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
LineStop_B
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
LineStop_B
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LineStop_B
.
Location
=
new
System
.
Drawing
.
Point
(
314
,
101
);
this
.
LineStop_B
.
Name
=
"LineStop_B"
;
this
.
LineStop_B
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
LineStop_B
.
TabIndex
=
286
;
this
.
LineStop_B
.
Text
=
"B料口电机停止"
;
this
.
LineStop_B
.
UseVisualStyleBackColor
=
false
;
this
.
LineStop_B
.
Click
+=
new
System
.
EventHandler
(
this
.
LineStop_B_Click
);
//
// LineBack_B
//
this
.
LineBack_B
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
LineBack_B
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
LineBack_B
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LineBack_B
.
Location
=
new
System
.
Drawing
.
Point
(
314
,
61
);
this
.
LineBack_B
.
Name
=
"LineBack_B"
;
this
.
LineBack_B
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
LineBack_B
.
TabIndex
=
285
;
this
.
LineBack_B
.
Text
=
"B料口电机反转<<"
;
this
.
LineBack_B
.
UseVisualStyleBackColor
=
false
;
this
.
LineBack_B
.
Click
+=
new
System
.
EventHandler
(
this
.
LineBack_B_Click
);
//
// LineStart_B
//
this
.
LineStart_B
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
LineStart_B
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
LineStart_B
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LineStart_B
.
Location
=
new
System
.
Drawing
.
Point
(
314
,
21
);
this
.
LineStart_B
.
Name
=
"LineStart_B"
;
this
.
LineStart_B
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
LineStart_B
.
TabIndex
=
284
;
this
.
LineStart_B
.
Text
=
"B料口电机启动>>"
;
this
.
LineStart_B
.
UseVisualStyleBackColor
=
false
;
this
.
LineStart_B
.
Click
+=
new
System
.
EventHandler
(
this
.
LineStart_B_Click
);
//
// LineStop_A
//
this
.
LineStop_A
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
LineStop_A
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
LineStop_A
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LineStop_A
.
Location
=
new
System
.
Drawing
.
Point
(
162
,
101
);
this
.
LineStop_A
.
Name
=
"LineStop_A"
;
this
.
LineStop_A
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
LineStop_A
.
TabIndex
=
283
;
this
.
LineStop_A
.
Text
=
"A料口电机停止"
;
this
.
LineStop_A
.
UseVisualStyleBackColor
=
false
;
this
.
LineStop_A
.
Click
+=
new
System
.
EventHandler
(
this
.
LineStop_A_Click
);
//
// LineBack_A
//
this
.
LineBack_A
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
LineBack_A
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
LineBack_A
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LineBack_A
.
Location
=
new
System
.
Drawing
.
Point
(
162
,
61
);
this
.
LineBack_A
.
Name
=
"LineBack_A"
;
this
.
LineBack_A
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
LineBack_A
.
TabIndex
=
282
;
this
.
LineBack_A
.
Text
=
"A料口电机反转<<"
;
this
.
LineBack_A
.
UseVisualStyleBackColor
=
false
;
this
.
LineBack_A
.
Click
+=
new
System
.
EventHandler
(
this
.
LineBack_A_Click
);
//
// Shelf_StopDown_B
//
this
.
Shelf_StopDown_B
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
Shelf_StopDown_B
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
Shelf_StopDown_B
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Shelf_StopDown_B
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
145
);
this
.
Shelf_StopDown_B
.
Name
=
"Shelf_StopDown_B"
;
this
.
Shelf_StopDown_B
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
Shelf_StopDown_B
.
TabIndex
=
277
;
this
.
Shelf_StopDown_B
.
Text
=
"B料口阻挡下降 ↓"
;
this
.
Shelf_StopDown_B
.
UseVisualStyleBackColor
=
false
;
this
.
Shelf_StopDown_B
.
Click
+=
new
System
.
EventHandler
(
this
.
Shelf_StopDown_B_Click
);
//
// Shelf_StopDown_A
//
this
.
Shelf_StopDown_A
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
Shelf_StopDown_A
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
Shelf_StopDown_A
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Shelf_StopDown_A
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
61
);
this
.
Shelf_StopDown_A
.
Name
=
"Shelf_StopDown_A"
;
this
.
Shelf_StopDown_A
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
Shelf_StopDown_A
.
TabIndex
=
276
;
this
.
Shelf_StopDown_A
.
Text
=
"A料口阻挡下降 ↓"
;
this
.
Shelf_StopDown_A
.
UseVisualStyleBackColor
=
false
;
this
.
Shelf_StopDown_A
.
Click
+=
new
System
.
EventHandler
(
this
.
Shelf_StopDown_A_Click
);
//
// Shelf_StopUp_A
//
this
.
Shelf_StopUp_A
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
Shelf_StopUp_A
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
Shelf_StopUp_A
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Shelf_StopUp_A
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
21
);
this
.
Shelf_StopUp_A
.
Name
=
"Shelf_StopUp_A"
;
this
.
Shelf_StopUp_A
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
Shelf_StopUp_A
.
TabIndex
=
274
;
this
.
Shelf_StopUp_A
.
Text
=
"A料口阻挡上升 ↑"
;
this
.
Shelf_StopUp_A
.
UseVisualStyleBackColor
=
false
;
this
.
Shelf_StopUp_A
.
Click
+=
new
System
.
EventHandler
(
this
.
Shelf_StopUp_A_Click
);
//
// Shelf_StopUp_B
//
this
.
Shelf_StopUp_B
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
Shelf_StopUp_B
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
Shelf_StopUp_B
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Shelf_StopUp_B
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
105
);
this
.
Shelf_StopUp_B
.
Name
=
"Shelf_StopUp_B"
;
this
.
Shelf_StopUp_B
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
Shelf_StopUp_B
.
TabIndex
=
273
;
this
.
Shelf_StopUp_B
.
Text
=
"B料口阻挡上升 ↑"
;
this
.
Shelf_StopUp_B
.
UseVisualStyleBackColor
=
false
;
this
.
Shelf_StopUp_B
.
Click
+=
new
System
.
EventHandler
(
this
.
Shelf_StopUp_B_Click
);
//
// LineStart_A
//
this
.
LineStart_A
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
LineStart_A
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
LineStart_A
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LineStart_A
.
Location
=
new
System
.
Drawing
.
Point
(
162
,
21
);
this
.
LineStart_A
.
Name
=
"LineStart_A"
;
this
.
LineStart_A
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
LineStart_A
.
TabIndex
=
255
;
this
.
LineStart_A
.
Text
=
"A料口电机启动>>"
;
this
.
LineStart_A
.
UseVisualStyleBackColor
=
false
;
this
.
LineStart_A
.
Click
+=
new
System
.
EventHandler
(
this
.
LineStart_A_Click
);
//
// btnCloseAll
//
this
.
btnCloseAll
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCloseAll
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseAll
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseAll
.
Location
=
new
System
.
Drawing
.
Point
(
314
,
145
);
this
.
btnCloseAll
.
Name
=
"btnCloseAll"
;
this
.
btnCloseAll
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
btnCloseAll
.
TabIndex
=
259
;
this
.
btnCloseAll
.
Text
=
"关闭所有DO"
;
this
.
btnCloseAll
.
UseVisualStyleBackColor
=
false
;
this
.
btnCloseAll
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCloseAll_Click
);
//
// clampJawControl1
//
this
.
clampJawControl1
.
Location
=
new
System
.
Drawing
.
Point
(
474
,
372
);
this
.
clampJawControl1
.
Name
=
"clampJawControl1"
;
this
.
clampJawControl1
.
Size
=
new
System
.
Drawing
.
Size
(
469
,
192
);
this
.
clampJawControl1
.
TabIndex
=
281
;
//
// timer1
//
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer1_Tick
);
//
// Input_IO
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
8F
,
15F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
Controls
.
Add
(
this
.
clampJawControl1
);
this
.
Controls
.
Add
(
this
.
groupDO
);
this
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
Controls
.
Add
(
this
.
groupBox4
);
this
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
Name
=
"Input_IO"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
962
,
564
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
Input_IO_Load
);
this
.
groupBox3
.
ResumeLayout
(
false
);
this
.
groupBox4
.
ResumeLayout
(
false
);
this
.
groupBox1
.
ResumeLayout
(
false
);
this
.
groupBox1
.
PerformLayout
();
this
.
groupDO
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
}
#
endregion
private
System
.
Windows
.
Forms
.
GroupBox
groupBox3
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox4
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel2
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
TextBox
txtDOIndex
;
private
System
.
Windows
.
Forms
.
TextBox
txtDoName
;
private
System
.
Windows
.
Forms
.
Label
lblAddr
;
private
System
.
Windows
.
Forms
.
Button
btnOpenDo
;
private
System
.
Windows
.
Forms
.
TextBox
txtSlaveId
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbWriteIO
;
private
System
.
Windows
.
Forms
.
Button
btnWriteSingleDO
;
private
System
.
Windows
.
Forms
.
TextBox
txtWriteTime
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
GroupBox
groupDO
;
private
System
.
Windows
.
Forms
.
Button
btnClampRelax
;
private
System
.
Windows
.
Forms
.
Button
btnClampWork
;
private
System
.
Windows
.
Forms
.
Button
LineStop_B
;
private
System
.
Windows
.
Forms
.
Button
LineBack_B
;
private
System
.
Windows
.
Forms
.
Button
LineStart_B
;
private
System
.
Windows
.
Forms
.
Button
LineStop_A
;
private
System
.
Windows
.
Forms
.
Button
LineBack_A
;
private
System
.
Windows
.
Forms
.
Button
Shelf_StopDown_B
;
private
System
.
Windows
.
Forms
.
Button
Shelf_StopDown_A
;
private
System
.
Windows
.
Forms
.
Button
Shelf_StopUp_A
;
private
System
.
Windows
.
Forms
.
Button
Shelf_StopUp_B
;
private
System
.
Windows
.
Forms
.
Button
LineStart_A
;
private
System
.
Windows
.
Forms
.
Button
btnCloseAll
;
private
useControl
.
ClampJawControl
clampJawControl1
;
private
System
.
Windows
.
Forms
.
Timer
timer1
;
}
}
source/XLRStoreClient/inputForm/uc/Input_IO.cs
0 → 100644
查看文件 @
8955813
using
OnlineStore.Common
;
using
OnlineStore.DeviceLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Drawing
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
using
UserFromControl
;
using
static
System
.
Windows
.
Forms
.
VisualStyles
.
VisualStyleElement
.
Button
;
namespace
OnlineStore.XLRStore.inputForm.uc
{
public
partial
class
Input_IO
:
UserControl
{
public
Input_IO
(
InputEquip
inputEquip
)
{
Control
.
CheckForIllegalCrossThreadCalls
=
false
;
InitializeComponent
();
this
.
inputEquip
=
inputEquip
;
if
(
inputEquip
.
ClampJaw
==
null
)
{
clampJawControl1
.
Visible
=
false
;
btnClampRelax
.
Visible
=
true
;
btnClampWork
.
Visible
=
true
;
}
else
{
clampJawControl1
.
Visible
=
true
;
btnClampRelax
.
Visible
=
false
;
btnClampWork
.
Visible
=
false
;
clampJawControl1
.
clampJaw
=
inputEquip
.
ClampJaw
;
clampJawControl1
.
ShowData
();
}
LoadIOList
();
}
private
InputEquip
inputEquip
;
IOTextControl
selectControl
=
null
;
protected
Dictionary
<
string
,
IOTextControl
>
DIControlList
=
new
Dictionary
<
string
,
IOTextControl
>();
protected
Dictionary
<
string
,
IOTextControl
>
DOControlList
=
new
Dictionary
<
string
,
IOTextControl
>();
protected
void
ReadIOList
()
{
foreach
(
string
key
in
DIControlList
.
Keys
)
{
IOTextControl
control
=
DIControlList
[
key
];
int
iov
=
(
int
)
IOManager
.
IOValue
(
key
,
inputEquip
.
DeviceID
);
if
(
iov
!=
control
.
IOValue
)
{
control
.
IOValue
=
iov
;
control
.
ShowData
();
}
}
foreach
(
string
key
in
this
.
DOControlList
.
Keys
)
{
IOTextControl
control
=
DOControlList
[
key
];
int
iov
=
(
int
)
IOManager
.
DOValue
(
key
,
inputEquip
.
DeviceID
);
if
(
iov
!=
control
.
IOValue
)
{
control
.
IOValue
=
iov
;
control
.
ShowData
();
}
}
}
private
void
LoadIOList
()
{
int
maxCount
=
20
;
int
roleindex
=
0
;
this
.
tableLayoutPanel1
.
RowStyles
.
Clear
();
this
.
tableLayoutPanel1
.
RowCount
=
maxCount
;
//this.tableLayoutPanel3.RowStyles.Clear();
//this.tableLayoutPanel3.RowCount = maxCount;
int
i
=
0
;
foreach
(
ConfigIO
ioValue
in
inputEquip
.
Config
.
DIList
.
Values
)
{
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
//if (i >= maxCount)
//{
// this.tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Absolute, 28));
// this.tableLayoutPanel3.Controls.Add(control, 0, roleindex - maxCount);
//}
//else
{
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
this
.
tableLayoutPanel1
.
Controls
.
Add
(
control
,
0
,
roleindex
);
}
roleindex
++;
i
++;
DIControlList
.
Add
(
ioValue
.
ProName
,
control
);
}
tableLayoutPanel2
.
RowStyles
.
Clear
();
this
.
tableLayoutPanel2
.
RowCount
=
maxCount
;
roleindex
=
0
;
i
=
0
;
foreach
(
ConfigIO
ioValue
in
inputEquip
.
Config
.
DOList
.
Values
)
{
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
control
.
Click
+=
Control_Click
;
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
roleindex
++;
i
++;
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
}
this
.
SuspendLayout
();
//此处为不闪屏,一定要有的!
cmbWriteIO
.
DataSource
=
new
List
<
ConfigIO
>(
inputEquip
.
Config
.
DOList
.
Values
);
cmbWriteIO
.
ValueMember
=
"ProName"
;
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
}
private
void
Control_Click
(
object
sender
,
EventArgs
e
)
{
IOTextControl
control
=
(
IOTextControl
)
sender
;
string
name
=
control
.
Name
.
Substring
(
3
,
control
.
Name
.
Length
-
3
);
List
<
string
>
keyList
=
new
List
<
string
>(
DOControlList
.
Keys
);
int
index
=
keyList
.
IndexOf
(
name
);
if
(
index
>=
0
)
{
cmbWriteIO
.
SelectedIndex
=
index
;
}
}
private
void
cmbWriteIO_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
if
(
cmbWriteIO
.
SelectedIndex
>=
0
)
{
ConfigIO
io
=
GetSelectDO
();
if
(
io
!=
null
)
{
// txtIp.Text = io.DeviceName;
txtDOIndex
.
Text
=
io
.
GetIOAddr
().
ToString
();
txtDoName
.
Text
=
io
.
IO_IP
;
txtSlaveId
.
Text
=
io
.
SlaveID
.
ToString
();
lblAddr
.
Text
=
txtDoName
.
Text
+
"_"
+
txtDOIndex
.
Text
;
IOTextControl
newControl
=
DOControlList
[
io
.
ProName
];
if
(
selectControl
!=
null
)
{
selectControl
.
BackColor
=
Color
.
White
;
}
newControl
.
BackColor
=
Color
.
SkyBlue
;
selectControl
=
newControl
;
//txtIOInfo.Text = "IP:" + io.DeviceName + " /" + io.GetIOAddr().ToString();
}
}
}
private
ConfigIO
GetSelectDO
()
{
string
text
=
cmbWriteIO
.
SelectedValue
.
ToString
();
string
newType
=
text
.
Replace
(
"SW1_"
,
"SW_"
).
Replace
(
"SW2_"
,
"SW_"
).
Replace
(
"SW3_"
,
"SW_"
).
Replace
(
"SW4_"
,
"SW_"
);
if
(
inputEquip
.
Config
.
DOList
.
ContainsKey
(
newType
))
{
ConfigIO
io
=
inputEquip
.
Config
.
DOList
[
newType
];
return
io
;
}
return
null
;
}
private
void
WriteDO
(
IO_VALUE
value
)
{
string
deviceName
=
txtDoName
.
Text
;
int
index
=
FormUtil
.
GetIntValue
(
txtDOIndex
);
// IO_VALUE value = checkBox1.Checked ? IO_VALUE.HIGH : IO_VALUE.LOW;
int
time
=
FormUtil
.
GetIntValue
(
txtWriteTime
);
int
slaveId
=
FormUtil
.
GetIntValue
(
txtSlaveId
);
if
(
time
>
0
)
{
IOManager
.
instance
.
WriteSingleDO
(
deviceName
,
(
byte
)
slaveId
,
(
ushort
)
index
,
(
IO_VALUE
)
value
,
time
);
}
else
{
IOManager
.
instance
.
WriteSingleDO
(
deviceName
,
(
byte
)
slaveId
,
(
ushort
)
index
,
(
IO_VALUE
)
value
);
}
}
private
void
Shelf_StopUp_A_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_A
.
Name
+
"点击:"
+
Shelf_StopUp_A
.
Text
);
inputEquip
.
BatchMove_A
.
StopUp
();
}
private
void
LineStart_A_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_A
.
Name
+
"点击:"
+
LineStart_A
.
Text
);
inputEquip
.
BatchMove_A
.
LineRun
();
}
private
void
LineStart_B_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_B
.
Name
+
"点击:"
+
LineStart_B
.
Text
);
inputEquip
.
BatchMove_B
.
LineRun
();
}
private
void
Shelf_StopDown_A_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_A
.
Name
+
"点击:"
+
Shelf_StopDown_A
.
Text
);
inputEquip
.
BatchMove_A
.
StopDown
();
}
private
void
LineBack_A_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_A
.
Name
+
"点击:"
+
LineBack_A
.
Text
);
inputEquip
.
BatchMove_A
.
LineBack
();
}
private
void
LineBack_B_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_B
.
Name
+
"点击:"
+
LineBack_B
.
Text
);
inputEquip
.
BatchMove_B
.
LineBack
();
}
private
void
Shelf_StopUp_B_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_B
.
Name
+
"点击:"
+
Shelf_StopUp_B
.
Text
);
inputEquip
.
BatchMove_B
.
StopUp
();
}
private
void
LineStop_A_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_A
.
Name
+
"点击:"
+
LineStop_A
.
Text
);
inputEquip
.
BatchMove_A
.
LineStop
();
}
private
void
LineStop_B_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_B
.
Name
+
"点击:"
+
LineStop_B
.
Text
);
inputEquip
.
BatchMove_B
.
LineStop
();
}
private
void
Shelf_StopDown_B_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
inputEquip
.
BatchMove_B
.
Name
+
"点击:"
+
Shelf_StopDown_B
.
Text
);
inputEquip
.
BatchMove_B
.
StopDown
();
}
private
void
btnClampWork_Click
(
object
sender
,
EventArgs
e
)
{
inputEquip
.
ClampWork
(
null
,
false
);
}
private
void
btnCloseAll_Click
(
object
sender
,
EventArgs
e
)
{
foreach
(
Control
con
in
groupDO
.
Controls
)
{
if
(
con
is
Button
)
{
con
.
BackColor
=
BackColor
=
Color
.
White
;
}
}
foreach
(
ConfigIO
io
in
inputEquip
.
baseConfig
.
DOList
.
Values
)
{
IOManager
.
instance
.
WriteSingleDO
(
io
.
IO_IP
,
io
.
SlaveID
,
io
.
GetIOAddr
(),
IO_VALUE
.
LOW
);
}
}
private
void
btnClampRelax_Click
(
object
sender
,
EventArgs
e
)
{
inputEquip
.
ClampRelax
(
null
);
}
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
try
{
if
(!
this
.
Visible
)
{
return
;
}
clampJawControl1
.
UpdateSta
();
ReadIOList
();
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
inputEquip
.
Name
+
"读取IO定时器出错:"
,
ex
);
}
}
private
void
btnOpenDo_Click
(
object
sender
,
EventArgs
e
)
{
WriteDO
(
IO_VALUE
.
HIGH
);
}
private
void
btnWriteSingleDO_Click
(
object
sender
,
EventArgs
e
)
{
WriteDO
(
IO_VALUE
.
LOW
);
}
private
void
cmbWriteIO_DrawItem
(
object
sender
,
DrawItemEventArgs
e
)
{
if
(
e
.
Index
<
0
)
{
return
;
}
e
.
DrawBackground
();
e
.
DrawFocusRectangle
();
if
(
cmbWriteIO
.
Items
.
Count
>
e
.
Index
)
{
ConfigIO
io
=
(
ConfigIO
)
cmbWriteIO
.
Items
[
e
.
Index
];
e
.
Graphics
.
DrawString
(
io
.
DisplayStr
,
e
.
Font
,
new
SolidBrush
(
e
.
ForeColor
),
e
.
Bounds
.
X
,
e
.
Bounds
.
Y
+
3
);
}
}
private
void
Input_IO_Load
(
object
sender
,
EventArgs
e
)
{
timer1
.
Start
();
}
}
}
source/XLRStoreClient/inputForm/uc/Input_IO.resx
0 → 100644
查看文件 @
8955813
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
\ No newline at end of file
source/XLRStoreClient/useControl/AxisPointControl.Designer.cs
查看文件 @
8955813
...
...
@@ -45,7 +45,7 @@ namespace OnlineStore.XLRStore.useControl
this
.
btnMove
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
btnMove
.
Name
=
"btnMove"
;
this
.
btnMove
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnMove
.
Size
=
new
System
.
Drawing
.
Size
(
1
54
,
29
);
this
.
btnMove
.
Size
=
new
System
.
Drawing
.
Size
(
1
39
,
29
);
this
.
btnMove
.
TabIndex
=
315
;
this
.
btnMove
.
Text
=
"上升待机点P1:"
;
this
.
btnMove
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -58,11 +58,11 @@ namespace OnlineStore.XLRStore.useControl
this
.
txtPoint
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtPoint
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtPoint
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtPoint
.
Location
=
new
System
.
Drawing
.
Point
(
1
60
,
3
);
this
.
txtPoint
.
Location
=
new
System
.
Drawing
.
Point
(
1
48
,
3
);
this
.
txtPoint
.
MaxLength
=
12
;
this
.
txtPoint
.
Name
=
"txtPoint"
;
this
.
txtPoint
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtPoint
.
Size
=
new
System
.
Drawing
.
Size
(
70
,
26
);
this
.
txtPoint
.
Size
=
new
System
.
Drawing
.
Size
(
96
,
31
);
this
.
txtPoint
.
TabIndex
=
316
;
this
.
txtPoint
.
Text
=
"-1"
;
//
...
...
@@ -73,7 +73,7 @@ namespace OnlineStore.XLRStore.useControl
this
.
Controls
.
Add
(
this
.
txtPoint
);
this
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Name
=
"AxisPointControl"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
2
33
,
34
);
this
.
Size
=
new
System
.
Drawing
.
Size
(
2
47
,
34
);
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论