riorganizzazione JOBS

This commit is contained in:
Samuele E. Locatelli
2020-10-07 17:20:49 +02:00
parent cdd7921b87
commit dd99e44895
16 changed files with 107 additions and 97 deletions
+44 -44
View File
@@ -60,14 +60,14 @@
}
]
},
"99": {
"2": {
"Cycle": false,
"Description": "Get INFO data",
"Max2Keep": 10,
"Description": "Set DateTime on machine at start",
"SessionName": "SESS0002",
"SessionType": "GetInfo",
"StepOrder": 99,
"SessionType": "SetDateTime",
"ValidityMinutes": 0.0,
"Max2Keep": 10,
"StepOrder": 2,
"FileList": [
{
"Path": "DATA\\EUR63_JOB\\SESS0002.REQ",
@@ -75,7 +75,7 @@
},
{
"Path": "DATA\\EUR63_JOB\\SESS0002.JOB",
"OprReq": "Copy"
"OprReq": "ReplaceAndCopy"
}
]
},
@@ -100,11 +100,11 @@
},
"4": {
"Cycle": false,
"Description": "Set DateTime on machine at start",
"Description": "Get Machine Status",
"SessionName": "SESS0004",
"SessionType": "SetDateTime",
"ValidityMinutes": 0.0,
"Max2Keep": 10,
"SessionType": "GetStatus",
"ValidityMinutes": 1.0,
"Max2Keep": 120,
"StepOrder": 4,
"FileList": [
{
@@ -113,65 +113,65 @@
},
{
"Path": "DATA\\EUR63_JOB\\SESS0004.JOB",
"OprReq": "ReplaceAndCopy"
"OprReq": "Copy"
}
]
},
"5": {
"Cycle": false,
"Description": "Set Param ODL at Setup",
"Description": "Get Production",
"SessionName": "SESS0005",
"SessionType": "SetParamOdl",
"ValidityMinutes": 0.0,
"Max2Keep": 10,
"SessionType": "GetProduction",
"ValidityMinutes": 1.0,
"Max2Keep": 120,
"StepOrder": 5,
"FileList": [
{
"Path": "DATA\\EUR63_JOB\\SESS0005.REQ",
"OprReq": "Copy"
},
{
"Path": "DATA\\EUR63_JOB\\SESS0005.JOB",
"OprReq": "Copy"
}
]
},
"10": {
"Cycle": false,
"Description": "Set Param ODL at Setup",
"SessionName": "SESS0010",
"SessionType": "SetParamOdl",
"ValidityMinutes": 0.0,
"Max2Keep": 10,
"StepOrder": 10,
"FileList": [
{
"Path": "DATA\\EUR63_JOB\\SESS0010.REQ",
"OprReq": "Copy",
"RespKo": "ERROR",
"RespOk": "PROCESSED"
},
{
"Path": "DATA\\EUR63_JOB\\SESS0005.JOB",
"Path": "DATA\\EUR63_JOB\\SESS0010.JOB",
"OprReq": "ReplaceAndCopy"
}
]
},
"6": {
"19": {
"Cycle": false,
"Description": "Get Machine Status",
"SessionName": "SESS0006",
"SessionType": "GetStatus",
"ValidityMinutes": 1.0,
"Max2Keep": 120,
"StepOrder": 6,
"Description": "Get INFO data",
"Max2Keep": 10,
"SessionName": "SESS0019",
"SessionType": "GetInfo",
"StepOrder": 19,
"ValidityMinutes": 0.0,
"FileList": [
{
"Path": "DATA\\EUR63_JOB\\SESS0006.REQ",
"Path": "DATA\\EUR63_JOB\\SESS0019.REQ",
"OprReq": "Copy"
},
{
"Path": "DATA\\EUR63_JOB\\SESS0006.JOB",
"OprReq": "Copy"
}
]
},
"7": {
"Cycle": false,
"Description": "Get Production",
"SessionName": "SESS0007",
"SessionType": "GetProduction",
"ValidityMinutes": 1.0,
"Max2Keep": 120,
"StepOrder": 7,
"FileList": [
{
"Path": "DATA\\EUR63_JOB\\SESS0007.REQ",
"OprReq": "Copy"
},
{
"Path": "DATA\\EUR63_JOB\\SESS0007.JOB",
"Path": "DATA\\EUR63_JOB\\SESS0019.JOB",
"OprReq": "Copy"
}
]
+2 -2
View File
@@ -1,2 +1,2 @@
JOB GETINFO RESPONSE "SESS0002.LOG";
GETINFO "SESS0002.DAT";
JOB ImpostaOrario RESPONSE "SESS0004.LOG";
SET SetTimMach {DTNow};
+1 -1
View File
@@ -1 +1 @@
SESS0002 EXECUTE "SESS0002.JOB";
SESS0004 EXECUTE "SESS0004.JOB";
+11 -2
View File
@@ -1,2 +1,11 @@
JOB ImpostaOrario RESPONSE "SESS0004.LOG";
SET SetTimMach {DTNow};
JOB machstat RESPONSE "SESS0006.LOG";
REPORT status REWRITE "SESS0006.DAT"
START IMMEDIATE
STOP NEVER
CYCLIC TIME 00:00:01
SESSIONS 60
PARAMETERS
DATE, TIME, ActStsMach;
+1 -1
View File
@@ -1 +1 @@
SESS0004 EXECUTE "SESS0004.JOB";
SESS0006 EXECUTE "SESS0006.JOB";
+8 -16
View File
@@ -1,19 +1,11 @@
JOB SetID RESPONSE "SESS0005.LOG";
//SET SetDescJob " ";
//SET SetDescPrt " "
//SET SetDescMld " ";
//SET SetDescOp " ";
JOB machstat RESPONSE "SESS0007.LOG";
SET SetDescJob {ODL};
SET SetDescPrt {DescrArt};
SET SetDescMld {CodArt};
SET SetDescOp {CodOpr};
REPORT status REWRITE "SESS0007.DAT"
START IMMEDIATE
STOP NEVER
CYCLIC TIME 00:00:02
SESSIONS 30
PARAMETERS
DATE, TIME, ActCntCyc, ActTimCyc, ActTimFill, @OutXhour, SetDescJob;
//SET SetDescJob "Nr. 1000987654.01";
//SET SetDescPrt "STICK: 8 componenti SENZA assemblaggio";
//SET SetDescMld "Stampo componenti a 8 impronte";
//SET SetDescOp "Operatore 01";
//SET SetCntMld 2;
//SET SetCntPrt 10000;
//SET SetCntPrtBox 20;
+1 -1
View File
@@ -1 +1 @@
SESS0005 EXECUTE "SESS0005.JOB";
SESS0007 EXECUTE "SESS0007.JOB";
-11
View File
@@ -1,11 +0,0 @@
JOB machstat RESPONSE "SESS0006.LOG";
REPORT status REWRITE "SESS0006.DAT"
START IMMEDIATE
STOP NEVER
CYCLIC TIME 00:00:01
SESSIONS 60
PARAMETERS
DATE, TIME, ActStsMach;
-1
View File
@@ -1 +0,0 @@
SESS0006 EXECUTE "SESS0006.JOB";
-11
View File
@@ -1,11 +0,0 @@
JOB machstat RESPONSE "SESS0007.LOG";
REPORT status REWRITE "SESS0007.DAT"
START IMMEDIATE
STOP NEVER
CYCLIC TIME 00:00:02
SESSIONS 30
PARAMETERS
DATE, TIME, ActCntCyc, ActTimCyc, ActTimFill, @OutXhour, SetDescJob;
-1
View File
@@ -1 +0,0 @@
SESS0007 EXECUTE "SESS0007.JOB";
+19
View File
@@ -0,0 +1,19 @@
JOB SetID RESPONSE "SESS0005.LOG";
//SET SetDescJob " ";
//SET SetDescPrt " "
//SET SetDescMld " ";
//SET SetDescOp " ";
SET SetDescJob {ODL};
SET SetDescPrt {DescrArt};
SET SetDescMld {CodArt};
SET SetDescOp {CodOpr};
//SET SetDescJob "Nr. 1000987654.01";
//SET SetDescPrt "STICK: 8 componenti SENZA assemblaggio";
//SET SetDescMld "Stampo componenti a 8 impronte";
//SET SetDescOp "Operatore 01";
//SET SetCntMld 2;
//SET SetCntPrt 10000;
//SET SetCntPrtBox 20;
+1
View File
@@ -0,0 +1 @@
SESS0005 EXECUTE "SESS0005.JOB";
+2
View File
@@ -0,0 +1,2 @@
JOB GETINFO RESPONSE "SESS0002.LOG";
GETINFO "SESS0002.DAT";
+1
View File
@@ -0,0 +1 @@
SESS0002 EXECUTE "SESS0002.JOB";
+16 -6
View File
@@ -48,11 +48,6 @@ namespace IOB_WIN
#region Private Methods
private void abortPrevJob()
{
throw new NotImplementedException();
}
/// <summary>
/// Processa una sessione
/// - andando a verificare l'esistenza della REQ + se esito positivo pulizia
@@ -87,7 +82,7 @@ namespace IOB_WIN
}
}
private void setMachineTime()
private void requestSampleData()
{
throw new NotImplementedException();
}
@@ -96,6 +91,13 @@ namespace IOB_WIN
#region Protected Methods
protected void abortPrevJob()
{
var nextLevel = Eurom63.ComLevel.ChannelOk;
var connectSession = confE63.ActiveSessions[4];
processSession(nextLevel, connectSession);
}
/// <summary>
/// Verifica una sessione configurata (ovvero la comunicazione su TUTTI i file associati)
/// </summary>
@@ -175,6 +177,13 @@ namespace IOB_WIN
processSession(nextLevel, connectSession);
}
protected void setMachineTime()
{
var nextLevel = Eurom63.ComLevel.TimeSet;
var connectSession = confE63.ActiveSessions[3];
processSession(nextLevel, connectSession);
}
#endregion Protected Methods
#region Internal Methods
@@ -208,6 +217,7 @@ namespace IOB_WIN
break;
case Eurom63.ComLevel.ChannelOk:
requestSampleData();
break;
case Eurom63.ComLevel.DataRequested: