From ce2d91615fa4319d201fe6ea0d09200e4e712a60 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 21 Nov 2022 16:11:18 +0100 Subject: [PATCH] update conf 2 SAIM --- IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_001.ini | 12 +- .../DATA/CONF/GIACO_SAIM_001_alarm.json | 27 -- IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002.ini | 77 ++++++ IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002.json | 258 ++++++++++++++++++ .../DATA/CONF/GIACO_SAIM_002_MBlock.json | 7 + 5 files changed, 348 insertions(+), 33 deletions(-) delete mode 100644 IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_001_alarm.json create mode 100644 IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002.ini create mode 100644 IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002.json create mode 100644 IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002_MBlock.json diff --git a/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_001.ini b/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_001.ini index ae61cb28..89f2503e 100644 --- a/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_001.ini +++ b/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_001.ini @@ -6,11 +6,11 @@ PING_MS_TIMEOUT=1000 MinDeltaSec=5 [MACHINE] -VENDOR=CEDAX -MODEL=CEDAX Hydrocooler +VENDOR=SAIM +MODEL=Trattamento Ozono [CNC] -IP=192.168.18.110 +IP=192.168.18.12 PORT=502 [SERVER] @@ -24,9 +24,9 @@ CMDADV1=?valore= CMDREBO=/sendReboot.aspx?idxMacchina= [MEMORY] -ADDR_READ=41001 -ADDR_WRITE=41021 -SIZE_READ=20 +ADDR_READ=40001 +ADDR_WRITE=40001 +SIZE_READ=200 SIZE_WRITE=0 HR_BASE_ADDR=40000 diff --git a/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_001_alarm.json b/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_001_alarm.json deleted file mode 100644 index 3aa3eda0..00000000 --- a/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_001_alarm.json +++ /dev/null @@ -1,27 +0,0 @@ -[ - { - "description": "Allarmi Impianto", - "tipoMem": "DInt", - "memAddr": "40000", - "index": 0, - "size": 2, - "messages": [ - "##", - "##", - "##", - "##", - "##", - "##", - "##", - "##", - "##", - "##", - "##", - "##", - "##", - "##", - "##", - "##" - ] - } -] \ No newline at end of file diff --git a/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002.ini b/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002.ini new file mode 100644 index 00000000..6303b9cf --- /dev/null +++ b/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002.ini @@ -0,0 +1,77 @@ +;Configurazione IOB-WIN +[IOB] +;Impianto Cedax di Turi (test) - Giacovelli +CNCTYPE=MODBUS_TCP_SAIM +PING_MS_TIMEOUT=1000 +MinDeltaSec=5 + +[MACHINE] +VENDOR=SAIM +MODEL=Trattamento Ozono + +[CNC] +IP=192.168.18.13 +PORT=502 + +[SERVER] +MPIP=http://192.168.1.14 +MPURL=/MP/IO +CMDBASE=/IOB/input/ +CMDFLOG=/IOB/flog/ +CMDALIVE=/IOB +CMDENABLED=/IOB/enabled/ +CMDADV1=?valore= +CMDREBO=/sendReboot.aspx?idxMacchina= + +[MEMORY] +ADDR_READ=40001 +ADDR_WRITE=40001 +SIZE_READ=200 +SIZE_WRITE=0 +HR_BASE_ADDR=40000 + + +[BLINK] +;MAX_COUNTER_BLINK = 30 +MAX_COUNTER_BLINK = 15 +;bit0 = 0 +;bit1 = 0 +;bit2 = 1 +;bit3 = 1 +;bit4 = 1 +;bit5 = 0 +;bit6 = 0 +;bit7 = 0 +BLINK_FILT=0 +;BLINK_FILT=28 + +[OPTPAR] +;PZCOUNT_MODE=STD.[PAR/MEM].info|BIT.indice +PZCOUNT_MODE=STD.DB85.DBRE16 +DISABLE_PZCOUNT=TRUE +ENABLE_SEND_PZC_BLOCK=TRUE +MIN_SEND_PZC_BLOCK=0 +MAX_SEND_PZC_BLOCK=100 +; GEST DATI DYN +ENABLE_DYN_DATA=TRUE +FORCE_DYN_DATA=TRUE +; gestione delta minimo accettabile tra min/MAX +DELTA_VAL=0.1 + +; clock base (da 10ms) +timerIntMs=10 + +; conf parametri memoria READ/WRITE +PARAM_CONF=GIACO_SAIM_002.json + +NO_PING=FALSE +; conf blocchi memoria x READ +MEM_BLOCK=GIACO_SAIM_002_MBlock.json +; conf aree allarme +;ALARM_CONF=GIACO_SAIM_002_alarm.json + +; rimozione check limiti min/max dynData +disDynDataRangeCheck=true + +[BRANCH] +NAME=master \ No newline at end of file diff --git a/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002.json b/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002.json new file mode 100644 index 00000000..edf4343e --- /dev/null +++ b/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002.json @@ -0,0 +1,258 @@ +{ + "mMapWrite": { + "Dose_Staz_1": { + "name": "Dose_Staz_1", + "description": "Dose Stazione 1", + "memAddr": "40024", + "tipoMem": "Int", + "index": 24, + "size": 1, + "func": "MEDIAN", + "period": 90, + "factor": 0.01, + "minVal": 0, + "maxVal": 999999999, + "unit": "%" + }, + "Dose_Staz_2": { + "name": "Dose_Staz_2", + "description": "Dose Stazione 2", + "memAddr": "40025", + "tipoMem": "Int", + "index": 25, + "size": 1, + "func": "MEDIAN", + "period": 90, + "factor": 0.01, + "minVal": 0, + "maxVal": 999999999, + "unit": "%" + }, + "Dose_Staz_3": { + "name": "Dose_Staz_3", + "description": "Dose Stazione 3", + "memAddr": "40026", + "tipoMem": "Int", + "index": 26, + "size": 1, + "func": "MEDIAN", + "period": 90, + "factor": 0.01, + "minVal": 0, + "maxVal": 999999999, + "unit": "%" + }, + "Dose_Staz_4": { + "name": "Dose_Staz_4", + "description": "Dose Stazione 4", + "memAddr": "40027", + "tipoMem": "Int", + "index": 27, + "size": 1, + "func": "MEDIAN", + "period": 90, + "factor": 0.01, + "minVal": 0, + "maxVal": 999999999, + "unit": "%" + } + }, + "mMapRead": { + "Stag_H2O": { + "name": "Stag_H2O", + "description": "Totale H2O Stagione", + "memAddr": "41001", + "tipoMem": "HLPInt", + "index": 1001, + "size": 2, + "func": "MEDIAN", + "period": 90, + "factor": 1, + "minVal": 0, + "maxVal": 999999999, + "unit": "l" + }, + "Stag_Prod1": { + "name": "Stag_Prod1", + "description": "Totale Prodotto 1 Stagione", + "memAddr": "41003", + "tipoMem": "HLPInt", + "index": 1003, + "size": 2, + "func": "MEDIAN", + "period": 90, + "factor": 1, + "minVal": 0, + "maxVal": 999999999, + "unit": "l" + }, + "Stag_Prod2": { + "name": "Stag_Prod2", + "description": "Totale Prodotto 2 Stagione", + "memAddr": "41005", + "tipoMem": "HLPInt", + "index": 1005, + "size": 2, + "func": "MEDIAN", + "period": 90, + "factor": 1, + "minVal": 0, + "maxVal": 999999999, + "unit": "l" + }, + "Stag_Prod3": { + "name": "Stag_Prod3", + "description": "Totale Prodotto 3 Stagione", + "memAddr": "41007", + "tipoMem": "HLPInt", + "index": 1007, + "size": 2, + "func": "MEDIAN", + "period": 90, + "factor": 0.01, + "minVal": 0, + "maxVal": 999999999, + "unit": "l" + }, + "Stag_Prod4": { + "name": "Stag_Prod4", + "description": "Totale Prodotto 4 Stagione", + "memAddr": "41009", + "tipoMem": "HLPInt", + "index": 1009, + "size": 2, + "func": "MEDIAN", + "period": 90, + "factor": 0.01, + "minVal": 0, + "maxVal": 999999999, + "unit": "l" + }, + "Giorno_H2O": { + "name": "Giorno_H2O", + "description": "Totale H2O Giorno", + "memAddr": "41011", + "tipoMem": "HLPInt", + "index": 1011, + "size": 2, + "func": "MEDIAN", + "period": 90, + "factor": 1, + "minVal": 0, + "maxVal": 999999999, + "unit": "l" + }, + "Giorno_Prod1": { + "name": "Giorno_Prod1", + "description": "Totale Prodotto 1 Giorno", + "memAddr": "41013", + "tipoMem": "HLPInt", + "index": 1013, + "size": 2, + "func": "MEDIAN", + "period": 90, + "factor": 1, + "minVal": 0, + "maxVal": 999999999, + "unit": "l" + }, + "Giorno_Prod2": { + "name": "Giorno_Prod2", + "description": "Totale Prodotto 2 Giorno", + "memAddr": "41015", + "tipoMem": "HLPInt", + "index": 1015, + "size": 2, + "func": "MEDIAN", + "period": 90, + "factor": 1, + "minVal": 0, + "maxVal": 999999999, + "unit": "l" + }, + "Giorno_Prod3": { + "name": "Giorno_Prod3", + "description": "Totale Prodotto 3 Giorno", + "memAddr": "41017", + "tipoMem": "HLPInt", + "index": 1017, + "size": 2, + "func": "MEDIAN", + "period": 90, + "factor": 0.01, + "minVal": 0, + "maxVal": 999999999, + "unit": "l" + }, + "Giorno_Prod4": { + "name": "Giorno_Prod4", + "description": "Totale Prodotto 4 Giorno", + "memAddr": "41019", + "tipoMem": "HLPInt", + "index": 1019, + "size": 2, + "func": "MEDIAN", + "period": 90, + "factor": 0.01, + "minVal": 0, + "maxVal": 999999999, + "unit": "l" + }, + "Dose_Staz_1": { + "name": "Dose_Staz_1", + "description": "Dose Stazione 1", + "memAddr": "40024", + "tipoMem": "Int", + "index": 24, + "size": 1, + "func": "MEDIAN", + "period": 90, + "factor": 0.01, + "minVal": 0, + "maxVal": 999999999, + "unit": "%" + }, + "Dose_Staz_2": { + "name": "Dose_Staz_2", + "description": "Dose Stazione 2", + "memAddr": "40025", + "tipoMem": "Int", + "index": 25, + "size": 1, + "func": "MEDIAN", + "period": 90, + "factor": 0.01, + "minVal": 0, + "maxVal": 999999999, + "unit": "%" + }, + "Dose_Staz_3": { + "name": "Dose_Staz_3", + "description": "Dose Stazione 3", + "memAddr": "40026", + "tipoMem": "Int", + "index": 26, + "size": 1, + "func": "MEDIAN", + "period": 90, + "factor": 0.01, + "minVal": 0, + "maxVal": 999999999, + "unit": "%" + }, + "Dose_Staz_4": { + "name": "Dose_Staz_4", + "description": "Dose Stazione 4", + "memAddr": "40027", + "tipoMem": "Int", + "index": 27, + "size": 1, + "func": "MEDIAN", + "period": 90, + "factor": 0.01, + "minVal": 0, + "maxVal": 999999999, + "unit": "%" + } + } +} \ No newline at end of file diff --git a/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002_MBlock.json b/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002_MBlock.json new file mode 100644 index 00000000..f20d1551 --- /dev/null +++ b/IOB-WIN-NEXT/DATA/CONF/GIACO_SAIM_002_MBlock.json @@ -0,0 +1,7 @@ +{ + "ReadBlocks": { + "40010": 10, + "40100": 40, + "40140": 30 + } +} \ No newline at end of file