Merged PR 26793: Added a check for an error in copying of RDS Layer Params
Added a check for an error in copying of RDS Layer Params
This commit is contained in:
parent
f1a719d279
commit
3e0991f681
@ -985,71 +985,72 @@ Service ProcessScanData(ScanID, ScanJSON)
|
|||||||
FirstParmsComp = LSParmsComp<1,1>
|
FirstParmsComp = LSParmsComp<1,1>
|
||||||
If (FirstParmsComp EQ False$) then RDS_Services('CopyRDSLayerParameters', RDSNo)
|
If (FirstParmsComp EQ False$) then RDS_Services('CopyRDSLayerParameters', RDSNo)
|
||||||
//Test Wafer logging verification
|
//Test Wafer logging verification
|
||||||
|
If Error_Services('NoError') then
|
||||||
|
// Supplier lot verification
|
||||||
// Supplier lot verification
|
ScannedSuppLot = ScansRow<SCANS.SUPPLIER_LOT$>
|
||||||
ScannedSuppLot = ScansRow<SCANS.SUPPLIER_LOT$>
|
RDSSuppLot = RDSRec<RDS_LOT_NUM$>
|
||||||
RDSSuppLot = RDSRec<RDS_LOT_NUM$>
|
If (ScannedSuppLot NE '') then
|
||||||
If (ScannedSuppLot NE '') then
|
If (ScannedSuppLot _EQC RDSSuppLot) then
|
||||||
If (ScannedSuppLot _EQC RDSSuppLot) then
|
IsTWLoggingReqd = RDS_Services('IsTWLoggingReqd', RDSNo)
|
||||||
IsTWLoggingReqd = RDS_Services('IsTWLoggingReqd', RDSNo)
|
If IsTWLoggingReqd NE True$ OR TestWaferLotData NE '' then
|
||||||
If IsTWLoggingReqd NE True$ OR TestWaferLotData NE '' then
|
WaferCountAckReq = Xlate('RDS', RDSNo, 'WAFER_COUNT_ACK_REQ', 'X')
|
||||||
WaferCountAckReq = Xlate('RDS', RDSNo, 'WAFER_COUNT_ACK_REQ', 'X')
|
If WaferCountAckReq EQ False$ then
|
||||||
If WaferCountAckReq EQ False$ then
|
PreStageReady = ''
|
||||||
PreStageReady = ''
|
LoadStageReady = ''
|
||||||
LoadStageReady = ''
|
PreStageReady = QA_Services('PreEpiSignatureReady', RDSNo, Username, WaferQty, Reactor)
|
||||||
PreStageReady = QA_Services('PreEpiSignatureReady', RDSNo, Username, WaferQty, Reactor)
|
If PreStageReady EQ True$ then
|
||||||
If PreStageReady EQ True$ then
|
LoadStageReady = QA_Services('LoadSignatureReady', RDSNo, Username, WaferQty, LLSide, True$, Reactor)
|
||||||
LoadStageReady = QA_Services('LoadSignatureReady', RDSNo, Username, WaferQty, LLSide, True$, Reactor)
|
If (LoadStageReady NE True$) then
|
||||||
If (LoadStageReady NE True$) then
|
// Why is it not ready?
|
||||||
|
ErrMsg = Error_Services('GetMessage')
|
||||||
|
Begin Case
|
||||||
|
Case IndexC(ErrMsg, 'supplement', 1)
|
||||||
|
// Clear the error to return a JSON payload and handle the acknowledgements.
|
||||||
|
Error_Services('Clear')
|
||||||
|
Scan_Services('AddNotAcceptableReason', ErrMsg)
|
||||||
|
Case IndexC(ErrMsg, 'ROTR', 1)
|
||||||
|
ROTRBlock = Database_Services('ReadDataColumn', 'REACTOR', Reactor, REACTOR_ROTR_STATUS$, True$, 0, False$)
|
||||||
|
ROTRBlockReason = Database_Services('ReadDataColumn', 'REACTOR', Reactor, REACTOR_ROTR_STATUS_REASON$, True$, 0, False$)
|
||||||
|
ROTREnabled = Database_Services('ReadDataColumn', 'REACTOR', Reactor, REACTOR_ENABLE_ROTR$, True$, 0, False$)
|
||||||
|
If ( (ROTRBlock NE 'P') AND (ROTREnabled EQ True$) ) then
|
||||||
|
// Clear the error to return a JSON payload and allow for OVERRIDE scan.
|
||||||
|
ScansRow<SCANS.OVERRIDE_REQD$> = True$
|
||||||
|
ScansRow<SCANS.OVERRIDE_REASON$> = ROTRBlockReason
|
||||||
|
ScansRow<SCANS.OVERRIDE_TYPE$> = 'ROTR'
|
||||||
|
Error_Services('Clear')
|
||||||
|
Scan_Services('AddNotAcceptableReason', "ROTR Load Block Enabled")
|
||||||
|
end else
|
||||||
|
ScansRow<SCANS.OVERRIDE_REQD$> = False$
|
||||||
|
ScansRow<SCANS.OVERRIDE_REASON$> = ''
|
||||||
|
ScansRow<SCANS.OVERRIDE_TYPE$> = ''
|
||||||
|
end
|
||||||
|
End Case
|
||||||
|
end
|
||||||
|
end else
|
||||||
// Why is it not ready?
|
// Why is it not ready?
|
||||||
ErrMsg = Error_Services('GetMessage')
|
ErrMsg = Error_Services('GetMessage')
|
||||||
Begin Case
|
Begin Case
|
||||||
Case IndexC(ErrMsg, 'supplement', 1)
|
Case IndexC(ErrMsg, 'supplement', 1)
|
||||||
// Clear the error to return a JSON payload and handle the acknowledgements.
|
|
||||||
Error_Services('Clear')
|
Error_Services('Clear')
|
||||||
Scan_Services('AddNotAcceptableReason', ErrMsg)
|
Scan_Services('AddNotAcceptableReason', ErrMsg)
|
||||||
Case IndexC(ErrMsg, 'ROTR', 1)
|
End Case
|
||||||
ROTRBlock = Database_Services('ReadDataColumn', 'REACTOR', Reactor, REACTOR_ROTR_STATUS$, True$, 0, False$)
|
|
||||||
ROTRBlockReason = Database_Services('ReadDataColumn', 'REACTOR', Reactor, REACTOR_ROTR_STATUS_REASON$, True$, 0, False$)
|
|
||||||
ROTREnabled = Database_Services('ReadDataColumn', 'REACTOR', Reactor, REACTOR_ENABLE_ROTR$, True$, 0, False$)
|
|
||||||
If ( (ROTRBlock NE 'P') AND (ROTREnabled EQ True$) ) then
|
|
||||||
// Clear the error to return a JSON payload and allow for OVERRIDE scan.
|
|
||||||
ScansRow<SCANS.OVERRIDE_REQD$> = True$
|
|
||||||
ScansRow<SCANS.OVERRIDE_REASON$> = ROTRBlockReason
|
|
||||||
ScansRow<SCANS.OVERRIDE_TYPE$> = 'ROTR'
|
|
||||||
Error_Services('Clear')
|
|
||||||
Scan_Services('AddNotAcceptableReason', "ROTR Load Block Enabled")
|
|
||||||
end else
|
|
||||||
ScansRow<SCANS.OVERRIDE_REQD$> = False$
|
|
||||||
ScansRow<SCANS.OVERRIDE_REASON$> = ''
|
|
||||||
ScansRow<SCANS.OVERRIDE_TYPE$> = ''
|
|
||||||
end
|
|
||||||
End Case
|
|
||||||
end
|
end
|
||||||
end else
|
end else
|
||||||
// Why is it not ready?
|
Scan_Services('AddNotAcceptableReason', 'The cassette wafer count must be verified against the scheduled wafer count to proceed.')
|
||||||
ErrMsg = Error_Services('GetMessage')
|
|
||||||
Begin Case
|
|
||||||
Case IndexC(ErrMsg, 'supplement', 1)
|
|
||||||
Error_Services('Clear')
|
|
||||||
Scan_Services('AddNotAcceptableReason', ErrMsg)
|
|
||||||
End Case
|
|
||||||
end
|
end
|
||||||
end else
|
end else
|
||||||
Scan_Services('AddNotAcceptableReason', 'The cassette wafer count must be verified against the scheduled wafer count to proceed.')
|
Scan_Services('AddNotAcceptableReason', 'Test wafers are required to be logged with this run.')
|
||||||
end
|
end
|
||||||
end else
|
end else
|
||||||
Scan_Services('AddNotAcceptableReason', 'Test wafers are required to be logged with this run.')
|
ScansRow<SCANS.SUPPLIER_LOT$> = ''
|
||||||
|
ErrMsg = '(':CassetteID:') Supplier lot mismatch.'
|
||||||
end
|
end
|
||||||
end else
|
end else
|
||||||
ScansRow<SCANS.SUPPLIER_LOT$> = ''
|
Scan_Services('AddNotAcceptableReason', 'Supplier lot scan required in order to complete a tool scan.')
|
||||||
ErrMsg = '(':CassetteID:') Supplier lot mismatch.'
|
|
||||||
end
|
end
|
||||||
end else
|
end else
|
||||||
Scan_Services('AddNotAcceptableReason', 'Supplier lot scan required in order to complete a tool scan.')
|
ErrMsg = Error_Services('GetMessage')
|
||||||
end
|
end
|
||||||
|
|
||||||
end else
|
end else
|
||||||
ErrMsg = '(':CassetteID:') The first run must be completed using the OpenInsight user interface.'
|
ErrMsg = '(':CassetteID:') The first run must be completed using the OpenInsight user interface.'
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user