Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSquareStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a3b477f2
由
LN
编写于
2020-02-15 20:09:02 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
f054873b
隐藏空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
1155 行增加
和
938 行删除
doc/IO点位统计表2-14.xlsx
source/ACSquareStore/App.config
source/ACSquareStore/FrmIOStatus.Designer.cs
source/ACSquareStore/FrmIOStatus.cs
source/ACSquareStore/FrmStoreBox.Designer.cs
source/ACSquareStore/FrmStoreBox.cs
source/Common/Setting_Init.cs
source/Common/util/HumitureController.cs
source/DeviceLibrary/StoreConfig/StoreConfig.csv
source/DeviceLibrary/acSquareStore/ShelfDoorBean.cs
source/DeviceLibrary/acSquareStore/Square_BoxBean.cs
source/DeviceLibrary/acSquareStore/Square_BoxBean_Partial.cs
source/DeviceLibrary/store/InOutParam.cs
source/DeviceLibrary/store/StoreStep.cs
source/LoadCVSLibrary/storeConfig/config/Box_Config.cs
doc/IO点位统计表2-14.xlsx
0 → 100644
查看文件 @
a3b477f
此文件类型无法预览
source/ACSquareStore/App.config
查看文件 @
a3b477f
...
...
@@ -36,6 +36,7 @@
<!--是否调试状态-->
<
add
key
=
"IsInDebug"
value
=
"1"
/>
<
add
key
=
"ClientSettingsProvider.ServiceUri"
value
=
""
/>
<
add
key
=
"UseDoor"
value
=
"1"
/>
</
appSettings
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
...
...
source/ACSquareStore/FrmIOStatus.Designer.cs
查看文件 @
a3b477f
...
...
@@ -18,34 +18,35 @@
this
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
txtSlaveId
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnLShelfBack
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnLShelfForward
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCloseRDoor
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOpenRDoor
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnRShelfBack
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnRShelfForward
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCloseLDoor
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOpenLDoor
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
chbAutoRead
=
new
System
.
Windows
.
Forms
.
CheckBox
();
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
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
txtDOIndex
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtDoName
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btnCloseAxisBreak
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
label17
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnReadIO
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOpenAxisBreak
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
label14
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnWriteSingleDO
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOpenDo
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtWriteTime
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnReadAllDi
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
cmbWriteValue
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
label6
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnReadAllDo
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtSlaveId
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
cmbWriteIO
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnCloseDoor
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOpenDoor
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
chbAutoRead
=
new
System
.
Windows
.
Forms
.
CheckBox
();
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
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// timer1
...
...
@@ -57,257 +58,129 @@
//
this
.
groupBox1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtSlaveId
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnCloseAxisBreak
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnReadIO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label2
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnOpenAxisBreak
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnWriteSingleDO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtDOIndex
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtWriteTime
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label5
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
txtDoName
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnReadAllDi
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label17
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
cmbWriteValue
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label6
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label14
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnReadAllDo
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
cmbWriteIO
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnCloseDoor
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnOpenDoor
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnLShelfBack
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnLShelfForward
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnCloseRDoor
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnOpenRDoor
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnRShelfBack
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnRShelfForward
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnCloseLDoor
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
btnOpenLDoor
);
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
(
485
,
1
2
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
485
,
1
70
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
3
32
,
352
);
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
3
88
,
290
);
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
//
// 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
(
238
,
74
);
this
.
txtSlaveId
.
MaxLength
=
10
;
this
.
txtSlaveId
.
Name
=
"txtSlaveId"
;
this
.
txtSlaveId
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
23
);
this
.
txtSlaveId
.
TabIndex
=
246
;
this
.
txtSlaveId
.
Text
=
"0"
;
//
// label2
//
this
.
label2
.
AutoSize
=
true
;
this
.
label2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label2
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label2
.
Location
=
new
System
.
Drawing
.
Point
(
181
,
77
);
this
.
label2
.
Name
=
"label2"
;
this
.
label2
.
Size
=
new
System
.
Drawing
.
Size
(
50
,
17
);
this
.
label2
.
TabIndex
=
245
;
this
.
label2
.
Text
=
"SlaveId"
;
this
.
label2
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// txtDOIndex
//
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
(
75
,
74
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
23
);
this
.
txtDOIndex
.
TabIndex
=
242
;
this
.
txtDOIndex
.
Text
=
"0"
;
//
// txtDoName
//
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
(
75
,
48
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
237
,
23
);
this
.
txtDoName
.
TabIndex
=
241
;
this
.
txtDoName
.
Text
=
"0"
;
//
// btnCloseAxisBreak
//
this
.
btnCloseAxisBreak
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseAxisBreak
.
Location
=
new
System
.
Drawing
.
Point
(
173
,
283
);
this
.
btnCloseAxisBreak
.
Name
=
"btnCloseAxisBreak"
;
this
.
btnCloseAxisBreak
.
Size
=
new
System
.
Drawing
.
Size
(
102
,
34
);
this
.
btnCloseAxisBreak
.
TabIndex
=
253
;
this
.
btnCloseAxisBreak
.
Text
=
"关闭刹车"
;
this
.
btnCloseAxisBreak
.
UseVisualStyleBackColor
=
true
;
this
.
btnCloseAxisBreak
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCloseAxisBreak_Click
);
//
// label17
//
this
.
label17
.
AutoSize
=
true
;
this
.
label17
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label17
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
22
,
51
);
this
.
label17
.
Name
=
"label17"
;
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
46
,
17
);
this
.
label17
.
TabIndex
=
240
;
this
.
label17
.
Text
=
"设备IP:"
;
this
.
label17
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// btnReadIO
//
this
.
btnReadIO
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnReadIO
.
Location
=
new
System
.
Drawing
.
Point
(
56
,
133
);
this
.
btnReadIO
.
Name
=
"btnReadIO"
;
this
.
btnReadIO
.
Size
=
new
System
.
Drawing
.
Size
(
102
,
34
);
this
.
btnReadIO
.
TabIndex
=
243
;
this
.
btnReadIO
.
Text
=
"读取IO状态"
;
this
.
btnReadIO
.
UseVisualStyleBackColor
=
true
;
this
.
btnReadIO
.
Click
+=
new
System
.
EventHandler
(
this
.
btnReadIO_Click
);
//
// btnOpenAxisBreak
//
this
.
btnOpenAxisBreak
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenAxisBreak
.
Location
=
new
System
.
Drawing
.
Point
(
56
,
283
);
this
.
btnOpenAxisBreak
.
Name
=
"btnOpenAxisBreak"
;
this
.
btnOpenAxisBreak
.
Size
=
new
System
.
Drawing
.
Size
(
102
,
34
);
this
.
btnOpenAxisBreak
.
TabIndex
=
252
;
this
.
btnOpenAxisBreak
.
Text
=
"打开刹车"
;
this
.
btnOpenAxisBreak
.
UseVisualStyleBackColor
=
true
;
this
.
btnOpenAxisBreak
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenAxisBreak_Click
);
//
// label14
//
this
.
label14
.
AutoSize
=
true
;
this
.
label14
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label14
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label14
.
Location
=
new
System
.
Drawing
.
Point
(
24
,
77
);
this
.
label14
.
Name
=
"label14"
;
this
.
label14
.
Size
=
new
System
.
Drawing
.
Size
(
44
,
17
);
this
.
label14
.
TabIndex
=
239
;
this
.
label14
.
Text
=
"地址:"
;
this
.
label14
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// btnWriteSingleDO
//
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
(
173
,
133
);
this
.
btnWriteSingleDO
.
Name
=
"btnWriteSingleDO"
;
this
.
btnWriteSingleDO
.
Size
=
new
System
.
Drawing
.
Size
(
102
,
34
);
this
.
btnWriteSingleDO
.
TabIndex
=
232
;
this
.
btnWriteSingleDO
.
Text
=
"写入DO"
;
this
.
btnWriteSingleDO
.
UseVisualStyleBackColor
=
true
;
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
(
238
,
103
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
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
(
172
,
106
);
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
;
//
// btnReadAllDi
//
this
.
btnReadAllDi
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnReadAllDi
.
Location
=
new
System
.
Drawing
.
Point
(
56
,
168
);
this
.
btnReadAllDi
.
Name
=
"btnReadAllDi"
;
this
.
btnReadAllDi
.
Size
=
new
System
.
Drawing
.
Size
(
102
,
34
);
this
.
btnReadAllDi
.
TabIndex
=
244
;
this
.
btnReadAllDi
.
Text
=
"读取所有DI"
;
this
.
btnReadAllDi
.
UseVisualStyleBackColor
=
true
;
this
.
btnReadAllDi
.
Click
+=
new
System
.
EventHandler
(
this
.
btnReadAllDi_Click
);
//
// cmbWriteValue
//
this
.
cmbWriteValue
.
DrawMode
=
System
.
Windows
.
Forms
.
DrawMode
.
OwnerDrawVariable
;
this
.
cmbWriteValue
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbWriteValue
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbWriteValue
.
FormattingEnabled
=
true
;
this
.
cmbWriteValue
.
Items
.
AddRange
(
new
object
[]
{
"0"
,
"1"
});
this
.
cmbWriteValue
.
Location
=
new
System
.
Drawing
.
Point
(
75
,
101
);
this
.
cmbWriteValue
.
Name
=
"cmbWriteValue"
;
this
.
cmbWriteValue
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
24
);
this
.
cmbWriteValue
.
TabIndex
=
236
;
this
.
cmbWriteValue
.
DrawItem
+=
new
System
.
Windows
.
Forms
.
DrawItemEventHandler
(
this
.
cmbWriteValue_DrawItem
);
//
// label6
//
this
.
label6
.
AutoSize
=
true
;
this
.
label6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label6
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label6
.
Location
=
new
System
.
Drawing
.
Point
(
21
,
106
);
this
.
label6
.
Name
=
"label6"
;
this
.
label6
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
17
);
this
.
label6
.
TabIndex
=
235
;
this
.
label6
.
Text
=
"写入值:"
;
this
.
label6
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// btnReadAllDo
//
this
.
btnReadAllDo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnReadAllDo
.
Location
=
new
System
.
Drawing
.
Point
(
173
,
168
);
this
.
btnReadAllDo
.
Name
=
"btnReadAllDo"
;
this
.
btnReadAllDo
.
Size
=
new
System
.
Drawing
.
Size
(
102
,
34
);
this
.
btnReadAllDo
.
TabIndex
=
245
;
this
.
btnReadAllDo
.
Text
=
"读取所有DO"
;
this
.
btnReadAllDo
.
UseVisualStyleBackColor
=
true
;
this
.
btnReadAllDo
.
Click
+=
new
System
.
EventHandler
(
this
.
btnReadAllDo_Click
);
//
// 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
.
Location
=
new
System
.
Drawing
.
Point
(
22
,
22
);
this
.
cmbWriteIO
.
Name
=
"cmbWriteIO"
;
this
.
cmbWriteIO
.
Size
=
new
System
.
Drawing
.
Size
(
290
,
24
);
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
);
//
// btnCloseDoor
//
this
.
btnCloseDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseDoor
.
Location
=
new
System
.
Drawing
.
Point
(
173
,
213
);
this
.
btnCloseDoor
.
Name
=
"btnCloseDoor"
;
this
.
btnCloseDoor
.
Size
=
new
System
.
Drawing
.
Size
(
102
,
34
);
this
.
btnCloseDoor
.
TabIndex
=
249
;
this
.
btnCloseDoor
.
Text
=
"关闭仓门"
;
this
.
btnCloseDoor
.
UseVisualStyleBackColor
=
true
;
this
.
btnCloseDoor
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCloseDoor_Click
);
//
// btnOpenDoor
//
this
.
btnOpenDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDoor
.
Location
=
new
System
.
Drawing
.
Point
(
56
,
213
);
this
.
btnOpenDoor
.
Name
=
"btnOpenDoor"
;
this
.
btnOpenDoor
.
Size
=
new
System
.
Drawing
.
Size
(
102
,
34
);
this
.
btnOpenDoor
.
TabIndex
=
248
;
this
.
btnOpenDoor
.
Text
=
"打开仓门"
;
this
.
btnOpenDoor
.
UseVisualStyleBackColor
=
true
;
this
.
btnOpenDoor
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenDoor_Click
);
this
.
groupBox1
.
Text
=
"IO测试"
;
//
// btnLShelfBack
//
this
.
btnLShelfBack
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLShelfBack
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLShelfBack
.
Location
=
new
System
.
Drawing
.
Point
(
41
,
194
);
this
.
btnLShelfBack
.
Name
=
"btnLShelfBack"
;
this
.
btnLShelfBack
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
40
);
this
.
btnLShelfBack
.
TabIndex
=
257
;
this
.
btnLShelfBack
.
Text
=
"左侧货架后退"
;
this
.
btnLShelfBack
.
UseVisualStyleBackColor
=
true
;
this
.
btnLShelfBack
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLShelfBack_Click
);
//
// btnLShelfForward
//
this
.
btnLShelfForward
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnLShelfForward
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnLShelfForward
.
Location
=
new
System
.
Drawing
.
Point
(
41
,
148
);
this
.
btnLShelfForward
.
Name
=
"btnLShelfForward"
;
this
.
btnLShelfForward
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
40
);
this
.
btnLShelfForward
.
TabIndex
=
256
;
this
.
btnLShelfForward
.
Text
=
"左侧托架前进"
;
this
.
btnLShelfForward
.
UseVisualStyleBackColor
=
true
;
this
.
btnLShelfForward
.
Click
+=
new
System
.
EventHandler
(
this
.
btnLShelfForward_Click
);
//
// btnCloseRDoor
//
this
.
btnCloseRDoor
.
Enabled
=
false
;
this
.
btnCloseRDoor
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseRDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseRDoor
.
Location
=
new
System
.
Drawing
.
Point
(
206
,
80
);
this
.
btnCloseRDoor
.
Name
=
"btnCloseRDoor"
;
this
.
btnCloseRDoor
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
40
);
this
.
btnCloseRDoor
.
TabIndex
=
255
;
this
.
btnCloseRDoor
.
Text
=
"关闭右侧门"
;
this
.
btnCloseRDoor
.
UseVisualStyleBackColor
=
true
;
this
.
btnCloseRDoor
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCloseRDoor_Click
);
//
// btnOpenRDoor
//
this
.
btnOpenRDoor
.
Enabled
=
false
;
this
.
btnOpenRDoor
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenRDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenRDoor
.
Location
=
new
System
.
Drawing
.
Point
(
206
,
34
);
this
.
btnOpenRDoor
.
Name
=
"btnOpenRDoor"
;
this
.
btnOpenRDoor
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
40
);
this
.
btnOpenRDoor
.
TabIndex
=
254
;
this
.
btnOpenRDoor
.
Text
=
"打开右侧门"
;
this
.
btnOpenRDoor
.
UseVisualStyleBackColor
=
true
;
this
.
btnOpenRDoor
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenRDoor_Click
);
//
// btnRShelfBack
//
this
.
btnRShelfBack
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnRShelfBack
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnRShelfBack
.
Location
=
new
System
.
Drawing
.
Point
(
206
,
194
);
this
.
btnRShelfBack
.
Name
=
"btnRShelfBack"
;
this
.
btnRShelfBack
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
40
);
this
.
btnRShelfBack
.
TabIndex
=
253
;
this
.
btnRShelfBack
.
Text
=
"右侧货架后退"
;
this
.
btnRShelfBack
.
UseVisualStyleBackColor
=
true
;
this
.
btnRShelfBack
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCloseAxisBreak_Click
);
//
// btnRShelfForward
//
this
.
btnRShelfForward
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnRShelfForward
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnRShelfForward
.
Location
=
new
System
.
Drawing
.
Point
(
206
,
148
);
this
.
btnRShelfForward
.
Name
=
"btnRShelfForward"
;
this
.
btnRShelfForward
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
40
);
this
.
btnRShelfForward
.
TabIndex
=
252
;
this
.
btnRShelfForward
.
Text
=
"右侧货架前进"
;
this
.
btnRShelfForward
.
UseVisualStyleBackColor
=
true
;
this
.
btnRShelfForward
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenAxisBreak_Click
);
//
// btnCloseLDoor
//
this
.
btnCloseLDoor
.
Enabled
=
false
;
this
.
btnCloseLDoor
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseLDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseLDoor
.
Location
=
new
System
.
Drawing
.
Point
(
41
,
80
);
this
.
btnCloseLDoor
.
Name
=
"btnCloseLDoor"
;
this
.
btnCloseLDoor
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
40
);
this
.
btnCloseLDoor
.
TabIndex
=
249
;
this
.
btnCloseLDoor
.
Text
=
"关闭左侧门"
;
this
.
btnCloseLDoor
.
UseVisualStyleBackColor
=
true
;
this
.
btnCloseLDoor
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCloseDoor_Click
);
//
// btnOpenLDoor
//
this
.
btnOpenLDoor
.
Enabled
=
false
;
this
.
btnOpenLDoor
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenLDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenLDoor
.
Location
=
new
System
.
Drawing
.
Point
(
41
,
34
);
this
.
btnOpenLDoor
.
Name
=
"btnOpenLDoor"
;
this
.
btnOpenLDoor
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
40
);
this
.
btnOpenLDoor
.
TabIndex
=
248
;
this
.
btnOpenLDoor
.
Text
=
"打开左侧门"
;
this
.
btnOpenLDoor
.
UseVisualStyleBackColor
=
true
;
this
.
btnOpenLDoor
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenDoor_Click
);
//
// button1
//
this
.
button1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
691
,
411
);
this
.
button1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
720
,
479
);
this
.
button1
.
Name
=
"button1"
;
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
1
26
,
37
);
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
1
40
,
40
);
this
.
button1
.
TabIndex
=
254
;
this
.
button1
.
Text
=
"关闭"
;
this
.
button1
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -320,7 +193,7 @@
this
.
chbAutoRead
.
Checked
=
true
;
this
.
chbAutoRead
.
CheckState
=
System
.
Windows
.
Forms
.
CheckState
.
Checked
;
this
.
chbAutoRead
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbAutoRead
.
Location
=
new
System
.
Drawing
.
Point
(
507
,
416
);
this
.
chbAutoRead
.
Location
=
new
System
.
Drawing
.
Point
(
485
,
479
);
this
.
chbAutoRead
.
Name
=
"chbAutoRead"
;
this
.
chbAutoRead
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
21
);
this
.
chbAutoRead
.
TabIndex
=
244
;
...
...
@@ -334,7 +207,7 @@
this
.
groupBox4
.
Controls
.
Add
(
this
.
tableLayoutPanel2
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
247
,
8
);
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
44
6
);
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
52
6
);
this
.
groupBox4
.
TabIndex
=
104
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"DO列表"
;
...
...
@@ -351,7 +224,7 @@
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
(
218
,
42
6
);
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
50
6
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
// groupBox3
...
...
@@ -361,7 +234,7 @@
this
.
groupBox3
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
8
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
44
6
);
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
229
,
52
6
);
this
.
groupBox3
.
TabIndex
=
103
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"DI列表"
;
...
...
@@ -378,14 +251,155 @@
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
(
218
,
42
6
);
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
50
6
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// groupBox2
//
this
.
groupBox2
.
Controls
.
Add
(
this
.
txtDOIndex
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
txtDoName
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
label17
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
label14
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
btnOpenDo
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
button2
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
txtWriteTime
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
label5
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
txtSlaveId
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
cmbWriteIO
);
this
.
groupBox2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
485
,
8
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
388
,
156
);
this
.
groupBox2
.
TabIndex
=
255
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
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
(
328
,
67
);
this
.
txtDOIndex
.
MaxLength
=
10
;
this
.
txtDOIndex
.
Name
=
"txtDOIndex"
;
this
.
txtDOIndex
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
23
);
this
.
txtDOIndex
.
TabIndex
=
276
;
this
.
txtDOIndex
.
Text
=
"0"
;
//
// 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
(
71
,
67
);
this
.
txtDoName
.
MaxLength
=
10
;
this
.
txtDoName
.
Name
=
"txtDoName"
;
this
.
txtDoName
.
Size
=
new
System
.
Drawing
.
Size
(
116
,
23
);
this
.
txtDoName
.
TabIndex
=
275
;
this
.
txtDoName
.
Text
=
"0"
;
//
// label17
//
this
.
label17
.
AutoSize
=
true
;
this
.
label17
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label17
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
19
,
70
);
this
.
label17
.
Name
=
"label17"
;
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
46
,
17
);
this
.
label17
.
TabIndex
=
274
;
this
.
label17
.
Text
=
"设备IP:"
;
this
.
label17
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// label14
//
this
.
label14
.
AutoSize
=
true
;
this
.
label14
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label14
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
label14
.
Location
=
new
System
.
Drawing
.
Point
(
272
,
70
);
this
.
label14
.
Name
=
"label14"
;
this
.
label14
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
17
);
this
.
label14
.
TabIndex
=
273
;
this
.
label14
.
Text
=
"地址:"
;
this
.
label14
.
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
(
169
,
107
);
this
.
btnOpenDo
.
Name
=
"btnOpenDo"
;
this
.
btnOpenDo
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
34
);
this
.
btnOpenDo
.
TabIndex
=
272
;
this
.
btnOpenDo
.
Text
=
"打开"
;
this
.
btnOpenDo
.
UseVisualStyleBackColor
=
false
;
this
.
btnOpenDo
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenDo_Click
);
//
// button2
//
this
.
button2
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
button2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
button2
.
Location
=
new
System
.
Drawing
.
Point
(
275
,
107
);
this
.
button2
.
Name
=
"button2"
;
this
.
button2
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
34
);
this
.
button2
.
TabIndex
=
269
;
this
.
button2
.
Text
=
"关闭"
;
this
.
button2
.
UseVisualStyleBackColor
=
false
;
this
.
button2
.
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
,
113
);
this
.
txtWriteTime
.
MaxLength
=
10
;
this
.
txtWriteTime
.
Name
=
"txtWriteTime"
;
this
.
txtWriteTime
.
Size
=
new
System
.
Drawing
.
Size
(
66
,
23
);
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
(
19
,
116
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
17
);
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
(
417
,
26
);
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
(
"微软雅黑"
,
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
(
17
,
25
);
this
.
cmbWriteIO
.
Name
=
"cmbWriteIO"
;
this
.
cmbWriteIO
.
Size
=
new
System
.
Drawing
.
Size
(
358
,
28
);
this
.
cmbWriteIO
.
TabIndex
=
234
;
this
.
cmbWriteIO
.
ValueMember
=
"ProName"
;
this
.
cmbWriteIO
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbWriteIO_SelectedIndexChanged_1
);
//
// FrmIOStatus
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
829
,
464
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
885
,
544
);
this
.
Controls
.
Add
(
this
.
groupBox2
);
this
.
Controls
.
Add
(
this
.
button1
);
this
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
Controls
.
Add
(
this
.
groupBox4
);
...
...
@@ -399,9 +413,10 @@
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
.
groupBox2
.
ResumeLayout
(
false
);
this
.
groupBox2
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
...
...
@@ -415,27 +430,27 @@
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel2
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox4
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
CheckBox
chbAutoRead
;
private
System
.
Windows
.
Forms
.
Button
btnCloseLDoor
;
private
System
.
Windows
.
Forms
.
Button
btnOpenLDoor
;
private
System
.
Windows
.
Forms
.
Button
btnRShelfBack
;
private
System
.
Windows
.
Forms
.
Button
btnRShelfForward
;
private
System
.
Windows
.
Forms
.
Button
button1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox2
;
private
System
.
Windows
.
Forms
.
TextBox
txtDOIndex
;
private
System
.
Windows
.
Forms
.
TextBox
txtDoName
;
private
System
.
Windows
.
Forms
.
Label
label17
;
private
System
.
Windows
.
Forms
.
Label
label14
;
private
System
.
Windows
.
Forms
.
Button
btnOpenDo
;
private
System
.
Windows
.
Forms
.
Button
button2
;
private
System
.
Windows
.
Forms
.
TextBox
txtWriteTime
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbWriteValue
;
private
System
.
Windows
.
Forms
.
Label
label6
;
private
System
.
Windows
.
Forms
.
Button
btnWriteSingleDO
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbWriteIO
;
private
System
.
Windows
.
Forms
.
Button
btnReadIO
;
private
System
.
Windows
.
Forms
.
CheckBox
chbAutoRead
;
private
System
.
Windows
.
Forms
.
TextBox
txtSlaveId
;
private
System
.
Windows
.
Forms
.
Label
label2
;
private
System
.
Windows
.
Forms
.
Button
btnReadAllDi
;
private
System
.
Windows
.
Forms
.
Button
btnReadAllDo
;
private
System
.
Windows
.
Forms
.
TextBox
txtDoName
;
private
System
.
Windows
.
Forms
.
Button
btnCloseDoor
;
private
System
.
Windows
.
Forms
.
Button
btnOpenDoor
;
private
System
.
Windows
.
Forms
.
Button
btnCloseAxisBreak
;
private
System
.
Windows
.
Forms
.
Button
btnOpenAxisBreak
;
private
System
.
Windows
.
Forms
.
Button
button1
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbWriteIO
;
private
System
.
Windows
.
Forms
.
Button
btnLShelfBack
;
private
System
.
Windows
.
Forms
.
Button
btnLShelfForward
;
private
System
.
Windows
.
Forms
.
Button
btnCloseRDoor
;
private
System
.
Windows
.
Forms
.
Button
btnOpenRDoor
;
}
}
source/ACSquareStore/FrmIOStatus.cs
查看文件 @
a3b477f
...
...
@@ -72,7 +72,7 @@ namespace OnlineStore.ACSingleStore
cmbWriteIO
.
DataSource
=
new
List
<
ConfigIO
>(
boxBean
.
Config
.
StoreDOList
.
Values
);
cmbWriteIO
.
ValueMember
=
"ProName"
;
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
cmbWrite
Value
.
SelectedIndex
=
0
;
cmbWrite
IO
.
SelectedIndex
=
0
;
}
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
...
...
@@ -99,22 +99,7 @@ namespace OnlineStore.ACSingleStore
LogUtil
.
error
(
LOGGER
,
ex
.
StackTrace
);
}
}
private
void
btnWriteSingleDO_Click
(
object
sender
,
EventArgs
e
)
{
string
deviceName
=
txtDoName
.
Text
;
int
index
=
FormUtil
.
GetIntValue
(
txtDOIndex
);
IO_VALUE
value
=
(
IO_VALUE
)
cmbWriteValue
.
SelectedIndex
;
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
()
{
...
...
@@ -147,37 +132,7 @@ namespace OnlineStore.ACSingleStore
private
void
FrmStoreIOStatus_Load
(
object
sender
,
EventArgs
e
)
{
//KNDAIManager.NeedShow = true;
}
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
cmbWriteValue_DrawItem
(
object
sender
,
DrawItemEventArgs
e
)
{
if
(
e
.
Index
<
0
)
{
return
;
}
e
.
DrawBackground
();
e
.
DrawFocusRectangle
();
if
(
cmbWriteValue
.
Items
.
Count
>
e
.
Index
)
{
e
.
Graphics
.
DrawString
(
cmbWriteValue
.
Items
[
e
.
Index
].
ToString
(),
e
.
Font
,
new
SolidBrush
(
e
.
ForeColor
),
e
.
Bounds
.
X
,
e
.
Bounds
.
Y
+
3
);
}
}
}
private
void
btnReadIO_Click
(
object
sender
,
EventArgs
e
)
{
ReadIOList
();
...
...
@@ -207,34 +162,14 @@ namespace OnlineStore.ACSingleStore
}
private
void
btnReadAllDi_Click
(
object
sender
,
EventArgs
e
)
{
string
deviceName
=
txtDoName
.
Text
;
IO_VALUE
value
=
(
IO_VALUE
)
cmbWriteValue
.
SelectedIndex
;
int
time
=
FormUtil
.
GetIntValue
(
txtWriteTime
);
int
slaveId
=
FormUtil
.
GetIntValue
(
txtSlaveId
);
IOManager
.
instance
.
ReadAllDI
(
deviceName
,
(
byte
)
slaveId
);
}
private
void
btnReadAllDo_Click
(
object
sender
,
EventArgs
e
)
{
string
deviceName
=
txtDoName
.
Text
;
IO_VALUE
value
=
(
IO_VALUE
)
cmbWriteValue
.
SelectedIndex
;
int
time
=
FormUtil
.
GetIntValue
(
txtWriteTime
);
int
slaveId
=
FormUtil
.
GetIntValue
(
txtSlaveId
);
IOManager
.
instance
.
ReadAllDO
(
deviceName
,
(
byte
)
slaveId
);
}
private
void
btnOpenDoor_Click
(
object
sender
,
EventArgs
e
)
{
//IOManager.IOMove(IO_Type.Door_Up, IO_VALUE.HIGH);
//IOManager.IOMove(IO_Type.Door_Down, IO_VALUE.LOW);
StoreManager
.
Store
.
OpenDoor
(
false
);
StoreManager
.
Store
.
OpenDoor
(
1
);
}
private
void
btnCloseDoor_Click
(
object
sender
,
EventArgs
e
)
{
//IOManager.IOMove(IO_Type.Door_Down, IO_VALUE.HIGH);
//IOManager.IOMove(IO_Type.Door_Up, IO_VALUE.LOW);
StoreManager
.
Store
.
CloseDoor
(
false
);
StoreManager
.
Store
.
CloseDoor
(
1
);
}
private
void
FrmIOStatus_Shown
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -243,12 +178,12 @@ namespace OnlineStore.ACSingleStore
private
void
btnOpenAxisBreak_Click
(
object
sender
,
EventArgs
e
)
{
IOManager
.
IOMove
(
IO_Type
.
Axis_Brake
,
IO_VALUE
.
HIGH
);
StoreManager
.
Store
.
ShelfForward
(
2
);
}
private
void
btnCloseAxisBreak_Click
(
object
sender
,
EventArgs
e
)
{
IOManager
.
IOMove
(
IO_Type
.
Axis_Brake
,
IO_VALUE
.
LOW
);
{
StoreManager
.
Store
.
ShelfBack
(
2
);
}
private
void
button1_Click
(
object
sender
,
EventArgs
e
)
...
...
@@ -256,6 +191,73 @@ namespace OnlineStore.ACSingleStore
this
.
Close
();
}
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
void
cmbWriteIO_SelectedIndexChanged_1
(
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
();
IOTextControl
newControl
=
DOControlList
[
io
.
ProName
];
if
(
selectControl
!=
null
)
{
selectControl
.
BackColor
=
Color
.
White
;
}
newControl
.
BackColor
=
Color
.
SkyBlue
;
selectControl
=
newControl
;
}
}
}
private
void
btnOpenRDoor_Click
(
object
sender
,
EventArgs
e
)
{
StoreManager
.
Store
.
OpenDoor
(
2
);
}
private
void
btnCloseRDoor_Click
(
object
sender
,
EventArgs
e
)
{
StoreManager
.
Store
.
OpenDoor
(
2
);
}
private
void
btnLShelfForward_Click
(
object
sender
,
EventArgs
e
)
{
StoreManager
.
Store
.
ShelfForward
(
1
);
}
private
void
btnLShelfBack_Click
(
object
sender
,
EventArgs
e
)
{
StoreManager
.
Store
.
ShelfBack
(
1
);
}
private
void
btnOpenB_Click
(
object
sender
,
EventArgs
e
)
{
IOManager
.
IOMove
(
IO_Type
.
Axis_Brake
,
IO_VALUE
.
HIGH
);
}
private
void
btnCloseB_Click
(
object
sender
,
EventArgs
e
)
{
IOManager
.
IOMove
(
IO_Type
.
Axis_Brake
,
IO_VALUE
.
LOW
);
}
}
}
source/ACSquareStore/FrmStoreBox.Designer.cs
查看文件 @
a3b477f
...
...
@@ -65,6 +65,9 @@
this
.
label49
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
richTextBox1
=
new
System
.
Windows
.
Forms
.
RichTextBox
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
axis_1_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
axis_3_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
axis_2_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
label38
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtMiddleTarget
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtInoutTarget
=
new
System
.
Windows
.
Forms
.
TextBox
();
...
...
@@ -82,6 +85,9 @@
this
.
label43
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label42
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
groupInout
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
rdbRight
=
new
System
.
Windows
.
Forms
.
RadioButton
();
this
.
rdbLeft
=
new
System
.
Windows
.
Forms
.
RadioButton
();
this
.
btnClearLog
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtInOutP3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btnInOutP3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblTemp
=
new
System
.
Windows
.
Forms
.
Label
();
...
...
@@ -120,9 +126,10 @@
this
.
btnUpDownP6
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownP3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownP4
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnClearLog
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblThisSta
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnOpenRDoor
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOpenLDoor
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblMoveEquipInfo
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
chbDebug
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
chbAuto
=
new
System
.
Windows
.
Forms
.
CheckBox
();
...
...
@@ -133,8 +140,6 @@
this
.
notifyIcon1
=
new
System
.
Windows
.
Forms
.
NotifyIcon
(
this
.
components
);
this
.
tabControl1
=
new
System
.
Windows
.
Forms
.
TabControl
();
this
.
tabPage3
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
btnCloseDoor
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOpenDoor
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
tabPage1
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
tabPage2
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
groupBox7
=
new
System
.
Windows
.
Forms
.
GroupBox
();
...
...
@@ -143,7 +148,6 @@
this
.
label29
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtTemp
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label28
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtTempPort
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label27
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnTempClose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTempInit
=
new
System
.
Windows
.
Forms
.
Button
();
...
...
@@ -165,9 +169,7 @@
this
.
button4
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnClearL
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnLogDebug
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
axis_1_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
axis_3_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
axis_2_Alarm
=
new
UserFromControl
.
IOStatusControl
();
this
.
cmbHumpPort
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
groupAxis
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupInout
.
SuspendLayout
();
...
...
@@ -193,9 +195,9 @@
//
this
.
lblWarnMsg
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblWarnMsg
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lblWarnMsg
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
61
);
this
.
lblWarnMsg
.
Location
=
new
System
.
Drawing
.
Point
(
409
,
15
);
this
.
lblWarnMsg
.
Name
=
"lblWarnMsg"
;
this
.
lblWarnMsg
.
Size
=
new
System
.
Drawing
.
Size
(
471
,
5
4
);
this
.
lblWarnMsg
.
Size
=
new
System
.
Drawing
.
Size
(
650
,
8
4
);
this
.
lblWarnMsg
.
TabIndex
=
224
;
this
.
lblWarnMsg
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
...
...
@@ -243,7 +245,7 @@
this
.
groupAxis
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupAxis
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
6
);
this
.
groupAxis
.
Name
=
"groupAxis"
;
this
.
groupAxis
.
Size
=
new
System
.
Drawing
.
Size
(
543
,
3
28
);
this
.
groupAxis
.
Size
=
new
System
.
Drawing
.
Size
(
543
,
3
12
);
this
.
groupAxis
.
TabIndex
=
216
;
this
.
groupAxis
.
TabStop
=
false
;
this
.
groupAxis
.
Text
=
"伺服运动"
;
...
...
@@ -676,7 +678,7 @@
this
.
richTextBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
richTextBox1
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
3
);
this
.
richTextBox1
.
Name
=
"richTextBox1"
;
this
.
richTextBox1
.
Size
=
new
System
.
Drawing
.
Size
(
545
,
5
36
);
this
.
richTextBox1
.
Size
=
new
System
.
Drawing
.
Size
(
545
,
5
11
);
this
.
richTextBox1
.
TabIndex
=
256
;
this
.
richTextBox1
.
Text
=
""
;
this
.
richTextBox1
.
VisibleChanged
+=
new
System
.
EventHandler
(
this
.
richTextBox1_VisibleChanged
);
...
...
@@ -705,13 +707,43 @@
this
.
groupBox1
.
Controls
.
Add
(
this
.
label43
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label42
);
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
(
6
,
3
43
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
3
22
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
543
,
182
);
this
.
groupBox1
.
TabIndex
=
217
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"伺服状态"
;
//
// axis_1_Alarm
//
this
.
axis_1_Alarm
.
IOName
=
""
;
this
.
axis_1_Alarm
.
IOValue
=
0
;
this
.
axis_1_Alarm
.
isCanClick
=
false
;
this
.
axis_1_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
234
,
44
);
this
.
axis_1_Alarm
.
Name
=
"axis_1_Alarm"
;
this
.
axis_1_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_1_Alarm
.
TabIndex
=
264
;
//
// axis_3_Alarm
//
this
.
axis_3_Alarm
.
IOName
=
""
;
this
.
axis_3_Alarm
.
IOValue
=
0
;
this
.
axis_3_Alarm
.
isCanClick
=
false
;
this
.
axis_3_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
136
,
44
);
this
.
axis_3_Alarm
.
Name
=
"axis_3_Alarm"
;
this
.
axis_3_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_3_Alarm
.
TabIndex
=
266
;
//
// axis_2_Alarm
//
this
.
axis_2_Alarm
.
IOName
=
""
;
this
.
axis_2_Alarm
.
IOValue
=
0
;
this
.
axis_2_Alarm
.
isCanClick
=
false
;
this
.
axis_2_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
331
,
44
);
this
.
axis_2_Alarm
.
Name
=
"axis_2_Alarm"
;
this
.
axis_2_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_2_Alarm
.
TabIndex
=
265
;
//
// label38
//
this
.
label38
.
AutoSize
=
true
;
...
...
@@ -856,6 +888,9 @@
//
// groupInout
//
this
.
groupInout
.
Controls
.
Add
(
this
.
rdbRight
);
this
.
groupInout
.
Controls
.
Add
(
this
.
rdbLeft
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnClearLog
);
this
.
groupInout
.
Controls
.
Add
(
this
.
txtInOutP3
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnInOutP3
);
this
.
groupInout
.
Controls
.
Add
(
this
.
lblTemp
);
...
...
@@ -895,13 +930,47 @@
this
.
groupInout
.
Controls
.
Add
(
this
.
btnUpDownP3
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnUpDownP4
);
this
.
groupInout
.
Enabled
=
false
;
this
.
groupInout
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
218
);
this
.
groupInout
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
193
);
this
.
groupInout
.
Name
=
"groupInout"
;
this
.
groupInout
.
Size
=
new
System
.
Drawing
.
Size
(
496
,
5
19
);
this
.
groupInout
.
Size
=
new
System
.
Drawing
.
Size
(
496
,
5
50
);
this
.
groupInout
.
TabIndex
=
100
;
this
.
groupInout
.
TabStop
=
false
;
this
.
groupInout
.
Text
=
"料仓操作"
;
//
// rdbRight
//
this
.
rdbRight
.
AutoSize
=
true
;
this
.
rdbRight
.
Location
=
new
System
.
Drawing
.
Point
(
176
,
70
);
this
.
rdbRight
.
Name
=
"rdbRight"
;
this
.
rdbRight
.
Size
=
new
System
.
Drawing
.
Size
(
83
,
24
);
this
.
rdbRight
.
TabIndex
=
274
;
this
.
rdbRight
.
Text
=
"右侧入口"
;
this
.
rdbRight
.
UseVisualStyleBackColor
=
true
;
//
// rdbLeft
//
this
.
rdbLeft
.
AutoSize
=
true
;
this
.
rdbLeft
.
Checked
=
true
;
this
.
rdbLeft
.
Location
=
new
System
.
Drawing
.
Point
(
54
,
70
);
this
.
rdbLeft
.
Name
=
"rdbLeft"
;
this
.
rdbLeft
.
Size
=
new
System
.
Drawing
.
Size
(
83
,
24
);
this
.
rdbLeft
.
TabIndex
=
273
;
this
.
rdbLeft
.
TabStop
=
true
;
this
.
rdbLeft
.
Text
=
"左侧入口"
;
this
.
rdbLeft
.
UseVisualStyleBackColor
=
true
;
//
// btnClearLog
//
this
.
btnClearLog
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClearLog
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClearLog
.
Location
=
new
System
.
Drawing
.
Point
(
362
,
468
);
this
.
btnClearLog
.
Name
=
"btnClearLog"
;
this
.
btnClearLog
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnClearLog
.
TabIndex
=
224
;
this
.
btnClearLog
.
Text
=
"清理日志"
;
this
.
btnClearLog
.
UseVisualStyleBackColor
=
true
;
this
.
btnClearLog
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClearLog_Click
);
//
// txtInOutP3
//
this
.
txtInOutP3
.
AcceptsReturn
=
true
;
...
...
@@ -909,7 +978,7 @@
this
.
txtInOutP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtInOutP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtInOutP3
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtInOutP3
.
Location
=
new
System
.
Drawing
.
Point
(
394
,
181
);
this
.
txtInOutP3
.
Location
=
new
System
.
Drawing
.
Point
(
394
,
213
);
this
.
txtInOutP3
.
MaxLength
=
20
;
this
.
txtInOutP3
.
Name
=
"txtInOutP3"
;
this
.
txtInOutP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -926,7 +995,7 @@
this
.
btnInOutP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInOutP3
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
btnInOutP3
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnInOutP3
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
176
);
this
.
btnInOutP3
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
208
);
this
.
btnInOutP3
.
Name
=
"btnInOutP3"
;
this
.
btnInOutP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnInOutP3
.
Size
=
new
System
.
Drawing
.
Size
(
146
,
33
);
...
...
@@ -940,7 +1009,7 @@
this
.
lblTemp
.
AutoSize
=
true
;
this
.
lblTemp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblTemp
.
ForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
lblTemp
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
4
64
);
this
.
lblTemp
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
4
76
);
this
.
lblTemp
.
Name
=
"lblTemp"
;
this
.
lblTemp
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
20
);
this
.
lblTemp
.
TabIndex
=
270
;
...
...
@@ -951,7 +1020,7 @@
this
.
lblMsg
.
AutoSize
=
true
;
this
.
lblMsg
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblMsg
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblMsg
.
Location
=
new
System
.
Drawing
.
Point
(
269
,
85
);
this
.
lblMsg
.
Location
=
new
System
.
Drawing
.
Point
(
269
,
117
);
this
.
lblMsg
.
Name
=
"lblMsg"
;
this
.
lblMsg
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
20
);
this
.
lblMsg
.
TabIndex
=
223
;
...
...
@@ -962,7 +1031,7 @@
this
.
btnSavePosition
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnSavePosition
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnSavePosition
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnSavePosition
.
Location
=
new
System
.
Drawing
.
Point
(
362
,
460
);
this
.
btnSavePosition
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
468
);
this
.
btnSavePosition
.
Name
=
"btnSavePosition"
;
this
.
btnSavePosition
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnSavePosition
.
TabIndex
=
217
;
...
...
@@ -975,7 +1044,7 @@
this
.
btnStartAuTo
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnStartAuTo
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnStartAuTo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnStartAuTo
.
Location
=
new
System
.
Drawing
.
Point
(
158
,
76
);
this
.
btnStartAuTo
.
Location
=
new
System
.
Drawing
.
Point
(
158
,
108
);
this
.
btnStartAuTo
.
Name
=
"btnStartAuTo"
;
this
.
btnStartAuTo
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnStartAuTo
.
TabIndex
=
222
;
...
...
@@ -987,7 +1056,7 @@
//
this
.
label9
.
AutoSize
=
true
;
this
.
label9
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label9
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
87
);
this
.
label9
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
119
);
this
.
label9
.
Name
=
"label9"
;
this
.
label9
.
Size
=
new
System
.
Drawing
.
Size
(
83
,
17
);
this
.
label9
.
TabIndex
=
220
;
...
...
@@ -995,7 +1064,7 @@
//
// txtJiange
//
this
.
txtJiange
.
Location
=
new
System
.
Drawing
.
Point
(
107
,
82
);
this
.
txtJiange
.
Location
=
new
System
.
Drawing
.
Point
(
107
,
114
);
this
.
txtJiange
.
Name
=
"txtJiange"
;
this
.
txtJiange
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
26
);
this
.
txtJiange
.
TabIndex
=
221
;
...
...
@@ -1008,7 +1077,7 @@
this
.
txtInOutP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtInOutP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtInOutP2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtInOutP2
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
180
);
this
.
txtInOutP2
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
212
);
this
.
txtInOutP2
.
MaxLength
=
20
;
this
.
txtInOutP2
.
Name
=
"txtInOutP2"
;
this
.
txtInOutP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1023,7 +1092,7 @@
this
.
txtInOutP1
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtInOutP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtInOutP1
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtInOutP1
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
1
40
);
this
.
txtInOutP1
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
1
72
);
this
.
txtInOutP1
.
MaxLength
=
20
;
this
.
txtInOutP1
.
Name
=
"txtInOutP1"
;
this
.
txtInOutP1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1038,7 +1107,7 @@
this
.
txtMiddleP1
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtMiddleP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtMiddleP1
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtMiddleP1
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
2
20
);
this
.
txtMiddleP1
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
2
52
);
this
.
txtMiddleP1
.
MaxLength
=
20
;
this
.
txtMiddleP1
.
Name
=
"txtMiddleP1"
;
this
.
txtMiddleP1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1053,7 +1122,7 @@
this
.
txtUpDownP7
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP7
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP7
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP7
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
3
40
);
this
.
txtUpDownP7
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
3
72
);
this
.
txtUpDownP7
.
MaxLength
=
20
;
this
.
txtUpDownP7
.
Name
=
"txtUpDownP7"
;
this
.
txtUpDownP7
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1068,7 +1137,7 @@
this
.
txtUpDownP8
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP8
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP8
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP8
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
380
);
this
.
txtUpDownP8
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
412
);
this
.
txtUpDownP8
.
MaxLength
=
20
;
this
.
txtUpDownP8
.
Name
=
"txtUpDownP8"
;
this
.
txtUpDownP8
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1083,7 +1152,7 @@
this
.
txtUpDownP1
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP1
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP1
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
2
60
);
this
.
txtUpDownP1
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
2
92
);
this
.
txtUpDownP1
.
MaxLength
=
20
;
this
.
txtUpDownP1
.
Name
=
"txtUpDownP1"
;
this
.
txtUpDownP1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1098,7 +1167,7 @@
this
.
txtUpDownP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP2
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
3
00
);
this
.
txtUpDownP2
.
Location
=
new
System
.
Drawing
.
Point
(
153
,
3
32
);
this
.
txtUpDownP2
.
MaxLength
=
20
;
this
.
txtUpDownP2
.
Name
=
"txtUpDownP2"
;
this
.
txtUpDownP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1113,7 +1182,7 @@
this
.
txtInOutP4
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtInOutP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtInOutP4
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtInOutP4
.
Location
=
new
System
.
Drawing
.
Point
(
395
,
1
40
);
this
.
txtInOutP4
.
Location
=
new
System
.
Drawing
.
Point
(
395
,
1
72
);
this
.
txtInOutP4
.
MaxLength
=
20
;
this
.
txtInOutP4
.
Name
=
"txtInOutP4"
;
this
.
txtInOutP4
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1128,7 +1197,7 @@
this
.
txtMiddleP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtMiddleP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtMiddleP2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtMiddleP2
.
Location
=
new
System
.
Drawing
.
Point
(
395
,
2
20
);
this
.
txtMiddleP2
.
Location
=
new
System
.
Drawing
.
Point
(
395
,
2
52
);
this
.
txtMiddleP2
.
MaxLength
=
20
;
this
.
txtMiddleP2
.
Name
=
"txtMiddleP2"
;
this
.
txtMiddleP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1143,7 +1212,7 @@
this
.
txtUpDownP5
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP5
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP5
.
Location
=
new
System
.
Drawing
.
Point
(
395
,
3
40
);
this
.
txtUpDownP5
.
Location
=
new
System
.
Drawing
.
Point
(
395
,
3
72
);
this
.
txtUpDownP5
.
MaxLength
=
20
;
this
.
txtUpDownP5
.
Name
=
"txtUpDownP5"
;
this
.
txtUpDownP5
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1158,7 +1227,7 @@
this
.
txtUpDownP6
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP6
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP6
.
Location
=
new
System
.
Drawing
.
Point
(
395
,
380
);
this
.
txtUpDownP6
.
Location
=
new
System
.
Drawing
.
Point
(
395
,
412
);
this
.
txtUpDownP6
.
MaxLength
=
20
;
this
.
txtUpDownP6
.
Name
=
"txtUpDownP6"
;
this
.
txtUpDownP6
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1198,7 +1267,7 @@
this
.
txtUpDownP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP3
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP3
.
Location
=
new
System
.
Drawing
.
Point
(
395
,
2
60
);
this
.
txtUpDownP3
.
Location
=
new
System
.
Drawing
.
Point
(
395
,
2
92
);
this
.
txtUpDownP3
.
MaxLength
=
20
;
this
.
txtUpDownP3
.
Name
=
"txtUpDownP3"
;
this
.
txtUpDownP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1239,7 +1308,7 @@
this
.
txtUpDownP4
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP4
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP4
.
Location
=
new
System
.
Drawing
.
Point
(
395
,
3
00
);
this
.
txtUpDownP4
.
Location
=
new
System
.
Drawing
.
Point
(
395
,
3
32
);
this
.
txtUpDownP4
.
MaxLength
=
20
;
this
.
txtUpDownP4
.
Name
=
"txtUpDownP4"
;
this
.
txtUpDownP4
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
...
...
@@ -1256,7 +1325,7 @@
this
.
btnInOutP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInOutP2
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
btnInOutP2
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnInOutP2
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
175
);
this
.
btnInOutP2
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
207
);
this
.
btnInOutP2
.
Name
=
"btnInOutP2"
;
this
.
btnInOutP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnInOutP2
.
Size
=
new
System
.
Drawing
.
Size
(
146
,
33
);
...
...
@@ -1275,7 +1344,7 @@
this
.
btnInOutP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInOutP1
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
btnInOutP1
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnInOutP1
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
1
35
);
this
.
btnInOutP1
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
1
67
);
this
.
btnInOutP1
.
Name
=
"btnInOutP1"
;
this
.
btnInOutP1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnInOutP1
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
33
);
...
...
@@ -1294,7 +1363,7 @@
this
.
btnMiddleP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnMiddleP1
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
192
)))));
this
.
btnMiddleP1
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnMiddleP1
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
2
15
);
this
.
btnMiddleP1
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
2
47
);
this
.
btnMiddleP1
.
Name
=
"btnMiddleP1"
;
this
.
btnMiddleP1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnMiddleP1
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
33
);
...
...
@@ -1313,7 +1382,7 @@
this
.
btnUpDownP7
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP7
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnUpDownP7
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnUpDownP7
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
3
35
);
this
.
btnUpDownP7
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
3
67
);
this
.
btnUpDownP7
.
Name
=
"btnUpDownP7"
;
this
.
btnUpDownP7
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP7
.
Size
=
new
System
.
Drawing
.
Size
(
145
,
33
);
...
...
@@ -1332,7 +1401,7 @@
this
.
btnUpDownP8
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP8
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnUpDownP8
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnUpDownP8
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
375
);
this
.
btnUpDownP8
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
407
);
this
.
btnUpDownP8
.
Name
=
"btnUpDownP8"
;
this
.
btnUpDownP8
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP8
.
Size
=
new
System
.
Drawing
.
Size
(
145
,
33
);
...
...
@@ -1351,7 +1420,7 @@
this
.
btnUpDownP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP1
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnUpDownP1
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnUpDownP1
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
2
55
);
this
.
btnUpDownP1
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
2
87
);
this
.
btnUpDownP1
.
Name
=
"btnUpDownP1"
;
this
.
btnUpDownP1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP1
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
33
);
...
...
@@ -1370,7 +1439,7 @@
this
.
btnUpDownP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP2
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnUpDownP2
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnUpDownP2
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
295
);
this
.
btnUpDownP2
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
327
);
this
.
btnUpDownP2
.
Name
=
"btnUpDownP2"
;
this
.
btnUpDownP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP2
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
33
);
...
...
@@ -1388,7 +1457,7 @@
this
.
btnInOutP4
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnInOutP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInOutP4
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
btnInOutP4
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
1
35
);
this
.
btnInOutP4
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
1
67
);
this
.
btnInOutP4
.
Name
=
"btnInOutP4"
;
this
.
btnInOutP4
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnInOutP4
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
33
);
...
...
@@ -1406,7 +1475,7 @@
this
.
btnMiddleP2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnMiddleP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnMiddleP2
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
192
)))));
this
.
btnMiddleP2
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
2
15
);
this
.
btnMiddleP2
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
2
47
);
this
.
btnMiddleP2
.
Name
=
"btnMiddleP2"
;
this
.
btnMiddleP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnMiddleP2
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
33
);
...
...
@@ -1424,7 +1493,7 @@
this
.
btnUpDownP5
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpDownP5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP5
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnUpDownP5
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
3
35
);
this
.
btnUpDownP5
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
3
67
);
this
.
btnUpDownP5
.
Name
=
"btnUpDownP5"
;
this
.
btnUpDownP5
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP5
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
33
);
...
...
@@ -1442,7 +1511,7 @@
this
.
btnUpDownP6
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpDownP6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP6
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnUpDownP6
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
375
);
this
.
btnUpDownP6
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
407
);
this
.
btnUpDownP6
.
Name
=
"btnUpDownP6"
;
this
.
btnUpDownP6
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP6
.
Size
=
new
System
.
Drawing
.
Size
(
145
,
33
);
...
...
@@ -1460,7 +1529,7 @@
this
.
btnUpDownP3
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpDownP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP3
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnUpDownP3
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
2
55
);
this
.
btnUpDownP3
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
2
87
);
this
.
btnUpDownP3
.
Name
=
"btnUpDownP3"
;
this
.
btnUpDownP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP3
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
33
);
...
...
@@ -1478,7 +1547,7 @@
this
.
btnUpDownP4
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpDownP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP4
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnUpDownP4
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
295
);
this
.
btnUpDownP4
.
Location
=
new
System
.
Drawing
.
Point
(
251
,
327
);
this
.
btnUpDownP4
.
Name
=
"btnUpDownP4"
;
this
.
btnUpDownP4
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP4
.
Size
=
new
System
.
Drawing
.
Size
(
145
,
33
);
...
...
@@ -1488,25 +1557,12 @@
this
.
btnUpDownP4
.
UseVisualStyleBackColor
=
false
;
this
.
btnUpDownP4
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownP4_Click
);
//
// btnClearLog
//
this
.
btnClearLog
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btnClearLog
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnClearLog
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnClearLog
.
Location
=
new
System
.
Drawing
.
Point
(
310
,
556
);
this
.
btnClearLog
.
Name
=
"btnClearLog"
;
this
.
btnClearLog
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnClearLog
.
TabIndex
=
224
;
this
.
btnClearLog
.
Text
=
"清理日志"
;
this
.
btnClearLog
.
UseVisualStyleBackColor
=
true
;
this
.
btnClearLog
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClearLog_Click
);
//
// lblThisSta
//
this
.
lblThisSta
.
AutoSize
=
true
;
this
.
lblThisSta
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Bold
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblThisSta
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblThisSta
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
30
);
this
.
lblThisSta
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
27
);
this
.
lblThisSta
.
Name
=
"lblThisSta"
;
this
.
lblThisSta
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
19
);
this
.
lblThisSta
.
TabIndex
=
216
;
...
...
@@ -1514,22 +1570,50 @@
//
// groupBox3
//
this
.
groupBox3
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupBox3
.
Controls
.
Add
(
this
.
btnOpenRDoor
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
btnOpenLDoor
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
lblMoveEquipInfo
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
lblWarnMsg
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
lblThisSta
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
90
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
86
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
496
,
124
);
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
1063
,
105
);
this
.
groupBox3
.
TabIndex
=
268
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"设备状态"
;
//
// btnOpenRDoor
//
this
.
btnOpenRDoor
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenRDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenRDoor
.
Location
=
new
System
.
Drawing
.
Point
(
176
,
59
);
this
.
btnOpenRDoor
.
Name
=
"btnOpenRDoor"
;
this
.
btnOpenRDoor
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
40
);
this
.
btnOpenRDoor
.
TabIndex
=
274
;
this
.
btnOpenRDoor
.
Text
=
"右侧门-打开"
;
this
.
btnOpenRDoor
.
UseVisualStyleBackColor
=
true
;
this
.
btnOpenRDoor
.
Visible
=
false
;
//
// btnOpenLDoor
//
this
.
btnOpenLDoor
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenLDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenLDoor
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
59
);
this
.
btnOpenLDoor
.
Name
=
"btnOpenLDoor"
;
this
.
btnOpenLDoor
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
40
);
this
.
btnOpenLDoor
.
TabIndex
=
273
;
this
.
btnOpenLDoor
.
Text
=
"左侧门-打开"
;
this
.
btnOpenLDoor
.
UseVisualStyleBackColor
=
true
;
this
.
btnOpenLDoor
.
Visible
=
false
;
//
// lblMoveEquipInfo
//
this
.
lblMoveEquipInfo
.
AutoSize
=
true
;
this
.
lblMoveEquipInfo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Bold
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblMoveEquipInfo
.
ForeColor
=
System
.
Drawing
.
Color
.
Blue
;
this
.
lblMoveEquipInfo
.
Location
=
new
System
.
Drawing
.
Point
(
154
,
30
);
this
.
lblMoveEquipInfo
.
Location
=
new
System
.
Drawing
.
Point
(
154
,
27
);
this
.
lblMoveEquipInfo
.
Name
=
"lblMoveEquipInfo"
;
this
.
lblMoveEquipInfo
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
19
);
this
.
lblMoveEquipInfo
.
TabIndex
=
272
;
...
...
@@ -1606,51 +1690,22 @@
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage3
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage1
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage2
);
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
5
09
,
89
);
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
5
10
,
193
);
this
.
tabControl1
.
Name
=
"tabControl1"
;
this
.
tabControl1
.
SelectedIndex
=
0
;
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
568
,
649
);
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
568
,
550
);
this
.
tabControl1
.
TabIndex
=
272
;
//
// tabPage3
//
this
.
tabPage3
.
Controls
.
Add
(
this
.
btnClearLog
);
this
.
tabPage3
.
Controls
.
Add
(
this
.
btnCloseDoor
);
this
.
tabPage3
.
Controls
.
Add
(
this
.
btnOpenDoor
);
this
.
tabPage3
.
Controls
.
Add
(
this
.
richTextBox1
);
this
.
tabPage3
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
29
);
this
.
tabPage3
.
Name
=
"tabPage3"
;
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
560
,
616
);
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
560
,
517
);
this
.
tabPage3
.
TabIndex
=
2
;
this
.
tabPage3
.
Text
=
" 操作日志 "
;
this
.
tabPage3
.
UseVisualStyleBackColor
=
true
;
//
// btnCloseDoor
//
this
.
btnCloseDoor
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btnCloseDoor
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCloseDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseDoor
.
Location
=
new
System
.
Drawing
.
Point
(
146
,
556
);
this
.
btnCloseDoor
.
Name
=
"btnCloseDoor"
;
this
.
btnCloseDoor
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnCloseDoor
.
TabIndex
=
258
;
this
.
btnCloseDoor
.
Text
=
"关闭仓门"
;
this
.
btnCloseDoor
.
UseVisualStyleBackColor
=
true
;
this
.
btnCloseDoor
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCloseDoor_Click
);
//
// btnOpenDoor
//
this
.
btnOpenDoor
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btnOpenDoor
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenDoor
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDoor
.
Location
=
new
System
.
Drawing
.
Point
(
29
,
556
);
this
.
btnOpenDoor
.
Name
=
"btnOpenDoor"
;
this
.
btnOpenDoor
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnOpenDoor
.
TabIndex
=
257
;
this
.
btnOpenDoor
.
Text
=
"打开仓门"
;
this
.
btnOpenDoor
.
UseVisualStyleBackColor
=
true
;
this
.
btnOpenDoor
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenDoor_Click
);
//
// tabPage1
//
this
.
tabPage1
.
Controls
.
Add
(
this
.
groupAxis
);
...
...
@@ -1658,7 +1713,7 @@
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
(
560
,
616
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
560
,
517
);
this
.
tabPage1
.
TabIndex
=
0
;
this
.
tabPage1
.
Text
=
" 伺服调试 "
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -1669,19 +1724,19 @@
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
29
);
this
.
tabPage2
.
Name
=
"tabPage2"
;
this
.
tabPage2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
560
,
616
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
560
,
517
);
this
.
tabPage2
.
TabIndex
=
1
;
this
.
tabPage2
.
Text
=
" 温湿度 "
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
//
// groupBox7
//
this
.
groupBox7
.
Controls
.
Add
(
this
.
cmbHumpPort
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
btnSelTemp
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
txtHum
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
label29
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
txtTemp
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
label28
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
txtTempPort
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
label27
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
btnTempClose
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
btnTempInit
);
...
...
@@ -1747,16 +1802,6 @@
this
.
label28
.
Text
=
"温度:"
;
this
.
label28
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// txtTempPort
//
this
.
txtTempPort
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtTempPort
.
Location
=
new
System
.
Drawing
.
Point
(
95
,
28
);
this
.
txtTempPort
.
MaxLength
=
10
;
this
.
txtTempPort
.
Name
=
"txtTempPort"
;
this
.
txtTempPort
.
Size
=
new
System
.
Drawing
.
Size
(
87
,
26
);
this
.
txtTempPort
.
TabIndex
=
243
;
this
.
txtTempPort
.
Text
=
"0"
;
//
// label27
//
this
.
label27
.
AutoSize
=
true
;
...
...
@@ -2018,35 +2063,16 @@
this
.
btnLogDebug
.
UseVisualStyleBackColor
=
true
;
this
.
btnLogDebug
.
Click
+=
new
System
.
EventHandler
(
this
.
开启
DEBUGToolStripMenuItem_Click
);
//
// axis_1_Alarm
//
this
.
axis_1_Alarm
.
IOName
=
""
;
this
.
axis_1_Alarm
.
IOValue
=
0
;
this
.
axis_1_Alarm
.
isCanClick
=
false
;
this
.
axis_1_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
234
,
44
);
this
.
axis_1_Alarm
.
Name
=
"axis_1_Alarm"
;
this
.
axis_1_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_1_Alarm
.
TabIndex
=
264
;
//
// axis_3_Alarm
//
this
.
axis_3_Alarm
.
IOName
=
""
;
this
.
axis_3_Alarm
.
IOValue
=
0
;
this
.
axis_3_Alarm
.
isCanClick
=
false
;
this
.
axis_3_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
136
,
44
);
this
.
axis_3_Alarm
.
Name
=
"axis_3_Alarm"
;
this
.
axis_3_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_3_Alarm
.
TabIndex
=
266
;
//
// axis_2_Alarm
// cmbHumpPort
//
this
.
axis_2_Alarm
.
IOName
=
""
;
this
.
axis_2_Alarm
.
IOValue
=
0
;
this
.
axis_2_Alarm
.
isCanClick
=
false
;
this
.
axis_2_Alarm
.
Location
=
new
System
.
Drawing
.
Point
(
331
,
44
);
this
.
axis_2_Alarm
.
Name
=
"axis_2_Alarm"
;
this
.
axis_2_Alarm
.
Size
=
new
System
.
Drawing
.
Size
(
43
,
39
);
this
.
axis_2_Alarm
.
TabIndex
=
265
;
this
.
cmbHumpPort
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbHumpPort
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbHumpPort
.
FormattingEnabled
=
true
;
this
.
cmbHumpPort
.
Location
=
new
System
.
Drawing
.
Point
(
95
,
27
);
this
.
cmbHumpPort
.
Name
=
"cmbHumpPort"
;
this
.
cmbHumpPort
.
Size
=
new
System
.
Drawing
.
Size
(
87
,
28
);
this
.
cmbHumpPort
.
TabIndex
=
273
;
this
.
cmbHumpPort
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbHumpPort_SelectedIndexChanged
);
//
// FrmStoreBox
//
...
...
@@ -2202,12 +2228,9 @@
private
System
.
Windows
.
Forms
.
Label
label29
;
private
System
.
Windows
.
Forms
.
TextBox
txtTemp
;
private
System
.
Windows
.
Forms
.
Label
label28
;
private
System
.
Windows
.
Forms
.
TextBox
txtTempPort
;
private
System
.
Windows
.
Forms
.
Label
label27
;
private
System
.
Windows
.
Forms
.
Button
btnTempClose
;
private
System
.
Windows
.
Forms
.
Button
btnTempInit
;
private
System
.
Windows
.
Forms
.
Button
btnCloseDoor
;
private
System
.
Windows
.
Forms
.
Button
btnOpenDoor
;
private
System
.
Windows
.
Forms
.
TabControl
tabControl2
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage4
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage5
;
...
...
@@ -2237,6 +2260,11 @@
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator1
;
public
System
.
Windows
.
Forms
.
TextBox
txtInOutP3
;
public
System
.
Windows
.
Forms
.
Button
btnInOutP3
;
private
System
.
Windows
.
Forms
.
RadioButton
rdbRight
;
private
System
.
Windows
.
Forms
.
RadioButton
rdbLeft
;
private
System
.
Windows
.
Forms
.
Button
btnOpenRDoor
;
private
System
.
Windows
.
Forms
.
Button
btnOpenLDoor
;
private
System
.
Windows
.
Forms
.
ComboBox
cmbHumpPort
;
}
}
source/ACSquareStore/FrmStoreBox.cs
查看文件 @
a3b477f
...
...
@@ -52,7 +52,16 @@ namespace OnlineStore.ACSingleStore
//cmbHomeType.SelectedIndex = 1;
HideForm
();
this
.
Opacity
=
1
;
txtTempPort
.
Text
=
store
.
Config
.
Humiture_Port
;
cmbHumpPort
.
Items
.
Clear
();
foreach
(
string
str
in
store
.
Config
.
GetHumpPortList
())
{
cmbHumpPort
.
Items
.
Add
(
str
);
}
if
(
cmbHumpPort
.
Items
.
Count
>
0
)
{
cmbHumpPort
.
SelectedIndex
=
0
;
}
// txtTempPort.Text = store.Config.Humiture_Port;
LoadOk
=
true
;
}
...
...
@@ -161,6 +170,15 @@ namespace OnlineStore.ACSingleStore
LoadOk
=
true
;
}
lblTemp
.
Text
=
store
.
currTempStr
;
if
(
store
.
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
InStore
)
||
store
.
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
OutStore
))
{
lblMoveEquipInfo
.
Text
=
store
.
StoreMove
.
MoveParam
.
PosInfo
.
ToStr
()+
""
;
}
else
{
lblMoveEquipInfo
.
Text
=
""
;
}
// lblMoveEquipInfo.Text = "移栽状态:" + (LineConnect.CanStartOut() ? "可出库" : "不可出库") + " " + LineConnect.LastUpdateTime.ToLongTimeString();
//忙碌状态不读取状态
if
(!
store
.
storeRunStatus
.
Equals
(
StoreRunStatus
.
Busy
))
...
...
@@ -343,7 +361,9 @@ namespace OnlineStore.ACSingleStore
{
string
selectPositionNum
=
cmbPosition
.
Text
;
LineMoveP
ktk
=
LoadPostion
();
store
.
StartOutStoreMove
(
new
InOutParam
(
new
InOutPosInfo
(
""
,
selectPositionNum
),
ktk
));
InOutPosInfo
pos
=
new
InOutPosInfo
(
""
,
selectPositionNum
);
pos
.
ShelfType
=
rdbLeft
.
Checked
?
1
:
2
;
store
.
StartOutStoreMove
(
new
InOutParam
(
pos
,
ktk
));
}
else
{
...
...
@@ -357,7 +377,9 @@ namespace OnlineStore.ACSingleStore
{
string
selectPositionNum
=
cmbPosition
.
Text
;
LineMoveP
ktk
=
LoadPostion
();
store
.
StartInStoreMove
(
new
InOutParam
(
new
InOutPosInfo
(
""
,
selectPositionNum
),
ktk
));
InOutPosInfo
pos
=
new
InOutPosInfo
(
""
,
selectPositionNum
);
pos
.
ShelfType
=
rdbLeft
.
Checked
?
1
:
2
;
store
.
StartInStoreMove
(
new
InOutParam
(
pos
,
ktk
));
}
else
{
...
...
@@ -789,11 +811,14 @@ namespace OnlineStore.ACSingleStore
int
currIndex
=
cmbPosition
.
SelectedIndex
;
store
.
autoPositionIndex
=
currIndex
;
store
.
AutoStartIndex
=
currIndex
;
store
.
autoShelfType
=
rdbLeft
.
Checked
?
1
:
2
;
string
poText
=
cmbPosition
.
Text
;
store
.
autoMsg
=
"自动出库:"
+
poText
;
LogUtil
.
info
(
LOGGER
,
store
.
StoreName
+
"开启自动出入库模式,开始位置【"
+
poText
+
"】(索引="
+
currIndex
+
"),间隔="
+
jiange
+
",入库开始!"
);
//store.StartOutStoreMove(new InOutStoreParam("", poText));
store
.
StartInStoreMove
(
new
InOutParam
(
new
InOutPosInfo
(
"AUTOINOUT"
,
poText
)));
InOutPosInfo
pos
=
new
InOutPosInfo
(
"AUTOINOUT"
,
poText
);
pos
.
ShelfType
=
store
.
autoShelfType
;
store
.
StartInStoreMove
(
new
InOutParam
(
pos
));
}
btnStartAuTo
.
Text
=
"停止自动出入库"
;
}
...
...
@@ -867,10 +892,7 @@ namespace OnlineStore.ACSingleStore
LogUtil
.
info
(
"料仓运转ON完成"
);
}
private
void
打开舱门
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
StoreManager
.
Store
.
OpenDoor
(
false
);
}
private
void
料仓运转
OFFToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -878,11 +900,7 @@ namespace OnlineStore.ACSingleStore
LogUtil
.
info
(
"料仓运转OFF完成"
);
}
private
void
关闭仓门
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
StoreManager
.
Store
.
CloseDoor
(
false
);
}
private
void
回待机点
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
if
(
store
.
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
...
...
@@ -1070,34 +1088,50 @@ namespace OnlineStore.ACSingleStore
ExitApp
();
}
}
private
void
UpdateBtnEn
(
)
{
string
port
=
cmbHumpPort
.
Text
;
if
(
HumitureController
.
IsRun
(
port
))
{
btnTempInit
.
Enabled
=
false
;
btnTempClose
.
Enabled
=
true
;
}
else
{
btnTempInit
.
Enabled
=
true
;
btnTempClose
.
Enabled
=
false
;
}
}
private
void
btnTempInit_Click
(
object
sender
,
EventArgs
e
)
{
string
port
=
txtTempPort
.
Text
.
ToString
();
if
(
HumitureController
.
IsRun
)
string
port
=
cmbHumpPort
.
Text
.
ToString
();
if
(
HumitureController
.
IsRun
(
port
))
{
HumitureController
.
Release
(
port
);
}
bool
result
=
HumitureController
.
Init
(
port
);
if
(!
result
)
{
HumitureController
.
Release
(
);
MessageBox
.
Show
(
"初始化 "
+
port
+
" 失败"
);
}
HumitureController
.
Init
(
port
);
UpdateBtnEn
(
);
}
private
void
btnTempClose_Click
(
object
sender
,
EventArgs
e
)
{
HumitureController
.
Release
();
string
port
=
cmbHumpPort
.
Text
.
ToString
();
HumitureController
.
Release
(
port
);
UpdateBtnEn
();
}
private
void
btnSelTemp_Click
(
object
sender
,
EventArgs
e
)
{
ASTemperateParam
param
=
HumitureController
.
QueryData
();
ASTemperateParam
param
=
HumitureController
.
QueryData
(
cmbHumpPort
.
Text
);
txtTemp
.
Text
=
param
.
Temperate
.
ToString
();
txtHum
.
Text
=
param
.
Humidity
.
ToString
();
}
private
void
btnOpenDoor_Click
(
object
sender
,
EventArgs
e
)
{
//IOManager.IOMove(IO_Type.Door_Up, IO_VALUE.HIGH);
//IOManager.IOMove(IO_Type.Door_Down, IO_VALUE.LOW);
StoreManager
.
Store
.
OpenDoor
(
false
);
}
private
void
btnClearL_Click
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -1134,16 +1168,7 @@ namespace OnlineStore.ACSingleStore
{
DebugStatus
(
false
);
}
}
private
void
btnCloseDoor_Click
(
object
sender
,
EventArgs
e
)
{
//IOManager.IOMove(IO_Type.Door_Up, IO_VALUE.LOW);
//IOManager.IOMove(IO_Type.Door_Down, IO_VALUE.HIGH);
StoreManager
.
Store
.
CloseDoor
(
false
);
}
}
private
void
chbDebug_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -1201,5 +1226,22 @@ namespace OnlineStore.ACSingleStore
{
LogUtil
.
UpdateLogbox
();
}
private
void
cmbHumpPort_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
string
port
=
cmbHumpPort
.
Text
;
if
(
HumitureController
.
IsRun
(
port
))
{
btnTempInit
.
Enabled
=
false
;
btnTempClose
.
Enabled
=
true
;
}
else
{
btnTempInit
.
Enabled
=
true
;
btnTempClose
.
Enabled
=
false
;
}
}
}
}
source/Common/Setting_Init.cs
查看文件 @
a3b477f
...
...
@@ -99,7 +99,7 @@ namespace OnlineStore.Common
public
static
string
Tool_TargetSpeed
=
"Tool_TargetSpeed"
;
public
static
string
Tool_TargetPosition
=
"Tool_TargetPosition"
;
public
static
string
UseDoor
=
"UseDoor"
;
}
}
source/Common/util/HumitureController.cs
查看文件 @
a3b477f
...
...
@@ -15,93 +15,143 @@ namespace OnlineStore.Common
public
class
HumitureController
{
public
static
readonly
ILog
LOGGER
=
LogManager
.
GetLogger
(
MethodBase
.
GetCurrentMethod
().
DeclaringType
);
public
static
bool
IsRun
=
false
;
public
static
string
serialPort
=
""
;
//
public static bool IsRun = false;
//
public static string serialPort = "";
private
static
int
bautRate
=
4800
;
//波特率
private
static
Parity
parity
=
Parity
.
None
;
//校验位
private
static
int
dataBits
=
8
;
//数据位
private
static
StopBits
stopBits
=
StopBits
.
One
;
//停止位
private
static
AcSerialBean
sb
=
null
;
private
static
Dictionary
<
string
,
AcSerialBean
>
SerialMap
=
new
Dictionary
<
string
,
AcSerialBean
>
()
;
private
static
string
LogName
=
""
;
public
static
int
HumitureControllerType
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
HumitureControllerType
);
public
static
bool
Init
(
string
port
)
private
static
AcSerialBean
GetSerialBean
(
string
port
)
{
if
(
IsRun
&&
port
.
Equals
(
serialP
ort
))
if
(
SerialMap
.
ContainsKey
(
p
ort
))
{
return
true
;
return
SerialMap
[
port
]
;
}
else
if
(
IsRun
)
return
null
;
}
public
static
void
OpenAll
(
string
[]
ports
)
{
foreach
(
string
port
in
ports
)
{
Release
(
);
Init
(
port
);
}
}
public
static
bool
Init
(
string
port
)
{
if
(
SerialMap
.
ContainsKey
(
port
))
{
return
true
;
}
LogName
=
"温湿度传感器["
+
port
+
"]"
;
if
(
sb
==
null
)
if
(
HumitureControllerType
.
Equals
(
1
)
)
{
serialPort
=
port
;
if
(
HumitureControllerType
.
Equals
(
1
))
{
bautRate
=
9600
;
//波特率
}
sb
=
new
AcSerialBean
(
serialPort
,
bautRate
,
parity
,
dataBits
,
stopBits
);
bautRate
=
9600
;
//波特率
}
AcSerialBean
sb
=
new
AcSerialBean
(
port
,
bautRate
,
parity
,
dataBits
,
stopBits
);
try
{
if
(
sb
.
openPort
())
{
IsRun
=
true
;
if
(
SerialMap
.
ContainsKey
(
port
))
{
SerialMap
.
Remove
(
port
);
}
SerialMap
.
Add
(
port
,
sb
);
return
true
;
}
else
{
LogUtil
.
error
(
LOGGER
,
LogName
+
"串口打开失败!"
);
IsRun
=
false
;
LogUtil
.
error
(
LOGGER
,
LogName
+
"串口打开失败!"
);
return
false
;
}
}
catch
(
Exception
ex
)
{
IsRun
=
false
;
{
}
return
true
;
}
public
static
bool
IsRun
(
string
port
)
{
if
(
GetSerialBean
(
port
)
!=
null
)
{
return
true
;
}
return
false
;
}
/// <summary>
/// 释放资源
/// </summary>
public
static
void
Release
()
public
static
void
Release
(
params
string
[]
ports
)
{
if
(
sb
!=
null
)
if
(
ports
.
Length
<=
0
)
{
sb
.
closePort
();
ports
=
(
new
List
<
string
>(
SerialMap
.
Keys
)).
ToArray
();
}
foreach
(
string
port
in
ports
)
{
try
{
AcSerialBean
sb
=
GetSerialBean
(
port
);
if
(
sb
!=
null
)
{
sb
.
closePort
();
}
//IsRun = false;
SerialMap
.
Remove
(
port
);
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"Release Humiture port ["
+
port
+
"] error :"
+
ex
.
ToString
());
}
}
IsRun
=
false
;
}
public
static
ASTemperateParam
LastData
=
new
ASTemperateParam
(
0
,
0
);
public
static
ASTemperateParam
QueryData
()
public
static
ASTemperateParam
QueryData
(
params
string
[]
portList
)
{
ASTemperateParam
param
=
new
ASTemperateParam
(
0
,
0
);
List
<
double
>
data
=
queryData
();
if
(
data
.
Count
.
Equals
(
2
))
if
(
portList
.
Length
<=
0
)
{
p
aram
=
new
ASTemperateParam
(
data
[
1
],
data
[
0
]
);
p
ortList
=
(
new
List
<
string
>(
SerialMap
.
Keys
)
).
ToArray
(
);
}
LastData
=
param
;
return
param
;
double
wendu
=
0
;
double
shidu
=
0
;
int
count
=
0
;
foreach
(
string
port
in
portList
)
{
ASTemperateParam
param
=
new
ASTemperateParam
(
0
,
0
);
List
<
double
>
data
=
queryData
(
port
);
if
(
data
.
Count
.
Equals
(
2
))
{
wendu
+=
data
[
1
];
shidu
+=
data
[
0
];
count
++;
param
=
new
ASTemperateParam
(
data
[
1
],
data
[
0
]);
}
}
LastData
=
new
ASTemperateParam
(
wendu
/
count
,
shidu
/
count
);
return
LastData
;
}
/// <summary>
/// 返回温度和湿度
/// </summary>
/// <returns></returns>
private
static
List
<
double
>
queryData
()
private
static
List
<
double
>
queryData
(
string
port
)
{
// 温度计算:
//当温度低于 0 ℃ 时温度数据以补码的形式上传。
//温度:FF9B H(十六进制)= -101 => 温度 = -10.1℃
//湿度计算:
//湿度:292 H(十六进制) = 658 => 湿度 = 65.8 % RH
if
(
IsRun
.
Equals
(
false
))
// if (IsRun.Equals(false))
AcSerialBean
sb
=
GetSerialBean
(
port
);
if
(
sb
==
null
)
{
return
new
List
<
double
>();
}
...
...
@@ -131,9 +181,14 @@ namespace OnlineStore.Common
}
public
static
int
QueryHistoryCount
()
public
static
int
QueryHistoryCount
(
string
port
)
{
if
(
IsRun
.
Equals
(
false
)
||
HumitureControllerType
.
Equals
(
2
).
Equals
(
false
))
AcSerialBean
sb
=
GetSerialBean
(
port
);
if
(
sb
==
null
)
{
return
-
1
;
}
if
(
HumitureControllerType
.
Equals
(
2
).
Equals
(
false
))
{
return
-
1
;
}
...
...
@@ -165,9 +220,14 @@ namespace OnlineStore.Common
sb
.
SendCommand
(
sendData
,
ref
reviceData
,
100
,
out
isOk
);
return
getReviceIntData
(
reviceData
);
}
public
static
int
QueryCurrCount
()
public
static
int
QueryCurrCount
(
string
port
)
{
if
(
IsRun
.
Equals
(
false
)
||
HumitureControllerType
.
Equals
(
2
).
Equals
(
false
))
AcSerialBean
sb
=
GetSerialBean
(
port
);
if
(
sb
==
null
)
{
return
-
1
;
}
if
(
HumitureControllerType
.
Equals
(
2
).
Equals
(
false
))
{
return
-
1
;
}
...
...
@@ -188,10 +248,15 @@ namespace OnlineStore.Common
sb
.
SendCommand
(
sendData
,
ref
reviceData
,
100
,
out
isOk
);
return
getReviceIntData
(
reviceData
);
}
public
static
List
<
object
>
QueryHistory
()
public
static
List
<
object
>
QueryHistory
(
string
port
)
{
List
<
object
>
list
=
new
List
<
object
>();
if
(
IsRun
.
Equals
(
false
)||
HumitureControllerType
.
Equals
(
2
).
Equals
(
false
))
AcSerialBean
sb
=
GetSerialBean
(
port
);
if
(
sb
==
null
)
{
return
list
;
}
if
(
HumitureControllerType
.
Equals
(
2
).
Equals
(
false
))
{
return
list
;
}
...
...
source/DeviceLibrary/StoreConfig/StoreConfig.csv
查看文件 @
a3b477f
...
...
@@ -4,38 +4,38 @@ PRO,模块对应的DO数量,IO_DOLength,192.168.201.21#16,,,,,,,
PRO,是否有仓门,HasDoor,1,,,,,,,
PRO,IO模块IP,PRO_AOI_IP_1,192.168.201.21,,,,,,,
,,,,,,,,,,
DI,急停,SuddenStop_BTN,0,PRO_AOI_IP_1,0,急停,X1-1,A1,0,
DI,
开机,Start_BTN,1,PRO_AOI_IP_1,0,开机,X1-
2,A2,0,
DI,复位,Reset_BTN,2,PRO_AOI_IP_1,0,复位,X1-3,A3,0,
DI,前门门禁信号,DoorLimit_L,3,PRO_AOI_IP_1,0,前门门禁信号,X1-4,A4,0,
DI,后门门禁信号,DoorLimit_B,4,PRO_AOI_IP_1,0,后门门禁信号,X1-5,A5,0,
DI,左取料口门开关信号,LeftDoor_Close,5,PRO_AOI_IP_1,0,左取料口门开关信号,X1-6,A6,0,
DI,右取料口门开关信号,RightDoor_Close,6,PRO_AOI_IP_1,0,右取料口门开关信号,X1-7,A7,0,
DI,
出料下托架前进(左),LeftShelf_Forward,7,PRO_AOI_IP_1,0,出料下托架前进(左),X1-
8,A8,0,
DI,
出料下托架后退(左),LeftShelf_Back,8,PRO_AOI_IP_1,0,出料下托架后退(左),X2-
1,A10,0,
DI,
出料下托架前进(右),RightShelf_Forward,9,PRO_AOI_IP_1,0,出料下托架前进(右),X2-
2,A11,0,
DI,
出料下托架后退(右),RightShelf_Back,10,PRO_AOI_IP_1,0,出料下托架后退(右),X2-
3,A12,0,
DI,货叉物料检测开关,TrayCheck_Fixture,11,PRO_AOI_IP_1,0,货叉物料检测开关,X2-4,A13,0,
DI,空气压力检测信号,Airpressure_Check,12,PRO_AOI_IP_1,0,空气压力检测信号,X2-5,A14,0,
DI,托架物料检测(左),LeftShelf_Check,13,PRO_AOI_IP_1,0,托架物料检测(左),X2-6,A15,0,
DI,托架物料检测(右),RightShelf_Check,14,PRO_AOI_IP_1,0,托架物料检测(右),X2-7,A16,0,
,,,15,PRO_AOI_IP_1,0,,X2-8,A17,0,
DO,
信号灯绿色开机,AutoRun_HddLed,0,PRO_AOI_IP_1,0,信号灯绿色开机,Y1-
1,B1,,
DO,
信号灯红色停止,Alarm_HddLed,1,PRO_AOI_IP_1,0,信号灯红色停止,Y1-
2,B2,,
DO,
信号灯黄色故障,RunSign_HddLed,2,PRO_AOI_IP_1,0,信号灯黄色故障,Y1-
3,B3,,
DO,
翁鸣器,Alarm_Buzzer,3,PRO_AOI_IP_1,0,翁鸣器,Y1-
4,B4,,
DO,
出口电机前进(左),LeftShelf_Forward,4,PRO_AOI_IP_1,0,出口电机前进(左),Y1-
5,B5,,
DO,
出口电机后退(左),LeftShelf_Back,5,PRO_AOI_IP_1,0,出口电机后退(左),Y1-
6,B6,,
DO,
入口电机前进(右),RightShelf_Forward,6,PRO_AOI_IP_1,0,入口电机前进(右),Y1-
7,B7,,
DO,
入口电机后退(右),RightShelf_Back,7,PRO_AOI_IP_1,0,入口电机后退(右),Y1-
8,B8,,
DO,
锁门气缸(左),LeftDoor_Close,8,PRO_AOI_IP_1,0,锁门气缸(左),Y2-
1,B10,,
DO,
锁门气缸(右),RightDoor_Close,9,PRO_AOI_IP_1,0,锁门气缸(右),Y2-
2,B11,,
DO,
使能,Run_Signal,10,PRO_AOI_IP_1,0,使能,Y2-
3,B12,,
DO,
刹车,Axis_Brake,11,PRO_AOI_IP_1,0,刹车,Y2-
4,B13,,
DO,温湿度喷气电磁阀,StartOrStopBlow,12,PRO_AOI_IP_1,0,温湿度喷气电磁阀,Y2-5,B14,,
,,,13,PRO_AOI_IP_1,0,,Y2-6,B15,,
,,,14,PRO_AOI_IP_1,0,,Y2-7,B16,,
,,,15,PRO_AOI_IP_1,0,,Y2-8,B17,,
DI,急停,SuddenStop_BTN,0,PRO_AOI_IP_1,0,急停,X1-
0
1,A1,0,
DI,
启动,Start_BTN,1,PRO_AOI_IP_1,0,启动,X1-0
2,A2,0,
DI,复位,Reset_BTN,2,PRO_AOI_IP_1,0,复位,X1-
0
3,A3,0,
DI,前门门禁信号,DoorLimit_L,3,PRO_AOI_IP_1,0,前门门禁信号,X1-
0
4,A4,0,
DI,后门门禁信号,DoorLimit_B,4,PRO_AOI_IP_1,0,后门门禁信号,X1-
0
5,A5,0,
DI,左取料口门开关信号,LeftDoor_Close,5,PRO_AOI_IP_1,0,左取料口门开关信号,X1-
0
6,A6,0,
DI,右取料口门开关信号,RightDoor_Close,6,PRO_AOI_IP_1,0,右取料口门开关信号,X1-
0
7,A7,0,
DI,
左侧出料下托架前进端,LeftShelf_Forward,7,PRO_AOI_IP_1,0,左侧出料下托架前进端,X1-0
8,A8,0,
DI,
左侧出料下托架后退端,LeftShelf_Back,8,PRO_AOI_IP_1,0,左侧出料下托架后退端,X2-0
1,A10,0,
DI,
右侧出料下托架前进端,RightShelf_Forward,9,PRO_AOI_IP_1,0,右侧出料下托架前进端,X2-0
2,A11,0,
DI,
右侧出料下托架后退端,RightShelf_Back,10,PRO_AOI_IP_1,0,右侧出料下托架后退端,X2-0
3,A12,0,
DI,货叉物料检测开关,TrayCheck_Fixture,11,PRO_AOI_IP_1,0,货叉物料检测开关,X2-
0
4,A13,0,
DI,空气压力检测信号,Airpressure_Check,12,PRO_AOI_IP_1,0,空气压力检测信号,X2-
0
5,A14,0,
DI,托架物料检测(左),LeftShelf_Check,13,PRO_AOI_IP_1,0,托架物料检测(左),X2-
0
6,A15,0,
DI,托架物料检测(右),RightShelf_Check,14,PRO_AOI_IP_1,0,托架物料检测(右),X2-
0
7,A16,0,
,,,15,PRO_AOI_IP_1,0,,X2-
0
8,A17,0,
DO,
运行指示灯,AutoRun_HddLed,0,PRO_AOI_IP_1,0,运行指示灯,Y1-0
1,B1,,
DO,
故障指示灯,Alarm_HddLed,1,PRO_AOI_IP_1,0,故障指示灯,Y1-0
2,B2,,
DO,
待机指示灯,RunSign_HddLed,2,PRO_AOI_IP_1,0,待机指示灯,Y1-0
3,B3,,
DO,
蜂鸣器,Alarm_Buzzer,3,PRO_AOI_IP_1,0,蜂鸣器,Y1-0
4,B4,,
DO,
左侧出料下托架电机前进,LeftShelf_Forward,4,PRO_AOI_IP_1,0,左侧出料下托架电机前进,Y1-0
5,B5,,
DO,
左侧出料下托架电机后退,LeftShelf_Back,5,PRO_AOI_IP_1,0,左侧出料下托架电机后退,Y1-0
6,B6,,
DO,
右侧出料下托架电机前进,RightShelf_Forward,6,PRO_AOI_IP_1,0,右侧出料下托架电机前进,Y1-0
7,B7,,
DO,
右侧出料下托架电机后退,RightShelf_Back,7,PRO_AOI_IP_1,0,右侧出料下托架电机后退,Y1-0
8,B8,,
DO,
左侧门锁气缸,LeftDoor_Close,8,PRO_AOI_IP_1,0,左侧门锁气缸,Y2-0
1,B10,,
DO,
右侧门锁气缸,RightDoor_Close,9,PRO_AOI_IP_1,0,右侧门锁气缸,Y2-0
2,B11,,
DO,
伺服运转ON,Run_Signal,10,PRO_AOI_IP_1,0,伺服运转ON,Y2-0
3,B12,,
DO,
Z轴伺服刹车ON,Axis_Brake,11,PRO_AOI_IP_1,0,Z轴伺服刹车ON,Y2-0
4,B13,,
DO,温湿度喷气电磁阀,StartOrStopBlow,12,PRO_AOI_IP_1,0,温湿度喷气电磁阀,Y2-
0
5,B14,,
,,,13,PRO_AOI_IP_1,0,,Y2-
0
6,B15,,
,,,14,PRO_AOI_IP_1,0,,Y2-
0
7,B16,,
,,,15,PRO_AOI_IP_1,0,,Y2-
0
8,B17,,
AXIS,(Y轴-前后轴) ,Middle_Axis,1,COM3,0,,,,,
AXIS,(Z轴-升降轴),UpDown_Axis,2,COM3,0,,,,,
AXIS,(X轴-进出轴),InOut_Axis,3,COM3,0,,,,,
...
...
@@ -108,6 +108,6 @@ PRO,需要吹气的温度(温度标准),Max_Temperature,0,,,,,,,
PRO,需要吹气的湿度(湿度标准),Max_Humidity,10,,,,,,,
PRO,每次吹气的时间(分钟),BlowAir_Time,10,,,,,,,
PRO,两次吹气间隔(分钟),BlowAir_Interval,10,,,,,,,
PRO,温湿度端口号
,Humiture_Port,COM1
,,,,,,,
PRO,温湿度端口号
(分号分隔),Humiture_Port,COM2;COM3;COM4
,,,,,,,
,,,,,,,,, ,
,,,,,,,,, ,
source/DeviceLibrary/acSquareStore/ShelfDoorBean.cs
0 → 100644
查看文件 @
a3b477f
using
OnlineStore.Common
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading
;
using
System.Threading.Tasks
;
namespace
OnlineStore.DeviceLibrary.acSquareStore
{
public
class
ShelfDoorBean
{
public
bool
IsRun
=
false
;
private
string
LastMoveDO
=
""
;
private
string
LastCheckDI
=
""
;
internal
DateTime
LastEndTime
=
DateTime
.
Now
;
public
ShelfDoorBean
(
)
{
}
public
void
Stop
()
{
if
(
IsRun
)
{
IsRun
=
false
;
}
}
private
bool
Start
(
string
moveDO
,
string
checkDI
,
int
timeOutMS
=
30000
)
{
if
(
IsRun
)
{
LogUtil
.
error
(
"启动["
+
moveDO
+
"] ["
+
checkDI
+
"] 失败"
);
return
false
;
}
IsRun
=
true
;
Task
.
Factory
.
StartNew
(
delegate
{
WriteAndWait
(
moveDO
,
checkDI
,
timeOutMS
);
});
return
true
;
}
private
string
WriteAndWait
(
string
moveDO
,
string
checkDI
,
int
timeOutMS
=
30000
)
{
LastMoveDO
=
moveDO
;
LastCheckDI
=
checkDI
;
LogUtil
.
debug
(
"写入信号:"
+
moveDO
+
",等待信号:"
+
checkDI
+
""
);
//if (moveDO.Equals(IO_Type.EntranceDoor_Open))
//{
// IOManager.IOMove(IO_Type.EntranceDoor_Close, IO_VALUE.LOW );
//}
//else
//{
// IOManager.IOMove(IO_Type.EntranceDoor_Open, IO_VALUE.LOW );
//}
IOManager
.
IOMove
(
moveDO
,
IO_VALUE
.
HIGH
);
Thread
.
Sleep
(
50
);
IsRun
=
true
;
DateTime
startTime
=
DateTime
.
Now
;
string
result
=
""
;
bool
isStop
=
false
;
while
(
true
)
{
Thread
.
Sleep
(
50
);
TimeSpan
span
=
DateTime
.
Now
-
startTime
;
if
(!
IsRun
)
{
isStop
=
true
;
result
=
"手动停止"
;
}
else
if
(
span
.
TotalMilliseconds
>
timeOutMS
)
{
isStop
=
true
;
result
=
"转动超时"
;
}
//判断Buzy及位置是否结束
else
if
(
IOManager
.
IOValue
(
checkDI
).
Equals
(
IO_VALUE
.
HIGH
))
{
isStop
=
true
;
}
if
(
isStop
)
{
if
(
result
.
Equals
(
""
))
{
LogUtil
.
info
(
"停止运动:"
+
result
+
" ["
+
moveDO
+
"] ["
+
checkDI
+
"] "
);
}
else
{
LogUtil
.
info
(
"["
+
moveDO
+
"] ["
+
checkDI
+
"] 停止运动:"
+
result
+
" "
+
moveDO
);
}
LastEndTime
=
DateTime
.
Now
;
IOManager
.
IOMove
(
moveDO
,
IO_VALUE
.
LOW
);
IsRun
=
false
;
return
result
;
}
}
}
public
bool
StartOpen
(
StoreMoveInfo
moveInfo
)
{
//bool UseDoor = ConfigAppSettings.GetIntValue(Setting_Init.UseDoor).Equals(1);
//if (!UseDoor)
//{
// return false;
//}
////如果门已打开直接返回
//if (IOManager.IOValue(IO_Type.EntranceDoor_Open ).Equals(IO_VALUE.HIGH) &&
// IOManager.IOValue(IO_Type.EntranceDoor_Close ).Equals(IO_VALUE.LOW))
//{
// return true;
//}
//if (moveInfo != null)
//{
// moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.LeftDoor_Close, IO_VALUE.HIGH));
// moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.EntranceDoor_Close, IO_VALUE.LOW));
//}
//return Start(IO_Type.EntranceDoor_Open, IO_Type.EntranceDoor_Open);
return
false
;
}
public
bool
StartClose
(
StoreMoveInfo
moveInfo
)
{
//bool UseDoor = ConfigAppSettings.GetIntValue(Setting_Init.UseDoor).Equals(1);
//if (!UseDoor)
//{
// return false;
//}
////如果门已关闭直接返回
//if (IOManager.IOValue(IO_Type.EntranceDoor_Close ).Equals(IO_VALUE.HIGH) &&
// IOManager.IOValue(IO_Type.EntranceDoor_Open ).Equals(IO_VALUE.LOW))
//{
// return true;
//}
//if (moveInfo != null)
//{
// moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.EntranceDoor_Close, IO_VALUE.HIGH));
// moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.EntranceDoor_Open, IO_VALUE.LOW));
//}
//return Start(IO_Type.EntranceDoor_Close, IO_Type.EntranceDoor_Close);
return
false
;
}
}
}
source/DeviceLibrary/acSquareStore/Square_BoxBean.cs
查看文件 @
a3b477f
...
...
@@ -128,9 +128,7 @@ namespace OnlineStore.DeviceLibrary
this
.
AxisAlarmCodeMap
=
new
Dictionary
<
string
,
AxisAlarmInfo
>();
this
.
AxisAlarmCodeMap
.
Add
(
Config
.
UpDown_Axis
.
GetNameStr
(),
new
AxisAlarmInfo
());
this
.
AxisAlarmCodeMap
.
Add
(
Config
.
InOut_Axis
.
GetNameStr
(),
new
AxisAlarmInfo
());
this
.
AxisAlarmCodeMap
.
Add
(
this
.
Config
.
Middle_Axis
.
GetNameStr
(),
new
AxisAlarmInfo
());
this
.
AxisAlarmCodeMap
.
Add
(
this
.
Config
.
Middle_Axis
.
GetNameStr
(),
new
AxisAlarmInfo
());
}
/// <summary>
...
...
@@ -157,12 +155,18 @@ namespace OnlineStore.DeviceLibrary
{
return
false
;
}
string
doorMsg
=
DoorIsClose
();
if
(!
String
.
IsNullOrEmpty
(
doorMsg
))
{
WarnMsg
=
"启动失败:"
+
doorMsg
;
return
false
;
}
//TODO 启动时先所有轴远点返回,测试暂时关闭
storeRunStatus
=
StoreRunStatus
.
HomeMoving
;
storeStatus
=
StoreStatus
.
ResetMove
;
//启动温湿度服务器
HumitureController
.
Init
(
Config
.
Humiture_Port
);
HumitureController
.
OpenAll
(
Config
.
GetHumpPortList
().
ToArray
()
);
//LineConnect.StartConnect();
ReturnHome
();
...
...
@@ -219,8 +223,8 @@ namespace OnlineStore.DeviceLibrary
//判断叉子没有料盘
//StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Fixture, IO_VALUE.LOW));
}
public
override
void
Reset
(
bool
isNeedClearAuto
=
true
)
public
override
void
Reset
(
bool
isNeedClearAuto
=
true
)
{
CurrInOutCount
=
0
;
CurrInOutACount
=
0
;
...
...
@@ -233,13 +237,11 @@ namespace OnlineStore.DeviceLibrary
{
autoNext
=
false
;
}
ACServerManager
.
SuddenStop
(
Config
.
Middle_Axis
.
DeviceName
,
Config
.
Middle_Axis
.
GetAxisValue
());
ACServerManager
.
SuddenStop
(
Config
.
UpDown_Axis
.
DeviceName
,
Config
.
UpDown_Axis
.
GetAxisValue
());
ACServerManager
.
SuddenStop
(
Config
.
InOut_Axis
.
DeviceName
,
Config
.
InOut_Axis
.
GetAxisValue
());
isInSuddenDown
=
false
;
isNoAirCheck
=
false
;
isNoAirCheck
=
false
;
alarmType
=
StoreAlarmType
.
None
;
storeRunStatus
=
StoreRunStatus
.
Reset
;
storeStatus
=
StoreStatus
.
ResetMove
;
...
...
@@ -253,9 +255,15 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
LOGGER
,
StoreName
+
"复位时打开轴失败,需要再次复位,直接报警停止复位"
);
return
;
}
InoutStartReset
();
string
doorMsg
=
DoorIsClose
();
if
(!
String
.
IsNullOrEmpty
(
doorMsg
))
{
WarnMsg
=
"复位失败:"
+
doorMsg
;
return
;
}
InoutStartReset
();
isInPro
=
false
;
}
private
void
InoutStartReset
()
...
...
@@ -273,6 +281,11 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
protected
override
void
ResetProcess
()
{
string
logName
=
"复位中:"
;
if
(
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
ReturnHome
))
{
logName
=
"回原点:"
;
}
if
(
StoreMove
.
IsInWait
)
{
CheckWait
();
...
...
@@ -289,20 +302,18 @@ namespace OnlineStore.DeviceLibrary
case
StoreMoveStep
.
BOX_H_InOutMove
:
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_InOutBack
);
ACAxisHomeMove
(
Config
.
InOut_Axis
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"复位中:
进出轴开始原点返回"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
logName
+
"
进出轴开始原点返回"
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
break
;
case
StoreMoveStep
.
BOX_H_InOutBack
:
Thread
.
Sleep
(
200
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_InOutToP1
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"复位中:进出轴到待机点P1,关闭舱
门"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
logName
+
" 进出轴到待机点P1,关闭左右两侧
门"
);
//进出轴原点返回完成,将进出轴的位置设置=0
AxisCountClear
(
Config
.
InOut_Axis
);
ACAxisMove
(
Config
.
InOut_Axis
,
Config
.
InOutAxis_P1_Position
,
Config
.
InOutAxis_P1_Speed
);
//ComBeforeHomeMove();
//判断叉子没有料盘
//StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Fixture, IO_VALUE.LOW));
CloseDoor
();
CloseDoor
(
1
,
StoreMove
);
CloseDoor
(
2
,
StoreMove
);
break
;
case
StoreMoveStep
.
BOX_H_InOutToP1
:
//如果此时轴三还在报警,需要提示错误并等待
...
...
@@ -312,17 +323,18 @@ namespace OnlineStore.DeviceLibrary
}
//复位和回原点要等轴3进出轴ORG亮了以后才能返回其他轴
LogUtil
.
info
(
LOGGER
,
StoreName
+
"复位中: 压紧轴,前后轴,升降轴开始 原点返回
"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
logName
+
" 压紧轴,前后轴,升降轴开始 原点返回 ,左右托盘前进
"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_OtherAxisBack
);
StoreMove
.
TimeOutSeconds
=
100
;
StoreMove
.
TimeOutSeconds
=
100
;
ACAxisHomeMove
(
Config
.
Middle_Axis
);
ACAxisHomeMove
(
Config
.
UpDown_Axis
);
ShelfForward
(
1
);
ShelfForward
(
2
);
break
;
case
StoreMoveStep
.
BOX_H_OtherAxisBack
:
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_MiddleAxisToP1
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"复位中:
前后轴运动到P1,升降轴走到P1,压紧轴到P1!"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
logName
+
"
前后轴运动到P1,升降轴走到P1,压紧轴到P1!"
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorO_P1
,
Config
.
UpDownAxis_P1_Speed
);
...
...
@@ -340,15 +352,17 @@ namespace OnlineStore.DeviceLibrary
case
StoreMoveStep
.
BOX_M_H_TOP1_InOutToP1
:
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_M_H_TOP1_CompressHome
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"到待机状态,压紧轴回原点,关闭
舱
门"
);
CloseDoor
();
LogUtil
.
info
(
LOGGER
,
StoreName
+
"到待机状态,压紧轴回原点,关闭
左右两侧
门"
);
CloseDoor
(
1
,
StoreMove
);
CloseDoor
(
2
,
StoreMove
);
break
;
case
StoreMoveStep
.
BOX_M_H_TOP1_CompressHome
:
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_M_H_TOP1_OtherAxisToP1
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"
复位中:前后轴运动到P1,升降轴走到P1,压紧轴到P1!
"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"
到待机状态:前后轴运动到P1,升降轴走到P1,压紧轴到P1,左右托架后退
"
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorO_P1
,
Config
.
UpDownAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorO_P1
,
Config
.
UpDownAxis_P1_Speed
);
CylinderMove
(
StoreMove
,
IO_Type
.
LeftShelf_Forward
,
IO_Type
.
LeftShelf_Back
);
CylinderMove
(
StoreMove
,
IO_Type
.
RightShelf_Forward
,
IO_Type
.
RightShelf_Back
);
break
;
case
StoreMoveStep
.
BOX_M_H_TOP1_OtherAxisToP1
:
LogUtil
.
info
(
LOGGER
,
StoreName
+
"到待机状态完成"
);
...
...
@@ -363,105 +377,78 @@ namespace OnlineStore.DeviceLibrary
default
:
break
;
}
}
p
rivate
bool
DoorIsOpen
(
)
}
p
ublic
void
ShelfBack
(
int
shelfType
=
1
,
StoreMoveInfo
moveInfo
=
null
)
{
//if (IOManager.IOValue(IO_Type.Door_Down).Equals(IO_VALUE.LOW) && IOManager.IOValue(IO_Type.Door_Up).Equals(IO_VALUE.HIGH
))
if
(
shelfType
.
Equals
(
1
))
{
return
true
;
CylinderMove
(
moveInfo
,
IO_Type
.
LeftShelf_Forward
,
IO_Type
.
LeftShelf_Back
);
}
else
{
CylinderMove
(
moveInfo
,
IO_Type
.
RightShelf_Forward
,
IO_Type
.
RightShelf_Back
);
}
return
false
;
}
public
void
OpenDoor
(
bool
IsWait
=
true
)
public
void
ShelfForward
(
int
shelfType
=
1
,
StoreMoveInfo
moveInfo
=
null
)
{
//if (Config.HasDoor.Equals(1))
//{
// Thread.Sleep(60);
// IOManager.IOMove(IO_Type.Door_Down, IO_VALUE.LOW);
// IOManager.IOMove(IO_Type.Door_Up, IO_VALUE.HIGH);
// if (IsWait)
// {
// StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.Door_Down, IO_VALUE.LOW));
// StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.Door_Up, IO_VALUE.HIGH));
// }
//}
if
(
shelfType
.
Equals
(
1
))
{
CylinderMove
(
moveInfo
,
IO_Type
.
LeftShelf_Back
,
IO_Type
.
LeftShelf_Forward
);
}
else
{
CylinderMove
(
moveInfo
,
IO_Type
.
RightShelf_Back
,
IO_Type
.
RightShelf_Forward
);
}
}
public
void
CloseDoor
(
bool
IsWait
=
true
)
public
string
DoorIsClose
(
)
{
//if (Config.HasDoor.Equals(1))
//{
// IOManager.IOMove(IO_Type.Door_Down, IO_VALUE.HIGH);
// IOManager.IOMove(IO_Type.Door_Up, IO_VALUE.LOW);
// if (IsWait)
// {
// StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.Door_Down, IO_VALUE.HIGH));
// StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.Door_Up, IO_VALUE.LOW));
// }
//}
if
(!
IOManager
.
IOValue
(
IO_Type
.
LeftDoor_Close
).
Equals
(
IO_VALUE
.
HIGH
))
{
return
"左侧门未关"
;
}
if
(!
IOManager
.
IOValue
(
IO_Type
.
RightDoor_Close
).
Equals
(
IO_VALUE
.
HIGH
))
{
return
"右侧门未关"
;
}
return
""
;
}
/// <summary>
/// 原点返回处理
/// </summary>
protected
override
void
ReturnHomeProcess
()
public
void
OpenDoor
(
int
type
=
1
,
StoreMoveInfo
moveInfo
=
null
)
{
if
(
StoreMove
.
IsInWait
)
if
(
type
.
Equals
(
1
)
)
{
CheckWait
();
}
if
(
StoreMove
.
IsInWait
)
else
{
return
;
}
switch
(
StoreMove
.
MoveStep
)
if
(
moveInfo
!=
null
)
{
case
StoreMoveStep
.
BOX_H_LocationCylinderBack
:
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_InOutBack
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"原点返回中,进出轴回原点"
);
//复位和回原点要等轴3进出轴ORG亮了以后才能返回其他轴
ACAxisHomeMove
(
Config
.
InOut_Axis
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
2000
));
break
;
case
StoreMoveStep
.
BOX_H_InOutBack
:
Thread
.
Sleep
(
200
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_InOutToP1
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"原点返回中,进出轴退回P1点,关闭仓门,检测叉子没有料盘"
);
//进出轴原点返回完成,将进出轴的位置设置=0
AxisCountClear
(
Config
.
InOut_Axis
);
ACAxisMove
(
Config
.
InOut_Axis
,
Config
.
InOutAxis_P1_Position
,
Config
.
InOutAxis_P1_Speed
);
CloseDoor
();
break
;
case
StoreMoveStep
.
BOX_H_InOutToP1
:
//如果此时轴三还在报警,需要提示错误并等待
if
(
ACServerManager
.
GetAlarmStatus
(
Config
.
InOut_Axis
.
DeviceName
,
Config
.
InOut_Axis
.
GetAxisValue
())
>
0
)
{
WarnMsg
=
"进出轴报警!复位失败,请检查!"
;
LogUtil
.
error
(
LOGGER
,
"进出轴报警!复位失败,请检查!"
);
}
//复位和回原点要等轴3进出轴ORG亮了以后才能返回其他轴
LogUtil
.
info
(
LOGGER
,
StoreName
+
"原点返回中 :压紧轴,前后轴,升降轴开始原点返回"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_OtherAxisBack
);
ACAxisHomeMove
(
Config
.
Middle_Axis
);
ACAxisHomeMove
(
Config
.
UpDown_Axis
);
break
;
}
}
public
void
CloseDoor
(
int
type
=
1
,
StoreMoveInfo
moveInfo
=
null
)
{
if
(
type
.
Equals
(
1
))
{
}
else
{
}
if
(
moveInfo
!=
null
)
{
case
StoreMoveStep
.
BOX_H_OtherAxisBack
:
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_MiddleAxisToP1
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
"回原点:前后轴运动到P1,升降轴到P1,压紧轴到P1!"
);
ACAxisMove
(
Config
.
Middle_Axis
,
Config
.
MiddleAxis_P1_Position
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
Config
.
UpDownAxis_DoorO_P1
,
Config
.
UpDownAxis_P1_Speed
);
break
;
case
StoreMoveStep
.
BOX_H_MiddleAxisToP1
:
LogUtil
.
info
(
LOGGER
,
StoreName
+
"回原点完成"
);
storeRunStatus
=
StoreRunStatus
.
Runing
;
StoreMove
.
EndMove
();
storeStatus
=
StoreStatus
.
StoreOnline
;
WarnMsg
=
""
;
break
;
default
:
break
;
}
}
/// <summary>
/// 原点返回处理
/// </summary>
protected
override
void
ReturnHomeProcess
()
{
ResetProcess
();
}
#
endregion
...
...
@@ -1390,18 +1377,7 @@ namespace OnlineStore.DeviceLibrary
}
isInProcess
=
true
;
try
{
//if (LineConnect.IsConnect())
//{
// int hasTray = (int)IOManager.IOValue(IO_Type.TrayCheck_Door);
// int ss = (int)storeStatus;
// if (IsDebug)
// {
// ss = (int)StoreStatus.Debugging;
// }
// StoreSendBean store=new StoreSendBean(Config.Id,Config.CID, (int)ss, (int)storeRunStatus, hasTray, (int)alarmType);
// LineConnect.SendHeart(store);
//}
{
if
(
StoreManager
.
IsConnectServer
)
{
try
...
...
@@ -1414,7 +1390,7 @@ namespace OnlineStore.DeviceLibrary
}
}
HumitureController
.
QueryData
();
HumitureController
.
QueryData
(
Config
.
GetHumpPortList
().
ToArray
()
);
HumidityProcess
();
LedProcess
();
}
catch
(
Exception
ex
)
...
...
@@ -1678,6 +1654,22 @@ namespace OnlineStore.DeviceLibrary
#
endregion
public
void
CylinderMove
(
StoreMoveInfo
moveInfo
,
string
IoLowType
,
string
IoHighType
)
{
try
{
IOManager
.
IOMove
(
IoLowType
,
IO_VALUE
.
LOW
);
IOManager
.
IOMove
(
IoHighType
,
IO_VALUE
.
HIGH
);
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"CylinderMove ["
+
IoLowType
+
"] ["
+
IoHighType
+
"] 出错:"
+
ex
.
ToString
());
}
if
(
moveInfo
!=
null
)
{
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IoLowType
,
IO_VALUE
.
LOW
));
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IoHighType
,
IO_VALUE
.
HIGH
));
}
}
}
}
\ No newline at end of file
source/DeviceLibrary/acSquareStore/Square_BoxBean_Partial.cs
查看文件 @
a3b477f
...
...
@@ -25,6 +25,7 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
public
int
autoJiange
=
3
;
public
int
autoPositionIndex
=
0
;
public
int
autoShelfType
=
1
;
public
string
autoMsg
=
""
;
public
int
AutoStartIndex
=
-
1
;
#
endregion
...
...
@@ -52,7 +53,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
error
(
LOGGER
,
StoreName
+
"出入库时发现param中取到的Position=null,没有库位不能执行出入库"
);
return
false
;
}
p
.
InOut_P1
=
Config
.
InOutAxis_P1_Position
;
p
.
Middle_P1
=
Config
.
MiddleAxis_P1_Position
;
...
...
@@ -61,7 +62,7 @@ namespace OnlineStore.DeviceLibrary
p
.
InOut_P2
=
Config
.
InOutAxis_P2_Position
;
}
else
{
{
p
.
InOut_P2
=
Config
.
InOutAxis_P3_Position
;
}
p
.
UpDown_P1
=
Config
.
UpDownAxis_DoorO_P1
;
...
...
@@ -221,7 +222,7 @@ namespace OnlineStore.DeviceLibrary
{
wait
.
IsEnd
=
(
span
.
TotalMilliseconds
>=
wait
.
TimeMSeconds
);
}
if
(
wait
.
IsEnd
)
{
if
(
StoreMove
.
OneWaitCanEndStep
)
...
...
@@ -278,6 +279,13 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
error
(
LOGGER
,
StoreName
+
" 启动入库【"
+
posId
+
"】出错,叉子料盘检测有料"
);
return
;
}
string
doorMsg
=
DoorIsClose
();
if
(!
String
.
IsNullOrEmpty
(
doorMsg
))
{
LogUtil
.
error
(
LOGGER
,
StoreName
+
" 启动入库【"
+
posId
+
"】出错, "
+
doorMsg
);
return
;
}
LogUtil
.
info
(
LOGGER
,
StoreName
+
" 启动入库【"
+
posId
+
"】"
,
storeMoveColor
);
storeRunStatus
=
StoreRunStatus
.
Busy
;
storeStatus
=
StoreStatus
.
InStoreExecute
;
...
...
@@ -289,18 +297,16 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_00_TrayCheck
);
if
(
param
.
PosInfo
.
ShelfType
.
Equals
(
1
))
{
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LeftShelf_Check
,
IO_VALUE
.
HIGH
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LeftShelf_Check
,
IO_VALUE
.
HIGH
));
}
else
{
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
RightShelf_Check
,
IO_VALUE
.
HIGH
));
}
}
else
{
SI_02_Move
(
param
.
MoveP
);
SI_02_Move
();
}
}
else
...
...
@@ -316,30 +322,14 @@ namespace OnlineStore.DeviceLibrary
{
StartInStoreMove
(
param
,
false
);
}
private
void
SI_02_Move
(
LineMoveP
moveP
)
private
void
SI_02_Move
()
{
InStoreLog
(
"入库:SI_02_ 进出轴(叉子)动作至P1,
打开舱门"
);
InStoreLog
(
"入库:SI_02_ 进出轴(叉子)动作至P1,
关闭门锁="
+
StoreMove
.
MoveParam
.
PosInfo
.
ShelfType
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_02_InOutAxisHome
);
OpenDoor
();
InOutBackToP1
(
moveP
.
InOut_P1
);
}
private
void
SI_05_DeviceToDoor
()
{
if
(
DoorIsOpen
())
{
//判断仓门是否打开
InStoreLog
(
"入库:SI_05 叉子进入入料口,进出轴至P2(进料口取料点) "
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_05_DeviceToDoor
);
ACAxisMove
(
Config
.
InOut_Axis
,
StoreMove
.
MoveParam
.
MoveP
.
InOut_P2
,
Config
.
InOutAxis_P2_Speed
);
//NeedCheckSafetyLight = 1;
}
else
{
InStoreLog
(
"入库:SI_04 叉子即将取料,发现门未上升到位,重新打开门 "
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_04_CompressWare
);
OpenDoor
();
}
CloseDoor
(
StoreMove
.
MoveParam
.
PosInfo
.
ShelfType
);
InOutBackToP1
(
StoreMove
.
MoveParam
.
MoveP
.
InOut_P1
);
}
protected
override
void
InStoreProcess
()
{
LineMoveP
moveP
=
StoreMove
.
MoveParam
.
MoveP
;
...
...
@@ -353,34 +343,25 @@ namespace OnlineStore.DeviceLibrary
}
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_00_TrayCheck
)
{
SI_02_Move
(
moveP
);
}
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_01_LocationCylinderDown
)
{
SI_02_Move
(
moveP
);
SI_02_Move
();
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_02_InOutAxisHome
)
{
InStoreLog
(
"入库:SI_03 所有轴回到待机点,轴2、轴1 动作到P1,,轴4动作至P3"
);
InStoreLog
(
"入库:SI_03 所有轴回到待机点,轴2、轴1 动作到P1,,轴4动作至P3
,托架后退
"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_03_ReturnHome
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P1
,
Config
.
UpDownAxis_P1_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
);
ShelfBack
(
StoreMove
.
MoveParam
.
PosInfo
.
ShelfType
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_03_ReturnHome
)
{
InStoreLog
(
"入库:SI_04_CompressWare 压紧物品(有压紧轴的才需要此步骤),压紧轴至P3(压紧前点) 开始"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_04_CompressWare
);
// ComMoveToPosition(moveP.ComPress_P3,Config.CompAxis_P3_Speed);
OpenDoor
();
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_04_CompressWare
)
{
SI_05_DeviceToDoor
();
//判断仓门是否打开
InStoreLog
(
"入库:SI_05 叉子进入入料口,进出轴至P2(进料口取料点) "
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_05_DeviceToDoor
);
ACAxisMove
(
Config
.
InOut_Axis
,
StoreMove
.
MoveParam
.
MoveP
.
InOut_P2
,
Config
.
InOutAxis_P2_Speed
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_05_DeviceToDoor
)
{
...
...
@@ -393,52 +374,24 @@ namespace OnlineStore.DeviceLibrary
{
InStoreLog
(
"入库:SI_07 叉子 从入料口抽出,进出轴至P1(待机点) "
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_07_DeviceBackFromDoor
);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed);
InOutBackToP1
(
moveP
.
InOut_P1
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_07_DeviceBackFromDoor
)
{
{
InStoreLog
(
"入库:SI_09 移动到库位点,前后轴至P2(库位点),升降轴至P3(库位入库前点) "
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_09_MoveToBag
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P2
,
Config
.
MiddleAxis_P2_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P3
,
Config
.
UpDownAxis_P3_Speed
);
//关闭舱门
//IOManager.IOMove(IO_Type.Door_Down, IO_VALUE.HIGH);
//IOManager.IOMove(IO_Type.Door_Up, IO_VALUE.LOW);
CloseDoor
(
false
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_08_LocationCylinder_Up
)
{
InStoreLog
(
"入库:SI_09 移动到库位点,前后轴至P2(库位点),升降轴至P3(库位入库前点)),关闭舱门 "
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_09_MoveToBag
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P2
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P3
,
Config
.
UpDownAxis_P3_Speed
);
//关闭舱门
//IOManager.IOMove(IO_Type.Door_Down, IO_VALUE.HIGH);
//IOManager.IOMove(IO_Type.Door_Up, IO_VALUE.LOW);
CloseDoor
(
false
);
}
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P3
,
Config
.
UpDownAxis_P3_Speed
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_09_MoveToBag
)
{
InStoreLog
(
"入库:SI_11 叉子进入库位中,进出轴至P3(库位取放料点) "
);
{
InStoreLog
(
"入库:SI_11 叉子进入库位中,进出轴至P4(库位取放料点) "
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_11_DeviceToBag
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P4
,
Config
.
InOutAxis_P3_Speed
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_10_LocationCylinder_Down
)
{
//IOManager.IOMove(IO_Type.LocationCylinder_Down, IO_VALUE.LOW);
InStoreLog
(
"入库:SI_11 叉子进入库位中,进出轴至P3(库位取放料点) "
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_11_DeviceToBag
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P4
,
Config
.
InOutAxis_P3_Speed
);
}
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P4
,
Config
.
InOutAxis_P4_Speed
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_11_DeviceToBag
)
{
InStoreLog
(
"入库:SI_12 放下物品,升降轴至P4(库位入料缓冲点),
压紧轴至P3(压紧前点)
"
);
InStoreLog
(
"入库:SI_12 放下物品,升降轴至P4(库位入料缓冲点),
"
);
// 5= 入仓位完成(料仓Box把料盘放入对应的库位中,装置还未恢复原始状态)
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PosInfo
.
PosId
:
""
;
lastPosId
=
posId
;
...
...
@@ -460,12 +413,11 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_13_DeviceBackFromBag
)
{
InStoreLog
(
"入库:SI_14 返回待机点,轴2/轴1
/轴4动作至P1(待机点)),检测门关闭
"
);
InStoreLog
(
"入库:SI_14 返回待机点,轴2/轴1
动作至P1(待机点)) ,托架前进
"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_14_GoBack
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P1
,
Config
.
UpDownAxis_P1_Speed
);
CloseDoor
(
);
ShelfForward
(
StoreMove
.
MoveParam
.
PosInfo
.
ShelfType
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_14_GoBack
)
{
...
...
@@ -482,9 +434,7 @@ namespace OnlineStore.DeviceLibrary
{
LogUtil
.
info
(
LOGGER
,
StoreName
+
" 入库,moveStatus="
+
StoreMove
.
MoveStep
+
",没有对应的处理!"
);
}
}
}
#
endregion
...
...
@@ -509,17 +459,20 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
error
(
LOGGER
,
StoreName
+
" 启动出库【"
+
posId
+
"】出错,叉子料盘检测有料"
);
return
false
;
}
string
doorMsg
=
DoorIsClose
();
if
(!
String
.
IsNullOrEmpty
(
doorMsg
))
{
LogUtil
.
error
(
LOGGER
,
StoreName
+
" 启动出库【"
+
posId
+
"】出错, "
+
doorMsg
);
return
false
;
}
storeStatus
=
StoreStatus
.
OutStoreExecute
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
"启动出库【"
+
posId
+
"】 "
,
storeMoveColor
);
storeRunStatus
=
StoreRunStatus
.
Busy
;
StoreMove
.
NewMove
(
StoreMoveType
.
OutStore
,
param
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_02_DeviceBack
);
OutStoreLog
(
"出库:SO_02 叉子先运动到P1 ,打开舱门 开始"
);
//ACAxisMove(Config.InOut_Axis, StoreMove.MoveParam.MoveP.InOut_P1, Config.InOutAxis_P1_Speed);
OutStoreLog
(
"出库:SO_02 叉子先运动到P1 , 开始"
);
InOutBackToP1
(
StoreMove
.
MoveParam
.
MoveP
.
InOut_P1
);
return
true
;
}
else
...
...
@@ -539,19 +492,14 @@ namespace OnlineStore.DeviceLibrary
{
return
;
}
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_01_LocationCylinderDown
)
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_02_DeviceBack
);
OutStoreLog
(
"出库:SO_02 叉子先运动到P1 "
);
InOutBackToP1
(
StoreMove
.
MoveParam
.
MoveP
.
InOut_P1
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_02_DeviceBack
)
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_02_DeviceBack
)
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_03_ToBagPosition
);
OutStoreLog
(
"出库:SO_03 走到库位,
压紧轴至P3(压紧前点) ,前后轴至P2(库位点),升降轴至P5(库位出库前点)
"
);
OutStoreLog
(
"出库:SO_03 走到库位,
前后轴至P2(库位点),升降轴至P5(库位出库前点) ,托架后退
"
);
// ComMoveToPosition(moveP.ComPress_P3,Config.CompAxis_P3_Speed);
ACAxisMove
(
Config
.
Middle_Axis
,
StoreMove
.
MoveParam
.
MoveP
.
Middle_P2
,
Config
.
MiddleAxis_P2_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
StoreMove
.
MoveParam
.
MoveP
.
UpDown_P5
,
Config
.
UpDownAxis_P5_Speed
);
ShelfBack
(
StoreMove
.
MoveParam
.
PosInfo
.
ShelfType
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_03_ToBagPosition
)
{
...
...
@@ -561,7 +509,7 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_04_DeviceToBag
)
{
OutStoreLog
(
"出库:SO_05 拿起物品,升降轴至P6(库位出料缓冲点)
,压紧轴至P2(压紧点)
"
);
OutStoreLog
(
"出库:SO_05 拿起物品,升降轴至P6(库位出料缓冲点)
"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_05_BagWareToDevice
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P6
,
Config
.
UpDownAxis_P6_Speed
);
...
...
@@ -570,7 +518,7 @@ namespace OnlineStore.DeviceLibrary
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_06_BagDeviceBack
);
OutStoreLog
(
"出库:SO_06 叉子从库位返回,进出轴至P1(待机点) "
);
//ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed);
InOutBackToP1
(
moveP
.
InOut_P1
);
//把库位的物品放到取到叉子上之后是出仓完成
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PosInfo
.
PosId
:
""
;
...
...
@@ -589,43 +537,17 @@ namespace OnlineStore.DeviceLibrary
}
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_08_ToDoorPosition
);
OutStoreLog
(
"出库:SO_08 走到料门口,前后轴至P1(待机点)升降轴至P2(进料口出料前点),
打开舱门
"
);
OutStoreLog
(
"出库:SO_08 走到料门口,前后轴至P1(待机点)升降轴至P2(进料口出料前点),
托架后退
"
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P2
,
Config
.
UpDownAxis_P2_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
);
ShelfBack
(
StoreMove
.
MoveParam
.
PosInfo
.
ShelfType
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_07_LocationCylinder_Up
)
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_08_ToDoorPosition
);
OutStoreLog
(
"出库:SO_08 走到料门口,前后轴至P1(待机点)升降轴至P2(进料口出料前点) "
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P2
,
Config
.
UpDownAxis_P2_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
moveP
.
Middle_P1
,
Config
.
MiddleAxis_P1_Speed
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_08_ToDoorPosition
)
{
//SO_10_DeviceToDoorPro();
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_091_WaitNoTray
);
if
(
StoreMove
.
MoveParam
.
PosInfo
.
ShelfType
.
Equals
(
1
))
{
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LeftShelf_Check
,
IO_VALUE
.
LOW
));
}
else
{
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
RightShelf_Check
,
IO_VALUE
.
LOW
));
}
// StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW));
// StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0));
OpenDoor
();
}
//此处需要等待移栽没有工作,才能把盘放入出料口
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_09_LocationCylinder_Down
)
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_091_WaitNoTray
);
OutStoreLog
(
"出库:SO_091 打开仓门,等待门口无料盘 "
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_09_WaitNoTray
);
OutStoreLog
(
"出库:SO_09_WaitNoTray 等待托架无料 "
);
if
(
StoreMove
.
MoveParam
.
PosInfo
.
ShelfType
.
Equals
(
1
))
{
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LeftShelf_Check
,
IO_VALUE
.
LOW
));
...
...
@@ -634,12 +556,9 @@ namespace OnlineStore.DeviceLibrary
{
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
RightShelf_Check
,
IO_VALUE
.
LOW
));
}
// StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW));
// StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0));
OpenDoor
();
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_091_WaitNoTray
)
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_09_WaitNoTray
)
{
SO_10_DeviceToDoorPro
();
}
...
...
@@ -647,8 +566,6 @@ namespace OnlineStore.DeviceLibrary
{
OutStoreLog
(
"出库:SO_11 放下物品,升降轴至P8(进料口出料缓冲点) "
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_11_DevicePutWare
);
//NeedCheckSafetyLight = 0;
//ComMoveToPosition(moveP.ComPress_P1,Config.CompAxis_P1_Speed);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P8
,
Config
.
UpDownAxis_P8_Speed
);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_11_DevicePutWare
)
...
...
@@ -660,37 +577,38 @@ namespace OnlineStore.DeviceLibrary
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_12_DeviceOutFromDoor
)
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_13_GoBack
);
OutStoreLog
(
"出库:SO_13 升降轴返回,轴2至P1(待机点) ,
关闭舱门
"
);
OutStoreLog
(
"出库:SO_13 升降轴返回,轴2至P1(待机点) ,
托架前进,打开门锁
"
);
ACAxisMove
(
Config
.
UpDown_Axis
,
moveP
.
UpDown_P1
,
Config
.
UpDownAxis_P1_Speed
);
CloseDoor
();
OpenDoor
(
StoreMove
.
MoveParam
.
PosInfo
.
ShelfType
);
ShelfForward
(
StoreMove
.
MoveParam
.
PosInfo
.
ShelfType
);
//发送消息给流水线
//SendOutStoreEnd(StoreMove);
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_13_GoBack
)
{
int
OutStoreWaitSeconds
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
OutStoreWaitSeconds
);
if
(
OutStoreWaitSeconds
<=
0
)
{
OutStoreWaitSeconds
=
600
;
}
int
ms
=
OutStoreWaitSeconds
*
1000
;
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_14_WaitTake
);
OutStoreLog
(
"出库:SO_14_WaitTake 等待拿走物品,最多等待"
+
OutStoreWaitSeconds
+
"秒"
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
ms
));
if
(
StoreMove
.
MoveParam
.
PosInfo
.
ShelfType
.
Equals
(
1
))
{
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
LeftShelf_Check
,
IO_VALUE
.
LOW
));
}
else
{
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
RightShelf_Check
,
IO_VALUE
.
LOW
));
}
// StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW));
// StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0));
StoreMove
.
OneWaitCanEndStep
=
true
;
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_14_WaitTake
)
{
//
int OutStoreWaitSeconds = ConfigAppSettings.GetIntValue(Setting_Init.OutStoreWaitSeconds);
//
if (OutStoreWaitSeconds <= 0)
//
{
//
OutStoreWaitSeconds = 600;
//
}
//
int ms = OutStoreWaitSeconds * 1000;
//
StoreMove.NextMoveStep(StoreMoveStep.SO_14_WaitTake);
//
OutStoreLog("出库:SO_14_WaitTake 等待拿走物品,最多等待" + OutStoreWaitSeconds + "秒");
//
StoreMove.WaitList.Add(WaitResultInfo.WaitTime(ms));
//
if (StoreMove.MoveParam.PosInfo.ShelfType.Equals(1))
//
{
//
StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.LeftShelf_Check, IO_VALUE.LOW));
//
}
//
else
//
{
//
StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.RightShelf_Check, IO_VALUE.LOW));
//
}
//
// StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW));
//
//
StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0));
//
StoreMove.OneWaitCanEndStep = true;
//
}
//
else if (StoreMove.MoveStep == StoreMoveStep.SO_14_WaitTake)
//
{
TimeSpan
span
=
DateTime
.
Now
-
startOutStoreTime
;
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PosInfo
.
PosId
:
""
;
...
...
@@ -706,27 +624,16 @@ namespace OnlineStore.DeviceLibrary
}
}
private
void
SO_10_DeviceToDoorPro
()
{
if
(
DoorIsOpen
())
{
//判断仓门是否打开
LineMoveP
moveP
=
StoreMove
.
MoveParam
.
MoveP
;
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_10_DeviceToDoor
);
OutStoreLog
(
"出库:SO_10 叉子进出料口,进出轴至P2(进料口取料点) "
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P2
,
Config
.
InOutAxis_P2_Speed
);
//NeedCheckSafetyLight = 1;
}
else
{
InStoreLog
(
"出库:SO_09 叉子即将取料,发现门未上升到位,重新打开门 "
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_091_WaitNoTray
);
OpenDoor
();
}
//判断仓门是否打开
LineMoveP
moveP
=
StoreMove
.
MoveParam
.
MoveP
;
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_10_DeviceToDoor
);
OutStoreLog
(
"出库:SO_10 叉子进出料口,进出轴至P2(进料口取料点) "
);
ACAxisMove
(
Config
.
InOut_Axis
,
moveP
.
InOut_P2
,
Config
.
InOutAxis_P2_Speed
);
}
#
endregion
public
List
<
InOutPosInfo
>
waitOutStoreList
=
new
List
<
InOutPosInfo
>();
...
...
@@ -774,6 +681,7 @@ namespace OnlineStore.DeviceLibrary
autoPositionIndex
=
newIndex
;
string
posid
=
PositionNumList
[
autoPositionIndex
];
InOutPosInfo
inoutinfo
=
new
InOutPosInfo
(
autoInoutCode
,
posid
);
inoutinfo
.
ShelfType
=
autoShelfType
;
//判断是否需要重置
if
(
CurrInOutACount
>=
Config
.
Box_ResetACount
)
{
...
...
@@ -818,6 +726,7 @@ namespace OnlineStore.DeviceLibrary
{
string
posid
=
PositionNumList
[
newIndex
];
InOutPosInfo
inoutinfo
=
new
InOutPosInfo
(
autoInoutCode
,
posid
);
inoutinfo
.
ShelfType
=
autoShelfType
;
//判断是否需要重置
if
(
CurrInOutACount
>=
Config
.
Box_ResetACount
)
{
...
...
source/DeviceLibrary/store/InOutParam.cs
查看文件 @
a3b477f
...
...
@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
MoveP
=
null
;
}
public
InOutParam
(
InOutPosInfo
inoutInfo
,
LineMoveP
linePosition
=
null
)
public
InOutParam
(
InOutPosInfo
inoutInfo
,
LineMoveP
linePosition
=
null
)
{
ACStoreP
=
null
;
;
MoveP
=
linePosition
;
...
...
@@ -90,7 +90,7 @@ namespace OnlineStore.DeviceLibrary
public
string
ToStr
()
{
return
" barcode["
+
barcode
+
"],PosId ["
+
PosId
+
"]
,plateW ["
+
PlateW
+
"],plateH ["
+
PlateH
+
"],ShelfLR
["
+
ShelfType
+
"]"
;
return
" barcode["
+
barcode
+
"],PosId ["
+
PosId
+
"]
["
+
PlateW
+
"X"
+
PlateH
+
"]
["
+
ShelfType
+
"]"
;
}
}
...
...
source/DeviceLibrary/store/StoreStep.cs
查看文件 @
a3b477f
...
...
@@ -179,14 +179,14 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///料仓出库,,定位气缸下降
/// </summary>
SO_01_LocationCylinderDown
=
101
,
//
SO_01_LocationCylinderDown=101,
/// <summary>
///料仓出库:叉子先运动到P1
/// </summary>
SO_02_DeviceBack
=
102
,
/// <summary>
/// 料仓出库,,
所有轴运行到库位, 轴4( 压紧) 至P3(压紧前点) ,轴1( 转盘) 至P2( 库位点),轴2(上下) 至P5(库位出库前点
)
/// 料仓出库,,
前后轴至P2(库位点),升降轴至P5(库位出库前点) ,托架后退
)
/// </summary>
SO_03_ToBagPosition
=
103
,
/// <summary>
...
...
@@ -207,7 +207,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 料仓出库,定位气缸伸出(有压紧轴的不需要此步骤),,定位气缸伸出 Y103-1/PCI5O1-83) Y103-2/PCI5O1-90) Y103-3/PCI5O1-95) 伸出到位
/// </summary>
SO_07_LocationCylinder_Up
=
107
,
//
SO_07_LocationCylinder_Up = 107,
/// <summary>
/// 料仓出库,,所有设备运行到门,,轴1( 转盘) 至P1( 待机点)轴2( 上下) 至P2( 进料口出料前点)
...
...
@@ -217,11 +217,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 料仓出库,定位气缸退回(有压紧轴的不需要此步骤),,定位气缸退回(Y104-1/PCI5O1-84) (Y104-2/PCI5O1-91) (Y104-2/PCI5O1-96) 退回到位
/// </summary>
SO_09_LocationCylinder_Down
=
109
,
//
SO_09_LocationCylinder_Down = 109,
/// <summary>
/// 等待门口无料盘
/// </summary>
SO_09
1
_WaitNoTray
=
115
,
SO_09_WaitNoTray
=
115
,
/// <summary>
/// 料仓出库,,叉子进出料口,,轴3( 叉子) 至P2( 进料口取料点)
...
...
@@ -252,28 +252,28 @@ namespace OnlineStore.DeviceLibrary
/// 入库检测
/// </summary>
SI_00_TrayCheck
=
200
,
///// <summary>
///// 入库,。定位气缸下降
///// </summary>
//SI_01_LocationCylinderDown=201,
/// <summary>
/// 入库,。定位气缸下降
/// </summary>
SI_01_LocationCylinderDown
=
201
,
/// <summary>
/// 入库。。进出轴(叉子)先返回P1
/// 入库。。进出轴(叉子)先返回P1,关闭门锁
/// </summary>
SI_02_InOutAxisHome
=
202
,
/// <summary>
/// 入库。。所有轴先回到待机点,轴2、轴1 动作到P1,
,轴4动作至P3
/// 入库。。所有轴先回到待机点,轴2、轴1 动作到P1,
托架后退
/// </summary>
SI_03_ReturnHome
=
203
,
/// <summary>
/// 入库。。压紧物品(有压紧轴的才需要此步骤),轴4( 压紧) 至P3(压紧前点)
/// </summary>
SI_04_CompressWare
=
204
,
///
//
<summary>
///
//
入库。。压紧物品(有压紧轴的才需要此步骤),轴4( 压紧) 至P3(压紧前点)
///
//
</summary>
//
SI_04_CompressWare = 204,
/// <summary>
/// 入库。。叉子进入入料口,轴3( 叉子) 至P2( 进料口取料点)
/// </summary>
SI_05_DeviceToDoor
=
205
,
/// <summary>
/// 入库。。把物品放入叉子上,轴2( 上下) 至P7( 进料口取料缓冲点)
,压紧物品(有压紧轴的才需要此步骤),轴4( 压紧) 至P2(压紧点)
/// 入库。。把物品放入叉子上,轴2( 上下) 至P7( 进料口取料缓冲点)
/// </summary>
SI_06_DoorWarToDevice
=
206
,
...
...
@@ -281,10 +281,10 @@ namespace OnlineStore.DeviceLibrary
/// 入库。。叉子 从入料口抽出,轴3( 叉子) 至P1( 待机点)
/// </summary>
SI_07_DeviceBackFromDoor
=
207
,
/// <summary>
/// 入库。。,定位气缸伸出 (有压紧轴的不需要此步骤)
/// </summary>
SI_08_LocationCylinder_Up
=
208
,
///
//
<summary>
///
//
入库。。,定位气缸伸出 (有压紧轴的不需要此步骤)
///
//
</summary>
//
SI_08_LocationCylinder_Up = 208,
/// <summary>
/// 入库。。移动到库位点,轴1( 转盘) 至P2( 库位点)轴2(上下) 至P3(库位入库前点)
/// </summary>
...
...
@@ -292,13 +292,13 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 入库。。定位气缸退回 (有压紧轴的不需要此步骤)
/// </summary>
SI_10_LocationCylinder_Down
=
210
,
//
SI_10_LocationCylinder_Down = 210,
/// <summary>
/// 入库。。叉子进入库位中,
轴3( 叉子) 至P3
(库位取放料点)
/// 入库。。叉子进入库位中,
进出轴至P4
(库位取放料点)
/// </summary>
SI_11_DeviceToBag
=
211
,
/// <summary>
/// 入库。。放下物品,轴2( 上下) 至P4( 库位入料缓冲点)
轴4( 压紧) 至P3( 压紧前点)
/// 入库。。放下物品,轴2( 上下) 至P4( 库位入料缓冲点)
/// </summary>
SI_12_PutWareToBag
=
212
,
/// <summary>
...
...
source/LoadCVSLibrary/storeConfig/config/Box_Config.cs
查看文件 @
a3b477f
...
...
@@ -507,7 +507,20 @@ namespace OnlineStore.LoadCSVLibrary
Config
.
UpDown_Axis
.
DefaultPosition
=
Config
.
UpDownAxis_DoorO_P1
;
}
private
List
<
string
>
HumpPortList
=
null
;
public
List
<
string
>
GetHumpPortList
()
{
if
(
HumpPortList
==
null
)
{
HumpPortList
=
new
List
<
string
>();
string
[]
arrayList
=
Humiture_Port
.
Split
(
';'
);
foreach
(
string
str
in
arrayList
)
{
HumpPortList
.
Add
(
str
.
Trim
().
ToUpper
());
}
}
return
HumpPortList
;
}
private
Dictionary
<
string
,
ushort
>
DILengthMap
=
null
;
private
Dictionary
<
string
,
ushort
>
DOLengthMap
=
null
;
public
ushort
GetDILength
(
string
ip
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论