Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
AutoCountMachine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0c465ecf
由
LN
编写于
2020-05-27 18:03:24 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
贴标增加配置。调试bug修改。
1 个父辈
081d831e
全部展开
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
40 行增加
和
30 行删除
RC1266-AutoCountMachine/source/AutoCountClient/App.config
RC1266-AutoCountMachine/source/Common/Setting_Init.cs
RC1266-AutoCountMachine/source/DeviceLibrary/RobotConfig/Config_OutputEquip.csv
RC1266-AutoCountMachine/source/DeviceLibrary/bean/OutputEquip.cs
RC1266-AutoCountMachine/source/DeviceLibrary/bean/OutputEquip_Partial.cs
RC1266-AutoCountMachine/source/DeviceLibrary/bean/RobotBean.cs
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip.cs
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip_Partial.cs
RC1266-AutoCountMachine/source/DeviceLibrary/model/MoveStep.cs
RC1266-AutoCountMachine/source/DeviceLibrary/model/RobotBase.cs
RC1266-AutoCountMachine/source/AutoCountClient/App.config
查看文件 @
0c465ec
...
...
@@ -45,6 +45,8 @@
<
add
key
=
"LabelName"
value
=
"test2"
/>
<!--打印机名称-->
<
add
key
=
"PrinterName"
value
=
"ZDesigner GT800-300dpi EPL"
/>
<!--是否启用打印标签-->
<
add
key
=
"NeedPrintLabel"
value
=
"0"
/>
</
appSettings
>
<
log4net
>
...
...
RC1266-AutoCountMachine/source/Common/Setting_Init.cs
查看文件 @
0c465ec
...
...
@@ -78,5 +78,6 @@ namespace OnlineStore.Common
public
static
string
LabelName
=
"LabelName"
;
public
static
string
PrinterName
=
"PrinterName"
;
public
static
string
NeedPrintLabel
=
"NeedPrintLabel"
;
}
}
RC1266-AutoCountMachine/source/DeviceLibrary/RobotConfig/Config_OutputEquip.csv
查看文件 @
0c465ec
...
...
@@ -16,14 +16,14 @@ PRO,0,出料提升轴P3速度,BatchAxis_P3Speed,1500,,,,,
PRO,0,出料提升轴高度转换系数(1mm对应的脉冲),Height_ChangeValue,10446,,,,,
,,,,,,,,,
PRO,0,取料X轴待机点-P1,MoveX_P1,2001,,,,,
PRO,0,取料X轴-取料点-P2集合,MoveX_P2List,0=15
00
00;8=150000;12=150000;16=150000;24=150000;32=140000;44=120000;56=100000;13=4710;15=1350;11=10120;7=15900,,,,,
PRO,0,取料X轴-取料点-P2集合,MoveX_P2List,0=15
9
00;8=150000;12=150000;16=150000;24=150000;32=140000;44=120000;56=100000;13=4710;15=1350;11=10120;7=15900,,,,,
PRO,0,取料X轴-放料点-P3,MoveX_P3,77100,,,,,
PRO,0,取料X轴P1速度,MoveX_P1Speed,500,,,,,
PRO,0,取料X轴P2速度,MoveX_P2Speed,500,,,,,
PRO,0,取料X轴P3速度,MoveX_P3Speed,500,,,,,
,,,,,,,,,
PRO,0,取料Z轴待机点-P1,MoveZ_P1,2000,,,,,
PRO,0,取料Z轴-取料点-P2集合,MoveZ_P2List,0=
1200
00;8=448700;12=443900;16=440000;24=429900;32=420100;44=409000;56=398620,,,,,
PRO,0,取料Z轴-取料点-P2集合,MoveZ_P2List,0=
4487
00;8=448700;12=443900;16=440000;24=429900;32=420100;44=409000;56=398620,,,,,
PRO,0,取料Z轴-放料点-P3集合,MoveZ_P3List,0=108750;8=109700;12=100000;16=99000;24=93000;32=89000;44=74000;56=63500,,,,,
PRO,0,取料Z轴P1速度,MoveZ_P1Speed,1000,,,,,
PRO,0,取料Z轴P2速度,MoveZ_P2Speed,1000,,,,,
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/bean/OutputEquip.cs
查看文件 @
0c465ec
...
...
@@ -37,9 +37,10 @@ namespace OnlineStore.DeviceLibrary
this
.
DeviceID
=
config
.
Id
;
this
.
Config
=
config
;
IsDebug
=
config
.
IsDebug
.
Equals
(
1
);
baseConfig
=
config
;
Name
=
(
" "
+
"出料模块"
+
" "
).
ToUpper
();
Init
();
ledProcessTimer
.
Elapsed
+=
LedProcess
;
IoCheckTimer
.
Elapsed
+=
IoCheckTimerProcess
;
MoveInfo
=
new
RobotMoveInfo
(
" 取放料 "
);
SecMoveInfo
=
new
RobotMoveInfo
(
" 贴标 "
);
ShelfMoveInfo
=
new
RobotMoveInfo
(
" ShelfMove "
);
...
...
@@ -380,14 +381,16 @@ namespace OnlineStore.DeviceLibrary
}
else
{
if
(
MoveInfo
.
MoveType
.
Equals
(
RobotMoveType
.
Working
))
{
WorkingProcess
();
}
if
(
SecMoveInfo
.
MoveType
.
Equals
(
RobotMoveType
.
Labelling
))
{
LabellingProcess
();
}
if
(
MoveInfo
.
MoveType
.
Equals
(
RobotMoveType
.
Working
))
{
WorkingProcess
();
}
if
(
ShelfMoveInfo
.
MoveType
.
Equals
(
RobotMoveType
.
ShelfPro
))
{
ShelfMoveProcess
();
...
...
@@ -422,7 +425,8 @@ namespace OnlineStore.DeviceLibrary
if
(
NoErrorAlarm
()
&&
IOValue
(
IO_Type
.
Out_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
X_OLine_Run
).
Equals
(
IO_VALUE
.
LOW
))
{
//料串准备好才能取料
if
(
OutReelCount
>=
0
&&
SecMoveInfo
.
MoveType
.
Equals
(
RobotMoveType
.
None
))
if
(
OutReelCount
>=
0
)
//if (OutReelCount >= 0 && SecMoveInfo.MoveType.Equals(RobotMoveType.None))
{
StartWorking
(
new
WorkParam
());
}
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/bean/OutputEquip_Partial.cs
查看文件 @
0c465ec
此文件的差异被折叠,
点击展开。
RC1266-AutoCountMachine/source/DeviceLibrary/bean/RobotBean.cs
查看文件 @
0c465ec
...
...
@@ -174,7 +174,7 @@ namespace OnlineStore.DeviceLibrary
//重置通用处理
mainTimer
.
Interval
=
1000
;
maxSeconds
=
10
;
//
maxSeconds = 10;
alarmType
=
AlarmType
.
None
;
mainTimer
.
Enabled
=
false
;
isInSuddenDown
=
false
;
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip.cs
查看文件 @
0c465ec
...
...
@@ -27,6 +27,8 @@ namespace OnlineStore.DeviceLibrary
Name
=
(
" "
+
"XRay"
+
" "
).
ToUpper
();
Init
();
ledProcessTimer
.
Elapsed
+=
LedProcess
;
IoCheckTimer
.
Elapsed
+=
IoCheckTimerProcess
;
MoveInfo
=
new
RobotMoveInfo
(
Name
);
SecMoveInfo
=
new
RobotMoveInfo
(
Name
.
Trim
()
+
"-SMove"
);
}
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip_Partial.cs
查看文件 @
0c465ec
...
...
@@ -49,7 +49,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
MoveParam
.
SetReelInfo
(
Work_ReelInfo
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
XW06_WaitTime
);
WorkLog
(
"扫描区有料["
+
Work_ReelInfo
.
ToStr
()+
"],还未进行点料,开始处理"
);
IOMove
(
IO_Type
.
X_InLine_Run
,
IO_VALUE
.
HIGH
);
//
IOMove(IO_Type.X_InLine_Run, IO_VALUE.HIGH);
IOMove
(
IO_Type
.
X_MLine_Run
,
IO_VALUE
.
HIGH
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
X_ReelCheck
,
IO_VALUE
.
HIGH
));
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/model/MoveStep.cs
查看文件 @
0c465ec
...
...
@@ -536,10 +536,10 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
OT03_MoveXToP2
,
/// <summary>
/// 取料: 判断是否需要拍照,
/// </summary>
OT04_CheckNeedImage
,
///
//
<summary>
///
//
取料: 判断是否需要拍照,
///
//
</summary>
//
OT04_CheckNeedImage,
/// <summary>
/// 取料: 拍照并开始识别
...
...
@@ -587,7 +587,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 取料: 取料X轴回到P1
/// </summary>
OT16_MoveXToP
1
,
OT16_MoveXToP
2
,
/// <summary>
/// 取料: NG料,取料X轴到P1
...
...
@@ -642,21 +642,21 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 贴标: 贴标气缸后退,吸盘停止输出,贴标Z轴到待机点P1
/// 贴标: 贴标气缸后退,吸盘停止输出,贴标Z轴到待机点P1
,取码气缸前进
/// </summary>
OL01_Paste_Back
=
3601
,
/// <summary>
/// 贴标: 取码气缸前进,贴标XYR都到待机点P2
/// </summary>
OL02_TakeForward
,
///
//
<summary>
///
//
贴标: 取码气缸前进,贴标XYR都到待机点P2
///
//
</summary>
//
OL02_TakeForward,
/// <summary>
/// 贴标: 打印标签,
/// </summary>
OL03_PrintLabel
,
/// <summary>
/// 贴标: 等待 贴标机打码OK信号
/// </summary>
OL04_PrintOk
,
///
//
<summary>
///
//
贴标: 等待 贴标机打码OK信号
///
//
</summary>
//
OL04_PrintOk,
/// <summary>
/// 贴标: 取码气缸后退
/// </summary>
...
...
@@ -673,10 +673,10 @@ namespace OnlineStore.DeviceLibrary
/// 贴标: 标签吸盘取码
/// </summary>
OL08_Nozzle_Work
,
/// <summary>
/// 贴标: 等待吸盘信号到位
/// </summary>
OL09_WaitGetLabel
,
///
//
<summary>
///
//
贴标: 等待吸盘信号到位
///
//
</summary>
//
OL09_WaitGetLabel,
/// <summary>
/// 贴标: Z轴到P1点
/// </summary>
...
...
@@ -717,8 +717,9 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 贴标: XYR返回待机点P1
/// </summary>
OL19_XYRBackToP
1
,
OL19_XYRBackToP
2
,
#
endregion
#
region
出料模块料串处理
3701
开始
/// <summary>
/// 出料料串:升降盘不在后退端,提升伺服到P2
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/model/RobotBase.cs
查看文件 @
0c465ec
...
...
@@ -230,7 +230,7 @@ namespace OnlineStore.DeviceLibrary
ledProcessTimer
.
Enabled
=
false
;
IoCheckTimer
=
new
System
.
Timers
.
Timer
();
IoCheckTimer
.
Interval
=
2
00
;
IoCheckTimer
.
Interval
=
3
00
;
// IoCheckTimer.Elapsed += IoCheckTimerProcess;
IoCheckTimer
.
AutoReset
=
true
;
IoCheckTimer
.
Enabled
=
false
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论