OPC-UA Cimolai:

- conf OPC-UA aggiornata
- fix gestione contapezzi
This commit is contained in:
Samuele E. Locatelli
2022-09-07 18:29:52 +02:00
parent dfe57d73de
commit 1cb0bc84b1
6 changed files with 46 additions and 37 deletions
@@ -50,7 +50,7 @@ CHANGE_ODL_MODE=TIME
CHANGE_ODL_HOURS=24
CHANGE_ODL_IDLE_MIN=5
PZCOUNT_MODE=OPC
DISABLE_PZCOUNT=FALSE
DISABLE_PZCOUNT=TRUE
ENABLE_SEND_PZC_BLOCK=TRUE
MIN_SEND_PZC_BLOCK=0
MAX_SEND_PZC_BLOCK=100
@@ -2,21 +2,21 @@
"BrowseFullVal": "ns=2;i=1001",
"BrowseNSIndex": 2,
"BrowseValue": 1001,
"keyPartCount": "Conteggio",
"keyPartReq": "Set Quantità Lotto",
"keyPartId": "Generale: Nome Ricetta",
"keyProgName": "Generale: Nome Ricetta",
"keyPartCount": "",
"keyPartReq": "",
"keyPartId": "",
"keyProgName": "",
"keyRunMode": "",
"pingAsPowerOn": true,
"forcePingOk": true,
"forcePingOk": false,
"condWork": [
{
"keyName": "Selettore in Automatico",
"targetValue": "True"
"keyName": "ns=2;s=Tags.PLC/DB13/Gen/Marcia_AUX",
"targetValue": "2"
},
{
"keyName": "Memoria Ciclo Automatico",
"targetValue": "True"
"keyName": "ns=2;s=Tags.PLC/DB231/InCorso",
"targetValue": "1"
}
],
"condPowerOn": {
@@ -25,27 +25,28 @@
},
"condReady": {
"checkMode": "AND",
"checkList": []
"checkList": [
{
"keyName": "ns=2;s=Tags.PLC/DB13/Gen/Marcia_AUX",
"targetValue": "2"
}
]
},
"condManual": {
"checkMode": "AND",
"checkList": [
{
"keyName": "Selettore in Manuale",
"targetValue": "True"
}
]
"checkList": []
},
"condEStop": {
"checkMode": "AND",
"checkList": []
},
"condError": {
"checkMode": "AND",
"checkMode": "OR",
"negateValue": true,
"checkList": [
{
"keyName": "Memoria Allarme Attivo",
"targetValue": "True"
"keyName": "ns=2;s=Tags.PLC/DB13/Gen/ComProfibusMessage",
"targetValue": "0"
}
]
},
@@ -63,12 +64,7 @@
},
"condSetup": {
"checkMode": "AND",
"checkList": [
{
"keyName": "Fine Lotto (1=Stop Ciclo)",
"targetValue": "1"
}
]
"checkList": []
},
"fluxLogVeto": [
""
@@ -104,14 +100,5 @@
"MemConfRead": "ns=4;s=tomes_1_Watchdog",
"MemConfWrite": "ns=4;s=tomach_1_watchdog",
"MaxVal": 9999
},
"actStopProd": {
"ns=4;i=14": "1"
},
"actSetRecipe": {
"ns=4;i=10": "1"
},
"actResetCounter": {
"ns=4;i=13": "1"
}
}
+3
View File
@@ -350,6 +350,9 @@
<None Include="DATA\CONF\GIACO_CEDAX_003_MBlock.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="DATA\CONF\BAGLIETTO_CIMOLAI_01_alarm.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="DATA\CONF\GIACO_CENTERFRIGO_MBlock.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
+14
View File
@@ -3942,6 +3942,20 @@ namespace IOB_WIN_NEXT
/// </summary>
protected int watchDogPeriod = 2;
/// <summary>
/// Boolean x indicare contapezzi abilitato a livello di conf apoplicazione
/// </summary>
protected bool enablePzCountByApp = true;
/// <summary>
/// Boolean x indicare contapezzi abilitato forzatamente da IOB
/// </summary>
protected bool enablePzCountByIob = true;
/// <summary>
/// Boolean x indicare contapezzi disabilitato forzatamente da IOB
/// </summary>
protected bool disablePzCounteByIob = false;
#endregion Protected Fields
#region Protected Properties
+6 -1
View File
@@ -28,6 +28,11 @@ namespace IOB_WIN_NEXT
{
// gestione invio ritardato contapezzi
pzCountDelay = utils.CRI("pzCountDelay");
enablePzCount = utils.CRB("enableContapezzi");
enablePzCountByIob = (getOptPar("ENABLE_PZCOUNT") == "TRUE");
disablePzCounteByIob = (getOptPar("DISABLE_PZCOUNT") == "TRUE");
// gestione data filtering...
if (!string.IsNullOrEmpty(getOptPar("ENABLE_DATA_FILTER")))
{
@@ -157,7 +162,7 @@ namespace IOB_WIN_NEXT
/// </summary>
public override void processContapezzi()
{
if (utils.CRB("enableContapezzi"))
if ((enablePzCountByApp || enablePzCountByIob) && !(disablePzCounteByIob))
{
// da ridefinire la gestione base del contapezzi OPC-UA...
}
+1 -1
View File
@@ -47,7 +47,7 @@ namespace IOB_WIN_NEXT
/// </summary>
public override void processContapezzi()
{
if (utils.CRB("enableContapezzi"))
if ((enablePzCountByApp || enablePzCountByIob) && !(disablePzCounteByIob))
{
// check condizione validazione
if (checkMultiCondition(opcUaParams.condCountEnabled) || opcUaParams.condCountEnabled.checkList.Count == 0)