Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO775-DUOStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 1b5b1337
由
LN
编写于
2020-09-03 17:19:43 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
bug修改
1 个父辈
510c7411
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
37 行增加
和
10 行删除
source/DUOStore/FrmIOStatus.Designer.cs
source/DUOStore/FrmIOStatus.cs
source/DUOStore/FrmIOStatus.resx
source/DeviceLibrary/device/IO/IOManager.cs
source/DeviceLibrary/store/KTK_Store.cs
source/LoadCVSLibrary/storeConfig/ConfigItemBase.cs
source/LoadCVSLibrary/storeConfig/config/BaseConfig.cs
source/DUOStore/FrmIOStatus.Designer.cs
查看文件 @
1b5b133
...
...
@@ -96,6 +96,7 @@
this
.
groupBox1
.
TabIndex
=
105
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
this
.
groupBox1
.
Enter
+=
new
System
.
EventHandler
(
this
.
groupBox1_Enter
);
//
// btnCloseAll
//
...
...
source/DUOStore/FrmIOStatus.cs
查看文件 @
1b5b133
...
...
@@ -139,7 +139,6 @@ namespace OnlineStore.DUOStore
if
(
selectControl
!=
null
)
{
selectControl
.
BackColor
=
Color
.
White
;
}
newControl
.
BackColor
=
Color
.
SkyBlue
;
selectControl
=
newControl
;
selectControl
=
newControl
;
}
}
}
...
...
@@ -171,7 +170,8 @@ namespace OnlineStore.DUOStore
foreach
(
string
key
in
DIControlList
.
Keys
)
{
IOTextControl
control
=
DIControlList
[
key
];
int
iov
=
(
int
)
StoreManager
.
Store
.
IOValue
(
key
);
ConfigIO
io
=
StoreManager
.
Config
.
DIList
[
key
];
int
iov
=
(
int
)
IOManager
.
instance
.
GetDIValue
(
io
.
IO_IP
,
0
,
io
.
GetIOAddr
());
if
(
iov
!=
control
.
IOValue
)
{
control
.
IOValue
=
iov
;
...
...
@@ -181,7 +181,8 @@ namespace OnlineStore.DUOStore
foreach
(
string
key
in
this
.
DOControlList
.
Keys
)
{
IOTextControl
control
=
DOControlList
[
key
];
int
iov
=
(
int
)
StoreManager
.
Store
.
IOValue
(
key
);
ConfigIO
io
=
StoreManager
.
Config
.
DOList
[
key
];
int
iov
=
(
int
)
IOManager
.
instance
.
GetDOValue
(
io
.
IO_IP
,
0
,
io
.
GetIOAddr
());
if
(
iov
!=
control
.
IOValue
)
{
control
.
IOValue
=
iov
;
...
...
@@ -345,5 +346,10 @@ namespace OnlineStore.DUOStore
StoreManager
.
Store
.
LineStop
(
null
);
}
private
void
groupBox1_Enter
(
object
sender
,
EventArgs
e
)
{
}
}
}
source/DUOStore/FrmIOStatus.resx
查看文件 @
1b5b133
...
...
@@ -121,6 +121,6 @@
<value>17, 11</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>
25
</value>
<value>
87
</value>
</metadata>
</root>
\ No newline at end of file
source/DeviceLibrary/device/IO/IOManager.cs
查看文件 @
1b5b133
...
...
@@ -16,7 +16,7 @@ namespace OnlineStore.DeviceLibrary
#
region
KNDIO
public
static
void
IOMove
(
string
ioType
,
IO_VALUE
ioValue
,
int
subType
=
0
)
public
static
void
IOMove
(
string
ioType
,
IO_VALUE
ioValue
,
int
subType
)
{
ConfigIO
configIo
=
GetDO
(
ioType
,
subType
);
if
(
configIo
!=
null
)
...
...
source/DeviceLibrary/store/KTK_Store.cs
查看文件 @
1b5b133
...
...
@@ -460,7 +460,7 @@ namespace OnlineStore.DeviceLibrary
public
bool
RunMultiAxis
(
bool
isCheck
,
string
serverOnDO
,
string
breakOnDO
,
params
AxisBean
[]
axisArray
)
{
IOManager
.
IOMove
(
serverOnDO
,
IO_VALUE
.
HIGH
);
IOManager
.
IOMove
(
serverOnDO
,
IO_VALUE
.
HIGH
,
baseConfig
.
Id
);
string
msg
=
""
;
foreach
(
AxisBean
axis
in
axisArray
)
{
...
...
@@ -486,19 +486,19 @@ namespace OnlineStore.DeviceLibrary
}
}
}
IOManager
.
IOMove
(
breakOnDO
,
IO_VALUE
.
HIGH
);
IOManager
.
IOMove
(
breakOnDO
,
IO_VALUE
.
HIGH
,
baseConfig
.
Id
);
return
true
;
}
public
void
CloseMultiAxis
(
string
serverOnDO
,
string
breakOnDO
,
params
AxisBean
[]
axisArray
)
{
IOManager
.
IOMove
(
breakOnDO
,
IO_VALUE
.
LOW
);
IOManager
.
IOMove
(
breakOnDO
,
IO_VALUE
.
LOW
,
baseConfig
.
Id
);
foreach
(
AxisBean
axis
in
axisArray
)
{
axis
.
ServoOff
();
}
Thread
.
Sleep
(
100
);
IOManager
.
IOMove
(
serverOnDO
,
IO_VALUE
.
LOW
);
IOManager
.
IOMove
(
serverOnDO
,
IO_VALUE
.
LOW
,
baseConfig
.
Id
);
}
public
bool
RunAxis
(
bool
isCheck
,
AxisBean
axis
)
...
...
source/LoadCVSLibrary/storeConfig/ConfigItemBase.cs
查看文件 @
1b5b133
...
...
@@ -159,6 +159,22 @@ namespace OnlineStore.LoadCSVLibrary
{
}
public
ConfigIO
CopyIO
(
string
suffix
=
"_1"
)
{
ConfigIO
io
=
new
ConfigIO
();
io
.
ConfigStr
=
this
.
ConfigStr
;
io
.
DeviceName
=
this
.
DeviceName
;
io
.
ElectricalDefinition
=
this
.
ElectricalDefinition
;
io
.
ProType
=
this
.
ProType
;
io
.
SubType
=
this
.
SubType
;
io
.
Explain
=
this
.
Explain
;
io
.
ProType
=
this
.
ProType
;
io
.
ProName
=
this
.
ProName
+
suffix
;
return
io
;
}
private
string
IP
=
""
;
public
string
IO_IP
...
...
source/LoadCVSLibrary/storeConfig/config/BaseConfig.cs
查看文件 @
1b5b133
...
...
@@ -117,6 +117,8 @@ namespace OnlineStore.LoadCSVLibrary
}
if
(
DIList
.
ContainsKey
(
io
.
ProName
))
{
ConfigIO
newIo
=
io
.
CopyIO
(
"_2"
);
DIList
.
Add
(
newIo
.
ProName
,
newIo
);
LogUtil
.
debug
(
"配置DI:["
+
io
.
ToString
()
+
"] ProName重复 "
);
}
else
...
...
@@ -153,6 +155,8 @@ namespace OnlineStore.LoadCSVLibrary
}
if
(
DOList
.
ContainsKey
(
io
.
ProName
))
{
ConfigIO
newIo
=
io
.
CopyIO
(
"_2"
);
DOList
.
Add
(
newIo
.
ProName
,
newIo
);
LogUtil
.
debug
(
"配置DO:["
+
io
.
ToString
()
+
"] ProName重复 "
);
}
else
...
...
@@ -165,7 +169,7 @@ namespace OnlineStore.LoadCSVLibrary
SubDOList
.
Add
(
io
.
SubType
,
new
Dictionary
<
string
,
ConfigIO
>());
}
if
(
SubDOList
[
io
.
SubType
].
ContainsKey
(
io
.
ProName
))
{
{
LogUtil
.
debug
(
"配置DO:["
+
io
.
ToString
()
+
"] ProName重复 "
);
}
else
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论