Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0399105c
由
刘韬
编写于
2023-05-18 11:25:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
413b0ee4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
40 行增加
和
18 行删除
source/ACSingleStore/Properties/AssemblyInfo.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_ADIO.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/ACSingleStore/Properties/AssemblyInfo.cs
查看文件 @
0399105
...
@@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
...
@@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDescription("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SO951-HC-ACSingleStore
9271efd95f69f82cbe1d3a623766be8cb61e7974
")]
[assembly: AssemblyProduct("SO951-HC-ACSingleStore
413b0ee4261e11a49b88fd1c49b2cd7507d75209
")]
[assembly: AssemblyCopyright("Copyright ? 2017")]
[assembly: AssemblyCopyright("Copyright ? 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyCulture("")]
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
0399105
...
@@ -562,7 +562,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -562,7 +562,7 @@ namespace OnlineStore.DeviceLibrary
ComMoveToPosition
(
Config
.
CompressAxis_P1_Position
,
Config
.
CompAxis_P1_Speed
);
ComMoveToPosition
(
Config
.
CompressAxis_P1_Position
,
Config
.
CompAxis_P1_Speed
);
break
;
break
;
case
StoreMoveStep
.
BOX_H_OtherAxisBack_03
:
case
StoreMoveStep
.
BOX_H_OtherAxisBack_03
:
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
.
Equals
(
IO_VALUE
.
LOW
))
if
(
TrayCheck_Door
.
Equals
(
IO_VALUE
.
LOW
))
{
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_OtherAxisBack_04
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_OtherAxisBack_04
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
" 舱门口无盘, 执行往舱门口放盘"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
" 舱门口无盘, 执行往舱门口放盘"
);
...
@@ -582,7 +582,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -582,7 +582,7 @@ namespace OnlineStore.DeviceLibrary
OpenDoor
();
OpenDoor
();
break
;
break
;
case
StoreMoveStep
.
BOX_H_OtherAxisBack_05
:
case
StoreMoveStep
.
BOX_H_OtherAxisBack_05
:
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
.
Equals
(
IO_VALUE
.
LOW
))
if
(
TrayCheck_Door
.
Equals
(
IO_VALUE
.
LOW
))
{
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_OtherAxisBack_06
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
BOX_H_OtherAxisBack_06
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
" 进出轴到p2"
);
LogUtil
.
info
(
LOGGER
,
StoreName
+
" 进出轴到p2"
);
...
@@ -1216,7 +1216,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1216,7 +1216,7 @@ namespace OnlineStore.DeviceLibrary
//判断是否需要出入库
//判断是否需要出入库
if
(
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
None
)
&&
alarmType
.
Equals
(
StoreAlarmType
.
None
))
if
(
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
None
)
&&
alarmType
.
Equals
(
StoreAlarmType
.
None
))
{
{
IO_VALUE
checkIO
=
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
;
IO_VALUE
checkIO
=
TrayCheck_Door
;
var
IsServerAccess
=
CodeManager
.
IsServerAccess
();
var
IsServerAccess
=
CodeManager
.
IsServerAccess
();
int
height
=
GetHeight
();
int
height
=
GetHeight
();
...
@@ -1548,7 +1548,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1548,7 +1548,7 @@ namespace OnlineStore.DeviceLibrary
//发送扫码内容到服务器进行入库操作
//发送扫码内容到服务器进行入库操作
Operation
operationT
=
getLineBoxStatus
();
Operation
operationT
=
getLineBoxStatus
();
operationT
.
op
=
1
;
operationT
.
op
=
1
;
int
dInfo
=
(
int
)
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
;
int
dInfo
=
(
int
)
TrayCheck_Door
;
operationT
.
data
=
new
Dictionary
<
string
,
string
>()
{
{
"code"
,
message
},
{
"boxId"
,
StoreID
.
ToString
()
},
{
ParamDefine
.
doorReelSignal
,
dInfo
.
ToString
()
}
};
operationT
.
data
=
new
Dictionary
<
string
,
string
>()
{
{
"code"
,
message
},
{
"boxId"
,
StoreID
.
ToString
()
},
{
ParamDefine
.
doorReelSignal
,
dInfo
.
ToString
()
}
};
HttpHelper
.
Post
(
StoreManager
.
GetPostApi
(
server
),
operationT
,
false
);
HttpHelper
.
Post
(
StoreManager
.
GetPostApi
(
server
),
operationT
,
false
);
}
}
...
@@ -1573,7 +1573,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1573,7 +1573,7 @@ namespace OnlineStore.DeviceLibrary
//发送扫码内容到服务器进行入库操作
//发送扫码内容到服务器进行入库操作
Operation
operation
=
getLineBoxStatus
();
Operation
operation
=
getLineBoxStatus
();
operation
.
op
=
1
;
operation
.
op
=
1
;
int
doorReelSignal
=
(
int
)
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
;
int
doorReelSignal
=
(
int
)
TrayCheck_Door
;
operation
.
data
=
new
Dictionary
<
string
,
string
>()
{
{
"code"
,
message
},
{
"boxId"
,
StoreID
.
ToString
()
},
{
ParamDefine
.
doorReelSignal
,
doorReelSignal
.
ToString
()
}
};
operation
.
data
=
new
Dictionary
<
string
,
string
>()
{
{
"code"
,
message
},
{
"boxId"
,
StoreID
.
ToString
()
},
{
ParamDefine
.
doorReelSignal
,
doorReelSignal
.
ToString
()
}
};
// string server = ConfigAppSettings.GetValue(Setting_Init.http_server);
// string server = ConfigAppSettings.GetValue(Setting_Init.http_server);
Operation
resultOperation
=
HttpHelper
.
Post
(
StoreManager
.
GetPostApi
(
server
),
operation
,
false
);
Operation
resultOperation
=
HttpHelper
.
Post
(
StoreManager
.
GetPostApi
(
server
),
operation
,
false
);
...
@@ -1815,7 +1815,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1815,7 +1815,7 @@ namespace OnlineStore.DeviceLibrary
return
0
;
return
0
;
}
}
int
result
=
0
;
int
result
=
0
;
if
(
Config
.
Default_TrayWidth
.
Equals
(
Width_7
).
Equals
(
false
)
&&
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
.
Equals
(
IO_VALUE
.
LOW
))
if
(
Config
.
Default_TrayWidth
.
Equals
(
Width_7
).
Equals
(
false
)
&&
TrayCheck_Door
.
Equals
(
IO_VALUE
.
LOW
))
{
{
return
result
;
return
result
;
}
}
...
@@ -1841,13 +1841,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1841,13 +1841,13 @@ namespace OnlineStore.DeviceLibrary
return
0
;
return
0
;
}
}
int
result
=
0
;
int
result
=
0
;
if
(
Config
.
Default_TrayWidth
.
Equals
(
size
).
Equals
(
false
)
&&
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
.
Equals
(
IO_VALUE
.
LOW
))
if
(
Config
.
Default_TrayWidth
.
Equals
(
size
).
Equals
(
false
)
&&
TrayCheck_Door
.
Equals
(
IO_VALUE
.
LOW
))
{
{
return
result
;
return
result
;
}
}
double
Value
;
double
Value
;
double
ai3Value
=
ConvertAI
(
IOManager
.
GetADIOValue
(
Config
.
AIDI3_Addr
),
Config
.
AIDI3_DefaultPosition
);
double
ai3Value
=
ConvertAI
(
GetADIO
(
3
),
Config
.
AIDI3_DefaultPosition
);
double
ai4Value
=
ConvertAI
(
IOManager
.
GetADIOValue
(
Config
.
AIDI4_Addr
),
Config
.
AIDI4_DefaultPosition
);
double
ai4Value
=
ConvertAI
(
GetADIO
(
4
),
Config
.
AIDI4_DefaultPosition
);
if
(
size
==
13
)
if
(
size
==
13
)
{
{
Value
=
Math
.
Round
(
ai3Value
,
1
);
Value
=
Math
.
Round
(
ai3Value
,
1
);
...
@@ -1953,14 +1953,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1953,14 +1953,14 @@ namespace OnlineStore.DeviceLibrary
IsInBlowing
=
IOManager
.
IOValue
(
IO_Type
.
StartOrStopBlow
).
Equals
(
IO_VALUE
.
HIGH
);
IsInBlowing
=
IOManager
.
IOValue
(
IO_Type
.
StartOrStopBlow
).
Equals
(
IO_VALUE
.
HIGH
);
if
(
DoorOpenAirBlow
==
1
)
if
(
DoorOpenAirBlow
==
1
)
{
{
if
(
IOManager
.
IOValue
(
IO_Type
.
Door_Down
).
Equals
(
IO_VALUE
.
LOW
)
||
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
.
Equals
(
IO_VALUE
.
HIGH
))
if
(
IOManager
.
IOValue
(
IO_Type
.
Door_Down
).
Equals
(
IO_VALUE
.
LOW
)
||
TrayCheck_Door
.
Equals
(
IO_VALUE
.
HIGH
))
{
{
IOManager
.
IOMove
(
IO_Type
.
StartOrStopBlow
,
IO_VALUE
.
HIGH
);
IOManager
.
IOMove
(
IO_Type
.
StartOrStopBlow
,
IO_VALUE
.
HIGH
);
doorAndTrayLastrunTime
=
DateTime
.
Now
;
doorAndTrayLastrunTime
=
DateTime
.
Now
;
//IsInBlowing = true;
//IsInBlowing = true;
return
;
return
;
}
}
if
(!
IsInBlowing
&&
doorAndTrayLastrunTime
!=
new
DateTime
(
1997
,
1
,
1
)
&&
IOManager
.
IOValue
(
IO_Type
.
Door_Down
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
.
Equals
(
IO_VALUE
.
LOW
))
if
(!
IsInBlowing
&&
doorAndTrayLastrunTime
!=
new
DateTime
(
1997
,
1
,
1
)
&&
IOManager
.
IOValue
(
IO_Type
.
Door_Down
).
Equals
(
IO_VALUE
.
HIGH
)
&&
TrayCheck_Door
.
Equals
(
IO_VALUE
.
LOW
))
{
{
if
((
DateTime
.
Now
-
doorAndTrayLastrunTime
).
TotalSeconds
>
2
)
if
((
DateTime
.
Now
-
doorAndTrayLastrunTime
).
TotalSeconds
>
2
)
{
{
...
@@ -2244,7 +2244,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -2244,7 +2244,7 @@ namespace OnlineStore.DeviceLibrary
{
{
lineOperation
.
alarmList
.
Add
(
alarmInfo
);
lineOperation
.
alarmList
.
Add
(
alarmInfo
);
}
}
int
doorReelSignal
=
(
int
)
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
;
int
doorReelSignal
=
(
int
)
TrayCheck_Door
;
lineOperation
.
data
=
new
Dictionary
<
string
,
string
>
{
{
ParamDefine
.
doorReelSignal
,
doorReelSignal
.
ToString
()
}
};
lineOperation
.
data
=
new
Dictionary
<
string
,
string
>
{
{
ParamDefine
.
doorReelSignal
,
doorReelSignal
.
ToString
()
}
};
return
lineOperation
;
return
lineOperation
;
}
}
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_ADIO.cs
查看文件 @
0399105
using
System
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
using
System.Text
;
using
System.Text
;
...
@@ -26,5 +27,17 @@ namespace OnlineStore.DeviceLibrary
...
@@ -26,5 +27,17 @@ namespace OnlineStore.DeviceLibrary
return
-
1
;
return
-
1
;
}
}
}
}
IO_VALUE
TrayCheck_Door
{
get
{
if
(
Ultrasonic1
.
IsRunning
)
return
Ultrasonic1
.
Distance
>
5
?
IO_VALUE
.
HIGH
:
IO_VALUE
.
LOW
;
else
return
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
);
}
}
}
}
}
}
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
0399105
...
@@ -201,7 +201,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -201,7 +201,7 @@ namespace OnlineStore.DeviceLibrary
wait
.
IsEnd
=
(
wait
.
HeightValue
.
Equals
(
GetHeight
()));
wait
.
IsEnd
=
(
wait
.
HeightValue
.
Equals
(
GetHeight
()));
if
(
wait
.
IsEnd
&&
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_15_WaitTake
)
&&
wait
.
HeightValue
.
Equals
(
0
))
if
(
wait
.
IsEnd
&&
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_15_WaitTake
)
&&
wait
.
HeightValue
.
Equals
(
0
))
{
{
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
.
Equals
(
IO_VALUE
.
LOW
))
if
(
TrayCheck_Door
.
Equals
(
IO_VALUE
.
LOW
))
{
{
LogUtil
.
info
(
StoreMove
.
MoveStep
+
" 等待height="
+
wait
.
HeightValue
+
"完成,且当前TrayCheck_Door=LOW"
);
LogUtil
.
info
(
StoreMove
.
MoveStep
+
" 等待height="
+
wait
.
HeightValue
+
"完成,且当前TrayCheck_Door=LOW"
);
}
}
...
@@ -281,7 +281,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -281,7 +281,7 @@ namespace OnlineStore.DeviceLibrary
//料盘检测
//料盘检测
InStoreLog
(
" 入库:SI_00 检测料盘信号"
);
InStoreLog
(
" 入库:SI_00 检测料盘信号"
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_00_TrayCheck
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_00_TrayCheck
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
HIGH
));
//
StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.HIGH));
}
}
else
else
{
{
...
@@ -344,6 +344,15 @@ namespace OnlineStore.DeviceLibrary
...
@@ -344,6 +344,15 @@ namespace OnlineStore.DeviceLibrary
}
}
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_00_TrayCheck
)
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SI_00_TrayCheck
)
{
{
if
(
TrayCheck_Door
.
Equals
(
IO_VALUE
.
LOW
))
{
if
(
StoreMove
.
IsTimeOut
(
out
_
,
20
))
{
SetWarnMsg
(
ResourceControl
.
CustAlarm
,
"Wait TrayCheck_Door=HIGH Timeout"
);
}
return
;
}
if
(
IsHasCompress_Axis
||
Config
.
IsHasLocationCylinder
.
Equals
(
0
))
if
(
IsHasCompress_Axis
||
Config
.
IsHasLocationCylinder
.
Equals
(
0
))
{
{
SI_02_OpenDoor
(
moveP
);
SI_02_OpenDoor
(
moveP
);
...
@@ -395,7 +404,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -395,7 +404,7 @@ namespace OnlineStore.DeviceLibrary
{
{
NeedCheckSafetyLight
=
0
;
NeedCheckSafetyLight
=
0
;
HIKCamera
.
Current
.
CameraGrabOne
(
HIKCamera
.
Current
.
GetFixtureStateFilename
(
StoreMove
.
MoveParam
,
StoreMove
.
MoveType
,
FixtureState
.
DoorIn
));
HIKCamera
.
Current
.
CameraGrabOne
(
HIKCamera
.
Current
.
GetFixtureStateFilename
(
StoreMove
.
MoveParam
,
StoreMove
.
MoveType
,
FixtureState
.
DoorIn
));
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
.
Equals
(
IO_VALUE
.
LOW
))
if
(
TrayCheck_Door
.
Equals
(
IO_VALUE
.
LOW
))
{
{
InStoreLog
(
"入库:SI_06 未检测到料盘,任务取消 "
);
InStoreLog
(
"入库:SI_06 未检测到料盘,任务取消 "
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_14_CheckTray
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SI_14_CheckTray
);
...
@@ -820,7 +829,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -820,7 +829,7 @@ namespace OnlineStore.DeviceLibrary
{
{
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PositionNum
:
""
;
string
posId
=
StoreMove
.
MoveParam
!=
null
?
StoreMove
.
MoveParam
.
PositionNum
:
""
;
lastPosId
=
posId
;
lastPosId
=
posId
;
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Door
)
.
Equals
(
IO_VALUE
.
HIGH
))
if
(
TrayCheck_Door
.
Equals
(
IO_VALUE
.
HIGH
))
{
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_13_CheckTray
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_13_CheckTray
);
OutStoreLog
(
$
"出库:检测到料盘 SO_13 等待TrayCheck_Fixture= LOW && TrayCheck_Door=high"
);
OutStoreLog
(
$
"出库:检测到料盘 SO_13 等待TrayCheck_Fixture= LOW && TrayCheck_Door=high"
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论