Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -1072,133 +1072,7 @@ Retry: nRetry += 1
|
||||
End Function
|
||||
|
||||
#If False Then
|
||||
|
||||
Public Function getPathGCode1Shot() As Focas1.ODBGCD
|
||||
' RIFERIMENTO:
|
||||
' C:\Users\samuele\Documents\FOCAS A02B-0207-K737_04.20\Document\SpecE\Misc\cnc_rdgcode.htm
|
||||
|
||||
Dim nPathIdx As Integer
|
||||
Dim nNumAxisRead As Integer
|
||||
Dim nReturn As Integer
|
||||
|
||||
Dim actGCode As Focas1.ODBGCD
|
||||
' inizializzo
|
||||
actGCode = New Focas1.ODBGCD
|
||||
|
||||
'leggo il numero del processo attivo
|
||||
nPathIdx = GetActivePath()
|
||||
'leggo num max assi dal cn
|
||||
nNumAxisRead = Focas1.MAX_AXIS
|
||||
|
||||
If Is30Series Then
|
||||
|
||||
' leggo tutto!!! 0-27 (28 elementi)
|
||||
nReturn = Focas1.cnc_rdgcode(nLibHandle(nPathIdx), -2, 1, 4, actGCode)
|
||||
|
||||
If F_CheckRetError_Cnc(nReturn, "cnc_rdgcode RefreshPathGCode CNC.FANUC.CMS_CncLib") Then
|
||||
Throw New CmsNcException("ERR cnc_rdgcode RefreshPathGCode CNC.FANUC.CMS_CncLib")
|
||||
End If
|
||||
End If
|
||||
|
||||
Return actGCode
|
||||
|
||||
End Function
|
||||
#End If
|
||||
|
||||
#If False Then
|
||||
|
||||
Public Function getAllAxisLoad() As Focas1.ODBSVLOAD
|
||||
' RIFERIMENTO:
|
||||
' C:\Users\samuele\Documents\FOCAS A02B-0207-K737_04.20\Document\SpecE\Position\cnc_rdsvmeter.htm
|
||||
|
||||
Dim nPathIdx As Integer
|
||||
Dim nNumAxisRead As Integer
|
||||
Dim nReturn As Integer
|
||||
|
||||
Dim caricoAssi As Focas1.ODBSVLOAD
|
||||
|
||||
'leggo il numero del processo attivo
|
||||
nPathIdx = GetActivePath()
|
||||
'leggo num max assi dal cn
|
||||
nNumAxisRead = Focas1.MAX_AXIS
|
||||
|
||||
If Is30Series Then
|
||||
|
||||
' leggo tutto!!!
|
||||
nReturn = Focas1.cnc_rdsvmeter(nLibHandle(nPathIdx), nNumAxisRead, caricoAssi)
|
||||
|
||||
If F_CheckRetError_Cnc(nReturn, "cnc_rdsvmeter RefreshAxisMeter CNC.FANUC.CMS_CncLib") Then
|
||||
Throw New CmsNcException("ERR cnc_rdsvmeter RefreshAxisMeter CNC.FANUC.CMS_CncLib")
|
||||
End If
|
||||
End If
|
||||
|
||||
Return caricoAssi
|
||||
|
||||
End Function
|
||||
|
||||
Public Function getGlobalFeedrate() As Focas1.ODBACT
|
||||
' RIFERIMENTO:
|
||||
' C:\Users\samuele\Documents\FOCAS A02B-0207-K737_04.20\Document\SpecE\Position\cnc_actf.htm
|
||||
|
||||
Dim nPathIdx As Integer
|
||||
Dim nNumAxisRead As Integer
|
||||
Dim nReturn As Integer
|
||||
|
||||
Dim feedData As Focas1.ODBACT
|
||||
' inizializzo
|
||||
feedData = New Focas1.ODBACT
|
||||
|
||||
'leggo il numero del processo attivo
|
||||
nPathIdx = GetActivePath()
|
||||
'leggo num max assi dal cn
|
||||
nNumAxisRead = Focas1.MAX_AXIS
|
||||
|
||||
If Is30Series Then
|
||||
|
||||
' leggo feed globale
|
||||
nReturn = Focas1.cnc_actf(nLibHandle(nPathIdx), feedData)
|
||||
|
||||
If F_CheckRetError_Cnc(nReturn, "cnc_actf RefreshActFeedRate CNC.FANUC.CMS_CncLib") Then
|
||||
Throw New CmsNcException("ERR cnc_actf RefreshActFeedRate CNC.FANUC.CMS_CncLib")
|
||||
End If
|
||||
End If
|
||||
|
||||
Return feedData
|
||||
|
||||
End Function
|
||||
|
||||
Public Function getSpindleLoad() As Focas1.ODBSPN
|
||||
' RIFERIMENTO:
|
||||
' C:\Users\samuele\Documents\FOCAS A02B-0207-K737_04.20\Document\SpecE\Position\cnc_rdspload.htm
|
||||
' RICHIEDE DRIVER ESTESO!!! NON VA!!!
|
||||
|
||||
Dim nPathIdx As Integer
|
||||
Dim nNumAxisRead As Integer
|
||||
Dim nReturn As Integer
|
||||
|
||||
Dim allData As Focas1.ODBSPN
|
||||
' inizializzo
|
||||
allData = New Focas1.ODBSPN
|
||||
|
||||
'leggo il numero del processo attivo
|
||||
nPathIdx = GetActivePath()
|
||||
'leggo num max assi dal cn
|
||||
nNumAxisRead = Focas1.MAX_AXIS
|
||||
|
||||
If Is30Series Then
|
||||
|
||||
' leggo feed globale
|
||||
nReturn = Focas1.cnc_rdspload(nLibHandle(nPathIdx), -1, allData)
|
||||
|
||||
If F_CheckRetError_Cnc(nReturn, "cnc_rdspload RefreshAllSpindleLoad CNC.FANUC.CMS_CncLib") Then
|
||||
Throw New CmsNcException("ERR cnc_rdspload RefreshAllSpindleLoad CNC.FANUC.CMS_CncLib")
|
||||
End If
|
||||
End If
|
||||
|
||||
Return allData
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
Public Function getCncAlarm() As Focas1.ODBALMMSG2
|
||||
' RIFERIMENTO:
|
||||
@@ -1269,34 +1143,7 @@ Retry: nRetry += 1
|
||||
|
||||
End Function
|
||||
|
||||
Public Function getSpindleSpeed() As Focas1.ODBSPEED
|
||||
' RIFERIMENTO:
|
||||
' C:\Users\samuele\Documents\FOCAS A02B-0207-K737_04.20\Document\SpecE\Position\cnc_rdspeed.htm
|
||||
|
||||
Dim nPathIdx As Integer
|
||||
Dim nNumAxisRead As Integer
|
||||
Dim nReturn As Integer
|
||||
|
||||
Dim speedAssi As Focas1.ODBSPEED
|
||||
|
||||
'leggo il numero del processo attivo
|
||||
nPathIdx = GetActivePath()
|
||||
'leggo num max assi dal cn
|
||||
nNumAxisRead = Focas1.MAX_AXIS
|
||||
|
||||
If Is30Series Then
|
||||
|
||||
' leggo tutto!!!
|
||||
nReturn = Focas1.cnc_rdspeed(nLibHandle(nPathIdx), -1, speedAssi)
|
||||
|
||||
If F_CheckRetError_Cnc(nReturn, "cnc_rdspeed RefreshAxisSpeed CNC.FANUC.CMS_CncLib") Then
|
||||
Throw New CmsNcException("ERR cnc_rdspeed RefreshAxisSpeed CNC.FANUC.CMS_CncLib")
|
||||
End If
|
||||
End If
|
||||
|
||||
Return speedAssi
|
||||
|
||||
End Function
|
||||
|
||||
#End If
|
||||
|
||||
#End Region
|
||||
|
||||
@@ -12,6 +12,9 @@ Namespace CNC
|
||||
|
||||
Private m_DataSvcRW As DataSvc
|
||||
Private m_DriveSVC As DrivesSvc
|
||||
Private m_AlarmService As AlarmSvc
|
||||
Private m_AlarmGuid As System.Guid
|
||||
Private currAlarms As Alarm()
|
||||
|
||||
Private itemRead() As Item
|
||||
Private itemWrite As Item
|
||||
@@ -60,6 +63,9 @@ Namespace CNC
|
||||
Try
|
||||
m_DataSvcRW = New DataSvc
|
||||
m_DriveSVC = New DrivesSvc
|
||||
m_AlarmService = New AlarmSvc("eng")
|
||||
' sottoscrivo allarmi...
|
||||
m_AlarmGuid = m_AlarmService.Subscribe(New AlarmListChanged(AddressOf AlarmList))
|
||||
|
||||
Catch ex As System.IO.FileNotFoundException
|
||||
' intercetta l'exception se non lanciato sopra l'hmi
|
||||
@@ -931,13 +937,13 @@ Namespace CNC
|
||||
''' </summary>
|
||||
Public tabFamUt As UShort()
|
||||
''' <summary>
|
||||
''' Tabella TIPO Vita Residua Famiglie Utensili (DB253.DBW1900)
|
||||
''' Tabella TIPO Vita Residua Famiglie Utensili (DB253.DBB1900)
|
||||
''' </summary>
|
||||
Public tabTipoVitaRes As UShort()
|
||||
Public tabTipoVitaRes As Byte()
|
||||
''' <summary>
|
||||
''' Tabella Vita Residua Famiglie Utensili (DB253.DBW4300)
|
||||
''' Tabella Vita Residua Famiglie Utensili (DB253.DBD4300)
|
||||
''' </summary>
|
||||
Public tabVitaRes As UShort()
|
||||
Public tabVitaRes As UInt32()
|
||||
|
||||
End Structure
|
||||
|
||||
@@ -949,10 +955,11 @@ Namespace CNC
|
||||
' RIFERIMENTO:
|
||||
' txt Giuseppe
|
||||
|
||||
ReDim itemRead(2)
|
||||
ReDim itemRead(3)
|
||||
itemRead(0) = New Item("DB241.DBD0:[16]") 'Posizione attuale
|
||||
itemRead(1) = New Item("DB254.DBW140:[20]") 'Speed effettiva
|
||||
itemRead(2) = New Item("DB254.DBB180:[20]") 'Carico effettivo
|
||||
itemRead(3) = New Item("/Channel/MachineAxis/toolBaseDistToGo[u1,1, 16]")
|
||||
'itemRead(3) = New Item("DB241.DBD0:[16]") 'Posizione Target !!!FARE!!! è altra variabile?!? AA_IM
|
||||
|
||||
Do
|
||||
@@ -972,7 +979,7 @@ Namespace CNC
|
||||
For i As Integer = 0 To 15
|
||||
'datiAssi(i).PosAct = itemRead(0).Value(i)
|
||||
datiAssi(i).PosAct = UIntegerToSingle(itemRead(0).Value(i))
|
||||
'datiAssi(i).PosTgt = UIntegerToSingle(itemRead(3).Value(i))
|
||||
datiAssi(i).PosTgt = Convert.ToSingle(itemRead(3).Value(i))
|
||||
Next i
|
||||
For i As Integer = 0 To 19
|
||||
datiAssi(i).Speed = UIntegerToSingle(itemRead(1).Value(i))
|
||||
@@ -997,7 +1004,7 @@ Namespace CNC
|
||||
itemRead(1) = New Item("DB253.DBW2500:[" & numVal & "]") 'tabUt_UT
|
||||
itemRead(2) = New Item("DB253.DBW2900:[" & numVal & "]") 'IdFamigliaUt
|
||||
itemRead(3) = New Item("DB253.DBW100:[" & numVal & "]") 'tabFamUt
|
||||
itemRead(4) = New Item("DB253.DBW1900:[" & numVal & "]") 'tabTipoVitaRes
|
||||
itemRead(4) = New Item("DB253.DBB1900:[" & numVal & "]") 'tabTipoVitaRes
|
||||
itemRead(5) = New Item("DB253.DBD4300:[" & numVal & "]") 'tabVitaRes
|
||||
|
||||
Do
|
||||
@@ -1018,8 +1025,8 @@ Namespace CNC
|
||||
Dim _tabUt_UT(numVal - 1) As UShort
|
||||
Dim _tabIdFamUt(numVal - 1) As UShort
|
||||
Dim _tabFamUt(numVal - 1) As UShort
|
||||
Dim _tabTipoVitaRes(numVal - 1) As UShort
|
||||
Dim _tabVitaRes(numVal - 1) As UShort
|
||||
Dim _tabTipoVitaRes(numVal - 1) As Byte
|
||||
Dim _tabVitaRes(numVal - 1) As UInt32
|
||||
|
||||
' faccio copia valori!
|
||||
For i As Integer = 0 To numUt - 1
|
||||
@@ -1059,6 +1066,78 @@ Namespace CNC
|
||||
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' recupera l'array dei codici G attivi
|
||||
''' </summary>
|
||||
''' <param name="maxProc"></param>
|
||||
''' <param name="GCodeCurr">Vettore codici attivi correnti</param>
|
||||
''' <returns></returns>
|
||||
Public Function getPathGCodeMod(maxProc As Integer, ByRef GCodeCurr As String(,)) As Boolean
|
||||
' RIFERIMENTO:
|
||||
' SynumerikOperate_net, pg 52
|
||||
' Parameter manual NC, pg 401
|
||||
|
||||
' preparo memorie
|
||||
Dim maxGruppi As Int16
|
||||
maxGruppi = 64
|
||||
ReDim itemRead(maxProc - 1)
|
||||
For i As Integer = 0 To maxProc - 1
|
||||
itemRead(i) = New Item("/Channel/SelectedFunctions/ncFktAct[u" & i + 1 & ",1,#" & maxGruppi & "]") ' leggo TUTTI i gruppi...
|
||||
' verificare sintassi...[u1,1,64] al posto di [u1,1,#64]
|
||||
'itemRead(i) = New Item("/Channel/SelectedFunctions/ncFktAct[u" & i + 1 & ",1," & maxGruppi & "]") ' leggo TUTTI i gruppi...
|
||||
Next i
|
||||
|
||||
'lettura
|
||||
Do
|
||||
Try
|
||||
m_DataSvcRW.Read(itemRead)
|
||||
Exit Do
|
||||
Catch ex As DataSvcBusyException
|
||||
Debug.Print(ex.Message)
|
||||
Catch ex As DataSvcException
|
||||
Throw New CmsNcException("ERR GetStaticData CNC.SIEMENS DataSvcException", ex)
|
||||
End Try
|
||||
Loop
|
||||
|
||||
' faccio copia valori!
|
||||
For i As Integer = 0 To maxGruppi - 1
|
||||
For j As Integer = 0 To maxProc - 1
|
||||
GCodeCurr(j, i) = itemRead(j).Value(i)
|
||||
Next j
|
||||
Next i
|
||||
|
||||
' chiudo!
|
||||
Return True
|
||||
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' procedura per risposta alla segnalazione di allarmi...
|
||||
''' </summary>
|
||||
''' <param name="guid"></param>
|
||||
''' <param name="alarms"></param>
|
||||
Public Sub AlarmList(guid As Guid, alarms() As Alarm)
|
||||
' RIFERIMENTO:
|
||||
' SynumerikOperate_Net, pg 101 --> 110 (NON serve verifica theread...)
|
||||
|
||||
' verifico di essere il "corretto responditore"...
|
||||
If (m_AlarmGuid.Equals(guid)) Then
|
||||
' salvo nel mio oggetto in memoria...
|
||||
currAlarms = alarms
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Public Function getCncAlarm() As Alarm()
|
||||
' RIFERIMENTO:
|
||||
' SynumerikOperate_Net, pg 101 --> 110
|
||||
|
||||
' restituisco vettore allarmi...
|
||||
Return currAlarms
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
|
||||
@@ -6,453 +6,453 @@ using System.Xml.Serialization;
|
||||
|
||||
namespace MTC_Adapter
|
||||
{
|
||||
#region -- AdapterConf Class --
|
||||
#region -- AdapterConf Class --
|
||||
|
||||
/// <summary>
|
||||
/// This Configuration class is basically just a set of
|
||||
/// properties with a couple of static methods to manage
|
||||
/// the serialization to and deserialization from a
|
||||
/// simple XML file.
|
||||
///
|
||||
/// ref: http://www.cambiaresearch.com/articles/33/how-can-i-easily-manage-an-xml-configuration-file-in-dotnet
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class AdapterConf
|
||||
{
|
||||
string sNomeAdapt;
|
||||
int nVers;
|
||||
double tContOreMaccOn;
|
||||
double tContOreMaccLav;
|
||||
double tContSlittaTast;
|
||||
int[] _ContGiriElettrom;
|
||||
float[] _ContKmMovAssi;
|
||||
tipoAdapter etipoAdapt;
|
||||
|
||||
element[] _VacuumPump;
|
||||
element[] _VacuumAct;
|
||||
element[] _Lubro;
|
||||
element[] _SlittaMag;
|
||||
element[] _ProtMag;
|
||||
element[] _Cooler;
|
||||
element[] _Press;
|
||||
element[] _Temp;
|
||||
element[] _Path;
|
||||
element[] _UnOp;
|
||||
element[] _Axis;
|
||||
element[] _MemArea;
|
||||
|
||||
/// <summary>
|
||||
/// This Configuration class is basically just a set of
|
||||
/// properties with a couple of static methods to manage
|
||||
/// the serialization to and deserialization from a
|
||||
/// simple XML file.
|
||||
///
|
||||
/// ref: http://www.cambiaresearch.com/articles/33/how-can-i-easily-manage-an-xml-configuration-file-in-dotnet
|
||||
/// init conf adapter
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class AdapterConf
|
||||
public AdapterConf()
|
||||
{
|
||||
string sNomeAdapt;
|
||||
int nVers;
|
||||
double tContOreMaccOn;
|
||||
double tContOreMaccLav;
|
||||
double tContSlittaTast;
|
||||
int[] _ContGiriElettrom;
|
||||
float[] _ContKmMovAssi;
|
||||
tipoAdapter etipoAdapt;
|
||||
|
||||
element[] _VacuumPump;
|
||||
element[] _VacuumAct;
|
||||
element[] _Lubro;
|
||||
element[] _SlittaMag;
|
||||
element[] _ProtMag;
|
||||
element[] _Cooler;
|
||||
element[] _Press;
|
||||
element[] _Temp;
|
||||
element[] _Path;
|
||||
element[] _UnOp;
|
||||
element[] _Axis;
|
||||
element[] _MemArea;
|
||||
|
||||
/// <summary>
|
||||
/// init conf adapter
|
||||
/// </summary>
|
||||
public AdapterConf()
|
||||
{
|
||||
sNomeAdapt = "";
|
||||
etipoAdapt = tipoAdapter.DEMO;
|
||||
}
|
||||
public int nVacuumPump
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (VacuumPump != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(VacuumPump.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nVacuumAct
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (VacuumAct != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(VacuumAct.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nLubro
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (Lubro != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(Lubro.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nSlittaMag
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (SlittaMag != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(SlittaMag.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nProtMag
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (ProtMag != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(ProtMag.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nCooler
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (Cooler != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(Cooler.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nPress
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (Press != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(Press.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nTemp
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (Temp != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(Temp.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nPath
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (Path != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(Path.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nUnOp
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (UnOp != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(UnOp.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nAxis
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (Axis != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(Axis.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nMemArea
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (MemArea != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(MemArea.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Serializzazione XML dell'oggetto conf dell'adapter
|
||||
/// </summary>
|
||||
/// <param name="file"></param>
|
||||
/// <param name="c"></param>
|
||||
public static void Serialize(string file, AdapterConf c)
|
||||
{
|
||||
// prima provo a creare il file vuoto...
|
||||
if (!File.Exists(file))
|
||||
{
|
||||
string dirPath = file.Substring(0, file.LastIndexOf('\\'));
|
||||
// verifico directory
|
||||
if (!Directory.Exists(dirPath))
|
||||
{
|
||||
Directory.CreateDirectory(dirPath);
|
||||
}
|
||||
}
|
||||
// salvo effettivamente file...
|
||||
System.Xml.Serialization.XmlSerializer xs = new System.Xml.Serialization.XmlSerializer(c.GetType());
|
||||
StreamWriter writer = File.CreateText(file);
|
||||
xs.Serialize(writer, c);
|
||||
writer.Flush();
|
||||
writer.Close();
|
||||
}
|
||||
/// <summary>
|
||||
/// deserializzazione oggetto conf adapter
|
||||
/// </summary>
|
||||
/// <param name="file"></param>
|
||||
/// <returns></returns>
|
||||
public static AdapterConf Deserialize(string file)
|
||||
{
|
||||
XmlSerializer xs = new XmlSerializer(typeof(AdapterConf));
|
||||
StreamReader reader = File.OpenText(file);
|
||||
AdapterConf c = (AdapterConf)xs.Deserialize(reader);
|
||||
reader.Close();
|
||||
return c;
|
||||
}
|
||||
/// <summary>
|
||||
/// restitusice forma XML grezza del file
|
||||
/// </summary>
|
||||
/// <param name="file"></param>
|
||||
/// <returns></returns>
|
||||
public static string rawXml(string file)
|
||||
{
|
||||
string answ = "";
|
||||
System.Xml.Serialization.XmlSerializer xs = new System.Xml.Serialization.XmlSerializer(typeof(AdapterConf));
|
||||
StreamReader reader = File.OpenText(file);
|
||||
answ = reader.ReadToEnd();
|
||||
reader.Close();
|
||||
return answ;
|
||||
}
|
||||
|
||||
public int Version
|
||||
{
|
||||
get { return nVers; }
|
||||
set { nVers = value; }
|
||||
}
|
||||
public string NomeAdapt
|
||||
{
|
||||
get { return sNomeAdapt; }
|
||||
set { sNomeAdapt = value; }
|
||||
}
|
||||
public tipoAdapter TipoAdapt
|
||||
{
|
||||
get { return etipoAdapt; }
|
||||
set { etipoAdapt = value; }
|
||||
}
|
||||
public double ContOreMaccOn
|
||||
{
|
||||
get { return tContOreMaccOn; }
|
||||
set { tContOreMaccOn = value; }
|
||||
}
|
||||
public double ContOreMaccLav
|
||||
{
|
||||
get { return tContOreMaccLav; }
|
||||
set { tContOreMaccLav = value; }
|
||||
}
|
||||
public double ContSlittaTast
|
||||
{
|
||||
get { return tContSlittaTast; }
|
||||
set { tContSlittaTast = value; }
|
||||
}
|
||||
public int[] ContGiriElettrom
|
||||
{
|
||||
get { return _ContGiriElettrom; }
|
||||
set { _ContGiriElettrom = value; }
|
||||
}
|
||||
public float[] ContKmMovAssi
|
||||
{
|
||||
get { return _ContKmMovAssi; }
|
||||
set { _ContKmMovAssi = value; }
|
||||
}
|
||||
public element[] VacuumPump
|
||||
{
|
||||
get { return _VacuumPump; }
|
||||
set { _VacuumPump = value; }
|
||||
}
|
||||
public element[] VacuumAct
|
||||
{
|
||||
get { return _VacuumAct; }
|
||||
set { _VacuumAct = value; }
|
||||
}
|
||||
public element[] Lubro
|
||||
{
|
||||
get { return _Lubro; }
|
||||
set { _Lubro = value; }
|
||||
}
|
||||
public element[] SlittaMag
|
||||
{
|
||||
get { return _SlittaMag; }
|
||||
set { _SlittaMag = value; }
|
||||
}
|
||||
public element[] ProtMag
|
||||
{
|
||||
get { return _ProtMag; }
|
||||
set { _ProtMag = value; }
|
||||
}
|
||||
public element[] Cooler
|
||||
{
|
||||
get { return _Cooler; }
|
||||
set { _Cooler = value; }
|
||||
}
|
||||
public element[] Press
|
||||
{
|
||||
get { return _Press; }
|
||||
set { _Press = value; }
|
||||
}
|
||||
public element[] Temp
|
||||
{
|
||||
get { return _Temp; }
|
||||
set { _Temp = value; }
|
||||
}
|
||||
public element[] Path
|
||||
{
|
||||
get { return _Path; }
|
||||
set { _Path = value; }
|
||||
}
|
||||
public element[] UnOp
|
||||
{
|
||||
get { return _UnOp; }
|
||||
set { _UnOp = value; }
|
||||
}
|
||||
public element[] Axis
|
||||
{
|
||||
get { return _Axis; }
|
||||
set { _Axis = value; }
|
||||
}
|
||||
public element[] MemArea
|
||||
{
|
||||
get { return _MemArea; }
|
||||
set { _MemArea = value; }
|
||||
}
|
||||
|
||||
sNomeAdapt = "";
|
||||
etipoAdapt = tipoAdapter.DEMO;
|
||||
}
|
||||
|
||||
|
||||
[Serializable]
|
||||
[XmlType(TypeName = "dataRef")]
|
||||
public struct DataRefItem<K, V>
|
||||
public int nVacuumPump
|
||||
{
|
||||
public K Key { get; set; }
|
||||
public V Value { get; set; }
|
||||
|
||||
public DataRefItem(K k, V v) : this() { Key = k; Value = v; }
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (VacuumPump != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(VacuumPump.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nVacuumAct
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (VacuumAct != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(VacuumAct.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nLubro
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (Lubro != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(Lubro.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nSlittaMag
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (SlittaMag != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(SlittaMag.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nProtMag
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (ProtMag != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(ProtMag.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nCooler
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (Cooler != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(Cooler.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nPress
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (Press != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(Press.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nTemp
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (Temp != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(Temp.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nPath
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (Path != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(Path.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nUnOp
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (UnOp != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(UnOp.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nAxis
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (Axis != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(Axis.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public int nMemArea
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (MemArea != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(MemArea.Length);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// classe elemento base in cui salvare i dati di conf x recupero dati adapters
|
||||
/// Serializzazione XML dell'oggetto conf dell'adapter
|
||||
/// </summary>
|
||||
public class element
|
||||
/// <param name="file"></param>
|
||||
/// <param name="c"></param>
|
||||
public static void Serialize(string file, AdapterConf c)
|
||||
{
|
||||
/// <summary>
|
||||
/// identificativo univoco x classe di elemento
|
||||
/// </summary>
|
||||
public string ident;
|
||||
/// <summary>
|
||||
/// Elenco riferimento dati x recupero (es posizioni memoria separate da #)
|
||||
/// </summary>
|
||||
public List<DataRefItem<string, string>> dataRefList;
|
||||
|
||||
/// <summary>
|
||||
/// init empty
|
||||
/// </summary>
|
||||
public element()
|
||||
// prima provo a creare il file vuoto...
|
||||
if (!File.Exists(file))
|
||||
{
|
||||
string dirPath = file.Substring(0, file.LastIndexOf('\\'));
|
||||
// verifico directory
|
||||
if (!Directory.Exists(dirPath))
|
||||
{
|
||||
ident = "";
|
||||
dataRefList = new List<DataRefItem<string, string>>();
|
||||
}
|
||||
/// <summary>
|
||||
/// init element con dati
|
||||
/// </summary>
|
||||
/// <param name="Idx">Identificativo univoco</param>
|
||||
/// <param name="DataRef">Parametri x recupero dati in forma dictionary</param>
|
||||
public element(string Idx, List<DataRefItem<string, string>> DataRef)
|
||||
{
|
||||
ident = Idx;
|
||||
dataRefList = DataRef;
|
||||
Directory.CreateDirectory(dirPath);
|
||||
}
|
||||
}
|
||||
// salvo effettivamente file...
|
||||
System.Xml.Serialization.XmlSerializer xs = new System.Xml.Serialization.XmlSerializer(c.GetType());
|
||||
StreamWriter writer = File.CreateText(file);
|
||||
xs.Serialize(writer, c);
|
||||
writer.Flush();
|
||||
writer.Close();
|
||||
}
|
||||
/// <summary>
|
||||
/// deserializzazione oggetto conf adapter
|
||||
/// </summary>
|
||||
/// <param name="file"></param>
|
||||
/// <returns></returns>
|
||||
public static AdapterConf Deserialize(string file)
|
||||
{
|
||||
XmlSerializer xs = new XmlSerializer(typeof(AdapterConf));
|
||||
StreamReader reader = File.OpenText(file);
|
||||
AdapterConf c = (AdapterConf)xs.Deserialize(reader);
|
||||
reader.Close();
|
||||
return c;
|
||||
}
|
||||
/// <summary>
|
||||
/// restitusice forma XML grezza del file
|
||||
/// </summary>
|
||||
/// <param name="file"></param>
|
||||
/// <returns></returns>
|
||||
public static string rawXml(string file)
|
||||
{
|
||||
string answ = "";
|
||||
System.Xml.Serialization.XmlSerializer xs = new System.Xml.Serialization.XmlSerializer(typeof(AdapterConf));
|
||||
StreamReader reader = File.OpenText(file);
|
||||
answ = reader.ReadToEnd();
|
||||
reader.Close();
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
public int Version
|
||||
{
|
||||
get { return nVers; }
|
||||
set { nVers = value; }
|
||||
}
|
||||
public string NomeAdapt
|
||||
{
|
||||
get { return sNomeAdapt; }
|
||||
set { sNomeAdapt = value; }
|
||||
}
|
||||
public tipoAdapter TipoAdapt
|
||||
{
|
||||
get { return etipoAdapt; }
|
||||
set { etipoAdapt = value; }
|
||||
}
|
||||
public double ContOreMaccOn
|
||||
{
|
||||
get { return tContOreMaccOn; }
|
||||
set { tContOreMaccOn = value; }
|
||||
}
|
||||
public double ContOreMaccLav
|
||||
{
|
||||
get { return tContOreMaccLav; }
|
||||
set { tContOreMaccLav = value; }
|
||||
}
|
||||
public double ContSlittaTast
|
||||
{
|
||||
get { return tContSlittaTast; }
|
||||
set { tContSlittaTast = value; }
|
||||
}
|
||||
public int[] ContGiriElettrom
|
||||
{
|
||||
get { return _ContGiriElettrom; }
|
||||
set { _ContGiriElettrom = value; }
|
||||
}
|
||||
public float[] ContKmMovAssi
|
||||
{
|
||||
get { return _ContKmMovAssi; }
|
||||
set { _ContKmMovAssi = value; }
|
||||
}
|
||||
public element[] VacuumPump
|
||||
{
|
||||
get { return _VacuumPump; }
|
||||
set { _VacuumPump = value; }
|
||||
}
|
||||
public element[] VacuumAct
|
||||
{
|
||||
get { return _VacuumAct; }
|
||||
set { _VacuumAct = value; }
|
||||
}
|
||||
public element[] Lubro
|
||||
{
|
||||
get { return _Lubro; }
|
||||
set { _Lubro = value; }
|
||||
}
|
||||
public element[] SlittaMag
|
||||
{
|
||||
get { return _SlittaMag; }
|
||||
set { _SlittaMag = value; }
|
||||
}
|
||||
public element[] ProtMag
|
||||
{
|
||||
get { return _ProtMag; }
|
||||
set { _ProtMag = value; }
|
||||
}
|
||||
public element[] Cooler
|
||||
{
|
||||
get { return _Cooler; }
|
||||
set { _Cooler = value; }
|
||||
}
|
||||
public element[] Press
|
||||
{
|
||||
get { return _Press; }
|
||||
set { _Press = value; }
|
||||
}
|
||||
public element[] Temp
|
||||
{
|
||||
get { return _Temp; }
|
||||
set { _Temp = value; }
|
||||
}
|
||||
public element[] Path
|
||||
{
|
||||
get { return _Path; }
|
||||
set { _Path = value; }
|
||||
}
|
||||
public element[] UnOp
|
||||
{
|
||||
get { return _UnOp; }
|
||||
set { _UnOp = value; }
|
||||
}
|
||||
public element[] Axis
|
||||
{
|
||||
get { return _Axis; }
|
||||
set { _Axis = value; }
|
||||
}
|
||||
public element[] MemArea
|
||||
{
|
||||
get { return _MemArea; }
|
||||
set { _MemArea = value; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
[Serializable]
|
||||
[XmlType(TypeName = "dataRef")]
|
||||
public struct DataRefItem<K, V>
|
||||
{
|
||||
public K Key { get; set; }
|
||||
public V Value { get; set; }
|
||||
|
||||
public DataRefItem(K k, V v) : this() { Key = k; Value = v; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// classe elemento base in cui salvare i dati di conf x recupero dati adapters
|
||||
/// </summary>
|
||||
public class element
|
||||
{
|
||||
/// <summary>
|
||||
/// identificativo univoco x classe di elemento
|
||||
/// </summary>
|
||||
public string ident;
|
||||
/// <summary>
|
||||
/// Elenco riferimento dati x recupero (es posizioni memoria separate da #)
|
||||
/// </summary>
|
||||
public List<DataRefItem<string, string>> dataRefList;
|
||||
|
||||
/// <summary>
|
||||
/// init empty
|
||||
/// </summary>
|
||||
public element()
|
||||
{
|
||||
ident = "";
|
||||
dataRefList = new List<DataRefItem<string, string>>();
|
||||
}
|
||||
/// <summary>
|
||||
/// init element con dati
|
||||
/// </summary>
|
||||
/// <param name="Idx">Identificativo univoco</param>
|
||||
/// <param name="DataRef">Parametri x recupero dati in forma dictionary</param>
|
||||
public element(string Idx, List<DataRefItem<string, string>> DataRef)
|
||||
{
|
||||
ident = Idx;
|
||||
dataRefList = DataRef;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
+1354
-1350
File diff suppressed because it is too large
Load Diff
@@ -713,6 +713,10 @@ namespace MTC_Adapter
|
||||
/// </summary>
|
||||
public uint[] currNumCambiUt;
|
||||
/// <summary>
|
||||
/// Vettore ATTUALE dei contatori GENERICI
|
||||
/// </summary>
|
||||
public uint[] currCounters;
|
||||
/// <summary>
|
||||
/// Vettore ATTUALE dei contatori del numero movimenti Slitta Magazzino
|
||||
/// </summary>
|
||||
public uint[] currSlittaMag;
|
||||
@@ -782,6 +786,10 @@ namespace MTC_Adapter
|
||||
/// </summary>
|
||||
public uint[] istNumCambiUt;
|
||||
/// <summary>
|
||||
/// Vettore ISTANTANEO dei contatori generici
|
||||
/// </summary>
|
||||
public uint[] istCounters;
|
||||
/// <summary>
|
||||
/// Vettore ISTANTANEO dei contatori del numero movimenti Slitta Magazzino
|
||||
/// </summary>
|
||||
public uint[] istSlittaMag;
|
||||
@@ -834,6 +842,10 @@ namespace MTC_Adapter
|
||||
/// </summary>
|
||||
public bool hasBigEndian = false;
|
||||
/// <summary>
|
||||
/// Verifica se siano stati già mostrati gli allarmi x debug...
|
||||
/// </summary>
|
||||
public bool alarmMsgDispl = true;
|
||||
/// <summary>
|
||||
/// dimensione massima vettore memorie UT
|
||||
/// </summary>
|
||||
public short numMemUt = 200;
|
||||
@@ -1033,6 +1045,10 @@ namespace MTC_Adapter
|
||||
/// </summary>
|
||||
public Event mOperator = new Event("OperatorId");
|
||||
/// <summary>
|
||||
/// Vettore CONTATORI generici
|
||||
/// </summary>
|
||||
public Event[] mCounters;
|
||||
/// <summary>
|
||||
/// Vettore EVENTS letti da area status
|
||||
/// </summary>
|
||||
public Event[] mStatusEvents;
|
||||
@@ -1157,6 +1173,16 @@ namespace MTC_Adapter
|
||||
mAdapter.AddDataItem(mUnkStatus);
|
||||
mAdapter.AddDataItem(mUnkStrobe);
|
||||
|
||||
#if false
|
||||
// contatori generici
|
||||
vettCounters = new ObjCount[adpConf.nCounters];
|
||||
for (int i = 0; i < adpConf.nCounters; i++)
|
||||
{
|
||||
vettCounters[i] = new ObjCount(adpConf.Counters[i]);
|
||||
mAdapter.AddDataItem(vettCounters[i].mCounter);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Aree memoria
|
||||
vettMemArea = new MemArea[adpConf.nMemArea];
|
||||
for (int i = 0; i < adpConf.nMemArea; i++)
|
||||
@@ -1385,6 +1411,7 @@ namespace MTC_Adapter
|
||||
// carico dati x Maintenance
|
||||
if (utils.CRB("verbose")) lg.Info("Inizio caricamento vettore variabili manutenzione gestite");
|
||||
int totRighe = 0;
|
||||
int numCounters = 0;
|
||||
string fileName = string.Format(@"{0}\{1}", utils.confDir, utils.CRS("CounterListFilePath"));
|
||||
string linea;
|
||||
totRighe = File.ReadLines(fileName).Count();
|
||||
@@ -1400,6 +1427,11 @@ namespace MTC_Adapter
|
||||
if (linea.Substring(0, 1) != "#")
|
||||
{
|
||||
maintData[numRiga] = decodeOtherData(linea, utils.CRC("testCharSep"), memPre, baseAddr, memSize);
|
||||
// se è un counter lo processo come tale..
|
||||
if (maintData[numRiga].varName.StartsWith("Counter_"))
|
||||
{
|
||||
numCounters++;
|
||||
}
|
||||
numRiga++;
|
||||
}
|
||||
}
|
||||
@@ -1409,6 +1441,22 @@ namespace MTC_Adapter
|
||||
Array.Resize<otherData>(ref maintData, numRiga);
|
||||
|
||||
if (utils.CRB("verbose")) lg.Info(string.Format("Fine caricamento vettore di {0} variabili manutenzione gestite", numRiga));
|
||||
|
||||
// ora inizializzo l'insieme degli events dei COUNTERS generici...
|
||||
mCounters = new Event[numCounters];
|
||||
currCounters = new uint[numCounters];
|
||||
istCounters = new uint[numCounters];
|
||||
int idx = 0;
|
||||
foreach (otherData item in maintData)
|
||||
{
|
||||
if (item.varName.StartsWith("Counter_"))
|
||||
{
|
||||
mCounters[idx] = new Event(item.varName);
|
||||
mAdapter.AddDataItem(mCounters[idx]);
|
||||
idx++;
|
||||
}
|
||||
}
|
||||
if (utils.CRB("verbose")) lg.Info(string.Format("inizializzato vettore di {0} MTC.EVENTS delle variabili CONTATORI generiche", numRiga));
|
||||
}
|
||||
/// <summary>
|
||||
/// Lettura file gestione dati analogici da PLC
|
||||
@@ -1693,10 +1741,16 @@ namespace MTC_Adapter
|
||||
currSlittaMag[i] = getStoredValUInt(string.Format("SlittaMagazzino_{0:00}_Count", i + 1));
|
||||
}
|
||||
|
||||
for (int i = 0; i < mCounters.Length; i++)
|
||||
{
|
||||
currCounters[i] = getStoredValUInt(string.Format("Counter_{0:000}", i + 1));
|
||||
}
|
||||
|
||||
for (int i = 0; i < currAdpConf.nProtMag; i++)
|
||||
{
|
||||
currProtMag[i] = getStoredValUInt(string.Format("ProtMagazzino_{0:00}_Count", i + 1));
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
@@ -2065,12 +2119,14 @@ namespace MTC_Adapter
|
||||
}
|
||||
}
|
||||
|
||||
private void resetDebugConsole()
|
||||
public void resetDebugConsole()
|
||||
{
|
||||
// resetto console debug...
|
||||
parentForm.dataMonitor_1 = "";
|
||||
parentForm.dataMonitor_2 = "";
|
||||
parentForm.dataMonitor_3 = "";
|
||||
// indico msg allarme NON inviati
|
||||
alarmMsgDispl = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -2100,7 +2156,7 @@ namespace MTC_Adapter
|
||||
sb2.AppendLine(string.Format("UT: ToolId {0} | VitaRes {1} | TipoVita {2} ", vettUnOp[i].mUnOpToolId.Value, vettUnOp[i].mUnOpVitaRes.Value, vettUnOp[i].mUnOpVitaResType.Value));
|
||||
}
|
||||
parentForm.dataMonitor_2 = sb2.ToString();
|
||||
|
||||
|
||||
// gestisco lettura dati status da PLC...
|
||||
getStatusDataFromPlc();
|
||||
// gestisco lettura dati analogici da PLC...
|
||||
@@ -3189,7 +3245,6 @@ namespace MTC_Adapter
|
||||
{
|
||||
// leggo 32bit alla volta...
|
||||
AlarmBlock = (StFlag32)BitConverter.ToUInt32(AlarmFlags, i * 4);
|
||||
|
||||
for (int j = 0; j < 32; j++)
|
||||
{
|
||||
// converto! e aggiungo allarmi sollevati al corretto controller allarmi...
|
||||
@@ -3287,6 +3342,20 @@ namespace MTC_Adapter
|
||||
{
|
||||
istSlittaTast = tabDatiMtz[i];
|
||||
}
|
||||
else if (maintData[i].varName.StartsWith("Counter_"))
|
||||
{
|
||||
try
|
||||
{
|
||||
numero = Convert.ToInt32(maintData[i].varName.Replace("Counter_", ""));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
if (numero > 0)
|
||||
{
|
||||
istCounters[numero - 1] = tabDatiMtz[i];
|
||||
}
|
||||
}
|
||||
else if (maintData[i].varName.StartsWith("Path_"))
|
||||
{
|
||||
if (maintData[i].varName.EndsWith("_PZ_TOT"))
|
||||
@@ -3296,8 +3365,7 @@ namespace MTC_Adapter
|
||||
numero = Convert.ToInt32(maintData[i].varName.Replace("Path_", "").Replace("_PZ_TOT", ""));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
{ }
|
||||
if (numero > 0)
|
||||
{
|
||||
vettPath[numero - 1].mPathPartCount.Value = tabDatiMtz[i];
|
||||
@@ -3538,6 +3606,7 @@ namespace MTC_Adapter
|
||||
needSave = procPzProd(needSave);
|
||||
needSave = procGiriTotUnOp(needSave);
|
||||
needSave = procNumCU(needSave);
|
||||
needSave = procCounters(needSave);
|
||||
needSave = procMovTotAssi(needSave);
|
||||
needSave = procAccTimeAssi(needSave);
|
||||
needSave = procNumInvAssi(needSave);
|
||||
@@ -4474,6 +4543,40 @@ namespace MTC_Adapter
|
||||
return needSave;
|
||||
}
|
||||
/// <summary>
|
||||
/// Processing delle variabili generiche Counters
|
||||
/// </summary>
|
||||
/// <param name="needSave"></param>
|
||||
/// <returns></returns>
|
||||
public bool procCounters(bool needSave)
|
||||
{
|
||||
uint delta = 0;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (int i = 0; i < mCounters.Length; i++)
|
||||
{
|
||||
delta = istCounters[i] - currCounters[i];
|
||||
// controllo delta < 50% max...
|
||||
if (delta < uint.MaxValue / 2)
|
||||
{
|
||||
//processo comunque sempre...
|
||||
uint contTot = updateValUIntByIncr(i, delta, "Counter_{0:000}");
|
||||
// passo valore totale all'adapter
|
||||
mCounters[i].Value = contTot;
|
||||
// controllo valore riferimento...
|
||||
if (delta > 0)
|
||||
{
|
||||
// segnalo necessità salvataggio!
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
currCounters[i] = istCounters[i];
|
||||
}
|
||||
sb.AppendLine(mCounters[i].ToString().Replace("|", " | "));
|
||||
}
|
||||
// salvo su maschera...
|
||||
parentForm.dataMonitor_2 += sb.ToString();
|
||||
return needSave;
|
||||
}
|
||||
/// <summary>
|
||||
/// Processing delle variabili sui componenti SlittaMag
|
||||
/// </summary>
|
||||
/// <param name="needSave"></param>
|
||||
|
||||
@@ -178,7 +178,6 @@ namespace MTC_Adapter
|
||||
/// <summary>
|
||||
/// Vettore degli allarmi CNC attivi
|
||||
/// </summary>
|
||||
//public CMSCncLib.OPENcontrol.MSGERROR allarmiCNC;
|
||||
public Dictionary<string, string> allarmiCNC = new Dictionary<string, string>();
|
||||
/// <summary>
|
||||
/// estende l'init della classe base...
|
||||
@@ -200,7 +199,7 @@ namespace MTC_Adapter
|
||||
vettGCodes_02 = new ushort[14];
|
||||
contChkGCod = utils.CRI("contChkGCod");
|
||||
|
||||
// è littel endian (NON serve conversione)
|
||||
// è little endian (NON serve conversione)
|
||||
hasBigEndian = false;
|
||||
|
||||
lg.Info("Start init Adapter OSAI all'IP {0}", utils.CRS("ipPLC"));
|
||||
@@ -912,7 +911,10 @@ namespace MTC_Adapter
|
||||
parentForm.commPlcActive = true;
|
||||
inizio = DateTime.Now;
|
||||
OSAI_ref.getPathGCodeMod(1, ref vettGCodes_01);
|
||||
OSAI_ref.getPathGCodeMod(2, ref vettGCodes_02);
|
||||
if (currAdpConf.nPath > 1)
|
||||
{
|
||||
OSAI_ref.getPathGCodeMod(2, ref vettGCodes_02);
|
||||
}
|
||||
if (utils.CRB("recTime")) TimingData.addResult("R-GCodModal", DateTime.Now.Subtract(inizio).Ticks);
|
||||
parentForm.commPlcActive = false;
|
||||
}
|
||||
@@ -920,7 +922,7 @@ namespace MTC_Adapter
|
||||
{
|
||||
contChkGCod--;
|
||||
}
|
||||
|
||||
|
||||
for (int i = 0; i < currAdpConf.nPath; i++)
|
||||
{
|
||||
// accodo dati path in DataMonitor...
|
||||
|
||||
@@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Siemens.Sinumerik.Operate.Services;
|
||||
|
||||
namespace MTC_Adapter
|
||||
{
|
||||
@@ -186,7 +187,7 @@ namespace MTC_Adapter
|
||||
/// <summary>
|
||||
/// Vettore degli allarmi CNC attivi
|
||||
/// </summary>
|
||||
public CMSCncLib.Focas1.ODBALMMSG2 allarmiCNC;
|
||||
public Alarm[] allarmiCNC;
|
||||
|
||||
/// <summary>
|
||||
/// estende l'init della classe base...
|
||||
@@ -202,7 +203,7 @@ namespace MTC_Adapter
|
||||
MemBlock_MST = new byte[46];
|
||||
// salto NON necessario!
|
||||
saltoMST = 0;
|
||||
// è littel endian (SERVE conversione)
|
||||
// è little endian (SERVE conversione)
|
||||
hasBigEndian = true;
|
||||
|
||||
lg.Info("Start init Adapter SIEMENS");
|
||||
@@ -614,47 +615,12 @@ namespace MTC_Adapter
|
||||
bool fatto = false;
|
||||
try
|
||||
{
|
||||
#if false
|
||||
// se ho allarmi li accodo...
|
||||
if (allNcData.lastncerror != 0)
|
||||
{
|
||||
|
||||
if (utils.CRI("loglevel") > 5)
|
||||
{
|
||||
lg.Info(string.Format("Allarmi CNC: {0} ", allNcData.lastncerror));
|
||||
}
|
||||
string alarmText = string.Format("CNC Alarm - Cod: {0}", allNcData.lastncerror);
|
||||
|
||||
// tolgo eventuali allarmi CNC...
|
||||
allarmiCNC.Clear();
|
||||
allarmiCNC.Add(allNcData.lastncerror.ToString(), alarmText);
|
||||
|
||||
//// 2017.05.09 gestione allarmi commentata
|
||||
//mAlarmCNC.Add(MTConnect.Condition.Level.FAULT, alarmText, allNcData.lastncerror.ToString(), "", "");
|
||||
//// mostro in form!
|
||||
//sb1.AppendLine(alarmText);
|
||||
//parentForm.dataMonitor_1 += sb1.ToString();
|
||||
|
||||
//// 2017.05.09 gestione allarmi commentata
|
||||
//// il codice è corretto (manca prima aprte codice + traduzione), se cerco di trovare oggett completo NON c'è, verificare con Andrea...
|
||||
//sb1.AppendLine(string.Format("Allarmi CNC: {0}", allNcData.lastncerror));
|
||||
|
||||
parentForm.commPlcActive = true;
|
||||
//inizio = DateTime.Now;
|
||||
//OSAI_ref.O_ReadCurrentErrorMsg(ref allarmiCNC);
|
||||
//if (utils.CRB("recTime")) TimingData.addResult("R-CNC-ERROR-MSG", DateTime.Now.Subtract(inizio).Ticks);
|
||||
//checkCNCAlarms();
|
||||
parentForm.commPlcActive = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
allarmiCNC.Clear();
|
||||
allarmiCNC = new Dictionary<string, string>();
|
||||
// 2017.05.09 gestione allarmi commentata
|
||||
//allarmiCNC = new CMSCncLib.OPENcontrol.MSGERROR();
|
||||
}
|
||||
fatto = true;
|
||||
#endif
|
||||
parentForm.commPlcActive = true;
|
||||
inizio = DateTime.Now;
|
||||
allarmiCNC = SIEMENS_ref.getCncAlarm();
|
||||
if (utils.CRB("recTime")) TimingData.addResult("R-CNC-ERROR-MSG", DateTime.Now.Subtract(inizio).Ticks);
|
||||
parentForm.commPlcActive = false;
|
||||
fatto = true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -765,36 +731,41 @@ namespace MTC_Adapter
|
||||
private void checkCNCAlarms()
|
||||
{
|
||||
// faccio parse allarmi: se ci sono invio e presento
|
||||
sendAlarmIfPresent(allarmiCNC.msg1);
|
||||
sendAlarmIfPresent(allarmiCNC.msg2);
|
||||
sendAlarmIfPresent(allarmiCNC.msg3);
|
||||
sendAlarmIfPresent(allarmiCNC.msg4);
|
||||
sendAlarmIfPresent(allarmiCNC.msg5);
|
||||
sendAlarmIfPresent(allarmiCNC.msg6);
|
||||
sendAlarmIfPresent(allarmiCNC.msg7);
|
||||
sendAlarmIfPresent(allarmiCNC.msg8);
|
||||
sendAlarmIfPresent(allarmiCNC.msg9);
|
||||
sendAlarmIfPresent(allarmiCNC.msg10);
|
||||
if (allarmiCNC != null)
|
||||
{
|
||||
if (allarmiCNC.Length > 0)
|
||||
{
|
||||
foreach (Alarm allarme in allarmiCNC)
|
||||
{
|
||||
sendAlarmIfPresent(allarme);
|
||||
}
|
||||
}
|
||||
}
|
||||
alarmMsgDispl = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invia singolo allarme CNC se presente
|
||||
/// </summary>
|
||||
/// <param name="allarme"></param>
|
||||
protected void sendAlarmIfPresent(CMSCncLib.Focas1.ODBALMMSG2_data allarme)
|
||||
protected void sendAlarmIfPresent(Alarm allarme)
|
||||
{
|
||||
// controllo valore...
|
||||
if (allarme.alm_no > 0)
|
||||
if (allarme.Id > 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (utils.CRI("loglevel") > 5)
|
||||
{
|
||||
lg.Info(string.Format("Allarmi CNC: NUM {0} | MESS: {1} | ASSE: {2} | TYPE: {3}", allarme.alm_no, allarme.alm_msg, allarme.axis, allarme.type));
|
||||
lg.Info(string.Format("Allarmi CNC: Id {0} | MESS: {1} | CAT: {2} | SRC: {3}", allarme.Id, allarme.Message, allarme.Category, allarme.Source));
|
||||
}
|
||||
|
||||
// da gestire instance = PATH!!! 1/2, x cui raddoppia i messaggi...
|
||||
|
||||
string codAllarme = string.Format("P{0}:S{1} | {2} | {3}", allarme.Instance+1, allarme.Source.Name, allarme.Id, allarme.Message);
|
||||
#if false
|
||||
// se ho asse accodo ad asse altrimenti no...
|
||||
string codAllarme = string.Format("T{0}-N{1}", allarme.type, allarme.alm_no);
|
||||
if (allarme.axis == 0)
|
||||
{
|
||||
mAlarmCNC.Add(MTConnect.Condition.Level.FAULT, allarme.alm_msg, codAllarme, "", "");
|
||||
@@ -802,10 +773,18 @@ namespace MTC_Adapter
|
||||
else
|
||||
{
|
||||
vettAxis[allarme.axis - 1].mAxAlarmCNC.Add(MTConnect.Condition.Level.FAULT, allarme.alm_msg, codAllarme, "", "");
|
||||
}
|
||||
#endif
|
||||
// se NON ancora mostrati allarmi...
|
||||
if (!alarmMsgDispl)
|
||||
{
|
||||
// mostro in form!
|
||||
sb.AppendLine(codAllarme);
|
||||
parentForm.dataMonitor_1 += sb.ToString();
|
||||
}
|
||||
// mostro in form!
|
||||
sb.AppendLine(codAllarme);
|
||||
parentForm.dataMonitor_1 += sb.ToString();
|
||||
|
||||
mAlarmCNC.Add(MTConnect.Condition.Level.FAULT, allarme.Message, codAllarme, "", "");
|
||||
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
@@ -971,50 +950,16 @@ namespace MTC_Adapter
|
||||
{
|
||||
base.getPath();
|
||||
|
||||
string[,] vettGCod = new string[2, 64];
|
||||
// recupero vettore generale G MODE
|
||||
inizio = DateTime.Now;
|
||||
SIEMENS_ref.getPathGCodeMod(currAdpConf.nPath, ref vettGCod);
|
||||
if (utils.CRB("recTime")) TimingData.addResult("R-GCodModal", DateTime.Now.Subtract(inizio).Ticks);
|
||||
|
||||
|
||||
|
||||
#if false
|
||||
// recupero vettore generale G MODE
|
||||
inizio = DateTime.Now;
|
||||
CMSCncLib.Focas1.ODBGCD vettGCodes = SIEMENS_ref.getPathGCodeMod();
|
||||
if (utils.CRB("recTime")) TimingData.addResult("R-GCodModal", DateTime.Now.Subtract(inizio).Ticks);
|
||||
|
||||
string GCodAttivi = "";
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd0.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd1.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd2.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd3.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd4.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd5.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd6.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd7.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd8.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd9.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd10.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd11.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd12.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd13.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd14.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd15.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd16.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd17.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd18.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd19.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd20.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd21.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd22.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd23.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd24.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd25.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd26.code);
|
||||
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd27.code);
|
||||
|
||||
inizio = DateTime.Now;
|
||||
vettGCodes = SIEMENS_ref.getPathGCode1Shot();
|
||||
if (utils.CRB("recTime")) TimingData.addResult("R-GCodOneShot", DateTime.Now.Subtract(inizio).Ticks);
|
||||
if (vettGCodes.gcd0.flag > 0) GCodAttivi += string.Format("[{0}]", vettGCodes.gcd0.code);
|
||||
if (vettGCodes.gcd1.flag > 0) GCodAttivi += string.Format("[{0}]", vettGCodes.gcd1.code);
|
||||
if (vettGCodes.gcd2.flag > 0) GCodAttivi += string.Format("[{0}]", vettGCodes.gcd2.code);
|
||||
if (vettGCodes.gcd3.flag > 0) GCodAttivi += string.Format("[{0}]", vettGCodes.gcd3.code);
|
||||
|
||||
|
||||
inizio = DateTime.Now;
|
||||
CMSCncLib.Focas1.ODB5AXMAN vettTTCoord = SIEMENS_ref.getPathTTCoord();
|
||||
if (utils.CRB("recTime")) TimingData.addResult("R-TTCoord", DateTime.Now.Subtract(inizio).Ticks);
|
||||
@@ -1029,8 +974,20 @@ namespace MTC_Adapter
|
||||
sb_2 = new StringBuilder();
|
||||
sb_3 = new StringBuilder();
|
||||
|
||||
// copio gcodes!
|
||||
string GCodAttivi = "";
|
||||
for (int j = 0; j < 64; j++)
|
||||
{
|
||||
// SOLO se è diverso da vuoto...
|
||||
if (vettGCod[i, j] != "")
|
||||
{
|
||||
GCodAttivi += string.Format("[{0}]", vettGCod[i, j]);
|
||||
}
|
||||
}
|
||||
|
||||
vettPath[i].mPathCodG_Act.Value = GCodAttivi;
|
||||
sb_3.AppendLine(string.Format("Path {0}, GCodes: {1}", i + 1, GCodAttivi));
|
||||
#if false
|
||||
vettPath[i].mPathCodG_Act.Value = GCodAttivi;
|
||||
|
||||
vettPath[i].mPathPosActX.Value = ((decimal)vettTTCoord.data1) / utils.CRI("fattdecimale");
|
||||
vettPath[i].mPathPosActY.Value = ((decimal)vettTTCoord.data2) / utils.CRI("fattdecimale");
|
||||
@@ -1044,7 +1001,6 @@ namespace MTC_Adapter
|
||||
vettPath[i].mPathActiveAxes.Value = "";
|
||||
|
||||
sb_2.AppendLine(string.Format("Path {0}, PROG: {1}", i + 1, vettPath[i].mPathCurrProg.Value));
|
||||
sb_3.AppendLine(string.Format("Path {0}, GCodes: {1}", i + 1, GCodAttivi));
|
||||
|
||||
sb_3.AppendLine(string.Format("Path {0}, Asse 1: {1:N3}", i + 1, ((decimal)vettTTCoord.data1) / utils.CRI("fattdecimale")));
|
||||
sb_3.AppendLine(string.Format("Path {0}, Asse 2: {1:N3}", i + 1, ((decimal)vettTTCoord.data2) / utils.CRI("fattdecimale")));
|
||||
@@ -1125,7 +1081,7 @@ namespace MTC_Adapter
|
||||
|
||||
if (utils.CRB("verbose"))
|
||||
{
|
||||
sb.AppendLine(string.Format("Asse {0}: PosAct:{1:N3}, ToGo:{2:N3}{3} | {4}", i, newPos, 0, "-", direzione));
|
||||
sb.AppendLine(string.Format("Asse {0}: PosAct:{1:N3}, ToGo:{2:N3}{3} | {4}", i, newPos, ValAssi[i].PosTgt, "", direzione));
|
||||
}
|
||||
|
||||
// salvo valori vettore prec...
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<add key="fastCount" value="20" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="normCount" value="50" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="slowCount" value="500" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="alarmSyncCount" value="6000" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="alarmSyncCount" value="1000" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="waitEndCycle" value="0" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="loglevel" value="5" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="mode" value="prod" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup useLegacyV2RuntimeActivationPolicy="true">
|
||||
<!--<startup>-->
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
|
||||
<!--<supportedRuntime version="v2.0" sku=".NETFramework,Version=v2.0"/>-->
|
||||
</startup>
|
||||
<appSettings>
|
||||
<add key="appName" value="MTConnect Adapter"/>
|
||||
@@ -40,9 +38,11 @@
|
||||
ipPLC = "192.168.139.1"-->
|
||||
<!--<add key="ipPLC" value="192.168.157.2"/>-->
|
||||
<!--OSAI DEV-->
|
||||
<add key ="ipPLC" value="192.168.157.2" />
|
||||
<!--<add key ="ipPLC" value="192.168.157.2" />-->
|
||||
<!--SIEMENS DEV-->
|
||||
<!--<add key ="ipPLC" value="192.168.214.1" />-->
|
||||
<!--CMS PROD-->
|
||||
<!--<add key ="ipPLC" value="192.168.139.1" />-->
|
||||
<add key ="ipPLC" value="192.168.139.1" />
|
||||
|
||||
<add key="recTime" value="true"/>
|
||||
<add key="verbose" value="true"/>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AdapterConf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<Version>1</Version>
|
||||
<NomeAdapt>ADAPTER_OSAI</NomeAdapt>
|
||||
<TipoAdapt>OSAI</TipoAdapt>
|
||||
<NomeAdapt>ADAPTER_SIEMENS</NomeAdapt>
|
||||
<TipoAdapt>SIEMENS</TipoAdapt>
|
||||
<ContOreMaccOn>0</ContOreMaccOn>
|
||||
<ContOreMaccLav>0</ContOreMaccLav>
|
||||
<ContSlittaTast>0</ContSlittaTast>
|
||||
@@ -36,13 +36,29 @@
|
||||
<dataRefList />
|
||||
</element>
|
||||
</Lubro>
|
||||
<ProtMag>
|
||||
<Counters>
|
||||
<element>
|
||||
<ident>ProtMagazzino_01</ident>
|
||||
<ident>Counter_001</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>ProtMagazzino_02</ident>
|
||||
<ident>Counter_002</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>Counter_003</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</Counters>
|
||||
<SlittaMag>
|
||||
<element>
|
||||
<ident>SlittaMagazzino_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</SlittaMag>
|
||||
<ProtMag>
|
||||
<element>
|
||||
<ident>ProtMagazzino_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</ProtMag>
|
||||
@@ -81,10 +97,6 @@
|
||||
<ident>Path_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>Path_02</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</Path>
|
||||
<UnOp>
|
||||
<element>
|
||||
@@ -171,5 +183,135 @@
|
||||
</dataRef>
|
||||
</dataRefList>
|
||||
</element>
|
||||
<element>
|
||||
<ident>Axis_07</ident>
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_07_Type</Key>
|
||||
<Value>LINEAR</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_07_Grp</Key>
|
||||
<Value>00</Value>
|
||||
</dataRef>
|
||||
</dataRefList>
|
||||
</element>
|
||||
<element>
|
||||
<ident>Axis_08</ident>
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_08_Type</Key>
|
||||
<Value>LINEAR</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_08_Grp</Key>
|
||||
<Value>00</Value>
|
||||
</dataRef>
|
||||
</dataRefList>
|
||||
</element>
|
||||
<element>
|
||||
<ident>Axis_09</ident>
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_09_Type</Key>
|
||||
<Value>LINEAR</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_09_Grp</Key>
|
||||
<Value>00</Value>
|
||||
</dataRef>
|
||||
</dataRefList>
|
||||
</element>
|
||||
<element>
|
||||
<ident>Axis_10</ident>
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_10_Type</Key>
|
||||
<Value>LINEAR</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_10_Grp</Key>
|
||||
<Value>00</Value>
|
||||
</dataRef>
|
||||
</dataRefList>
|
||||
</element>
|
||||
<element>
|
||||
<ident>Axis_11</ident>
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_11_Type</Key>
|
||||
<Value>LINEAR</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_11_Grp</Key>
|
||||
<Value>00</Value>
|
||||
</dataRef>
|
||||
</dataRefList>
|
||||
</element>
|
||||
<element>
|
||||
<ident>Axis_12</ident>
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_12_Type</Key>
|
||||
<Value>LINEAR</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_12_Grp</Key>
|
||||
<Value>00</Value>
|
||||
</dataRef>
|
||||
</dataRefList>
|
||||
</element>
|
||||
<element>
|
||||
<ident>Axis_13</ident>
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_13_Type</Key>
|
||||
<Value>ROTARY</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_13_Grp</Key>
|
||||
<Value>00</Value>
|
||||
</dataRef>
|
||||
</dataRefList>
|
||||
</element>
|
||||
<element>
|
||||
<ident>Axis_14</ident>
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_14_Type</Key>
|
||||
<Value>ROTARY</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_14_Grp</Key>
|
||||
<Value>00</Value>
|
||||
</dataRef>
|
||||
</dataRefList>
|
||||
</element>
|
||||
<element>
|
||||
<ident>Axis_15</ident>
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_15_Type</Key>
|
||||
<Value>LINEAR</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_15_Grp</Key>
|
||||
<Value>00</Value>
|
||||
</dataRef>
|
||||
</dataRefList>
|
||||
</element>
|
||||
<element>
|
||||
<ident>Axis_16</ident>
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_16_Type</Key>
|
||||
<Value>LINEAR</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_16_Grp</Key>
|
||||
<Value>00</Value>
|
||||
</dataRef>
|
||||
</dataRefList>
|
||||
</element>
|
||||
</Axis>
|
||||
</AdapterConf>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,4 @@
|
||||
# Commenti con cancelletto, struttura un variabile per riga, tipo chiave|valore (occhio che il separatore è configurato da .cofig come "testCharSep"); spazi e tabulazioni dovrei trimmarli in acquisizione (qui inseriti per comodità di lettura)
|
||||
001|Axis_01_Load |NUM
|
||||
002|Axis_02_Load |NUM
|
||||
003|Axis_03_Load |NUM
|
||||
004|Axis_04_Load |NUM
|
||||
005|Axis_05_Load |NUM
|
||||
006|Axis_06_Load |NUM
|
||||
001|Analog_01 |NUM
|
||||
001|Analog_02 |NUM
|
||||
001|Analog_03 |NUM
|
||||
@@ -21,12 +21,15 @@
|
||||
020|VacAct_02_Count |COUNT
|
||||
021|Lubro_01_Num |COUNT
|
||||
022|SlittaTastatore_Count |COUNT
|
||||
023|ProtMagazzino_01_Count |COUNT
|
||||
024|ProtMagazzino_02_Count |COUNT
|
||||
023|SlittaMagazzino_01_Count |COUNT
|
||||
024|ProtMagazzino_01_Count |COUNT
|
||||
025|UnOp_01_NumCambiUT |COUNT
|
||||
026|Axis_01_AccTime |COUNT
|
||||
027|Axis_02_AccTime |COUNT
|
||||
028|Axis_03_AccTime |COUNT
|
||||
029|Axis_04_AccTime |COUNT
|
||||
030|Axis_05_AccTime |COUNT
|
||||
031|Axis_06_AccTime |COUNT
|
||||
031|Axis_06_AccTime |COUNT
|
||||
032|Counter_001 |COUNT
|
||||
033|Counter_002 |COUNT
|
||||
034|Counter_003 |COUNT
|
||||
@@ -1,5 +1,5 @@
|
||||
# Commenti con cancelletto, struttura un variabile per riga, tipo chiave|valore (occhio che il separatore è configurato da .cofig come "testCharSep"); spazi e tabulazioni dovrei trimmarli in acquisizione (qui inseriti per comodità di lettura)
|
||||
1 001|IOT_PGMID_A1 |STRING
|
||||
2 002|IOT_PGMID_A2 |STRING
|
||||
3 003|IOT_PGMID_A3 |STRING
|
||||
4 004|IOT_PGMID_A4 |STRING
|
||||
001|IOT_PGMID_A1 |STRING
|
||||
002|IOT_PGMID_A2 |STRING
|
||||
003|IOT_PGMID_A3 |STRING
|
||||
004|IOT_PGMID_A4 |STRING
|
||||
Binary file not shown.
Binary file not shown.
@@ -104,6 +104,10 @@
|
||||
<HintPath>..\packages\NLog.4.4.4\lib\net45\NLog.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Siemens.Sinumerik.Operate.Services, Version=4.7.3.2, Culture=neutral, PublicKeyToken=bdd90fa02fd1c4ee, processorArchitecture=x86">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>ExtLib\Siemens.Sinumerik.Operate.Services.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
@@ -178,6 +182,8 @@
|
||||
<None Include="Resources\CMS\SIEMENS.xml">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<Content Include="ExtLib\Siemens.Sinumerik.Operate.Services.dll" />
|
||||
<Content Include="ExtLib\Siemens.Sinumerik.Operate.Services.Wrapper.dll" />
|
||||
<Content Include="Readme\ToDos_Siemens.txt" />
|
||||
<Content Include="Resources\SCM\SCM_ESA.xml" />
|
||||
<Content Include="Readme\Analisi tempi.txt" />
|
||||
|
||||
+21
-19
@@ -143,8 +143,8 @@
|
||||
this.tpStatus = new System.Windows.Forms.TabPage();
|
||||
this.gbMonitor = new System.Windows.Forms.GroupBox();
|
||||
this.lblOutMessage3 = new System.Windows.Forms.Label();
|
||||
this.lblOutMessage = new System.Windows.Forms.Label();
|
||||
this.lblOutMessage2 = new System.Windows.Forms.Label();
|
||||
this.lblOutMessage = new System.Windows.Forms.Label();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.STATUS_ACK_DW3 = new System.Windows.Forms.TextBox();
|
||||
this.label52 = new System.Windows.Forms.Label();
|
||||
@@ -1411,8 +1411,8 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.gbMonitor.BackColor = System.Drawing.Color.Black;
|
||||
this.gbMonitor.Controls.Add(this.lblOutMessage3);
|
||||
this.gbMonitor.Controls.Add(this.lblOutMessage);
|
||||
this.gbMonitor.Controls.Add(this.lblOutMessage2);
|
||||
this.gbMonitor.Controls.Add(this.lblOutMessage);
|
||||
this.gbMonitor.ForeColor = System.Drawing.SystemColors.Control;
|
||||
this.gbMonitor.Location = new System.Drawing.Point(0, 266);
|
||||
this.gbMonitor.Margin = new System.Windows.Forms.Padding(0);
|
||||
@@ -1425,40 +1425,42 @@
|
||||
//
|
||||
// lblOutMessage3
|
||||
//
|
||||
this.lblOutMessage3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblOutMessage3.AutoSize = true;
|
||||
this.lblOutMessage3.Font = new System.Drawing.Font("Arial Narrow", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblOutMessage3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblOutMessage3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
|
||||
this.lblOutMessage3.Location = new System.Drawing.Point(607, 15);
|
||||
this.lblOutMessage3.Location = new System.Drawing.Point(527, 15);
|
||||
this.lblOutMessage3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.lblOutMessage3.Name = "lblOutMessage3";
|
||||
this.lblOutMessage3.Size = new System.Drawing.Size(17, 16);
|
||||
this.lblOutMessage3.Size = new System.Drawing.Size(16, 15);
|
||||
this.lblOutMessage3.TabIndex = 62;
|
||||
this.lblOutMessage3.Text = "...";
|
||||
//
|
||||
// lblOutMessage2
|
||||
//
|
||||
this.lblOutMessage2.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
||||
this.lblOutMessage2.AutoSize = true;
|
||||
this.lblOutMessage2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblOutMessage2.ForeColor = System.Drawing.Color.Yellow;
|
||||
this.lblOutMessage2.Location = new System.Drawing.Point(279, 15);
|
||||
this.lblOutMessage2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.lblOutMessage2.Name = "lblOutMessage2";
|
||||
this.lblOutMessage2.Size = new System.Drawing.Size(16, 15);
|
||||
this.lblOutMessage2.TabIndex = 61;
|
||||
this.lblOutMessage2.Text = "...";
|
||||
//
|
||||
// lblOutMessage
|
||||
//
|
||||
this.lblOutMessage.AutoSize = true;
|
||||
this.lblOutMessage.Font = new System.Drawing.Font("Arial Narrow", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblOutMessage.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblOutMessage.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
this.lblOutMessage.Location = new System.Drawing.Point(4, 15);
|
||||
this.lblOutMessage.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.lblOutMessage.Name = "lblOutMessage";
|
||||
this.lblOutMessage.Size = new System.Drawing.Size(17, 16);
|
||||
this.lblOutMessage.Size = new System.Drawing.Size(16, 15);
|
||||
this.lblOutMessage.TabIndex = 60;
|
||||
this.lblOutMessage.Text = "...";
|
||||
//
|
||||
// lblOutMessage2
|
||||
//
|
||||
this.lblOutMessage2.AutoSize = true;
|
||||
this.lblOutMessage2.Font = new System.Drawing.Font("Arial Narrow", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblOutMessage2.ForeColor = System.Drawing.Color.Yellow;
|
||||
this.lblOutMessage2.Location = new System.Drawing.Point(315, 15);
|
||||
this.lblOutMessage2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.lblOutMessage2.Name = "lblOutMessage2";
|
||||
this.lblOutMessage2.Size = new System.Drawing.Size(17, 16);
|
||||
this.lblOutMessage2.TabIndex = 61;
|
||||
this.lblOutMessage2.Text = "...";
|
||||
//
|
||||
// groupBox6
|
||||
//
|
||||
this.groupBox6.Controls.Add(this.STATUS_ACK_DW3);
|
||||
|
||||
@@ -138,6 +138,24 @@
|
||||
<metadata name="K.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="X.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Y.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Z.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="I.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="J.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="K.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>104, 17</value>
|
||||
</metadata>
|
||||
|
||||
@@ -29,4 +29,7 @@
|
||||
028|Axis_03_AccTime |COUNT
|
||||
029|Axis_04_AccTime |COUNT
|
||||
030|Axis_05_AccTime |COUNT
|
||||
031|Axis_06_AccTime |COUNT
|
||||
031|Axis_06_AccTime |COUNT
|
||||
032|Counter_001 |COUNT
|
||||
033|Counter_002 |COUNT
|
||||
034|Counter_003 |COUNT
|
||||
@@ -29,4 +29,7 @@
|
||||
028|Axis_03_AccTime |COUNT
|
||||
029|Axis_04_AccTime |COUNT
|
||||
030|Axis_05_AccTime |COUNT
|
||||
031|Axis_06_AccTime |COUNT
|
||||
031|Axis_06_AccTime |COUNT
|
||||
032|Counter_001 |COUNT
|
||||
033|Counter_002 |COUNT
|
||||
034|Counter_003 |COUNT
|
||||
@@ -29,4 +29,7 @@
|
||||
028|Axis_03_AccTime |COUNT
|
||||
029|Axis_04_AccTime |COUNT
|
||||
030|Axis_05_AccTime |COUNT
|
||||
031|Axis_06_AccTime |COUNT
|
||||
031|Axis_06_AccTime |COUNT
|
||||
032|Counter_001 |COUNT
|
||||
033|Counter_002 |COUNT
|
||||
034|Counter_003 |COUNT
|
||||
@@ -36,18 +36,18 @@
|
||||
<dataRefList />
|
||||
</element>
|
||||
</Lubro>
|
||||
<SlittaMag>
|
||||
<element>
|
||||
<ident>SlittaMagazzino_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</SlittaMag>
|
||||
<ProtMag>
|
||||
<element>
|
||||
<ident>ProtMagazzino_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</ProtMag>
|
||||
<SlittaMag>
|
||||
<element>
|
||||
<ident>SlittaMagazzino_</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</SlittaMag>
|
||||
<Cooler>
|
||||
<element>
|
||||
<ident>Cooler_01</ident>
|
||||
|
||||
@@ -36,15 +36,17 @@
|
||||
<dataRefList />
|
||||
</element>
|
||||
</Lubro>
|
||||
<SlittaMag>
|
||||
<element>
|
||||
<ident>SlittaMagazzino_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</SlittaMag>
|
||||
<ProtMag>
|
||||
<element>
|
||||
<ident>ProtMagazzino_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>ProtMagazzino_02</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</ProtMag>
|
||||
<Cooler>
|
||||
<element>
|
||||
|
||||
@@ -36,18 +36,18 @@
|
||||
<dataRefList />
|
||||
</element>
|
||||
</Lubro>
|
||||
<SlittaMag>
|
||||
<element>
|
||||
<ident>SlittaMagazzino_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</SlittaMag>
|
||||
<ProtMag>
|
||||
<element>
|
||||
<ident>ProtMagazzino_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</ProtMag>
|
||||
<SlittaMag>
|
||||
<element>
|
||||
<ident>SlittaMagazzino_</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</SlittaMag>
|
||||
<Cooler>
|
||||
<element>
|
||||
<ident>Cooler_01</ident>
|
||||
|
||||
+387
-354
@@ -28,364 +28,397 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SetupAdapter));
|
||||
this.txtAdapter = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.txtFileName = new System.Windows.Forms.TextBox();
|
||||
this.btnSave = new System.Windows.Forms.Button();
|
||||
this.btnLoad = new System.Windows.Forms.Button();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.nVacPump = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.nVacAct = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.cbTipoAdapt = new System.Windows.Forms.ComboBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.nLubro = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.nCooler = new System.Windows.Forms.TextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.nPress = new System.Windows.Forms.TextBox();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.nTempe = new System.Windows.Forms.TextBox();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.nPath = new System.Windows.Forms.TextBox();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.nUnOp = new System.Windows.Forms.TextBox();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.nAssi = new System.Windows.Forms.TextBox();
|
||||
this.label13 = new System.Windows.Forms.Label();
|
||||
this.nMemArea = new System.Windows.Forms.TextBox();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.nProtMag = new System.Windows.Forms.TextBox();
|
||||
this.label15 = new System.Windows.Forms.Label();
|
||||
this.nSlittaMag = new System.Windows.Forms.TextBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// txtAdapter
|
||||
//
|
||||
this.txtAdapter.Location = new System.Drawing.Point(91, 10);
|
||||
this.txtAdapter.Name = "txtAdapter";
|
||||
this.txtAdapter.Size = new System.Drawing.Size(214, 20);
|
||||
this.txtAdapter.TabIndex = 0;
|
||||
this.txtAdapter.Text = "CMS_ADAPTER_00";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(22, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(58, 13);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "ADAPTER";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(311, 13);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(63, 13);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "FILE NAME";
|
||||
//
|
||||
// txtFileName
|
||||
//
|
||||
this.txtFileName.Location = new System.Drawing.Point(380, 10);
|
||||
this.txtFileName.Name = "txtFileName";
|
||||
this.txtFileName.Size = new System.Drawing.Size(122, 20);
|
||||
this.txtFileName.TabIndex = 2;
|
||||
this.txtFileName.Text = "Adapter_ItemList.xml";
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Location = new System.Drawing.Point(479, 467);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(201, 38);
|
||||
this.btnSave.TabIndex = 4;
|
||||
this.btnSave.Text = "SAVE CONFIGURATION";
|
||||
this.btnSave.UseVisualStyleBackColor = true;
|
||||
this.btnSave.Click += new System.EventHandler(this.btnCreateFile_Click);
|
||||
//
|
||||
// btnLoad
|
||||
//
|
||||
this.btnLoad.Location = new System.Drawing.Point(16, 467);
|
||||
this.btnLoad.Name = "btnLoad";
|
||||
this.btnLoad.Size = new System.Drawing.Size(201, 38);
|
||||
this.btnLoad.TabIndex = 5;
|
||||
this.btnLoad.Text = "LOAD CONFIGURATION";
|
||||
this.btnLoad.UseVisualStyleBackColor = true;
|
||||
this.btnLoad.Click += new System.EventHandler(this.btnLoad_Click);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(10, 39);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(75, 13);
|
||||
this.label3.TabIndex = 7;
|
||||
this.label3.Text = "n° VAC PUMP";
|
||||
//
|
||||
// nVacPump
|
||||
//
|
||||
this.nVacPump.Location = new System.Drawing.Point(91, 36);
|
||||
this.nVacPump.Name = "nVacPump";
|
||||
this.nVacPump.Size = new System.Drawing.Size(33, 20);
|
||||
this.nVacPump.TabIndex = 6;
|
||||
this.nVacPump.Text = "1";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(176, 39);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(60, 13);
|
||||
this.label4.TabIndex = 9;
|
||||
this.label4.Text = "n° VAC Act";
|
||||
//
|
||||
// nVacAct
|
||||
//
|
||||
this.nVacAct.Location = new System.Drawing.Point(242, 36);
|
||||
this.nVacAct.Name = "nVacAct";
|
||||
this.nVacAct.Size = new System.Drawing.Size(33, 20);
|
||||
this.nVacAct.TabIndex = 8;
|
||||
this.nVacAct.Text = "2";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(517, 13);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(32, 13);
|
||||
this.label5.TabIndex = 10;
|
||||
this.label5.Text = "TIPO";
|
||||
//
|
||||
// cbTipoAdapt
|
||||
//
|
||||
this.cbTipoAdapt.FormattingEnabled = true;
|
||||
this.cbTipoAdapt.Items.AddRange(new object[] {
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SetupAdapter));
|
||||
this.txtAdapter = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.txtFileName = new System.Windows.Forms.TextBox();
|
||||
this.btnSave = new System.Windows.Forms.Button();
|
||||
this.btnLoad = new System.Windows.Forms.Button();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.nVacPump = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.nVacAct = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.cbTipoAdapt = new System.Windows.Forms.ComboBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.nLubro = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.nCooler = new System.Windows.Forms.TextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.nPress = new System.Windows.Forms.TextBox();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.nTempe = new System.Windows.Forms.TextBox();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.nPath = new System.Windows.Forms.TextBox();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.nUnOp = new System.Windows.Forms.TextBox();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.nAssi = new System.Windows.Forms.TextBox();
|
||||
this.label13 = new System.Windows.Forms.Label();
|
||||
this.nMemArea = new System.Windows.Forms.TextBox();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.nProtMag = new System.Windows.Forms.TextBox();
|
||||
this.label15 = new System.Windows.Forms.Label();
|
||||
this.nSlittaMag = new System.Windows.Forms.TextBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// txtAdapter
|
||||
//
|
||||
this.txtAdapter.Location = new System.Drawing.Point(121, 12);
|
||||
this.txtAdapter.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtAdapter.Name = "txtAdapter";
|
||||
this.txtAdapter.Size = new System.Drawing.Size(284, 22);
|
||||
this.txtAdapter.TabIndex = 0;
|
||||
this.txtAdapter.Text = "CMS_ADAPTER_00";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(29, 16);
|
||||
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(73, 17);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "ADAPTER";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(415, 16);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(79, 17);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "FILE NAME";
|
||||
//
|
||||
// txtFileName
|
||||
//
|
||||
this.txtFileName.Location = new System.Drawing.Point(507, 12);
|
||||
this.txtFileName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtFileName.Name = "txtFileName";
|
||||
this.txtFileName.Size = new System.Drawing.Size(161, 22);
|
||||
this.txtFileName.TabIndex = 2;
|
||||
this.txtFileName.Text = "Adapter_ItemList.xml";
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Location = new System.Drawing.Point(639, 575);
|
||||
this.btnSave.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(268, 47);
|
||||
this.btnSave.TabIndex = 4;
|
||||
this.btnSave.Text = "SAVE CONFIGURATION";
|
||||
this.btnSave.UseVisualStyleBackColor = true;
|
||||
this.btnSave.Click += new System.EventHandler(this.btnCreateFile_Click);
|
||||
//
|
||||
// btnLoad
|
||||
//
|
||||
this.btnLoad.Location = new System.Drawing.Point(21, 575);
|
||||
this.btnLoad.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnLoad.Name = "btnLoad";
|
||||
this.btnLoad.Size = new System.Drawing.Size(268, 47);
|
||||
this.btnLoad.TabIndex = 5;
|
||||
this.btnLoad.Text = "LOAD CONFIGURATION";
|
||||
this.btnLoad.UseVisualStyleBackColor = true;
|
||||
this.btnLoad.Click += new System.EventHandler(this.btnLoad_Click);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(13, 48);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(96, 17);
|
||||
this.label3.TabIndex = 7;
|
||||
this.label3.Text = "n° VAC PUMP";
|
||||
//
|
||||
// nVacPump
|
||||
//
|
||||
this.nVacPump.Location = new System.Drawing.Point(121, 44);
|
||||
this.nVacPump.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.nVacPump.Name = "nVacPump";
|
||||
this.nVacPump.Size = new System.Drawing.Size(43, 22);
|
||||
this.nVacPump.TabIndex = 6;
|
||||
this.nVacPump.Text = "1";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(235, 48);
|
||||
this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(77, 17);
|
||||
this.label4.TabIndex = 9;
|
||||
this.label4.Text = "n° VAC Act";
|
||||
//
|
||||
// nVacAct
|
||||
//
|
||||
this.nVacAct.Location = new System.Drawing.Point(323, 44);
|
||||
this.nVacAct.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.nVacAct.Name = "nVacAct";
|
||||
this.nVacAct.Size = new System.Drawing.Size(43, 22);
|
||||
this.nVacAct.TabIndex = 8;
|
||||
this.nVacAct.Text = "2";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(689, 16);
|
||||
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(40, 17);
|
||||
this.label5.TabIndex = 10;
|
||||
this.label5.Text = "TIPO";
|
||||
//
|
||||
// cbTipoAdapt
|
||||
//
|
||||
this.cbTipoAdapt.FormattingEnabled = true;
|
||||
this.cbTipoAdapt.Items.AddRange(new object[] {
|
||||
"DEMO",
|
||||
"ESAGV",
|
||||
"FANUC",
|
||||
"OSAI",
|
||||
"SIEMENS"});
|
||||
this.cbTipoAdapt.Location = new System.Drawing.Point(555, 10);
|
||||
this.cbTipoAdapt.Name = "cbTipoAdapt";
|
||||
this.cbTipoAdapt.Size = new System.Drawing.Size(121, 21);
|
||||
this.cbTipoAdapt.TabIndex = 11;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(314, 39);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(57, 13);
|
||||
this.label6.TabIndex = 13;
|
||||
this.label6.Text = "n° LUBRO";
|
||||
//
|
||||
// nLubro
|
||||
//
|
||||
this.nLubro.Location = new System.Drawing.Point(380, 36);
|
||||
this.nLubro.Name = "nLubro";
|
||||
this.nLubro.Size = new System.Drawing.Size(33, 20);
|
||||
this.nLubro.TabIndex = 12;
|
||||
this.nLubro.Text = "1";
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(473, 39);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(64, 13);
|
||||
this.label7.TabIndex = 15;
|
||||
this.label7.Text = "n° COOLER";
|
||||
//
|
||||
// nCooler
|
||||
//
|
||||
this.nCooler.Location = new System.Drawing.Point(539, 36);
|
||||
this.nCooler.Name = "nCooler";
|
||||
this.nCooler.Size = new System.Drawing.Size(33, 20);
|
||||
this.nCooler.TabIndex = 14;
|
||||
this.nCooler.Text = "2";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(25, 65);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(56, 13);
|
||||
this.label8.TabIndex = 17;
|
||||
this.label8.Text = "n° PRESS";
|
||||
//
|
||||
// nPress
|
||||
//
|
||||
this.nPress.Location = new System.Drawing.Point(91, 62);
|
||||
this.nPress.Name = "nPress";
|
||||
this.nPress.Size = new System.Drawing.Size(33, 20);
|
||||
this.nPress.TabIndex = 16;
|
||||
this.nPress.Text = "1";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(176, 65);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(50, 13);
|
||||
this.label9.TabIndex = 19;
|
||||
this.label9.Text = "n° TEMP";
|
||||
//
|
||||
// nTempe
|
||||
//
|
||||
this.nTempe.Location = new System.Drawing.Point(242, 62);
|
||||
this.nTempe.Name = "nTempe";
|
||||
this.nTempe.Size = new System.Drawing.Size(33, 20);
|
||||
this.nTempe.TabIndex = 18;
|
||||
this.nTempe.Text = "1";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(314, 65);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(49, 13);
|
||||
this.label10.TabIndex = 21;
|
||||
this.label10.Text = "n° PATH";
|
||||
//
|
||||
// nPath
|
||||
//
|
||||
this.nPath.Location = new System.Drawing.Point(380, 62);
|
||||
this.nPath.Name = "nPath";
|
||||
this.nPath.Size = new System.Drawing.Size(33, 20);
|
||||
this.nPath.TabIndex = 20;
|
||||
this.nPath.Text = "1";
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(473, 65);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(52, 13);
|
||||
this.label11.TabIndex = 23;
|
||||
this.label11.Text = "n° Un OP";
|
||||
//
|
||||
// nUnOp
|
||||
//
|
||||
this.nUnOp.Location = new System.Drawing.Point(539, 62);
|
||||
this.nUnOp.Name = "nUnOp";
|
||||
this.nUnOp.Size = new System.Drawing.Size(33, 20);
|
||||
this.nUnOp.TabIndex = 22;
|
||||
this.nUnOp.Text = "1";
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(25, 91);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(39, 13);
|
||||
this.label12.TabIndex = 25;
|
||||
this.label12.Text = "n° Assi";
|
||||
//
|
||||
// nAssi
|
||||
//
|
||||
this.nAssi.Location = new System.Drawing.Point(91, 88);
|
||||
this.nAssi.Name = "nAssi";
|
||||
this.nAssi.Size = new System.Drawing.Size(33, 20);
|
||||
this.nAssi.TabIndex = 24;
|
||||
this.nAssi.Text = "1";
|
||||
//
|
||||
// label13
|
||||
//
|
||||
this.label13.AutoSize = true;
|
||||
this.label13.Location = new System.Drawing.Point(176, 94);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new System.Drawing.Size(65, 13);
|
||||
this.label13.TabIndex = 27;
|
||||
this.label13.Text = "n° MemArea";
|
||||
//
|
||||
// nMemArea
|
||||
//
|
||||
this.nMemArea.Location = new System.Drawing.Point(242, 91);
|
||||
this.nMemArea.Name = "nMemArea";
|
||||
this.nMemArea.Size = new System.Drawing.Size(33, 20);
|
||||
this.nMemArea.TabIndex = 26;
|
||||
this.nMemArea.Text = "1";
|
||||
//
|
||||
// label14
|
||||
//
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new System.Drawing.Point(473, 94);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(63, 13);
|
||||
this.label14.TabIndex = 31;
|
||||
this.label14.Text = "n° Prot Mag";
|
||||
//
|
||||
// nProtMag
|
||||
//
|
||||
this.nProtMag.Location = new System.Drawing.Point(539, 91);
|
||||
this.nProtMag.Name = "nProtMag";
|
||||
this.nProtMag.Size = new System.Drawing.Size(33, 20);
|
||||
this.nProtMag.TabIndex = 30;
|
||||
this.nProtMag.Text = "0";
|
||||
//
|
||||
// label15
|
||||
//
|
||||
this.label15.AutoSize = true;
|
||||
this.label15.Location = new System.Drawing.Point(314, 94);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new System.Drawing.Size(55, 13);
|
||||
this.label15.TabIndex = 29;
|
||||
this.label15.Text = "n° Sli Mag";
|
||||
//
|
||||
// nSlittaMag
|
||||
//
|
||||
this.nSlittaMag.Location = new System.Drawing.Point(380, 91);
|
||||
this.nSlittaMag.Name = "nSlittaMag";
|
||||
this.nSlittaMag.Size = new System.Drawing.Size(33, 20);
|
||||
this.nSlittaMag.TabIndex = 28;
|
||||
this.nSlittaMag.Text = "0";
|
||||
//
|
||||
// SetupAdapter
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(692, 517);
|
||||
this.Controls.Add(this.label14);
|
||||
this.Controls.Add(this.nProtMag);
|
||||
this.Controls.Add(this.label15);
|
||||
this.Controls.Add(this.nSlittaMag);
|
||||
this.Controls.Add(this.label13);
|
||||
this.Controls.Add(this.nMemArea);
|
||||
this.Controls.Add(this.label12);
|
||||
this.Controls.Add(this.nAssi);
|
||||
this.Controls.Add(this.label11);
|
||||
this.Controls.Add(this.nUnOp);
|
||||
this.Controls.Add(this.label10);
|
||||
this.Controls.Add(this.nPath);
|
||||
this.Controls.Add(this.label9);
|
||||
this.Controls.Add(this.nTempe);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.nPress);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.nCooler);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.nLubro);
|
||||
this.Controls.Add(this.cbTipoAdapt);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.nVacAct);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.nVacPump);
|
||||
this.Controls.Add(this.btnLoad);
|
||||
this.Controls.Add(this.btnSave);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.txtFileName);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.txtAdapter);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "SetupAdapter";
|
||||
this.Text = "Adapter Setup Manager";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
this.cbTipoAdapt.Location = new System.Drawing.Point(740, 12);
|
||||
this.cbTipoAdapt.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.cbTipoAdapt.Name = "cbTipoAdapt";
|
||||
this.cbTipoAdapt.Size = new System.Drawing.Size(160, 24);
|
||||
this.cbTipoAdapt.TabIndex = 11;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(419, 48);
|
||||
this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(74, 17);
|
||||
this.label6.TabIndex = 13;
|
||||
this.label6.Text = "n° LUBRO";
|
||||
//
|
||||
// nLubro
|
||||
//
|
||||
this.nLubro.Location = new System.Drawing.Point(507, 44);
|
||||
this.nLubro.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.nLubro.Name = "nLubro";
|
||||
this.nLubro.Size = new System.Drawing.Size(43, 22);
|
||||
this.nLubro.TabIndex = 12;
|
||||
this.nLubro.Text = "1";
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(631, 48);
|
||||
this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(84, 17);
|
||||
this.label7.TabIndex = 15;
|
||||
this.label7.Text = "n° COOLER";
|
||||
//
|
||||
// nCooler
|
||||
//
|
||||
this.nCooler.Location = new System.Drawing.Point(719, 44);
|
||||
this.nCooler.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.nCooler.Name = "nCooler";
|
||||
this.nCooler.Size = new System.Drawing.Size(43, 22);
|
||||
this.nCooler.TabIndex = 14;
|
||||
this.nCooler.Text = "2";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(33, 80);
|
||||
this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(72, 17);
|
||||
this.label8.TabIndex = 17;
|
||||
this.label8.Text = "n° PRESS";
|
||||
//
|
||||
// nPress
|
||||
//
|
||||
this.nPress.Location = new System.Drawing.Point(121, 76);
|
||||
this.nPress.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.nPress.Name = "nPress";
|
||||
this.nPress.Size = new System.Drawing.Size(43, 22);
|
||||
this.nPress.TabIndex = 16;
|
||||
this.nPress.Text = "1";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(235, 80);
|
||||
this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(64, 17);
|
||||
this.label9.TabIndex = 19;
|
||||
this.label9.Text = "n° TEMP";
|
||||
//
|
||||
// nTempe
|
||||
//
|
||||
this.nTempe.Location = new System.Drawing.Point(323, 76);
|
||||
this.nTempe.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.nTempe.Name = "nTempe";
|
||||
this.nTempe.Size = new System.Drawing.Size(43, 22);
|
||||
this.nTempe.TabIndex = 18;
|
||||
this.nTempe.Text = "1";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(419, 80);
|
||||
this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(63, 17);
|
||||
this.label10.TabIndex = 21;
|
||||
this.label10.Text = "n° PATH";
|
||||
//
|
||||
// nPath
|
||||
//
|
||||
this.nPath.Location = new System.Drawing.Point(507, 76);
|
||||
this.nPath.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.nPath.Name = "nPath";
|
||||
this.nPath.Size = new System.Drawing.Size(43, 22);
|
||||
this.nPath.TabIndex = 20;
|
||||
this.nPath.Text = "1";
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(631, 80);
|
||||
this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(68, 17);
|
||||
this.label11.TabIndex = 23;
|
||||
this.label11.Text = "n° Un OP";
|
||||
//
|
||||
// nUnOp
|
||||
//
|
||||
this.nUnOp.Location = new System.Drawing.Point(719, 76);
|
||||
this.nUnOp.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.nUnOp.Name = "nUnOp";
|
||||
this.nUnOp.Size = new System.Drawing.Size(43, 22);
|
||||
this.nUnOp.TabIndex = 22;
|
||||
this.nUnOp.Text = "1";
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(33, 112);
|
||||
this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(52, 17);
|
||||
this.label12.TabIndex = 25;
|
||||
this.label12.Text = "n° Assi";
|
||||
//
|
||||
// nAssi
|
||||
//
|
||||
this.nAssi.Location = new System.Drawing.Point(121, 108);
|
||||
this.nAssi.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.nAssi.Name = "nAssi";
|
||||
this.nAssi.Size = new System.Drawing.Size(43, 22);
|
||||
this.nAssi.TabIndex = 24;
|
||||
this.nAssi.Text = "1";
|
||||
//
|
||||
// label13
|
||||
//
|
||||
this.label13.AutoSize = true;
|
||||
this.label13.Location = new System.Drawing.Point(235, 116);
|
||||
this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new System.Drawing.Size(86, 17);
|
||||
this.label13.TabIndex = 27;
|
||||
this.label13.Text = "n° MemArea";
|
||||
//
|
||||
// nMemArea
|
||||
//
|
||||
this.nMemArea.Location = new System.Drawing.Point(323, 112);
|
||||
this.nMemArea.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.nMemArea.Name = "nMemArea";
|
||||
this.nMemArea.Size = new System.Drawing.Size(43, 22);
|
||||
this.nMemArea.TabIndex = 26;
|
||||
this.nMemArea.Text = "1";
|
||||
//
|
||||
// label14
|
||||
//
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new System.Drawing.Point(631, 116);
|
||||
this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(83, 17);
|
||||
this.label14.TabIndex = 31;
|
||||
this.label14.Text = "n° Prot Mag";
|
||||
//
|
||||
// nProtMag
|
||||
//
|
||||
this.nProtMag.Location = new System.Drawing.Point(719, 112);
|
||||
this.nProtMag.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.nProtMag.Name = "nProtMag";
|
||||
this.nProtMag.Size = new System.Drawing.Size(43, 22);
|
||||
this.nProtMag.TabIndex = 30;
|
||||
this.nProtMag.Text = "0";
|
||||
//
|
||||
// label15
|
||||
//
|
||||
this.label15.AutoSize = true;
|
||||
this.label15.Location = new System.Drawing.Point(419, 116);
|
||||
this.label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new System.Drawing.Size(72, 17);
|
||||
this.label15.TabIndex = 29;
|
||||
this.label15.Text = "n° Sli Mag";
|
||||
//
|
||||
// nSlittaMag
|
||||
//
|
||||
this.nSlittaMag.Location = new System.Drawing.Point(507, 112);
|
||||
this.nSlittaMag.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.nSlittaMag.Name = "nSlittaMag";
|
||||
this.nSlittaMag.Size = new System.Drawing.Size(43, 22);
|
||||
this.nSlittaMag.TabIndex = 28;
|
||||
this.nSlittaMag.Text = "0";
|
||||
//
|
||||
// SetupAdapter
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(923, 636);
|
||||
this.Controls.Add(this.label14);
|
||||
this.Controls.Add(this.nProtMag);
|
||||
this.Controls.Add(this.label15);
|
||||
this.Controls.Add(this.nSlittaMag);
|
||||
this.Controls.Add(this.label13);
|
||||
this.Controls.Add(this.nMemArea);
|
||||
this.Controls.Add(this.label12);
|
||||
this.Controls.Add(this.nAssi);
|
||||
this.Controls.Add(this.label11);
|
||||
this.Controls.Add(this.nUnOp);
|
||||
this.Controls.Add(this.label10);
|
||||
this.Controls.Add(this.nPath);
|
||||
this.Controls.Add(this.label9);
|
||||
this.Controls.Add(this.nTempe);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.nPress);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.nCooler);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.nLubro);
|
||||
this.Controls.Add(this.cbTipoAdapt);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.nVacAct);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.nVacPump);
|
||||
this.Controls.Add(this.btnLoad);
|
||||
this.Controls.Add(this.btnSave);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.txtFileName);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.txtAdapter);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.Name = "SetupAdapter";
|
||||
this.Text = "Adapter Setup Manager";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
@@ -423,5 +456,5 @@
|
||||
private System.Windows.Forms.TextBox nProtMag;
|
||||
private System.Windows.Forms.Label label15;
|
||||
private System.Windows.Forms.TextBox nSlittaMag;
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,19 @@
|
||||
------------------------------------------------------------------------
|
||||
Variabile | STATUS | CONTATORE | Altro (Var Analog) | Qta
|
||||
------------------------------------------------------------------------
|
||||
Rulliere X X Velocità 6
|
||||
Mot. Phase X - Velocità + Posiz 10
|
||||
Cuffia X X Velocità + Posiz 1
|
||||
Magazz UT X X Posizione 2
|
||||
Spalliere X X - 6
|
||||
Pinza Misur X X - 1
|
||||
Pinza Mandr X X - 2
|
||||
Slitta tenuta vetro X X - 1
|
||||
Mag forat post X X - 3
|
||||
Ravvivatore Presett X X - 1
|
||||
Slitta Ravvivatore X X - 2
|
||||
Fermo Riferimento X X - 2
|
||||
Piolo X X - 1
|
||||
Ventose (slitta) X X - 10
|
||||
Misuratori Pneum X X Posizione 4
|
||||
Mis.inverter (alt) - - Posizione 4
|
||||
Binary file not shown.
Reference in New Issue
Block a user