Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e7c204e4
由
刘韬
编写于
2022-05-06 13:35:54 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
8189c6d2
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
8 行删除
DeviceLibrary/theMachine/LabelParam.cs
DeviceLibrary/theMachine/MainMachine_String.cs
DeviceLibrary/userControl/AxisMoveControl.cs
DeviceLibrary/theMachine/LabelParam.cs
查看文件 @
e7c204e
...
@@ -163,7 +163,7 @@ namespace DeviceLibrary
...
@@ -163,7 +163,7 @@ namespace DeviceLibrary
{
{
if
(
storeSide
==
StoreSide
.
NGDoor
)
if
(
storeSide
==
StoreSide
.
NGDoor
)
{
{
Middle_P2
=
Config
.
Middle_P
1
;
Middle_P2
=
Config
.
Middle_P
2
;
InOut_P2
=
Config
.
InOut_P2
;
InOut_P2
=
Config
.
InOut_P2
;
UpDown_PH
=
Config
.
UpDown_P2
;
UpDown_PH
=
Config
.
UpDown_P2
;
UpDown_PL
=
Config
.
UpDown_P3
;
UpDown_PL
=
Config
.
UpDown_P3
;
...
@@ -171,7 +171,7 @@ namespace DeviceLibrary
...
@@ -171,7 +171,7 @@ namespace DeviceLibrary
}
}
else
if
(
storeSide
==
StoreSide
.
String
)
else
if
(
storeSide
==
StoreSide
.
String
)
{
{
Middle_P2
=
Config
.
Middle_P
1
;
Middle_P2
=
Config
.
Middle_P
3
;
InOut_P2
=
Config
.
InOut_P3
;
InOut_P2
=
Config
.
InOut_P3
;
UpDown_PH
=
Config
.
UpDown_P4
;
UpDown_PH
=
Config
.
UpDown_P4
;
UpDown_PL
=
Config
.
UpDown_P5
;
UpDown_PL
=
Config
.
UpDown_P5
;
...
...
DeviceLibrary/theMachine/MainMachine_String.cs
查看文件 @
e7c204e
...
@@ -174,14 +174,14 @@ namespace DeviceLibrary
...
@@ -174,14 +174,14 @@ namespace DeviceLibrary
var
tpos2
=
Batch_Axis
.
GetAclPosition
()
-
Config
.
Batch_PoToMM
*
Config
.
Batch_DetectDownMM
;
var
tpos2
=
Batch_Axis
.
GetAclPosition
()
-
Config
.
Batch_PoToMM
*
Config
.
Batch_DetectDownMM
;
if
(
tpos2
<
0
)
if
(
tpos2
<
0
)
{
{
tpos2
=
0
;
tpos2
=
0
;
if
(
tpos2
-
Config
.
Batch_PoToMM
*
30
<
0
)
}
if
(
StringState
==
StringStateE
.
Empty
&&
tpos2
-
Config
.
Batch_PoToMM
*
30
<
0
)
{
{
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringOut_01
);
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringOut_01
);
StringState
=
StringStateE
.
Full
;
StringState
=
StringStateE
.
Full
;
StringMoveInfo
.
log
(
$
"料串已满可以送出"
);
StringMoveInfo
.
log
(
$
"料串已满可以送出"
);
}
}
}
Batch_Axis
.
AbsMove
(
StringMoveInfo
,
tpos2
,
Config
.
Batch_P1
);
Batch_Axis
.
AbsMove
(
StringMoveInfo
,
tpos2
,
Config
.
Batch_P1
);
}
}
break
;
break
;
...
@@ -300,7 +300,10 @@ namespace DeviceLibrary
...
@@ -300,7 +300,10 @@ namespace DeviceLibrary
CylinderMove
(
StringMoveInfo
,
IO_Type
.
StringFix_Bottom
,
IO_Type
.
StringFix_Top
,
IO_VALUE
.
LOW
);
CylinderMove
(
StringMoveInfo
,
IO_Type
.
StringFix_Bottom
,
IO_Type
.
StringFix_Top
,
IO_VALUE
.
LOW
);
break
;
break
;
case
MoveStep
.
StringOut_Released
:
case
MoveStep
.
StringOut_Released
:
Msg
.
add
(
crc
.
GetString
(
L
.
string_full_takeout
,
"料串已满请取出"
),
MsgLevel
.
warning
);
//0427
if
(
StringState
==
StringStateE
.
Full
)
Msg
.
add
(
crc
.
GetString
(
L
.
string_full_takeout
,
"料串已满请取出"
),
MsgLevel
.
warning
);
//0427
else
Msg
.
add
(
crc
.
GetString
(
L
.
wait_string_take
,
"等待料串被取走"
),
MsgLevel
.
warning
);
if
(
IOValue
(
IO_Type
.
StringBack_Check
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOValue
(
IO_Type
.
StringFront_Check
).
Equals
(
IO_VALUE
.
LOW
))
if
(
IOValue
(
IO_Type
.
StringBack_Check
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOValue
(
IO_Type
.
StringFront_Check
).
Equals
(
IO_VALUE
.
LOW
))
{
{
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
Wait
);
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
Wait
);
...
...
DeviceLibrary/userControl/AxisMoveControl.cs
查看文件 @
e7c204e
...
@@ -105,7 +105,7 @@ namespace DeviceLibrary
...
@@ -105,7 +105,7 @@ namespace DeviceLibrary
}
}
int
position
=
FormUtil
.
GetIntValue
(
txtAPosition
);
int
position
=
FormUtil
.
GetIntValue
(
txtAPosition
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
if
(
currentAxis
.
IsSafe
(
position
,
out
string
msg
))
if
(
!
currentAxis
.
IsSafe
(
position
,
out
string
msg
))
{
{
MessageBox
.
Show
(
msg
);
MessageBox
.
Show
(
msg
);
return
;
return
;
...
@@ -127,7 +127,7 @@ namespace DeviceLibrary
...
@@ -127,7 +127,7 @@ namespace DeviceLibrary
int
position
=
FormUtil
.
GetIntValue
(
txtAPosition
);
int
position
=
FormUtil
.
GetIntValue
(
txtAPosition
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
int
speed
=
FormUtil
.
GetIntValue
(
txtASpeed
);
if
(
currentAxis
.
IsSafe
(
currentAxis
.
GetAclPosition
()+
position
,
out
string
msg
))
if
(
!
currentAxis
.
IsSafe
(
currentAxis
.
GetAclPosition
()+
position
,
out
string
msg
))
{
{
MessageBox
.
Show
(
msg
);
MessageBox
.
Show
(
msg
);
return
;
return
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论