Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| df3b6ae657 |
@@ -40,7 +40,7 @@ Public Class LeftPanelVM
|
|||||||
Return m_SelChannel
|
Return m_SelChannel
|
||||||
End Get
|
End Get
|
||||||
Set(ByVal value As IdNameStruct)
|
Set(ByVal value As IdNameStruct)
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.SETCHANNEL, value.Id))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.SETCHANNEL, value.Id))
|
||||||
m_SelChannel = value
|
m_SelChannel = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
@@ -86,7 +86,7 @@ Public Class LeftPanelVM
|
|||||||
Return m_SelOPMode
|
Return m_SelOPMode
|
||||||
End Get
|
End Get
|
||||||
Set(ByVal value As OPState)
|
Set(ByVal value As OPState)
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.SETOPMODE, value.Id))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.SETOPMODE, value.Id))
|
||||||
' se MDI
|
' se MDI
|
||||||
If value.Id = OPModes.Mdi Then
|
If value.Id = OPModes.Mdi Then
|
||||||
' mostro pagina comandi MDI
|
' mostro pagina comandi MDI
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ Public Class MDIPageVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Friend Sub SendMDI()
|
Friend Sub SendMDI()
|
||||||
If Not String.IsNullOrWhiteSpace(m_sMDICommand_Text) Then
|
If Not String.IsNullOrWhiteSpace(m_sMDICommand_Text) Then
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.MDI, m_sMDICommand_Text))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.MDI, m_sMDICommand_Text))
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -427,11 +427,11 @@ Public Class MachCommandMessagePanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub Disconnect()
|
Public Sub Disconnect()
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.DISCONNECT))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.DISCONNECT))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Sub SetOPState(OpState As Integer)
|
Public Sub SetOPState(OpState As Integer)
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.SETOPMODE))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.SETOPMODE))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public ReadOnly Property Start_Command As ICommand
|
Public ReadOnly Property Start_Command As ICommand
|
||||||
@@ -442,7 +442,7 @@ Public Class MachCommandMessagePanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub Start(ByVal param As Object)
|
Public Sub Start(ByVal param As Object)
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.START))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.START))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public ReadOnly Property Stop_Command As ICommand
|
Public ReadOnly Property Stop_Command As ICommand
|
||||||
@@ -453,7 +453,7 @@ Public Class MachCommandMessagePanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub [Stop](ByVal param As Object)
|
Public Sub [Stop](ByVal param As Object)
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.STOP_))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.STOP_))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public ReadOnly Property Reset_Command As ICommand
|
Public ReadOnly Property Reset_Command As ICommand
|
||||||
@@ -464,7 +464,7 @@ Public Class MachCommandMessagePanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub Reset(ByVal param As Object)
|
Public Sub Reset(ByVal param As Object)
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.RESET))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.RESET))
|
||||||
' annullo stato di pronto ad essere lavorato di tutti i programmi
|
' annullo stato di pronto ad essere lavorato di tutti i programmi
|
||||||
If Not IsNothing(Map.refProjectVM.SupervisorMachGroupPanelVM) Then Map.refProjectVM.SupervisorMachGroupPanelVM.ResetAllMachGroups()
|
If Not IsNothing(Map.refProjectVM.SupervisorMachGroupPanelVM) Then Map.refProjectVM.SupervisorMachGroupPanelVM.ResetAllMachGroups()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -477,7 +477,7 @@ Public Class MachCommandMessagePanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub [Step](ByVal param As Object)
|
Public Sub [Step](ByVal param As Object)
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.STEP_))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.STEP_))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public ReadOnly Property SetPoint_Command As ICommand
|
Public ReadOnly Property SetPoint_Command As ICommand
|
||||||
@@ -488,7 +488,7 @@ Public Class MachCommandMessagePanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub SetPoint(ByVal param As Object)
|
Public Sub SetPoint(ByVal param As Object)
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.SETPOINT))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.SETPOINT))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
@@ -500,7 +500,7 @@ Public Class MachCommandMessagePanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub DeleteAlarms(ByVal param As Object)
|
Public Sub DeleteAlarms(ByVal param As Object)
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.DELETEALARMS))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.DELETEALARMS))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Function GetVarPathByName(Name As String) As String
|
Public Function GetVarPathByName(Name As String) As String
|
||||||
|
|||||||
@@ -10,9 +10,6 @@ Imports EgtBEAMWALL.Supervisor.CommVar
|
|||||||
|
|
||||||
Public Class MachManaging
|
Public Class MachManaging
|
||||||
|
|
||||||
' lock per aggiunta elemento a lista MachGroup
|
|
||||||
Private Shared Lock_CommandList As New Object
|
|
||||||
|
|
||||||
Private m_bConnected As Boolean = False
|
Private m_bConnected As Boolean = False
|
||||||
Public ReadOnly Property bConnected As Boolean
|
Public ReadOnly Property bConnected As Boolean
|
||||||
Get
|
Get
|
||||||
@@ -56,22 +53,6 @@ Public Class MachManaging
|
|||||||
Return m_CommandList
|
Return m_CommandList
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
Friend Shared Sub AddToCommandList(value As ThreadCommand)
|
|
||||||
SyncLock Lock_CommandList
|
|
||||||
' EgtOutLog("Inizio ciclo rimozioni")
|
|
||||||
For CommandIndex = m_CommandList.Count - 1 To 0 Step -1
|
|
||||||
Dim Command As ThreadCommand = m_CommandList(CommandIndex)
|
|
||||||
If Command.ProcessingStatus = ThreadCommand.ProcessingStatuses.DONE Then
|
|
||||||
' EgtOutLog("Inizio rimozione comando")
|
|
||||||
m_CommandList.Remove(Command)
|
|
||||||
' EgtOutLog("Fine rimozione comando")
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
' EgtOutLog("Fine ciclo rimozioni")
|
|
||||||
CommandList.Add(value)
|
|
||||||
' EgtOutLog("Count dopo aggiunta: " & CommandList.Count)
|
|
||||||
End SyncLock
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private m_bStartPending As Boolean = False
|
Private m_bStartPending As Boolean = False
|
||||||
Public ReadOnly Property StartPending As Boolean
|
Public ReadOnly Property StartPending As Boolean
|
||||||
@@ -657,7 +638,7 @@ Public Class MachManaging
|
|||||||
|
|
||||||
' se non impostata data start
|
' se non impostata data start
|
||||||
If MachGroup.dtStartTime = DateTime.MinValue Then
|
If MachGroup.dtStartTime = DateTime.MinValue Then
|
||||||
' EgtOutLog("Start date not set on Prod " & nP_Prod & " Machgroup " & nP_Machgroup)
|
EgtOutLog("Start date not set on Prod " & nP_Prod & " Machgroup " & nP_Machgroup)
|
||||||
Dim dtStart As DateTime = MachGroup.dtEndTime - TimeSpan.FromSeconds(60)
|
Dim dtStart As DateTime = MachGroup.dtEndTime - TimeSpan.FromSeconds(60)
|
||||||
' provo a recuperare tempo stimato
|
' provo a recuperare tempo stimato
|
||||||
If MachGroup.nCALC_TIME > 0 Then
|
If MachGroup.nCALC_TIME > 0 Then
|
||||||
@@ -741,7 +722,7 @@ Public Class MachManaging
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function SendNextProgram() As Boolean
|
Private Function SendNextProgram() As Boolean
|
||||||
' EgtOutLog("Inizio SendNextProgram")
|
EgtOutLog("Inizio SendNextProgram")
|
||||||
Dim bSent As Boolean = False
|
Dim bSent As Boolean = False
|
||||||
If (CurrentMachine.NCType = NCTypes.TPA AndAlso Not m_bStartPending AndAlso Tpa.opState = MachineOperatingState.Pending) OrElse
|
If (CurrentMachine.NCType = NCTypes.TPA AndAlso Not m_bStartPending AndAlso Tpa.opState = MachineOperatingState.Pending) OrElse
|
||||||
(CurrentMachine.NCType = NCTypes.NUM_FLEXIUM AndAlso Not Num_Flexium.bIsTransferActive) OrElse
|
(CurrentMachine.NCType = NCTypes.NUM_FLEXIUM AndAlso Not Num_Flexium.bIsTransferActive) OrElse
|
||||||
@@ -749,20 +730,20 @@ Public Class MachManaging
|
|||||||
(CurrentMachine.NCType = NCTypes.NUM_AXIUM_PCTOOLKIT AndAlso Not Num_Axium_PCToolkit.bIsTransferActive) Then ' Or Tpa.opState = MachineOperatingState.Start) Then
|
(CurrentMachine.NCType = NCTypes.NUM_AXIUM_PCTOOLKIT AndAlso Not Num_Axium_PCToolkit.bIsTransferActive) Then ' Or Tpa.opState = MachineOperatingState.Start) Then
|
||||||
' verifico se c'e' un programma da lanciare
|
' verifico se c'e' un programma da lanciare
|
||||||
If Not IsNothing(Map.refProjectVM.SupervisorMachGroupPanelVM) Then
|
If Not IsNothing(Map.refProjectVM.SupervisorMachGroupPanelVM) Then
|
||||||
' EgtOutLog("Start " & DateTime.Now())
|
EgtOutLog("Start " & DateTime.Now())
|
||||||
Dim bMachGroupNotReady As Boolean = False
|
Dim bMachGroupNotReady As Boolean = False
|
||||||
SyncLock m_Lock_SendProgram
|
SyncLock m_Lock_SendProgram
|
||||||
For Each MyMachGroup As MyMachGroupVM In Map.refProjectVM.SupervisorMachGroupPanelVM.MachGroupVMList
|
For Each MyMachGroup As MyMachGroupVM In Map.refProjectVM.SupervisorMachGroupPanelVM.MachGroupVMList
|
||||||
' EgtOutLog("Ciclo su name: " & MyMachGroup.Name & " id: " & MyMachGroup.Id)
|
EgtOutLog("Ciclo su name: " & MyMachGroup.Name & " id: " & MyMachGroup.Id)
|
||||||
If Not MyMachGroup.bSentToMachine AndAlso (MyMachGroup.dtStartTime = DateTime.MinValue OrElse
|
If Not MyMachGroup.bSentToMachine AndAlso (MyMachGroup.dtStartTime = DateTime.MinValue OrElse
|
||||||
(Map.refSupervisorManagerVM.CurrProd.nType = BWType.WALL AndAlso MyMachGroup.bResetWhileCutting)) Then
|
(Map.refSupervisorManagerVM.CurrProd.nType = BWType.WALL AndAlso MyMachGroup.bResetWhileCutting)) Then
|
||||||
' EgtOutLog(MyMachGroup.Name & " id: " & MyMachGroup.Id & " è da fare")
|
EgtOutLog(MyMachGroup.Name & " id: " & MyMachGroup.Id & " è da fare")
|
||||||
' verifico se ricalcolo finito
|
' verifico se ricalcolo finito
|
||||||
If MyMachGroup.bReadyForMachining AndAlso If(CurrentMachine.NCType = NCTypes.NUM_FLEXIUM Or CurrentMachine.NCType = NCTypes.NUM_AXIUM_APSERVER OrElse CurrentMachine.NCType = NCTypes.NUM_AXIUM_PCTOOLKIT, Not MyMachGroup.bSendingToMachine, True) Then
|
If MyMachGroup.bReadyForMachining AndAlso If(CurrentMachine.NCType = NCTypes.NUM_FLEXIUM Or CurrentMachine.NCType = NCTypes.NUM_AXIUM_APSERVER OrElse CurrentMachine.NCType = NCTypes.NUM_AXIUM_PCTOOLKIT, Not MyMachGroup.bSendingToMachine, True) Then
|
||||||
' EgtOutLog(MyMachGroup.Name & " id: " & MyMachGroup.Id & " pronto per essere lavorato")
|
EgtOutLog(MyMachGroup.Name & " id: " & MyMachGroup.Id & " pronto per essere lavorato")
|
||||||
' lo lancio
|
' lo lancio
|
||||||
bSent = SendProgram(MyMachGroup.CnFilePath(), MyMachGroup.Name)
|
bSent = SendProgram(MyMachGroup.CnFilePath(), MyMachGroup.Name)
|
||||||
' EgtOutLog(MyMachGroup.Name & " id: " & MyMachGroup.Id & " mandato " & DateTime.Now() & " " & MyMachGroup.Name & " " & bSent.ToString())
|
EgtOutLog(MyMachGroup.Name & " id: " & MyMachGroup.Id & " mandato " & DateTime.Now() & " " & MyMachGroup.Name & " " & bSent.ToString())
|
||||||
Select Case CurrentMachine.NCType
|
Select Case CurrentMachine.NCType
|
||||||
Case NCTypes.TPA
|
Case NCTypes.TPA
|
||||||
MyMachGroup.SetSentToMachine(bSent)
|
MyMachGroup.SetSentToMachine(bSent)
|
||||||
@@ -774,7 +755,7 @@ Public Class MachManaging
|
|||||||
Else
|
Else
|
||||||
' programma non ancora pronto, esco per attendere
|
' programma non ancora pronto, esco per attendere
|
||||||
bMachGroupNotReady = True
|
bMachGroupNotReady = True
|
||||||
' EgtOutLog(MyMachGroup.Name & " id: " & MyMachGroup.Id & " non ancora pronto per essere mandato")
|
EgtOutLog(MyMachGroup.Name & " id: " & MyMachGroup.Id & " non ancora pronto per essere mandato")
|
||||||
Exit For
|
Exit For
|
||||||
'Return False
|
'Return False
|
||||||
End If
|
End If
|
||||||
@@ -782,7 +763,7 @@ Public Class MachManaging
|
|||||||
Next
|
Next
|
||||||
End SyncLock
|
End SyncLock
|
||||||
If bMachGroupNotReady Then Return False
|
If bMachGroupNotReady Then Return False
|
||||||
' EgtOutLog("End " & DateTime.Now())
|
EgtOutLog("End " & DateTime.Now())
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Return bSent
|
Return bSent
|
||||||
@@ -790,17 +771,10 @@ Public Class MachManaging
|
|||||||
|
|
||||||
Private Sub CommandList_CollectionChanged(sender As Object, e As NotifyCollectionChangedEventArgs)
|
Private Sub CommandList_CollectionChanged(sender As Object, e As NotifyCollectionChangedEventArgs)
|
||||||
If Not IsNothing(e.NewItems) Then
|
If Not IsNothing(e.NewItems) Then
|
||||||
' EgtOutLog("Inizio ciclo esecuzione comandi")
|
For Each Command In e.NewItems
|
||||||
Dim nCommandCount As Integer = e.NewItems.Count
|
|
||||||
For CommandIndex = 0 To nCommandCount - 1
|
|
||||||
Dim Command As ThreadCommand = e.NewItems(CommandIndex)
|
|
||||||
If Command.ProcessingStatus = ThreadCommand.ProcessingStatuses.WAITING Then
|
|
||||||
Command.SetProcessingStatus(ThreadCommand.ProcessingStatuses.PROCESSING)
|
|
||||||
ExecuteCommand(DirectCast(Command, ThreadCommand))
|
ExecuteCommand(DirectCast(Command, ThreadCommand))
|
||||||
Command.SetProcessingStatus(ThreadCommand.ProcessingStatuses.DONE)
|
m_CommandList.Remove(Command)
|
||||||
End If
|
|
||||||
Next
|
Next
|
||||||
' EgtOutLog("Fine ciclo esecuzione di " & nCommandCount & " comandi")
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1070,7 +1044,7 @@ Public Class MachManaging
|
|||||||
Num_Axium_APServer.StartTransfer()
|
Num_Axium_APServer.StartTransfer()
|
||||||
Return True
|
Return True
|
||||||
Case NCTypes.NUM_AXIUM_PCTOOLKIT
|
Case NCTypes.NUM_AXIUM_PCTOOLKIT
|
||||||
' EgtOutLog("Pre Download")
|
EgtOutLog("Pre Download")
|
||||||
Dim nFileType As Integer = 0
|
Dim nFileType As Integer = 0
|
||||||
If Integer.TryParse(ProgramId, nFileType) AndAlso nFileType > 0 Then
|
If Integer.TryParse(ProgramId, nFileType) AndAlso nFileType > 0 Then
|
||||||
Num_Axium_PCToolkit.FileDownload(nFileType * 10, ProgramPath)
|
Num_Axium_PCToolkit.FileDownload(nFileType * 10, ProgramPath)
|
||||||
|
|||||||
@@ -54,12 +54,6 @@ End Class
|
|||||||
|
|
||||||
Public Class ThreadCommand
|
Public Class ThreadCommand
|
||||||
|
|
||||||
Public Enum ProcessingStatuses
|
|
||||||
WAITING = 1
|
|
||||||
PROCESSING = 2
|
|
||||||
DONE = 3
|
|
||||||
End Enum
|
|
||||||
|
|
||||||
Private m_CommandType As CommandTypes
|
Private m_CommandType As CommandTypes
|
||||||
Public ReadOnly Property CommandType As CommandTypes
|
Public ReadOnly Property CommandType As CommandTypes
|
||||||
Get
|
Get
|
||||||
@@ -101,16 +95,6 @@ Public Class ThreadCommand
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_ProcessingStatus As ProcessingStatuses = ProcessingStatuses.WAITING
|
|
||||||
Public ReadOnly Property ProcessingStatus As ProcessingStatuses
|
|
||||||
Get
|
|
||||||
Return m_ProcessingStatus
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
Friend Sub SetProcessingStatus(value As ProcessingStatuses)
|
|
||||||
m_ProcessingStatus = value
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Protected Sub New()
|
Protected Sub New()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -277,31 +277,31 @@ Public Class MainMenuVM
|
|||||||
|
|
||||||
Private Function InitINPUTS() As Boolean
|
Private Function InitINPUTS() As Boolean
|
||||||
' fermo e riavvio lettura variabili per includere quelle della pagina input
|
' fermo e riavvio lettura variabili per includere quelle della pagina input
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.STOPREAD_NUMFLEXIUM))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.STOPREAD_NUMFLEXIUM))
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.READ_NUMFLEXIUM))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.READ_NUMFLEXIUM))
|
||||||
Map.refMainWindowVM.NotifyPropertyChanged(NameOf(Map.refMainWindowVM.nSelTabPage))
|
Map.refMainWindowVM.NotifyPropertyChanged(NameOf(Map.refMainWindowVM.nSelTabPage))
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function ExitINPUTS() As Boolean
|
Private Function ExitINPUTS() As Boolean
|
||||||
' fermo e riavvio lettura variabili per includere quelle della pagina input
|
' fermo e riavvio lettura variabili per includere quelle della pagina input
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.STOPREAD_NUMFLEXIUM))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.STOPREAD_NUMFLEXIUM))
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.READ_NUMFLEXIUM))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.READ_NUMFLEXIUM))
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function InitOUTPUTS() As Boolean
|
Private Function InitOUTPUTS() As Boolean
|
||||||
' fermo e riavvio lettura variabili per includere quelle della pagina input
|
' fermo e riavvio lettura variabili per includere quelle della pagina input
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.STOPREAD_NUMFLEXIUM))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.STOPREAD_NUMFLEXIUM))
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.READ_NUMFLEXIUM))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.READ_NUMFLEXIUM))
|
||||||
Map.refMainWindowVM.NotifyPropertyChanged(NameOf(Map.refMainWindowVM.nSelTabPage))
|
Map.refMainWindowVM.NotifyPropertyChanged(NameOf(Map.refMainWindowVM.nSelTabPage))
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function ExitOUTPUTS() As Boolean
|
Private Function ExitOUTPUTS() As Boolean
|
||||||
' fermo e riavvio lettura variabili per includere quelle della pagina input
|
' fermo e riavvio lettura variabili per includere quelle della pagina input
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.STOPREAD_NUMFLEXIUM))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.STOPREAD_NUMFLEXIUM))
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.READ_NUMFLEXIUM))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.READ_NUMFLEXIUM))
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ Public Class MainWindowVM
|
|||||||
Return
|
Return
|
||||||
End If
|
End If
|
||||||
' disconnetto comunicazione con macchina
|
' disconnetto comunicazione con macchina
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.DISCONNECT))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.DISCONNECT))
|
||||||
' termino thread di comunicazione con Db ed altri programmi
|
' termino thread di comunicazione con Db ed altri programmi
|
||||||
ViewerOptimizerCommThread.StopThread()
|
ViewerOptimizerCommThread.StopThread()
|
||||||
' Verifico modifica parametri in Configurazione e chiedo il salvataggio
|
' Verifico modifica parametri in Configurazione e chiedo il salvataggio
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ Public Class Variable
|
|||||||
Return CommVar.sValue
|
Return CommVar.sValue
|
||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
MachManaging.AddToCommandList(ThreadCommand.CreateCommand(CommandTypes.WRITE, {CommVar.nType}, Nothing, {CommVar.sAddress, value}))
|
MachManaging.CommandList.Add(ThreadCommand.CreateCommand(CommandTypes.WRITE, {CommVar.nType}, Nothing, {CommVar.sAddress, value}))
|
||||||
NotifyPropertyChanged(NameOf(sValue))
|
NotifyPropertyChanged(NameOf(sValue))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|||||||
@@ -121,8 +121,16 @@ Public Class BTLFeatureVM
|
|||||||
Set(value As String)
|
Set(value As String)
|
||||||
Dim nTemp As Integer = 0
|
Dim nTemp As Integer = 0
|
||||||
If Integer.TryParse(value, nTemp) Then
|
If Integer.TryParse(value, nTemp) Then
|
||||||
|
If EgtSetInfo(nFeatureId, BTL_FTR_PRIORITY, nTemp) Then
|
||||||
m_BTLFeatureM.nPriority = nTemp
|
m_BTLFeatureM.nPriority = nTemp
|
||||||
EgtSetInfo( nFeatureId, BTL_FTR_PRIORITY, m_BTLFeatureM.nPriority)
|
' setto feature da ricalcolare
|
||||||
|
ResetCalcFeature()
|
||||||
|
' se in View
|
||||||
|
If Map.refMainMenuVM.SelPage = Pages.VIEW Then
|
||||||
|
' imposto modificato per copie
|
||||||
|
EgtDuploSetModified(m_BTLPartM.nPartId)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(sPriority))
|
NotifyPropertyChanged(NameOf(sPriority))
|
||||||
End Set
|
End Set
|
||||||
|
|||||||
@@ -2164,7 +2164,7 @@ Public Class BTLPartVM
|
|||||||
' imposto path disegno da mostrare in BottomPanel
|
' imposto path disegno da mostrare in BottomPanel
|
||||||
Dim SelPBTLParam As BTLParamVM = Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.SelPBTLParam
|
Dim SelPBTLParam As BTLParamVM = Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.SelPBTLParam
|
||||||
If Not IsNothing(SelPBTLParam) Then Map.refBottomPanelVM.SetCurrDraw(SelPBTLParam.sDrawPath)
|
If Not IsNothing(SelPBTLParam) Then Map.refBottomPanelVM.SetCurrDraw(SelPBTLParam.sDrawPath)
|
||||||
Case NameOf(sender.bDO)
|
Case NameOf(sender.bDO), NameOf(sender.sPriority)
|
||||||
NotifyPropertyChanged(NameOf(bDOALL))
|
NotifyPropertyChanged(NameOf(bDOALL))
|
||||||
' setto pezzo da ricalcolare
|
' setto pezzo da ricalcolare
|
||||||
'ResetCalcTotalPart()
|
'ResetCalcTotalPart()
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user