Aggiunto TTCoord (ma richiede opzione non presente?)

This commit is contained in:
Samuele E. Locatelli
2016-05-19 18:19:47 +02:00
parent 2f318c74d0
commit e4a4512e4b
3 changed files with 40 additions and 1 deletions
Binary file not shown.
@@ -791,6 +791,40 @@ Namespace CNC
End Function
Public Function getPathTTCoord() As Focas1.ODB3DHDL
' NONVA!!!! richiede extra..
' RIFERIMENTO:
' C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\CMS_orig\A02B-0207-K737_04.20\Document\SpecE\Position\cnc_rd3dtooltip.htm
Dim nPathIdx As Integer
Dim nNumAxisRead As Integer
Dim nReturn As Integer
Dim ttCoord As Focas1.ODB3DHDL
' inizializzo
ttCoord = New Focas1.ODB3DHDL
'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_rd3dtooltip(nLibHandle(nPathIdx), ttCoord)
If F_CheckRetError_Cnc(nReturn, "cnc_rd3dtooltip RefreshPathTTCoord CNC.FANUC.CMS_CncLib") Then
Throw New CmsNcException("ERR cnc_rd3dtooltip RefreshPathTTCoord CNC.FANUC.CMS_CncLib")
End If
End If
Return ttCoord
End Function
Public Function getSpindleSpeed() As Focas1.ODBSPEED
' RIFERIMENTO:
' C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\CMS_orig\A02B-0207-K737_04.20\Document\SpecE\Position\cnc_rdspeed.htm
+6 -1
View File
@@ -662,7 +662,7 @@ namespace MTC_Sim
// recupero vettore generale G MODE
inizio = DateTime.Now;
CMSCncLib.Focas1.ODBGCD vettGCodes = FANUC_ref.getPathGCodeMod();
if (utils.CRB("recTime")) TimingData.addResult("R{0}-GCodModali", DateTime.Now.Subtract(inizio).Ticks);
if (utils.CRB("recTime")) TimingData.addResult("R{0}-GCodModal", DateTime.Now.Subtract(inizio).Ticks);
string GCodAttivi = "";
GCodAttivi += string.Format("# {0} #", vettGCodes.gcd0.code);
@@ -702,6 +702,10 @@ namespace MTC_Sim
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.ODB3DHDL vettTTCoord = FANUC_ref.getPathTTCoord();
//if (utils.CRB("recTime")) TimingData.addResult("R{0}-TTCoord", DateTime.Now.Subtract(inizio).Ticks);
// FARE!! per ora solo 1 path...
int numPath = 1;
@@ -711,6 +715,7 @@ namespace MTC_Sim
vettPath[i].mPathFeed.Value = FeedRate;
vettPath[i].mPathCodG_Act.Value = GCodAttivi;
//vettPath[i].mPathFeedOver.Value = PtData.PathFeedrateOver;
//vettPath[i].mPathRapidOver.Value = PtData.PathRapidOver;
//vettPath[i].mPathPosActX.Value = PtData.PathPosAct.x;