Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit f2230197
由
LN
编写于
2020-07-08 11:00:14 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
设备照明增加验证
1 个父辈
84f6140c
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
49 行增加
和
27 行删除
source/ACSingleStore/FrmIOStatus.cs
source/ACSingleStore/FrmStoreBox.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/ACSingleStore/FrmIOStatus.cs
查看文件 @
f223019
...
@@ -178,6 +178,16 @@ namespace OnlineStore.ACSingleStore
...
@@ -178,6 +178,16 @@ namespace OnlineStore.ACSingleStore
private
void
FrmStoreIOStatus_Load
(
object
sender
,
EventArgs
e
)
private
void
FrmStoreIOStatus_Load
(
object
sender
,
EventArgs
e
)
{
{
AIManager
.
Instance
.
NeedShow
=
true
;
AIManager
.
Instance
.
NeedShow
=
true
;
if
(
boxBean
.
Config
.
StoreDOList
.
ContainsKey
(
IO_Type
.
Device_Led
))
{
btnDevideLed
.
Visible
=
true
;
btnCDLed
.
Visible
=
true
;
}
else
{
btnDevideLed
.
Visible
=
false
;
btnCDLed
.
Visible
=
false
;
}
}
}
private
void
cmbWriteIO_DrawItem
(
object
sender
,
DrawItemEventArgs
e
)
private
void
cmbWriteIO_DrawItem
(
object
sender
,
DrawItemEventArgs
e
)
...
...
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
f223019
...
@@ -45,7 +45,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -45,7 +45,7 @@ namespace OnlineStore.ACSingleStore
LogUtil
.
error
(
LOGGER
,
"找不到对应的料仓"
);
LogUtil
.
error
(
LOGGER
,
"找不到对应的料仓"
);
return
;
return
;
}
}
ACStorePosition
ktkPosition
=
null
;
ACStorePosition
ktkPosition
=
null
;
if
(
store
.
PositionNumList
.
Count
>
0
)
if
(
store
.
PositionNumList
.
Count
>
0
)
...
@@ -83,7 +83,16 @@ namespace OnlineStore.ACSingleStore
...
@@ -83,7 +83,16 @@ namespace OnlineStore.ACSingleStore
txtInOutP2
.
Text
=
ktkPosition
.
InOutAxis_DoorPosition_P2
.
ToString
();
txtInOutP2
.
Text
=
ktkPosition
.
InOutAxis_DoorPosition_P2
.
ToString
();
//txtUpDownP1.Text = ktkPosition.UpDownAxis_DoorOPosition_P1.ToString();
//txtUpDownP1.Text = ktkPosition.UpDownAxis_DoorOPosition_P1.ToString();
}
}
if
(
store
.
Config
.
StoreDOList
.
ContainsKey
(
IO_Type
.
Device_Led
))
{
btnOpenDLed
.
Visible
=
true
;
btnCloseDLed
.
Visible
=
true
;
}
else
{
btnOpenDLed
.
Visible
=
false
;
btnCloseDLed
.
Visible
=
false
;
}
timer1
.
Enabled
=
true
;
timer1
.
Enabled
=
true
;
}
}
#
endregion
#
endregion
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
f223019
...
@@ -911,36 +911,39 @@ namespace OnlineStore.DeviceLibrary
...
@@ -911,36 +911,39 @@ namespace OnlineStore.DeviceLibrary
//仓门打开,打开照明
//仓门打开,打开照明
bool
doorIsOpen
=
false
;
if
(
Config
.
StoreDOList
.
ContainsKey
(
IO_Type
.
Device_Led
))
if
(
IOManager
.
IOValue
(
IO_Type
.
Door_Limit
).
Equals
(
IO_VALUE
.
LOW
))
{
{
doorIsOpen
=
true
;
bool
doorIsOpen
=
false
;
}
if
(
IOManager
.
IOValue
(
IO_Type
.
Door_Limit
).
Equals
(
IO_VALUE
.
LOW
))
else
if
(
Config
.
StoreDIList
.
ContainsKey
(
IO_Type
.
Door_LeftLimit
)
&&
IOManager
.
IOValue
(
IO_Type
.
Door_LeftLimit
).
Equals
(
IO_VALUE
.
LOW
))
{
{
doorIsOpen
=
true
;
doorIsOpen
=
true
;
}
}
else
if
(
Config
.
StoreDIList
.
ContainsKey
(
IO_Type
.
Door_LeftLimit
)
&&
IOManager
.
IOValue
(
IO_Type
.
Door_LeftLimit
).
Equals
(
IO_VALUE
.
LOW
))
else
if
(
Config
.
StoreDIList
.
ContainsKey
(
IO_Type
.
Door_RightLimit
)
&&
IOManager
.
IOValue
(
IO_Type
.
Door_RightLimit
).
Equals
(
IO_VALUE
.
LOW
))
{
{
doorIsOpen
=
true
;
doorIsOpen
=
true
;
}
}
else
if
(
Config
.
StoreDIList
.
ContainsKey
(
IO_Type
.
Door_RightLimit
)
&&
IOManager
.
IOValue
(
IO_Type
.
Door_RightLimit
).
Equals
(
IO_VALUE
.
LOW
))
else
if
(!
doorIsOpen
)
{
{
doorIsOpen
=
true
;
doorIsOpen
=
true
;
}
}
else
if
(!
doorIsOpen
)
{
doorIsOpen
=
true
;
}
if
(
doorIsOpen
)
if
(
doorIsOpen
)
{
if
(
IOManager
.
IOValue
(
IO_Type
.
Device_Led
).
Equals
(
IO_VALUE
.
LOW
))
{
{
IOManager
.
IOMove
(
IO_Type
.
Device_Led
,
IO_VALUE
.
HIGH
);
if
(
IOManager
.
IOValue
(
IO_Type
.
Device_Led
).
Equals
(
IO_VALUE
.
LOW
))
{
IOManager
.
IOMove
(
IO_Type
.
Device_Led
,
IO_VALUE
.
HIGH
);
}
}
}
}
else
else
{
if
(
IOManager
.
IOValue
(
IO_Type
.
Device_Led
).
Equals
(
IO_VALUE
.
HIGH
))
{
{
IOManager
.
IOMove
(
IO_Type
.
Device_Led
,
IO_VALUE
.
LOW
);
if
(
IOManager
.
IOValue
(
IO_Type
.
Device_Led
).
Equals
(
IO_VALUE
.
HIGH
))
{
IOManager
.
IOMove
(
IO_Type
.
Device_Led
,
IO_VALUE
.
LOW
);
}
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论