Inizio processing dati strobe x path...

This commit is contained in:
Samuele E. Locatelli
2019-08-03 09:45:59 +02:00
parent 3e0a4d2e62
commit d5bf08a90d
2 changed files with 42 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
{
"workbench.colorCustomizations": {}
}
+39 -2
View File
@@ -217,8 +217,44 @@ namespace SCMA
/// </summary>
public override void processStrobe()
{
// 2019.08.03 modifica con processing doppio path...
// inizializzo userAction
string UserAction = "";
// oggetti "accessori" x processing (1 byte di strobe x ogni path)
StFlag8 currStrobe;
StFlag8 currAck;
// processo ora i dati dei path... di sicuro il primo
currStrobe = (StFlag8)(Strobes[4]); // 5° byte
currAck = (StFlag8)(Acknowl[4]); // 5° byte
procPathStrobes(0, currStrobe, currAck, 10660, 10504, ref UserAction);
//...e se c'è pure il secondo...
if (currAdpConf.nPath > 1)
{
currStrobe = (StFlag8)(Strobes[6]); // 7° byte
currAck = (StFlag8)(Acknowl[6]); // 7° byte
procPathStrobes(1, currStrobe, currAck, 12110, 10506, ref UserAction);
}
//2019.07.22 NON RIPORTO USER_ACTION x SOUR
if (currGateway.protocollo != gwProtocol.SOURS)
{
// 2017.01.16 INVIO vettore azioni (1 o +)... SE CE NE SONO!
if (UserAction.Trim() != "")
{
currGateway.updateItemNodeValue("USER_ACTION", UserAction.Trim());
}
}
// verifico strobe dell'auto-test
currStrobe = (StFlag8)(Strobes[7]); // 8° byte
currAck = (StFlag8)(Acknowl[7]); // 8° byte
processTestStrobe(currStrobe, currAck, 10507, 1);
// gestione bit di watchdog... sulal DWord successiva
sendWatchDog();
#if false
string TestingData = "";
string UnkStrobe = "";
// !!!FARE!!! multipath...
@@ -363,7 +399,8 @@ namespace SCMA
}
}
sendWatchDog();
sendWatchDog();
#endif
}
/// <summary>
/// Scrive watchdog
@@ -1098,7 +1135,7 @@ namespace SCMA
GCodAttivi += string.Format("[{0}]", vettGCodes.gcd3.code);
}
// 2017.12.27 gestione assi limitati --> non sono abilitate le funzioni £D, quindi DISABILITO da conf...
// 2017.12.27 gestione assi limitati --> non sono abilitate le funzioni 3D, quindi DISABILITO da conf...
CMSCncLib.Focas1.ODB5AXMAN vettTTCoord = new CMSCncLib.Focas1.ODB5AXMAN();
if (!utils.CRB("FanucLimit3D"))
{