SIEMENS: recuperato feed x tutti gli assi...
singolarmente
This commit is contained in:
@@ -929,6 +929,10 @@ Namespace CNC
|
||||
''' Velocità asse
|
||||
''' </summary>
|
||||
Public Speed As Single
|
||||
''' <summary>
|
||||
''' Feed asse
|
||||
''' </summary>
|
||||
Public Feed As Single
|
||||
|
||||
End Structure
|
||||
''' <summary>
|
||||
@@ -970,12 +974,19 @@ Namespace CNC
|
||||
' RIFERIMENTO:
|
||||
' txt Giuseppe
|
||||
|
||||
ReDim itemRead(3)
|
||||
ReDim itemRead(4)
|
||||
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
|
||||
itemRead(4) = New Item("/Channel/MachineAxis/actFeedRate[u1, 1, 16]") 'legge la feed... da salvare in valore assolulto...
|
||||
|
||||
'/Channel/MachineAxis/actFeedRate[u1, 3]
|
||||
'/ChannelState/actFeedRateIpo[u1,1,16]
|
||||
'/ChannelState/cmdFeedRateIpo[u1] ??
|
||||
'/ChannelState/actFeedRateIpo[u1] ??
|
||||
'/ChannelState/actFeedRateTechIpo[u1] ??
|
||||
|
||||
Do
|
||||
Try
|
||||
@@ -995,6 +1006,7 @@ Namespace CNC
|
||||
'datiAssi(i).PosAct = itemRead(0).Value(i)
|
||||
datiAssi(i).PosAct = UIntegerToSingle(itemRead(0).Value(i))
|
||||
datiAssi(i).PosTgt = Convert.ToSingle(itemRead(3).Value(i))
|
||||
datiAssi(i).Feed = Math.Abs(Convert.ToSingle(itemRead(4).Value(i)))
|
||||
Next i
|
||||
For i As Integer = 0 To 19
|
||||
datiAssi(i).Speed = UIntegerToSingle(itemRead(1).Value(i))
|
||||
|
||||
@@ -2615,7 +2615,7 @@ namespace MTC_Adapter
|
||||
{
|
||||
|
||||
// leggo valore Codice
|
||||
locSpeedRate = BitConverter.ToUInt16(unOpSpeedMem, 2 * i);
|
||||
locSpeedRate = BitConverter.ToUInt16(unOpSpeedMem, 2 * i);
|
||||
// leggo 41° byte = indice 40 + 2*i x le var del carico UnOp
|
||||
UnOpLoad = unOpSpeedMem[40 + i];
|
||||
|
||||
|
||||
@@ -1070,7 +1070,7 @@ namespace MTC_Adapter
|
||||
vettAxis[i].mAxLoad.Value = ValAssi[i].Load;
|
||||
|
||||
// imposto feed "generale" per asse... si potrebbe usare velocità del singolo asse... !!!FARE!!! verificare
|
||||
vettAxis[i].mAxFeedAct.Value = FeedRate;
|
||||
vettAxis[i].mAxFeedAct.Value = ValAssi[i].Feed;// FeedRate;
|
||||
//vettAxis[i].mAxFeedAct.Value= ValAssi[i].Speed;
|
||||
vettAxis[i].mAxFeedOver.Value = FeedRateOver;
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
<!--<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 ="ipPLC" value="192.168.214.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>CMS_ADAPTER</NomeAdapt>
|
||||
<TipoAdapt>OSAI</TipoAdapt>
|
||||
<NomeAdapt>ADAPTER_SIEMENS</NomeAdapt>
|
||||
<TipoAdapt>SIEMENS</TipoAdapt>
|
||||
<ContOreMaccOn>0</ContOreMaccOn>
|
||||
<ContOreMaccLav>0</ContOreMaccLav>
|
||||
<ContSlittaTast>0</ContSlittaTast>
|
||||
@@ -36,6 +36,18 @@
|
||||
<dataRefList />
|
||||
</element>
|
||||
</Lubro>
|
||||
<SlittaMag>
|
||||
<element>
|
||||
<ident>SlittaMagazzino_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</SlittaMag>
|
||||
<ProtMag>
|
||||
<element>
|
||||
<ident>ProtMagazzino_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</ProtMag>
|
||||
<Cooler>
|
||||
<element>
|
||||
<ident>Cooler_01</ident>
|
||||
@@ -46,6 +58,26 @@
|
||||
<dataRefList />
|
||||
</element>
|
||||
</Cooler>
|
||||
<Press>
|
||||
<element>
|
||||
<ident>Press_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>Press_02</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</Press>
|
||||
<Temp>
|
||||
<element>
|
||||
<ident>Temp_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>Temp_02</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</Temp>
|
||||
<Path>
|
||||
<element>
|
||||
<ident>Path_01</ident>
|
||||
@@ -61,34 +93,6 @@
|
||||
<ident>UnOp_01</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>UnOp_02</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>UnOp_03</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>UnOp_04</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>UnOp_05</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>UnOp_06</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>UnOp_07</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
<element>
|
||||
<ident>UnOp_08</ident>
|
||||
<dataRefList />
|
||||
</element>
|
||||
</UnOp>
|
||||
<Axis>
|
||||
<element>
|
||||
@@ -200,7 +204,7 @@
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_09_Type</Key>
|
||||
<Value>ROTARY</Value>
|
||||
<Value>LINEAR</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_09_Grp</Key>
|
||||
@@ -213,7 +217,7 @@
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_10_Type</Key>
|
||||
<Value>ROTARY</Value>
|
||||
<Value>LINEAR</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_10_Grp</Key>
|
||||
@@ -226,7 +230,7 @@
|
||||
<dataRefList>
|
||||
<dataRef>
|
||||
<Key>Axis_11_Type</Key>
|
||||
<Value>ROTARY</Value>
|
||||
<Value>LINEAR</Value>
|
||||
</dataRef>
|
||||
<dataRef>
|
||||
<Key>Axis_11_Grp</Key>
|
||||
@@ -247,5 +251,57 @@
|
||||
</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 @@
|
||||
# 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
|
||||
# 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)
|
||||
@@ -22,40 +22,14 @@
|
||||
021|Lubro_01_Num |COUNT
|
||||
022|SlittaTastatore_Count |COUNT
|
||||
023|SlittaMagazzino_01_Count |COUNT
|
||||
024|UnOp_01_NumCambiUT |COUNT
|
||||
025|UnOp_02_NumCambiUT |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
|
||||
032|Path_02_PZ_TOT |COUNT
|
||||
033|Axis_07_DistDone |METER
|
||||
034|Axis_07_Invers |COUNT
|
||||
035|Axis_08_DistDone |METER
|
||||
036|Axis_08_Invers |COUNT
|
||||
037|Axis_09_DistDone |METER
|
||||
038|Axis_09_Invers |COUNT
|
||||
039|Axis_10_DistDone |COUNT
|
||||
040|Axis_10_Invers |COUNT
|
||||
041|Axis_11_DistDone |COUNT
|
||||
042|Axis_11_Invers |COUNT
|
||||
043|Axis_12_DistDone |METER
|
||||
044|Axis_12_Invers |COUNT
|
||||
045|UnOp_02_AccTime |COUNT
|
||||
046|UnOp_03_AccTime |COUNT
|
||||
047|UnOp_04_AccTime |COUNT
|
||||
048|UnOp_05_AccTime |COUNT
|
||||
049|UnOp_06_AccTime |COUNT
|
||||
050|UnOp_07_AccTime |COUNT
|
||||
051|UnOp_08_AccTime |COUNT
|
||||
052|Axis_07_AccTime |COUNT
|
||||
053|Axis_08_AccTime |COUNT
|
||||
054|Axis_09_AccTime |COUNT
|
||||
055|Axis_10_AccTime |COUNT
|
||||
056|Axis_11_AccTime |COUNT
|
||||
057|Axis_12_AccTime |COUNT
|
||||
058|Lubro_02_Num |COUNT
|
||||
059|BloccaggioMorseTav1_Count |COUNT
|
||||
060|BloccaggioMorseTav2_Count |COUNT
|
||||
032|Counter_001 |COUNT
|
||||
033|Counter_002 |COUNT
|
||||
034|Counter_003 |COUNT
|
||||
@@ -4,12 +4,4 @@
|
||||
003|VacPump_02_Status |BIT
|
||||
004|Cooler_01_Status |BIT
|
||||
005|Cooler_02_Status |BIT
|
||||
006|UnOp_01_Status |BIT
|
||||
007|UnOp_02_Status |BIT
|
||||
008|UnOp_03_Status |BIT
|
||||
009|UnOp_04_Status |BIT
|
||||
010|UnOp_05_Status |BIT
|
||||
011|UnOp_06_Status |BIT
|
||||
012|UnOp_07_Status |BIT
|
||||
013|UnOp_08_Status |BIT
|
||||
014|Press_OK |BIT
|
||||
006|UnOp_01_Status |BIT
|
||||
+1690
-1690
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user