From e7885d90b6c8da2eb21831b97975f55edc8bca82 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 5 Jul 2017 07:54:25 +0000 Subject: [PATCH] =?UTF-8?q?OmagCUT=201.8f8=20:=20-=20aggiunta=20possibilit?= =?UTF-8?q?=C3=A0=20di=20ruotare=20il=20grezzo=20mentre=20si=20sposta.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ConstIni.vb | 1 + ConstMachIni.vb | 3 ++ CurrentMachine.vb | 12 ++++++++ MoveRawPartPage.xaml | 24 +++++++++++++++ MoveRawPartPage.xaml.vb | 63 ++++++++++++++++++++++++++++++++++++++ My Project/AssemblyInfo.vb | 4 +-- RawPartPageUC.xaml.vb | 7 +++++ SplitAuto.vb | 4 +-- VacuumCups.vb | 48 +++++++++++++++++++---------- 9 files changed, 145 insertions(+), 21 deletions(-) diff --git a/ConstIni.vb b/ConstIni.vb index 52c97ad..476bb5a 100644 --- a/ConstIni.vb +++ b/ConstIni.vb @@ -126,6 +126,7 @@ Module ConstIni Public Const S_RAWMOVE As String = "RawMove" Public Const K_RAWSTEP As String = "Step" + Public Const K_RAWROTATION As String = "Rotation" Public Const K_PERPENDICULAR As String = "Perpendicular" Public Const S_CAMERA As String = "Camera" diff --git a/ConstMachIni.vb b/ConstMachIni.vb index b649aa6..fed5694 100644 --- a/ConstMachIni.vb +++ b/ConstMachIni.vb @@ -107,6 +107,9 @@ Public Const K_MACH_NEST_ALIGNED As String = "Aligned" Public Const K_MACH_WASHING As String = "Washing" + Public Const S_MACH_RAWMOVE As String = "RawMove" + Public Const K_MACH_RM_ROTATE As String = "Rotate" + Public Const S_TOOLCHANGER As String = "ToolChanger" Public Const K_NUMBER As String = "Number" Public Const K_POS As String = "Pos" diff --git a/CurrentMachine.vb b/CurrentMachine.vb index 7053e52..b87aeb6 100644 --- a/CurrentMachine.vb +++ b/CurrentMachine.vb @@ -46,6 +46,9 @@ Public Class CurrentMachine ' Massimo diametro lama per tastatura grezzo Private m_dMaxSawDiamForProbe As Double = 630 + ' Possibilità di ruotare i grezzi durante separa e muovi + Private m_bRawSplMovRotate As Boolean = False + ' Flag che indicano stato tipologia utensili (attivo/non attivo) Private m_bSaw As Boolean = False Private m_bDrill As Boolean = False @@ -230,6 +233,13 @@ Public Class CurrentMachine End Get End Property + + Friend ReadOnly Property bRawSplMovRotate As Boolean + Get + Return m_bRawSplMovRotate + End Get + End Property + Friend Property dSafeZ As Double Get If EgtMdbGetGeneralParam(MCH_GP.SAFEZ, m_dSafeZ) Then @@ -678,6 +688,8 @@ Public Class CurrentMachine ' Leggo limiti diametro lama per altre operazioni m_dMaxSawDiamForVac = GetPrivateProfileDouble(S_TOOLS, K_MAXSAWDIAMFORVAC, 630, sMachIniFile) m_dMaxSawDiamForProbe = GetPrivateProfileDouble(S_TOOLS, K_MAXSAWDIAMFORPROBE, 630, sMachIniFile) + ' Leggo flag abilitazione rotazione grezzi durante spezza e muovi + m_bRawSplMovRotate = (GetPrivateProfileInt(S_MACH_RAWMOVE, K_MACH_RM_ROTATE, 0, sMachIniFile) <> 0) ' Leggo flag presenza tipologie lavorazioni ' lama m_bSawing = (GetPrivateProfileInt(S_MACHININGS, K_SAWING, 0, sMachIniFile) > 0) diff --git a/MoveRawPartPage.xaml b/MoveRawPartPage.xaml index ad4ab7c..0a0ef2c 100644 --- a/MoveRawPartPage.xaml +++ b/MoveRawPartPage.xaml @@ -96,6 +96,30 @@ VerticalAlignment="Center" /> + + + + + + + + + + + + + +