Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b4fc74eb
由
LN
编写于
2021-06-04 14:50:17 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
侧挡气缸和底部气缸增加禁用功能
1 个父辈
64e1a1b2
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
111 行增加
和
40 行删除
Common/Setting_Init.cs
DeviceLibrary/manager/TSAVBean.cs
DeviceLibrary/manager/TSAVBean_Partial.cs
TSA-V/App.config
TSA-V/FrmDeviceConfig.Designer.cs
TSA-V/FrmDeviceConfig.cs
TSA-V/Properties/Resource.en-US.resx
TSA-V/Properties/Resource.zh-CN.resx
TSA-V/deviceDebug/FrmIoManager.cs
Common/Setting_Init.cs
查看文件 @
b4fc74e
...
...
@@ -165,5 +165,9 @@ namespace TSA_V.Common
/// 是否需要输入pcb条码
/// </summary>
public
static
string
NeedPCBCode
=
"NeedPCBCode"
;
public
static
string
DisableSideCylinder
=
"DisableSideCylinder"
;
public
static
string
DisableBottomCylinder
=
"DisableBottomCylinder"
;
}
}
DeviceLibrary/manager/TSAVBean.cs
查看文件 @
b4fc74e
...
...
@@ -21,6 +21,10 @@ namespace TSA_V.DeviceLibrary
public
static
int
DefaultPType
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
DefaultPointType
);
public
static
int
DefaultPSize
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
DefaultPointSize
);
public
static
bool
DisableSideCylinder
=
false
;
public
static
bool
DisableBottomCylinder
=
false
;
private
static
string
warnMsg
=
""
;
public
static
string
WarnMsg
{
...
...
@@ -66,6 +70,8 @@ namespace TSA_V.DeviceLibrary
public
static
string
LoadTSAV
()
{
LogUtil
.
info
(
Name
+
"开始加载电机配置。。"
);
DisableSideCylinder
=
ConfigAppSettings
.
GetBoolValue
(
Setting_Init
.
DisableSideCylinder
);
DisableBottomCylinder
=
ConfigAppSettings
.
GetBoolValue
(
Setting_Init
.
DisableBottomCylinder
);
if
(
workTimer
==
null
)
{
workTimer
=
new
System
.
Timers
.
Timer
();
...
...
@@ -570,7 +576,7 @@ namespace TSA_V.DeviceLibrary
LogUtil
.
info
(
"StopMove,停止所有运动"
);
BottomCylinderDown
(
false
);
CylinderMove
(
IOManager
.
StopCylinder_Down
,
IOManager
.
StopCylinder_Up
,
false
);
CylinderMove
(
IOManager
.
SideCylinder_Forward
,
IOManager
.
SideCylinder_Back
,
false
);
SideCyliderBack
(
false
);
Work
.
StopWork
();
LineStep
.
EndMove
();
...
...
DeviceLibrary/manager/TSAVBean_Partial.cs
查看文件 @
b4fc74e
...
...
@@ -55,7 +55,7 @@ namespace TSA_V.DeviceLibrary
LogUtil
.
info
(
"开始流水线转动:挡停气缸下降,侧挡气缸后退,底部气缸下降"
);
BottomCylinderDown
(
true
);
CylinderMove
(
IOManager
.
StopCylinder_Up
,
IOManager
.
StopCylinder_Down
,
true
);
CylinderMove
(
IOManager
.
SideCylinder_Forward
,
IOManager
.
SideCylinder_Back
,
true
);
SideCyliderBack
(
true
);
}
else
{
...
...
@@ -97,7 +97,7 @@ namespace TSA_V.DeviceLibrary
LogUtil
.
info
(
"检测到流水线前端信号:挡停气缸下降,侧挡气缸后退,底部气缸下降"
);
BottomCylinderDown
(
true
);
CylinderMove
(
IOManager
.
StopCylinder_Up
,
IOManager
.
StopCylinder_Down
,
true
);
CylinderMove
(
IOManager
.
SideCylinder_Forward
,
IOManager
.
SideCylinder_Back
,
true
);
SideCyliderBack
(
true
);
}
else
{
...
...
@@ -191,7 +191,7 @@ namespace TSA_V.DeviceLibrary
{
LineStep
.
NextMoveStep
(
LineStepBean
.
LS06_SideCylindeMove
);
LineLog
(
"流水线转动:侧挡气缸前进"
);
CylinderMove
(
IOManager
.
SideCylinder_Back
,
IOManager
.
SideCylinder_Forward
,
true
);
SideCyliderForward
(
true
);
}
else
if
(
LineStep
.
lineStep
.
Equals
(
LineStepBean
.
LS06_SideCylindeMove
))
{
...
...
@@ -222,7 +222,7 @@ namespace TSA_V.DeviceLibrary
LineStep
.
NextMoveStep
(
LineStepBean
.
LS09_StopBack
);
LineLog
(
"流水线转动:底部气缸下降,侧挡后退,工作统计"
);
BottomCylinderDown
(
true
);
CylinderMove
(
IOManager
.
SideCylinder_Forward
,
IOManager
.
SideCylinder_Back
,
true
);
SideCyliderBack
(
true
);
}
else
if
(
LineStep
.
lineStep
.
Equals
(
LineStepBean
.
LS09_StopBack
))
{
...
...
@@ -338,6 +338,8 @@ namespace TSA_V.DeviceLibrary
public
static
void
BottomCylinderDown
(
bool
isWait
=
false
)
{
if
(!
DisableBottomCylinder
)
{
if
(
isWait
)
{
LineStep
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IOManager
.
BottomCylinder_Down1
,
IO_VALUE
.
HIGH
));
...
...
@@ -345,9 +347,11 @@ namespace TSA_V.DeviceLibrary
}
IOManager
.
IOMove
(
IOManager
.
BottomCylinder_Up
,
IO_VALUE
.
LOW
);
IOManager
.
IOMove
(
IOManager
.
BottomCylinder_Down
,
IO_VALUE
.
HIGH
);
}
public
static
void
BottomCylinderUp
(
bool
isWait
=
false
)
}
public
static
void
BottomCylinderUp
(
bool
isWait
=
false
)
{
if
(!
DisableBottomCylinder
)
{
if
(
isWait
)
{
...
...
@@ -357,6 +361,22 @@ namespace TSA_V.DeviceLibrary
IOManager
.
IOMove
(
IOManager
.
BottomCylinder_Down
,
IO_VALUE
.
LOW
);
IOManager
.
IOMove
(
IOManager
.
BottomCylinder_Up
,
IO_VALUE
.
HIGH
);
}
}
public
static
void
SideCyliderForward
(
bool
isWait
=
false
)
{
if
(!
DisableSideCylinder
)
{
CylinderMove
(
IOManager
.
SideCylinder_Back
,
IOManager
.
SideCylinder_Forward
,
isWait
);
}
}
public
static
void
SideCyliderBack
(
bool
isWait
=
false
)
{
if
(!
DisableSideCylinder
)
{
CylinderMove
(
IOManager
.
SideCylinder_Forward
,
IOManager
.
SideCylinder_Back
,
isWait
);
}
}
public
static
void
CylinderMove
(
string
lowType
,
string
highType
,
bool
isWait
=
false
)
{
...
...
@@ -372,7 +392,7 @@ namespace TSA_V.DeviceLibrary
{
BottomCylinderDown
(
isWait
);
CylinderMove
(
IOManager
.
StopCylinder_Down
,
IOManager
.
StopCylinder_Up
,
isWait
);
CylinderMove
(
IOManager
.
SideCylinder_Forward
,
IOManager
.
SideCylinder_Back
,
isWait
);
SideCyliderBack
(
isWait
);
}
}
/// <summary>
...
...
TSA-V/App.config
查看文件 @
b4fc74e
...
...
@@ -101,7 +101,7 @@
<
add
key
=
"Line_WidthPosition"
value
=
""
/>
<
add
key
=
"Server_Log_Open"
value
=
"0"
/>
<!--本地开放的
http
服务器端口号-->
<
!--<
add
key
=
"WebServiceAddr"
value
=
"http://localhost:4090/rest/api/v1/station/"
/>--
>
<
add
key
=
"WebServiceAddr"
value
=
"http://localhost:4090/rest/api/v1/station/"
/
>
<!--组装完成后上传数据的服务器地址-->
<!--<
add
key
=
"DCSServerAddr"
value
=
"http://192.168.8.1:1007/DCS_Integration/Cartridge.asmx?op=CartridgeInfo"
/>-->
<!--组装工作前,需要输入
pcb
板条码-->
...
...
TSA-V/FrmDeviceConfig.Designer.cs
查看文件 @
b4fc74e
...
...
@@ -57,6 +57,8 @@
this
.
cmbTestProName
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
txtCode
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lblCode
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
chbDisBottomCylinder
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
chbDisSideCylinder
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
numSizeY
)).
BeginInit
();
...
...
@@ -68,11 +70,13 @@
//
// groupBox1
//
this
.
groupBox1
.
Controls
.
Add
(
this
.
chbDisSideCylinder
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
chbDisBottomCylinder
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
chbISDebug
);
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
(
27
,
1
5
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
27
,
1
3
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
541
,
70
);
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
541
,
134
);
this
.
groupBox1
.
TabIndex
=
284
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"其他参数"
;
...
...
@@ -80,7 +84,7 @@
// chbISDebug
//
this
.
chbISDebug
.
AutoSize
=
true
;
this
.
chbISDebug
.
Location
=
new
System
.
Drawing
.
Point
(
103
,
2
8
);
this
.
chbISDebug
.
Location
=
new
System
.
Drawing
.
Point
(
103
,
2
2
);
this
.
chbISDebug
.
Name
=
"chbISDebug"
;
this
.
chbISDebug
.
Size
=
new
System
.
Drawing
.
Size
(
183
,
21
);
this
.
chbISDebug
.
TabIndex
=
19
;
...
...
@@ -102,9 +106,9 @@
this
.
groupBox4
.
Controls
.
Add
(
this
.
label3
);
this
.
groupBox4
.
Controls
.
Add
(
this
.
cmbBoardList
);
this
.
groupBox4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
27
,
89
);
this
.
groupBox4
.
Location
=
new
System
.
Drawing
.
Point
(
27
,
156
);
this
.
groupBox4
.
Name
=
"groupBox4"
;
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
541
,
2
58
);
this
.
groupBox4
.
Size
=
new
System
.
Drawing
.
Size
(
541
,
2
19
);
this
.
groupBox4
.
TabIndex
=
284
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"坐标修正(会修正所选程序的组装坐标,点击更新生效)"
;
...
...
@@ -112,7 +116,7 @@
// numSizeY
//
this
.
numSizeY
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
numSizeY
.
Location
=
new
System
.
Drawing
.
Point
(
178
,
1
68
);
this
.
numSizeY
.
Location
=
new
System
.
Drawing
.
Point
(
178
,
1
42
);
this
.
numSizeY
.
Maximum
=
new
decimal
(
new
int
[]
{
255
,
0
,
...
...
@@ -135,7 +139,7 @@
// numSizeX
//
this
.
numSizeX
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
numSizeX
.
Location
=
new
System
.
Drawing
.
Point
(
178
,
1
28
);
this
.
numSizeX
.
Location
=
new
System
.
Drawing
.
Point
(
178
,
1
07
);
this
.
numSizeX
.
Maximum
=
new
decimal
(
new
int
[]
{
255
,
0
,
...
...
@@ -158,7 +162,7 @@
// numPenWidth
//
this
.
numPenWidth
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
numPenWidth
.
Location
=
new
System
.
Drawing
.
Point
(
178
,
208
);
this
.
numPenWidth
.
Location
=
new
System
.
Drawing
.
Point
(
178
,
177
);
this
.
numPenWidth
.
Minimum
=
new
decimal
(
new
int
[]
{
1
,
0
,
...
...
@@ -176,7 +180,7 @@
// lblLineWidth
//
this
.
lblLineWidth
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblLineWidth
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
212
);
this
.
lblLineWidth
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
181
);
this
.
lblLineWidth
.
Name
=
"lblLineWidth"
;
this
.
lblLineWidth
.
Size
=
new
System
.
Drawing
.
Size
(
160
,
17
);
this
.
lblLineWidth
.
TabIndex
=
325
;
...
...
@@ -185,7 +189,7 @@
//
// label1
//
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
1
71
);
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
1
45
);
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
160
,
17
);
this
.
label1
.
TabIndex
=
306
;
...
...
@@ -204,7 +208,7 @@
"4=━━"
,
"5=□"
,
"6=○"
});
this
.
cmbType
.
Location
=
new
System
.
Drawing
.
Point
(
178
,
86
);
this
.
cmbType
.
Location
=
new
System
.
Drawing
.
Point
(
178
,
70
);
this
.
cmbType
.
Name
=
"cmbType"
;
this
.
cmbType
.
Size
=
new
System
.
Drawing
.
Size
(
119
,
28
);
this
.
cmbType
.
TabIndex
=
305
;
...
...
@@ -212,7 +216,7 @@
// lbltype
//
this
.
lbltype
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lbltype
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
89
);
this
.
lbltype
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
73
);
this
.
lbltype
.
Name
=
"lbltype"
;
this
.
lbltype
.
Size
=
new
System
.
Drawing
.
Size
(
160
,
17
);
this
.
lbltype
.
TabIndex
=
304
;
...
...
@@ -224,7 +228,7 @@
this
.
btnUpdateSize
.
Anchor
=
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
;
this
.
btnUpdateSize
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpdateSize
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpdateSize
.
Location
=
new
System
.
Drawing
.
Point
(
349
,
1
72
);
this
.
btnUpdateSize
.
Location
=
new
System
.
Drawing
.
Point
(
349
,
1
53
);
this
.
btnUpdateSize
.
Name
=
"btnUpdateSize"
;
this
.
btnUpdateSize
.
Size
=
new
System
.
Drawing
.
Size
(
149
,
45
);
this
.
btnUpdateSize
.
TabIndex
=
284
;
...
...
@@ -234,7 +238,7 @@
//
// label4
//
this
.
label4
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
1
30
);
this
.
label4
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
1
09
);
this
.
label4
.
Name
=
"label4"
;
this
.
label4
.
Size
=
new
System
.
Drawing
.
Size
(
160
,
17
);
this
.
label4
.
TabIndex
=
282
;
...
...
@@ -243,7 +247,7 @@
//
// label3
//
this
.
label3
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
48
);
this
.
label3
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
37
);
this
.
label3
.
Name
=
"label3"
;
this
.
label3
.
Size
=
new
System
.
Drawing
.
Size
(
160
,
17
);
this
.
label3
.
TabIndex
=
281
;
...
...
@@ -255,7 +259,7 @@
this
.
cmbBoardList
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbBoardList
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbBoardList
.
FormattingEnabled
=
true
;
this
.
cmbBoardList
.
Location
=
new
System
.
Drawing
.
Point
(
178
,
43
);
this
.
cmbBoardList
.
Location
=
new
System
.
Drawing
.
Point
(
178
,
32
);
this
.
cmbBoardList
.
Name
=
"cmbBoardList"
;
this
.
cmbBoardList
.
Size
=
new
System
.
Drawing
.
Size
(
215
,
29
);
this
.
cmbBoardList
.
TabIndex
=
280
;
...
...
@@ -264,7 +268,7 @@
//
this
.
btnCancel
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnCancel
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCancel
.
Location
=
new
System
.
Drawing
.
Point
(
312
,
56
1
);
this
.
btnCancel
.
Location
=
new
System
.
Drawing
.
Point
(
312
,
56
8
);
this
.
btnCancel
.
Name
=
"btnCancel"
;
this
.
btnCancel
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
45
);
this
.
btnCancel
.
TabIndex
=
279
;
...
...
@@ -276,7 +280,7 @@
//
this
.
btnOk
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOk
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOk
.
Location
=
new
System
.
Drawing
.
Point
(
161
,
56
1
);
this
.
btnOk
.
Location
=
new
System
.
Drawing
.
Point
(
161
,
56
8
);
this
.
btnOk
.
Name
=
"btnOk"
;
this
.
btnOk
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
45
);
this
.
btnOk
.
TabIndex
=
278
;
...
...
@@ -345,9 +349,9 @@
this
.
groupBox3
.
Controls
.
Add
(
this
.
txtCode
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
lblCode
);
this
.
groupBox3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
27
,
3
51
);
this
.
groupBox3
.
Location
=
new
System
.
Drawing
.
Point
(
27
,
3
79
);
this
.
groupBox3
.
Name
=
"groupBox3"
;
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
541
,
1
8
8
);
this
.
groupBox3
.
Size
=
new
System
.
Drawing
.
Size
(
541
,
1
6
8
);
this
.
groupBox3
.
TabIndex
=
286
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"DCS测试"
;
...
...
@@ -356,7 +360,7 @@
//
this
.
btnTest
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnTest
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnTest
.
Location
=
new
System
.
Drawing
.
Point
(
349
,
1
16
);
this
.
btnTest
.
Location
=
new
System
.
Drawing
.
Point
(
349
,
1
03
);
this
.
btnTest
.
Name
=
"btnTest"
;
this
.
btnTest
.
Size
=
new
System
.
Drawing
.
Size
(
149
,
45
);
this
.
btnTest
.
TabIndex
=
291
;
...
...
@@ -369,7 +373,7 @@
this
.
txtAddr
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
txtAddr
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtAddr
.
Location
=
new
System
.
Drawing
.
Point
(
103
,
3
8
);
this
.
txtAddr
.
Location
=
new
System
.
Drawing
.
Point
(
103
,
3
3
);
this
.
txtAddr
.
MaxLength
=
300
;
this
.
txtAddr
.
Name
=
"txtAddr"
;
this
.
txtAddr
.
Size
=
new
System
.
Drawing
.
Size
(
395
,
23
);
...
...
@@ -378,7 +382,7 @@
// label6
//
this
.
label6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label6
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
41
);
this
.
label6
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
36
);
this
.
label6
.
Name
=
"label6"
;
this
.
label6
.
Size
=
new
System
.
Drawing
.
Size
(
91
,
17
);
this
.
label6
.
TabIndex
=
289
;
...
...
@@ -388,7 +392,7 @@
// label5
//
this
.
label5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
1
31
);
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
1
18
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
91
,
17
);
this
.
label5
.
TabIndex
=
288
;
...
...
@@ -400,7 +404,7 @@
this
.
cmbTestProName
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cmbTestProName
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbTestProName
.
FormattingEnabled
=
true
;
this
.
cmbTestProName
.
Location
=
new
System
.
Drawing
.
Point
(
103
,
1
27
);
this
.
cmbTestProName
.
Location
=
new
System
.
Drawing
.
Point
(
103
,
1
14
);
this
.
cmbTestProName
.
Name
=
"cmbTestProName"
;
this
.
cmbTestProName
.
Size
=
new
System
.
Drawing
.
Size
(
215
,
25
);
this
.
cmbTestProName
.
TabIndex
=
287
;
...
...
@@ -410,7 +414,7 @@
this
.
txtCode
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
txtCode
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtCode
.
Location
=
new
System
.
Drawing
.
Point
(
103
,
8
0
);
this
.
txtCode
.
Location
=
new
System
.
Drawing
.
Point
(
103
,
7
0
);
this
.
txtCode
.
MaxLength
=
300
;
this
.
txtCode
.
Name
=
"txtCode"
;
this
.
txtCode
.
Size
=
new
System
.
Drawing
.
Size
(
395
,
23
);
...
...
@@ -420,13 +424,33 @@
// lblCode
//
this
.
lblCode
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblCode
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
8
3
);
this
.
lblCode
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
7
3
);
this
.
lblCode
.
Name
=
"lblCode"
;
this
.
lblCode
.
Size
=
new
System
.
Drawing
.
Size
(
91
,
17
);
this
.
lblCode
.
TabIndex
=
15
;
this
.
lblCode
.
Text
=
"条码:"
;
this
.
lblCode
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// chbDisBottonCylinder
//
this
.
chbDisBottomCylinder
.
AutoSize
=
true
;
this
.
chbDisBottomCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
103
,
59
);
this
.
chbDisBottomCylinder
.
Name
=
"chbDisBottonCylinder"
;
this
.
chbDisBottomCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
99
,
21
);
this
.
chbDisBottomCylinder
.
TabIndex
=
20
;
this
.
chbDisBottomCylinder
.
Text
=
"禁用底部气缸"
;
this
.
chbDisBottomCylinder
.
UseVisualStyleBackColor
=
true
;
//
// chbDisSideCylinder
//
this
.
chbDisSideCylinder
.
AutoSize
=
true
;
this
.
chbDisSideCylinder
.
Location
=
new
System
.
Drawing
.
Point
(
103
,
96
);
this
.
chbDisSideCylinder
.
Name
=
"chbDisSideCylinder"
;
this
.
chbDisSideCylinder
.
Size
=
new
System
.
Drawing
.
Size
(
99
,
21
);
this
.
chbDisSideCylinder
.
TabIndex
=
21
;
this
.
chbDisSideCylinder
.
Text
=
"禁用侧挡气缸"
;
this
.
chbDisSideCylinder
.
UseVisualStyleBackColor
=
true
;
//
// FrmDeviceConfig
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
...
...
@@ -486,5 +510,7 @@
private
System
.
Windows
.
Forms
.
TextBox
txtCode
;
private
System
.
Windows
.
Forms
.
Label
lblCode
;
private
System
.
Windows
.
Forms
.
Button
btnTest
;
private
System
.
Windows
.
Forms
.
CheckBox
chbDisSideCylinder
;
private
System
.
Windows
.
Forms
.
CheckBox
chbDisBottomCylinder
;
}
}
\ No newline at end of file
TSA-V/FrmDeviceConfig.cs
查看文件 @
b4fc74e
...
...
@@ -43,7 +43,8 @@ namespace TSA_V
{
LanguageProcess
();
this
.
chbISDebug
.
Checked
=
TSAVBean
.
IsDebug
;
this
.
chbDisBottomCylinder
.
Checked
=
TSAVBean
.
DisableBottomCylinder
;
this
.
chbDisSideCylinder
.
Checked
=
TSAVBean
.
DisableSideCylinder
;
this
.
txtKNDIP
.
Text
=
IOManager
.
KNDIP
.
ToString
();
this
.
txtKNDPort
.
Text
=
IOManager
.
KNDPort
.
ToString
();
LoadCom
();
...
...
@@ -106,10 +107,20 @@ namespace TSA_V
bool
isDebug
=
chbISDebug
.
Checked
;
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
IsDebug
,
isDebug
);
TSAVBean
.
IsDebug
=
isDebug
;
bool
disBottom
=
chbDisBottomCylinder
.
Checked
;
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
DisableBottomCylinder
,
disBottom
);
TSAVBean
.
DisableBottomCylinder
=
disBottom
;
bool
disSide
=
chbDisSideCylinder
.
Checked
;
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
DisableSideCylinder
,
disSide
);
TSAVBean
.
DisableSideCylinder
=
disSide
;
string
server
=
txtAddr
.
Text
.
Trim
();
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
DCSServerAddr
,
server
);
MesUtil
.
serverAddress
=
server
;
LogUtil
.
info
(
"保存配置成功: 调试["
+
isDebug
+
"],地址["
+
server
+
"]
"
);
LogUtil
.
info
(
$
"保存配置成功: 调试{ isDebug },禁用底部气缸{disBottom},禁用侧挡气缸{disSide},地址{server}
"
);
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
SaveOk
,
"保存成功"
));
}
...
...
TSA-V/Properties/Resource.en-US.resx
查看文件 @
b4fc74e
...
...
@@ -2362,4 +2362,6 @@
<data name="ItemText_Disable" xml:space="preserve">
<value>Disable</value>
</data>
<data name = "FrmDeviceConfig_chbDisSideCylinder_Text" xml:space = "preserve"> <value> Disable the side brake cylinder </value> </data>
<data name = "FrmDeviceConfig_chbDisBottonCylinder_Text" xml:space = "preserve"> <value> Disable bottom cylinder </value> </data>
</root>
\ No newline at end of file
TSA-V/Properties/Resource.zh-CN.resx
查看文件 @
b4fc74e
...
...
@@ -2376,4 +2376,6 @@
<data name="ItemText_Disable" xml:space="preserve">
<value>禁用</value>
</data>
<data name = "FrmDeviceConfig_chbDisSideCylinder_Text" xml:space = "preserve"> <value> 禁用侧挡气缸 </value> </data>
<data name = "FrmDeviceConfig_chbDisBottonCylinder_Text" xml:space = "preserve"> <value> 禁用底部气缸 </value> </data>
</root>
\ No newline at end of file
TSA-V/deviceDebug/FrmIoManager.cs
查看文件 @
b4fc74e
...
...
@@ -323,12 +323,12 @@ namespace TSA_V
private
void
btnSideForward_Click
(
object
sender
,
EventArgs
e
)
{
TSAVBean
.
CylinderMove
(
IOManager
.
SideCylinder_Back
,
IOManager
.
SideCylinder_Forward
);
TSAVBean
.
SideCyliderForward
(
);
}
private
void
btnSideBack_Click
(
object
sender
,
EventArgs
e
)
{
TSAVBean
.
CylinderMove
(
IOManager
.
SideCylinder_Forward
,
IOManager
.
SideCylinder_Back
);
TSAVBean
.
SideCyliderBack
(
);
}
private
void
btnBottomUp_Click
(
object
sender
,
EventArgs
e
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论