Ancora update conf Jetco (DA VERIFICARE?!?)

This commit is contained in:
Samuele E. Locatelli
2019-10-05 12:07:49 +02:00
parent 5263674a3d
commit cb5874a8e1
13 changed files with 19337 additions and 3 deletions
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -59,7 +59,7 @@ PZCOUNT_MODE=STD.DB700.DBW22
;PZ_DONE_MADDR=1604
;PZ_GTOT_MADDR=1605
ENABLE_PZ_RESET=TRUE
ENABLE_PZ_RESET_stopSetup=TRUE
ENABLE_PZ_RESET_stopSetup=FALSE
[BRANCH]
NAME=develop
+62
View File
@@ -0,0 +1,62 @@
;Configurazione IOB-WIN
[IOB]
;Complessore Atlas Copco
CNCTYPE=WebPageScrap
PING_MS_TIMEOUT=500
[MACHINE]
VENDOR=Atlas Copco
MODEL=GA18VP_13
[CNC]
IP=192.168.1.55
[SERVER]
MPIP=http://192.168.1.7
MPURL=/MP/IO
CMDBASE=/IOB/input/
CMDFLOG=/IOB/flog/
CMDALIVE=/IOB
CMDENABLED=/IOB/enabled/
CMDADV1=?valore=
CMDREBO=/sendReboot.aspx?idxMacchina=
[MEMORY]
ADDR_READ=DB550.DBB0
ADDR_WRITE=DB701.DBB0
SIZE_READ=1
SIZE_WRITE=0
;BIT0=CONN
BIT1=DB550.DBB1
;BIT2=PZCOUNT.STD.DB700.DBW22
BIT3=DB550.DBB3
BIT4=DB550.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]
;PZCOUNT_MODE=STD.[PAR/MEM].info|BIT.indice
; attenzione memoria sempre base BYTE (1604 DW --> 6416...)
;PZCOUNT_MODE=STD.DB550.DBDW0
PZCOUNT_MODE=NONE
DISABLE_PZCOUNT=TRUE
ENABLE_DYN_DATA=TRUE
FORCE_DYN_DATA=TRUE
; CONF variabili da recuperare in WebPage (stato macchina, contatori, variabili, ...)
LUT_CONF=3018.json
[BRANCH]
NAME=master
+66
View File
@@ -0,0 +1,66 @@
{
"SrvData": {
"baseUri": "http://192.168.1.55/"
},
"DynData": [
{
"key": "analoginputsr0c1",
"val": "analoginputsr0c2",
"unit": "bar",
"func": "CHANGE",
"speriod": 3600
},
{
"key": "ANALOGINPUTSR1C1",
"val": "ANALOGINPUTSR1C2",
"unit": "°C",
"func": "CHANGE",
"sPeriod": 3600
},
{
"key": "analoginputsr2c1",
"val": "analoginputsr2c2",
"unit": "°c",
"func": "CHANGE",
"speriod": 3600
},
{
"key": "countersr0c1",
"val": "countersr0c2",
"unit": "ore",
"func": "CHANGE",
"speriod": 3600
},
{
"key": "countersr2c1",
"val": "countersr2c2",
"unit": "#",
"func": "CHANGE",
"speriod": 3600
},
{
"key": "digitalinputsr0c1",
"val": "digitalinputsr0c2",
"unit": "enum",
"func": "CHANGE",
"speriod": 3600
}
],
"Status": [
{
"key": "MACHINESTATER0C1",
"name": "CURR_STATUS",
"val": "MACHINESTATER0C2",
"unit": "ENUM",
"func": "CHANGE",
"sPeriod": 1,
"codeMapping": {
"Riserva": "01",
"STATUS_2": "03",
"STATUS_3": "07",
"STATUS_4": "09",
"STATUS_5": "0F"
}
}
]
}
+62
View File
@@ -0,0 +1,62 @@
;Configurazione IOB-WIN
[IOB]
;Complessore Atlas Copco
CNCTYPE=WebPageScrap
PING_MS_TIMEOUT=500
[MACHINE]
VENDOR=Atlas Copco
MODEL=GA18VP_12
[CNC]
IP=192.168.1.56
[SERVER]
MPIP=http://192.168.1.7
MPURL=/MP/IO
CMDBASE=/IOB/input/
CMDFLOG=/IOB/flog/
CMDALIVE=/IOB
CMDENABLED=/IOB/enabled/
CMDADV1=?valore=
CMDREBO=/sendReboot.aspx?idxMacchina=
[MEMORY]
ADDR_READ=DB550.DBB0
ADDR_WRITE=DB701.DBB0
SIZE_READ=1
SIZE_WRITE=0
;BIT0=CONN
BIT1=DB550.DBB1
;BIT2=PZCOUNT.STD.DB700.DBW22
BIT3=DB550.DBB3
BIT4=DB550.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]
;PZCOUNT_MODE=STD.[PAR/MEM].info|BIT.indice
; attenzione memoria sempre base BYTE (1604 DW --> 6416...)
;PZCOUNT_MODE=STD.DB550.DBDW0
PZCOUNT_MODE=NONE
DISABLE_PZCOUNT=TRUE
ENABLE_DYN_DATA=TRUE
FORCE_DYN_DATA=TRUE
; CONF variabili da recuperare in WebPage (stato macchina, contatori, variabili, ...)
LUT_CONF=3018.json
[BRANCH]
NAME=master
+66
View File
@@ -0,0 +1,66 @@
{
"SrvData": {
"baseUri": "http://192.168.1.56/"
},
"DynData": [
{
"key": "analoginputsr0c1",
"val": "analoginputsr0c2",
"unit": "bar",
"func": "CHANGE",
"speriod": 3600
},
{
"key": "ANALOGINPUTSR1C1",
"val": "ANALOGINPUTSR1C2",
"unit": "°C",
"func": "CHANGE",
"sPeriod": 3600
},
{
"key": "analoginputsr2c1",
"val": "analoginputsr2c2",
"unit": "°c",
"func": "CHANGE",
"speriod": 3600
},
{
"key": "countersr0c1",
"val": "countersr0c2",
"unit": "ore",
"func": "CHANGE",
"speriod": 3600
},
{
"key": "countersr2c1",
"val": "countersr2c2",
"unit": "#",
"func": "CHANGE",
"speriod": 3600
},
{
"key": "digitalinputsr0c1",
"val": "digitalinputsr0c2",
"unit": "enum",
"func": "CHANGE",
"speriod": 3600
}
],
"Status": [
{
"key": "MACHINESTATER0C1",
"name": "CURR_STATUS",
"val": "MACHINESTATER0C2",
"unit": "ENUM",
"func": "CHANGE",
"sPeriod": 1,
"codeMapping": {
"Riserva": "01",
"STATUS_2": "03",
"STATUS_3": "07",
"STATUS_4": "09",
"STATUS_5": "0F"
}
}
]
}
@@ -0,0 +1,107 @@
<#
STEAMWARE - Rottoli GCarlo
Mod. 2019-02
.DESCRIPTION
Stoppa e disabilita Windows Update
#>
# Remove-Variable * -ErrorAction SilentlyContinue # pulisco variabili x ISE
# Set-ExecutionPolicy Unrestricted # per attivare l'esecuzione degli script
cls
# ----------------------------
# parametri per log errori
# ----------------------------
# path dello script ps1 mi serve a causa di problemi con lo schedulatore
if ( $MyInvocation.MyCommand.Path -ne $null ) {
# $scriptPath = split-path -parent $MyInvocation.MyCommand.Path
# file di Log
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition # path dello script ps1 mi serve a causa di problemi con lo schedulatore
$LogFile = (split-path -Leaf $MyInvocation.MyCommand.Definition).Replace('.ps1','_Log.txt')
$ErrlogFile = (split-path -Leaf $MyInvocation.MyCommand.Definition).Replace('.ps1','_ErrorLog.txt')
}
else {
CD
$scriptPath = "C:\Steamware"
$ErrlogFile = "DisableWU_ErrorLog.txt" # "$scriptPath\ErrLog_Log.txt" # se non lo voglio mettere = $null quindi posso usare una variabile
$LogFile = "DisableWU_log.txt"
}
$Date = (Get-Date).ToString("dd/MM/yyyy HH:mm:ss")
$FileCheck = $LogFile.Replace('_Log.txt','_Check_Log.txt')
# attivo il Transcript
Start-Transcript -path "$scriptPath\$LogFile" | Out-Null
$Date
# $scriptPath
$ErrlogFile
$LogFile
"-->> Eseguo Check Window Update"
$ServiceStatus = get-service -DisplayName 'Windows update' | SELECT DisplayName, Status, StartType
$ServiceStatus | Format-Table -HideTableHeaders
$Date >> "$scriptPath\$FileCheck"
$ServiceStatus | Format-Table -HideTableHeaders >> "$scriptPath\$FileCheck"
# ----------------------------
# ---- MAIN ------
# ----------------------------
TRY
{
if ($ServiceStatus.Status -ine "Stopped" -or $ServiceStatus.StartType -ine "Disabled") # riavvio il servizio
{
"-->> Eseguo Stop e Disabled Window Update"
get-service -DisplayName 'Windows update' | Stop-Service -ErrorAction Continue
get-service -DisplayName 'Windows update' | Set-Service -startuptype "disabled"
get-service -DisplayName 'Windows update' | SELECT DisplayName, Status, StartType | Out-Host
}
else
{
"-->> Servizio Window Update già disabilitato"
}
} # end TRY
# ==== GESTIONE ERRORI =====
CATCH [Exception]
{
# salvo errore
"CATCH Error at $((Get-Date).ToString("dd/MM/yyyy HH:mm:ss"))" >> "$scriptPath\$ErrlogFile"
$error[0]
Write-Output $Error[0] >> "$scriptPath\$ErrlogFile"
Write-Output '>> List Exception'
$err = $_.Exception
while ( $err.InnerException )
{
$err = $err.InnerException
Write-Output $err.Message # anche a video
Write-Output $err.Message >> "$scriptPath\$ErrlogFile"
}
}
# ==== STEP FINALE - sempre eseguito =====
FINALLY
{
"END execute at : $((Get-Date).ToString("dd/MM/yyyy HH:mm:ss"))" | Out-Host
# Stop capturing output
Stop-Transcript
}
+3
View File
@@ -0,0 +1,3 @@
Cartella condivisa per COPIA MASTER INI delle macchine mini PC x IOB
Copiare delle macchine INI qui e da qui dai MINI PC
+62
View File
@@ -0,0 +1,62 @@
;Configurazione IOB-WIN
[IOB]
;Complessore Atlas Copco
CNCTYPE=WebPageScrap
PING_MS_TIMEOUT=500
[MACHINE]
VENDOR=Atlas Copco
MODEL=GA18VP_12
[CNC]
IP=192.168.1.56
[SERVER]
MPIP=http://192.168.1.7
MPURL=/MP/IO
CMDBASE=/IOB/input/
CMDFLOG=/IOB/flog/
CMDALIVE=/IOB
CMDENABLED=/IOB/enabled/
CMDADV1=?valore=
CMDREBO=/sendReboot.aspx?idxMacchina=
[MEMORY]
ADDR_READ=DB550.DBB0
ADDR_WRITE=DB701.DBB0
SIZE_READ=1
SIZE_WRITE=0
;BIT0=CONN
BIT1=DB550.DBB1
;BIT2=PZCOUNT.STD.DB700.DBW22
BIT3=DB550.DBB3
BIT4=DB550.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]
;PZCOUNT_MODE=STD.[PAR/MEM].info|BIT.indice
; attenzione memoria sempre base BYTE (1604 DW --> 6416...)
;PZCOUNT_MODE=STD.DB550.DBDW0
PZCOUNT_MODE=NONE
DISABLE_PZCOUNT=TRUE
ENABLE_DYN_DATA=TRUE
FORCE_DYN_DATA=TRUE
; CONF variabili da recuperare in WebPage (stato macchina, contatori, variabili, ...)
LUT_CONF=3018.json
[BRANCH]
NAME=master
+66
View File
@@ -0,0 +1,66 @@
{
"SrvData": {
"baseUri": "http://192.168.1.56/"
},
"DynData": [
{
"key": "analoginputsr0c1",
"val": "analoginputsr0c2",
"unit": "bar",
"func": "CHANGE",
"speriod": 3600
},
{
"key": "ANALOGINPUTSR1C1",
"val": "ANALOGINPUTSR1C2",
"unit": "°C",
"func": "CHANGE",
"sPeriod": 3600
},
{
"key": "analoginputsr2c1",
"val": "analoginputsr2c2",
"unit": "°c",
"func": "CHANGE",
"speriod": 3600
},
{
"key": "countersr0c1",
"val": "countersr0c2",
"unit": "ore",
"func": "CHANGE",
"speriod": 3600
},
{
"key": "countersr2c1",
"val": "countersr2c2",
"unit": "#",
"func": "CHANGE",
"speriod": 3600
},
{
"key": "digitalinputsr0c1",
"val": "digitalinputsr0c2",
"unit": "enum",
"func": "CHANGE",
"speriod": 3600
}
],
"Status": [
{
"key": "MACHINESTATER0C1",
"name": "CURR_STATUS",
"val": "MACHINESTATER0C2",
"unit": "ENUM",
"func": "CHANGE",
"sPeriod": 1,
"codeMapping": {
"Riserva": "01",
"STATUS_2": "03",
"STATUS_3": "07",
"STATUS_4": "09",
"STATUS_5": "0F"
}
}
]
}
+2 -1
View File
@@ -16,7 +16,8 @@ CMDIOB2CALL=/IOB/getIob2call?GWIP=
[IOB]
;--- TEST sul campo
;STARTLIST=VL24
STARTLIST=3020
STARTLIST=3018,3019
;STARTLIST=3020
;STARTLIST=INTERCL_01
;STARTLIST=WPS,WPS
;STARTLIST=WPS
+9 -1
View File
@@ -207,7 +207,15 @@
<None Include="DATA\CONF\3015.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="DATA\CONF\3020.ini" />
<None Include="DATA\CONF\3019.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="DATA\CONF\3019.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="DATA\CONF\3020.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="DATA\CONF\INTERCL_01.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>