Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0817341e
由
LN
编写于
2020-12-07 09:01:35 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
板卡连接方式修改。bug修改
1 个父辈
c4988849
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
64 行增加
和
34 行删除
doc/环形线IO(1)(1).xlsx
source/AssemblyLineClient/AssemblyLineClient.csproj
source/AssemblyLineClient/FrmBase.Designer.cs
source/AssemblyLineClient/FrmLineIO.cs
source/AssemblyLineClient/useControl/AxisMoveControl.Designer.cs
source/AssemblyLineClient/useControl/AxisMoveControl.cs
source/DeviceLibrary/LineConfig/Config_Line.csv
source/HuichuanLibrary/FrmHuiChuanTest.cs
source/HuichuanLibrary/HCBoardManager.cs
source/HuichuanLibrary/HCBoardManager_Axis.cs
doc/环形线IO(1)(1).xlsx
查看文件 @
0817341
此文件类型无法预览
source/AssemblyLineClient/AssemblyLineClient.csproj
查看文件 @
0817341
...
...
@@ -55,9 +55,6 @@
</PropertyGroup>
<PropertyGroup />
<ItemGroup>
<Reference Include="Asa.RFID">
<HintPath>..\..\dll\RFID\Asa.RFID.dll</HintPath>
</Reference>
<Reference Include="Client">
<HintPath>..\..\dll\Client.dll</HintPath>
</Reference>
...
...
@@ -79,7 +76,6 @@
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
...
...
@@ -88,6 +84,12 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="FrmBase.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmBase.Designer.cs">
<DependentUpon>FrmBase.cs</DependentUpon>
</Compile>
<Compile Include="FrmHYEquip.cs">
<SubType>Form</SubType>
</Compile>
...
...
@@ -112,12 +114,6 @@
<Compile Include="useControl\AxisMoveControl.Designer.cs">
<DependentUpon>AxisMoveControl.cs</DependentUpon>
</Compile>
<Compile Include="FrmBase.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmBase.Designer.cs">
<DependentUpon>FrmBase.cs</DependentUpon>
</Compile>
<Compile Include="FrmEquipBase.cs">
<SubType>Form</SubType>
</Compile>
...
...
@@ -169,6 +165,9 @@
<Compile Include="useControl\EquipControl.Designer.cs">
<DependentUpon>EquipControl.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="FrmBase.resx">
<DependentUpon>FrmBase.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmHYEquip.resx">
<DependentUpon>FrmHYEquip.cs</DependentUpon>
</EmbeddedResource>
...
...
@@ -181,9 +180,6 @@
<EmbeddedResource Include="useControl\AxisMoveControl.resx">
<DependentUpon>AxisMoveControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmBase.resx">
<DependentUpon>FrmBase.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmEquipBase.resx">
<DependentUpon>FrmEquipBase.cs</DependentUpon>
</EmbeddedResource>
...
...
source/AssemblyLineClient/FrmBase.Designer.cs
查看文件 @
0817341
...
...
@@ -36,7 +36,7 @@
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
96F
,
96F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Dpi
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
300
,
300
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
293
,
273
);
this
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
Name
=
"FrmBase"
;
...
...
source/AssemblyLineClient/FrmLineIO.cs
查看文件 @
0817341
...
...
@@ -120,20 +120,20 @@ namespace OnlineStore.AssemblyLine
if
(
LineManager
.
Line
.
IOValue
(
IO_Type
.
HY_TopCylinder_Up
).
Equals
(
IO_VALUE
.
HIGH
))
{
HY_TopCylinder_Up
.
Fore
Color
=
Color
.
LawnGreen
;
HY_TopCylinder_Up
.
Back
Color
=
Color
.
LawnGreen
;
}
else
{
HY_TopCylinder_Up
.
Fore
Color
=
Color
.
White
;
HY_TopCylinder_Up
.
Back
Color
=
Color
.
White
;
}
if
(
LineManager
.
Line
.
IOValue
(
IO_Type
.
HY_TopCylinder_Down
).
Equals
(
IO_VALUE
.
HIGH
))
{
HY_TopCylinder_Down
.
Fore
Color
=
Color
.
LawnGreen
;
HY_TopCylinder_Down
.
Back
Color
=
Color
.
LawnGreen
;
}
else
{
HY_TopCylinder_Down
.
Fore
Color
=
Color
.
White
;
}
HY_TopCylinder_Down
.
Back
Color
=
Color
.
White
;
}
}
}
...
...
source/AssemblyLineClient/useControl/AxisMoveControl.Designer.cs
查看文件 @
0817341
...
...
@@ -30,6 +30,7 @@
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
groupAxis
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
lblStatus
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
lblAlarmcode
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label4
=
new
System
.
Windows
.
Forms
.
Label
();
...
...
@@ -100,7 +101,7 @@
this
.
btnAxisVMove
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnReadPosition
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
lbl
Status
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lbl
AxisType
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
groupAxis
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
...
...
@@ -112,6 +113,7 @@
this
.
groupAxis
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupAxis
.
Controls
.
Add
(
this
.
lblAxisType
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
lblStatus
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
groupBox2
);
this
.
groupAxis
.
Controls
.
Add
(
this
.
btnComAlarmClear
);
...
...
@@ -128,6 +130,15 @@
this
.
groupAxis
.
TabStop
=
false
;
this
.
groupAxis
.
Text
=
"伺服运动"
;
//
// lblStatus
//
this
.
lblStatus
.
AutoSize
=
true
;
this
.
lblStatus
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
376
);
this
.
lblStatus
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
2
,
0
,
2
,
0
);
this
.
lblStatus
.
Name
=
"lblStatus"
;
this
.
lblStatus
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
17
);
this
.
lblStatus
.
TabIndex
=
305
;
//
// groupBox2
//
this
.
groupBox2
.
Controls
.
Add
(
this
.
lblAlarmcode
);
...
...
@@ -953,14 +964,14 @@
//
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer1_Tick
);
//
// lbl
Status
// lbl
AxisType
//
this
.
lbl
Status
.
AutoSize
=
true
;
this
.
lbl
Status
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
380
);
this
.
lbl
Status
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
2
,
0
,
2
,
0
);
this
.
lbl
Status
.
Name
=
"lblStatus
"
;
this
.
lbl
Status
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
17
);
this
.
lbl
Status
.
TabIndex
=
305
;
this
.
lbl
AxisType
.
AutoSize
=
true
;
this
.
lbl
AxisType
.
Location
=
new
System
.
Drawing
.
Point
(
8
,
398
);
this
.
lbl
AxisType
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
2
,
0
,
2
,
0
);
this
.
lbl
AxisType
.
Name
=
"lblAxisType
"
;
this
.
lbl
AxisType
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
17
);
this
.
lbl
AxisType
.
TabIndex
=
306
;
//
// AxisMoveControl
//
...
...
@@ -1055,5 +1066,6 @@
private
System
.
Windows
.
Forms
.
Label
lblAlarmcode
;
private
System
.
Windows
.
Forms
.
LinkLabel
linkLabel1
;
private
System
.
Windows
.
Forms
.
Label
lblStatus
;
private
System
.
Windows
.
Forms
.
Label
lblAxisType
;
}
}
source/AssemblyLineClient/useControl/AxisMoveControl.cs
查看文件 @
0817341
...
...
@@ -328,6 +328,7 @@ namespace OnlineStore.AssemblyLine
short
value
=
HCBoardManager
.
GetHomeStatus
(
axisNo
);
string
homesstr
=
HCBoardManager
.
AxisHomeSts
(
value
);
lblhomeSts
.
Text
=
homesstr
;
lblAxisType
.
Text
=
HCBoardManager
.
GetAxType
(
axisNo
);
//lblCountPulse.Text = AxisManager.instance.GetActualtPosition(PortName, SlvAddr).ToString();
}
...
...
source/DeviceLibrary/LineConfig/Config_Line.csv
查看文件 @
0817341
...
...
@@ -73,7 +73,7 @@ DI,217,HY17接驳台气缸取料端,HY_MoveCylinder_Take,11,HC,X11
DI,217,HY17接驳台气缸放料端,HY_MoveCylinder_Give,12,HC,X12
DI,217,HY17夹料气缸料盘检测,HY_ClampCylinder_Check,13,HC,X13
DI,217,HY17夹料气缸放松端,HY_ClampCylinder_Relax,14,HC,X14
,0,,
,15,HC,X15
DI,217,C9-HY14满料托盘检测,HY_OL_Full_Check
,15,HC,X15
,,,,,,
DO,0,待机状态(指示灯),AutoRun_HddLed,0,HC,Y00
DO,0,运行状态(指示灯),RunSign_HddLed,1,HC,Y01
...
...
@@ -136,7 +136,7 @@ DI,216,HY16横移顶升上升端,HY_TopCylinder_Up,54,HC,X54
DI,216,HY16横移顶升下降端,HY_TopCylinder_Down,55,HC,X55
DI,216,HY16-C7阻挡上升端,HY_OL_StopCylinder_Up,56,HC,X56
DI,216,HY16-C7阻挡下降端,HY_OL_StopCylinder_Down,57,HC,X57
DI,21
7
,C7-HY17满料检测,HY_OL_Full_Check,58,HC,X58
DI,21
6
,C7-HY17满料检测,HY_OL_Full_Check,58,HC,X58
,,,,59,HC,X59
,,,,60,HC,X60
,,,,61,HC,X61
...
...
@@ -1025,7 +1025,7 @@ DI,207,HY7横移顶升下降端,HY_TopCylinder_Down,487,HC,X487
DI,207,C3-HY7短线前阻挡托盘检测,HY_ShortL_StopCheck,488,HC,X488
DI,207,C8-HY7长线前阻挡托盘检测,HY_LongL_StopCheck,489,HC,X489
DI,207,C8线体HY7侧满料检测,HY_OL_Full_Check,490,HC,X490
DI,2
09
,C4-HY9满料检测,HY_OL_Full_Check,491,HC,X491
DI,2
10
,C4-HY9满料检测,HY_OL_Full_Check,491,HC,X491
DI,210,HY10前阻挡托盘检测,HY_FrontStopCheck,492,HC,X492
DI,210,HY10横移托盘检测,HY_TrayCheck,493,HC,X493
DI,210,HY10横移顶升上升端,HY_TopCylinder_Up,494,HC,X494
...
...
@@ -1192,7 +1192,7 @@ DI,214,HY14横移托盘检测,HY_TrayCheck,561,HC,X561
DI,214,C9-HY14长线前阻挡托盘检测,HY_LongL_StopCheck,562,HC,X562
DI,214,HY14横移顶升上升端,HY_TopCylinder_Up,563,HC,X563
DI,214,HY14横移顶升下降端,HY_TopCylinder_Down,564,HC,X564
DI,21
1
,C5-HY11满料检测,HY_OL_Full_Check,565,HC,X565
DI,21
2
,C5-HY11满料检测,HY_OL_Full_Check,565,HC,X565
DI,212,C9-HY12前阻挡托盘检测,HY_FrontStopCheck,566,HC,X566
DI,212,HY12横移托盘检测,HY_TrayCheck,567,HC,X567
DI,212,HY12横移顶升上升端,HY_TopCylinder_Up,568,HC,X568
...
...
@@ -1209,7 +1209,7 @@ DI,212,HY12接驳台料盘检测7寸,HY_TrayCheck1,578,HC,X578
DI,212,HY12接驳台料盘检测11寸,HY_TrayCheck2,579,HC,X579
DI,212,HY12接驳台料盘检测13寸,HY_TrayCheck3,580,HC,X580
DI,212,HY12接驳台料盘检测15寸,HY_TrayCheck4,581,HC,X581
,,,
,582,HC,X582
DI,214,C9-HY12满料托盘检测,HY_OL_Full_Check
,582,HC,X582
,,,,583,HC,X583
,,,,584,HC,X584
,,,,585,HC,X585
...
...
source/HuichuanLibrary/FrmHuiChuanTest.cs
查看文件 @
0817341
...
...
@@ -91,7 +91,7 @@ namespace HuichuanLibrary
}
private
void
btnInitBoard_Click
(
object
sender
,
EventArgs
e
)
{
bool
result
=
HCBoardManager
.
OpenCard
();
bool
result
=
HCBoardManager
.
OpenCard
(
1
);
if
(
result
)
{
cmbAxisIndex
.
Items
.
Clear
();
...
...
source/HuichuanLibrary/HCBoardManager.cs
查看文件 @
0817341
此文件的差异被折叠,
点击展开。
source/HuichuanLibrary/HCBoardManager_Axis.cs
查看文件 @
0817341
...
...
@@ -435,8 +435,9 @@ namespace HuichuanLibrary
sts
.
ServoOn
=
((
axisState
&
0x02
)
==
0x02
)
?
1
:
0
;
//使能信号
sts
.
BUSY
=
((
axisState
&
0x04
)
==
0x04
)
?
1
:
0
;
//轴忙信号
sts
.
INP
=
((
axisState
&
0x08
)
==
0x08
)
?
1
:
0
;
//轴到位信号
sts
.
WARN
=
((
axisState
&
0x1000
)
==
0x1000
)
?
1
:
0
;
//警告信号
sts
.
EMG
=
((
axisState
&
0x200
)
==
0x200
)
?
1
:
0
;
//急停信号
sts
.
WARN
=
((
axisState
&
0x1000
)
==
0x1000
)
?
1
:
0
;
//警告信号
sts
.
ECAT
=
((
axisState
&
ImcApi
.
AX_ECAT_BIT
)
==
ImcApi
.
AX_ECAT_BIT
)
?
1
:
0
;
//总线轴标志
Int16
nTimerAxInput
=
0
;
ret
=
ImcApi
.
IMC_GetAxEcatDigitalInput
(
nCardHandle
,
axisNo
,
ref
nTimerAxInput
);
...
...
@@ -591,6 +592,26 @@ namespace HuichuanLibrary
}
return
outV
;
}
public
static
string
GetAxType
(
short
axisNo
)
{
string
res
=
""
;
if
(!
CardInitOk
())
{
return
res
;
}
short
pAxType
=
-
1
;
short
pOutChn
=
-
1
;
UInt32
ret
=
ImcApi
.
IMC_GetAxType
(
nCardHandle
,
axisNo
,
ref
pAxType
,
ref
pOutChn
);
res
=
"轴类型["
+
pAxType
+
"],物理通道["
+
pOutChn
+
"]"
;
if
(
ret
!=
0
)
{
ShowErrorLog
(
" Axis["
+
axisNo
+
"] GetAxType FAIL, ErrorCode=0x"
+
ret
.
ToString
(
"x8"
));
}
return
res
;
}
#
endregion
#
region
轴状态
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论