Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
610be971
Commit
610be971
authored
Aug 17, 2022
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 模拟器添加拉伸前辊速模拟
修改 编码器1比例默认值改为 0.0943
parent
26d99f02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
GageAD.cs
Project.FLY.FlyADBase/FLY.Simulation.Casting/GageAD.cs
+21
-0
IODefinition.cs
Project.FLY.FlyADBase/FLY.Simulation/IODefinition.cs
+5
-0
InitParam.cs
Project.FLY.Thick.Base/FLY.Thick.Base/Server/InitParam.cs
+1
-1
No files found.
Project.FLY.FlyADBase/FLY.Simulation.Casting/GageAD.cs
View file @
610be971
...
@@ -23,6 +23,11 @@ namespace FLY.Simulation.Casting
...
@@ -23,6 +23,11 @@ namespace FLY.Simulation.Casting
const
double
Mmpp2
=
0.25
;
const
double
Mmpp2
=
0.25
;
const
double
RLen
=
120
*
3.14
;
const
double
RLen
=
120
*
3.14
;
/// <summary>
/// 拉伸前 大辊直径
/// </summary>
const
double
RLenBeforeStretching
=
800
*
3.14
;
/// <summary>
/// <summary>
/// 1脉冲 = ? mm
/// 1脉冲 = ? mm
/// </summary>
/// </summary>
...
@@ -33,6 +38,16 @@ namespace FLY.Simulation.Casting
...
@@ -33,6 +38,16 @@ namespace FLY.Simulation.Casting
/// </summary>
/// </summary>
public
double
FilmVelocity
{
get
;
set
;
}
=
23
;
public
double
FilmVelocity
{
get
;
set
;
}
=
23
;
/// <summary>
/// 拉伸前膜速度 m/min
/// </summary>
public
double
FilmVelocityBeforeStretching
{
get
;
set
;
}
=
10
;
/// <summary>
/// 拉伸前膜长 m
/// </summary>
public
double
FilmLengthBeforeStretching
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 膜长 m
/// 膜长 m
/// </summary>
/// </summary>
...
@@ -87,6 +102,8 @@ namespace FLY.Simulation.Casting
...
@@ -87,6 +102,8 @@ namespace FLY.Simulation.Casting
{
{
double
min
=
(
now
-
dtlast
).
TotalMinutes
;
double
min
=
(
now
-
dtlast
).
TotalMinutes
;
FilmLength
+=
min
*
FilmVelocity
;
FilmLength
+=
min
*
FilmVelocity
;
FilmLengthBeforeStretching
+=
min
*
FilmLengthBeforeStretching
;
}
}
...
@@ -101,6 +118,10 @@ namespace FLY.Simulation.Casting
...
@@ -101,6 +118,10 @@ namespace FLY.Simulation.Casting
if
(
p
<
RLen
/
10
)
if
(
p
<
RLen
/
10
)
Misc
.
MyBase
.
CLEARBIT
(
ref
istatus
,
IODefinition
.
IN_RSENSOR
);
Misc
.
MyBase
.
CLEARBIT
(
ref
istatus
,
IODefinition
.
IN_RSENSOR
);
p
=
FilmLengthBeforeStretching
*
1000
%
RLenBeforeStretching
;
if
(
p
<
RLen
/
10
)
Misc
.
MyBase
.
CLEARBIT
(
ref
istatus
,
IODefinition
.
IN_RSENSOR2
);
return
istatus
;
return
istatus
;
}
}
...
...
Project.FLY.FlyADBase/FLY.Simulation/IODefinition.cs
View file @
610be971
...
@@ -66,6 +66,11 @@ namespace FLY.Simulation
...
@@ -66,6 +66,11 @@ namespace FLY.Simulation
/// </summary>
/// </summary>
public
const
int
IN_RSENSOR
=
11
-
1
;
public
const
int
IN_RSENSOR
=
11
-
1
;
/// <summary>
/// 拉伸前线速度
/// </summary>
public
const
int
IN_RSENSOR2
=
12
-
1
;
/// <summary>
/// <summary>
/// 纵向边界信号 上
/// 纵向边界信号 上
/// </summary>
/// </summary>
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/Server/InitParam.cs
View file @
610be971
...
@@ -67,7 +67,7 @@ namespace FLY.Thick.Base.Server
...
@@ -67,7 +67,7 @@ namespace FLY.Thick.Base.Server
/// <summary>
/// <summary>
/// 编码器1 mm/pulse
/// 编码器1 mm/pulse
/// </summary>
/// </summary>
public
double
Encoder1_mmpp
{
get
;
set
;
}
=
0.
1
;
public
double
Encoder1_mmpp
{
get
;
set
;
}
=
0.
0943
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment