Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e894aa89
由
LN
编写于
2024-01-05 16:16:42 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加设备照明
1 个父辈
269dcfad
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
1 行删除
DeviceLibrary/deviceLibrary/IO/IOManager.cs
DeviceLibrary/manager/TSAVBean.cs
DeviceLibrary/deviceLibrary/IO/IOManager.cs
查看文件 @
e894aa8
...
...
@@ -74,6 +74,11 @@ namespace TSA_V.DeviceLibrary
AddDO
(
new
ConfigIO
(
ConfigItemType
.
DO
,
KNDIP
,
slaveId
,
(
ushort
)(
IOBase
.
instance
.
DoStartAddress
+
8
),
"BottomCylinder_Up"
,
"Y09_底部定位气缸上升SOL"
));
AddDO
(
new
ConfigIO
(
ConfigItemType
.
DO
,
KNDIP
,
slaveId
,
(
ushort
)(
IOBase
.
instance
.
DoStartAddress
+
9
),
"BottomCylinder_Down"
,
"Y10_底部定位气缸下降SOL"
));
}
else
{
AddDO
(
new
ConfigIO
(
ConfigItemType
.
DO
,
KNDIP
,
slaveId
,
(
ushort
)(
IOBase
.
instance
.
DoStartAddress
+
8
),
"Device_Led"
,
"Y09_设备照明"
));
}
}
if
(
String
.
IsNullOrEmpty
(
builder
.
ToString
()).
Equals
(
false
)
&&
builder
.
ToString
().
Equals
(
"\r\n"
).
Equals
(
false
))
{
...
...
@@ -170,6 +175,13 @@ namespace TSA_V.DeviceLibrary
/// </summary>
public
static
string
BottomCylinder_Down
=
"BottomCylinder_Down"
;
/// <summary>
/// Y09_设备照明
/// </summary>
public
static
string
Device_Led
=
"Device_Led"
;
#
region
IO
控制方法
public
static
void
IOCheckAndMove
(
string
ioType
,
IO_VALUE
ioValue
)
{
...
...
DeviceLibrary/manager/TSAVBean.cs
查看文件 @
e894aa8
...
...
@@ -297,7 +297,8 @@ namespace TSA_V.DeviceLibrary
IsInSuddenDown
=
false
;
IOManager
.
IOMove
(
IOManager
.
Line_FStart
,
IO_VALUE
.
LOW
);
LogUtil
.
info
(
Name
+
"开始重置设备"
);
LogUtil
.
info
(
Name
+
"开始重置设备,打开设备照明"
);
IOManager
.
IOMove
(
IOManager
.
Device_Led
,
IO_VALUE
.
HIGH
);
LastResetChangeTime
=
DateTime
.
Now
;
Status
=
TSAVStatus
.
Reset
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论