Question

Control plan and analysis automation

  • 28 June 2023
  • 1 reply
  • 95 views

Badge +2

Hi

We are using ifs 10.8 on premise.

I’m trying to use Control Plans and Create Shopfloor analysis from our mes system.

I would like to create and fill out the analysis automaticly using the projections interface (rest)

 

When I call … int/main/ifsapplications/projection/v1/ShopOrderHandling.svc/CreateAnalysis

with body

{"AnalysisNo":null,"CtrlPlanNo":null,"OrderNo":"375979","ReleaseNo":"*","SequenceNo":"*","OperationNo":"40","LotBatchNo":"*","SerialNo":null,"ConsiderOpScrap":false}

Data taken fra postman interceptor.

I get internal server error. Where to look for what is wrong.

If i call int//ifsapplications/projection/v1/ShopOrderHandling.svc/GetExistingAnalysisCount(OrderNo='375979',ReleaseNo='*',SequenceNo='*',OperationNo=40)

I get the value 4, so the order and operation is understood.

 

What to call to insert data.

int/ifsapplications/projection/v1/AnalysisResultHandling.svc/ResultDataVirtualSet ?

 

 

 


1 reply

Badge +2

Just for info.. I was using the Microsoft.OData.Client library version 7.17. 

The auto generated metadata functions SelectAll(true) and SaveSerialNumbre()  did not work. If I use a standard HttpClient and fill everything out it works.

My best guest right now, is that the 2 functions uses the http session to control, which serial numbers to add to analysis.

So I have a workaround not pretty but it works...

Reply