diff --git a/IOB-WIN-NEXT/DATA/CONF/STEL_210.ini b/IOB-WIN-NEXT/DATA/CONF/STEL_210.ini new file mode 100644 index 00000000..76a331f1 --- /dev/null +++ b/IOB-WIN-NEXT/DATA/CONF/STEL_210.ini @@ -0,0 +1,71 @@ +;Configurazione IOB-WIN +[IOB] +;Centro di lavoro OpcUa +CNCTYPE=OpcUaEwon +PING_MS_TIMEOUT=500 + +[MACHINE] +VENDOR=Adige +MODEL=Segatrice CM602 + +[CNC] +IP=192.168.1.210 +PORT=48020 +GETPRGNAME=true + +[SERVER] +MPIP=http://192.168.1.65 +MPURL=/MP/IO +CMDBASE=/IOB/input/ +CMDFLOG=/IOB/flog/ +CMDALIVE=/IOB +CMDENABLED=/IOB/enabled/ +CMDADV1=?valore= +CMDREBO=/sendReboot.aspx?idxMacchina= + +[MEMORY] +ADDR_READ=DB9999.DBB0 +ADDR_WRITE=DB9999.DBB0 +SIZE_READ=0 +SIZE_WRITE=0 +;BIT0=CONN +;BIT1=DB60.DBB1 +;BIT2=PZCOUNT.STD.DB700.DBW22 +;BIT3=DB60.DBB3 +;BIT4=DB60.DBB4 + + +[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] +AUTO_CHANGE_ODL=false +CHANGE_ODL_MODE=TIME +CHANGE_ODL_HOURS=24 +CHANGE_ODL_IDLE_MIN=5 +PZCOUNT_MODE=OPC +DISABLE_PZCOUNT=FALSE +ENABLE_SEND_PZC_BLOCK=TRUE +MIN_SEND_PZC_BLOCK=0 +MAX_SEND_PZC_BLOCK=100 +ENABLE_DYN_DATA=FALSE +FORCE_DYN_DATA=TRUE +ENABLE_DATA_FILTER=TRUE +ENABLE_CLI_RESTART=TRUE + +; conf parametri memoria READ/WRITE +OPC_PARAM_CONF=STEL_210.json + +[BRANCH] +NAME=master \ No newline at end of file diff --git a/IOB-WIN-NEXT/DATA/CONF/STEL_210.json b/IOB-WIN-NEXT/DATA/CONF/STEL_210.json new file mode 100644 index 00000000..e87e4016 --- /dev/null +++ b/IOB-WIN-NEXT/DATA/CONF/STEL_210.json @@ -0,0 +1,172 @@ +{ + "BrowseFullVal": "ns=4;i=5001", + "BrowseNSIndex": 4, + "BrowseValue": 5001, + "keyPartCount": "tomes_17_partial_prod", + "keyPartReq": "tomach_6_quantity", + "keyPartId": "", + "keyProgName": "", + "keyRunMode": "", + "pingAsPowerOn": false, + "Identity": { + "UserName": "opcread", + "Passwd": "opcread" + }, + "condWork": [ + { + "keyName": "tomes_5_autom", + "targetValue": "True" + } + ], + "condPowerOn": { + "checkMode": "AND", + "checkList": [ + { + "keyName": "tomes_2_mach_on", + "targetValue": "True" + } + ] + }, + "condReady": { + "checkMode": "AND", + "checkList": [] + }, + "condManual": { + "checkMode": "AND", + "checkList": [ + { + "keyName": "tomes_6_manual", + "targetValue": "True" + } + ] + }, + "condEStop": { + "checkMode": "AND", + "checkList": [] + }, + "condError": { + "checkMode": "AND", + "checkList": [ + { + "keyName": "tomes_7_alarm", + "targetValue": "True" + } + ] + }, + "condCountEnabled": { + "checkMode": "AND", + "checkList": [] + }, + "condWarmUpCoolDown": { + "checkMode": "OR", + "checkList": [], + "negateValue": true + }, + "condWarning": { + "checkMode": "AND", + "checkList": [ + { + "keyName": "tomes_8_warning", + "targetValue": "True" + } + ] + }, + "condSetup": { + "checkMode": "AND", + "checkList": [ + { + "keyName": "tomes_3_setup", + "targetValue": "True" + } + ] + }, + "fluxLogVeto": [ + "tomes_1_Watchdog" + ], + "itemTranslation": { + "avail": "Machine Available", + "rstat": "Execution Mode", + "mode": "Controller Mode", + "ncprog": "Program Name", + "tomes_13_good_prod": "Pezzi Prodotta", + "tomach_6_quantity": "Qta Richiesta", + "fdovrd": "PATH FEED OVERRIDE", + "rovrd": "PATH RAPID OVERRIDE" + }, + "paramsEndThresh": { + "InvDDone": 50 + }, + "mMapWrite": { + "setPzComm": { + "name": "setPzComm", + "description": "Qty", + "tipoMem": "Int", + "memAddr": "ns=4;s=tomach_6_quantity", + "index": 0, + "size": 4 + }, + "setComm": { + "name": "setComm", + "description": "Commessa", + "tipoMem": "String", + "memAddr": "ns=4;s=tomach_4_prod_order", + "index": 0, + "size": 24 + }, + "setArt": { + "name": "setArt", + "description": "Articolo", + "tipoMem": "String", + "memAddr": "ns=4;s=tomach_3_code_die", + "index": 0, + "size": 24 + } + }, + "subscribedItems": [ + "ns=4;s=tomes_1_Watchdog", + "ns=4;s=tomes_2_mach_on", + "ns=4;s=tomes_3_setup", + "ns=4;s=tomes_4_impulse", + "ns=4;s=tomes_5_autom", + "ns=4;s=tomes_6_manual", + "ns=4;s=tomes_7_alarm", + "ns=4;s=tomes_8_warning", + "ns=4;s=tomes_10_cycle_life", + "ns=4;s=tomes_11_ack_new_order", + "ns=4;s=tomes_13_good_prod", + "ns=4;s=tomes_14_bad_prod_calipso", + "ns=4;s=tomes_15_bad_prod_startup", + "ns=4;s=tomes_16_bad_prod_stop", + "ns=4;s=tomes_17_partial_prod", + "ns=4;s=tomes_18_total_prod", + "ns=4;s=tomes_20_code_die", + "ns=4;s=tomes_21_order", + "ns=4;s=tomach_1_watchdog", + "ns=4;s=tomach_2_new_prod", + "ns=4;s=tomach_3_code_die", + "ns=4;s=tomach_4_prod_order", + "ns=4;s=tomach_6_quantity" + ], + "WatchDog": { + "IsEnabled": true, + "MemConfRead": "ns=4;s=tomes_1_Watchdog", + "MemConfWrite": "ns=4;s=tomach_1_watchdog", + "MaxVal": 9999 + }, + "SetupConf": { + "SetupMode": "MECOLPRESS", + "EnableAdvSetup": false, + "checkParList": { + "tomach_3_code_die": "tomes_20_code_die", + "tomach_4_prod_order": "tomes_21_order" + }, + "writeParAction": [ + { + "TargetParam": "ns=4;s=tomach_2_new_prod", + "TargetValEqual": 0, + "TargetValNotEqual": 1, + "DisablePzCountNotEqual": true + } + ] + } +} \ No newline at end of file diff --git a/IOB-WIN-NEXT/IobOpc/OpcUaKpw.cs b/IOB-WIN-NEXT/IobOpc/OpcUaKpw.cs index 80588e68..aa5fad74 100644 --- a/IOB-WIN-NEXT/IobOpc/OpcUaKpw.cs +++ b/IOB-WIN-NEXT/IobOpc/OpcUaKpw.cs @@ -197,7 +197,7 @@ namespace IOB_WIN_NEXT.IobOpc { B_input += (1 << 7); } - // se ho emergenza premuta --> emergenza! + // se ho warmp up segnalo if (isWarmUpCoolDown) { B_input += (1 << 6);