Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 89d5e6a8
由
LN
编写于
2024-07-25 09:49:02 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
压力传感器值显示到设置界面
1 个父辈
1b3123b8
全部展开
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
43 行增加
和
5 行删除
DeviceLibrary/theMachine/MainMachine _Common.cs
DeviceLibrary/theMachine/MainMachine _LedRGBProcess.cs
TheMachineNView/SettingControl.Designer.cs
TheMachineNView/SettingControl.cs
TheMachineNView/resources/en-US.lngres
TheMachineNView/resources/ja-JP.lngres
TheMachineNView/resources/zh-CN.lngres
DeviceLibrary/theMachine/MainMachine _Common.cs
查看文件 @
89d5e6a
...
@@ -144,7 +144,7 @@ namespace DeviceLibrary
...
@@ -144,7 +144,7 @@ namespace DeviceLibrary
int
errorCount
=
Math
.
Abs
(
outCount
-
wait
.
TargetPosition
);
int
errorCount
=
Math
.
Abs
(
outCount
-
wait
.
TargetPosition
);
if
(
errorCount
<=
wait
.
AxisInfo
.
CanErrorCountMax
)
if
(
errorCount
<=
wait
.
AxisInfo
.
CanErrorCountMax
)
{
{
LogUtil
.
info
(
$
"{wait.AxisInfo.Explain},到达目标:
errorCount
:{errorCount},停止上升"
);
LogUtil
.
info
(
$
"{wait.AxisInfo.Explain},到达目标:
差异
:{errorCount},停止上升"
);
axisBean
.
StopAxisCheckMove
();
axisBean
.
StopAxisCheckMove
();
wait
.
IsEnd
=
true
;
wait
.
IsEnd
=
true
;
}
}
...
...
DeviceLibrary/theMachine/MainMachine _LedRGBProcess.cs
查看文件 @
89d5e6a
...
@@ -46,7 +46,7 @@ namespace DeviceLibrary
...
@@ -46,7 +46,7 @@ namespace DeviceLibrary
bool
result
=
rGB_Controller
.
OpenPort
(
port
,
out
msg
);
bool
result
=
rGB_Controller
.
OpenPort
(
port
,
out
msg
);
if
(
result
)
if
(
result
)
{
{
LogUtil
.
error
(
"LED灯初始化成功"
);
LogUtil
.
info
(
"LED灯初始化成功"
);
rgbLedInitOk
=
true
;
rgbLedInitOk
=
true
;
ledRgbTimer
=
new
System
.
Threading
.
Timer
(
new
TimerCallback
(
RgbLedProcess
),
null
,
0
,
500
);
ledRgbTimer
=
new
System
.
Threading
.
Timer
(
new
TimerCallback
(
RgbLedProcess
),
null
,
0
,
500
);
GC
.
KeepAlive
(
ledRgbTimer
);
GC
.
KeepAlive
(
ledRgbTimer
);
...
...
TheMachineNView/SettingControl.Designer.cs
查看文件 @
89d5e6a
此文件的差异被折叠,
点击展开。
TheMachineNView/SettingControl.cs
查看文件 @
89d5e6a
...
@@ -37,14 +37,30 @@ namespace TheMachineNView
...
@@ -37,14 +37,30 @@ namespace TheMachineNView
if
(!
RobotManage
.
haveFixpos
)
if
(!
RobotManage
.
haveFixpos
)
cb_usefixpos
.
Visible
=
false
;
cb_usefixpos
.
Visible
=
false
;
}
}
private
void
SShow
(
bool
isShow
)
{
lblMaxSet
.
Visible
=
isShow
;
lblMaxY
.
Visible
=
isShow
;
lblYa
.
Visible
=
isShow
;
label1
.
Visible
=
isShow
;
label3
.
Visible
=
isShow
;
label5
.
Visible
=
isShow
;
}
private
void
SettingControl_Load
(
object
sender
,
EventArgs
e
)
private
void
SettingControl_Load
(
object
sender
,
EventArgs
e
)
{
{
//Config.PropertyBind("Device_Humiture_Port", cb_tempsensorport, "SelectedItem", "SelectedIndexChanged");
//Config.PropertyBind("Device_Humiture_Port", cb_tempsensorport, "SelectedItem", "SelectedIndexChanged");
Config
.
PropertyBind
(
"Device_Use_Fixpos"
,
cb_usefixpos
,
"Checked"
,
"CheckedChanged"
);
Config
.
PropertyBind
(
"Device_Use_Fixpos"
,
cb_usefixpos
,
"Checked"
,
"CheckedChanged"
);
if
(
Setting_Init
.
Device_WeightSensor_PortName
==
""
)
{
SShow
(
false
);
tp
.
RowStyles
[
1
].
Height
=
0
;
tp
.
RowStyles
[
2
].
Height
=
0
;
tp
.
AutoSize
=
true
;
}
else
{
SShow
(
true
);
}
}
}
...
@@ -119,6 +135,19 @@ namespace TheMachineNView
...
@@ -119,6 +135,19 @@ namespace TheMachineNView
}
}
var
t
=
HumitureController
.
LastData
;
var
t
=
HumitureController
.
LastData
;
lbl_hmdstate
.
Text
+=
$
"{crc.GetString(L.temp, "
温度
")}:{t.Temperate}℃, {crc.GetString(L.humidity, "
湿度
")}:{t.Humidity}%"
;
lbl_hmdstate
.
Text
+=
$
"{crc.GetString(L.temp, "
温度
")}:{t.Temperate}℃, {crc.GetString(L.humidity, "
湿度
")}:{t.Humidity}%"
;
if
(
Setting_Init
.
Device_WeightSensor_PortName
==
""
||
RobotManage
.
oKLE_WeightSensor
==
null
||
(!
RobotManage
.
oKLE_WeightSensor
.
IsPortOpen
))
{
lblYa
.
Text
=
""
;
lblMaxY
.
Text
=
""
;
lblMaxSet
.
Text
=
""
;
}
else
{
lblYa
.
Text
=
Math
.
Round
(
RobotManage
.
oKLE_WeightSensor
.
GetWeight
(),
2
).
ToString
();
lblMaxY
.
Text
=
Math
.
Round
(
RobotManage
.
oKLE_WeightSensor
.
PeakWeight
(),
2
).
ToString
();
lblMaxSet
.
Text
=
Setting_Init
.
Device_WeightSensor_MaxValue
.
ToString
();
}
}
}
private
void
button1_Click_1
(
object
sender
,
EventArgs
e
)
private
void
button1_Click_1
(
object
sender
,
EventArgs
e
)
...
...
TheMachineNView/resources/en-US.lngres
查看文件 @
89d5e6a
...
@@ -451,3 +451,6 @@ StringDoor_Axis 料串口折叠门 String Folding Door
...
@@ -451,3 +451,6 @@ StringDoor_Axis 料串口折叠门 String Folding Door
FrmPositionTool_groupBox6_groupBox1_ioStatusControl1_label1_Text 检测信号 Detection Signal
FrmPositionTool_groupBox6_groupBox1_ioStatusControl1_label1_Text 检测信号 Detection Signal
Res0001 设备未启动 Device Not Started
Res0001 设备未启动 Device Not Started
stringDoorSafety 料串门光栅被遮挡 The grating of the string door is obstructed.
stringDoorSafety 料串门光栅被遮挡 The grating of the string door is obstructed.
Form1_tabc_tab_setting__SettingControl_tp_label5_Text 设置最大压力: Set maximum pressure:
Form1_tabc_tab_setting__SettingControl_tp_label3_Text 历史最大压力值: Historical maximum pressure value:
Form1_tabc_tab_setting__SettingControl_tp_label1_Text 压力传感器当前值: Current value of pressure sensor:
TheMachineNView/resources/ja-JP.lngres
查看文件 @
89d5e6a
...
@@ -454,3 +454,6 @@ StringDoor_Axis 料串口折叠门 ストリングドア
...
@@ -454,3 +454,6 @@ StringDoor_Axis 料串口折叠门 ストリングドア
FrmPositionTool_groupBox6_groupBox1_ioStatusControl1_label1_Text 检测信号 検出信号
FrmPositionTool_groupBox6_groupBox1_ioStatusControl1_label1_Text 检测信号 検出信号
Res0001 设备未启动 デバイスは始まっていません
Res0001 设备未启动 デバイスは始まっていません
stringDoorSafety 料串门光栅被遮挡 料串口折叠门のグリッドが遮られています
stringDoorSafety 料串门光栅被遮挡 料串口折叠门のグリッドが遮られています
Form1_tabc_tab_setting__SettingControl_tp_label5_Text 设置最大压力: 最大圧力を設定する:
Form1_tabc_tab_setting__SettingControl_tp_label3_Text 历史最大压力值: 過去の最大圧力値:
Form1_tabc_tab_setting__SettingControl_tp_label1_Text 压力传感器当前值: 圧力センサーの現在の値:
\ No newline at end of file
\ No newline at end of file
TheMachineNView/resources/zh-CN.lngres
查看文件 @
89d5e6a
...
@@ -439,3 +439,6 @@ StringDoor_Axis 料串口折叠门
...
@@ -439,3 +439,6 @@ StringDoor_Axis 料串口折叠门
FrmPositionTool_groupBox6_groupBox1_ioStatusControl1_label1_Text 检测信号
FrmPositionTool_groupBox6_groupBox1_ioStatusControl1_label1_Text 检测信号
Res0001 设备未启动
Res0001 设备未启动
stringDoorSafety 料串门光栅被遮挡
stringDoorSafety 料串门光栅被遮挡
Form1_tabc_tab_setting__SettingControl_tp_label5_Text 设置最大压力:
Form1_tabc_tab_setting__SettingControl_tp_label3_Text 历史最大压力值:
Form1_tabc_tab_setting__SettingControl_tp_label1_Text 压力传感器当前值:
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论