Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Laisi_AutoMES2
Overview
Overview
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
jiawei.su
Laisi_AutoMES2
Commits
89d32f3a
Commit
89d32f3a
authored
Feb 16, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug Sn重复出库
parent
04c17349
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+31
-0
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
89d32f3a
...
@@ -253,6 +253,37 @@ namespace Siger.ApiACC.Controllers
...
@@ -253,6 +253,37 @@ namespace Siger.ApiACC.Controllers
Logger
.
WriteLineInfo
(
$"PlCfeeback 设备属性为维护"
);
Logger
.
WriteLineInfo
(
$"PlCfeeback 设备属性为维护"
);
throw
new
BadRequestException
(
AccEnum
.
SectionPropertyNull
);
throw
new
BadRequestException
(
AccEnum
.
SectionPropertyNull
);
}
}
//PLC 反馈执行中
if
(
status
==(
int
)
TaskResultStatus
.
Produce
)
{
var
location
=
_automationLocation
.
Get
(
f
=>
f
.
fixturetools
==
taskObj
.
fixtureguid
&&
f
.
locationid
==
taskObj
.
locationid
);
if
(
location
==
null
)
{
Logger
.
WriteLineInfo
(
$"PlCfeeback 未找到该工装储位信息"
);
throw
new
BadRequestException
(
AccEnum
.
MachineDisable
);
}
if
(
sectionProperty
.
propertytype
==
1
)
{
//执行中时 Sn 已经出库
//从立库储位拿SN 工件到上料位
if
(
taskObj
.
action
==
TaskAction
.
Step_LK_SXLW
)
{
location
.
sn
=
taskObj
.
sn
;
location
.
ordernumber
=
taskObj
.
ordercode
;
location
.
productcode
=
taskObj
.
productcode
;
location
.
productid
=
taskObj
.
productid
;
location
.
productname
=
taskObj
.
productname
;
location
.
route
=
taskObj
.
route
.
ToString
();
location
.
routeid
=
taskObj
.
route
;
location
.
status
=
(
int
)
LocationStatus
.
Out
;
_automationLocation
.
Update
(
location
);
}
}
}
//PLC 反馈结束.
//PLC 反馈结束.
if
(
status
==
(
int
)
TaskResultStatus
.
Complated
)
if
(
status
==
(
int
)
TaskResultStatus
.
Complated
)
{
{
...
...
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