inizio testing PLC SIEMENS x punzonatrice

This commit is contained in:
Samuele E. Locatelli
2018-11-27 10:11:04 +01:00
parent a8a647ff31
commit aa55c79979
7 changed files with 1284 additions and 23 deletions
+1 -1
View File
@@ -632,7 +632,7 @@ namespace IOB_WIN
case tipoAdapter.SIEMENS:
iobObj = new IobSiemens(this, IOBConf);
start.Enabled = true;
break;
break;
case tipoAdapter.SIEMENS_TORRI:
iobObj = new IobSiemensTorri(this, IOBConf);
start.Enabled = true;
+8 -7
View File
@@ -4,20 +4,21 @@
NAME=develop
[SERVER]
MPIP=192.168.2.252
;MPIP=10.74.82.219
;MPIP=192.168.2.252
MPIP=10.74.82.219
;MPIP=192.168.1.7
MPURL=/MP/IO
CMDREBO=/IOB/sendRebootGateway?GWIP=
CMDIOB2CALL=/IOB/getIob2call?GWIP=
[IOB]
; OSAI
STARTLIST=OSAI
; KAWASAKI
;--- OSAI ---
;STARTLIST=OSAI
;--- KAWASAKI ---
;STARTLIST=4000
; SIEMENS TORRI
;--- PUNZ SIEMENS ---
STARTLIST=SIEMENS
;--- SIEMENS TORRI ---
;STARTLIST=3013
MAXCNC=4
+63
View File
@@ -0,0 +1,63 @@
;Configurazione IOB-WIN
[IOB]
CNCTYPE=SIEMENS
PING_MS_TIMEOUT=500
[MACHINE]
VENDOR=Tecnomeccanica
MODEL=Punzonatrice 140.000
[CNC]
; Siemens (Tecnomeccanica)
IP=192.168.1.55
CPUTYPE=S71200
RACK=0
SLOT=2
[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=DB15.DBB0
ADDR_WRITE=DB16.DBB0
SIZE_READ=50
SIZE_WRITE=50
;BIT0=CONN
BIT1=DB15.DBB1
;BIT2=PZCOUNT.STD.DB700.DBW22
BIT3=DB15.DBB3
BIT4=DB15.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.DB15.DBW22
;PZ_CAD_MADDR=1602
;PZ_REQ_MADDR=1603
;PZ_DONE_MADDR=1604
;PZ_GTOT_MADDR=1605
[BRANCH]
NAME=develop
+3
View File
@@ -201,6 +201,9 @@
<None Include="DATA\CONF\3001.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="DATA\CONF\SIEMENS.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="DATA\CONF\3013.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
+1178 -5
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -44,7 +44,7 @@ namespace IOB_WIN
/// <summary>
/// parametri di connessione
/// </summary>
protected connParamS7Torri parametri;
protected connParamS7 parametri;
/// <summary>
/// Variabile x salvataggio iobConf locale
/// </summary>
@@ -178,7 +178,7 @@ namespace IOB_WIN
// init conf
_IOBConf = IOBConf;
// inizializzo parametri...
parametri = new connParamS7Torri()
parametri = new connParamS7()
{
ipAdrr = "127.0.0.1",
tipoCpu = CpuType.S7200,
+29 -8
View File
@@ -3,25 +3,46 @@
namespace IOB_WIN
{
/// <summary>
/// Implementazione classe connessione SIEMENS con S7.net
/// Implementazione classe connessione SIEMENS con S7.net,
/// comprensiva dei parametri delle aree di memoria
/// </summary>
public class connParamS7
{
/// <summary>
/// Indirizzo IP del PLC
/// </summary>
public string ipAdrr = "";
/// <summary>
/// Tipo CPU Siemens
/// </summary>
public CpuType tipoCpu = CpuType.S7300;
/// <summary>
/// Slot comunicazione
/// </summary>
public short slot = 0;
/// <summary>
/// Rack comunicazione
/// </summary>
public short rack = 0;
/// <summary>
/// Timeout ping
/// </summary>
public int pingMsTimeout = 250;
}
/// <summary>
/// Configurazione specifiche memoria x S7 Torri
/// </summary>
public class connParamS7Torri : connParamS7
{
/// <summary>
/// Base area x lettura
/// </summary>
public string memAddrRead = "";
/// <summary>
/// Base area x scrittura
/// </summary>
public string memAddrWrite = "";
/// <summary>
/// Size memoria lettura
/// </summary>
public int memSizeRead = 0;
/// <summary>
/// Size memoria scrittura
/// </summary>
public int memSizeWrite = 0;
}
}