Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1053_SBSH
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 62dc420a
由
刘韬
编写于
2023-04-14 13:36:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
优化手动伺服防撞
1 个父辈
503de5bb
显示空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
49 行增加
和
13 行删除
Common/CodeResourceControl.cs
Common/Setting_Init.cs
DeviceLibrary/DeviceLibrary.csproj
DeviceLibrary/theMachine/MainMachine _IOMonitor.cs
DeviceLibrary/theMachine/MainMachine _LedProcess.cs
DeviceLibrary/theMachine/MainMachine.cs
DeviceLibrary/theMachine/MainMachine_Store.cs
DeviceLibrary/userControl/AxisMoveControl.Designer.cs
DeviceLibrary/userControl/AxisMoveControl.cs
LoadCVSLibrary/LoadCSVLibrary.csproj
TheMachine/App.config
TheMachine/SettingControl.Designer.cs
TheMachine/TheMachine.csproj
TheMachine/UC/FrmPassCheck.cs
TheMachine/positionTool/FrmPositionTool.cs
Common/CodeResourceControl.cs
查看文件 @
62dc420
...
...
@@ -275,8 +275,8 @@ namespace OnlineStore
}
//string className = cc.ClassName;
CurrLanguage
=
CodeResourceControl
.
GetLanguage
();
//string name = CodeResourceControl.GetString(CodeResourceControl.GetTextIdStr(className)
, cc.Text);
//
if (!name.Equals("")) { cc.Text = name; }
string
name
=
CodeResourceControl
.
GetString
(
class
Name
,
cc
.
Text
);
if
(!
name
.
Equals
(
""
))
{
cc
.
Text
=
name
;
}
PreControlLanaguage
(
cc
,
class
Name
);
RefreshLanguageEvent
?.
Invoke
();
...
...
Common/Setting_Init.cs
查看文件 @
62dc420
...
...
@@ -41,6 +41,10 @@ namespace OnlineStore.Common
[
MyConfigComment
(
"屏蔽升降轴调试保护"
)]
public
static
MyConfig
<
bool
>
Device_DisableUpdownProtect
=
false
;
[
MyConfigComment
(
"屏蔽湿度报警"
)]
public
static
MyConfig
<
bool
>
Device_Disable_Humidity_Alarm
=
false
;
[
MyConfigComment
(
"湿度超限吹气启动相对值=服务器设定湿度报警值-本相对值"
)]
public
static
MyConfig
<
int
>
Device_HumidityStartOffser
=
1
;
[
MyConfigComment
(
"湿度超限吹气停止相对值=服务器设定湿度报警值-本相对值"
)]
...
...
DeviceLibrary/DeviceLibrary.csproj
查看文件 @
62dc420
...
...
@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DeviceLibrary</RootNamespace>
<AssemblyName>DeviceLibrary</AssemblyName>
<TargetFrameworkVersion>v4.
7.2
</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.
8
</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
...
...
DeviceLibrary/theMachine/MainMachine _IOMonitor.cs
查看文件 @
62dc420
...
...
@@ -16,6 +16,7 @@ namespace DeviceLibrary
{
void
ioMonitor
()
{
if
(!
Setting_Init
.
Device_Disable_Humidity_Alarm
)
airprocess
();
}
DateTime
LastHumiCheckTime
=
DateTime
.
Now
.
AddHours
(
2
);
...
...
DeviceLibrary/theMachine/MainMachine _LedProcess.cs
查看文件 @
62dc420
...
...
@@ -142,7 +142,7 @@ namespace DeviceLibrary
//AlarmLed.LedState = LedState.blink;
ProcessLefCfg
(
MachineLedStateE
.
SystemPause
);
}
if
((
DateTime
.
Now
-
LastHumiCheckTime
).
TotalSeconds
>
30
)
if
(
!
Setting_Init
.
Device_Disable_Humidity_Alarm
&&
(
DateTime
.
Now
-
LastHumiCheckTime
).
TotalSeconds
>
30
)
{
ProcessLefCfg
(
MachineLedStateE
.
THoutRangeOver30m
);
}
...
...
DeviceLibrary/theMachine/MainMachine.cs
查看文件 @
62dc420
...
...
@@ -192,6 +192,9 @@ namespace DeviceLibrary
}
private
(
bool
,
string
)
InOut_Axis_interference
(
int
from
,
int
to
)
{
if
(
Middle_Axis
.
IsBusy
||
UpDown_Axis
.
IsBusy
)
return
(
true
,
crc
.
GetString
(
"Res0056.95729a30"
,
"旋转或升降轴在运动,进出轴不可运动"
));
if
(
to
!=
Config
.
InOut_P2
)
return
(
false
,
""
);
...
...
DeviceLibrary/theMachine/MainMachine_Store.cs
查看文件 @
62dc420
...
...
@@ -34,9 +34,10 @@ namespace DeviceLibrary
}
public
bool
DoorRelease
(
RequestLoadInfo
requestLoadInfo
)
{
var
s
=
IOValue
(
IO_Type
.
TrayCheck_Door
);
if
(
requestLoadInfo
.
IsEmpty
)
{
var
s
=
IOValue
(
IO_Type
.
TrayCheck_Door
);
StoreMoveInfo
.
log
(
"释放舱门时 TrayCheck_Door="
+
s
);
return
s
.
Equals
(
IO_VALUE
.
LOW
);
}
...
...
@@ -44,7 +45,7 @@ namespace DeviceLibrary
{
StoreMoveInfo
.
NextMoveStep
(
MoveStep
.
StoreIn01
);
StoreMoveInfo
.
MoveParam
=
requestLoadInfo
.
LoadParam
.
clone
();
StoreMoveInfo
.
log
(
"释放舱门时收到物料信息:"
+
StoreMoveInfo
.
MoveParam
.
ToStr
());
StoreMoveInfo
.
log
(
"释放舱门时收到物料信息:"
+
StoreMoveInfo
.
MoveParam
.
ToStr
()
+
",TrayCheck_Door="
+
s
);
Setting_Init
.
Runtime_IsInStore
=
true
;
Setting_Init
.
Runtime_PosID
=
StoreMoveInfo
.
MoveParam
.
PosID
;
Setting_Init
.
Runtime_PlateH
=
StoreMoveInfo
.
MoveParam
.
PlateH
;
...
...
DeviceLibrary/userControl/AxisMoveControl.Designer.cs
查看文件 @
62dc420
...
...
@@ -163,6 +163,7 @@
this
.
lblAlarmcode
.
Tag
=
"not"
;
this
.
lblAlarmcode
.
Text
=
"ErrCode:160"
;
this
.
lblAlarmcode
.
Visible
=
false
;
this
.
lblAlarmcode
.
Click
+=
new
System
.
EventHandler
(
this
.
lblAlarmcode_Click
);
//
// label4
//
...
...
DeviceLibrary/userControl/AxisMoveControl.cs
查看文件 @
62dc420
...
...
@@ -146,6 +146,11 @@ namespace DeviceLibrary
{
return
;
}
if
(!
currentAxis
.
IsSafe
(
AxisManager
.
GetActualtPosition
(
PortName
,
SlvAddr
),
out
string
msg
))
{
MessageBox
.
Show
(
msg
);
return
;
}
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
//LogUtil.info(""+"点击【匀速运动】,【" + PortName + "_" + SlvAddr + "】 速度【" + speed + "】");
//AxisManager.SpeedMove(PortName, SlvAddr, speed,acc,dec);
...
...
@@ -187,7 +192,11 @@ namespace DeviceLibrary
{
return
;
}
if
(!
currentAxis
.
IsSafe
(
AxisManager
.
GetActualtPosition
(
PortName
,
SlvAddr
),
out
string
msg
))
{
MessageBox
.
Show
(
msg
);
return
;
}
LogUtil
.
info
(
""
+
"点击【原点返回】,【"
+
PortName
+
"_"
+
SlvAddr
+
"】 速度【"
+
currentAxis
.
Config
.
HomeHighSpeed
+
"】"
);
var
HomeLowSpeed
=
currentAxis
.
Config
.
HomeLowSpeed
>
0
?
currentAxis
.
Config
.
HomeLowSpeed
:
currentAxis
.
Config
.
HomeHighSpeed
/
10
;
...
...
@@ -286,6 +295,12 @@ namespace DeviceLibrary
{
return
;
}
if
(!
currentAxis
.
IsSafe
(
AxisManager
.
GetActualtPosition
(
PortName
,
SlvAddr
),
out
string
msg
))
{
MessageBox
.
Show
(
msg
);
return
;
}
if
(
btnAddMove
.
BackColor
.
Equals
(
Color
.
White
))
{
int
speed
=
Convert
.
ToInt32
(
comjSpeed
.
Text
);
...
...
@@ -315,6 +330,11 @@ namespace DeviceLibrary
{
return
;
}
if
(!
currentAxis
.
IsSafe
(
AxisManager
.
GetActualtPosition
(
PortName
,
SlvAddr
),
out
string
msg
))
{
MessageBox
.
Show
(
msg
);
return
;
}
if
(
btnDelMove
.
BackColor
.
Equals
(
Color
.
White
))
{
int
speed
=
Convert
.
ToInt32
(
comjSpeed
.
Text
);
...
...
@@ -444,5 +464,10 @@ namespace DeviceLibrary
lbl
.
BackColor
=
this
.
BackColor
;
}
}
private
void
lblAlarmcode_Click
(
object
sender
,
EventArgs
e
)
{
MessageBox
.
Show
(
string
.
Join
(
","
,
HuichuanLibrary
.
HCBoardManager
.
GetAxisErrorDetail
(
currentAxis
.
Config
.
GetAxisValue
())));
}
}
}
\ No newline at end of file
LoadCVSLibrary/LoadCSVLibrary.csproj
查看文件 @
62dc420
...
...
@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OnlineStore.LoadCSVLibrary</RootNamespace>
<AssemblyName>LoadCSVLibrary</AssemblyName>
<TargetFrameworkVersion>v4.
7.2
</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.
8
</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
...
...
TheMachine/App.config
查看文件 @
62dc420
...
...
@@ -57,7 +57,7 @@
</
root
>-->
</
log4net
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.
7.2
"
/>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.
8
"
/>
</
startup
>
<
runtime
>
<
assemblyBinding
xmlns
=
"urn:schemas-microsoft-com:asm.v1"
>
...
...
TheMachine/SettingControl.Designer.cs
查看文件 @
62dc420
...
...
@@ -161,10 +161,10 @@ namespace TheMachine
// uC_SetUserPassword1
//
this
.
uC_SetUserPassword1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
uC_SetUserPassword1
.
Location
=
new
System
.
Drawing
.
Point
(
335
,
8
);
this
.
uC_SetUserPassword1
.
Location
=
new
System
.
Drawing
.
Point
(
18
,
182
);
this
.
uC_SetUserPassword1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
uC_SetUserPassword1
.
Name
=
"uC_SetUserPassword1"
;
this
.
uC_SetUserPassword1
.
Size
=
new
System
.
Drawing
.
Size
(
533
,
596
);
this
.
uC_SetUserPassword1
.
Size
=
new
System
.
Drawing
.
Size
(
533
,
431
);
this
.
uC_SetUserPassword1
.
TabIndex
=
7
;
//
// SettingControl
...
...
TheMachine/TheMachine.csproj
查看文件 @
62dc420
...
...
@@ -8,7 +8,7 @@
<OutputType>WinExe</OutputType>
<RootNamespace>TheMachine</RootNamespace>
<AssemblyName>SBSH</AssemblyName>
<TargetFrameworkVersion>v4.
7.2
</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.
8
</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>false</Deterministic>
...
...
TheMachine/UC/FrmPassCheck.cs
查看文件 @
62dc420
...
...
@@ -17,6 +17,7 @@ namespace TheMachine
public
FrmPassCheck
()
{
InitializeComponent
();
crc
.
LanguageProcess
(
this
);
}
public
static
bool
CheckPassword
()
{
...
...
TheMachine/positionTool/FrmPositionTool.cs
查看文件 @
62dc420
...
...
@@ -263,7 +263,7 @@ namespace OnlineStore.ACSingleStore
}
LogUtil
.
info
(
LogName
+
"伺服已停止运动,停止定时器,记录数据"
);
List
<
string
>
strList
=
new
List
<
string
>();
strList
.
Add
(
crc
.
GetString
(
"Res0056"
,
"编号,标准位置,升降轴库位入料高点P3,升降轴库位入料低点P4"
)
);
strList
.
Add
(
$
"编号,标准位置,升降轴库位入料高点P3,升降轴库位入料低点P4"
);
int
index
=
1
;
foreach
(
int
p
in
PositionList
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论