diff --git a/AgentBin/SCM.xml b/AgentBin/SCM.xml new file mode 100644 index 0000000..51ab2af --- /dev/null +++ b/AgentBin/SCM.xml @@ -0,0 +1,293 @@ + + +
+ + + Test machine SCM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MTC_Adapter/CMSCncLib/CMSCncLib.vbproj b/MTC_Adapter/CMSCncLib/CMSCncLib.vbproj index 8908e49..715cbca 100644 --- a/MTC_Adapter/CMSCncLib/CMSCncLib.vbproj +++ b/MTC_Adapter/CMSCncLib/CMSCncLib.vbproj @@ -20,6 +20,7 @@ bin\Debug\ CMSCncLib.xml 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + FS30D=1 pdbonly @@ -29,6 +30,7 @@ bin\Release\ CMSCncLib.xml 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + FS30D=1 On @@ -51,6 +53,7 @@ pdbonly AnyCPU MinimumRecommendedRules.ruleset + FS30D=1 true @@ -61,6 +64,7 @@ pdbonly AnyCPU MinimumRecommendedRules.ruleset + FS30D=1 true @@ -71,6 +75,7 @@ pdbonly AnyCPU MinimumRecommendedRules.ruleset + FS30D=1 diff --git a/MTC_Adapter/CMSCncLib/CNC/CNC.FANUC/CNC.FANUC.vb b/MTC_Adapter/CMSCncLib/CNC/CNC.FANUC/CNC.FANUC.vb index 6186eea..76cc323 100644 --- a/MTC_Adapter/CMSCncLib/CNC/CNC.FANUC/CNC.FANUC.vb +++ b/MTC_Adapter/CMSCncLib/CNC/CNC.FANUC/CNC.FANUC.vb @@ -251,96 +251,6 @@ Namespace CNC Next i End Sub - Public Overrides Function SetCncWindowSize() As Boolean - Dim CncWindowSizeNew As Size - - Select Case Config.Settings.Settings.OpPanel_ScreenSize 'Screen.PrimaryScreen.Bounds.Size - Case New Size(800, 600) '10" - CncWindowSizeNew = New System.Drawing.Size(640, 500) - Case New Size(1024, 768) '15" - CncWindowSizeNew = New System.Drawing.Size(800, 620) - Case New Size(2048, 768) '15" doppio monitor - CncWindowSizeNew = New System.Drawing.Size(800, 620) - Case New Size(1280, 800) '15,6" widescreen - CncWindowSizeNew = New System.Drawing.Size(800, 620) '' - Case New Size(1280, 1024) '17" - CncWindowSizeNew = New System.Drawing.Size(960, 740) - Case Else - CncWindowSizeNew = New System.Drawing.Size(800, 620) - End Select - If _CncWindowSize <> CncWindowSizeNew Then - _CncWindowSize = CncWindowSizeNew - Return True - Else - Return False - End If - End Function - - Public Overrides Sub RunCnc() - Dim szProgramFilesDir As String - Dim szPath As String = "" - Dim szParam As String = "" - Dim key As RegistryKey - Dim myProcess As System.Diagnostics.Process - - If Not FindCncWindow() Then - key = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion") - szProgramFilesDir = key.GetValue("ProgramFilesDir") - - Select Case _CncScreen_connectionType - Case FANUC.ConnectionType.Ethernet - szPath = szProgramFilesDir & "\CNCScreenE\CNCScrnE.exe" - szParam = "/H=" & Config.Settings.Settings.IpFanuc & ":" & CStr(Config.Settings.Settings.PortIpFanuc) & "/T=30" - Case FANUC.ConnectionType.Hssb - szPath = szProgramFilesDir & "\CNCScreen\CNCScrn.exe" - szParam = "" - End Select - - 'ShellExecute(0, "open", szPath, szParam, vbNullString, SW_SHOWNORMAL) - myProcess = System.Diagnostics.Process.Start(szPath, szParam) - End If - End Sub - - Public Overrides Sub CloseCnc() - If FindCncWindow() Then - _CncWindowProcess.Kill() - End If - End Sub - - 'Public Overrides Function FindCncWindow() As Boolean - ' _CncWindowProcess = FindProcess(CncScreen_ProcessName) - ' Return _CncWindowProcess IsNot Nothing - 'End Function - - 'Public Overrides Function CncIsIconic() As Boolean - ' If _CncWindowProcess IsNot Nothing Then - ' Return ProcessIsIconic(_CncWindowProcess.MainWindowHandle) - ' End If - 'End Function - - 'Public Overrides Function CncIsZoomed() As Boolean - ' If _CncWindowProcess IsNot Nothing Then - ' Return ProcessIsZoomed(_CncWindowProcess.MainWindowHandle) - ' End If - 'End Function - - 'Public Overrides Sub MinimizeCnc() - ' MinimizeWindow(CncScreen_ProcessName) - 'End Sub - - 'Public Overrides Sub NormalizeCnc() - ' ShowNormalWindow(CncScreen_ProcessName) - ' MoveWindow(CncScreen_ProcessName, _CncWindowPosition) - 'End Sub - - 'Public Overrides Sub SetCncFocus() - ' SetWindowFocus(CncScreen_ProcessName) - 'End Sub - - 'Public Overrides Sub MoveCnc() - ' MoveWindow(CncScreen_ProcessName, CncWindowPosition, "CNC Screen Display Function") - 'End Sub - ''' ''' Get class series of CNC: 16 or 30 ''' diff --git a/MTC_Adapter/CMSCncLib/CNC/CNC.FANUC/_/fwlib32.vb b/MTC_Adapter/CMSCncLib/CNC/CNC.FANUC/_/fwlib32.vb index 86a4921..94e6d90 100644 --- a/MTC_Adapter/CMSCncLib/CNC/CNC.FANUC/_/fwlib32.vb +++ b/MTC_Adapter/CMSCncLib/CNC/CNC.FANUC/_/fwlib32.vb @@ -15,90 +15,90 @@ Public Class Focas1 #If FS30D Then Public Const MAX_AXIS = 32 #Else -#If M_AXIS2 Then - Public Const MAX_AXIS = 24 -#Else -#If FS15D Then - Public Const MAX_AXIS = 10 -#Else - Public Const MAX_AXIS = 8 -#End If -#End If + #If M_AXIS2 Then + Public Const MAX_AXIS = 24 + #Else + #If FS15D Then + Public Const MAX_AXIS = 10 + #Else + Public Const MAX_AXIS = 8 + #End If + #End If #End If - Public Const ALL_AXES = (-1) + Public Const ALL_AXES = (-1) Public Const ALL_SPINDLES = (-1) ' Error Codes - Public Const EW_PROTOCOL = (-17) ' protocol error - Public Const EW_SOCKET = (-16) ' Windows socket error - Public Const EW_NODLL = (-15) ' DLL not exist error - Public Const EW_BUS = (-11) ' bus error - Public Const EW_SYSTEM2 = (-10) ' system error - Public Const EW_HSSB = (-9) ' hssb communication error - Public Const EW_HANDLE = (-8) ' Windows library handle error - Public Const EW_VERSION = (-7) ' CNC/PMC version missmatch - Public Const EW_UNEXP = (-6) ' abnormal error - Public Const EW_SYSTEM = (-5) ' system error - Public Const EW_PARITY = (-4) ' shared RAM parity error - Public Const EW_MMCSYS = (-3) ' emm386 or mmcsys install error - Public Const EW_RESET = (-2) ' reset or stop occured error - Public Const EW_BUSY = (-1) ' busy error - Public Const EW_OK = 0 ' no problem - Public Const EW_FUNC = 1 ' command prepare error - Public Const EW_NOPMC = 1 ' pmc not exist - Public Const EW_LENGTH = 2 ' data block length error - Public Const EW_NUMBER = 3 ' data number error - Public Const EW_RANGE = 3 ' address range error - Public Const EW_ATTRIB = 4 ' data attribute error - Public Const EW_TYPE = 4 ' data type error - Public Const EW_DATA = 5 ' data error - Public Const EW_NOOPT = 6 ' no option error - Public Const EW_PROT = 7 ' write protect error - Public Const EW_OVRFLOW = 8 ' memory overflow error - Public Const EW_PARAM = 9 ' cnc parameter not correct error - Public Const EW_BUFFER = 10 ' buffer error - Public Const EW_PATH = 11 ' path error - Public Const EW_MODE = 12 ' cnc mode error - Public Const EW_REJECT = 13 ' execution rejected error - Public Const EW_DTSRVR = 14 ' data server error - Public Const EW_ALARM = 15 ' alarm has been occurred - Public Const EW_STOP = 16 ' CNC is not running - Public Const EW_PASSWD = 17 ' protection data error + Public Const EW_PROTOCOL = (-17) ' protocol error + Public Const EW_SOCKET = (-16) ' Windows socket error + Public Const EW_NODLL = (-15) ' DLL not exist error + Public Const EW_BUS = (-11) ' bus error + Public Const EW_SYSTEM2 = (-10) ' system error + Public Const EW_HSSB = (-9) ' hssb communication error + Public Const EW_HANDLE = (-8) ' Windows library handle error + Public Const EW_VERSION = (-7) ' CNC/PMC version missmatch + Public Const EW_UNEXP = (-6) ' abnormal error + Public Const EW_SYSTEM = (-5) ' system error + Public Const EW_PARITY = (-4) ' shared RAM parity error + Public Const EW_MMCSYS = (-3) ' emm386 or mmcsys install error + Public Const EW_RESET = (-2) ' reset or stop occured error + Public Const EW_BUSY = (-1) ' busy error + Public Const EW_OK = 0 ' no problem + Public Const EW_FUNC = 1 ' command prepare error + Public Const EW_NOPMC = 1 ' pmc not exist + Public Const EW_LENGTH = 2 ' data block length error + Public Const EW_NUMBER = 3 ' data number error + Public Const EW_RANGE = 3 ' address range error + Public Const EW_ATTRIB = 4 ' data attribute error + Public Const EW_TYPE = 4 ' data type error + Public Const EW_DATA = 5 ' data error + Public Const EW_NOOPT = 6 ' no option error + Public Const EW_PROT = 7 ' write protect error + Public Const EW_OVRFLOW = 8 ' memory overflow error + Public Const EW_PARAM = 9 ' cnc parameter not correct error + Public Const EW_BUFFER = 10 ' buffer error + Public Const EW_PATH = 11 ' path error + Public Const EW_MODE = 12 ' cnc mode error + Public Const EW_REJECT = 13 ' execution rejected error + Public Const EW_DTSRVR = 14 ' data server error + Public Const EW_ALARM = 15 ' alarm has been occurred + Public Const EW_STOP = 16 ' CNC is not running + Public Const EW_PASSWD = 17 ' protection data error ' Result codes of DNC operation - - Public Const DNC_NORMAL = (-1) ' normal completed - Public Const DNC_CANCEL = (-32768) ' DNC operation was canceled by CNC - Public Const DNC_OPENERR = (-514) ' file open error - Public Const DNC_NOFILE = (-516) ' file not found - Public Const DNC_READERR = (-517) ' read error -'-------------------- -' -' Structure Template -' -'-------------------- -'------------------------------------- -' CNC: Control axis / spindle related -'------------------------------------- + Public Const DNC_NORMAL = (-1) ' normal completed + Public Const DNC_CANCEL = (-32768) ' DNC operation was canceled by CNC + Public Const DNC_OPENERR = (-514) ' file open error + Public Const DNC_NOFILE = (-516) ' file not found + Public Const DNC_READERR = (-517) ' read error + + '-------------------- + ' + ' Structure Template + ' + '-------------------- + '------------------------------------- + ' CNC: Control axis / spindle related + '------------------------------------- ' cnc_actf:read actual axis feedrate(F) ' cnc_acts:read actual spindle speed(S) - _ + Public Structure ODBACT - _ + Public dummy As Short() ' dummy Public data As Integer ' actual feed / actual spindle End Structure 'ODBACT ' cnc_acts2:read actual spindle speed(S) ' (All or specified ) - _ + Public Structure ODBACT2 Public datano As Short ' spindle number Public type As Short ' dummy - _ + Public data As Integer() ' spindle data End Structure 'ODBACT2 @@ -111,35 +111,35 @@ Public Class Focas1 ' cnc_accdecdly:read acceleration/deceleration delay value ' cnc_absolute2:read absolute axis position 2 ' cnc_relative2:read relative axis position 2 - _ - Public Structure ODBAXIS + + Public Structure ODBAXIS Public dummy As Short ' dummy Public type As Short ' axis number - _ + Public data As Integer() ' data value End Structure 'ODBAXIS ' cnc_rddynamic:read all dynamic data - _ - Public Structure FAXIS - _ + + Public Structure FAXIS + Public absolute As Integer() ' absolute position - _ + Public machine As Integer() ' machine position - _ + Public relative As Integer() ' relative position - _ + Public distance As Integer() ' distance to go End Structure 'FAXIS - _ - Public Structure OAXIS - Public absolute As Integer ' absolute position - Public machine As Integer ' machine position - Public relative As Integer ' relative position - Public distance As Integer ' distance to go + + Public Structure OAXIS + Public absolute As Integer ' absolute position + Public machine As Integer ' machine position + Public relative As Integer ' relative position + Public distance As Integer ' distance to go End Structure #If ONO8D = Nothing Then - _ + Public Structure ODBDY_1 Public dummy As Short Public axis As Short ' axis number @@ -152,7 +152,7 @@ Public Class Focas1 Public pos As FAXIS End Structure - _ + Public Structure ODBDY_2 Public dummy As Short Public axis As Short ' axis number @@ -192,7 +192,7 @@ Public Class Focas1 #End If ' cnc_rddynamic2:read all dynamic data - _ + Public Structure ODBDY2_1 Public dummy As Short Public axis As Short ' axis number @@ -204,7 +204,7 @@ Public Class Focas1 Public acts As Integer ' actual spindle speed Public pos As FAXIS End Structure - _ + Public Structure ODBDY2_2 Public dummy As Short Public axis As Short ' axis number @@ -218,45 +218,45 @@ Public Class Focas1 End Structure ' cnc_wrrelpos:set origin / preset relative axis position - _ + Public Structure IDBWRR Public datano As Short ' dummy Public type As Short ' axis number - _ + Public data As Integer() ' preset data End Structure ' cnc_prstwkcd:preset work coordinate - _ + Public Structure IDBWRA Public datano As Short ' dummy Public type As Short ' axis number - _ + Public data As Integer() ' preset data End Structure ' cnc_rdmovrlap:read manual overlapped motion value - _ + Public Structure IODBOVL Public datano As Short ' dummy Public type As Short ' axis number - _ + Public data As Integer() ' data value:[2][MAX_AXIS] End Structure ' cnc_rdspload:read load information of serial spindle ' cnc_rdspmaxrpm:read maximum r.p.m. ratio of serial spindle ' cnc_rdspgear:read gear ratio of serial spindle - _ + Public Structure ODBSPN Public datano As Short ' dummy Public type As Short ' axis number - _ + Public data As Short() ' preset data End Structure ' cnc_rdposition:read tool position - _ + Public Structure POSELM Public data As Integer ' position data Public dec As Short ' place of decimal point of position data @@ -266,16 +266,15 @@ Public Class Focas1 Public suff As Char ' axis name preffix End Structure - _ + Public Structure POSELMALL Public abs As POSELM Public mach As POSELM Public rel As POSELM Public dist As POSELM End Structure - -#If M_AXIS2 Then - _ +#If FS30D Then + Public Structure ODBPOS Public p1 As POSELMALL Public p2 As POSELMALL @@ -301,49 +300,128 @@ Public Class Focas1 Public p22 As POSELMALL Public p23 As POSELMALL Public p24 As POSELMALL - ' In case of 24 axes. + Public p25 As POSELMALL + Public p26 As POSELMALL + Public p27 As POSELMALL + Public p28 As POSELMALL + Public p29 As POSELMALL + Public p30 As POSELMALL + Public p31 As POSELMALL + Public p32 As POSELMALL + ' In case of 32 axes. ' if you need the more information, you must be add the member. End Structure #Else -#If FS15D Then - _ - Public Structure ODBPOS - Public p1 As POSELMALL - Public p2 As POSELMALL - Public p3 As POSELMALL - Public p4 As POSELMALL - Public p5 As POSELMALL - Public p6 As POSELMALL - Public p7 As POSELMALL - Public p8 As POSELMALL - Public p9 As POSELMALL - Public p10 As POSELMALL - ' In case of 10 axes. - ' if you need the more information, you must be add the member. - End Structure -#Else - _ - Public Structure ODBPOS - Public p1 As POSELMALL - Public p2 As POSELMALL - Public p3 As POSELMALL - Public p4 As POSELMALL - Public p5 As POSELMALL - Public p6 As POSELMALL - Public p7 As POSELMALL - Public p8 As POSELMALL - ' In case of 8 axes. - ' if you need the more information, you must be add the member. - End Structure -#End If + #If M_AXIS2 Then + _ + Public Structure ODBPOS + Public p1 As POSELMALL + Public p2 As POSELMALL + Public p3 As POSELMALL + Public p4 As POSELMALL + Public p5 As POSELMALL + Public p6 As POSELMALL + Public p7 As POSELMALL + Public p8 As POSELMALL + Public p9 As POSELMALL + Public p10 As POSELMALL + Public p11 As POSELMALL + Public p12 As POSELMALL + Public p13 As POSELMALL + Public p14 As POSELMALL + Public p15 As POSELMALL + Public p16 As POSELMALL + Public p17 As POSELMALL + Public p18 As POSELMALL + Public p19 As POSELMALL + Public p20 As POSELMALL + Public p21 As POSELMALL + Public p22 As POSELMALL + Public p23 As POSELMALL + Public p24 As POSELMALL + ' In case of 24 axes. + ' if you need the more information, you must be add the member. + End Structure + #Else + #If FS15D Then + _ + Public Structure ODBPOS + Public p1 As POSELMALL + Public p2 As POSELMALL + Public p3 As POSELMALL + Public p4 As POSELMALL + Public p5 As POSELMALL + Public p6 As POSELMALL + Public p7 As POSELMALL + Public p8 As POSELMALL + Public p9 As POSELMALL + Public p10 As POSELMALL + ' In case of 10 axes. + ' if you need the more information, you must be add the member. + End Structure + #Else + _ + Public Structure ODBPOS + Public p1 As POSELMALL + Public p2 As POSELMALL + Public p3 As POSELMALL + Public p4 As POSELMALL + Public p5 As POSELMALL + Public p6 As POSELMALL + Public p7 As POSELMALL + Public p8 As POSELMALL + ' In case of 8 axes. + ' if you need the more information, you must be add the member. + End Structure + #End If + #End If #End If ' cnc_rdhndintrpt:read handle interruption - _ + Public Structure ODBHND_data Public input As POSELM ' input unit Public output As POSELM ' output unit End Structure +#If FS30D Then + + Public Structure ODBHND + Public p1 As ODBHND_data + Public p2 As ODBHND_data + Public p3 As ODBHND_data + Public p4 As ODBHND_data + Public p5 As ODBHND_data + Public p6 As ODBHND_data + Public p7 As ODBHND_data + Public p8 As ODBHND_data + Public p9 As ODBHND_data + Public p10 As ODBHND_data + Public p11 As ODBHND_data + Public p12 As ODBHND_data + Public p13 As ODBHND_data + Public p14 As ODBHND_data + Public p15 As ODBHND_data + Public p16 As ODBHND_data + Public p17 As ODBHND_data + Public p18 As ODBHND_data + Public p19 As ODBHND_data + Public p20 As ODBHND_data + Public p21 As ODBHND_data + Public p22 As ODBHND_data + Public p23 As ODBHND_data + Public p24 As ODBHND_data + Public p25 As ODBHND_data + Public p26 As ODBHND_data + Public p27 As ODBHND_data + Public p28 As ODBHND_data + Public p29 As ODBHND_data + Public p30 As ODBHND_data + Public p31 As ODBHND_data + Public p32 As ODBHND_data + ' In case of 32 axes. + ' if you need the more information, you must be add the member. + End Structure +#Else #If M_AXIS2 Then _ Public Structure ODBHND @@ -406,10 +484,11 @@ Public Class Focas1 ' if you need the more information, you must be add the member. End Structure #End If +#End If #End If ' cnc_rdspeed:read current speed - _ + Public Structure SPEEDELM Public data As Integer ' speed data Public dec As Short ' decimal position @@ -419,7 +498,7 @@ Public Class Focas1 Public suff As Byte ' suffix End Structure - _ + Public Structure ODBSPEED Public actf As SPEEDELM ' actual feed rate Public acts As SPEEDELM ' actual spindle speed @@ -427,17 +506,53 @@ Public Class Focas1 ' cnc_rdsvmeter:read servo load meter ' cnc_rdspmeter:read spindle load meter - _ + Public Structure LOADELM Public data As Integer ' load meter - Public dec As Short ' decimal position + Public dec As Short ' decimal position Public unit As Short ' unit Public name As Byte ' name of data Public suff1 As Byte ' suffix Public suff2 As Byte ' suffix Public reserve As Byte ' reserve End Structure - +#If FS30D Then + + Public Structure ODBSVLOAD + Public svload1 As LOADELM ' servo load meter + Public svload2 As LOADELM ' servo load meter + Public svload3 As LOADELM ' servo load meter + Public svload4 As LOADELM ' servo load meter + Public svload5 As LOADELM ' servo load meter + Public svload6 As LOADELM ' servo load meter + Public svload7 As LOADELM ' servo load meter + Public svload8 As LOADELM ' servo load meter + Public svload9 As LOADELM ' servo load meter + Public svload10 As LOADELM ' servo load meter + Public svload11 As LOADELM ' servo load meter + Public svload12 As LOADELM ' servo load meter + Public svload13 As LOADELM ' servo load meter + Public svload14 As LOADELM ' servo load meter + Public svload15 As LOADELM ' servo load meter + Public svload16 As LOADELM ' servo load meter + Public svload17 As LOADELM ' servo load meter + Public svload18 As LOADELM ' servo load meter + Public svload19 As LOADELM ' servo load meter + Public svload20 As LOADELM ' servo load meter + Public svload21 As LOADELM ' servo load meter + Public svload22 As LOADELM ' servo load meter + Public svload23 As LOADELM ' servo load meter + Public svload24 As LOADELM ' servo load meter + Public svload25 As LOADELM ' servo load meter + Public svload26 As LOADELM ' servo load meter + Public svload27 As LOADELM ' servo load meter + Public svload28 As LOADELM ' servo load meter + Public svload29 As LOADELM ' servo load meter + Public svload30 As LOADELM ' servo load meter + Public svload31 As LOADELM ' servo load meter + Public svload32 As LOADELM ' servo load meter + End Structure +#Else #If M_AXIS2 Then _ Public Structure ODBSVLOAD @@ -494,14 +609,15 @@ Public Class Focas1 Public svload8 As LOADELM ' servo load meter End Structure #End If +#End If #End If - _ + Public Structure ODBSPLOAD_data Public spload As LOADELM ' spindle load meter Public spspeed As LOADELM ' spindle speed End Structure - _ + Public Structure ODBSPLOAD Public spload1 As ODBSPLOAD_data ' spindle load Public spload2 As ODBSPLOAD_data ' spindle load @@ -510,14 +626,14 @@ Public Class Focas1 End Structure ' cnc_rdexecpt:read execution program pointer - _ + Public Structure PRGPNT Public prog_no As Integer ' program number - Public blk_no As Integer ' block number + Public blk_no As Integer ' block number End Structure ' cnc_rd5axmandt:read manual feed for 5-axis machining - _ + Public Structure ODB5AXMAN Public type1 As Short Public type2 As Short @@ -525,27 +641,27 @@ Public Class Focas1 Public data1 As Integer Public data2 As Integer Public data3 As Integer - Public c1 As Integer - Public c2 As Integer + Public c1 As Integer + Public c2 As Integer Public dummy As Integer - Public td As Integer - Public r1 As Integer - Public r2 As Integer - Public vr As Integer - Public h1 As Integer - Public h2 As Integer + Public td As Integer + Public r1 As Integer + Public r2 As Integer + Public vr As Integer + Public h1 As Integer + Public h2 As Integer End Structure -'---------------------- -' CNC: Program related -'---------------------- + '---------------------- + ' CNC: Program related + '---------------------- ' cnc_rddncdgndt:read the diagnosis data of DNC operation - _ + Public Structure ODBDNCDGN Public ctrl_word As Short Public can_word As Short - _ + Public nc_file As Char() Public read_ptr As Short Public write_ptr As Short @@ -555,31 +671,31 @@ Public Class Focas1 ' cnc_upload:upload NC program ' cnc_cupload:upload NC program(conditional) - _ + Public Structure ODBUP - _ + Public dummy As Short() ' dummy - _ + Public data As String ' data End Structure ' In case that the number of data is 256 ' cnc_buff:read buffer status for downloading/verification NC program - _ + Public Structure ODBBUF - _ + Public dummy As Short() ' dummy Public data As Short ' buffer status End Structure ' cnc_rdprogdir:read program directory - _ + Public Structure PRGDIR - _ + Public prg_data As Char() ' directory data End Structure ' In case that the number of data is 256 ' cnc_rdproginfo:read program information - _ + Public Structure ODBNC_1 Public reg_prg As Short ' registered program number Public unreg_prg As Short ' unregistered program number @@ -587,17 +703,17 @@ Public Class Focas1 Public unused_mem As Integer ' unused memory area End Structure - _ + Public Structure ODBNC_2 - _ + Public asc As Char() ' ASCII string type End Structure ' cnc_rdprgnum:read program number under execution #If ONO8D = Nothing Then - _ + Public Structure ODBPRO - _ + Public dummy As Short() ' dummy Public data As Short ' running program number Public mdata As Short ' main program number @@ -613,24 +729,24 @@ Public Class Focas1 #End If ' cnc_exeprgname:read program name under execution - _ + Public Structure ODBEXEPRG - _ - Public name As Char() ' running program name + + Public name As Char() ' running program name Public o_num As Integer ' running program number End Structure ' cnc_rdseqnum:read sequence number under execution - _ + Public Structure ODBSEQ - _ + Public dummy As Short() ' dummy Public data As Integer ' sequence number End Structure ' cnc_rdmdipntr:read execution pointer for MDI operation #If ONO8D = Nothing Then - _ + Public Structure ODBMDIP Public mdiprog As Short ' exec. program number Public mdipntr As Integer ' exec. pointer @@ -648,118 +764,118 @@ Public Class Focas1 #End If ' cnc_rdaxisdata:read various axis data - _ + Public Structure ODBAXDT_data - _ - Public name As String ' data - Public data As Integer ' position data - Public dec As Short ' decimal position - Public unit As Short ' data unit - Public flag As Short ' flags + + Public name As String ' data + Public data As Integer ' position data + Public dec As Short ' decimal position + Public unit As Short ' data unit + Public flag As Short ' flags Public reserve As Short ' reserve End Structure - _ + Public Structure ODBAXDT - Public data1 As ODBAXDT_data - Public data2 As ODBAXDT_data - Public data3 As ODBAXDT_data - Public data4 As ODBAXDT_data - Public data5 As ODBAXDT_data - Public data6 As ODBAXDT_data - Public data7 As ODBAXDT_data - Public data8 As ODBAXDT_data - Public data9 As ODBAXDT_data - Public data10 As ODBAXDT_data - Public data11 As ODBAXDT_data - Public data12 As ODBAXDT_data - Public data13 As ODBAXDT_data - Public data14 As ODBAXDT_data - Public data15 As ODBAXDT_data - Public data16 As ODBAXDT_data - Public data17 As ODBAXDT_data - Public data18 As ODBAXDT_data - Public data19 As ODBAXDT_data - Public data20 As ODBAXDT_data - Public data21 As ODBAXDT_data - Public data22 As ODBAXDT_data - Public data23 As ODBAXDT_data - Public data24 As ODBAXDT_data - Public data25 As ODBAXDT_data - Public data26 As ODBAXDT_data - Public data27 As ODBAXDT_data - Public data28 As ODBAXDT_data - Public data29 As ODBAXDT_data - Public data30 As ODBAXDT_data - Public data31 As ODBAXDT_data - Public data32 As ODBAXDT_data - Public data33 As ODBAXDT_data - Public data34 As ODBAXDT_data - Public data35 As ODBAXDT_data - Public data36 As ODBAXDT_data - Public data37 As ODBAXDT_data - Public data38 As ODBAXDT_data - Public data39 As ODBAXDT_data - Public data40 As ODBAXDT_data - Public data41 As ODBAXDT_data - Public data42 As ODBAXDT_data - Public data43 As ODBAXDT_data - Public data44 As ODBAXDT_data - Public data45 As ODBAXDT_data - Public data46 As ODBAXDT_data - Public data47 As ODBAXDT_data - Public data48 As ODBAXDT_data - Public data49 As ODBAXDT_data - Public data50 As ODBAXDT_data - Public data51 As ODBAXDT_data - Public data52 As ODBAXDT_data - Public data53 As ODBAXDT_data - Public data54 As ODBAXDT_data - Public data55 As ODBAXDT_data - Public data56 As ODBAXDT_data - Public data57 As ODBAXDT_data - Public data58 As ODBAXDT_data - Public data59 As ODBAXDT_data - Public data60 As ODBAXDT_data - Public data61 As ODBAXDT_data - Public data62 As ODBAXDT_data - Public data63 As ODBAXDT_data - Public data64 As ODBAXDT_data - Public data65 As ODBAXDT_data - Public data66 As ODBAXDT_data - Public data67 As ODBAXDT_data - Public data68 As ODBAXDT_data - Public data69 As ODBAXDT_data - Public data70 As ODBAXDT_data - Public data71 As ODBAXDT_data - Public data72 As ODBAXDT_data - Public data73 As ODBAXDT_data - Public data74 As ODBAXDT_data - Public data75 As ODBAXDT_data - Public data76 As ODBAXDT_data - Public data77 As ODBAXDT_data - Public data78 As ODBAXDT_data - Public data79 As ODBAXDT_data - Public data80 As ODBAXDT_data - Public data81 As ODBAXDT_data - Public data82 As ODBAXDT_data - Public data83 As ODBAXDT_data - Public data84 As ODBAXDT_data - Public data85 As ODBAXDT_data - Public data86 As ODBAXDT_data - Public data87 As ODBAXDT_data - Public data88 As ODBAXDT_data - Public data89 As ODBAXDT_data - Public data90 As ODBAXDT_data - Public data91 As ODBAXDT_data - Public data92 As ODBAXDT_data - Public data93 As ODBAXDT_data - Public data94 As ODBAXDT_data - Public data95 As ODBAXDT_data - Public data96 As ODBAXDT_data - Public data97 As ODBAXDT_data - Public data98 As ODBAXDT_data - Public data99 As ODBAXDT_data + Public data1 As ODBAXDT_data + Public data2 As ODBAXDT_data + Public data3 As ODBAXDT_data + Public data4 As ODBAXDT_data + Public data5 As ODBAXDT_data + Public data6 As ODBAXDT_data + Public data7 As ODBAXDT_data + Public data8 As ODBAXDT_data + Public data9 As ODBAXDT_data + Public data10 As ODBAXDT_data + Public data11 As ODBAXDT_data + Public data12 As ODBAXDT_data + Public data13 As ODBAXDT_data + Public data14 As ODBAXDT_data + Public data15 As ODBAXDT_data + Public data16 As ODBAXDT_data + Public data17 As ODBAXDT_data + Public data18 As ODBAXDT_data + Public data19 As ODBAXDT_data + Public data20 As ODBAXDT_data + Public data21 As ODBAXDT_data + Public data22 As ODBAXDT_data + Public data23 As ODBAXDT_data + Public data24 As ODBAXDT_data + Public data25 As ODBAXDT_data + Public data26 As ODBAXDT_data + Public data27 As ODBAXDT_data + Public data28 As ODBAXDT_data + Public data29 As ODBAXDT_data + Public data30 As ODBAXDT_data + Public data31 As ODBAXDT_data + Public data32 As ODBAXDT_data + Public data33 As ODBAXDT_data + Public data34 As ODBAXDT_data + Public data35 As ODBAXDT_data + Public data36 As ODBAXDT_data + Public data37 As ODBAXDT_data + Public data38 As ODBAXDT_data + Public data39 As ODBAXDT_data + Public data40 As ODBAXDT_data + Public data41 As ODBAXDT_data + Public data42 As ODBAXDT_data + Public data43 As ODBAXDT_data + Public data44 As ODBAXDT_data + Public data45 As ODBAXDT_data + Public data46 As ODBAXDT_data + Public data47 As ODBAXDT_data + Public data48 As ODBAXDT_data + Public data49 As ODBAXDT_data + Public data50 As ODBAXDT_data + Public data51 As ODBAXDT_data + Public data52 As ODBAXDT_data + Public data53 As ODBAXDT_data + Public data54 As ODBAXDT_data + Public data55 As ODBAXDT_data + Public data56 As ODBAXDT_data + Public data57 As ODBAXDT_data + Public data58 As ODBAXDT_data + Public data59 As ODBAXDT_data + Public data60 As ODBAXDT_data + Public data61 As ODBAXDT_data + Public data62 As ODBAXDT_data + Public data63 As ODBAXDT_data + Public data64 As ODBAXDT_data + Public data65 As ODBAXDT_data + Public data66 As ODBAXDT_data + Public data67 As ODBAXDT_data + Public data68 As ODBAXDT_data + Public data69 As ODBAXDT_data + Public data70 As ODBAXDT_data + Public data71 As ODBAXDT_data + Public data72 As ODBAXDT_data + Public data73 As ODBAXDT_data + Public data74 As ODBAXDT_data + Public data75 As ODBAXDT_data + Public data76 As ODBAXDT_data + Public data77 As ODBAXDT_data + Public data78 As ODBAXDT_data + Public data79 As ODBAXDT_data + Public data80 As ODBAXDT_data + Public data81 As ODBAXDT_data + Public data82 As ODBAXDT_data + Public data83 As ODBAXDT_data + Public data84 As ODBAXDT_data + Public data85 As ODBAXDT_data + Public data86 As ODBAXDT_data + Public data87 As ODBAXDT_data + Public data88 As ODBAXDT_data + Public data89 As ODBAXDT_data + Public data90 As ODBAXDT_data + Public data91 As ODBAXDT_data + Public data92 As ODBAXDT_data + Public data93 As ODBAXDT_data + Public data94 As ODBAXDT_data + Public data95 As ODBAXDT_data + Public data96 As ODBAXDT_data + Public data97 As ODBAXDT_data + Public data98 As ODBAXDT_data + Public data99 As ODBAXDT_data Public data100 As ODBAXDT_data Public data101 As ODBAXDT_data Public data102 As ODBAXDT_data @@ -792,7 +908,7 @@ Public Class Focas1 End Structure ' cnc_rdspcss:read constant surface speed data - _ + Public Structure ODBCSS Public srpm As Integer ' order spindle speed Public sspm As Integer ' order constant spindle speed @@ -800,124 +916,124 @@ Public Class Focas1 End Structure ' cnc_rdpdf_drive:read program drive directory - _ + Public Structure ODBPDFDRV Public max_num As Short ' maximum drive number - Public dummy As Short - _ - Public drive1 As String - _ - Public drive2 As String - _ - Public drive3 As String - _ - Public drive4 As String - _ - Public drive5 As String - _ - Public drive6 As String - _ - Public drive7 As String - _ - Public drive8 As String - _ - Public drive9 As String - _ + Public dummy As Short + + Public drive1 As String + + Public drive2 As String + + Public drive3 As String + + Public drive4 As String + + Public drive5 As String + + Public drive6 As String + + Public drive7 As String + + Public drive8 As String + + Public drive9 As String + Public drive10 As String - _ + Public drive11 As String - _ + Public drive12 As String - _ + Public drive13 As String - _ + Public drive14 As String - _ + Public drive15 As String - _ + Public drive16 As String End Structure ' cnc_rdpdf_inf:read program drive information - _ + Public Structure ODBPDFINF Public used_page As Integer ' used capacity - Public all_page As Integer ' all capacity - Public used_dir As Integer ' used directory number - Public all_dir As Integer ' all directory number + Public all_page As Integer ' all capacity + Public used_dir As Integer ' used directory number + Public all_dir As Integer ' all directory number End Structure ' cnc_rdpdf_subdir:read directory (sub directories) - _ + Public Structure IDBPDFSDIR - _ - Public path As String ' path name - Public req_num As Short ' entry number - Public dummy As Short + + Public path As String ' path name + Public req_num As Short ' entry number + Public dummy As Short End Structure ' cnc_rdpdf_subdir:read directory (sub directories) - _ + Public Structure ODBPDFSDIR Public sub_exist As Short ' existence of sub directory - Public dummy As Short - _ - Public d_f As String ' directory name + Public dummy As Short + + Public d_f As String ' directory name End Structure ' cnc_rdpdf_alldir:read directory (all files) - _ + Public Structure IDBPDFADIR - _ - Public path As String ' path name - Public req_num As Short ' entry number + + Public path As String ' path name + Public req_num As Short ' entry number Public size_kind As Short ' kind of size - Public type As Short ' kind of format - Public dummy As Short + Public type As Short ' kind of format + Public dummy As Short End Structure ' cnc_rdpdf_alldir:read directory (all files) - _ + Public Structure ODBPDFADIR Public data_kind As Short ' kinf of data - Public year As Short ' last date and time - Public mon As Short ' last date and time - Public day As Short ' last date and time - Public hour As Short ' last date and time - Public min As Short ' last date and time - Public sec As Short ' last date and time - Public dummy As Short - Public dummy2 As Integer - Public size As Integer ' size - Public attr As Integer ' attribute - _ - Public d_f As String ' path name - _ - Public comment As String ' comment - _ - Public o_time As String ' comment + Public year As Short ' last date and time + Public mon As Short ' last date and time + Public day As Short ' last date and time + Public hour As Short ' last date and time + Public min As Short ' last date and time + Public sec As Short ' last date and time + Public dummy As Short + Public dummy2 As Integer + Public size As Integer ' size + Public attr As Integer ' attribute + + Public d_f As String ' path name + + Public comment As String ' comment + + Public o_time As String ' comment End Structure ' cnc_rdpdf_subdirn:read file count the directory has - _ + Public Structure ODBPDFNFIL - Public dir_num As Short ' directory + Public dir_num As Short ' directory Public file_num As Short ' file End Structure - + ' cnc_wrpdf_attr:change attribute of program file and directory - _ + Public Structure IDBPDFTDIR - Public slct As Integer ' selection - Public attr As Integer ' data + Public slct As Integer ' selection + Public attr As Integer ' data End Structure -'--------------------------- -' CNC: NC file data related -'--------------------------- + '--------------------------- + ' CNC: NC file data related + '--------------------------- ' cnc_rdtofs:read tool offset value - _ + Public Structure ODBTOFS Public datano As Short ' data number Public type As Short ' data type @@ -926,39 +1042,39 @@ Public Class Focas1 ' cnc_rdtofsr:read tool offset value(area specified) ' cnc_wrtofsr:write tool offset value(area specified) - _ + Public Structure OFS_1 - _ + Public m_ofs As Integer() ' M Each - _ + Public m_ofs_a As Integer() ' M-A All - _ + Public t_tip As Short() ' T Each, 2-byte - _ + Public t_ofs As Integer() ' T Each, 4-byte End Structure ' In case that the number of data is 5 - _ + Public Structure OFS_2 - _ + Public m_ofs_b As Integer() ' M-B All End Structure ' In case that the number of data is 5 - _ + Public Structure OFS_3 ' _ - _ + Public m_ofs_c As Integer() ' M-C All End Structure ' In case that the number of data is 5 - _ + Public Structure T_OFS_A Public tip As Short - _ + Public data As Integer() End Structure ' T-A All - _ + Public Structure T_OFS_A_data Public data1 As T_OFS_A Public data2 As T_OFS_A @@ -966,13 +1082,13 @@ Public Class Focas1 Public data4 As T_OFS_A Public data5 As T_OFS_A End Structure ' In case that the number of data is 5 - _ + Public Structure T_OFS_B Public tip As Short - _ + Public data As Integer() End Structure ' T-B All - _ + Public Structure T_OFS_B_data Public data1 As T_OFS_B Public data2 As T_OFS_B @@ -980,35 +1096,35 @@ Public Class Focas1 Public data4 As T_OFS_B Public data5 As T_OFS_B End Structure ' In case that the number of data is 5 - _ + Public Structure IODBTO_1_1 Public datano_s As Short ' start offset number Public type As Short ' offset type Public datano_e As Short ' end offset number Public ofs As OFS_1 End Structure - _ + Public Structure IODBTO_1_2 Public datano_s As Short ' start offset number Public type As Short ' offset type Public datano_e As Short ' end offset number Public ofs As OFS_2 End Structure - _ + Public Structure IODBTO_1_3 Public datano_s As Short ' start offset number Public type As Short ' offset type Public datano_e As Short ' end offset number Public ofs As OFS_3 End Structure - _ + Public Structure IODBTO_2 Public datano_s As Short ' start offset number Public type As Short ' offset type Public datano_e As Short ' end offset number Public tofsa As T_OFS_A_data End Structure - _ + Public Structure IODBTO_3 Public datano_s As Short ' start offset number Public type As Short ' offset type @@ -1018,33 +1134,33 @@ Public Class Focas1 ' cnc_rdzofs:read work zero offset value ' cnc_wrzofs:write work zero offset value - _ + Public Structure IODBZOFS Public datano As Short ' offset NO. Public type As Short ' axis number - _ + Public data As Integer() ' data value End Structure ' cnc_rdzofsr:read work zero offset value(area specified) ' cnc_wrzofsr:write work zero offset value(area specified) - _ + Public Structure IODBZOR Public datano_s As Short ' start offset number Public type As Short ' axis number Public datano_e As Short ' end offset number - _ + Public data As Integer() ' offset value End Structure ' In case that the number of axes is MAX_AXIS, the number of data is 7 ' cnc_rdmsptype:read mesured point value ' cnc_wrmsptype:write mesured point value - _ + Public Structure IODBMSTP Public datano_s As Short ' start offset number Public dummy As Short ' dummy Public datano_e As Short ' end offset number - _ + Public data As SByte() ' mesured point value End Structure @@ -1056,11 +1172,48 @@ Public Class Focas1 ' cnc_wrparas:write parameter(plural specified) ' cnc_rdsetr:read setting data(area specified) ' cnc_wrsets:write setting data(plural specified) - _ + Public Structure REALPRM Public prm_val As Integer ' data of real parameter Public dec_val As Integer ' decimal point of real parameter End Structure +#If FS30D Then + + Public Structure REALPRMS + Public rdata1 As REALPRM + Public rdata2 As REALPRM + Public rdata3 As REALPRM + Public rdata4 As REALPRM + Public rdata5 As REALPRM + Public rdata6 As REALPRM + Public rdata7 As REALPRM + Public rdata8 As REALPRM + Public rdata9 As REALPRM + Public rdata10 As REALPRM + Public rdata11 As REALPRM + Public rdata12 As REALPRM + Public rdata13 As REALPRM + Public rdata14 As REALPRM + Public rdata15 As REALPRM + Public rdata16 As REALPRM + Public rdata17 As REALPRM + Public rdata18 As REALPRM + Public rdata19 As REALPRM + Public rdata20 As REALPRM + Public rdata21 As REALPRM + Public rdata22 As REALPRM + Public rdata23 As REALPRM + Public rdata24 As REALPRM + Public rdata25 As REALPRM + Public rdata26 As REALPRM + Public rdata27 As REALPRM + Public rdata28 As REALPRM + Public rdata29 As REALPRM + Public rdata30 As REALPRM + Public rdata31 As REALPRM + Public rdata32 As REALPRM + End Structure ' In case that the number of alarm is 32 +#Else #If M_AXIS2 Then _ Public Structure REALPRMS @@ -1117,50 +1270,51 @@ Public Class Focas1 Public rdata8 As REALPRM End Structure ' In case that the number of alarm is 8 #End If +#End If #End If - _ + Public Structure IODBPSD_1 - _ + Public datano As Short ' data number - _ + Public type As Short ' axis number - _ + Public cdata As Byte ' parameter / setting data - _ + Public idata As Short - _ + Public ldata As Integer End Structure - _ + Public Structure IODBPSD_2 Public datano As Short ' data number Public type As Short ' axis number Public rdata As REALPRM End Structure - _ + Public Structure IODBPSD_3 - _ + Public datano As Short ' data number - _ + Public type As Short ' axis number - _ + Public cdatas As Byte() - _ + Public idatas As Short() - _ + Public ldatas As Integer() End Structure - _ + Public Structure IODBPSD_4 Public datano As Short ' data number Public type As Short ' axis number Public rdatas As REALPRMS End Structure - _ + Public Structure IODBPSD_A Public data1 As IODBPSD_1 Public data2 As IODBPSD_1 @@ -1170,7 +1324,7 @@ Public Class Focas1 Public data6 As IODBPSD_1 Public data7 As IODBPSD_1 End Structure ' (sample) must be modified - _ + Public Structure IODBPSD_B Public data1 As IODBPSD_2 Public data2 As IODBPSD_2 @@ -1180,7 +1334,7 @@ Public Class Focas1 Public data6 As IODBPSD_2 Public data7 As IODBPSD_2 End Structure ' (sample) must be modified - _ + Public Structure IODBPSD_C Public data1 As IODBPSD_3 Public data2 As IODBPSD_3 @@ -1190,7 +1344,7 @@ Public Class Focas1 Public data6 As IODBPSD_3 Public data7 As IODBPSD_3 End Structure ' (sample) must be modified - _ + Public Structure IODBPSD_D Public data1 As IODBPSD_4 Public data2 As IODBPSD_4 @@ -1204,17 +1358,17 @@ Public Class Focas1 ' cnc_rdparam_ext:read parameAers ' cnc_rddiag_ext:read diagnosis data ' cnc_start_async_wrparam:async parameter write start - _ + Public Structure IODBPRMNO - _ + Public prm As Integer() End Structure - _ + Public Structure IODBPRM_data Public prm_val As Integer ' parameter / setting data Public dec_val As Integer End Structure - _ + Public Structure IODBPRM1 Public data1 As IODBPRM_data Public data2 As IODBPRM_data @@ -1249,7 +1403,7 @@ Public Class Focas1 Public data31 As IODBPRM_data Public data32 As IODBPRM_data End Structure - _ + Public Structure IODBPRM2 Public datano As Integer ' data number Public type As Short ' data type @@ -1258,7 +1412,7 @@ Public Class Focas1 Public unit As Short ' unit information Public data As IODBPRM1 End Structure - _ + Public Structure IODBPRM Public prm1 As IODBPRM2 Public prm2 As IODBPRM2 @@ -1274,17 +1428,17 @@ Public Class Focas1 ' cnc_rdpitchr:read pitch error compensation data(area specified) ' cnc_wrpitchr:write pitch error compensation data(area specified) - _ + Public Structure IODBPI Public datano_s As Short ' start pitch number Public dummy As Short ' dummy Public datano_e As Short ' end pitch number - _ + Public data As SByte() ' offset value End Structure ' In case that the number of data is 5 ' cnc_rdmacro:read custom macro variable - _ + Public Structure ODBM Public datano As Short ' variable number Public dummy As Short ' dummy @@ -1294,12 +1448,12 @@ Public Class Focas1 ' cnc_rdmacror:read custom macro variables(area specified) ' cnc_wrmacror:write custom macro variables(area specified) - _ + Public Structure IODBMR_data Public mcr_val As Integer ' macro variable Public dec_val As Short ' decimal point End Structure - _ + Public Structure IODBMR1 Public data1 As IODBMR_data Public data2 As IODBMR_data @@ -1307,7 +1461,7 @@ Public Class Focas1 Public data4 As IODBMR_data Public data5 As IODBMR_data End Structure ' In case that the number of data is 5 - _ + Public Structure IODBMR Public datano_s As Short ' start macro number Public dummy As Short ' dummy @@ -1316,7 +1470,7 @@ Public Class Focas1 End Structure ' cnc_rdpmacro:read P code macro variable - _ + Public Structure ODBPM Public datano As Integer ' variable number Public dummy As Short ' dummy @@ -1330,7 +1484,7 @@ Public Class Focas1 Public mcr_val As Integer ' macro variable Public dec_val As Short ' decimal point End Structure - _ + Public Structure IODBPR1 Public data1 As IODBPR_data Public data2 As IODBPR_data @@ -1338,7 +1492,7 @@ Public Class Focas1 Public data4 As IODBPR_data Public data5 As IODBPR_data End Structure ' In case that the number of data is 5 - _ + Public Structure IODBPR Public datano_s As Integer ' start macro number Public dummy As Short ' dummy @@ -1347,14 +1501,14 @@ Public Class Focas1 End Structure ' cnc_rdtofsinfo:read tool offset information - _ + Public Structure ODBTLINF Public ofs_type As Short Public use_no As Short End Structure ' cnc_rdtofsinfo2:read tool offset information(2) - _ + Public Structure ODBTLINF2 Public ofs_type As Short Public use_no As Short @@ -1362,14 +1516,14 @@ Public Class Focas1 End Structure ' cnc_rdmacroinfo:read custom macro variable information - _ + Public Structure ODBMVINF Public use_no1 As Short Public use_no2 As Short End Structure ' cnc_rdpmacroinfo:read P code macro variable information - _ + Public Structure ODBPMINF Public use_no1 As Short #If PCD_UWORD Then @@ -1381,147 +1535,147 @@ Public Class Focas1 End Structure ' cnc_tofs_rnge:read validity of tool offset - _ + Public Structure ODBDATRNG Public data_min As Integer ' lower limit Public data_max As Integer ' upper limit - Public status As Integer ' status of setting + Public status As Integer ' status of setting End Structure ' cnc_rdhsprminfo:read the information for function cnc_rdhsparam() - _ + Public Structure HSPINFO_data - _ - Public data1 As Byte() - _ - Public data2 As Byte() - _ - Public data3 As Byte() - _ - Public data4 As Byte() - _ - Public data5 As Byte() - _ - Public data6 As Byte() - _ - Public data7 As Byte() - _ - Public data8 As Byte() + + Public data1 As Byte() + + Public data2 As Byte() + + Public data3 As Byte() + + Public data4 As Byte() + + Public data5 As Byte() + + Public data6 As Byte() + + Public data7 As Byte() + + Public data8 As Byte() End Structure - _ + Public Structure HSPINFO - Public prminfo1 As HSPINFO_data - Public prminfo2 As HSPINFO_data - Public prminfo3 As HSPINFO_data - Public prminfo4 As HSPINFO_data - Public prminfo5 As HSPINFO_data - Public prminfo6 As HSPINFO_data - Public prminfo7 As HSPINFO_data - Public prminfo8 As HSPINFO_data - Public prminfo9 As HSPINFO_data + Public prminfo1 As HSPINFO_data + Public prminfo2 As HSPINFO_data + Public prminfo3 As HSPINFO_data + Public prminfo4 As HSPINFO_data + Public prminfo5 As HSPINFO_data + Public prminfo6 As HSPINFO_data + Public prminfo7 As HSPINFO_data + Public prminfo8 As HSPINFO_data + Public prminfo9 As HSPINFO_data Public prminfo10 As HSPINFO_data End Structure ' In case that the number of data is 10 ' cnc_rdhsparam:read parameters at the high speed - _ + Public Structure HSPDATA_1 - _ - Public cdatas1 As Byte() - _ - Public cdatas2 As Byte() - _ - Public cdatas3 As Byte() - _ - Public cdatas4 As Byte() - _ - Public cdatas5 As Byte() - _ - Public cdatas6 As Byte() - _ - Public cdatas7 As Byte() - _ - Public cdatas8 As Byte() - _ - Public cdatas9 As Byte() - _ + + Public cdatas1 As Byte() + + Public cdatas2 As Byte() + + Public cdatas3 As Byte() + + Public cdatas4 As Byte() + + Public cdatas5 As Byte() + + Public cdatas6 As Byte() + + Public cdatas7 As Byte() + + Public cdatas8 As Byte() + + Public cdatas9 As Byte() + Public cdatas10 As Byte() End Structure ' In case that the number of data is 10 - _ + Public Structure HSPDATA_2 - _ - Public idatas1 As Short() - _ - Public idatas2 As Short() - _ - Public idatas3 As Short() - _ - Public idatas4 As Short() - _ - Public idatas5 As Short() - _ - Public idatas6 As Short() - _ - Public idatas7 As Short() - _ - Public idatas8 As Short() - _ - Public idatas9 As Short() - _ + + Public idatas1 As Short() + + Public idatas2 As Short() + + Public idatas3 As Short() + + Public idatas4 As Short() + + Public idatas5 As Short() + + Public idatas6 As Short() + + Public idatas7 As Short() + + Public idatas8 As Short() + + Public idatas9 As Short() + Public idatas10 As Short() End Structure ' In case that the number of data is 10 - _ + Public Structure HSPDATA_3 - _ - Public ldatas1 As Integer() - _ - Public ldatas2 As Integer() - _ - Public ldatas3 As Integer() - _ - Public ldatas4 As Integer() - _ - Public ldatas5 As Integer() - _ - Public ldatas6 As Integer() - _ - Public ldatas7 As Integer() - _ - Public ldatas8 As Integer() - _ - Public ldatas9 As Integer() - _ + + Public ldatas1 As Integer() + + Public ldatas2 As Integer() + + Public ldatas3 As Integer() + + Public ldatas4 As Integer() + + Public ldatas5 As Integer() + + Public ldatas6 As Integer() + + Public ldatas7 As Integer() + + Public ldatas8 As Integer() + + Public ldatas9 As Integer() + Public ldatas10 As Integer() End Structure ' In case that the number of data is 10 -'---------------------------------------- -' CNC: Tool life management data related -'---------------------------------------- + '---------------------------------------- + ' CNC: Tool life management data related + '---------------------------------------- ' cnc_rdgrpid:read tool life management data(tool group number) - _ + Public Structure ODBTLIFE1 Public dummy As Short ' dummy Public type As Short ' data type @@ -1529,9 +1683,9 @@ Public Class Focas1 End Structure ' cnc_rdngrp:read tool life management data(number of tool groups) - _ + Public Structure ODBTLIFE2 - _ + Public dummy As Short() ' dummy Public data As Integer ' data End Structure @@ -1539,7 +1693,7 @@ Public Class Focas1 ' cnc_rdntool:read tool life management data(number of tools) ' cnc_rdlife:read tool life management data(tool life) ' cnc_rdcount:read tool life management data(tool lift counter) - _ + Public Structure ODBTLIFE3 Public datano As Short ' data number Public dummy As Short ' dummy @@ -1553,7 +1707,7 @@ Public Class Focas1 ' cnc_t1info:read tool life management data(tool information-1) ' cnc_t2info:read tool life management data(tool information-2) ' cnc_toolnum:read tool life management data(tool number) - _ + Public Structure ODBTLIFE4 Public datano As Short ' data number Public type As Short ' data type @@ -1561,7 +1715,7 @@ Public Class Focas1 End Structure ' cnc_rdgrpid2:read tool life management data(tool group number) 2 - _ + Public Structure ODBTLIFE5 Public dummy As Integer ' dummy Public type As Integer ' data type @@ -1569,13 +1723,13 @@ Public Class Focas1 End Structure ' cnc_rdtoolrng:read tool life management data(tool number, tool life, tool life counter)(area specified) - _ + Public Structure IODBTR_data Public ntool As Integer ' tool number Public life As Integer ' tool life Public count As Integer ' tool life counter End Structure - _ + Public Structure IODBTR1 Public data1 As IODBTR_data Public data2 As IODBTR_data @@ -1583,7 +1737,7 @@ Public Class Focas1 Public data4 As IODBTR_data Public data5 As IODBTR_data End Structure ' In case that the number of data is 5 - _ + Public Structure IODBTR Public datano_s As Short ' start group number Public dummy As Short ' dummy @@ -1592,7 +1746,7 @@ Public Class Focas1 End Structure ' cnc_rdtoolgrp:read tool life management data(all data within group) - _ + Public Structure ODBTG_data Public tuse_num As Integer ' tool number Public tool_num As Integer ' tool life @@ -1600,7 +1754,7 @@ Public Class Focas1 Public radius_num As Integer ' tool life counter Public tinfo As Integer ' tool life counter End Structure - _ + Public Structure ODBTG1 Public data1 As ODBTG_data Public data2 As ODBTG_data @@ -1608,10 +1762,10 @@ Public Class Focas1 Public data4 As ODBTG_data Public data5 As ODBTG_data End Structure ' In case that the number of data is 5 - _ + Public Structure ODBTG Public grp_num As Short ' start group number - _ + Public dummy As Short() ' dummy Public ntool As Integer ' tool number Public life As Integer ' tool life @@ -1620,13 +1774,13 @@ Public Class Focas1 End Structure ' cnc_wrcountr:write tool life management data(tool life counter) (area specified) - _ + Public Structure IDBWRC_data - _ + Public dummy As Integer() ' dummy Public count As Integer ' tool life counter End Structure - _ + Public Structure IDBWRC1 Public data1 As IDBWRC_data Public data2 As IDBWRC_data @@ -1634,7 +1788,7 @@ Public Class Focas1 Public data4 As IDBWRC_data Public data5 As IDBWRC_data End Structure ' In case that the number of data is 5 - _ + Public Structure IDBWRC Public datano_s As Short ' start group number Public dummy As Short ' dummy @@ -1643,7 +1797,7 @@ Public Class Focas1 End Structure ' cnc_rdusegrpid:read tool life management data(used tool group number) - _ + Public Structure ODBUSEGR Public datano As Short ' dummy Public type As Short ' dummy @@ -1654,7 +1808,7 @@ Public Class Focas1 ' cnc_rdmaxgrp:read tool life management data(max. number of tool groups) ' cnc_rdmaxtool:read tool life management data(maximum number of tool within group) - _ + Public Structure ODBLFNO Public datano As Short ' dummy Public type As Short ' dummy @@ -1662,20 +1816,20 @@ Public Class Focas1 End Structure ' cnc_rdusetlno:read tool life management data(used tool no within group) - _ + Public Structure ODBTLUSE Public s_grp As Short ' start group number Public dummy As Short ' dummy Public e_grp As Short ' end group number - _ - Public data As Integer() ' tool using number + + Public data As Integer() ' tool using number End Structure ' In case that the number of group is 5 ' cnc_rd1tlifedata:read tool life management data(tool data1) ' cnc_rd2tlifedata:read tool life management data(tool data2) ' cnc_wr1tlifedata:write tool life management data(tool data1) ' cnc_wr2tlifedata:write tool life management data(tool data2) - _ + Public Structure IODBTD Public datano As Short ' tool group number Public type As Short ' tool using number @@ -1687,7 +1841,7 @@ Public Class Focas1 ' cnc_rd1tlifedat2:read tool life management data(tool data1) 2 ' cnc_wr1tlifedat2:write tool life management data(tool data1) 2 - _ + Public Structure IODBTD2 Public datano As Short ' tool group number Public dummy As Short ' dummy @@ -1700,14 +1854,14 @@ Public Class Focas1 ' cnc_rdgrpinfo:read tool life management data(tool group information) ' cnc_wrgrpinfo:write tool life management data(tool group information) - _ + Public Structure IODBTGI_data Public n_tool As Integer ' number of tool Public count_value As Integer ' tool life Public counter As Integer ' tool life counter Public count_type As Integer ' tool life counter type End Structure - _ + Public Structure IODBTGI1 Public data1 As IODBTGI_data Public data2 As IODBTGI_data @@ -1715,7 +1869,7 @@ Public Class Focas1 Public data4 As IODBTGI_data Public data5 As IODBTGI_data End Structure ' In case that the number of data is 5 - _ + Public Structure IODBTGI Public s_grp As Short ' start group number Public dummy As Short ' dummy @@ -1725,40 +1879,40 @@ Public Class Focas1 ' cnc_rdgrpinfo2:read tool life management data(tool group information 2) ' cnc_wrgrpinfo2:write tool life management data(tool group information 2) - _ + Public Structure IODBTGI2 Public s_grp As Short ' start group number Public dummy As Short ' dummy Public e_grp As Short ' end group number - _ + Public opt_grpno As Integer() ' optional group number of tool End Structure ' In case that the number of group is 5 ' cnc_rdgrpinfo3:read tool life management data(tool group information 3) ' cnc_wrgrpinfo3:write tool life management data(tool group information 3) - _ + Public Structure IODBTGI3 Public s_grp As Short ' start group number Public dummy As Short ' dummy Public e_grp As Short ' end group number - _ + Public life_rest As Integer() ' tool life rest count End Structure ' In case that the number of group is 5 ' cnc_rdgrpinfo4:read tool life management data(tool group information 4) - _ + Public Structure IODBTGI4 - Public grp_no As Short - Public n_tool As Integer + Public grp_no As Short + Public n_tool As Integer Public count_value As Integer - Public counter As Integer - Public count_type As Integer - Public opt_grpno As Integer - Public life_rest As Integer + Public counter As Integer + Public count_type As Integer + Public opt_grpno As Integer + Public life_rest As Integer End Structure ' cnc_instlifedt:insert tool life management data(tool data) - _ + Public Structure IDBITD Public datano As Short ' tool group number Public type As Short ' tool using number @@ -1766,7 +1920,7 @@ Public Class Focas1 End Structure ' cnc_rdtlinfo:read tool life management data - _ + Public Structure ODBTLINFO Public max_group As Integer ' maximum number of tool groups Public max_tool As Integer ' maximum number of tool within group @@ -1775,7 +1929,7 @@ Public Class Focas1 End Structure ' cnc_rdtlusegrp:read tool life management data(used tool group number) - _ + Public Structure ODBUSEGRP Public iNext As Integer ' next use group number Public use As Integer ' using group number @@ -1786,7 +1940,7 @@ Public Class Focas1 End Structure ' cnc_rdtlgrp:read tool life management data(tool group information 2) - _ + Public Structure IODBTLGRP_data Public ntool As Integer ' number of all tool Public nfree As Integer ' number of free tool @@ -1798,7 +1952,7 @@ Public Class Focas1 Public rest_sig As Short ' tool life rest signal Public count_type As Short ' tool life counter type End Structure - _ + Public Structure IODBTLGRP Public data1 As IODBTLGRP_data Public data2 As IODBTLGRP_data @@ -1808,14 +1962,14 @@ Public Class Focas1 End Structure ' In case that the number of group is 5 ' cnc_rdtltool:read tool life management data (tool data1) - _ + Public Structure IODBTLTOOL_data Public tool_num As Integer ' tool number Public h_code As Integer ' H code Public d_code As Integer ' D code Public tool_inf As Integer ' tool information End Structure - _ + Public Structure IODBTLTOOL Public data1 As IODBTLTOOL_data Public data2 As IODBTLTOOL_data @@ -1824,23 +1978,23 @@ Public Class Focas1 Public data5 As IODBTLTOOL_data End Structure ' In case that the number of group is 5 - _ + Public Structure ODBEXGP_data Public grp_no As Integer ' group number Public opt_grpno As Integer ' optional group number - End Structure + End Structure - _ + Public Structure ODBEXGP - Public data1 As ODBEXGP_data - Public data2 As ODBEXGP_data - Public data3 As ODBEXGP_data - Public data4 As ODBEXGP_data - Public data5 As ODBEXGP_data - Public data6 As ODBEXGP_data - Public data7 As ODBEXGP_data - Public data8 As ODBEXGP_data - Public data9 As ODBEXGP_data + Public data1 As ODBEXGP_data + Public data2 As ODBEXGP_data + Public data3 As ODBEXGP_data + Public data4 As ODBEXGP_data + Public data5 As ODBEXGP_data + Public data6 As ODBEXGP_data + Public data7 As ODBEXGP_data + Public data8 As ODBEXGP_data + Public data9 As ODBEXGP_data Public data10 As ODBEXGP_data Public data11 As ODBEXGP_data Public data12 As ODBEXGP_data @@ -1864,16 +2018,16 @@ Public Class Focas1 Public data30 As ODBEXGP_data Public data31 As ODBEXGP_data Public data32 As ODBEXGP_data - End Structure + End Structure -'----------------------------------- -' CNC: Tool management data related -'----------------------------------- + '----------------------------------- + ' CNC: Tool management data related + '----------------------------------- ' cnc_regtool:new registration of tool management data ' cnc_rdtool:lead of tool management data ' cnc_wrtool:write of tool management data - _ + Public Structure IODBTLMNG_data Public T_code As Integer Public life_count As Integer @@ -1890,9 +2044,9 @@ Public Class Focas1 Public pot As Short Public G_code As Short Public W_code As Short - Public gno As Short - public m_ofs As Short - _ + Public gno As Short + Public m_ofs As Short + Public reserved As Integer() Public custom1 As Integer Public custom2 As Integer @@ -1915,8 +2069,8 @@ Public Class Focas1 Public custom19 As Integer Public custom20 As Integer End Structure - _ - Public Structure IODBTLMNG + + Public Structure IODBTLMNG Public data1 As IODBTLMNG_data Public data2 As IODBTLMNG_data Public data3 As IODBTLMNG_data @@ -1926,7 +2080,7 @@ Public Class Focas1 ' cnc_regtool_f2:new registration of tool management data ' cnc_rdtool_f2:lead of tool management data - _ + Public Structure IODBTLMNG_F2_data Public T_code As Integer Public life_count As Integer @@ -1940,12 +2094,12 @@ Public Class Focas1 Public spindle_speed As Integer Public feedrate As Integer Public magazine As Short - Public pot As Short - Public G_code As Short - Public W_code As Short - Public gno As Short - public m_ofs As Short - _ + Public pot As Short + Public G_code As Short + Public W_code As Short + Public gno As Short + Public m_ofs As Short + Public reserved As Integer() Public custom1 As Integer Public custom2 As Integer @@ -1988,7 +2142,7 @@ Public Class Focas1 Public custom39 As Integer Public custom40 As Integer End Structure - _ + Public Structure IODBTLMNG_F2 Public data1 As IODBTLMNG_F2_data Public data2 As IODBTLMNG_F2_data @@ -1998,16 +2152,16 @@ Public Class Focas1 End Structure ' In case that the number of group is 5 ' cnc_wrtool2:write of individual data of tool management data - _ + Public Structure IDBTLM_item - _ + Public data1 As SByte - _ + Public data2 As Short - _ + Public data4 As Integer End Structure - _ + Public Structure IDBTLM Public data_id As Short Public item As IDBTLM_item @@ -2015,13 +2169,13 @@ Public Class Focas1 ' cnc_regmagazine:new registration of magazine management data ' cnc_rdmagazine:lead of magazine management data - _ + Public Structure IODBTLMAG_data Public magazine As Short Public pot As Short Public tool_index As Short End Structure - _ + Public Structure IODBTLMAG Public data1 As IODBTLMAG_data Public data2 As IODBTLMAG_data @@ -2031,12 +2185,12 @@ Public Class Focas1 End Structure ' In case that the number of group is 5 ' cnc_delmagazine:deletion of magazine management data - _ + Public Structure IODBTLMAG2_data Public magazine As Short Public pot As Short End Structure - _ + Public Structure IODBTLMAG2 Public data1 As IODBTLMAG2_data Public data2 As IODBTLMAG2_data @@ -2046,12 +2200,12 @@ Public Class Focas1 End Structure ' In case that the number of group is 5 -'------------------------------------- -' CNC: Operation history data related -'------------------------------------- + '------------------------------------- + ' CNC: Operation history data related + '------------------------------------- ' cnc_rdophistry:read operation history data - _ + Public Structure REC_ALM Public rec_type As Short ' record type Public alm_grp As Short ' alarm group @@ -2059,15 +2213,15 @@ Public Class Focas1 Public axis_no As SByte ' axis number Public dummy As SByte End Structure - _ + Public Structure REC_MDI Public rec_type As Short ' record type Public key_code As Byte ' key code Public pw_flag As Byte ' power on flag - _ + Public dummy As SByte() End Structure - _ + Public Structure REC_SGN Public rec_type As Short ' record type Public sig_name As SByte ' signal name @@ -2076,107 +2230,107 @@ Public Class Focas1 Public dummy As SByte Public sig_no As Short ' signal number End Structure - _ + Public Structure REC_DATE Public rec_type As Short ' record type Public year As SByte ' year Public month As SByte ' month Public day As SByte ' day Public pw_flag As SByte ' power on flag - _ + Public dummy As SByte() End Structure - _ + Public Structure REC_TIME Public rec_type As Short ' record flag Public hour As SByte ' hour Public minute As SByte ' minute Public second As SByte ' second Public pw_flag As SByte ' power on flag - _ + Public dummy As SByte() End Structure - _ + Public Structure ODBHIS_data ' record type - _ + Public rec_type As Short ' record type ' alarm record - _ + Public alm_rec_type As Short ' record type - _ + Public alm_alm_grp As Short ' alarm group - _ + Public alm_alm_no As Short ' alarm number - _ + Public alm_axis_no As SByte ' axis number - _ + Public alm_dummy As SByte ' mdi record - _ + Public mdi_rec_type As Short ' record type - _ + Public mdi_key_code As Byte ' key code - _ + Public mdi_pw_flag As Byte ' power on flag - _ + Public mdi_dummy1 As SByte - _ + Public mdi_dummy2 As SByte - _ + Public mdi_dummy3 As SByte - _ + Public mdi_dummy4 As SByte ' sign record - _ + Public sgn_rec_type As Short ' record type - _ + Public sgn_sig_name As SByte ' signal name - _ + Public sgn_sig_old As Byte ' old signal bit pattern - _ + Public sgn_sig_new As Byte ' new signal bit pattern - _ + Public sgn_dummy As SByte - _ + Public sgn_sig_no As Short ' signal number ' date record - _ + Public date_rec_type As Short ' record type - _ + Public date_year As SByte ' year - _ + Public date_month As SByte ' month - _ + Public date_day As SByte ' day - _ + Public date_pw_flag As SByte ' power on flag - _ + Public date_dummy1 As SByte - _ + Public date_dummy2 As SByte ' time record - _ + Public time_rec_type As Short ' record flag - _ + Public time_hour As SByte ' hour - _ + Public time_minute As SByte ' minute - _ + Public time_second As SByte ' second - _ + Public time_pw_flag As SByte ' power on flag - _ + Public time_dummy1 As SByte - _ + Public time_dummy2 As SByte End Structure - _ + Public Structure ODBHIS1 Public data1 As ODBHIS_data Public data2 As ODBHIS_data @@ -2189,7 +2343,7 @@ Public Class Focas1 Public data9 As ODBHIS_data Public data10 As ODBHIS_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBHIS Public s_no As Short ' start number C# ushort Public type As Short ' dummy @@ -2198,19 +2352,19 @@ Public Class Focas1 End Structure ' cnc_rdophistry2:read operation history data - _ + Public Structure REC_MDI2 Public key_code As Byte ' key code Public pw_flag As Byte ' power on flag Public dummy As Short End Structure - _ + Public Structure REC_MDI2_data Public rec_len As Short ' length Public rec_type As Short ' record type Public data As REC_MDI2 End Structure - _ + Public Structure REC_SGN2 Public sig_name As Short ' signal name Public sig_no As Short ' signal number @@ -2218,13 +2372,13 @@ Public Class Focas1 Public sig_new As Byte ' new signal bit pattern Public dummy As Short End Structure - _ + Public Structure REC_SGN2_data Public rec_len As Short ' length Public rec_type As Short ' record type Public data As REC_SGN2 End Structure - _ + Public Structure REC_ALM2 Public alm_grp As Short ' alarm group Public alm_no As Short ' alarm number @@ -2237,13 +2391,13 @@ Public Class Focas1 Public second As Short ' second Public dummy As Short End Structure - _ + Public Structure REC_ALM2_data Public rec_len As Short ' length Public rec_type As Short ' record type Public data As REC_ALM2 End Structure - _ + Public Structure REC_DATE2 Public evnt_type As Short ' event type Public year As Short ' year @@ -2254,412 +2408,412 @@ Public Class Focas1 Public second As Short ' second Public dummy As Short End Structure - _ + Public Structure REC_DATE2_data Public rec_len As Short ' length Public rec_type As Short ' record type Public data As REC_DATE2 End Structure - _ + Public Structure ODBOPHIS - _ + Public rec_mdi As REC_MDI2_data - _ + Public rec_sgn As REC_SGN2_data - _ + Public rec_alm As REC_ALM2_data - _ + Public rec_date As REC_DATE2_data End Structure ' cnc_rdophistry4:read operation history data - _ + Public Structure REC_MDI4 Public key_code As Char ' key code - Public pw_flag As Char ' power on flag - Public pth_no As Short ' path index - Public ex_flag As Short ' kxternal key flag - Public hour As Short ' hour - Public minute As Short ' minute - Public second As Short ' second + Public pw_flag As Char ' power on flag + Public pth_no As Short ' path index + Public ex_flag As Short ' kxternal key flag + Public hour As Short ' hour + Public minute As Short ' minute + Public second As Short ' second End Structure - _ + Public Structure REC_MDI4_data - Public rec_len As Short ' length + Public rec_len As Short ' length Public rec_type As Short ' record type - Public data As REC_MDI4 + Public data As REC_MDI4 End Structure - _ + Public Structure REC_SGN4 Public sig_name As Short ' signal name - Public sig_no As Short ' signal number - Public sig_old As Char ' old signal bit pattern - Public sig_new As Char ' new signal bit pattern - Public pmc_no As Short ' pmc index - Public hour As Short ' hour - Public minute As Short ' minute - Public second As Short ' second - Public dummy As Short + Public sig_no As Short ' signal number + Public sig_old As Char ' old signal bit pattern + Public sig_new As Char ' new signal bit pattern + Public pmc_no As Short ' pmc index + Public hour As Short ' hour + Public minute As Short ' minute + Public second As Short ' second + Public dummy As Short End Structure - _ + Public Structure REC_SGN4_data - Public rec_len As Short ' length + Public rec_len As Short ' length Public rec_type As Short ' record type - Public data As REC_SGN4 + Public data As REC_SGN4 End Structure - _ + Public Structure REC_ALM4 - Public alm_grp As Short ' alarm group - Public alm_no As Short ' alarm number - Public axis_no As Short ' axis number - Public year As Short ' year - Public month As Short ' month - Public day As Short ' day - Public hour As Short ' hour - Public minute As Short ' minute - Public second As Short ' second - Public pth_no As Short ' path index + Public alm_grp As Short ' alarm group + Public alm_no As Short ' alarm number + Public axis_no As Short ' axis number + Public year As Short ' year + Public month As Short ' month + Public day As Short ' day + Public hour As Short ' hour + Public minute As Short ' minute + Public second As Short ' second + Public pth_no As Short ' path index End Structure - _ + Public Structure REC_ALM4_data - Public rec_len As Short ' length + Public rec_len As Short ' length Public rec_type As Short ' record type - Public data As REC_ALM4 + Public data As REC_ALM4 End Structure - _ + Public Structure REC_DATE4 Public evnt_type As Short ' event type - Public year As Short ' year - Public month As Short ' month - Public day As Short ' day - Public hour As Short ' hour - Public minute As Short ' minute - Public second As Short ' second - Public dummy As Short + Public year As Short ' year + Public month As Short ' month + Public day As Short ' day + Public hour As Short ' hour + Public minute As Short ' minute + Public second As Short ' second + Public dummy As Short End Structure - _ + Public Structure REC_DATE4_data - Public rec_len As Short ' length + Public rec_len As Short ' length Public rec_type As Short ' record type - Public data As REC_DATE4 + Public data As REC_DATE4 End Structure - _ + Public Structure REC_IAL4 - Public alm_grp As Short ' alarm group - Public alm_no As Short ' alarm number - Public axis_no As Short ' axis number - Public year As Short ' year - Public month As Short ' month - Public day As Short ' day - Public hour As Short ' hour - Public minute As Short ' minute - Public second As Short ' second - Public pth_no As Short ' path index - Public sys_alm As Short ' sys alarm - Public dsp_flg As Short ' message dsp flag + Public alm_grp As Short ' alarm group + Public alm_no As Short ' alarm number + Public axis_no As Short ' axis number + Public year As Short ' year + Public month As Short ' month + Public day As Short ' day + Public hour As Short ' hour + Public minute As Short ' minute + Public second As Short ' second + Public pth_no As Short ' path index + Public sys_alm As Short ' sys alarm + Public dsp_flg As Short ' message dsp flag Public axis_num As Short ' axis num - _ - Public g_modal As Integer() ' G code Modal - _ - Public g_dp As Char() ' #7:1 Block #6`#0 dp - _ - Public a_modal As Integer() ' B,D,E,F,H,M,N,O,S,T code Modal - _ - Public a_dp As Char() ' #7:1 Block #6`#0 dp - _ - Public abs_pos As Integer() ' Abs pos - _ - Public abs_dp As Char() ' Abs dp - _ - Public mcn_pos As Integer() ' Mcn pos - _ - Public mcn_dp As Char() ' Mcn dp + + Public g_modal As Integer() ' G code Modal + + Public g_dp As Char() ' #7:1 Block #6`#0 dp + + Public a_modal As Integer() ' B,D,E,F,H,M,N,O,S,T code Modal + + Public a_dp As Char() ' #7:1 Block #6`#0 dp + + Public abs_pos As Integer() ' Abs pos + + Public abs_dp As Char() ' Abs dp + + Public mcn_pos As Integer() ' Mcn pos + + Public mcn_dp As Char() ' Mcn dp End Structure - _ + Public Structure REC_IAL4_data - Public rec_len As Short ' length + Public rec_len As Short ' length Public rec_type As Short ' record type - Public data As REC_IAL4 + Public data As REC_IAL4 End Structure - _ + Public Structure REC_MAL4 - Public alm_grp As Short ' alarm group - Public alm_no As Short ' alarm number - Public axis_no As Short ' axis number - Public year As Short ' year - Public month As Short ' month - Public day As Short ' day - Public hour As Short ' hour - Public minute As Short ' minute - Public second As Short ' second - Public pth_no As Short ' path index - Public sys_alm As Short ' sys alarm - Public dsp_flg As Short ' message dsp flag + Public alm_grp As Short ' alarm group + Public alm_no As Short ' alarm number + Public axis_no As Short ' axis number + Public year As Short ' year + Public month As Short ' month + Public day As Short ' day + Public hour As Short ' hour + Public minute As Short ' minute + Public second As Short ' second + Public pth_no As Short ' path index + Public sys_alm As Short ' sys alarm + Public dsp_flg As Short ' message dsp flag Public axis_num As Short ' axis num - _ - Public alm_msg As Char() ' alarm message - _ - Public g_modal As Integer() ' G code Modal - _ - Public g_dp As Char() ' #7:1 Block #6`#0 dp - _ - Public a_modal As Integer() ' B,D,E,F,H,M,N,O,S,T code Modal - _ - Public a_dp As Char() ' #7:1 Block #6`#0 dp - _ - Public abs_pos As Integer() ' Abs pos - _ - Public abs_dp As Char() ' Abs dp - _ - Public mcn_pos As Integer() ' Mcn pos - _ - Public mcn_dp As Char() ' Mcn dp + + Public alm_msg As Char() ' alarm message + + Public g_modal As Integer() ' G code Modal + + Public g_dp As Char() ' #7:1 Block #6`#0 dp + + Public a_modal As Integer() ' B,D,E,F,H,M,N,O,S,T code Modal + + Public a_dp As Char() ' #7:1 Block #6`#0 dp + + Public abs_pos As Integer() ' Abs pos + + Public abs_dp As Char() ' Abs dp + + Public mcn_pos As Integer() ' Mcn pos + + Public mcn_dp As Char() ' Mcn dp End Structure - _ + Public Structure REC_MAL4_data - Public rec_len As Short ' length + Public rec_len As Short ' length Public rec_type As Short ' record type - Public data As REC_MAL4 + Public data As REC_MAL4 End Structure - _ + Public Structure REC_OPM4 - Public dsp_flg As Short ' Dysplay flag(ON/OFF) - Public om_no As Short ' message number - Public year As Short ' year - Public month As Short ' month - Public day As Short ' day - Public hour As Short ' hour - Public minute As Short ' minute - Public second As Short ' second - _ - Public ope_msg As Char() ' alarm message + Public dsp_flg As Short ' Dysplay flag(ON/OFF) + Public om_no As Short ' message number + Public year As Short ' year + Public month As Short ' month + Public day As Short ' day + Public hour As Short ' hour + Public minute As Short ' minute + Public second As Short ' second + + Public ope_msg As Char() ' alarm message End Structure - _ + Public Structure REC_OPM4_data - Public rec_len As Short ' length + Public rec_len As Short ' length Public rec_type As Short ' record type - Public data As REC_OPM4 + Public data As REC_OPM4 End Structure - _ + Public Structure REC_OFS4 - Public ofs_grp As Short ' Tool offset group - Public ofs_no As Short ' Tool offset number - Public hour As Short ' hour - Public minute As Short ' minute - Public second As Short ' second - Public pth_no As Short ' path index - Public ofs_old As Integer ' old data - Public ofs_new As Integer ' new data - Public old_dp As Short ' old data decimal point - Public new_dp As Short ' new data decimal point + Public ofs_grp As Short ' Tool offset group + Public ofs_no As Short ' Tool offset number + Public hour As Short ' hour + Public minute As Short ' minute + Public second As Short ' second + Public pth_no As Short ' path index + Public ofs_old As Integer ' old data + Public ofs_new As Integer ' new data + Public old_dp As Short ' old data decimal point + Public new_dp As Short ' new data decimal point End Structure - _ + Public Structure REC_OFS4_data - Public rec_len As Short ' length + Public rec_len As Short ' length Public rec_type As Short ' record type - Public data As REC_OFS4 + Public data As REC_OFS4 End Structure - _ + Public Structure REC_PRM4 - Public prm_grp As Short ' paramater group - Public prm_num As Short ' paramater number - Public hour As Short ' hour - Public minute As Short ' minute - Public second As Short ' second - Public prm_len As Short ' paramater data length - Public prm_no As Integer ' paramater no - Public prm_old As Integer ' old data - Public prm_new As Integer ' new data - Public old_dp As Short ' old data decimal point - Public new_dp As Short ' new data decimal point + Public prm_grp As Short ' paramater group + Public prm_num As Short ' paramater number + Public hour As Short ' hour + Public minute As Short ' minute + Public second As Short ' second + Public prm_len As Short ' paramater data length + Public prm_no As Integer ' paramater no + Public prm_old As Integer ' old data + Public prm_new As Integer ' new data + Public old_dp As Short ' old data decimal point + Public new_dp As Short ' new data decimal point End Structure - _ + Public Structure REC_PRM4_data - Public rec_len As Short ' length + Public rec_len As Short ' length Public rec_type As Short ' record type - Public data As REC_PRM4 + Public data As REC_PRM4 End Structure - _ + Public Structure REC_WOF4 - Public ofs_grp As Short ' Work offset group - Public ofs_no As Short ' Work offset number - Public hour As Short ' hour - Public minute As Short ' minute - Public second As Short ' second - Public pth_no As Short ' path index - Public axis_no As Short ' path axis num - Public dummy As Short - Public ofs_old As Integer ' old data - Public ofs_new As Integer ' new data - Public old_dp As Short ' old data decimal point - Public new_dp As Short ' new data decimal point + Public ofs_grp As Short ' Work offset group + Public ofs_no As Short ' Work offset number + Public hour As Short ' hour + Public minute As Short ' minute + Public second As Short ' second + Public pth_no As Short ' path index + Public axis_no As Short ' path axis num + Public dummy As Short + Public ofs_old As Integer ' old data + Public ofs_new As Integer ' new data + Public old_dp As Short ' old data decimal point + Public new_dp As Short ' new data decimal point End Structure - _ + Public Structure REC_WOF4_data - Public rec_len As Short ' length + Public rec_len As Short ' length Public rec_type As Short ' record type - Public data As REC_WOF4 + Public data As REC_WOF4 End Structure - _ + Public Structure REC_MAC4 - Public mac_no As Short ' macro val number - Public hour As Short ' hour - Public minute As Short ' minute - Public second As Short ' second - Public pth_no As Short ' path index - Public mac_old As Integer ' old data - Public mac_new As Integer ' new data - Public old_dp As Short ' old data decimal point - Public new_dp As Short ' new data decimal point + Public mac_no As Short ' macro val number + Public hour As Short ' hour + Public minute As Short ' minute + Public second As Short ' second + Public pth_no As Short ' path index + Public mac_old As Integer ' old data + Public mac_new As Integer ' new data + Public old_dp As Short ' old data decimal point + Public new_dp As Short ' new data decimal point End Structure - _ + Public Structure REC_MAC4_data - Public rec_len As Short ' length + Public rec_len As Short ' length Public rec_type As Short ' record type - Public data As REC_MAC4 + Public data As REC_MAC4 End Structure - _ + Public Structure ODBOPHIS4_1 - Public rec_mdi1 As REC_MDI4_data - Public rec_mdi2 As REC_MDI4_data - Public rec_mdi3 As REC_MDI4_data - Public rec_mdi4 As REC_MDI4_data - Public rec_mdi5 As REC_MDI4_data - Public rec_mdi6 As REC_MDI4_data - Public rec_mdi7 As REC_MDI4_data - Public rec_mdi8 As REC_MDI4_data - Public rec_mdi9 As REC_MDI4_data + Public rec_mdi1 As REC_MDI4_data + Public rec_mdi2 As REC_MDI4_data + Public rec_mdi3 As REC_MDI4_data + Public rec_mdi4 As REC_MDI4_data + Public rec_mdi5 As REC_MDI4_data + Public rec_mdi6 As REC_MDI4_data + Public rec_mdi7 As REC_MDI4_data + Public rec_mdi8 As REC_MDI4_data + Public rec_mdi9 As REC_MDI4_data Public rec_mdi10 As REC_MDI4_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBOPHIS4_2 - Public rec_sgn1 As REC_SGN4_data - Public rec_sgn2 As REC_SGN4_data - Public rec_sgn3 As REC_SGN4_data - Public rec_sgn4 As REC_SGN4_data - Public rec_sgn5 As REC_SGN4_data - Public rec_sgn6 As REC_SGN4_data - Public rec_sgn7 As REC_SGN4_data - Public rec_sgn8 As REC_SGN4_data - Public rec_sgn9 As REC_SGN4_data + Public rec_sgn1 As REC_SGN4_data + Public rec_sgn2 As REC_SGN4_data + Public rec_sgn3 As REC_SGN4_data + Public rec_sgn4 As REC_SGN4_data + Public rec_sgn5 As REC_SGN4_data + Public rec_sgn6 As REC_SGN4_data + Public rec_sgn7 As REC_SGN4_data + Public rec_sgn8 As REC_SGN4_data + Public rec_sgn9 As REC_SGN4_data Public rec_sgn10 As REC_SGN4_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBOPHIS4_3 - Public rec_alm1 As REC_ALM4_data - Public rec_alm2 As REC_ALM4_data - Public rec_alm3 As REC_ALM4_data - Public rec_alm4 As REC_ALM4_data - Public rec_alm5 As REC_ALM4_data - Public rec_alm6 As REC_ALM4_data - Public rec_alm7 As REC_ALM4_data - Public rec_alm8 As REC_ALM4_data - Public rec_alm9 As REC_ALM4_data + Public rec_alm1 As REC_ALM4_data + Public rec_alm2 As REC_ALM4_data + Public rec_alm3 As REC_ALM4_data + Public rec_alm4 As REC_ALM4_data + Public rec_alm5 As REC_ALM4_data + Public rec_alm6 As REC_ALM4_data + Public rec_alm7 As REC_ALM4_data + Public rec_alm8 As REC_ALM4_data + Public rec_alm9 As REC_ALM4_data Public rec_alm10 As REC_ALM4_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBOPHIS4_4 - Public rec_date1 As REC_DATE4_data - Public rec_date2 As REC_DATE4_data - Public rec_date3 As REC_DATE4_data - Public rec_date4 As REC_DATE4_data - Public rec_date5 As REC_DATE4_data - Public rec_date6 As REC_DATE4_data - Public rec_date7 As REC_DATE4_data - Public rec_date8 As REC_DATE4_data - Public rec_date9 As REC_DATE4_data + Public rec_date1 As REC_DATE4_data + Public rec_date2 As REC_DATE4_data + Public rec_date3 As REC_DATE4_data + Public rec_date4 As REC_DATE4_data + Public rec_date5 As REC_DATE4_data + Public rec_date6 As REC_DATE4_data + Public rec_date7 As REC_DATE4_data + Public rec_date8 As REC_DATE4_data + Public rec_date9 As REC_DATE4_data Public rec_date10 As REC_DATE4_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBOPHIS4_5 - Public rec_ial1 As REC_IAL4_data - Public rec_ial2 As REC_IAL4_data - Public rec_ial3 As REC_IAL4_data - Public rec_ial4 As REC_IAL4_data - Public rec_ial5 As REC_IAL4_data - Public rec_ial6 As REC_IAL4_data - Public rec_ial7 As REC_IAL4_data - Public rec_ial8 As REC_IAL4_data - Public rec_ial9 As REC_IAL4_data + Public rec_ial1 As REC_IAL4_data + Public rec_ial2 As REC_IAL4_data + Public rec_ial3 As REC_IAL4_data + Public rec_ial4 As REC_IAL4_data + Public rec_ial5 As REC_IAL4_data + Public rec_ial6 As REC_IAL4_data + Public rec_ial7 As REC_IAL4_data + Public rec_ial8 As REC_IAL4_data + Public rec_ial9 As REC_IAL4_data Public rec_ial10 As REC_IAL4_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBOPHIS4_6 - Public rec_mal1 As REC_MAL4_data - Public rec_mal2 As REC_MAL4_data - Public rec_mal3 As REC_MAL4_data - Public rec_mal4 As REC_MAL4_data - Public rec_mal5 As REC_MAL4_data - Public rec_mal6 As REC_MAL4_data - Public rec_mal7 As REC_MAL4_data - Public rec_mal8 As REC_MAL4_data - Public rec_mal9 As REC_MAL4_data + Public rec_mal1 As REC_MAL4_data + Public rec_mal2 As REC_MAL4_data + Public rec_mal3 As REC_MAL4_data + Public rec_mal4 As REC_MAL4_data + Public rec_mal5 As REC_MAL4_data + Public rec_mal6 As REC_MAL4_data + Public rec_mal7 As REC_MAL4_data + Public rec_mal8 As REC_MAL4_data + Public rec_mal9 As REC_MAL4_data Public rec_mal10 As REC_MAL4_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBOPHIS4_7 - Public rec_opm1 As REC_OPM4_data - Public rec_opm2 As REC_OPM4_data - Public rec_opm3 As REC_OPM4_data - Public rec_opm4 As REC_OPM4_data - Public rec_opm5 As REC_OPM4_data - Public rec_opm6 As REC_OPM4_data - Public rec_opm7 As REC_OPM4_data - Public rec_opm8 As REC_OPM4_data - Public rec_opm9 As REC_OPM4_data + Public rec_opm1 As REC_OPM4_data + Public rec_opm2 As REC_OPM4_data + Public rec_opm3 As REC_OPM4_data + Public rec_opm4 As REC_OPM4_data + Public rec_opm5 As REC_OPM4_data + Public rec_opm6 As REC_OPM4_data + Public rec_opm7 As REC_OPM4_data + Public rec_opm8 As REC_OPM4_data + Public rec_opm9 As REC_OPM4_data Public rec_opm10 As REC_OPM4_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBOPHIS4_8 - Public rec_ofs1 As REC_OFS4_data - Public rec_ofs2 As REC_OFS4_data - Public rec_ofs3 As REC_OFS4_data - Public rec_ofs4 As REC_OFS4_data - Public rec_ofs5 As REC_OFS4_data - Public rec_ofs6 As REC_OFS4_data - Public rec_ofs7 As REC_OFS4_data - Public rec_ofs8 As REC_OFS4_data - Public rec_ofs9 As REC_OFS4_data + Public rec_ofs1 As REC_OFS4_data + Public rec_ofs2 As REC_OFS4_data + Public rec_ofs3 As REC_OFS4_data + Public rec_ofs4 As REC_OFS4_data + Public rec_ofs5 As REC_OFS4_data + Public rec_ofs6 As REC_OFS4_data + Public rec_ofs7 As REC_OFS4_data + Public rec_ofs8 As REC_OFS4_data + Public rec_ofs9 As REC_OFS4_data Public rec_ofs10 As REC_OFS4_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBOPHIS4_9 - Public rec_prm1 As REC_PRM4_data - Public rec_prm2 As REC_PRM4_data - Public rec_prm3 As REC_PRM4_data - Public rec_prm4 As REC_PRM4_data - Public rec_prm5 As REC_PRM4_data - Public rec_prm6 As REC_PRM4_data - Public rec_prm7 As REC_PRM4_data - Public rec_prm8 As REC_PRM4_data - Public rec_prm9 As REC_PRM4_data + Public rec_prm1 As REC_PRM4_data + Public rec_prm2 As REC_PRM4_data + Public rec_prm3 As REC_PRM4_data + Public rec_prm4 As REC_PRM4_data + Public rec_prm5 As REC_PRM4_data + Public rec_prm6 As REC_PRM4_data + Public rec_prm7 As REC_PRM4_data + Public rec_prm8 As REC_PRM4_data + Public rec_prm9 As REC_PRM4_data Public rec_prm10 As REC_PRM4_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBOPHIS4_10 - Public rec_wof1 As REC_WOF4_data - Public rec_wof2 As REC_WOF4_data - Public rec_wof3 As REC_WOF4_data - Public rec_wof4 As REC_WOF4_data - Public rec_wof5 As REC_WOF4_data - Public rec_wof6 As REC_WOF4_data - Public rec_wof7 As REC_WOF4_data - Public rec_wof8 As REC_WOF4_data - Public rec_wof9 As REC_WOF4_data + Public rec_wof1 As REC_WOF4_data + Public rec_wof2 As REC_WOF4_data + Public rec_wof3 As REC_WOF4_data + Public rec_wof4 As REC_WOF4_data + Public rec_wof5 As REC_WOF4_data + Public rec_wof6 As REC_WOF4_data + Public rec_wof7 As REC_WOF4_data + Public rec_wof8 As REC_WOF4_data + Public rec_wof9 As REC_WOF4_data Public rec_wof10 As REC_WOF4_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBOPHIS4_11 Public rec_mac1 As REC_MAC4_data Public rec_mac2 As REC_MAC4_data @@ -2674,7 +2828,7 @@ Public Class Focas1 End Structure ' In case that the number of data is 10 ' cnc_rdalmhistry:read alarm history data - _ + Public Structure ALM_HIS_data Public dummy As Short Public alm_grp As Short ' alarm group @@ -2688,10 +2842,10 @@ Public Class Focas1 Public second As Byte ' second Public dummy2 As Byte Public len_msg As Short ' alarm message length - _ + Public alm_msg As String ' alarm message End Structure - _ + Public Structure ALM_HIS1 Public data1 As ALM_HIS_data Public data2 As ALM_HIS_data @@ -2704,7 +2858,7 @@ Public Class Focas1 Public data9 As ALM_HIS_data Public data10 As ALM_HIS_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBAHIS Public s_no As Short ' start number C# ushort Public type As Short ' dummy @@ -2713,7 +2867,7 @@ Public Class Focas1 End Structure ' cnc_rdalmhistry2:read alarm history data - _ + Public Structure ALM_HIS2_data Public alm_grp As Short ' alarm group Public alm_no As Short ' alarm number @@ -2725,10 +2879,10 @@ Public Class Focas1 Public minute As Short ' minute Public second As Short ' second Public len_msg As Short ' alarm message length - _ + Public alm_msg As String ' alarm message End Structure - _ + Public Structure ALM_HIS2 Public data1 As ALM_HIS2_data Public data2 As ALM_HIS2_data @@ -2741,7 +2895,7 @@ Public Class Focas1 Public data9 As ALM_HIS2_data Public data10 As ALM_HIS2_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBAHIS2 Public s_no As Short ' start number C# ushort Public e_no As Short ' end number C# ushort @@ -2749,7 +2903,7 @@ Public Class Focas1 End Structure ' cnc_rdalmhistry3:read alarm history data - _ + Public Structure ALM_HIS3_data Public alm_grp As Short ' alarm group Public alm_no As Short ' alarm number @@ -2763,10 +2917,10 @@ Public Class Focas1 Public len_msg As Short ' alarm message length Public pth_no As Short ' path index Public dummy As Short - _ + Public alm_msg As String ' alarm message End Structure - _ + Public Structure ALM_HIS3 Public data1 As ALM_HIS3_data Public data2 As ALM_HIS3_data @@ -2779,7 +2933,7 @@ Public Class Focas1 Public data9 As ALM_HIS3_data Public data10 As ALM_HIS3_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBAHIS3 Public s_no As Short ' start number C# ushort Public e_no As Short ' end number C# ushort @@ -2787,7 +2941,7 @@ Public Class Focas1 End Structure ' cnc_rdalmhistry5:read alarm history data - _ + Public Structure ALM_HIS5_data Public alm_grp As Short ' alarm group Public alm_no As Short ' alarm number @@ -2803,26 +2957,26 @@ Public Class Focas1 Public sys_alm As Short ' sys alarm Public dsp_flg As Short ' message dsp flag Public axis_num As Short ' sum axis num - _ + Public alm_msg As String ' alarm message - _ + Public g_modal As Integer() ' G code Modal - _ + Public g_dp As Char() ' #7:1 Block #6`#0 dp - _ + Public a_modal As Integer() ' B,D,E,F,H,M,N,O,S,T code Modal - _ + Public a_dp As Char() ' #7:1 Block #6`#0 dp - _ + Public abs_pos As Integer() ' Abs pos - _ + Public abs_dp As Char() ' Abs dp - _ + Public mcn_pos As Integer() ' Mcn pos - _ + Public mcn_dp As Char() ' Mcn dp End Structure - _ + Public Structure ALM_HIS5 Public data1 As ALM_HIS5_data Public data2 As ALM_HIS5_data @@ -2835,7 +2989,7 @@ Public Class Focas1 Public data9 As ALM_HIS5_data Public data10 As ALM_HIS5_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBAHIS5 Public s_no As Short ' start number C# ushort Public e_no As Short ' end number C# ushort @@ -2843,7 +2997,7 @@ Public Class Focas1 End Structure ' cnc_rdomhistry2:read operater message history data - _ + Public Structure ODBOMHIS2_data Public dsp_flg As Short ' Dysplay flag(ON/OFF) Public om_no As Short ' operater message number @@ -2853,39 +3007,39 @@ Public Class Focas1 Public hour As Short ' Hour Public minute As Short ' Minute Public second As Short ' Second - _ + Public alm_msg As String ' Messege End Structure - _ + Public Structure OPM_HIS - Public data1 As ODBOMHIS2_data - Public data2 As ODBOMHIS2_data - Public data3 As ODBOMHIS2_data - Public data4 As ODBOMHIS2_data - Public data5 As ODBOMHIS2_data - Public data6 As ODBOMHIS2_data - Public data7 As ODBOMHIS2_data - Public data8 As ODBOMHIS2_data - Public data9 As ODBOMHIS2_data + Public data1 As ODBOMHIS2_data + Public data2 As ODBOMHIS2_data + Public data3 As ODBOMHIS2_data + Public data4 As ODBOMHIS2_data + Public data5 As ODBOMHIS2_data + Public data6 As ODBOMHIS2_data + Public data7 As ODBOMHIS2_data + Public data8 As ODBOMHIS2_data + Public data9 As ODBOMHIS2_data Public data10 As ODBOMHIS2_data End Structure - _ + Public Structure ODBOMHIS2 - Public s_no As Short ' start number - Public e_no As Short ' end number + Public s_no As Short ' start number + Public e_no As Short ' end number Public opm_his As OPM_HIS End Structure ' cnc_rdhissgnl:read signals related operation history ' cnc_wrhissgnl:write signals related operation history - _ + Public Structure IODBSIG_data Public ent_no As Short ' entry number Public sig_no As Short ' signal number Public sig_name As Byte ' signal name Public mask_pat As Byte ' signal mask pattern End Structure - _ + Public Structure IODBSIG1 Public data1 As IODBSIG_data Public data2 As IODBSIG_data @@ -2908,33 +3062,33 @@ Public Class Focas1 Public data19 As IODBSIG_data Public data20 As IODBSIG_data End Structure - _ + Public Structure IODBSIG - Public datano As Short' dummy + Public datano As Short ' dummy Public type As Short ' dummy Public data As IODBSIG1 End Structure ' cnc_rdhissgnl2:read signals related operation history 2 ' cnc_wrhissgnl2:write signals related operation history 2 - _ + Public Structure _IODBSIG2_data Public ent_no As Short ' entry number Public sig_no As Short ' signal number Public sig_name As Byte ' signal name Public mask_pat As Byte ' signal mask pattern End Structure - _ + Public Structure IODBSIG2_data - Public data1 As _IODBSIG2_data - Public data2 As _IODBSIG2_data - Public data3 As _IODBSIG2_data - Public data4 As _IODBSIG2_data - Public data5 As _IODBSIG2_data - Public data6 As _IODBSIG2_data - Public data7 As _IODBSIG2_data - Public data8 As _IODBSIG2_data - Public data9 As _IODBSIG2_data + Public data1 As _IODBSIG2_data + Public data2 As _IODBSIG2_data + Public data3 As _IODBSIG2_data + Public data4 As _IODBSIG2_data + Public data5 As _IODBSIG2_data + Public data6 As _IODBSIG2_data + Public data7 As _IODBSIG2_data + Public data8 As _IODBSIG2_data + Public data9 As _IODBSIG2_data Public data10 As _IODBSIG2_data Public data11 As _IODBSIG2_data Public data12 As _IODBSIG2_data @@ -2972,7 +3126,7 @@ Public Class Focas1 Public data44 As _IODBSIG2_data Public data45 As _IODBSIG2_data End Structure - _ + Public Structure IODBSIG2 Public datano As Short ' dummy Public type As Short ' dummy @@ -2981,7 +3135,7 @@ Public Class Focas1 ' cnc_rdhissgnl3:read signals related operation history ' cnc_wrhissgnl3:write signals related operation history - _ + Public Structure _IODBSIG3_data Public ent_no As Short ' entry number Public pmc_no As Short ' pmc number @@ -2989,17 +3143,17 @@ Public Class Focas1 Public sig_name As Byte ' signal name Public mask_pat As Byte ' signal mask pattern End Structure - _ + Public Structure IODBSIG3_data - Public data1 As _IODBSIG3_data - Public data2 As _IODBSIG3_data - Public data3 As _IODBSIG3_data - Public data4 As _IODBSIG3_data - Public data5 As _IODBSIG3_data - Public data6 As _IODBSIG3_data - Public data7 As _IODBSIG3_data - Public data8 As _IODBSIG3_data - Public data9 As _IODBSIG3_data + Public data1 As _IODBSIG3_data + Public data2 As _IODBSIG3_data + Public data3 As _IODBSIG3_data + Public data4 As _IODBSIG3_data + Public data5 As _IODBSIG3_data + Public data6 As _IODBSIG3_data + Public data7 As _IODBSIG3_data + Public data8 As _IODBSIG3_data + Public data9 As _IODBSIG3_data Public data10 As _IODBSIG3_data Public data11 As _IODBSIG3_data Public data12 As _IODBSIG3_data @@ -3052,31 +3206,31 @@ Public Class Focas1 Public data59 As _IODBSIG3_data Public data60 As _IODBSIG3_data End Structure - _ + Public Structure IODBSIG3 - Public datano As Short' dummy + Public datano As Short ' dummy Public type As Short ' dummy Public data As IODBSIG3_data End Structure -'------------- -' CNC: Others -'------------- + '------------- + ' CNC: Others + '------------- ' cnc_sysinfo:read CNC system information - _ + Public Structure ODBSYS Public addinfo As Short Public max_axis As Short - _ + Public cnc_type As Char() - _ + Public mt_type As Char() - _ + Public series As Char() - _ + Public version As Char() - _ + Public axes As Char() End Structure @@ -3101,7 +3255,7 @@ Public Class Focas1 End Structure #Else ' cnc_statinfo:read CNC status information - _ + Public Structure ODBST Public dummy As Short ' dummy Public tmmode As Short ' T/M mode @@ -3116,9 +3270,9 @@ Public Class Focas1 #End If ' cnc_alarm:read alarm status - _ + Public Structure ODBALM - _ + Public dummy As Short() Public data As Short ' C# ushort End Structure @@ -3140,22 +3294,22 @@ Public Class Focas1 Public alm_msg As String ' alarm message End Structure #Else - _ + Public Structure ALMINFO1_data Public axis As Short Public alm_no As Short End Structure - _ + Public Structure ALMINFO2_data Public axis As Short Public alm_no As Short Public msg_len As Short - _ + Public alm_msg As String ' alarm message End Structure #End If - _ + Public Structure ALMINFO_1 Public msg1 As ALMINFO1_data Public msg2 As ALMINFO1_data @@ -3165,7 +3319,7 @@ Public Class Focas1 Public data_end As Short End Structure ' In case that the number of alarm is 5 - _ + Public Structure ALMINFO_2 Public msg1 As ALMINFO2_data Public msg2 As ALMINFO2_data @@ -3176,17 +3330,17 @@ Public Class Focas1 End Structure ' In case that the number of alarm is 5 ' cnc_rdalmmsg:read alarm messages - _ + Public Structure ODBALMMSG_data Public alm_no As Integer Public type As Short Public axis As Short Public dummy As Short Public msg_len As Short - _ + Public alm_msg As String ' alarm message End Structure - _ + Public Structure ODBALMMSG Public msg1 As ODBALMMSG_data Public msg2 As ODBALMMSG_data @@ -3201,17 +3355,17 @@ Public Class Focas1 End Structure ' In case that the number of alarm is 10 ' cnc_rdalmmsg2:read alarm messages - _ + Public Structure ODBALMMSG2_data Public alm_no As Integer Public type As Short Public axis As Short Public dummy As Short Public msg_len As Short - _ + Public alm_msg As String ' alarm message End Structure - _ + Public Structure ODBALMMSG2 Public msg1 As ODBALMMSG2_data Public msg2 As ODBALMMSG2_data @@ -3226,13 +3380,13 @@ Public Class Focas1 End Structure ' In case that the number of alarm is 10 ' cnc_modal:read modal data - _ + Public Structure MODAL_AUX_data Public aux_data As Integer Public flag1 As Byte Public flag2 As Byte End Structure - _ + Public Structure MODAL_RAUX1_data Public data1 As MODAL_AUX_data Public data2 As MODAL_AUX_data @@ -3262,6 +3416,43 @@ Public Class Focas1 Public data26 As MODAL_AUX_data Public data27 As MODAL_AUX_data End Structure +#If FS30D Then + + Public Structure MODAL_RAUX2_data + Public data1 As MODAL_AUX_data + Public data2 As MODAL_AUX_data + Public data3 As MODAL_AUX_data + Public data4 As MODAL_AUX_data + Public data5 As MODAL_AUX_data + Public data6 As MODAL_AUX_data + Public data7 As MODAL_AUX_data + Public data8 As MODAL_AUX_data + Public data9 As MODAL_AUX_data + Public data10 As MODAL_AUX_data + Public data11 As MODAL_AUX_data + Public data12 As MODAL_AUX_data + Public data13 As MODAL_AUX_data + Public data14 As MODAL_AUX_data + Public data15 As MODAL_AUX_data + Public data16 As MODAL_AUX_data + Public data17 As MODAL_AUX_data + Public data18 As MODAL_AUX_data + Public data19 As MODAL_AUX_data + Public data20 As MODAL_AUX_data + Public data21 As MODAL_AUX_data + Public data22 As MODAL_AUX_data + Public data23 As MODAL_AUX_data + Public data24 As MODAL_AUX_data + Public data25 As MODAL_AUX_data + Public data26 As MODAL_AUX_data + Public data27 As MODAL_AUX_data + Public data28 As MODAL_AUX_data + Public data29 As MODAL_AUX_data + Public data30 As MODAL_AUX_data + Public data31 As MODAL_AUX_data + Public data32 As MODAL_AUX_data + End Structure +#Else #If M_AXIS2 Then _ Public Structure MODAL_RAUX2_data @@ -3318,43 +3509,44 @@ Public Class Focas1 Public data8 As MODAL_AUX_data End Structure #End If +#End If #End If - _ + Public Structure ODBMDL_1 - _ + Public datano As Short - _ + Public type As Short - _ + Public g_data As Char End Structure - _ + Public Structure ODBMDL_2 - _ + Public datano As Short - _ + Public type As Short - _ + Public g_1shot As Byte() - _ + Public g_rdata As Byte() End Structure - _ + Public Structure ODBMDL_3 Public datano As Short Public type As Short Public aux As MODAL_AUX_data End Structure - _ + Public Structure ODBMDL_4 Public datano As Short Public type As Short Public raux1 As MODAL_RAUX1_data End Structure - _ + Public Structure ODBMDL_5 Public datano As Short Public type As Short @@ -3362,25 +3554,25 @@ Public Class Focas1 End Structure ' cnc_rdgcode: read G code - _ + Public Structure ODBGCD_data Public group As Short Public flag As Short - _ + Public code As String End Structure - _ + Public Structure ODBGCD - Public gcd0 As ODBGCD_data - Public gcd1 As ODBGCD_data - Public gcd2 As ODBGCD_data - Public gcd3 As ODBGCD_data - Public gcd4 As ODBGCD_data - Public gcd5 As ODBGCD_data - Public gcd6 As ODBGCD_data - Public gcd7 As ODBGCD_data - Public gcd8 As ODBGCD_data - Public gcd9 As ODBGCD_data + Public gcd0 As ODBGCD_data + Public gcd1 As ODBGCD_data + Public gcd2 As ODBGCD_data + Public gcd3 As ODBGCD_data + Public gcd4 As ODBGCD_data + Public gcd5 As ODBGCD_data + Public gcd6 As ODBGCD_data + Public gcd7 As ODBGCD_data + Public gcd8 As ODBGCD_data + Public gcd9 As ODBGCD_data Public gcd10 As ODBGCD_data Public gcd11 As ODBGCD_data Public gcd12 As ODBGCD_data @@ -3402,7 +3594,7 @@ Public Class Focas1 End Structure ' cnc_rdcommand: read command value - _ + Public Structure ODBCMD_data Public adrs As Byte Public num As Byte @@ -3410,18 +3602,18 @@ Public Class Focas1 Public cmd_val As Integer Public dec_val As Integer End Structure - _ + Public Structure ODBCMD - Public cmd0 As ODBCMD_data - Public cmd1 As ODBCMD_data - Public cmd2 As ODBCMD_data - Public cmd3 As ODBCMD_data - Public cmd4 As ODBCMD_data - Public cmd5 As ODBCMD_data - Public cmd6 As ODBCMD_data - Public cmd7 As ODBCMD_data - Public cmd8 As ODBCMD_data - Public cmd9 As ODBCMD_data + Public cmd0 As ODBCMD_data + Public cmd1 As ODBCMD_data + Public cmd2 As ODBCMD_data + Public cmd3 As ODBCMD_data + Public cmd4 As ODBCMD_data + Public cmd5 As ODBCMD_data + Public cmd6 As ODBCMD_data + Public cmd7 As ODBCMD_data + Public cmd8 As ODBCMD_data + Public cmd9 As ODBCMD_data Public cmd10 As ODBCMD_data Public cmd11 As ODBCMD_data Public cmd12 As ODBCMD_data @@ -3446,12 +3638,48 @@ Public Class Focas1 ' cnc_diagnoss:read diagnosis data ' cnc_diagnosr:read diagnosis data(area specified) - _ + Public Structure REALDGN Public dgn_val As Integer ' data of real diagnoss Public dec_val As Integer ' decimal point of real diagnoss End Structure - +#If FS30D Then + + Public Structure REALDGNS + Public rdata1 As REALDGN + Public rdata2 As REALDGN + Public rdata3 As REALDGN + Public rdata4 As REALDGN + Public rdata5 As REALDGN + Public rdata6 As REALDGN + Public rdata7 As REALDGN + Public rdata8 As REALDGN + Public rdata9 As REALDGN + Public rdata10 As REALDGN + Public rdata11 As REALDGN + Public rdata12 As REALDGN + Public rdata13 As REALDGN + Public rdata14 As REALDGN + Public rdata15 As REALDGN + Public rdata16 As REALDGN + Public rdata17 As REALDGN + Public rdata18 As REALDGN + Public rdata19 As REALDGN + Public rdata20 As REALDGN + Public rdata21 As REALDGN + Public rdata22 As REALDGN + Public rdata23 As REALDGN + Public rdata24 As REALDGN + Public rdata25 As REALDGN + Public rdata26 As REALDGN + Public rdata27 As REALDGN + Public rdata28 As REALDGN + Public rdata29 As REALDGN + Public rdata30 As REALDGN + Public rdata31 As REALDGN + Public rdata32 As REALDGN + End Structure ' In case that the number of alarm is 24 +#Else #If M_AXIS2 Then _ Public Structure REALDGNS @@ -3508,50 +3736,51 @@ Public Class Focas1 Public rdata8 As REALDGN End Structure ' In case that the number of alarm is 8 #End If +#End If #End If - _ + Public Structure ODBDGN_1 - _ + Public datano As Short ' data number - _ + Public type As Short ' axis number - _ + Public cdata As Byte ' parameter / setting data - _ + Public idata As Short - _ + Public ldata As Integer End Structure - _ + Public Structure ODBDGN_2 Public datano As Short ' data number Public type As Short ' axis number Public rdata As REALDGN End Structure - _ + Public Structure ODBDGN_3 - _ + Public datano As Short ' data number - _ + Public type As Short ' axis number - _ + Public cdatas As Byte() - _ + Public idatas As Short() - _ + Public ldatas As Integer() End Structure - _ + Public Structure ODBDGN_4 Public datano As Short ' data number Public type As Short ' axis number Public rdatas As REALDGNS End Structure - _ + Public Structure ODBDGN_A Public data1 As ODBDGN_1 Public data2 As ODBDGN_1 @@ -3561,7 +3790,7 @@ Public Class Focas1 Public data6 As ODBDGN_1 Public data7 As ODBDGN_1 End Structure ' (sample) must be modified - _ + Public Structure ODBDGN_B Public data1 As ODBDGN_2 Public data2 As ODBDGN_2 @@ -3571,7 +3800,7 @@ Public Class Focas1 Public data6 As ODBDGN_2 Public data7 As ODBDGN_2 End Structure ' (sample) must be modified - _ + Public Structure ODBDGN_C Public data1 As ODBDGN_3 Public data2 As ODBDGN_3 @@ -3581,7 +3810,7 @@ Public Class Focas1 Public data6 As ODBDGN_3 Public data7 As ODBDGN_3 End Structure ' (sample) must be modified - _ + Public Structure ODBDGN_D Public data1 As ODBDGN_4 Public data2 As ODBDGN_4 @@ -3593,7 +3822,7 @@ Public Class Focas1 End Structure ' (sample) must be modified ' cnc_adcnv:read A/D conversion data - _ + Public Structure ODBAD Public datano As Short ' input analog voltage type Public type As Short ' analog voltage type @@ -3611,16 +3840,16 @@ Public Class Focas1 Public data As String ' operator's message string End Structure ' In case that the data length is 129 #Else - _ + Public Structure OPMSG_data Public datano As Short ' operator's message number Public type As Short ' operator's message type Public char_num As Short ' message string length - _ + Public data As String ' operator's message string End Structure ' In case that the data length is 256 #End If - _ + Public Structure OPMSG Public msg1 As OPMSG_data Public msg2 As OPMSG_data @@ -3630,15 +3859,15 @@ Public Class Focas1 End Structure ' cnc_rdopmsg2:read operator's message - _ + Public Structure OPMSG2_data Public datano As Short ' operator's message number Public type As Short ' operator's message type Public char_num As Short ' message string length - _ + Public data As String ' operator's message string End Structure ' In case that the data length is 64 - _ + Public Structure OPMSG2 Public msg1 As OPMSG2_data Public msg2 As OPMSG2_data @@ -3648,15 +3877,15 @@ Public Class Focas1 End Structure ' cnc_rdopmsg3:read operator's message - _ + Public Structure OPMSG3_data Public datano As Short ' operator's message number Public type As Short ' operator's message type Public char_num As Short ' message string length - _ + Public data As String ' operator's message string End Structure ' In case that the data length is 256 - _ + Public Structure OPMSG3 Public msg1 As OPMSG3_data Public msg2 As OPMSG3_data @@ -3666,95 +3895,95 @@ Public Class Focas1 End Structure ' cnc_sysconfig:read CNC configuration information - _ + Public Structure ODBSYSC - _ + Public slot_no_p As Byte() - _ + Public slot_no_l As Byte() - _ + Public mod_id As Short() - _ + Public soft_id As Short() - _ + Public s_series1 As String - _ + Public s_series2 As String - _ + Public s_series3 As String - _ + Public s_series4 As String - _ + Public s_series5 As String - _ + Public s_series6 As String - _ + Public s_series7 As String - _ + Public s_series8 As String - _ + Public s_series9 As String - _ + Public s_series10 As String - _ + Public s_series11 As String - _ + Public s_series12 As String - _ + Public s_series13 As String - _ + Public s_series14 As String - _ + Public s_series15 As String - _ + Public s_series16 As String - _ + Public s_version1 As String - _ + Public s_version2 As String - _ + Public s_version3 As String - _ + Public s_version4 As String - _ + Public s_version5 As String - _ + Public s_version6 As String - _ + Public s_version7 As String - _ + Public s_version8 As String - _ + Public s_version9 As String - _ + Public s_version10 As String - _ + Public s_version11 As String - _ + Public s_version12 As String - _ + Public s_version13 As String - _ + Public s_version14 As String - _ + Public s_version15 As String - _ + Public s_version16 As String - _ + Public dummy As Byte() Public m_rom As Short Public s_rom As Short - _ + Public svo_soft As Char() - _ + Public pmc_soft As Char() - _ + Public lad_soft As Char() - _ + Public mcr_soft As Char() - _ + Public spl1_soft As Char() - _ + Public spl2_soft As Char() Public frmmin As Short Public drmmin As Short @@ -3802,22 +4031,22 @@ Public Class Focas1 End Structure ' cnc_rdprstrinfo:read program restart information - _ + Public Structure ODBPRS Public datano As Short ' dummy Public type As Short ' dummy - _ + Public data_info As Short() ' data setting information Public rstr_bc As Integer ' block counter - _ + Public rstr_m As Integer() ' M code value - _ + Public rstr_t As Integer() ' T code value Public rstr_s As Integer ' S code value Public rstr_b As Integer ' B code value - _ + Public dest As Integer() ' program re-start position - _ + Public dist As Integer() ' program re-start distance End Structure @@ -3848,7 +4077,7 @@ Public Class Focas1 #Else ' cnc_rdopnlsgnl:read output signal image of software operator's panel ' cnc_wropnlsgnl:write output signal of software operator's panel - _ + Public Structure IODBSGNL Public datano As Short ' dummy Public type As Short ' data select flag @@ -3861,7 +4090,7 @@ Public Class Focas1 Public spdl_ovrd As Short ' (not used) Public blck_del As Short ' optional block skip signal Public sngl_blck As Short ' single block signal - Public machn_lock As Short' machine lock signal + Public machn_lock As Short ' machine lock signal Public dry_run As Short ' dry run signal Public mem_prtct As Short ' memory protection signal Public feed_hold As Short ' automatic operation halt signal @@ -3870,39 +4099,39 @@ Public Class Focas1 ' cnc_rdopnlgnrl:read general signal image of software operator's panel ' cnc_wropnlgnrl:write general signal image of software operator's panel - _ + Public Structure IODBGNRL - Public datano As Short' dummy - Public type As Short' data select flag + Public datano As Short ' dummy + Public type As Short ' data select flag Public sgnal As Byte ' general signal End Structure ' cnc_rdopnlgsname:read general signal name of software operator's panel ' cnc_wropnlgsname:write general signal name of software operator's panel - _ + Public Structure IODBRDNA Public datano As Short ' dummy Public type As Short ' data select flag - _ + Public sgnl1_name As String ' general signal 1 name - _ + Public sgnl2_name As String ' general signal 2 name - _ + Public sgnl3_name As String ' general signal 3 name - _ + Public sgnl4_name As String ' general signal 4 name - _ + Public sgnl5_name As String ' general signal 5 name - _ + Public sgnl6_name As String ' general signal 6 name - _ + Public sgnl7_name As String ' general signal 7 name - _ + Public sgnl8_name As String ' general signal 8 name End Structure ' cnc_getdtailerr:get detail error - _ + Public Structure ODBERR Public err_no As Short Public err_dtno As Short @@ -3910,12 +4139,12 @@ Public Class Focas1 ' cnc_rdparainfo:read informations of CNC parameter - _ + Public Structure ODBPARAIF_info Public prm_no As Short Public prm_type As Short End Structure - _ + Public Structure ODBPARAIF1 Public info1 As ODBPARAIF_info Public info2 As ODBPARAIF_info @@ -3928,7 +4157,7 @@ Public Class Focas1 Public info9 As ODBPARAIF_info Public info10 As ODBPARAIF_info End Structure ' In case that the number of data is 10 - _ + Public Structure ODBPARAIF Public info_no As Short ' C# ushort Public prev_no As Short @@ -3937,12 +4166,12 @@ Public Class Focas1 End Structure ' cnc_rdsetinfo:read informations of CNC setting data - _ + Public Structure ODBSETIF_info Public set_no As Short Public set_type As Short End Structure - _ + Public Structure ODBSETIF1 Public info1 As ODBSETIF_info Public info2 As ODBSETIF_info @@ -3955,7 +4184,7 @@ Public Class Focas1 Public info9 As ODBSETIF_info Public info10 As ODBSETIF_info End Structure ' In case that the number of data is 10 - _ + Public Structure ODBSETIF Public info_no As Short 'C# ushort Public prev_no As Short @@ -3964,12 +4193,12 @@ Public Class Focas1 End Structure ' cnc_rddiaginfo:read informations of CNC diagnose data - _ + Public Structure ODBDIAGIF_info Public diag_no As Short Public diag_type As Short End Structure - _ + Public Structure ODBDIAGIF1 Public info1 As ODBDIAGIF_info Public info2 As ODBDIAGIF_info @@ -3982,7 +4211,7 @@ Public Class Focas1 Public info9 As ODBDIAGIF_info Public info10 As ODBDIAGIF_info End Structure ' In case that the number of data is 10 - _ + Public Structure ODBDIAGIF Public info_no As Short ' C# ushort Public prev_no As Short @@ -3991,7 +4220,7 @@ Public Class Focas1 End Structure ' cnc_rdparanum:read maximum, minimum and total number of CNC parameter - _ + Public Structure ODBPARANUM Public para_min As Short ' C# ushort Public para_max As Short ' C# ushort @@ -3999,7 +4228,7 @@ Public Class Focas1 End Structure ' cnc_rdsetnum:read maximum, minimum and total number of CNC setting data - _ + Public Structure ODBSETNUM Public set_min As Short ' C# ushort Public set_max As Short ' C# ushort @@ -4007,7 +4236,7 @@ Public Class Focas1 End Structure ' cnc_rddiagnum:read maximum, minimum and total number of CNC diagnose data - _ + Public Structure ODBDIAGNUM Public diag_min As Short ' C# ushort Public diag_max As Short ' C# ushort @@ -4015,13 +4244,13 @@ Public Class Focas1 End Structure ' cnc_rdfrominfo:read F-ROM information on CNC - _ + Public Structure ODBFINFO_info - _ + Public sysname As String ' F-ROM SYSTEM data Name Public fromsize As Integer ' F-ROM Size End Structure - _ + Public Structure ODBFINFO1 Public info1 As ODBFINFO_info Public info2 As ODBFINFO_info @@ -4056,23 +4285,23 @@ Public Class Focas1 Public info31 As ODBFINFO_info Public info32 As ODBFINFO_info End Structure - _ + Public Structure ODBFINFO - _ + Public slotname As String ' Slot Name Public fromnum As Integer ' Number of F-ROM SYSTEM data Public info As ODBFINFO1 End Structure ' cnc_getfrominfo:read F-ROM information on CNC - _ + Public Structure ODBFINFORM_info - _ + Public sysname As String ' F-ROM SYSTEM data Name Public fromsize As Integer ' F-ROM Size Public fromattrib As Integer ' F-ROM data attribute End Structure - _ + Public Structure ODBFINFORM1 Public info1 As ODBFINFORM_info Public info2 As ODBFINFORM_info @@ -4107,10 +4336,10 @@ Public Class Focas1 Public info31 As ODBFINFORM_info Public info32 As ODBFINFORM_info End Structure - _ + Public Structure ODBFINFORM Public slotno As Integer ' Slot Number - _ + Public slotname As String ' Slot Name Public fromnum As Integer ' Number of F-ROM SYSTEM data Public info As ODBFINFORM1 @@ -4118,26 +4347,26 @@ Public Class Focas1 ' cnc_rdsraminfo:read S-RAM information on CNC ' cnc_getsraminfo:read S-RAM information on CNC - _ + Public Structure ODBSINFO_info - _ + Public sramname As String ' S-RAM data Name Public sramsize As Integer ' S-RAM data Size Public divnumber As Short ' Division number of S-RAM file - _ + Public fname1 As String ' S-RAM data Name1 - _ + Public fname2 As String ' S-RAM data Name2 - _ + Public fname3 As String ' S-RAM data Name3 - _ + Public fname4 As String ' S-RAM data Name4 - _ + Public fname5 As String ' S-RAM data Name5 - _ + Public fname6 As String ' S-RAM data Name6 End Structure - _ + Public Structure ODBSINFO1 Public info1 As ODBSINFO_info Public info2 As ODBSINFO_info @@ -4148,14 +4377,14 @@ Public Class Focas1 Public info7 As ODBSINFO_info Public info8 As ODBSINFO_info End Structure - _ + Public Structure ODBSINFO Public sramnum As Integer ' Number of S-RAM data Public info As ODBSINFO1 End Structure ' cnc_rdsramaddr:read S-RAM address on CNC - _ + Public Structure SRAMADDR Public type As Short ' SRAM data type Public size As Integer ' SRAM data size @@ -4163,17 +4392,17 @@ Public Class Focas1 End Structure ' cnc_dtsvrdpgdir:read file directory in Data Server - _ + Public Structure ODBDSDIR_data - _ + Public file_name As String - _ + Public comment As String Public size As Integer - _ + Public sDate As String End Structure - _ + Public Structure ODBDSDIR1 Public data1 As ODBDSDIR_data Public data2 As ODBDSDIR_data @@ -4208,7 +4437,7 @@ Public Class Focas1 Public data31 As ODBDSDIR_data Public data32 As ODBDSDIR_data End Structure - _ + Public Structure ODBDSDIR Public file_num As Integer Public remainder As Integer @@ -4218,26 +4447,26 @@ Public Class Focas1 ' cnc_dtsvrdset:read setting data for Data Server ' cnc_dtsvwrset:write setting data for Data Server - _ + Public Structure IODBDSSET - _ + Public host_ip As String - _ + Public host_uname As String - _ + Public host_passwd As String - _ + Public host_dir As String - _ + Public dtsv_mac As String - _ + Public dtsv_ip As String - _ + Public dtsv_mask As String End Structure ' cnc_dtsvmntinfo:read maintenance information for Data Server - _ + Public Structure ODBDSMNT Public empty_cnt As Integer Public total_size As Integer @@ -4246,21 +4475,21 @@ Public Class Focas1 End Structure ' cnc_rdposerrs2:read the position deviation S1 and S2 - _ + Public Structure ODBPSER Public poserr1 As Integer Public poserr2 As Integer End Structure ' cnc_rdctrldi:read the control input signal - _ + Public Structure ODBSPDI_data Public sgnl1 As Byte Public sgnl2 As Byte Public sgnl3 As Byte Public sgnl4 As Byte End Structure - _ + Public Structure ODBSPDI Public di1 As ODBSPDI_data Public di2 As ODBSPDI_data @@ -4269,14 +4498,14 @@ Public Class Focas1 End Structure ' cnc_rdctrldo:read the control output signal - _ + Public Structure ODBSPDO_data Public sgnl1 As Byte Public sgnl2 As Byte Public sgnl3 As Byte Public sgnl4 As Byte End Structure - _ + Public Structure ODBSPDO Public do1 As ODBSPDO_data Public do2 As ODBSPDO_data @@ -4286,29 +4515,29 @@ Public Class Focas1 ' cnc_rdwaveprm:read the parameter of wave diagnosis ' cnc_wrwaveprm:write the parameter of wave diagnosis - _ + Public Structure IODBWAVE_io Public adr As Byte Public bit As Byte Public no As Short End Structure - _ + Public Structure IODBWAVE_axis Public axis As Short End Structure - _ + Public Structure IODBWAVE_u - _ + Public io As IODBWAVE_io - _ + Public axis As IODBWAVE_axis End Structure - _ + Public Structure IODBWAVE_ch_data Public kind As Short Public u As IODBWAVE_u End Structure - _ + Public Structure IODBWAVE_ch Public ch1 As IODBWAVE_ch_data Public ch2 As IODBWAVE_ch_data @@ -4323,7 +4552,7 @@ Public Class Focas1 Public ch11 As IODBWAVE_ch_data Public ch12 As IODBWAVE_ch_data End Structure - _ + Public Structure IODBWAVE Public condition As Short Public trg_adr As Char @@ -4336,30 +4565,30 @@ Public Class Focas1 ' cnc_rdwaveprm2:read the parameter of wave diagnosis 2 ' cnc_wrwaveprm2:write the parameter of wave diagnosis 2 - _ + Public Structure IODBWVPRM_io Public adr As Byte Public bit As Byte Public no As Short End Structure - _ + Public Structure IODBWVPRM_axis Public axis As Short End Structure - _ + Public Structure IODBWVPRM_u - _ + Public io As IODBWVPRM_io - _ + Public axis As IODBWVPRM_axis End Structure - _ + Public Structure IODBWVPRM_ch_data Public kind As Short Public u As IODBWVPRM_u Public reserve2 As Integer End Structure - _ + Public Structure IODBWVPRM_ch Public ch1 As IODBWVPRM_ch_data Public ch2 As IODBWVPRM_ch_data @@ -4374,7 +4603,7 @@ Public Class Focas1 Public ch11 As IODBWVPRM_ch_data Public ch12 As IODBWVPRM_ch_data End Structure - _ + Public Structure IODBWVPRM Public condition As Short Public trg_adr As Byte @@ -4387,24 +4616,24 @@ Public Class Focas1 End Structure ' cnc_rdwavedata:read the data of wave diagnosis - _ + Public Structure ODBWVDT_io Public adr As Byte Public bit As Byte Public no As Short End Structure - _ + Public Structure ODBWVDT_axis Public axis As Short End Structure - _ + Public Structure ODBWVDT_u - _ + Public io As ODBWVDT_io - _ + Public axis As ODBWVDT_axis End Structure - _ + Public Structure ODBWVDT Public channel As Short Public kind As Short @@ -4416,38 +4645,38 @@ Public Class Focas1 Public minute As Byte Public second As Byte Public t_cycle As Short - _ + Public data As Short() End Structure ' cnc_rdrmtwaveprm:read the parameter of wave diagnosis for remort diagnosis ' cnc_wrrmtwaveprm:write the parameter of wave diagnosis for remort diagnosis - _ + Public Structure IODBRMTPRM_alm Public no As Short Public axis As SByte Public type As Byte End Structure - _ + Public Structure IODBRMTPRM_io Public adr As Char Public bit As Byte Public no As Short End Structure - _ + Public Structure IODBRMTPRM_trg - _ + Public alm As IODBRMTPRM_alm - _ + Public io As IODBRMTPRM_alm End Structure - _ + Public Structure IODBRMTPRM_smpl - Public adr As Char - Public bit As Byte - Public no As Short + Public adr As Char + Public bit As Byte + Public no As Short End Structure - _ + Public Structure IODBRMTPRM1 Public ampl1 As IODBRMTPRM_smpl Public ampl2 As IODBRMTPRM_smpl @@ -4482,7 +4711,7 @@ Public Class Focas1 Public ampl31 As IODBRMTPRM_smpl Public ampl32 As IODBRMTPRM_smpl End Structure - _ + Public Structure IODBRMTPRM Public condition As Short Public reserve As Short @@ -4496,7 +4725,7 @@ Public Class Focas1 End Structure ' cnc_rdrmtwavedt:read the data of wave diagnosis for remort diagnosis - _ + Public Structure ODBRMTDT Public channel As Short Public kind As Short @@ -4510,13 +4739,13 @@ Public Class Focas1 Public trg_data As Short Public ins_ptr As Integer Public t_delta As Short - _ + Public data As Short() End Structure ' cnc_rdsavsigadr:read of address for PMC signal batch save ' cnc_wrsavsigadr:write of address for PMC signal batch save - _ + Public Structure IODBSIGAD Public adr As Byte Public reserve As Byte @@ -4525,15 +4754,15 @@ Public Class Focas1 End Structure ' cnc_rdmgrpdata:read M-code group data - _ + Public Structure ODBMGRP_data Public m_code As Integer Public grp_no As Short - _ + Public m_name As String Public dummy As Byte End Structure - _ + Public Structure ODBMGRP Public mgrp1 As ODBMGRP_data Public mgrp2 As ODBMGRP_data @@ -4548,22 +4777,22 @@ Public Class Focas1 End Structure ' cnc_wrmgrpdata:write M-code group data - _ + Public Structure IDBMGRP Public s_no As Short Public dummy As Short Public num As Short - _ + Public group As Short() End Structure ' cnc_rdexecmcode:read executing M-code group data - _ + Public Structure ODBEXEM_data Public no As Integer Public flag As Short End Structure - _ + Public Structure ODBEXEM1 Public m_code1 As ODBEXEM_data Public m_code2 As ODBEXEM_data @@ -4571,23 +4800,23 @@ Public Class Focas1 Public m_code4 As ODBEXEM_data Public m_code5 As ODBEXEM_data End Structure - _ + Public Structure ODBEXEM Public grp_no As Short Public mem_no As Short Public m_code As ODBEXEM1 - _ + Public m_name As String Public dummy As Byte End Structure ' cnc_rdrstrmcode:read program restart M-code group data - _ + Public Structure M_CODE_data Public no As Integer Public flag As Short End Structure - _ + Public Structure M_CODE1 Public m_code1 As M_CODE_data Public m_code2 As M_CODE_data @@ -4595,7 +4824,7 @@ Public Class Focas1 Public m_code4 As M_CODE_data Public m_code5 As M_CODE_data End Structure - _ + Public Structure ODBRSTRM Public grp_no As Short Public mem_no As Short @@ -4603,14 +4832,14 @@ Public Class Focas1 End Structure ' cnc_rdproctime:read processing time stamp data - _ + Public Structure ODBPTIME_data Public prg_no As Integer Public hour As Short Public minute As Byte Public second As Byte End Structure - _ + Public Structure ODBPTIME1 Public data1 As ODBPTIME_data Public data2 As ODBPTIME_data @@ -4623,22 +4852,22 @@ Public Class Focas1 Public data9 As ODBPTIME_data Public data10 As ODBPTIME_data End Structure ' In case that the number of data is 10 - _ + Public Structure ODBPTIME Public num As Short Public data As ODBPTIME1 End Structure ' cnc_rdprgdirtime:read program directory for processing time data - _ + Public Structure PRGDIRTM_data Public prg_no As Integer - _ + Public m_name As String - _ + Public cuttime As String End Structure - _ + Public Structure PRGDIRTM Public data1 As PRGDIRTM_data Public data2 As PRGDIRTM_data @@ -4654,11 +4883,11 @@ Public Class Focas1 ' cnc_rdprogdir2:read program directory 2 #If ONO8D = Nothing Then - _ + Public Structure PRGDIR2_data Public number As Short Public length As Integer - _ + Public comment As String Public dummy As Byte End Structure @@ -4672,7 +4901,7 @@ Public Class Focas1 Public dummy As Byte End Structure #End If - _ + Public Structure PRGDIR2 Public dir1 As PRGDIR2_data Public dir2 As PRGDIR2_data @@ -4687,35 +4916,35 @@ Public Class Focas1 End Structure ' In case that the number of data is 10 ' cnc_rdprogdir3:read program directory 3 - _ + Public Structure DIR3_MDATE - Public year As Short - Public month As Short - Public day As Short - Public hour As Short - Public minute As Short - Public dummy As Short + Public year As Short + Public month As Short + Public day As Short + Public hour As Short + Public minute As Short + Public dummy As Short End Structure - _ + Public Structure DIR3_CDATE - Public year As Short - Public month As Short - Public day As Short - Public hour As Short - Public minute As Short - Public dummy As Short + Public year As Short + Public month As Short + Public day As Short + Public hour As Short + Public minute As Short + Public dummy As Short End Structure - _ + Public Structure PRGDIR3_data Public number As Integer Public length As Integer Public page As Integer - _ + Public comment As String Public mdate As DIR3_MDATE Public cdate1 As DIR3_CDATE End Structure - _ + Public Structure PRGDIR3 Public dir1 As PRGDIR3_data Public dir2 As PRGDIR3_data @@ -4730,35 +4959,35 @@ Public Class Focas1 End Structure ' In case that the number of data is 10 ' cnc_rdprogdir4:read program directory 4 - _ + Public Structure DIR4_MDATE - Public year As Short - Public month As Short - Public day As Short - Public hour As Short - Public minute As Short - Public dummy As Short + Public year As Short + Public month As Short + Public day As Short + Public hour As Short + Public minute As Short + Public dummy As Short End Structure - _ + Public Structure DIR4_CDATE - Public year As Short - Public month As Short - Public day As Short - Public hour As Short - Public minute As Short - Public dummy As Short + Public year As Short + Public month As Short + Public day As Short + Public hour As Short + Public minute As Short + Public dummy As Short End Structure - _ + Public Structure PRGDIR4_data Public number As Integer Public length As Integer Public page As Integer - _ + Public comment As String Public mdate As DIR3_MDATE Public cdate1 As DIR3_CDATE End Structure - _ + Public Structure PRGDIR4 Public dir1 As PRGDIR4_data Public dir2 As PRGDIR4_data @@ -4774,12 +5003,12 @@ Public Class Focas1 ' cnc_rdcomparam:read communication parameter for DNC1, DNC2, OSI-Ethernet ' cnc_wrcomparam:write communication parameter for DNC1, DNC2, OSI-Ethernet - _ + Public Structure IODBCPRM - _ + Public NcApli As String Public Dummy1 As Byte - _ + Public HostApli As String Public Dummy2 As Byte Public StatPstv As Integer ' C# uint @@ -4796,12 +5025,12 @@ Public Class Focas1 ' cnc_rdintchk:read interference check ' cnc_wrintchk:write interference check - _ + Public Structure IODBINT Public datano_s As Short ' start offset No. Public type As Short ' kind of position Public datano_e As Short ' end offset No. - _ + Public data As Integer() ' position value of area for not attach End Structure @@ -4809,16 +5038,16 @@ Public Class Focas1 ' cnc_wrwkcdshft:write work coordinate shift ' cnc_rdwkcdsfms:read work coordinate shift measure ' cnc_wrwkcdsfms:write work coordinate shift measure - _ + Public Structure IODBWCSF Public datano As Short ' datano Public type As Short ' axis number - _ + Public data As Integer() ' data End Structure ' cnc_rdomhisinfo:read operator message history information - _ + Public Structure ODBOMIF Public om_max As Short ' maximum operator message history C# ushort Public om_sum As Short ' actually operator message history C# ushort @@ -4826,19 +5055,19 @@ Public Class Focas1 End Structure ' cnc_rdomhistry:read operator message history - _ + Public Structure ODBOMHIS_data Public om_no As Short ' operator message number Public year As Short ' year Public month As Short ' month Public day As Short ' day Public hour As Short ' hour - Public minute As Short' mimute - Public second As Short' second - _ + Public minute As Short ' mimute + Public second As Short ' second + Public om_msg As String End Structure - _ + Public Structure ODBOMHIS Public omhis1 As ODBOMHIS_data Public omhis2 As ODBOMHIS_data @@ -4854,17 +5083,17 @@ Public Class Focas1 ' cnc_rdbtofsr:read b-axis tool offset value(area specified) ' cnc_wrbtofsr:write b-axis tool offset value(area specified) - _ + Public Structure IODBBTO - Public datano_s As Short ' start offset number - Public type As Short ' offset type + Public datano_s As Short ' start offset number + Public type As Short ' offset type Public datano_e As Short ' end offset number - _ + Public ofs As Integer() ' offset End Structure ' In case that the number of data is 9 (B type) ' cnc_rdbtofsinfo:read b-axis tool offset information - _ + Public Structure ODBBTLINF Public ofs_type As Short ' memory type Public use_no As Short ' sum of b-axis offset @@ -4872,7 +5101,7 @@ Public Class Focas1 End Structure ' cnc_rdbaxis:read b-axis command - _ + Public Structure ODBBAXIS Public flag As Short ' b-axis command exist or not Public command As Short ' b-axis command @@ -4881,392 +5110,392 @@ Public Class Focas1 End Structure ' cnc_rdsyssoft:read CNC system soft series and version - _ + Public Structure ODBSYSS - _ + Public slot_no_p As Byte() - _ + Public slot_no_l As Byte() - _ + Public module_id As Short() - _ + Public soft_id As Short() - _ + Public soft_series1 As String - _ + Public soft_series2 As String - _ + Public soft_series3 As String - _ + Public soft_series4 As String - _ + Public soft_series5 As String - _ + Public soft_series6 As String - _ + Public soft_series7 As String - _ + Public soft_series8 As String - _ + Public soft_series9 As String - _ + Public soft_series10 As String - _ + Public soft_series11 As String - _ + Public soft_series12 As String - _ + Public soft_series13 As String - _ + Public soft_series14 As String - _ + Public soft_series15 As String - _ + Public soft_series16 As String - _ + Public soft_version1 As String - _ + Public soft_version2 As String - _ + Public soft_version3 As String - _ + Public soft_version4 As String - _ + Public soft_version5 As String - _ + Public soft_version6 As String - _ + Public soft_version7 As String - _ + Public soft_version8 As String - _ + Public soft_version9 As String - _ + Public soft_version10 As String - _ + Public soft_version11 As String - _ + Public soft_version12 As String - _ + Public soft_version13 As String - _ + Public soft_version14 As String - _ + Public soft_version15 As String - _ + Public soft_version16 As String Public soft_inst As Short - _ + Public boot_ser As String - _ + Public boot_ver As String - _ + Public servo_ser As String - _ + Public servo_ver As String - _ + Public pmc_ser As String - _ + Public pmc_ver As String - _ + Public ladder_ser As String - _ + Public ladder_ver As String - _ + Public mcrlib_ser As String - _ + Public mcrlib_ver As String - _ + Public mcrapl_ser As String - _ + Public mcrapl_ver As String - _ + Public spl1_ser As String - _ + Public spl1_ver As String - _ + Public spl2_ser As String - _ + Public spl2_ver As String - _ + Public spl3_ser As String - _ + Public spl3_ver As String - _ + Public c_exelib_ser As String - _ + Public c_exelib_ver As String - _ + Public c_exeapl_ser As String - _ + Public c_exeapl_ver As String - _ + Public int_vga_ser As String - _ + Public int_vga_ver As String - _ + Public out_vga_ser As String - _ + Public out_vga_ver As String - _ + Public pmm_ser As String - _ + Public pmm_ver As String - _ + Public pmc_mng_ser As String - _ + Public pmc_mng_ver As String - _ + Public pmc_shin_ser As String - _ + Public pmc_shin_ver As String - _ + Public pmc_shout_ser As String - _ + Public pmc_shout_ver As String - _ + Public pmc_c_ser As String - _ + Public pmc_c_ver As String - _ + Public pmc_edit_ser As String - _ + Public pmc_edit_ver As String - _ + Public lddr_mng_ser As String - _ + Public lddr_mng_ver As String - _ + Public lddr_apl_ser As String - _ + Public lddr_apl_ver As String - _ + Public spl4_ser As String - _ + Public spl4_ver As String - _ + Public mcr2_ser As String - _ + Public mcr2_ver As String - _ + Public mcr3_ser As String - _ + Public mcr3_ver As String - _ + Public eth_boot_ser As String - _ + Public eth_boot_ver As String - _ + Public reserve As Byte() End Structure ' cnc_rdsyssoft2:read CNC system soft series and version (2) - _ + Public Structure ODBSYSS2 - _ + Public slot_no_p As Byte() - _ + Public slot_no_l As Byte() - _ + Public module_id As Short() - _ + Public soft_id As Short() - _ + Public soft_series1 As String - _ + Public soft_series2 As String - _ + Public soft_series3 As String - _ + Public soft_series4 As String - _ + Public soft_series5 As String - _ + Public soft_series6 As String - _ + Public soft_series7 As String - _ + Public soft_series8 As String - _ + Public soft_series9 As String - _ + Public soft_series10 As String - _ + Public soft_series11 As String - _ + Public soft_series12 As String - _ + Public soft_series13 As String - _ + Public soft_series14 As String - _ + Public soft_series15 As String - _ + Public soft_series16 As String - _ + Public soft_version1 As String - _ + Public soft_version2 As String - _ + Public soft_version3 As String - _ + Public soft_version4 As String - _ + Public soft_version5 As String - _ + Public soft_version6 As String - _ + Public soft_version7 As String - _ + Public soft_version8 As String - _ + Public soft_version9 As String - _ + Public soft_version10 As String - _ + Public soft_version11 As String - _ + Public soft_version12 As String - _ + Public soft_version13 As String - _ + Public soft_version14 As String - _ + Public soft_version15 As String - _ + Public soft_version16 As String Public soft_inst As Short - _ + Public boot_ser As String - _ + Public boot_ver As String - _ + Public servo_ser As String - _ + Public servo_ver As String - _ + Public pmc_ser As String - _ + Public pmc_ver As String - _ + Public ladder_ser As String - _ + Public ladder_ver As String - _ + Public mcrlib_ser As String - _ + Public mcrlib_ver As String - _ + Public mcrapl_ser As String - _ + Public mcrapl_ver As String - _ + Public spl1_ser As String - _ + Public spl1_ver As String - _ + Public spl2_ser As String - _ + Public spl2_ver As String - _ + Public spl3_ser As String - _ + Public spl3_ver As String - _ + Public c_exelib_ser As String - _ + Public c_exelib_ver As String - _ + Public c_exeapl_ser As String - _ + Public c_exeapl_ver As String - _ + Public int_vga_ser As String - _ + Public int_vga_ver As String - _ + Public out_vga_ser As String - _ + Public out_vga_ver As String - _ + Public pmm_ser As String - _ + Public pmm_ver As String - _ + Public pmc_mng_ser As String - _ + Public pmc_mng_ver As String - _ + Public pmc_shin_ser As String - _ + Public pmc_shin_ver As String - _ + Public pmc_shout_ser As String - _ + Public pmc_shout_ver As String - _ + Public pmc_c_ser As String - _ + Public pmc_c_ver As String - _ + Public pmc_edit_ser As String - _ + Public pmc_edit_ver As String - _ + Public lddr_mng_ser As String - _ + Public lddr_mng_ver As String - _ + Public lddr_apl_ser As String - _ + Public lddr_apl_ver As String - _ + Public spl4_ser As String - _ + Public spl4_ver As String - _ + Public mcr2_ser As String - _ + Public mcr2_ver As String - _ + Public mcr3_ser As String - _ + Public mcr3_ver As String - _ + Public eth_boot_ser As String - _ + Public eth_boot_ver As String - _ + Public reserve As Byte() - _ + Public embEthe_ser As String - _ + Public embEthe_ver As String - _ + Public reserve2 As Byte() End Structure '@cnc_rdsyssoft3:read CNC system soft series and version (3) - _ + Public Structure ODBSYSS3_data Public soft_id As Short - _ + Public soft_series As Char() - _ + Public soft_edition As Char() End Structure - _ + Public Structure ODBSYSS3 - Public p1 As ODBSYSS3_data - Public p2 As ODBSYSS3_data - Public p3 As ODBSYSS3_data - Public p4 As ODBSYSS3_data - Public p5 As ODBSYSS3_data - Public p6 As ODBSYSS3_data - Public p7 As ODBSYSS3_data - Public p8 As ODBSYSS3_data - Public p9 As ODBSYSS3_data + Public p1 As ODBSYSS3_data + Public p2 As ODBSYSS3_data + Public p3 As ODBSYSS3_data + Public p4 As ODBSYSS3_data + Public p5 As ODBSYSS3_data + Public p6 As ODBSYSS3_data + Public p7 As ODBSYSS3_data + Public p8 As ODBSYSS3_data + Public p9 As ODBSYSS3_data Public p10 As ODBSYSS3_data Public p11 As ODBSYSS3_data Public p12 As ODBSYSS3_data @@ -5301,28 +5530,28 @@ Public Class Focas1 End Structure ' cnc_rdsyshard:read CNC system hard info - _ + Public Structure ODBSYSH_data - Public id1 As Integer - Public id2 As Integer - Public group_id As Short - Public hard_id As Short - Public hard_num As Short - Public slot_no As Short + Public id1 As Integer + Public id2 As Integer + Public group_id As Short + Public hard_id As Short + Public hard_num As Short + Public slot_no As Short Public id1_format As Short Public id2_format As Short End Structure - _ + Public Structure ODBSYSH - Public data1 As ODBSYSH_data - Public data2 As ODBSYSH_data - Public data3 As ODBSYSH_data - Public data4 As ODBSYSH_data - Public data5 As ODBSYSH_data - Public data6 As ODBSYSH_data - Public data7 As ODBSYSH_data - Public data8 As ODBSYSH_data - Public data9 As ODBSYSH_data + Public data1 As ODBSYSH_data + Public data2 As ODBSYSH_data + Public data3 As ODBSYSH_data + Public data4 As ODBSYSH_data + Public data5 As ODBSYSH_data + Public data6 As ODBSYSH_data + Public data7 As ODBSYSH_data + Public data8 As ODBSYSH_data + Public data9 As ODBSYSH_data Public data10 As ODBSYSH_data Public data11 As ODBSYSH_data Public data12 As ODBSYSH_data @@ -5342,7 +5571,7 @@ Public Class Focas1 End Structure ' cnc_rdmdlconfig:read CNC module configuration information - _ + Public Structure ODBMDLC Public from As Short Public dram As Short @@ -5356,7 +5585,7 @@ Public Class Focas1 Public sic As Short Public pos_lsi As Short Public hi_aio As Short - _ + Public reserve As Short() Public drmmrc As Short Public drmarc As Short @@ -5392,13 +5621,13 @@ Public Class Focas1 Public asrbgg As Short Public edtpsc As Short Public slcpsc As Short - _ + Public reserve2 As Short() End Structure ' cnc_rdpscdproc:read processing condition file (processing data) ' cnc_wrpscdproc:write processing condition file (processing data) - _ + Public Structure IODBPSCD_data Public slct As Short Public feed As Integer @@ -5412,10 +5641,10 @@ Public Class Focas1 Public supple As Integer Public edge_slt As Short Public appr_slt As Short - _ + Public reserve As Short() End Structure - _ + Public Structure IODBPSCD Public data1 As IODBPSCD_data Public data2 As IODBPSCD_data @@ -5431,7 +5660,7 @@ Public Class Focas1 ' cnc_rdpscdpirc:read processing condition file (piercing data) ' cnc_wrpscdpirc:write processing condition file (piercing data) - _ + Public Structure IODBPIRC_data Public slct As Short Public power As Short @@ -5446,10 +5675,10 @@ Public Class Focas1 Public g_kind As Short Public g_time As Short Public def_pos As Short - _ + Public reserve As Short() End Structure - _ + Public Structure IODBPIRC Public data1 As IODBPIRC_data Public data2 As IODBPIRC_data @@ -5458,7 +5687,7 @@ Public Class Focas1 ' cnc_rdpscdedge:read processing condition file (edging data) ' cnc_wrpscdedge:write processing condition file (edging data) - _ + Public Structure IODBEDGE_data Public slct As Short Public angle As Short @@ -5472,10 +5701,10 @@ Public Class Focas1 Public r_feed As Short Public r_freq As Short Public r_duty As Short - _ + Public reserve As Short() End Structure - _ + Public Structure IODBEDGE Public data1 As IODBEDGE_data Public data2 As IODBEDGE_data @@ -5486,19 +5715,19 @@ Public Class Focas1 ' cnc_rdpscdslop:read processing condition file (slope data) ' cnc_wrpscdslop:write processing condition file (slope data) - _ + Public Structure IODBSLOP_data Public slct As Integer Public upleng As Integer - _ + Public upsp As Short() Public dwleng As Integer - _ + Public dwsp As Short() - _ + Public reserve As Short() End Structure - _ + Public Structure IODBSLOP Public data1 As IODBSLOP_data Public data2 As IODBSLOP_data @@ -5509,41 +5738,41 @@ Public Class Focas1 ' cnc_rdlpwrdty:read power controll duty data ' cnc_wrlpwrdty:write power controll duty data - _ + Public Structure IODBLPWDT Public slct As Short Public dty_const As Short Public dty_min As Short - _ + Public reserve As Short() End Structure ' cnc_rdlpwrdat:read laser power data - _ + Public Structure ODBLOPDT Public slct As Short Public pwr_mon As Short Public pwr_ofs As Short Public pwr_act As Short Public feed_act As Integer - _ + Public reserve As Short() End Structure ' cnc_rdlagslt:read laser assist gas selection ' cnc_wrlagslt:write laser assist gas selection - _ + Public Structure IODBLAGSL Public slct As Short Public ag_slt As Short Public agflow_slt As Short - _ + Public reserve As Short() End Structure ' cnc_rdlagst:read laser assist gas flow ' cnc_wrlagst:write laser assist gas flow - _ + Public Structure GASFLOW Public slct As Short Public pre_time As Short @@ -5551,10 +5780,10 @@ Public Class Focas1 Public proc_press As Short Public end_time As Short Public end_press As Short - _ + Public reserve As Short() End Structure - _ + Public Structure IODBLAGST Public data1 As GASFLOW Public data2 As GASFLOW @@ -5563,31 +5792,31 @@ Public Class Focas1 ' cnc_rdledgprc:read laser power for edge processing ' cnc_wrledgprc:write laser power for edge processing - _ + Public Structure IODBLEGPR Public slct As Short Public power As Short Public freq As Short Public duty As Short - _ + Public reserve As Short() End Structure ' cnc_rdlprcprc:read laser power for piercing ' cnc_wrlprcprc:write laser power for piercing - _ + Public Structure IODBLPCPR Public slct As Short Public power As Short Public freq As Short Public duty As Short Public time As Integer - _ + Public reserve As Short() End Structure ' cnc_rdlcmddat:read laser command data - _ + Public Structure ODBLCMDT Public slct As Short Public feed As Integer @@ -5599,30 +5828,30 @@ Public Class Focas1 Public g_press As Short Public error1 As Short Public dsplc As Integer - _ + Public reserve As Short() End Structure ' cnc_rdlactnum:read active number - _ + Public Structure ODBLACTN Public slct As Short Public act_proc As Short Public act_pirce As Short Public act_slop As Short - _ + Public reserve As Short() End Structure ' cnc_rdlcmmt:read laser comment - _ + Public Structure ODBLCMMT - _ + Public comment As String End Structure ' cnc_rdpwofsthis:read power correction factor history data - _ + Public Structure ODBPWOFST_data Public pwratio As Integer Public rfvolt As Integer @@ -5633,7 +5862,7 @@ Public Class Focas1 Public minute As Short ' C# ushort Public second As Short ' C# ushort End Structure - _ + Public Structure ODBPWOFST Public data1 As ODBPWOFST_data Public data2 As ODBPWOFST_data @@ -5669,12 +5898,12 @@ Public Class Focas1 ' cnc_rdmngtime:read management time ' cnc_wrmngtime:write management time - _ + Public Structure IODBMNGTIME_data Public life As Integer ' C# uint Public tota As Integer ' C# uint End Structure - _ + Public Structure IODBMNGTIME Public data1 As IODBMNGTIME_data Public data2 As IODBMNGTIME_data @@ -5689,7 +5918,7 @@ Public Class Focas1 End Structure ' In case that the number of data is 10 ' cnc_rddischarge:read data related to electrical discharge at power correction ends - _ + Public Structure ODBDISCHRG Public aps As Short ' C# ushort Public year As Short ' C# ushort @@ -5703,20 +5932,20 @@ Public Class Focas1 Public hdt As Short Public hpa As Short Public hce As Integer - _ + Public rfi As Integer() - _ + Public rfv As Integer() - _ + Public dci As Integer() - _ + Public dcv As Integer() - _ + Public dcw As Integer() End Structure ' cnc_rddischrgalm:read alarm history data related to electrical discharg - _ + Public Structure ODBDISCHRGALM_data Public year As Short ' C# ushort Public month As Short ' C# ushort @@ -5734,21 +5963,21 @@ Public Class Focas1 Public asq As Short ' C# ushort Public psu As Short ' C# ushort Public aps As Short ' C# ushort - Public dummy As Short - _ + Public dummy As Short + Public rfi As Integer() - _ + Public rfv As Integer() - _ + Public dci As Integer() - _ + Public dcv As Integer() - _ + Public dcw As Integer() - _ + Public almcd As Short() End Structure - _ + Public Structure ODBDISCHRGALM Public data1 As ODBDISCHRGALM_data Public data2 As ODBDISCHRGALM_data @@ -5759,33 +5988,33 @@ Public Class Focas1 ' cnc_gettimer:get date and time from cnc ' cnc_settimer:set date and time for cnc - _ + Public Structure TIMER_DATE Public year As Short Public month As Short Public date1 As Short End Structure - _ + Public Structure TIMER_TIME Public hour As Short Public minute As Short Public second As Short End Structure - _ + Public Structure IODBTIMER - _ + Public type As Short - _ + Public dummy As Short - _ + Public date1 As TIMER_DATE - _ + Public time As TIMER_TIME End Structure ' cnc_rdtimer:read timer data from cnc ' cnc_wrtimer:write timer data for cnc - _ + Public Structure IODBTIME Public minute As Integer Public msec As Integer @@ -5793,22 +6022,22 @@ Public Class Focas1 ' cnc_rdtlctldata: read tool controll data ' cnc_wrtlctldata: write tool controll data - _ + Public Structure IODBTLCTL Public slct As Short Public used_tool As Short Public turret_indx As Short Public zero_tl_no As Integer Public t_axis_move As Integer - _ + Public total_punch As Integer() - _ + Public reserve As Short() End Structure ' cnc_rdtooldata: read tool data ' cnc_wrtooldata: read tool data - _ + Public Structure IODBTLDT_data Public slct As Short Public tool_no As Integer @@ -5824,10 +6053,10 @@ Public Class Focas1 Public tl_size_i As Integer Public tl_size_j As Integer Public tl_angle As Integer - _ + Public reserve As Integer() End Structure - _ + Public Structure IODBTLDT Public data1 As IODBTLDT_data Public data2 As IODBTLDT_data @@ -5843,7 +6072,7 @@ Public Class Focas1 ' cnc_rdmultitldt: read multi tool data ' cnc_wrmultitldt: write multi tool data - _ + Public Structure IODBMLTTL_data Public slct As Short Public m_tl_no As Short @@ -5855,10 +6084,10 @@ Public Class Focas1 Public tl_size_i As Integer Public tl_size_j As Integer Public tl_angle As Integer - _ + Public reserve As Integer() End Structure - _ + Public Structure IODBMLTTL Public data1 As IODBMLTTL_data Public data2 As IODBMLTTL_data @@ -5874,7 +6103,7 @@ Public Class Focas1 ' cnc_rdmtapdata: read multi tap data ' cnc_wrmtapdata: write multi tap data - _ + Public Structure IODBMTAP_data Public slct As Short Public tool_no As Integer @@ -5882,10 +6111,10 @@ Public Class Focas1 Public y_axis_ofs As Integer Public punch_count As Integer Public tool_life As Integer - _ + Public reserve As Integer() End Structure - _ + Public Structure IODBMTAP Public data1 As IODBMTAP_data Public data2 As IODBMTAP_data @@ -5900,28 +6129,28 @@ Public Class Focas1 End Structure ' cnc_rdtoolinfo: read tool information - _ + Public Structure ODBPTLINF Public tld_max As Short Public mlt_max As Short Public reserve As Short - _ + Public tld_size As Short() - _ + Public mlt_size As Short() - _ + Public reserves As Short() End Structure ' cnc_rdsafetyzone: read safetyzone data ' cnc_wrsafetyzone: write safetyzone data - _ + Public Structure IODBSAFE_data Public slct As Short - _ + Public data As Integer() End Structure - _ + Public Structure IODBSAFE Public data1 As IODBSAFE_data Public data2 As IODBSAFE_data @@ -5931,13 +6160,13 @@ Public Class Focas1 ' cnc_rdtoolzone: read toolzone data ' cnc_wrtoolzone: write toolzone data - _ + Public Structure IODBTLZN_data Public slct As Short - _ + Public data As Integer() End Structure - _ + Public Structure IODBTLZN Public data1 As IODBTLZN_data Public data2 As IODBTLZN_data @@ -5954,45 +6183,45 @@ Public Class Focas1 End Structure ' In case that the number of data is 12 ' cnc_rdacttlzone: read active toolzone data - _ + Public Structure ODBACTTLZN Public act_no As Short - _ + Public data As Integer() End Structure ' cnc_rdbrstrinfo:read block restart information - _ + Public Structure ODBBRS - _ + Public dest As Integer() - _ + Public dist As Integer() End Structure ' In case that the number of axes is MAX_AXIS ' cnc_rdradofs:read tool radius offset for position data - _ + Public Structure ODBROFS Public mode As Short - _ + Public pln_axes As Short() - _ + Public ofsvct As Integer() End Structure ' cnc_rdlenofs:read tool length offset for position data - _ + Public Structure ODBLOFS Public mode As Short - _ + Public ofsvct As Integer() End Structure ' In case that the number of axes is MAX_AXIS ' cnc_rdfixcycle:read fixed cycle for position data - _ + Public Structure ODBFIX Public mode As Short - _ + Public pln_axes As Short() Public drl_axes As Short Public i_pos As Integer @@ -6001,76 +6230,76 @@ Public Class Focas1 Public cmd_cnt As Integer Public act_cnt As Integer Public cut As Integer - _ + Public shift As Integer() End Structure ' cnc_rdcdrotate:read coordinate rotate for position data - _ + Public Structure ODBROT Public mode As Short - _ + Public pln_axes As Short() - _ + Public center As Integer() Public angle As Integer End Structure ' cnc_rd3dcdcnv:read 3D coordinate convert for position data - _ + Public Structure ODB3DCD Public mode As Short Public dno As Short - _ + Public cd_axes As Short() - _ + Public center As Integer() - _ + Public direct As Integer() - _ + Public angle As Integer() End Structure ' cnc_rdmirimage:read programable mirror image for position data - _ + Public Structure ODBMIR Public mode As Short Public mir_flag As Integer - _ + Public mir_pos As Integer() End Structure ' In case that the number of axes is MAX_AXIS ' cnc_rdscaling:read scaling data for position data - _ + Public Structure ODBSCL Public mode As Short - _ + Public center As Integer() - _ + Public magnif As Integer() End Structure ' In case that the number of axes is MAX_AXIS ' cnc_rd3dtofs:read 3D tool offset for position data - _ + Public Structure ODB3DTO Public mode As Short - _ + Public ofs_axes As Short() - _ + Public ofsvct As Integer() End Structure ' cnc_rdposofs:read tool position offset for position data - _ + Public Structure ODBPOFS Public mode As Short - _ + Public ofsvct As Integer() End Structure ' In case that the number of axes is MAX_AXIS ' cnc_rdhpccset:read hpcc setting data ' cnc_wrhpccset:write hpcc setting data - _ + Public Structure IODBHPST Public slct As Short Public hpcc As Short @@ -6082,13 +6311,13 @@ Public Class Focas1 Public ovr2 As Short Public ovr3 As Short Public ovr4 As Short - _ + Public reserve As Integer() End Structure ' cnc_rdhpcctupr:read hpcc tuning data ( parameter input ) ' cnc_wrhpcctupr:write hpcc tuning data ( parameter input ) - _ + Public Structure IODBHPPR_tune Public slct As Short Public diff As Short @@ -6103,10 +6332,10 @@ Public Class Focas1 Public max_cf As Integer Public min_cf As Integer Public foward As Integer - _ + Public reserve As Integer() End Structure - _ + Public Structure IODBHPPR Public tune1 As IODBHPPR_tune Public tune2 As IODBHPPR_tune @@ -6115,7 +6344,7 @@ Public Class Focas1 ' cnc_rdhpcctuac:read hpcc tuning data ( acc input ) ' cnc_wrhpcctuac:write hpcc tuning data ( acc input ) - _ + Public Structure IODBHPAC_tune Public slct As Short Public diff As Short @@ -6127,10 +6356,10 @@ Public Class Focas1 Public clamp As Integer Public c_acc As Integer Public foward As Integer - _ + Public reserve As Integer() End Structure - _ + Public Structure IODBHPAC Public tune1 As IODBHPAC_tune Public tune2 As IODBHPAC_tune @@ -6139,40 +6368,77 @@ Public Class Focas1 ' cnc_rd3dtooltip:read tip of tool for 3D handle ' cnc_rd3dmovrlap:read move overrlap of tool for 3D handle - _ + Public Structure ODB3DHDL_data - _ + Public axes As Short() - _ + Public data As Integer() End Structure - _ + Public Structure ODB3DHDL Public data1 As ODB3DHDL_data Public data2 As ODB3DHDL_data End Structure ' cnc_rd3dpulse:read pulse for 3D handle - _ + Public Structure ODB3DPLS_data Public right_angle_x As Integer Public right_angle_y As Integer - Public tool_axis As Integer - Public tool_tip_a_b As Integer - Public tool_tip_c As Integer + Public tool_axis As Integer + Public tool_tip_a_b As Integer + Public tool_tip_c As Integer End Structure - _ + Public Structure ODB3DPLS Public pls1 As ODB3DPLS_data Public pls2 As ODB3DPLS_data End Structure ' cnc_rdaxisname: read axis name - _ + Public Structure ODBAXISNAME_data Public name As Byte ' axis name Public suff As Byte ' suffix End Structure +#If FS30D Then + + Public Structure ODBAXISNAME + Public data1 As ODBAXISNAME_data + Public data2 As ODBAXISNAME_data + Public data3 As ODBAXISNAME_data + Public data4 As ODBAXISNAME_data + Public data5 As ODBAXISNAME_data + Public data6 As ODBAXISNAME_data + Public data7 As ODBAXISNAME_data + Public data8 As ODBAXISNAME_data + Public data9 As ODBAXISNAME_data + Public data10 As ODBAXISNAME_data + Public data11 As ODBAXISNAME_data + Public data12 As ODBAXISNAME_data + Public data13 As ODBAXISNAME_data + Public data14 As ODBAXISNAME_data + Public data15 As ODBAXISNAME_data + Public data16 As ODBAXISNAME_data + Public data17 As ODBAXISNAME_data + Public data18 As ODBAXISNAME_data + Public data19 As ODBAXISNAME_data + Public data20 As ODBAXISNAME_data + Public data21 As ODBAXISNAME_data + Public data22 As ODBAXISNAME_data + Public data23 As ODBAXISNAME_data + Public data24 As ODBAXISNAME_data + Public data25 As ODBAXISNAME_data + Public data26 As ODBAXISNAME_data + Public data27 As ODBAXISNAME_data + Public data28 As ODBAXISNAME_data + Public data29 As ODBAXISNAME_data + Public data30 As ODBAXISNAME_data + Public data31 As ODBAXISNAME_data + Public data32 As ODBAXISNAME_data + End Structure +#Else #If M_AXIS2 Then _ Public Structure ODBAXISNAME @@ -6229,17 +6495,18 @@ Public Class Focas1 Public data8 As ODBAXISNAME_data End Structure #End If +#End If #End If ' cnc_rdspdlname: read spindle name - _ + Public Structure ODBSPDLNAME_data Public name As Byte ' spindle name Public suff1 As Byte ' suffix Public suff2 As Byte ' suffix Public suff3 As Byte ' suffix End Structure - _ + Public Structure ODBSPDLNAME Public data1 As ODBSPDLNAME_data Public data2 As ODBSPDLNAME_data @@ -6248,100 +6515,100 @@ Public Class Focas1 End Structure ' cnc_exaxisname: read spindle name - _ + Public Structure ODBEXAXISNAME - _ - Public axname1 As String - _ - Public axname2 As String - _ - Public axname3 As String - _ - Public axname4 As String - _ - Public axname5 As String - _ - Public axname6 As String - _ - Public axname7 As String - _ - Public axname8 As String - _ - Public axname9 As String - _ - Public axname10 As String - _ - Public axname11 As String - _ - Public axname12 As String - _ - Public axname13 As String - _ - Public axname14 As String - _ - Public axname15 As String - _ - Public axname16 As String - _ - Public axname17 As String - _ - Public axname18 As String - _ - Public axname19 As String - _ + + Public axname1 As String + + Public axname2 As String + + Public axname3 As String + + Public axname4 As String + + Public axname5 As String + + Public axname6 As String + + Public axname7 As String + + Public axname8 As String + + Public axname9 As String + + Public axname10 As String + + Public axname11 As String + + Public axname12 As String + + Public axname13 As String + + Public axname14 As String + + Public axname15 As String + + Public axname16 As String + + Public axname17 As String + + Public axname18 As String + + Public axname19 As String + Public axname20 As String - _ - Public axname21 As String - _ - Public axname22 As String - _ - Public axname23 As String - _ - Public axname24 As String - _ - Public axname25 As String - _ - Public axname26 As String - _ - Public axname27 As String - _ - Public axname28 As String - _ - Public axname29 As String - _ + + Public axname21 As String + + Public axname22 As String + + Public axname23 As String + + Public axname24 As String + + Public axname25 As String + + Public axname26 As String + + Public axname27 As String + + Public axname28 As String + + Public axname29 As String + Public axname30 As String - _ - Public axname31 As String - _ + + Public axname31 As String + Public axname32 As String End Structure ' cnc_wrunsolicprm: Set the unsolicited message parameters ' cnc_rdunsolicprm: Get the unsolicited message parameters - _ + Public Structure IODBUNSOLIC_pmc Public type As Short Public rdaddr As Short Public rdno As Short Public rdsize As Short End Structure - _ + Public Structure IODBUNSOLIC_dmy Public type As Short Public dummy1 As Integer Public dummy2 As Short End Structure - _ + Public Structure IODBUNSOLIC_rddata - _ + Public pmc As IODBUNSOLIC_pmc - _ + Public dmy As IODBUNSOLIC_dmy End Structure - _ + Public Structure IODBUNSOLIC - _ + Public ipaddr As String Public port As Short ' C# ushort Public reqaddr As Short @@ -6356,19 +6623,19 @@ Public Class Focas1 End Structure ' cnc_rdunsolicmsg: Reads the unsolicited message data - _ + Public Structure IDBUNSOLICMSG_msg Public rdsize As Short - _ + Public data As Object End Structure - _ + Public Structure IDBUNSOLICMSG1 Public msg1 As IDBUNSOLICMSG_msg Public msg2 As IDBUNSOLICMSG_msg Public msg3 As IDBUNSOLICMSG_msg End Structure - _ + Public Structure IDBUNSOLICMSG Public getno As Short Public msg As IDBUNSOLICMSG1 @@ -6377,105 +6644,105 @@ Public Class Focas1 ' cnc_rdpm_cncitem: read cnc maintenance item ' cnc_rdpm_mcnitem: read machine specific maintenance item ' cnc_wrpm_mcnitem: write machine specific maintenance item - _ + Public Structure IODBITEM - _ - Public name1 As String - _ - Public name2 As String - _ - Public name3 As String - _ - Public name4 As String - _ - Public name5 As String - _ - Public name6 As String - _ - Public name7 As String - _ - Public name8 As String - _ - Public name9 As String - _ + + Public name1 As String + + Public name2 As String + + Public name3 As String + + Public name4 As String + + Public name5 As String + + Public name6 As String + + Public name7 As String + + Public name8 As String + + Public name9 As String + Public name10 As String End Structure ' cnc_rdpm_item:read maintenance item status - _ + Public Structure IODBPMAINTE_data - _ - Public name As String ' name - Public type As Integer ' life count type - Public total As Integer ' total life time (minite basis) - Public remain As Integer ' life rest time - Public stat As Integer ' life state + + Public name As String ' name + Public type As Integer ' life count type + Public total As Integer ' total life time (minite basis) + Public remain As Integer ' life rest time + Public stat As Integer ' life state End Structure - _ + Public Structure IODBPMAINTE - Public data1 As IODBPMAINTE_data - Public data2 As IODBPMAINTE_data - Public data3 As IODBPMAINTE_data - Public data4 As IODBPMAINTE_data - Public data5 As IODBPMAINTE_data - Public data6 As IODBPMAINTE_data - Public data7 As IODBPMAINTE_data - Public data8 As IODBPMAINTE_data - Public data9 As IODBPMAINTE_data + Public data1 As IODBPMAINTE_data + Public data2 As IODBPMAINTE_data + Public data3 As IODBPMAINTE_data + Public data4 As IODBPMAINTE_data + Public data5 As IODBPMAINTE_data + Public data6 As IODBPMAINTE_data + Public data7 As IODBPMAINTE_data + Public data8 As IODBPMAINTE_data + Public data9 As IODBPMAINTE_data Public data10 As IODBPMAINTE_data End Structure ' cnc_sysinfo_ex:read CNC system path information - _ + Public Structure ODBSYSEX_path - Public system As Short - Public group As Short - Public attrib As Short + Public system As Short + Public group As Short + Public attrib As Short Public ctrl_axis As Short Public ctrl_srvo As Short Public ctrl_spdl As Short - Public mchn_no As Short - Public reserved As Short + Public mchn_no As Short + Public reserved As Short End Structure - _ + Public Structure ODBSYSEX_data - Public data1 As ODBSYSEX_path - Public data2 As ODBSYSEX_path - Public data3 As ODBSYSEX_path - Public data4 As ODBSYSEX_path - Public data5 As ODBSYSEX_path - Public data6 As ODBSYSEX_path - Public data7 As ODBSYSEX_path - Public data8 As ODBSYSEX_path - Public data9 As ODBSYSEX_path + Public data1 As ODBSYSEX_path + Public data2 As ODBSYSEX_path + Public data3 As ODBSYSEX_path + Public data4 As ODBSYSEX_path + Public data5 As ODBSYSEX_path + Public data6 As ODBSYSEX_path + Public data7 As ODBSYSEX_path + Public data8 As ODBSYSEX_path + Public data9 As ODBSYSEX_path Public data10 As ODBSYSEX_path End Structure - _ + Public Structure ODBSYSEX - Public max_axis As Short - Public max_spdl As Short - Public max_path As Short - Public max_mchn As Short + Public max_axis As Short + Public max_spdl As Short + Public max_path As Short + Public max_mchn As Short Public ctrl_axis As Short Public ctrl_srvo As Short Public ctrl_spdl As Short Public ctrl_path As Short Public ctrl_mchn As Short - _ + Public reserved As Short() Public path As ODBSYSEX_data End Structure -'------------------ -' CNC : SERCOS I/F -'------------------ + '------------------ + ' CNC : SERCOS I/F + '------------------ ' cnc_srcsrdidinfo:Read ID information of SERCOS I/F ' cnc_srcswridinfo:Write ID information of SERCOS I/F - _ + Public Structure IODBIDINF Public id_no As Integer Public drv_no As Short @@ -6489,19 +6756,19 @@ Public Class Focas1 Public err_max_val As Short Public id_name_len As Short Public id_name_max As Short - _ + Public id_name As String Public attr As Integer Public unit_len As Short Public unit_max As Short - _ + Public unit As Byte() Public min_val As Integer Public max_val As Integer End Structure ' cnc_srcsrdexstat:Get execution status of reading/writing operation data of SERCOS I/F - _ + Public Structure ODBSRCSST Public acc_element As Short Public err_general As Short @@ -6511,21 +6778,21 @@ Public Class Focas1 End Structure ' cnc_srcsrdlayout:Read drive assign of SERCOS I/F - _ + Public Structure ODBSRCSLYT - _ + Public spndl As Short() - _ + Public servo As Short() - _ + Public axis_name As String End Structure -'---------------------------- -' CNC : Servo Guide -'---------------------------- + '---------------------------- + ' CNC : Servo Guide + '---------------------------- ' cnc_sdsetchnl:Servo Guide (Channel data set) - _ + Public Structure IDBCHAN_data Public chno As Byte Public axis As SByte @@ -6533,7 +6800,7 @@ Public Class Focas1 Public datainf As Short ' C# ushort Public dataadr As Short End Structure - _ + Public Structure IDBCHAN Public data1 As IDBCHAN_data Public data2 As IDBCHAN_data @@ -6547,14 +6814,14 @@ Public Class Focas1 ' cnc_sdsetchnl:Servo Guide (read Sampling data) ' cnc_sfbreadsmpl:Servo feedback data (read Sampling data) - _ + Public Structure ODBSD Public chadata As IntPtr Public count As IntPtr End Structure ' cnc_sfbsetchnl:Servo feedback data (Channel data set) - _ + Public Structure IDBSFBCHAN Public chno As Byte Public axis As SByte @@ -6562,28 +6829,28 @@ Public Class Focas1 End Structure -'------------------------- -' CNC : FS18-LN function -'------------------------- + '------------------------- + ' CNC : FS18-LN function + '------------------------- ' cnc_allowcnd:read allowanced state - _ + Public Structure ODBCAXIS Public dummy As Short ' dummy Public type As Short ' axis number - _ + Public data As SByte() ' data value End Structure -'--------------------------------- -' CNC : C-EXE SRAM file function -'--------------------------------- + '--------------------------------- + ' CNC : C-EXE SRAM file function + '--------------------------------- ' read C-EXE SRAM disk directory - _ + Public Structure CFILEINFO_data - _ + Public fname As String ' file name Public file_size As Integer ' file size (bytes) Public file_attr As Integer ' attribute @@ -6594,7 +6861,7 @@ Public Class Focas1 Public minute As Short ' mimute Public second As Short ' second End Structure - _ + Public Structure CFILEINFO Public data1 As CFILEINFO_data Public data2 As CFILEINFO_data @@ -6608,64 +6875,64 @@ Public Class Focas1 Public data10 As CFILEINFO_data End Structure -'----- -' PMC -'----- + '----- + ' PMC + '----- ' pmc_rdpmcrng:read PMC data(area specified) ' pmc_wrpmcrng:write PMC data(area specified) - _ + Public Structure IODBPMC0 - _ + Public type_a As Short ' PMC address type - _ + Public type_d As Short ' PMC data type - _ + Public datano_s As Short ' start PMC address - _ + Public datano_e As Short ' end PMC address - _ + Public cdata As Byte() ' PMC data End Structure ' In case that the number of data is 8 - _ + Public Structure IODBPMC1 - _ + Public type_a As Short ' PMC address type - _ + Public type_d As Short ' PMC data type - _ + Public datano_s As Short ' start PMC address - _ + Public datano_e As Short ' end PMC address - _ + Public idata As UShort() End Structure ' In case that the number of data is 8 - _ + Public Structure IODBPMC2 - _ + Public type_a As Short ' PMC address type - _ + Public type_d As Short ' PMC data type - _ + Public datano_s As Short ' start PMC address - _ + Public datano_e As Short ' end PMC address - _ + Public ldata As UInteger() End Structure ' In case that the number of data is 8 ' pmc_rdpmcinfo:read informations of PMC data - _ + Public Structure ODBPMCINF_info Public pmc_adr As Char Public adr_attr As Byte Public top_num As Short ' C# ushort Public last_num As Short ' C# ushort End Structure - _ + Public Structure ODBPMCINF1 Public info1 As ODBPMCINF_info Public info2 As ODBPMCINF_info @@ -6732,7 +6999,7 @@ Public Class Focas1 Public info63 As ODBPMCINF_info Public info64 As ODBPMCINF_info End Structure - _ + Public Structure ODBPMCINF Public datano As Short Public info As ODBPMCINF1 @@ -6740,7 +7007,7 @@ Public Class Focas1 ' pmc_rdcntldata:read PMC parameter data table control data ' pmc_wrcntldata:write PMC parameter data table control data - _ + Public Structure IODBPMCCNTL_info Public tbl_prm As Byte Public data_type As Byte @@ -6748,7 +7015,7 @@ Public Class Focas1 Public data_dsp As Short ' C# ushort Public dummy As Short End Structure - _ + Public Structure IODBPMCCNTL1 Public info1 As IODBPMCCNTL_info Public info2 As IODBPMCCNTL_info @@ -6851,7 +7118,7 @@ Public Class Focas1 Public info99 As IODBPMCCNTL_info Public info100 As IODBPMCCNTL_info End Structure - _ + Public Structure IODBPMCCNTL Public datano_s As Short Public dummy As Short @@ -6860,12 +7127,12 @@ Public Class Focas1 End Structure ' pmc_rdalmmsg:read PMC alarm message - _ + Public Structure ODBPMCALM_data - _ + Public almmsg As String ' alarm message End Structure - _ + Public Structure ODBPMCALM Public msg1 As ODBPMCALM_data Public msg2 As ODBPMCALM_data @@ -6880,39 +7147,39 @@ Public Class Focas1 End Structure ' In case that the number of data is 10 ' pmc_getdtailerr:get detail error for pmc - _ + Public Structure ODBPMCERR Public err_no As Short Public err_dtno As Short End Structure ' pmc_rdpmctitle:read pmc title data - _ + Public Structure ODBPMCTITLE - _ + Public mtb As String - _ + Public machine As String - _ + Public type As String - _ + Public prgno As String - _ + Public prgvers As String - _ + Public prgdraw As String - _ + Public date1 As String - _ + Public design As String - _ + Public written As String - _ + Public remarks As String End Structure ' pmc_rdpmcrng_ext:read PMC data - _ + Public Structure IODBPMCEXT Public type_a As Short ' PMC address type Public type_d As Short ' PMC data type @@ -6920,12 +7187,12 @@ Public Class Focas1 Public datano_e As Short ' end PMC address Public err_code As Short ' error code Public reserved As Short ' reserved - _ + Public data As Object ' pointer to buffer End Structure ' pmc_rdpmcaddr:read PMC address information - _ + Public Structure ODBPMCADR_info Public pmc_adr As Byte Public adr_attr As Byte @@ -6933,7 +7200,7 @@ Public Class Focas1 Public top As Short ' C# ushort Public num As Short ' C# ushort End Structure - _ + Public Structure ODBPMCADR1 Public info1 As ODBPMCADR_info Public info2 As ODBPMCADR_info @@ -7000,7 +7267,7 @@ Public Class Focas1 Public info63 As ODBPMCADR_info Public info64 As ODBPMCADR_info End Structure - _ + Public Structure ODBPMCADR Public io_adr As Integer ' C# uint Public datano As Short @@ -7008,30 +7275,30 @@ Public Class Focas1 End Structure -'-------------------------- -' PROFIBUS function -'-------------------------- + '-------------------------- + ' PROFIBUS function + '-------------------------- ' pmc_prfrdconfig:read PROFIBUS configration data - _ + Public Structure ODBPRFCNF - _ + Public master_ser As String - _ + Public master_ver As String - _ + Public slave_ser As String - _ + Public slave_ver As String - _ + Public cntl_ser As String - _ + Public cntl_ver As String End Structure ' pmc_prfrdbusprm:read bus parameter for master function ' pmc_prfwrbusprm:write bus parameter for master function - _ + Public Structure IODBBUSPRM Public fdl_add As SByte Public baudrate As SByte @@ -7048,26 +7315,26 @@ Public Class Focas1 Public min_slv_int As Short ' C# ushort Public poll_tout As Short ' C# ushort Public data_cntl As Short ' C# ushort - _ + Public reserve1 As Byte() - _ + Public cls2_name As Byte() Public user_dlen As Short - _ + Public user_data As Byte() - _ + Public reserve2 As Byte() End Structure ' pmc_prfrdslvprm:read slave parameter for master function ' pmc_prfwrslvprm:write slave parameter for master function - _ + Public Structure IODBSLVPRM Public dis_enb As Short Public ident_no As Short ' C# ushort Public slv_flag As Byte Public slv_type As Byte - _ + Public reserve1 As Byte() Public slv_stat As Byte Public wd_fact1 As Byte @@ -7076,25 +7343,25 @@ Public Class Focas1 Public reserve2 As Char Public grp_ident As Byte Public user_plen As Short - _ + Public user_pdata As Byte() Public cnfg_dlen As Short - _ + Public cnfg_data As Byte() Public slv_ulen As Short - _ + Public slv_udata As Byte() - _ + Public reserve3 As Byte() End Structure - _ + Public Structure IODBSLVPRM2 Public dis_enb As Short Public ident_no As Short ' C# ushort Public slv_flag As Byte Public slv_type As Byte - _ + Public reserve1 As Byte() Public slv_stat As Byte Public wd_fact1 As Byte @@ -7103,21 +7370,21 @@ Public Class Focas1 Public reserve2 As SByte Public grp_ident As Byte Public user_plen As Short - _ + Public user_pdata As Byte() Public cnfg_dlen As Short - _ + Public cnfg_data As Byte() Public slv_ulen As Short - _ + Public slv_udata As Byte() - _ + Public reserve3 As Byte() End Structure ' pmc_prfrdallcadr:read allocation address for master function ' pmc_prfwrallcadr:set allocation address for master function - _ + Public Structure IODBPRFADR Public di_size As Byte Public di_type As Byte @@ -7134,7 +7401,7 @@ Public Class Focas1 ' pmc_prfrdslvaddr:read allocation address for slave function ' pmc_prfwrslvaddr:set allocation address for slave function - _ + Public Structure IODBSLVADR Public slave_no As Byte Public di_size As Byte @@ -7143,26 +7410,26 @@ Public Class Focas1 Public do_size As Byte Public do_type As Byte Public do_addr As Short ' C# ushort - _ + Public reserve As Byte() End Structure ' pmc_prfrdslvstat:read status for slave function - _ + Public Structure ODBSLVST Public cnfg_stat As Byte - Public prm_stat As Byte - Public wdg_stat As SByte + Public prm_stat As Byte + Public wdg_stat As SByte Public live_stat As Byte - Public ident_no As Short + Public ident_no As Short End Structure ' pmc_prfwrslvid:Writes slave index data of master function - _ + Public Structure IODBSLVID - Public dis_enb As Short + Public dis_enb As Short Public slave_no As Short - Public nsl As Short + Public nsl As Short Public dgn_size As Byte Public dgn_type As Char Public dgn_addr As Short @@ -7170,12 +7437,12 @@ Public Class Focas1 ' pmc_prfrdslvprm2:Reads slave parameter of master function(2) ' pmc_prfwrslvprm2:Writes slave parameter of master function(2) - _ + Public Structure IODBSLVPRM3 Public ident_no As Short Public slv_flag As Byte Public slv_type As Byte - _ + Public reserve1 As Byte() Public slv_stat As Byte Public wd_fact1 As Byte @@ -7184,16 +7451,16 @@ Public Class Focas1 Public reserve2 As Char Public grp_ident As Byte Public user_plen As Short - _ + Public user_pdata As Byte() Public slv_ulen As Short - _ + Public slv_udata As Byte() End Structure ' pmc_prfrddido:Reads DI/DO parameter of master function ' pmc_prfwrdido:Writes DI/DO parameter of master function - _ + Public Structure IODBDIDO Public slave_no As Short Public slot_no As Short @@ -7205,13 +7472,13 @@ Public Class Focas1 Public do_addr As Short Public shift As Short Public module_dlen As Byte - _ + Public module_data As Byte() End Structure ' pmc_prfrdindiadr:Reads indication address of master function ' pmc_prfwrindiadr:Writes indication address of master function - _ + Public Structure IODBINDEADR Public dummy As Byte Public indi_type As Char @@ -7219,48 +7486,48 @@ Public Class Focas1 Public indi_addr As Short End Structure -'----------------------------------------------- -' DS : Data server & Ethernet board function -'----------------------------------------------- + '----------------------------------------------- + ' DS : Data server & Ethernet board function + '----------------------------------------------- ' etb_rdparam : read@the parameter of the Ethernet board ' etb_wrparam : write the parameter of the Ethernet board - _ + Public Structure TCPPRM - _ + Public OwnIPAddress As String - _ + Public SubNetMask As String - _ + Public RouterIPAddress As String End Structure - _ + Public Structure HOSTPRM Public DataServerPort As Short - _ + Public DataServerIPAddress As String - _ + Public DataServerUserName As String - _ + Public DataServerPassword As String - _ + Public DataServerLoginDirectory As String End Structure - _ + Public Structure FTPPRM - _ + Public FTPServerUserName As String - _ + Public FTPServerPassword As String - _ + Public FTPServerLoginDirectory As String End Structure - _ + Public Structure ETBPRM - _ + Public OwnMACAddress As String Public MaximumChannel As Short Public HDDExistence As Short @@ -7268,61 +7535,61 @@ Public Class Focas1 End Structure - _ + Public Structure IODBETP_TCP Public ParameterType As Short Public tcp As TCPPRM End Structure - _ + Public Structure IODBETP_HOST Public ParameterType As Short Public host As HOSTPRM End Structure - _ + Public Structure IODBETP_FTP Public ParameterType As Short Public ftp As FTPPRM End Structure - _ + Public Structure IODBETP_ETB Public ParameterType As Short Public etb As ETBPRM End Structure - _ + Public Structure ODBETMSG - _ + Public title As String - _ + Public message As String End Structure ' ds_rdhddinfo : read information of the Data Server's HDD - _ + Public Structure ODBHDDINF Public file_num As Integer Public remainder_l As Integer Public remainder_h As Integer - _ + Public current_dir As Byte() End Structure - _ + Public Structure ODBHDDDIR_data - _ + Public file_name As String - _ + Public comment As String Public attribute As Short Public reserved As Short Public size As Integer - _ + Public dates As String End Structure - _ + Public Structure ODBHDDDIR Public data1 As ODBHDDDIR_data Public data2 As ODBHDDDIR_data @@ -7359,13 +7626,13 @@ Public Class Focas1 End Structure ' ds_rdhostdir : read the file list of the host - _ + Public Structure ODBHOSTDIR_data - _ + Public host_file As String 'Public host_file As Char() End Structure - _ + Public Structure ODBHOSTDIR Public data1 As ODBHOSTDIR_data Public data2 As ODBHOSTDIR_data @@ -7402,7 +7669,7 @@ Public Class Focas1 End Structure ' ds_rdmntinfo : read maintenance information - _ + Public Structure DSMNTINFO Public empty_cnt As Short Public total_size As Integer @@ -7411,25 +7678,25 @@ Public Class Focas1 End Structure -'-------------------------- -' HSSB multiple connection -'-------------------------- + '-------------------------- + ' HSSB multiple connection + '-------------------------- ' cnc_rdnodeinfo:read node informations - _ + Public Structure ODBNODE Public node_no As Integer Public io_base As Integer Public status As Integer Public cnc_type As Integer - _ + Public node_name As String End Structure -'------------------------------------- -' CNC: Control axis / spindle related -'------------------------------------- + '------------------------------------- + ' CNC: Control axis / spindle related + '------------------------------------- ' read actual axis feedrate(F) Declare Function cnc_actf Lib "FWLIB32.DLL" _ @@ -7492,31 +7759,31 @@ Public Class Focas1 ' set origin / preset relative axis position Declare Function cnc_wrrelpos Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IDBWRR ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IDBWRR) As Short ' preset work coordinate Declare Function cnc_prstwkcd Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IDBWRA ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IDBWRA) As Short ' read manual overlapped motion value Declare Function cnc_rdmovrlap Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As IODBOVL ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As IODBOVL) As Short ' cancel manual overlapped motion value Declare Function cnc_canmovrlap Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read load information of serial spindle Declare Function cnc_rdspload Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBSPN ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBSPN) As Short ' read maximum r.p.m. ratio of serial spindle Declare Function cnc_rdspmaxrpm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBSPN ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBSPN) As Short ' read gear ratio of serial spindle Declare Function cnc_rdspgear Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBSPN ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBSPN) As Short ' read absolute axis position 2 Declare Function cnc_absolute2 Lib "FWLIB32.DLL" _ @@ -7528,11 +7795,11 @@ Public Class Focas1 ' set wire vertival position Declare Function cnc_setvrtclpos Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' set wire threading position Declare Function cnc_setthrdngpos Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read tool position Declare Function cnc_rdposition Lib "FWLIB32.DLL" _ @@ -7540,47 +7807,47 @@ Public Class Focas1 ' read current speed Declare Function cnc_rdspeed Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBSPEED ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBSPEED) As Short ' read servo load meter Declare Function cnc_rdsvmeter Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As ODBSVLOAD ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As ODBSVLOAD) As Short ' read spindle load meter Declare Function cnc_rdspmeter Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBSPLOAD ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBSPLOAD) As Short ' read handle interruption Declare Function cnc_rdhndintrpt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBHND ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBHND) As Short ' read manual feed for 5-axis machining Declare Function cnc_rd5axmandt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODB5AXMAN ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODB5AXMAN) As Short ' read amount of machine axes movement of manual feed for 5-axis machining Declare Function cnc_rd5axovrlap Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBAXIS ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBAXIS) As Short ' clear pulse values of manual feed for 5-axis machining Declare Function cnc_clr5axpls Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read constant surface speed Declare Function cnc_rdspcss Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBCSS ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBCSS) As Short ' read execution program pointer Declare Function cnc_rdexecpt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As PRGPNT, ByRef b As PRGPNT ) As Short + (ByVal FlibHndl As Integer, ByRef a As PRGPNT, ByRef b As PRGPNT) As Short ' read various axis data Declare Function cnc_rdaxisdata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b() As Short, ByVal c As Short, ByRef d As Short, ByRef c As ODBAXDT ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b() As Short, ByVal c As Short, ByRef d As Short, ByRef c As ODBAXDT) As Short -'---------------------- -' CNC: Program related -'---------------------- + '---------------------- + ' CNC: Program related + '---------------------- ' start downloading NC program Declare Function cnc_dwnstart Lib "FWLIB32.DLL" _ @@ -7608,7 +7875,7 @@ Public Class Focas1 ' start downloading NC program 3 special Declare Function cnc_dwnstart3_f Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String, ByVal c As String) As Short ' download NC program 3 @@ -7654,7 +7921,7 @@ Public Class Focas1 ' verify NC program Declare Function cnc_verify4 Lib "FWLIB32.DLL" _ (ByVal FlibHndl As Integer, ByRef a As Integer, <[In], Out> ByVal a() As Char) As Short - + ' end of verification Declare Function cnc_vrfend4 Lib "FWLIB32.DLL" _ (ByVal FlibHndl As Integer) As Short @@ -7673,7 +7940,7 @@ Public Class Focas1 ' end of downloading DNC program Declare Function cnc_dncend Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' start downloading DNC program 2 Declare Function cnc_dncstart2 Lib "FWLIB32.DLL" _ @@ -7685,16 +7952,16 @@ Public Class Focas1 ' end of downloading DNC program 2 Declare Function cnc_dncend2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read the diagnosis data of DNC operation Declare Function cnc_rddncdgndt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBDNCDGN ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBDNCDGN) As Short ' start uploading NC program #If ONO8D = Nothing Then Declare Function cnc_upstart Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short #Else Declare Function cnc_upstart Lib "FWLIB32.DLL" Alias "cnc_upstarto8" _ ( ByVal FlibHndl As Integer, ByVal a As Integer ) As Short @@ -7710,15 +7977,15 @@ Public Class Focas1 ' end of uploading NC program Declare Function cnc_upend Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' start uploading NC program 3 Declare Function cnc_upstart3 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByVal c As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByVal c As Integer) As Short ' start uploading NC program special 3 Declare Function cnc_upstart3_f Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String, ByVal c As String) As Short ' upload NC program 3 @@ -7727,28 +7994,28 @@ Public Class Focas1 ' end of uploading NC program 3 Declare Function cnc_upend3 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' start uploading NC program 4 Declare Function cnc_upstart4 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String) As Short ' upload NC program 4 Declare Function cnc_upload4 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer, <[In], Out> ByVal b() As Char) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer, <[In], Out> ByVal b() As Char) As Short ' end of uploading NC program 4 Declare Function cnc_upend4 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read buffer status for downloading/verification NC program Declare Function cnc_buff Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBBUF ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBBUF) As Short ' search specified program #If ONO8D = Nothing Then Declare Function cnc_search Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short #Else Declare Function cnc_search Lib "FWLIB32.DLL" Alias "cnc_searcho8" _ ( ByVal FlibHndl As Integer, ByVal a As Integer ) As Short @@ -7756,16 +8023,16 @@ Public Class Focas1 ' search specified program Declare Function cnc_search2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer) As Short ' delete all programs Declare Function cnc_delall Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' delete specified program #If ONO8D = Nothing Then Declare Function cnc_delete Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short #Else Declare Function cnc_delete Lib "FWLIB32.DLL" Alias "cnc_deleteo8" _ ( ByVal FlibHndl As Integer, ByVal a As Integer ) As Short @@ -7773,9 +8040,9 @@ Public Class Focas1 ' delete program (area specified) Declare Function cnc_delrange Lib "FWLIB32.DLL" Alias "cnc_delrange" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer , ByVal b As Integer) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer) As Short -' read program directory + ' read program directory #If ONO8D = Nothing Then Declare Function cnc_rdprogdir Lib "FWLIB32.DLL" _ (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Integer, ByRef e As PRGDIR) As Short @@ -7786,14 +8053,14 @@ Public Class Focas1 ' read program information Declare Function cnc_rdproginfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBNC_1) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBNC_1) As Short Declare Function cnc_rdproginfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBNC_2) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBNC_2) As Short ' read program number under execution #If ONO8D = Nothing Then Declare Function cnc_rdprgnum Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPRO ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPRO) As Short #Else Declare Function cnc_rdprgnum Lib "FWLIB32.DLL" Alias "cnc_rdprgnumo8" _ ( ByVal FlibHndl As Integer, ByRef a As ODBPRO ) As Short @@ -7801,31 +8068,34 @@ Public Class Focas1 ' read program name under execution Declare Function cnc_exeprgname Lib "FWLIB32.DLL" Alias "cnc_exeprgname" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBEXEPRG ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBEXEPRG) As Short ' read sequence number under execution Declare Function cnc_rdseqnum Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSEQ ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSEQ) As Short ' search specified sequence number Declare Function cnc_seqsrch Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer) As Short ' search specified sequence number (2) Declare Function cnc_seqsrch2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer) As Short ' rewind cursor of NC program Declare Function cnc_rewind Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read block counter Declare Function cnc_rdblkcount Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short + '' read program under execution + 'Declare Function cnc_rdexecprog Lib "FWLIB32.DLL" _ + ' (ByVal FlibHndl As Integer, ByRef a As Integer, ByRef b As Short, <[In], Out> ByVal c() As Char) As Short ' read program under execution Declare Function cnc_rdexecprog Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, ByRef a As Integer, ByRef b As Short, <[In], Out> ByVal c() As Char) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer, ByRef b As Integer, <[In](), Out()> ByVal c() As Char) As Short ' read program for MDI operation Declare Function cnc_rdmdiprog Lib "FWLIB32.DLL" _ @@ -7835,10 +8105,10 @@ Public Class Focas1 Declare Function cnc_wrmdiprog Lib "FWLIB32.DLL" _ (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String) As Short -' read execution pointer for MDI operation + ' read execution pointer for MDI operation #If ONO8D = Nothing Then Declare Function cnc_rdmdipntr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBMDIP ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBMDIP) As Short #Else Declare Function cnc_rdmdipntr Lib "FWLIB32.DLL" Alias "cnc_rdmdipntro8" _ ( ByVal FlibHndl As Integer, ByRef a As ODBMDIP ) As Short @@ -7846,48 +8116,48 @@ Public Class Focas1 ' write execution pointer for MDI operation Declare Function cnc_wrmdipntr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer) As Short ' register new program Declare Function cnc_newprog Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer) As Short ' copy program Declare Function cnc_copyprog Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer) As Short ' rename program Declare Function cnc_renameprog Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer) As Short ' condense program Declare Function cnc_condense Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer) As Short ' merge program Declare Function cnc_mergeprog Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByVal c As Integer, ByVal d As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByVal c As Integer, ByVal d As Integer) As Short ' read current program and its pointer Declare Function cnc_rdactpt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer, ByRef b As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer, ByRef b As Integer) As Short ' read current program and its pointer and UV macro pointer Declare Function cnc_rduvactpt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer, ByRef b As Integer, ByRef c As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer, ByRef b As Integer, ByRef c As Integer) As Short ' set current program and its pointer Declare Function cnc_wractpt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Short, ByRef c As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Short, ByRef c As Integer) As Short ' line edit (read program) Declare Function cnc_rdprogline Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, <[In], Out> ByVal c() As Char, ByRef d As Integer, ByRef e As Integer) As Short ' line edit (read program) Declare Function cnc_rdprogline2 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, <[In], Out> ByVal c() As Char, ByRef d As Integer, ByRef e As Integer) As Short ' line edit (write program) @@ -7900,7 +8170,7 @@ Public Class Focas1 ' line edit (search string) Declare Function cnc_searchword Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, ByVal c As Short, ByVal d As Short, ByVal e As Integer, ByVal f As String) As Short ' line edit (search string) @@ -7909,111 +8179,111 @@ Public Class Focas1 ' line edit (read program by file name) Declare Function cnc_rdpdf_line Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, ByVal a As String , ByVal b As Integer , <[In], Out> ByVal c() As Char , ByRef d As Integer , ByRef e As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Integer, <[In], Out> ByVal c() As Char, ByRef d As Integer, ByRef e As Integer) As Short ' program lock Declare Function cnc_setpglock Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer) As Short ' program unlock Declare Function cnc_resetpglock Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer) As Short ' read the status of the program lock Declare Function cnc_rdpglockstat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer, ByRef b As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer, ByRef b As Integer) As Short ' create file or directory Declare Function cnc_pdf_add Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String ) As Short + (ByVal FlibHndl As Integer, ByVal a As String) As Short ' condense program file Declare Function cnc_pdf_cond Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String ) As Short + (ByVal FlibHndl As Integer, ByVal a As String) As Short ' change attribute of program file and directory Declare Function cnc_wrpdf_attr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String , ByRef b As IDBPDFTDIR ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByRef b As IDBPDFTDIR) As Short ' copy program file Declare Function cnc_pdf_copy Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String , ByVal b As String ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As String) As Short ' delete file or directory Declare Function cnc_pdf_del Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String ) As Short + (ByVal FlibHndl As Integer, ByVal a As String) As Short ' line edit (write program by file name) Declare Function cnc_wrpdf_line Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Integer, ByVal c As String, ByVal d As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Integer, ByVal c As String, ByVal d As Integer) As Short ' line edit (delete line by file name) Declare Function cnc_pdf_delline Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String , ByVal b As Integer , ByVal c As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Integer, ByVal c As Integer) As Short ' move program file Declare Function cnc_pdf_move Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String , ByVal b As String ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As String) As Short ' read current program and its pointer Declare Function cnc_pdf_rdactpt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, <[In], Out> ByVal a() As Char , ByRef b As Integer ) As Short + (ByVal FlibHndl As Integer, <[In], Out> ByVal a() As Char, ByRef b As Integer) As Short ' read selected file name Declare Function cnc_pdf_rdmain Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, <[In], Out> ByVal a() As Char ) As Short + (ByVal FlibHndl As Integer, <[In], Out> ByVal a() As Char) As Short ' rename file or directory Declare Function cnc_pdf_rename Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String , ByVal b As String ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As String) As Short ' line edit (search string) Declare Function cnc_pdf_searchword Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String , ByVal b As Integer , ByVal c As Integer , ByVal d As Integer , ByVal e As Integer , ByVal f As String ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Integer, ByVal c As Integer, ByVal d As Integer, ByVal e As Integer, ByVal f As String) As Short ' line edit (search string) Declare Function cnc_pdf_searchresult Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short ' select program file Declare Function cnc_pdf_slctmain Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String ) As Short + (ByVal FlibHndl As Integer, ByVal a As String) As Short ' set current program and its pointer Declare Function cnc_pdf_wractpt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String , ByVal b As Short , ByRef c As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Short, ByRef c As Integer) As Short ' read program drive information Declare Function cnc_rdpdf_inf Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String , ByVal b As Short , ByRef c As ODBPDFINF ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Short, ByRef c As ODBPDFINF) As Short ' read program drive directory Declare Function cnc_rdpdf_drive Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPDFDRV ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPDFDRV) As Short ' read current directory Declare Function cnc_rdpdf_curdir Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short , <[In], Out> ByVal b() As Char ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, <[In], Out> ByVal b() As Char) As Short ' set current directory Declare Function cnc_wrpdf_curdir Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short , <[In], Out> ByVal b() As Char ) As Short - + (ByVal FlibHndl As Integer, ByVal a As Short, <[In], Out> ByVal b() As Char) As Short + ' read directory (sub directories) Declare Function cnc_rdpdf_subdir Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short , ByRef b As IDBPDFSDIR , ByRef b As ODBPDFSDIR ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As IDBPDFSDIR, ByRef b As ODBPDFSDIR) As Short ' read directory (all files) Declare Function cnc_rdpdf_alldir Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short , ByRef b As IDBPDFADIR, ByRef c As ODBPDFADIR ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As IDBPDFADIR, ByRef c As ODBPDFADIR) As Short ' read file count in directory Declare Function cnc_rdpdf_subdirn Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String , ByRef b As ODBPDFNFIL ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByRef b As ODBPDFNFIL) As Short -'--------------------------- -' CNC: NC file data related -'--------------------------- + '--------------------------- + ' CNC: NC file data related + '--------------------------- ' read tool offset value Declare Function cnc_rdtofs Lib "FWLIB32.DLL" _ @@ -8021,60 +8291,60 @@ Public Class Focas1 ' write tool offset value Declare Function cnc_wrtofs Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Integer) As Short ' read tool offset value(area specified) Declare Function cnc_rdtofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBTO_1_1) As Short Declare Function cnc_rdtofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBTO_1_2) As Short Declare Function cnc_rdtofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBTO_1_3) As Short Declare Function cnc_rdtofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBTO_2) As Short Declare Function cnc_rdtofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBTO_3) As Short ' write tool offset value(area specified) Declare Function cnc_wrtofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTO_1_1 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTO_1_1) As Short Declare Function cnc_wrtofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTO_1_2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTO_1_2) As Short Declare Function cnc_wrtofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTO_1_3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTO_1_3) As Short Declare Function cnc_wrtofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTO_2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTO_2) As Short Declare Function cnc_wrtofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTO_3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTO_3) As Short ' read work zero offset value Declare Function cnc_rdzofs Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBZOFS ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBZOFS) As Short ' write work zero offset value Declare Function cnc_wrzofs Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBZOFS ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBZOFS) As Short ' read work zero offset value(area specified) Declare Function cnc_rdzofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBZOR ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBZOR) As Short ' write work zero offset value(area specified) Declare Function cnc_wrzofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBZOR ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBZOR) As Short ' read mesured point value Declare Function cnc_rdmsptype Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBMSTP) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBMSTP) As Short ' write mesured point value Declare Function cnc_wrmsptype Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef d As IODBMSTP) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef d As IODBMSTP) As Short ' read parameter Declare Function cnc_rdparam Lib "FWLIB32.DLL" _ @@ -8088,13 +8358,13 @@ Public Class Focas1 ' write parameter Declare Function cnc_wrparam Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_1 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_1) As Short Declare Function cnc_wrparam Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_2) As Short Declare Function cnc_wrparam Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_3) As Short Declare Function cnc_wrparam Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_4) As Short ' read parameter Declare Function cnc_rdparam3 Lib "FWLIB32.DLL" _ @@ -8108,71 +8378,71 @@ Public Class Focas1 ' read parameter(area specified) Declare Function cnc_rdparar Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_A ) As Short + (ByVal FlibHndl As Integer, + ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_A) As Short Declare Function cnc_rdparar Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_B ) As Short + (ByVal FlibHndl As Integer, + ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_B) As Short Declare Function cnc_rdparar Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_C ) As Short + (ByVal FlibHndl As Integer, + ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_C) As Short Declare Function cnc_rdparar Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_D ) As Short + (ByVal FlibHndl As Integer, + ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_D) As Short ' write parameter(area specified) Declare Function cnc_wrparas Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_A ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_A) As Short Declare Function cnc_wrparas Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_B ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_B) As Short Declare Function cnc_wrparas Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_C ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_C) As Short Declare Function cnc_wrparas Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_D ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_D) As Short ' read setting data Declare Function cnc_rdset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPSD_1 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPSD_1) As Short Declare Function cnc_rdset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPSD_2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPSD_2) As Short Declare Function cnc_rdset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPSD_3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPSD_3) As Short Declare Function cnc_rdset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPSD_4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPSD_4) As Short ' write setting data Declare Function cnc_wrset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_1 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_1) As Short Declare Function cnc_wrset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_2) As Short Declare Function cnc_wrset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_3) As Short Declare Function cnc_wrset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_4) As Short ' read setting data(area specified) Declare Function cnc_rdsetr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_A ) As Short + (ByVal FlibHndl As Integer, + ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_A) As Short Declare Function cnc_rdsetr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_B ) As Short + (ByVal FlibHndl As Integer, + ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_B) As Short Declare Function cnc_rdsetr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_C ) As Short + (ByVal FlibHndl As Integer, + ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_C) As Short Declare Function cnc_rdsetr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_D ) As Short + (ByVal FlibHndl As Integer, + ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As IODBPSD_D) As Short ' write setting data(area specified) Declare Function cnc_wrsets Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_A ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_A) As Short Declare Function cnc_wrsets Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_B ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_B) As Short Declare Function cnc_wrsets Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_C ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_C) As Short Declare Function cnc_wrsets Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_D ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPSD_D) As Short ' read parameters Declare Function cnc_rdparam_ext Lib "FWLIB32.DLL" _ @@ -8180,15 +8450,15 @@ Public Class Focas1 ' async parameter write start Declare Function cnc_start_async_wrparam Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBPRM ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBPRM) As Short ' async parameter write end Declare Function cnc_end_async_wrparam Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read cause of busy for async parameter write Declare Function cnc_async_busy_state Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read diagnosis data Declare Function cnc_rddiag_ext Lib "FWLIB32.DLL" _ @@ -8196,48 +8466,48 @@ Public Class Focas1 ' read pitch error compensation data(area specified) Declare Function cnc_rdpitchr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPI ) As Short + (ByVal FlibHndl As Integer, + ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPI) As Short ' write pitch error compensation data(area specified) Declare Function cnc_wrpitchr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPI ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPI) As Short ' read custom macro variable Declare Function cnc_rdmacro Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBM) As Short ' write custom macro variable Declare Function cnc_wrmacro Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Integer, ByVal d As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Integer, ByVal d As Short) As Short ' read custom macro variables(area specified) Declare Function cnc_rdmacror Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBMR ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBMR) As Short ' write custom macro variables(area specified) Declare Function cnc_wrmacror Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBMR ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBMR) As Short ' read custom macro variables(IEEE double version) Declare Function cnc_rdmacror2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, <[In], Out> ByRef c() As Double ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, <[In], Out> ByRef c() As Double) As Short ' write custom macro variables(IEEE double version) Declare Function cnc_wrmacror2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, <[In], Out> ByVal c() As Double ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, <[In], Out> ByVal c() As Double) As Short ' read P code macro variable Declare Function cnc_rdpmacro Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As ODBPM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As ODBPM) As Short ' write P code macro variable Declare Function cnc_wrpmacro Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, ByVal c As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, ByVal c As Short) As Short ' read P code macro variables(area specified) Declare Function cnc_rdpmacror Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, ByVal c As Integer, ByRef d As IODBPR) As Short ' write P code macro variables(area specified) @@ -8246,298 +8516,298 @@ Public Class Focas1 ' read P code macro variables(IEEE double version) Declare Function cnc_rdpmacror2 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByVal c As Short, <[In], Out> ByVal d() As Double ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByVal c As Short, <[In], Out> ByVal d() As Double) As Short ' write P code macro variables(IEEE double version) Declare Function cnc_wrpmacror2 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByVal c As Short, <[In], Out> ByVal d() As Double ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByVal c As Short, <[In], Out> ByVal d() As Double) As Short ' read tool offset information Declare Function cnc_rdtofsinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBTLINF ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBTLINF) As Short ' read tool offset information(2) Declare Function cnc_rdtofsinfo2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBTLINF2 ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBTLINF2) As Short ' read work zero offset information Declare Function cnc_rdzofsinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read pitch error compensation data information Declare Function cnc_rdpitchinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read custom macro variable information Declare Function cnc_rdmacroinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBMVINF ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBMVINF) As Short ' read P code macro variable information Declare Function cnc_rdpmacroinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPMINF ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPMINF) As Short ' read validity of tool offset Declare Function cnc_tofs_rnge Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer , ByVal b As Integer , ByRef c As ODBDATRNG ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, ByRef c As ODBDATRNG) As Short ' read validity of work zero offset Declare Function cnc_zofs_rnge Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer , ByVal b As Integer , ByRef c As ODBDATRNG ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, ByRef c As ODBDATRNG) As Short ' read validity of work zero offset Declare Function cnc_wksft_rnge Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer , ByRef b As ODBDATRNG ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As ODBDATRNG) As Short ' read the information for function cnc_rdhsparam() Declare Function cnc_rdhsprminfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer , ByRef b As HSPINFO_data ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As HSPINFO_data) As Short ' read parameters at the high speed Declare Function cnc_rdhsparam Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer , ByRef b As HSPINFO , ByRef c As HSPDATA_1 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As HSPINFO, ByRef c As HSPDATA_1) As Short Declare Function cnc_rdhsparam Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer , ByRef b As HSPINFO , ByRef c As HSPDATA_2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As HSPINFO, ByRef c As HSPDATA_2) As Short Declare Function cnc_rdhsparam Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer , ByRef b As HSPINFO , ByRef c As HSPDATA_3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As HSPINFO, ByRef c As HSPDATA_3) As Short -'---------------------------------------- -' CNC: Tool life management data related -'---------------------------------------- + '---------------------------------------- + ' CNC: Tool life management data related + '---------------------------------------- ' read tool life management data(tool group number) Declare Function cnc_rdgrpid Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBTLIFE1 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBTLIFE1) As Short ' read tool life management data(number of tool groups) Declare Function cnc_rdngrp Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBTLIFE2 ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBTLIFE2) As Short ' read tool life management data(number of tools) Declare Function cnc_rdntool Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBTLIFE3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBTLIFE3) As Short ' read tool life management data(tool life) Declare Function cnc_rdlife Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBTLIFE3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBTLIFE3) As Short ' read tool life management data(tool lift counter) Declare Function cnc_rdcount Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBTLIFE3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBTLIFE3) As Short ' read tool life management data(tool length number-1) Declare Function cnc_rd1length Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4) As Short ' read tool life management data(tool length number-2) Declare Function cnc_rd2length Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4) As Short ' read tool life management data(cutter compensation no.-1) Declare Function cnc_rd1radius Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4) As Short ' read tool life management data(cutter compensation no.-2) Declare Function cnc_rd2radius Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4) As Short ' read tool life management data(tool information-1) Declare Function cnc_t1info Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4) As Short ' read tool life management data(tool information-2) Declare Function cnc_t2info Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4) As Short ' read tool life management data(tool number) Declare Function cnc_toolnum Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTLIFE4) As Short ' read tool life management data(tool number, tool life, tool life counter)(area specified) Declare Function cnc_rdtoolrng Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBTR ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBTR) As Short ' read tool life management data(all data within group) Declare Function cnc_rdtoolgrp Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTG ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBTG) As Short ' write tool life management data(tool life counter) (area specified) Declare Function cnc_wrcountr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IDBWRC ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IDBWRC) As Short ' read tool life management data(used tool group number) Declare Function cnc_rdusegrpid Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBUSEGR ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBUSEGR) As Short ' read tool life management data(max. number of tool groups) Declare Function cnc_rdmaxgrp Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBLFNO ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBLFNO) As Short ' read tool life management data(maximum number of tool within group) Declare Function cnc_rdmaxtool Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBLFNO ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBLFNO) As Short ' read tool life management data(used tool no. within group) Declare Function cnc_rdusetlno Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As ODBTLUSE ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As ODBTLUSE) As Short ' read tool life management data(tool data1) Declare Function cnc_rd1tlifedata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As IODBTD ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As IODBTD) As Short ' read tool life management data(tool data2) Declare Function cnc_rd2tlifedata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As IODBTD ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As IODBTD) As Short ' write tool life management data(tool data1) Declare Function cnc_wr1tlifedata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBTD ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBTD) As Short ' write tool life management data(tool data2) Declare Function cnc_wr2tlifedata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBTD ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBTD) As Short ' read tool life management data(tool group information) Declare Function cnc_rdgrpinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBTGI ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBTGI) As Short ' read tool life management data(tool group information 2) Declare Function cnc_rdgrpinfo2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBTGI2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBTGI2) As Short ' read tool life management data(tool group information 3) Declare Function cnc_rdgrpinfo3 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBTGI3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBTGI3) As Short ' read tool life management data(tool group information 4) Declare Function cnc_rdgrpinfo4 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As Short, ByRef e As IODBTGI4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As Short, ByRef e As IODBTGI4) As Short ' write tool life management data(tool group information) Declare Function cnc_wrgrpinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTGI ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTGI) As Short ' write tool life management data(tool group information 2) Declare Function cnc_wrgrpinfo2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTGI2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTGI2) As Short ' write tool life management data(tool group information 3) Declare Function cnc_wrgrpinfo3 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTGI3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTGI3) As Short ' delete tool life management data(tool group) Declare Function cnc_deltlifegrp Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' insert tool life management data(tool data) Declare Function cnc_instlifedt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IDBITD ) As Short + (ByVal FlibHndl As Integer, ByRef a As IDBITD) As Short ' delete tool life management data(tool data) Declare Function cnc_deltlifedt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short) As Short ' clear tool life management data(tool life counter, tool information)(area specified) Declare Function cnc_clrcntinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short) As Short ' read tool life management data(tool group number) 2 Declare Function cnc_rdgrpid2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As ODBTLIFE5 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As ODBTLIFE5) As Short ' read tool life management data(tool data1) 2 Declare Function cnc_rd1tlifedat2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByRef c As IODBTD2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByRef c As IODBTD2) As Short ' write tool life management data(tool data1) 2 Declare Function cnc_wr1tlifedat2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBTD2 ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBTD2) As Short ' read tool life management data Declare Function cnc_rdtlinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBTLINFO ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBTLINFO) As Short ' read tool life management data(used tool group number) Declare Function cnc_rdtlusegrp Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBUSEGRP ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBUSEGRP) As Short ' read tool life management data(tool group information 2) Declare Function cnc_rdtlgrp Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Short, ByRef c As IODBTLGRP ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Short, ByRef c As IODBTLGRP) As Short ' read tool life management data (tool data1) Declare Function cnc_rdtltool Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, ByRef c As Short, ByRef d As IODBTLTOOL ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, ByRef c As Short, ByRef d As IODBTLTOOL) As Short Declare Function cnc_rdexchgtgrp Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef b As Short, ByRef c As ODBEXGP ) As Short + (ByVal FlibHndl As Integer, ByRef b As Short, ByRef c As ODBEXGP) As Short -'----------------------------------- -' CNC: Tool management data related -'----------------------------------- + '----------------------------------- + ' CNC: Tool management data related + '----------------------------------- ' new registration of tool management data Declare Function cnc_regtool Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLMNG ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLMNG) As Short ' new registration of tool management data Declare Function cnc_regtool_f2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLMNG_F2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLMNG_F2) As Short ' deletion of tool management data Declare Function cnc_deltool Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short) As Short ' lead of tool management data Declare Function cnc_rdtool Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLMNG ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLMNG) As Short ' lead of tool management data Declare Function cnc_rdtool_f2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLMNG_F2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLMNG_F2) As Short ' write of tool management data Declare Function cnc_wrtool Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTLMNG ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTLMNG) As Short ' write of individual data of tool management data Declare Function cnc_wrtool2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IDBTLM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IDBTLM) As Short ' write tool management data Declare Function cnc_wrtool_f2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTLMNG_F2_data ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTLMNG_F2_data) As Short ' new registration of magazine management data Declare Function cnc_regmagazine Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As IODBTLMAG ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As IODBTLMAG) As Short ' deletion of magazine management data Declare Function cnc_delmagazine Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As IODBTLMAG2 ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As IODBTLMAG2) As Short ' lead of magazine management data Declare Function cnc_rdmagazine Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As IODBTLMAG ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As IODBTLMAG) As Short ' Individual write of magazine management data Declare Function cnc_wrmagazine Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short) As Short -'------------------------------------- -' CNC: Operation history data related -'------------------------------------- + '------------------------------------- + ' CNC: Operation history data related + '------------------------------------- ' stop logging operation history data Declare Function cnc_stopophis Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' restart logging operation history data Declare Function cnc_startophis Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read number of operation history data Declare Function cnc_rdophisno Lib "FWLIB32.DLL" _ @@ -8549,52 +8819,52 @@ Public Class Focas1 ' read operation history data Declare Function cnc_rdophistry2 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As Integer, <[In], Out> ByVal d() As ODBOPHIS) As Short ' read operation history data F30i Declare Function cnc_rdophistry4 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As Integer, ByRef d As ODBOPHIS4_1) As Short Declare Function cnc_rdophistry4 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As Integer, ByRef d As ODBOPHIS4_2) As Short Declare Function cnc_rdophistry4 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As Integer, ByRef d As ODBOPHIS4_3) As Short Declare Function cnc_rdophistry4 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As Integer, ByRef d As ODBOPHIS4_4) As Short Declare Function cnc_rdophistry4 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As Integer, ByRef d As ODBOPHIS4_5) As Short Declare Function cnc_rdophistry4 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As Integer, ByRef d As ODBOPHIS4_6) As Short Declare Function cnc_rdophistry4 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As Integer, ByRef d As ODBOPHIS4_7) As Short Declare Function cnc_rdophistry4 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As Integer, ByRef d As ODBOPHIS4_8) As Short Declare Function cnc_rdophistry4 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As Integer, ByRef d As ODBOPHIS4_9) As Short Declare Function cnc_rdophistry4 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As Integer, ByRef d As ODBOPHIS4_10) As Short Declare Function cnc_rdophistry4 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As Integer, ByRef d As ODBOPHIS4_11) As Short ' read number of alarm history data @@ -8623,39 +8893,39 @@ Public Class Focas1 ' clear operation history data Declare Function cnc_clearophis Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read signals related operation history Declare Function cnc_rdhissgnl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBSIG ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBSIG) As Short ' read signals related operation history 2 Declare Function cnc_rdhissgnl2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBSIG2 ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBSIG2) As Short ' read signals related operation history 3 Declare Function cnc_rdhissgnl3 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBSIG3 ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBSIG3) As Short ' write signals related operation history Declare Function cnc_wrhissgnl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBSIG ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBSIG) As Short ' write signals related operation history 2 Declare Function cnc_wrhissgnl2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBSIG2 ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBSIG2) As Short ' write signals related operation history for F30i Declare Function cnc_wrhissgnl3 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBSIG3 ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBSIG3) As Short ' read number of operater message history data Declare Function cnc_rdomhisno Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short -'------------- -' CNC: Others -'------------- + '------------- + ' CNC: Others + '------------- ' read CNC system information Declare Function cnc_sysinfo Lib "FWLIB32.DLL" _ @@ -8663,7 +8933,7 @@ Public Class Focas1 ' read CNC status information Declare Function cnc_statinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBST ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBST) As Short ' read alarm status Declare Function cnc_alarm Lib "FWLIB32.DLL" _ @@ -8671,7 +8941,7 @@ Public Class Focas1 ' read alarm status Declare Function cnc_alarm2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short ' read alarm information Declare Function cnc_rdalminfo Lib "FWLIB32.DLL" _ @@ -8682,168 +8952,168 @@ Public Class Focas1 ' read alarm message Declare Function cnc_rdalmmsg Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBALMMSG ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBALMMSG) As Short ' read alarm message (2) Declare Function cnc_rdalmmsg2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBALMMSG2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBALMMSG2) As Short ' clear CNC alarm Declare Function cnc_clralm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read modal data Declare Function cnc_modal Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBMDL_1 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBMDL_1) As Short Declare Function cnc_modal Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBMDL_2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBMDL_2) As Short Declare Function cnc_modal Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBMDL_3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBMDL_3) As Short Declare Function cnc_modal Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBMDL_4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBMDL_4) As Short Declare Function cnc_modal Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBMDL_5 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBMDL_5) As Short ' read G code Declare Function cnc_rdgcode Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As Short, ByRef d As ODBGCD ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As Short, ByRef d As ODBGCD) As Short ' read command value Declare Function cnc_rdcommand Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As Short, ByRef d As ODBCMD ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As Short, ByRef d As ODBCMD) As Short ' read diagnosis data Declare Function cnc_diagnoss Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As ODBDGN_1 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As ODBDGN_1) As Short Declare Function cnc_diagnoss Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As ODBDGN_2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As ODBDGN_2) As Short Declare Function cnc_diagnoss Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As ODBDGN_3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As ODBDGN_3) As Short Declare Function cnc_diagnoss Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As ODBDGN_4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As ODBDGN_4) As Short ' read diagnosis data(area specified) Declare Function cnc_diagnosr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As ODBDGN_A ) As Short + (ByVal FlibHndl As Integer, + ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As ODBDGN_A) As Short Declare Function cnc_diagnosr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As ODBDGN_B ) As Short + (ByVal FlibHndl As Integer, + ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As ODBDGN_B) As Short Declare Function cnc_diagnosr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As ODBDGN_C ) As Short + (ByVal FlibHndl As Integer, + ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As ODBDGN_C) As Short Declare Function cnc_diagnosr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As ODBDGN_D ) As Short + (ByVal FlibHndl As Integer, + ByRef a As Short, ByVal b As Short, ByRef c As Short, ByRef d As Short, ByRef e As ODBDGN_D) As Short ' read A/D conversion data Declare Function cnc_adcnv Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBAD ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBAD) As Short ' read operator's message Declare Function cnc_rdopmsg Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As OPMSG ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As OPMSG) As Short ' read operator's message Declare Function cnc_rdopmsg2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As OPMSG2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As OPMSG2) As Short ' read operator's message Declare Function cnc_rdopmsg3 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As OPMSG3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As OPMSG3) As Short ' set path number(for 4 axes lathes, multi-path) Declare Function cnc_setpath Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' get path number(for 4 axes lathes, multi-path) Declare Function cnc_getpath Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As Short) As Short ' allocate library handle Declare Function cnc_allclibhndl Lib "FWLIB32.DLL" _ - ( ByRef FlibHndl As Integer ) As Short + (ByRef FlibHndl As Integer) As Short ' free library handle Declare Function cnc_freelibhndl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' get library option Declare Function cnc_getlibopt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, <[In], Out> ByVal b() As Char, ByRef c As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, <[In], Out> ByVal b() As Char, ByRef c As Integer) As Short ' set library option Declare Function cnc_setlibopt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b() As Char, ByVal c As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b() As Char, ByVal c As Integer) As Short ' get custom macro type Declare Function cnc_getmactype Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' set custom macro type Declare Function cnc_setmactype Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' get P code macro type Declare Function cnc_getpmactype Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' set P code macro type Declare Function cnc_setpmactype Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' get screen status Declare Function cnc_getcrntscrn Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' change screen mode Declare Function cnc_slctscrn Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read CNC configuration information Declare Function cnc_sysconfig Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSYSC ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSYSC) As Short ' read program restart information Declare Function cnc_rdprstrinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPRS ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPRS) As Short ' search sequence number for program restart Declare Function cnc_rstrseqsrch Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, ByVal c As Short, ByVal d As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, ByVal c As Short, ByVal d As Short) As Short ' search sequence number for program restart 2 Declare Function cnc_rstrseqsrch2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByVal a As Integer, ByVal b As Integer, ByVal c As Short, ByVal d As Short, ByVal e As Integer ) As Short + (ByVal FlibHndl As Integer, + ByVal a As Integer, ByVal b As Integer, ByVal c As Short, ByVal d As Short, ByVal e As Integer) As Short ' read output signal image of software operator's panel Declare Function cnc_rdopnlsgnl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBSGNL ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBSGNL) As Short ' write output signal of software operator's panel Declare Function cnc_wropnlsgnl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBSGNL ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBSGNL) As Short ' read general signal image of software operator's panel Declare Function cnc_rdopnlgnrl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBGNRL ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBGNRL) As Short ' write general signal image of software operator's panel Declare Function cnc_wropnlgnrl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBGNRL ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBGNRL) As Short ' read general signal name of software operator's panel Declare Function cnc_rdopnlgsname Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBRDNA ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBRDNA) As Short ' write general signal name of software operator's panel Declare Function cnc_wropnlgsname Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBRDNA ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBRDNA) As Short ' get detail error Declare Function cnc_getdtailerr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBERR ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBERR) As Short ' read informations of CNC parameter Declare Function cnc_rdparainfo Lib "FWLIB32.DLL" _ @@ -8859,136 +9129,136 @@ Public Class Focas1 ' read maximum, minimum and total number of CNC parameter Declare Function cnc_rdparanum Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPARANUM ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPARANUM) As Short ' read maximum, minimum and total number of CNC setting data Declare Function cnc_rdsetnum Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSETNUM ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSETNUM) As Short ' read maximum, minimum and total number of CNC diagnose data Declare Function cnc_rddiagnum Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBDIAGNUM ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBDIAGNUM) As Short ' get maximum valid figures and number of decimal places Declare Function cnc_getfigure Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, <[In], Out> ByVal c() As Short, <[In], Out> ByVal d() As Short) As Short ' read F-ROM information on CNC Declare Function cnc_rdfrominfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBFINFO ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBFINFO) As Short ' start of reading F-ROM data from CNC Declare Function cnc_fromsvstart Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String, ByVal c As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String, ByVal c As Integer) As Short ' read F-ROM data from CNC Declare Function cnc_fromsave Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, <[In], Out> ByVal b() As Byte, ByRef c As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, <[In], Out> ByVal b() As Byte, ByRef c As Integer) As Short ' end of reading F-ROM data from CNC Declare Function cnc_fromsvend Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' start of writing F-ROM data to CNC Declare Function cnc_fromldstart Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer) As Short ' write F-ROM data to CNC Declare Function cnc_fromload Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal b() As Byte, ByRef b As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal b() As Byte, ByRef b As Integer) As Short ' end of writing F-ROM data to CNC Declare Function cnc_fromldend Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' delete F-ROM data on CNC Declare Function cnc_fromdelete Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String, ByVal c As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String, ByVal c As Integer) As Short ' read S-RAM information on CNC Declare Function cnc_rdsraminfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSINFO ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSINFO) As Short ' start of reading S-RAM data from CNC Declare Function cnc_srambkstart Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Integer) As Short ' read S-RAM data from CNC Declare Function cnc_srambackup Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, <[In], Out> ByVal b() As Byte, ByRef c As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, <[In], Out> ByVal b() As Byte, ByRef c As Integer) As Short ' end of reading S-RAM data from CNC Declare Function cnc_srambkend Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read F-ROM information on CNC Declare Function cnc_getfrominfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBFINFORM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBFINFORM) As Short ' start of reading F-ROM data from CNC Declare Function cnc_fromgetstart Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String) As Short ' read F-ROM data from CNC Declare Function cnc_fromget Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, <[In], Out> ByVal b() As Byte, ByRef c As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, <[In], Out> ByVal b() As Byte, ByRef c As Integer) As Short ' end of reading F-ROM data from CNC Declare Function cnc_fromgetend Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' start of writing F-ROM data to CNC Declare Function cnc_fromputstart Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' write F-ROM data to CNC Declare Function cnc_fromput Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a() As Byte, ByRef b As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a() As Byte, ByRef b As Integer) As Short ' end of writing F-ROM data to CNC Declare Function cnc_fromputend Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' delete F-ROM data on CNC Declare Function cnc_fromremove Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As String) As Short ' read S-RAM information on CNC Declare Function cnc_getsraminfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSINFO ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSINFO) As Short ' start of reading S-RAM data from CNC Declare Function cnc_sramgetstart Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String ) As Short + (ByVal FlibHndl As Integer, ByVal a As String) As Short ' start of reading S-RAM data from CNC (2) Declare Function cnc_sramgetstart2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String ) As Short + (ByVal FlibHndl As Integer, ByVal a As String) As Short ' read S-RAM data from CNC Declare Function cnc_sramget Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, <[In], Out> ByVal b() As Byte, ByRef c As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, <[In], Out> ByVal b() As Byte, ByRef c As Integer) As Short ' read S-RAM data from CNC (2) Declare Function cnc_sramget2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, <[In], Out> ByVal b() As Byte, ByRef c As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, <[In], Out> ByVal b() As Byte, ByRef c As Integer) As Short ' end of reading S-RAM data from CNC Declare Function cnc_sramgetend Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' end of reading S-RAM data from CNC (2) Declare Function cnc_sramgetend2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read number of S-RAM data kind on CNC Declare Function cnc_rdsramnum Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read S-RAM data address information on CNC Declare Function cnc_rdsramaddr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As SRAMADDR ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As SRAMADDR) As Short ' get current NC data protection information Declare Function cnc_getlockstat Lib "FWLIB32.DLL" _ @@ -9008,11 +9278,11 @@ Public Class Focas1 ' get transfer status for FTP Declare Function cnc_dtsvftpstat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read file directory in Data Server Declare Function cnc_dtsvrdpgdir Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Short, ByRef c As ODBDSDIR ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Short, ByRef c As ODBDSDIR) As Short ' delete files in Data Server Declare Function cnc_dtsvdelete Lib "FWLIB32.DLL" _ @@ -9028,11 +9298,11 @@ Public Class Focas1 ' close upload/download between Data Server and CNC Declare Function cnc_dtsvcnclupdn Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' get transfer status for up/down load Declare Function cnc_dtsvupdnstat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' get file name for DNC operation in Data Server Declare Function cnc_dtsvgetdncpg Lib "FWLIB32.DLL" _ @@ -9044,23 +9314,23 @@ Public Class Focas1 ' read setting data for Data Server Declare Function cnc_dtsvrdset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBDSSET ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBDSSET) As Short ' write setting data for Data Server Declare Function cnc_dtsvwrset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBDSSET ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBDSSET) As Short ' check hard disk in Data Server Declare Function cnc_dtsvchkdsk Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' format hard disk in Data Server Declare Function cnc_dtsvhdformat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' save interface area in Data Server Declare Function cnc_dtsvsavecram Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' get interface area in Data Server Declare Function cnc_dtsvrdcram Lib "FWLIB32.DLL" _ @@ -9068,15 +9338,15 @@ Public Class Focas1 ' read maintenance information for Data Server Declare Function cnc_dtsvmntinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBDSMNT ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBDSMNT) As Short ' get Data Server mode Declare Function cnc_dtsvgetmode Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' set Data Server mode Declare Function cnc_dtsvsetmode Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read error message for Data Server Declare Function cnc_dtsvrderrmsg Lib "FWLIB32.DLL" _ @@ -9092,39 +9362,39 @@ Public Class Focas1 ' read the loop gain for each axis Declare Function cnc_rdloopgain Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short ' read the actual current for each axis Declare Function cnc_rdcurrent Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read the actual speed for each axis Declare Function cnc_rdsrvspeed Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short ' read the operation mode Declare Function cnc_rdopmode Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read the position deviation S Declare Function cnc_rdposerrs Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short ' read the position deviation S1 and S2 Declare Function cnc_rdposerrs2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPSER ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPSER) As Short ' read the position deviation Z in the rigid tap mode Declare Function cnc_rdposerrz Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short ' read the synchronous error in the synchronous control mode Declare Function cnc_rdsynerrsy Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short ' read the synchronous error in the rigid tap mode Declare Function cnc_rdsynerrrg Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short ' read the spindle alarm Declare Function cnc_rdspdlalm Lib "FWLIB32.DLL" _ @@ -9132,128 +9402,128 @@ Public Class Focas1 ' read the control input signal Declare Function cnc_rdctrldi Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSPDI ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSPDI) As Short ' read the control output signal Declare Function cnc_rdctrldo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSPDO ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSPDO) As Short ' read the number of controled spindle Declare Function cnc_rdnspdl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read data from FANUC BUS Declare Function cnc_rdfbusmem Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Integer, ByVal d As Integer, <[In], Out> ByVal e() As Byte) As Short ' write data to FANUC BUS Declare Function cnc_wrfbusmem Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Integer, ByVal d As Integer, ByVal e() As Byte) As Short ' read the parameter of wave diagnosis Declare Function cnc_rdwaveprm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBWAVE ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBWAVE) As Short ' write the parameter of wave diagnosis Declare Function cnc_wrwaveprm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBWAVE ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBWAVE) As Short ' read the parameter of wave diagnosis 2 Declare Function cnc_rdwaveprm2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBWVPRM ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBWVPRM) As Short ' write the parameter of wave diagnosis 2 Declare Function cnc_wrwaveprm2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBWVPRM ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBWVPRM) As Short ' start the sampling for wave diagnosis Declare Function cnc_wavestart Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' stop the sampling for wave diagnosis Declare Function cnc_wavestop Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read the status of wave diagnosis Declare Function cnc_wavestat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read the data of wave diagnosis Declare Function cnc_rdwavedata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByVal a As Short, ByVal b As Short, ByVal c As Integer, ByRef d As Integer, ByRef e As ODBWVDT ) As Short + (ByVal FlibHndl As Integer, + ByVal a As Short, ByVal b As Short, ByVal c As Integer, ByRef d As Integer, ByRef e As ODBWVDT) As Short ' read the parameter of wave diagnosis for remort diagnosis Declare Function cnc_rdrmtwaveprm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBRMTPRM, ByVal b As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBRMTPRM, ByVal b As Short) As Short ' write the parameter of wave diagnosis for remort diagnosis Declare Function cnc_wrrmtwaveprm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBRMTPRM ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBRMTPRM) As Short ' start the sampling for wave diagnosis for remort diagnosis Declare Function cnc_rmtwavestart Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' stop the sampling for wave diagnosis for remort diagnosis Declare Function cnc_rmtwavestop Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read the status of wave diagnosis for remort diagnosis Declare Function cnc_rmtwavestat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read the data of wave diagnosis for remort diagnosis Declare Function cnc_rdrmtwavedt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByRef c As Integer, ByRef d As ODBRMTDT ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByRef c As Integer, ByRef d As ODBRMTDT) As Short ' read of address for PMC signal batch save Declare Function cnc_rdsavsigadr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBSIGAD, ByVal b As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBSIGAD, ByVal b As Short) As Short ' write of address for PMC signal batch save Declare Function cnc_wrsavsigadr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBSIGAD, ByRef b As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBSIGAD, ByRef b As Short) As Short ' read of data for PMC signal batch save Declare Function cnc_rdsavsigdata Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, <[In], Out> ByVal c() As Byte, ByRef d As Short) As Short ' read M-code group data Declare Function cnc_rdmgrpdata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBMGRP ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBMGRP) As Short ' write M-code group data Declare Function cnc_wrmgrpdata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IDBMGRP ) As Short + (ByVal FlibHndl As Integer, ByRef a As IDBMGRP) As Short ' read executing M-code group data Declare Function cnc_rdexecmcode Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBEXEM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBEXEM) As Short ' read program restart M-code group data Declare Function cnc_rdrstrmcode Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBRSTRM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBRSTRM) As Short ' read processing time stamp data Declare Function cnc_rdproctime Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPTIME ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPTIME) As Short ' read MDI program stat Declare Function cnc_rdmdiprgstat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read program directory for processing time data Declare Function cnc_rdprgdirtime Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer, ByRef b As Short, ByRef c As PRGDIRTM ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer, ByRef b As Short, ByRef c As PRGDIRTM) As Short ' read program directory 2 #If ONO8D = Nothing Then Declare Function cnc_rdprogdir2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As Short, ByRef d As PRGDIR2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As Short, ByRef d As PRGDIR2) As Short #Else Declare Function cnc_rdprogdir2 Lib "FWLIB32.DLL" Alias "cnc_rdprogdir2o8" _ ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As Short, ByRef d As PRGDIR2 ) As Short @@ -9261,11 +9531,11 @@ Public Class Focas1 ' read program directory 3 Declare Function cnc_rdprogdir3 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Integer, ByRef c As Short, ByRef d As PRGDIR3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Integer, ByRef c As Short, ByRef d As PRGDIR3) As Short ' read program directory 4 Declare Function cnc_rdprogdir4 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByRef c As Short, ByRef d As PRGDIR4 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByRef c As Short, ByRef d As PRGDIR4) As Short ' read DNC file name for DNC1, DNC2, OSI-Ethernet Declare Function cnc_rddncfname Lib "FWLIB32.DLL" _ @@ -9277,11 +9547,11 @@ Public Class Focas1 ' read communication parameter for DNC1, DNC2, OSI-Ethernet Declare Function cnc_rdcomparam Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBCPRM ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBCPRM) As Short ' write communication parameter for DNC1, DNC2, OSI-Ethernet Declare Function cnc_wrcomparam Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBCPRM ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBCPRM) As Short ' read log message for DNC2 Declare Function cnc_rdcomlogmsg Lib "FWLIB32.DLL" _ @@ -9305,7 +9575,7 @@ Public Class Focas1 ' clear message buffer for OSI-Ethernet Declare Function cnc_clrmsgbuff Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read message recieve status for OSI-Ethernet Declare Function cnc_rdrcvstat Lib "FWLIB32.DLL" _ @@ -9313,43 +9583,43 @@ Public Class Focas1 ' read interference check Declare Function cnc_rdintchk Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBINT ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBINT) As Short ' write interference check Declare Function cnc_wrintchk Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBINT ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBINT) As Short ' read interference check information Declare Function cnc_rdintinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read work coordinate shift Declare Function cnc_rdwkcdshft Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As IODBWCSF ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As IODBWCSF) As Short ' write work coordinate shift Declare Function cnc_wrwkcdshft Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBWCSF ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBWCSF) As Short ' read work coordinate shift measure Declare Function cnc_rdwkcdsfms Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As IODBWCSF ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As IODBWCSF) As Short ' write work coordinate shift measure Declare Function cnc_wrwkcdsfms Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBWCSF ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBWCSF) As Short ' stop the sampling for operator message history Declare Function cnc_stopomhis Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' start the sampling for operator message history Declare Function cnc_startomhis Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read operator message history information Declare Function cnc_rdomhisinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBOMIF ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBOMIF) As Short ' read operator message history Declare Function cnc_rdomhistry Lib "FWLIB32.DLL" _ @@ -9357,43 +9627,43 @@ Public Class Focas1 ' read operater message history data F30i Declare Function cnc_rdomhistry2 Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As ODBOMHIS2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As ODBOMHIS2) As Short ' write external key operation history for F30i Declare Function cnc_wrkeyhistry Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Byte ) As Short + (ByVal FlibHndl As Integer, ByVal a As Byte) As Short ' clear operator message history Declare Function cnc_clearomhis Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read b-axis tool offset value(area specified) Declare Function cnc_rdbtofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBBTO ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBBTO) As Short ' write b-axis tool offset value(area specified) Declare Function cnc_wrbtofsr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBBTO ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBBTO) As Short ' read b-axis tool offset information Declare Function cnc_rdbtofsinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBBTLINF ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBBTLINF) As Short ' read b-axis command Declare Function cnc_rdbaxis Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBBAXIS ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBBAXIS) As Short ' read CNC system soft series and version Declare Function cnc_rdsyssoft Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSYSS ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSYSS) As Short ' read CNC system soft series and version (2) Declare Function cnc_rdsyssoft2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSYSS2 ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSYSS2) As Short ' read CNC module configuration information Declare Function cnc_rdmdlconfig Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBMDLC ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBMDLC) As Short ' read CNC module configuration information 2 Declare Function cnc_rdmdlconfig2 Lib "FWLIB32.DLL" _ @@ -9401,219 +9671,219 @@ Public Class Focas1 ' read processing condition file (processing data) Declare Function cnc_rdpscdproc Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBPSCD ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBPSCD) As Short ' write processing condition file (processing data) Declare Function cnc_wrpscdproc Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBPSCD ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBPSCD) As Short ' read processing condition file (piercing data) Declare Function cnc_rdpscdpirc Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBPIRC ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBPIRC) As Short ' write processing condition file (piercing data) Declare Function cnc_wrpscdpirc Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBPIRC ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBPIRC) As Short ' read processing condition file (edging data) Declare Function cnc_rdpscdedge Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBEDGE ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBEDGE) As Short ' write processing condition file (edging data) Declare Function cnc_wrpscdedge Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBEDGE ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBEDGE) As Short ' read processing condition file (slope data) Declare Function cnc_rdpscdslop Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBSLOP ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBSLOP) As Short ' write processing condition file (slope data) Declare Function cnc_wrpscdslop Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBSLOP ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBSLOP) As Short ' read power controll duty data Declare Function cnc_rdlpwrdty Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBLPWDT ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBLPWDT) As Short ' write power controll duty data Declare Function cnc_wrlpwrdty Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBLPWDT ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBLPWDT) As Short ' read laser power data Declare Function cnc_rdlpwrdat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBLOPDT ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBLOPDT) As Short ' read power complement Declare Function cnc_rdlpwrcpst Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' write power complement Declare Function cnc_wrlpwrcpst Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read laser assist gas selection Declare Function cnc_rdlagslt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBLAGSL ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBLAGSL) As Short ' write laser assist gas selection Declare Function cnc_wrlagslt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBLAGSL ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBLAGSL) As Short ' read laser assist gas flow Declare Function cnc_rdlagst Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBLAGST ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBLAGST) As Short ' write laser assist gas flow Declare Function cnc_wrlagst Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBLAGST ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBLAGST) As Short ' read laser power for edge processing Declare Function cnc_rdledgprc Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBLEGPR ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBLEGPR) As Short ' write laser power for edge processing Declare Function cnc_wrledgprc Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBLEGPR ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBLEGPR) As Short ' read laser power for piercing Declare Function cnc_rdlprcprc Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBLPCPR ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBLPCPR) As Short ' write laser power for piercing Declare Function cnc_wrlprcprc Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBLPCPR ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBLPCPR) As Short ' read laser command data Declare Function cnc_rdlcmddat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBLCMDT ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBLCMDT) As Short ' read displacement Declare Function cnc_rdldsplc Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' write displacement Declare Function cnc_wrldsplc Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read error for axis z Declare Function cnc_rdlerrz Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read active number Declare Function cnc_rdlactnum Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBLACTN ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBLACTN) As Short ' read laser comment Declare Function cnc_rdlcmmt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBLCMMT ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBLCMMT) As Short ' read laser power select Declare Function cnc_rdlpwrslt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' write laser power select Declare Function cnc_wrlpwrslt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read laser power controll Declare Function cnc_rdlpwrctrl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' write laser power controll Declare Function cnc_wrlpwrctrl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read power correction factor history data Declare Function cnc_rdpwofsthis Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As ODBPWOFST ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As ODBPWOFST) As Short ' read management time Declare Function cnc_rdmngtime Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As IODBMNGTIME ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As IODBMNGTIME) As Short ' write management time Declare Function cnc_wrmngtime Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As IODBMNGTIME ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As IODBMNGTIME) As Short ' read data related to electrical discharge at power correction ends Declare Function cnc_rddischarge Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBDISCHRG ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBDISCHRG) As Short ' read alarm history data related to electrical discharg Declare Function cnc_rddischrgalm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As ODBDISCHRGALM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByRef b As Integer, ByRef c As ODBDISCHRGALM) As Short ' get date and time from cnc Declare Function cnc_gettimer Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBTIMER ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBTIMER) As Short ' set date and time for cnc Declare Function cnc_settimer Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBTIMER ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBTIMER) As Short ' read timer data from cnc Declare Function cnc_rdtimer Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTIME ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTIME) As Short ' write timer data for cnc Declare Function cnc_wrtimer Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTIME ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBTIME) As Short ' read tool controll data Declare Function cnc_rdtlctldata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBTLCTL ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBTLCTL) As Short ' write tool controll data Declare Function cnc_wrtlctldata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBTLCTL ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBTLCTL) As Short ' read tool data Declare Function cnc_rdtooldata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLDT ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLDT) As Short ' read tool data Declare Function cnc_wrtooldata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLDT ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLDT) As Short ' read multi tool data Declare Function cnc_rdmultitldt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBMLTTL ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBMLTTL) As Short ' write multi tool data Declare Function cnc_wrmultitldt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBMLTTL ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBMLTTL) As Short ' read multi tap data Declare Function cnc_rdmtapdata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBMTAP ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBMTAP) As Short ' write multi tap data Declare Function cnc_wrmtapdata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBMTAP ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBMTAP) As Short ' read multi-piece machining number Declare Function cnc_rdmultipieceno Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short ' read tool information Declare Function cnc_rdtoolinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPTLINF ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPTLINF) As Short ' read safetyzone data Declare Function cnc_rdsafetyzone Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBSAFE ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBSAFE) As Short ' write safetyzone data Declare Function cnc_wrsafetyzone Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBSAFE ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBSAFE) As Short ' read toolzone data Declare Function cnc_rdtoolzone Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLZN ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLZN) As Short ' write toolzone data Declare Function cnc_wrtoolzone Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLZN ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBTLZN) As Short ' read active toolzone data Declare Function cnc_rdacttlzone Lib "FWLIB32.DLL" _ @@ -9621,175 +9891,175 @@ Public Class Focas1 ' read setzone number Declare Function cnc_rdsetzone Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' write setzone number Declare Function cnc_wrsetzone Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read block restart information Declare Function cnc_rdbrstrinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBBRS ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBBRS) As Short ' read menu switch signal Declare Function cnc_rdmenuswitch Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' write menu switch signal Declare Function cnc_wrmenuswitch Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short) As Short ' read tool radius offset for position data Declare Function cnc_rdradofs Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBROFS ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBROFS) As Short ' read tool length offset for position data Declare Function cnc_rdlenofs Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBLOFS ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBLOFS) As Short ' read fixed cycle for position data Declare Function cnc_rdfixcycle Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBFIX ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBFIX) As Short ' read coordinate rotate for position data Declare Function cnc_rdcdrotate Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBROT ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBROT) As Short ' read 3D coordinate convert for position data Declare Function cnc_rd3dcdcnv Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODB3DCD ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODB3DCD) As Short ' read programable mirror image for position data Declare Function cnc_rdmirimage Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBMIR ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBMIR) As Short ' read scaling for position data Declare Function cnc_rdscaling Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSCL ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSCL) As Short ' read 3D tool offset for position data Declare Function cnc_rd3dtofs Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODB3DTO ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODB3DTO) As Short ' read tool position offset for position data Declare Function cnc_rdposofs Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPOFS ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPOFS) As Short ' read hpcc setting data Declare Function cnc_rdhpccset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBHPST ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBHPST) As Short ' write hpcc setting data Declare Function cnc_wrhpccset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBHPST ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBHPST) As Short ' hpcc data auto setting data Declare Function cnc_hpccatset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read hpcc tuning data ( parameter input ) Declare Function cnc_rdhpcctupr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBHPPR ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBHPPR) As Short ' write hpcc tuning data ( parameter input ) Declare Function cnc_wrhpcctupr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBHPPR ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBHPPR) As Short ' read hpcc tuning data ( acc input ) Declare Function cnc_rdhpcctuac Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBHPAC ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBHPAC) As Short ' write hpcc tuning data ( acc input ) Declare Function cnc_wrhpcctuac Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBHPAC ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBHPAC) As Short ' hpcc data auto tuning Declare Function cnc_hpccattune Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short) As Short ' read hpcc fine level Declare Function cnc_hpccactfine Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' select hpcc fine level Declare Function cnc_hpccselfine Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read active fixture offset Declare Function cnc_rdactfixofs Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBZOFS ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBZOFS) As Short ' read fixture offset Declare Function cnc_rdfixofs Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBZOR ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByVal d As Short, ByRef e As IODBZOR) As Short ' write fixture offset Declare Function cnc_wrfixofs Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBZOR ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBZOR) As Short ' read tip of tool for 3D handle Declare Function cnc_rd3dtooltip Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODB3DHDL ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODB3DHDL) As Short ' read pulse for 3D handle Declare Function cnc_rd3dpulse Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODB3DPLS ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODB3DPLS) As Short ' read move overrlap of tool for 3D handle Declare Function cnc_rd3dmovrlap Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODB3DHDL ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODB3DHDL) As Short ' read change offset for 3D handle Declare Function cnc_rd3dofschg Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short ' clear pulse and change offset for 3D handle Declare Function cnc_clr3dplsmov Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' cycle start Declare Function cnc_start Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' reset CNC Declare Function cnc_reset Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' reset CNC Declare Function cnc_reset2 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read axis name Declare Function cnc_rdaxisname Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As ODBAXISNAME ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As ODBAXISNAME) As Short ' read spindle name Declare Function cnc_rdspdlname Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As ODBSPDLNAME ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As ODBSPDLNAME) As Short ' read extended axis name Declare Function cnc_exaxisname Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBEXAXISNAME ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBEXAXISNAME) As Short ' read SRAM variable area for C language executor Declare Function cnc_rdcexesram Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, <[In], Out> ByVal b() As Byte, ByRef c As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, <[In], Out> ByVal b() As Byte, ByRef c As Integer) As Short ' write SRAM variable area for C language executor Declare Function cnc_wrcexesram Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b() As Byte, ByRef c As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b() As Byte, ByRef c As Integer) As Short ' read maximum size and linear address of SRAM variable area for C language executor Declare Function cnc_cexesraminfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As Integer, ByRef c As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As Integer, ByRef c As Integer) As Short ' read maximum size of SRAM variable area for C language executor Declare Function cnc_cexesramsize Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short ' read additional workpiece coordinate systems number Declare Function cnc_rdcoordnum Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' converts from FANUC code to Shift JIS code Declare Function cnc_ftosjis Lib "FWLIB32.DLL" _ @@ -9797,109 +10067,109 @@ Public Class Focas1 ' Set the unsolicited message parameters Declare Function cnc_wrunsolicprm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBUNSOLIC ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBUNSOLIC) As Short ' Get the unsolicited message parameters Declare Function cnc_rdunsolicprm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBUNSOLIC ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBUNSOLIC) As Short ' Start of unsolicited message Declare Function cnc_unsolicstart Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal hWnd As Integer, ByVal c As Integer, ByVal d As Short, ByRef e As Short) As Short ' End of unsolicited message Declare Function cnc_unsolicstop Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' Reads the unsolicited message data Declare Function cnc_rdunsolicmsg Lib "FWLIB32.DLL" _ - ( ByVal a As Short, ByRef b As IDBUNSOLICMSG ) As Short + (ByVal a As Short, ByRef b As IDBUNSOLICMSG) As Short ' read cnc maintenance item Declare Function cnc_rdpm_mcnitem Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short , ByRef c As IODBITEM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBITEM) As Short ' write machine specific maintenance item Declare Function cnc_wrpm_mcnitem Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short , ByRef c As IODBITEM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As IODBITEM) As Short ' read machine specific maintenance item Declare Function cnc_rdpm_cncitem Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short , ByRef c As IODBITEM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBITEM) As Short ' read maintenance item status Declare Function cnc_rdpm_item Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short , ByRef c As IODBPMAINTE ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As IODBPMAINTE) As Short ' write maintenance item status Declare Function cnc_wrpm_item Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPMAINTE ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPMAINTE) As Short ' Display of optional message Declare Function cnc_dispoptmsg Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String) As Short + (ByVal FlibHndl As Integer, ByVal a As String) As Short ' Reading of answer for optional message display Declare Function cnc_optmsgans Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' Get CNC Model Declare Function cnc_getcncmodel Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read number of repeats Declare Function cnc_rdrepeatval Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Integer ) As Short + (ByVal FlibHndl As Integer, ByRef a As Integer) As Short ' read CNC system hard info Declare Function cnc_rdsyshard Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBSYSH ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As ODBSYSH) As Short ' read CNC system soft series and version (3) Declare Function cnc_rdsyssoft3 Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short , ByRef b As Short , ByRef c As Short , ByRef d As ODBSYSS3 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As Short, ByRef d As ODBSYSS3) As Short ' read digit of program number Declare Function cnc_progdigit Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' read CNC system path information Declare Function cnc_sysinfo_ex Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSYSEX ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSYSEX) As Short -'------------------ -' CNC : SERCOS I/F -'------------------ + '------------------ + ' CNC : SERCOS I/F + '------------------ ' Get reservation of service channel for SERCOS I/F Declare Function cnc_srcsrsvchnl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Read ID information of SERCOS I/F Declare Function cnc_srcsrdidinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, _ - ByVal a As Integer, ByVal b As Short, ByVal c As Short, ByRef d As IODBIDINF ) As Short + (ByVal FlibHndl As Integer, + ByVal a As Integer, ByVal b As Short, ByVal c As Short, ByRef d As IODBIDINF) As Short ' Write ID information of SERCOS I/F Declare Function cnc_srcswridinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBIDINF ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBIDINF) As Short ' Start of reading operation data from drive of SERCOS I/F Declare Function cnc_srcsstartrd Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Short) As Short ' Start of writing operation data to drive of SERCOS I/F Declare Function cnc_srcsstartwrt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Short) As Short ' Stop of reading/writing operation data from/to drive of SERCOS I/F Declare Function cnc_srcsstopexec Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Get execution status of reading/writing operation data of SERCOS I/F Declare Function cnc_srcsrdexstat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSRCSST ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSRCSST) As Short ' Read operation data from data buffer for SERCOS I/F Declare Function cnc_srcsrdopdata Lib "FWLIB32.DLL" _ @@ -9911,36 +10181,36 @@ Public Class Focas1 ' Free reservation of service channel for SERCOS I/F Declare Function cnc_srcsfreechnl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Read drive assign of SERCOS I/F Declare Function cnc_srcsrdlayout Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSRCSLYT ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSRCSLYT) As Short ' Read communication phase of drive of SERCOS I/F Declare Function cnc_srcsrddrvcp Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short -'---------------------------- -' CNC : Graphic command data -'---------------------------- + '---------------------------- + ' CNC : Graphic command data + '---------------------------- ' Start drawing position Declare Function cnc_startdrawpos Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Stop drawing position Declare Function cnc_stopdrawpos Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Start dynamic graphic Declare Function cnc_startdyngrph Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Stop dynamic graphic Declare Function cnc_stopdyngrph Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Read graphic command data Declare Function cnc_rdgrphcmd Lib "FWLIB32.DLL" _ @@ -9948,40 +10218,40 @@ Public Class Focas1 ' Update graphic command read pointer Declare Function cnc_wrgrphcmdptr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' Read cancel flag Declare Function cnc_rdgrphcanflg Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' Clear graphic command Declare Function cnc_clrgrphcmd Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short -'--------------------------- -' CNC : Servo learning data -'--------------------------- + '--------------------------- + ' CNC : Servo learning data + '--------------------------- ' Servo learning data read start Declare Function cnc_svdtstartrd Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' Servo learning data write start Declare Function cnc_svdtstartwr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' Servo learning data read end Declare Function cnc_svdtendrd Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Servo learning data write end Declare Function cnc_svdtendwr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Servo learning data read/write stop Declare Function cnc_svdtstopexec Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Servo learning data read from I/F buffer Declare Function cnc_svdtrddata Lib "FWLIB32.DLL" _ @@ -9992,16 +10262,16 @@ Public Class Focas1 (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As Integer, ByVal c() As Byte) As Short -'---------------------------- -' CNC : Servo Guide -'---------------------------- + '---------------------------- + ' CNC : Servo Guide + '---------------------------- ' Servo Guide (Channel data set) Declare Function cnc_sdsetchnl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IDBCHAN ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IDBCHAN) As Short ' Servo Guide (Channel data clear) Declare Function cnc_sdclrchnl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Servo Guide (Sampling start) Declare Function cnc_sdstartsmpl Lib "FWLIB32.DLL" _ @@ -10009,15 +10279,15 @@ Public Class Focas1 ' Servo Guide (Sampling cancel) Declare Function cnc_sdcancelsmpl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Servo Guide (read Sampling data) Declare Function cnc_sdreadsmpl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, ByVal b As Integer, ByRef c As ODBSD ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByVal b As Integer, ByRef c As ODBSD) As Short ' Servo Guide (Sampling end) Declare Function cnc_sdendsmpl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Servo Guide (read 1 shot data) Declare Function cnc_sdread1shot Lib "FWLIB32.DLL" _ @@ -10025,32 +10295,32 @@ Public Class Focas1 ' Servo feedback data (Channel data set) Declare Function cnc_sfbsetchnl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByRef c As IDBSFBCHAN ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByRef c As IDBSFBCHAN) As Short ' Servo feedback data (Channel data clear) Declare Function cnc_sfbclrchnl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Servo feedback data (Sampling start) Declare Function cnc_sfbstartsmpl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer) As Short ' Servo feedback data (Sampling cancel) Declare Function cnc_sfbcancelsmpl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Servo feedback data (read Sampling data) Declare Function cnc_sfbreadsmpl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, ByVal b As Integer, ByRef c As ODBSD ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByVal b As Integer, ByRef c As ODBSD) As Short ' Servo feedback data (Sampling end) Declare Function cnc_sfbendsmpl Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short -'---------------------------- -' CNC : NC display function -'---------------------------- + '---------------------------- + ' CNC : NC display function + '---------------------------- ' Start NC display Declare Function cnc_startnccmd Lib "FWLIB32.DLL" _ @@ -10069,17 +10339,17 @@ Public Class Focas1 (ByVal FlibHndl As Integer, ByRef a As Short) As Short -'------------------------------------ -' CNC : Remote diagnostics function -'------------------------------------ + '------------------------------------ + ' CNC : Remote diagnostics function + '------------------------------------ ' Start remote diagnostics function Declare Function cnc_startrmtdgn Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Stop remote diagnostics function Declare Function cnc_stoprmtdgn Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Read data from remote diagnostics I/F Declare Function cnc_rdrmtdgn Lib "FWLIB32.DLL" _ @@ -10091,16 +10361,16 @@ Public Class Focas1 ' Set CommStatus of remote diagnostics I/F area Declare Function cnc_wrcommstatus Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' Check remote diagnostics I/F Declare Function cnc_chkrmtdgn Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short -'------------------------- -' CNC : FS18-LN function -'------------------------- + '------------------------- + ' CNC : FS18-LN function + '------------------------- ' read allowance Declare Function cnc_allowance Lib "FWLIB32.DLL" _ @@ -10108,28 +10378,28 @@ Public Class Focas1 ' read allowanced state Declare Function cnc_allowcnd Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBCAXIS ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBCAXIS) As Short ' set work zero Declare Function cnc_workzero Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBZOFS ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBZOFS) As Short ' set slide position Declare Function cnc_slide Lib "FWLIB32.DLL" _ (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByRef c As ODBAXIS) As Short -'---------------------------------- -' CNC: Teaching data I/F function -'---------------------------------- + '---------------------------------- + ' CNC: Teaching data I/F function + '---------------------------------- ' Teaching data get start Declare Function cnc_startgetdgdat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Teaching data get stop Declare Function cnc_stopgetdgdat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' Teaching data read Declare Function cnc_rddgdat Lib "FWLIB32.DLL" _ @@ -10137,24 +10407,24 @@ Public Class Focas1 ' Teaching data read pointer write Declare Function cnc_wrdgdatptr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' Teaching data clear Declare Function cnc_clrdgdat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short -'--------------------------------- -' CNC : C-EXE SRAM file function -'--------------------------------- + '--------------------------------- + ' CNC : C-EXE SRAM file function + '--------------------------------- ' open C-EXE SRAM file Declare Function cnc_opencexefile Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Short, ByVal c As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As Short, ByVal c As Short) As Short ' close C-EXE SRAM file Declare Function cnc_closecexefile Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' read C-EXE SRAM file Declare Function cnc_rdcexefile Lib "FWLIB32.DLL" _ @@ -10166,13 +10436,13 @@ Public Class Focas1 ' read C-EXE SRAM disk directory Declare Function cnc_cexedirectory Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, <[In], Out> ByVal a() As Char, ByRef b As Short, ByVal c As Short, ByRef d As CFILEINFO) As Short -'----- -' PMC -'----- + '----- + ' PMC + '----- ' read message from PMC to MMC Declare Function pmc_rdmsg Lib "FWLIB32.DLL" _ @@ -10188,17 +10458,17 @@ Public Class Focas1 ' write message from MMC to PMC(conditional) Declare Function pmc_cwrmsg Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b() As Short) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b() As Short) As Short ' read PMC data(area specified) Declare Function pmc_rdpmcrng Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Integer, ByVal d As Integer, ByVal e As Integer, ByRef f As IODBPMC0) As Short Declare Function pmc_rdpmcrng Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Integer, ByVal d As Integer, ByVal e As Integer, ByRef f As IODBPMC1) As Short Declare Function pmc_rdpmcrng Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Integer, ByVal d As Integer, ByVal e As Integer, ByRef f As IODBPMC2) As Short ' write PMC data(area specified) @@ -10231,55 +10501,55 @@ Public Class Focas1 ' read informations of PMC data Declare Function pmc_rdpmcinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBPMCINF ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As ODBPMCINF) As Short ' read PMC parameter data table contorol data Declare Function pmc_rdcntldata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPMCCNTL ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Short, ByVal c As Short, ByRef d As IODBPMCCNTL) As Short ' write PMC parameter data table contorol data Declare Function pmc_wrcntldata Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPMCCNTL ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPMCCNTL) As Short ' read PMC parameter data table contorol data group number Declare Function pmc_rdcntlgrp Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short) As Short ' write PMC parameter data table contorol data group number Declare Function pmc_wrcntlgrp Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short) As Short ' read PMC alarm message Declare Function pmc_rdalmmsg Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As Short, ByRef d As ODBPMCALM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short, ByRef c As Short, ByRef d As ODBPMCALM) As Short ' get detail error for pmc Declare Function pmc_getdtailerr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPMCERR ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPMCERR) As Short ' read PMC memory data Declare Function pmc_rdpmcmem Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByVal c As Integer, <[In], Out> ByVal d() As Byte) As Short ' write PMC memory data Declare Function pmc_wrpmcmem Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByVal c As Integer, ByVal d() As Byte) As Short ' read PMC-SE memory data Declare Function pmc_rdpmcsemem Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByVal c As Integer, <[In], Out> ByVal d() As Byte) As Short ' write PMC-SE memory data Declare Function pmc_wrpmcsemem Lib "FWLIB32.DLL" _ - (ByVal FlibHndl As Integer, _ + (ByVal FlibHndl As Integer, ByVal a As Short, ByVal b As Integer, ByVal c As Integer, ByVal d() As Byte) As Short ' read pmc title data Declare Function pmc_rdpmctitle Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPMCTITLE ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPMCTITLE) As Short ' read PMC parameter start Declare Function pmc_rdprmstart Lib "FWLIB32.DLL" _ @@ -10306,17 +10576,17 @@ Public Class Focas1 (ByVal FlibHndl As Integer) As Short ' read PMC data -' Declare Function pmc_rdpmcrng_ext Lib "FWLIB32.DLL" _ -' ( ByVal FlibHndl As Integer, _ -' ByVal a As Short, ByRef b As IODBPMCEXT ) As Short + ' Declare Function pmc_rdpmcrng_ext Lib "FWLIB32.DLL" _ + ' ( ByVal FlibHndl As Integer, _ + ' ByVal a As Short, ByRef b As IODBPMCEXT ) As Short ' write PMC I/O link assigned data -' Declare Function pmc_wriolinkdat Lib "FWLIB32.DLL" _ -' ( ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b() As Byte, ByVal c As Integer ) As Short + ' Declare Function pmc_wriolinkdat Lib "FWLIB32.DLL" _ + ' ( ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b() As Byte, ByVal c As Integer ) As Short ' read PMC address information Declare Function pmc_rdpmcaddr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPMCADR ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPMCADR) As Short ' select PMC unit Declare Function pmc_select_pmc_unit Lib "FWLIB32.DLL" _ @@ -10342,53 +10612,53 @@ Public Class Focas1 Declare Function pmc_get_timer_type Lib "FWLIB32.DLL" _ (ByVal FlibHndl As Integer, ByVal a As Integer, ByVal b As Integer, <[In](), Out()> ByVal c() As Short) As Short -'---------------------------- -' PMC : PROFIBUS function -'---------------------------- + '---------------------------- + ' PMC : PROFIBUS function + '---------------------------- ' read PROFIBUS configration data Declare Function pmc_prfrdconfig Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBPRFCNF ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBPRFCNF) As Short ' read bus parameter for master function Declare Function pmc_prfrdbusprm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBBUSPRM ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBBUSPRM) As Short ' write bus parameter for master function Declare Function pmc_prfwrbusprm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBBUSPRM ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBBUSPRM) As Short ' read slave parameter for master function Declare Function pmc_prfrdslvprm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBSLVPRM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBSLVPRM) As Short Declare Function pmc_prfrdslvprm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBSLVPRM2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBSLVPRM2) As Short ' write slave parameter for master function Declare Function pmc_prfwrslvprm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBSLVPRM ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBSLVPRM) As Short Declare Function pmc_prfwrslvprm Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBSLVPRM2 ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBSLVPRM2) As Short ' read allocation address for master function Declare Function pmc_prfrdallcadr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPRFADR ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPRFADR) As Short ' set allocation address for master function Declare Function pmc_prfwrallcadr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPRFADR ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As IODBPRFADR) As Short ' read allocation address for slave function Declare Function pmc_prfrdslvaddr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBSLVADR ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBSLVADR) As Short ' set allocation address for slave function Declare Function pmc_prfwrslvaddr Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As IODBSLVADR ) As Short + (ByVal FlibHndl As Integer, ByRef a As IODBSLVADR) As Short ' read status for slave function Declare Function pmc_prfrdslvstat Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As ODBSLVST ) As Short + (ByVal FlibHndl As Integer, ByRef a As ODBSLVST) As Short ' Reads DI/DO parameter of master function Declare Function pmc_prfrddido Lib "FWLIB32.DLL" _ @@ -10430,9 +10700,9 @@ Public Class Focas1 Declare Function pmc_prfwropmode Lib "FWLIB32.DLL" _ (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Short) As Short -'-----------------------------------------------v -' DS : Data server & Ethernet board function ' -'-----------------------------------------------' + '-----------------------------------------------v + ' DS : Data server & Ethernet board function ' + '-----------------------------------------------' ' read the parameter of the Ethernet board */ Declare Function etb_rdparam Lib "FWLIB32.DLL" _ @@ -10630,30 +10900,30 @@ Public Class Focas1 Declare Function ds_wrfile Lib "FWLIB32.DLL" _ (ByVal FlibHndl As Integer, ByVal a As String, ByVal b As String) As Short -'-------------------------- -' HSSB multiple connection -'-------------------------- + '-------------------------- + ' HSSB multiple connection + '-------------------------- ' read number of node Declare Function cnc_rdnodenum Lib "FWLIB32.DLL" _ - ( ByRef a As Integer ) As Short + (ByRef a As Integer) As Short ' read node informations Declare Function cnc_rdnodeinfo Lib "FWLIB32.DLL" _ - ( ByVal a As Integer, ByRef b As ODBNODE ) As Short + (ByVal a As Integer, ByRef b As ODBNODE) As Short ' set default node number Declare Function cnc_setdefnode Lib "FWLIB32.DLL" _ - ( ByVal a As Integer ) As Short + (ByVal a As Integer) As Short ' allocate library handle 2 Declare Function cnc_allclibhndl2 Lib "FWLIB32.DLL" _ (ByVal node As Integer, ByRef FlibHndl As Integer) As Short -'--------------------- -' Ethernet connection -'--------------------- + '--------------------- + ' Ethernet connection + '--------------------- ' allocate library handle 3 Declare Function cnc_allclibhndl3 Lib "FWLIB32.DLL" _ @@ -10665,18 +10935,18 @@ Public Class Focas1 ' set timeout for socket Declare Function cnc_settimeout Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Integer) As Short ' reset all socket connection Declare Function cnc_resetconnect Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer ) As Short + (ByVal FlibHndl As Integer) As Short ' get option state for FOCAS1/Ethernet Declare Function cnc_getfocas1opt Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Integer ) As Short + (ByVal FlibHndl As Integer, ByVal a As Short, ByRef b As Integer) As Short ' read Ethernet board information Declare Function cnc_rdetherinfo Lib "FWLIB32.DLL" _ - ( ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As Short ) As Short + (ByVal FlibHndl As Integer, ByRef a As Short, ByRef b As Short) As Short End Class 'Focas1 diff --git a/MTC_Adapter/CMSCncLib/CNC/CNC/CNC.CNC.vb b/MTC_Adapter/CMSCncLib/CNC/CNC/CNC.CNC.vb index 81f72d5..939b5ec 100644 --- a/MTC_Adapter/CMSCncLib/CNC/CNC/CNC.CNC.vb +++ b/MTC_Adapter/CMSCncLib/CNC/CNC/CNC.CNC.vb @@ -207,42 +207,12 @@ Namespace CNC Public Overridable Sub GetStaticData() End Sub - ''' - ''' Stabilisce la risoluzione CncWindow - ''' - Public Overridable Function SetCncWindowSize() As Boolean - End Function - - ''' - ''' Esegue l'applicazione CNC - ''' - Public Overridable Sub RunCnc() - End Sub - ''' ''' Chiude l'applicazione CNC ''' Public Overridable Sub CloseCnc() End Sub - ''' - ''' Cerca la finestra CNC e restituisce True se la trova - ''' - Public Overridable Function FindCncWindow() As Boolean - End Function - - ''' - ''' Restituisce True se la finestra Cnc è ridotta a icona - ''' - Public Overridable Function CncIsIconic() As Boolean - End Function - - ''' - ''' Restituisce True se la finestra Cnc è massimizzata a tutto schermo - ''' - Public Overridable Function CncIsZoomed() As Boolean - End Function - ''' ''' Riduce a icona la finestra CNC ''' diff --git a/MTC_Adapter/CMSCncLib/Config/Config.Options.vb b/MTC_Adapter/CMSCncLib/Config/Config.Options.vb index da19e63..36dd6b5 100644 --- a/MTC_Adapter/CMSCncLib/Config/Config.Options.vb +++ b/MTC_Adapter/CMSCncLib/Config/Config.Options.vb @@ -162,14 +162,6 @@ Namespace Config End Get End Property - 'Private _ToolTable_GeometryManagement As Control.ToolTable.GeometryManagement - - ''' Tipo di gestione dati dimensioni utensili - 'Public ReadOnly Property ToolTable_GeometryManagement() As Control.ToolTable.GeometryManagement - ' Get - ' Return Me._ToolTable_GeometryManagement - ' End Get - 'End Property Private _ToolTable_MaxToolsManaged As Integer ''' Massimo numero di utensili gestibili diff --git a/MTC_Adapter/MTC_Adapter.sln b/MTC_Adapter/MTC_Adapter.sln index 85b1cdb..c931420 100644 --- a/MTC_Adapter/MTC_Adapter.sln +++ b/MTC_Adapter/MTC_Adapter.sln @@ -3,13 +3,14 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetAdapterSDK", "..\..\..\GitHub\MTConnect\dot_net_sdk\DotNetAdapterSDK.csproj", "{D8D08DBE-B511-4DE0-B5A9-563EBFC60C4F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetAdapterSDK", "..\..\..\..\GitHub\MTConnect\dot_net_sdk\DotNetAdapterSDK.csproj", "{D8D08DBE-B511-4DE0-B5A9-563EBFC60C4F}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{695A97F7-B396-4DD3-8596-F043ECA3E2BD}" ProjectSection(SolutionItems) = preProject + ..\..\..\..\..\Dropbox\30_Clienti\CMS\CMS-MTC\SetupMTC\AGENT\DATA\CONF_DEMO\Agent_ItemList_ESAKVARA.xml = ..\..\..\..\..\Dropbox\30_Clienti\CMS\CMS-MTC\SetupMTC\AGENT\DATA\CONF_DEMO\Agent_ItemList_ESAKVARA.xml + ..\..\..\..\..\Dropbox\30_Clienti\CMS\CMS-MTC\SetupMTC\AGENT\DATA\CONF_DEMO\Agent_ItemList_FANUC.xml = ..\..\..\..\..\Dropbox\30_Clienti\CMS\CMS-MTC\SetupMTC\AGENT\DATA\CONF_DEMO\Agent_ItemList_FANUC.xml ..\AgentBin\CMS.xml = ..\AgentBin\CMS.xml - ..\AgentBin\simulator\CMS_DEMO.xml = ..\AgentBin\simulator\CMS_DEMO.xml - ..\AgentBin\simulator\SCM_DEMO.xml = ..\AgentBin\simulator\SCM_DEMO.xml + ..\AgentBin\SCM.xml = ..\AgentBin\SCM.xml EndProjectSection EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "CMSCncLib", "CMSCncLib\CMSCncLib.vbproj", "{2D769FFD-1122-4276-A115-29246E6D23C5}" diff --git a/MTC_Adapter/MTC_Adapter/AdapterConf.cs b/MTC_Adapter/MTC_Adapter/AdapterConf.cs index 74a640b..e490ecf 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterConf.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterConf.cs @@ -36,6 +36,7 @@ namespace MTC_Adapter element[] _Path; element[] _UnOp; element[] _Axis; + element[] _MemArea; /// /// init conf adapter @@ -198,6 +199,23 @@ namespace MTC_Adapter return answ; } } + public int nMemArea + { + get + { + int answ = 0; + if (MemArea != null) + { + try + { + answ = Convert.ToInt32(MemArea.Length); + } + catch + { } + } + return answ; + } + } /// /// Serializzazione XML dell'oggetto conf dell'adapter @@ -230,7 +248,7 @@ namespace MTC_Adapter /// public static AdapterConf Deserialize(string file) { - System.Xml.Serialization.XmlSerializer xs = new System.Xml.Serialization.XmlSerializer(typeof(AdapterConf)); + XmlSerializer xs = new XmlSerializer(typeof(AdapterConf)); StreamReader reader = File.OpenText(file); AdapterConf c = (AdapterConf)xs.Deserialize(reader); reader.Close(); @@ -331,6 +349,11 @@ namespace MTC_Adapter get { return _Axis; } set { _Axis = value; } } + public element[] MemArea + { + get { return _MemArea; } + set { _MemArea = value; } + } } @@ -355,41 +378,26 @@ namespace MTC_Adapter /// public string ident; /// - /// alias x poterlo riconoscere/riferire in agent - /// - public string alias; - /// - /// fonte dati - /// - public fonteDati fonte; - /// /// Elenco riferimento dati x recupero (es posizioni memoria separate da #) /// public List> dataRefList; - - + /// /// init empty /// public element() { ident = ""; - alias = ""; - fonte = fonteDati.NoData; dataRefList = new List>(); } /// /// init element con dati /// /// Identificativo univoco - /// Alias/descrizione - /// Tipo fonte dati /// Parametri x recupero dati in forma dictionary - public element(string Idx, string Alias, fonteDati FonteD, List> DataRef) + public element(string Idx, List> DataRef) { ident = Idx; - alias = Alias; - fonte = FonteD; dataRefList = DataRef; } } diff --git a/MTC_Adapter/MTC_Adapter/AdapterESA.cs b/MTC_Adapter/MTC_Adapter/AdapterESA.cs index f226965..ffd72a1 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterESA.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterESA.cs @@ -5,11 +5,142 @@ using SCMCncLib; using System.Windows.Forms; using System.Threading; using System.IO; +using System.Collections.Generic; namespace MTC_Adapter { public class AdapterESA : AdapterGeneric { + /// + /// Configurazione valori da leggere IOT_Byte + /// + public otherData[] mapIOT_Byte; + /// + /// Configurazione valori da leggere IOT_Word + /// + public otherData[] mapIOT_Word; + /// + /// Configurazione valori da leggere IOT_DWord + /// + public otherData[] mapIOT_DWord; + /// + /// Configurazione valori da leggere IOT_String + /// + public otherData[] mapIOT_String; + + /// + /// Carico file conf dati IOT + /// + protected override void loadOtherFile() + { + base.loadOtherFile(); + loadByteListMap(); + loadWordListMap(); + loadDWordListMap(); + loadStringListMap(); + } + /// + /// Carico conf vettore dati STRING + /// + private void loadStringListMap() + { + loadConfFile(ref mapIOT_String, filePath("IOTStringFilePath"), 1); + } + /// + /// Carico conf vettore dati DWORD + /// + private void loadDWordListMap() + { + loadConfFile(ref mapIOT_DWord, filePath("IOTDWordFilePath"), 1); + } + /// + /// Carico conf vettore dati WORD + /// + private void loadWordListMap() + { + loadConfFile(ref mapIOT_Word, filePath("IOTWordFilePath"), 1); + } + /// + /// Carico conf vettore dati BYTE + /// + private void loadByteListMap() + { + loadConfFile(ref mapIOT_Byte, filePath("IOTByteFilePath"), 1); + } + /// + /// Restituisce path completo file da chaive configurazione + /// + /// chaive conf x file richiesto + /// + protected string filePath(string keyFile) + { + return string.Format(@"{0}\{1}", utils.confDir, utils.CRS(keyFile)); + } + /// + /// Legge il file di conf di una MAP di informazioni da gestire con lettura set memoria + /// + /// nome vettore memoria + /// file origine + /// dimensione (in byte) della memoria + protected void loadConfFile(ref otherData[] vettoreConf, string nomeFile, int memSize) + { + //// carico dati x Maintenance + //if (utils.CRB("verbose")) lg.Info("Inizio caricamento vettore mappa " + nomeFile); + int totRighe = 0; + string linea; + totRighe = File.ReadLines(nomeFile).Count(); + // creo un vettore della dimensione corretta... conta anche commenti tanto poi riduco... + vettoreConf = new otherData[File.ReadLines(nomeFile).Count()]; + // carica da file... + System.IO.StreamReader file = new System.IO.StreamReader(nomeFile); + // leggo 1 linea alla volta... + int numRiga = 0; + int bitNum = 0; + int byteNum = 0; + while ((linea = file.ReadLine()) != null) + { + // SE non è un commento... + if (linea.Substring(0, 1) != "#") + { + // se finisce per BIT allora processo bit-a-bit... + if (linea.EndsWith("BOOL")) + { + try + { + string[] memIdx = linea.Split(utils.CRC("testCharSep"))[0].Split('.'); + // calcolo bit e byte number... + int.TryParse(memIdx[0], out byteNum); + if (memIdx.Length > 1) + { + int.TryParse(memIdx[1], out bitNum); + } + else + { + bitNum = 0; + } + } + catch + { + byteNum = 0; + bitNum = 0; + } + vettoreConf[numRiga] = decodeBitData(linea, utils.CRC("testCharSep"), "", byteNum, 1, bitNum); + } + else + { + vettoreConf[numRiga] = decodeOtherData(linea, utils.CRC("testCharSep"), "", 1, memSize); + } + numRiga++; + } + } + // chiudo file + file.Close(); + // ora trimmo vettore al solo numero VERO dei valori caricati... + Array.Resize(ref vettoreConf, numRiga); + + if (utils.CRB("verbose")) lg.Info(string.Format("Fine caricamento vettore di {0} variabili per file {1}", numRiga, nomeFile)); + } + /// /// oggetto onnessione ESA /// @@ -34,7 +165,9 @@ namespace MTC_Adapter if (utils.CRB("verbose")) lg.Info("step 01: impostato INI File {0}", iniPath); - ncDevice = new thdNcEsaGvKvara(EsaIni); + loadOtherFile(); + + ncDevice = new thdNcEsaGvKvara(EsaIni, mapIOT_Byte.Length, mapIOT_Word.Length, mapIOT_DWord.Length, mapIOT_String.Length); if (utils.CRB("verbose")) lg.Info("step 02: avviato thdNcEsaGvKvara da INI File {0}", iniPath); @@ -90,20 +223,572 @@ namespace MTC_Adapter } /// - /// Effettuo lettura memorie strobe/status + /// Carica ed acquisisce dati del buffer Byte (8 bit) di memoria /// - public override void getStrobeAndAckStatus() + protected void getIotMem_Byte() { - base.getStrobeAndAckStatus(); + // HARD CODE: forzo path 1 (indice 0...) + int idxPath = 0; + // accodo dati path in DataMonitor...... + StringBuilder sb = new StringBuilder(); + + if (connectionOk) + { + // leggo TUTTO il blocco di memoria + inizio = DateTime.Now; + ncDevice.ReadBufferByte(); + if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-PLC_IOT-Byte", ncDevice.PLC_MemoryAreaIOT_Byte.Length), DateTime.Now.Subtract(inizio).Ticks); + } + else + { + lg.Error("Errore connessione mancante in getIotMem_Byte"); + } + // Processing area BYTE + int numero = 0; + string status = ""; + string pathExeMode = ""; + string pathRunMode = ""; + bool isFeedHold = false; + bool isActive = false; + bool isReady = false; + int bitNum = 0; + int byteNum = 0; + byte currByte; + for (int i = 0; i < mapIOT_Byte.Length; i++) + { + // vado a gestire le variabili BYTE + if (mapIOT_Byte[i].dataType == "BYTE") + { + int.TryParse(mapIOT_Byte[i].memAddr, out byteNum); + if (mapIOT_Byte[i].varName == "IOT_OVRF") + { + FeedRateOver = ncDevice.PLC_MemoryAreaIOT_Byte[byteNum]; + } + else if (mapIOT_Byte[i].varName == "IOT_OVRS") + { + SpeedRateOver = ncDevice.PLC_MemoryAreaIOT_Byte[byteNum]; + } + else if (mapIOT_Byte[i].varName == "IOT_MODECN") + { + // Modo CN:0=Nessuno,1=Manuale,2=Automatico, 3=Pom,4=Mdi,5=SemiAutomatico,6=Rap,7=Test + int modoCn = ncDevice.PLC_MemoryAreaIOT_Byte[byteNum]; + switch (modoCn) + { + case 1: + pathRunMode = "MANUAL"; + break; + case 2: + pathRunMode = "AUTOMATIC"; + break; + case 3: + pathRunMode = "POM"; + break; + case 4: + pathRunMode = "MANUAL_DATA_INPUT"; + break; + case 5: + pathRunMode = "SEMI_AUTOMATIC"; //"SEMIAUTO"; + break; + case 6: + pathRunMode = "RAP"; //"MANUAL"; + break; + case 7: + pathRunMode = "TES"; //"MANUAL"; + break; + case 0: + default: + pathRunMode = "NA"; + break; + } + // salvo run mode + vettPath[idxPath].mPathRunMode.Value = pathRunMode; + } + else if (mapIOT_Byte[i].varName.StartsWith("IOT_LUB_")) + { + try + { + numero = Convert.ToInt32(mapIOT_Byte[i].varName.Replace("IOT_LUB_", "").Replace("_STA", "").Replace("_CNT", "")); + // salvo in vettore SE possibile... + if (numero <= vettLubro.Length) + { + if (mapIOT_Byte[i].varName.EndsWith("_STA")) + { + if (ncDevice.PLC_MemoryAreaIOT_Byte[byteNum] != 0) + { + status = "EMPTY"; + } + else + { + status = "OK"; + } + vettLubro[numero - 1].mLubroStatus.Value = status; + } + else if (mapIOT_Byte[i].varName.EndsWith("_CNT")) + { + vettLubro[numero - 1].mLubroNum.Value = ncDevice.PLC_MemoryAreaIOT_Byte[byteNum]; + } + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_Byte[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_Byte[i].varName); + } + } + else if (mapIOT_Byte[i].varName.StartsWith("IOT_I_MD_")) + { + try + { + numero = Convert.ToInt32(mapIOT_Byte[i].varName.Replace("IOT_I_MD_", "")); + // salvo in vettore SE possibile... + if (numero <= vettUnOp.Length) + { + vettUnOp[numero - 1].mUnOpLoad.Value = ncDevice.PLC_MemoryAreaIOT_Byte[byteNum]; + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_Byte[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_Byte[i].varName); + } + } + } + // gestisco le variabili BIT/BOOL + else if (mapIOT_Byte[i].dataType == "BOOL") + { + string[] memIdx = mapIOT_Byte[i].memAddr.Split('.'); + // calcolo bit e byte number... + int.TryParse(memIdx[0], out byteNum); + if (memIdx.Length > 1) + { + int.TryParse(memIdx[1], out bitNum); + } + // leggo byte... + currByte = ncDevice.PLC_MemoryAreaIOT_Byte[byteNum]; + if (mapIOT_Byte[i].varName == "IOT_MACHON") + { + if (((StFlag8)currByte).HasFlag((StFlag8)Math.Pow(2, bitNum))) + { + mPower.Value = "ON"; + } + else + { + mPower.Value = "OFF"; + } + } + else if (mapIOT_Byte[i].varName == "IOT_READY") + { + isReady = ((StFlag8)currByte).HasFlag((StFlag8)Math.Pow(2, bitNum)); + } + else if (mapIOT_Byte[i].varName == "IOT_EXEC") + { + isActive = ((StFlag8)currByte).HasFlag((StFlag8)Math.Pow(2, bitNum)); + } + else if (mapIOT_Byte[i].varName == "IOT_HOLD") + { + isFeedHold = ((StFlag8)currByte).HasFlag((StFlag8)Math.Pow(2, bitNum)); + } + else if (mapIOT_Byte[i].varName == "IOT_EMG") + { + if (((StFlag8)currByte).HasFlag((StFlag8)Math.Pow(2, bitNum))) + { + mEStop.Value = "TRIGGERED"; + } + else + { + mEStop.Value = "ARMED"; + } + } + else if (mapIOT_Byte[i].varName == "IOT_ALRM") + { + if (((StFlag8)currByte).HasFlag((StFlag8)Math.Pow(2, bitNum))) + { + // carico IN BLOCCO memoria allarmi... + // FARE!!! + } + } + } + } + // imposto exe mode alla fine secondo gerarchia stati... + if (isFeedHold) + { + pathExeMode = "FEED_HOLD"; //"FEEDHOLD"; + } + else if (isActive) + { + pathExeMode = "ACTIVE"; + } + else if (isReady) + { + pathExeMode = "READY"; + } + vettPath[idxPath].mPathExeMode.Value = pathExeMode; + + // sistemo le stringhe x display + sb.AppendLine(string.Format("RunMode: {0}", pathRunMode)); + sb.AppendLine(string.Format("ExeMode: {0}", pathExeMode)); + sb.AppendLine(string.Format("FeedRateOver: {0} %", FeedRateOver)); + sb.AppendLine(string.Format("SpeedRateOver: {0} %", SpeedRateOver)); + + // update form! + parentForm.dataMonitor += sb.ToString(); + } + /// + /// Carica ed acquisisce dati del buffer WORD (16 bit) di memoria + /// + protected void getIotMem_Word() + { + if (connectionOk) + { + // leggo TUTTO il blocco di memoria + inizio = DateTime.Now; + ncDevice.ReadBufferWord(); + if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-PLC_IOT-Word", ncDevice.PLC_MemoryAreaIOT_Word.Length), DateTime.Now.Subtract(inizio).Ticks); + } + else + { + lg.Error("Errore connessione mancante in getIotMem_Word"); + } + + int numero = 0; + int byteNum = 0; + // Processing area WORD + for (int i = 0; i < mapIOT_Word.Length; i++) + { + int.TryParse(mapIOT_Word[i].memAddr, out byteNum); + if (mapIOT_Word[i].varName.StartsWith("IOT_S_MD_")) + { + try + { + numero = Convert.ToInt32(mapIOT_Word[i].varName.Replace("IOT_S_MD_", "")); + // salvo in vettore SE possibile... + if (numero <= vettUnOp.Length) + { + vettUnOp[numero - 1].mUnOpSpeed.Value = ncDevice.PLC_MemoryAreaIOT_Word[byteNum]; + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_Word[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_Word[i].varName); + } + } + else if (mapIOT_Word[i].varName.StartsWith("IOT_T_MD_")) + { + try + { + numero = Convert.ToInt32(mapIOT_Word[i].varName.Replace("IOT_T_MD_", "")); + // salvo in vettore SE possibile... + if (numero <= vettUnOp.Length) + { + vettUnOp[numero - 1].mUnOpToolId.Value = ncDevice.PLC_MemoryAreaIOT_Word[byteNum]; + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_Word[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_Word[i].varName); + } + } + else if (mapIOT_Word[i].varName.StartsWith("IOT_C_TC_")) + { + // recupero NUMERO + try + { + numero = Convert.ToInt32(mapIOT_Word[i].varName.Replace("IOT_C_TC_", "")); + // salvo in vettore SE possibile... + if (numero <= vettUnOp.Length) + { + vettUnOp[numero - 1].mUnOpNumCU.Value = ncDevice.PLC_MemoryAreaIOT_Word[byteNum]; + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_Word[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_Word[i].varName); + } + } + else if (mapIOT_Word[i].varName.StartsWith("IOT_C_H_MD_")) + { + try + { + numero = Convert.ToInt32(mapIOT_Word[i].varName.Replace("IOT_C_H_MD_", "")); + // salvo in vettore SE possibile... + if (numero <= vettUnOp.Length) + { + vettUnOp[numero - 1].mUnOpAccTime.Value = ncDevice.PLC_MemoryAreaIOT_Word[byteNum]; + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_Word[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_Word[i].varName); + } + } + else if (mapIOT_Word[i].varName.StartsWith("IOT_C_H_VAC_")) + { + // recupero NUMERO + try + { + numero = Convert.ToInt32(mapIOT_Word[i].varName.Replace("IOT_C_H_VAC_", "")); + // salvo in vettore SE possibile... + if (numero <= vettVacAct.Length) + { + vettVacAct[numero - 1].mVacActCount.Value = ncDevice.PLC_MemoryAreaIOT_Word[byteNum]; + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_Word[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_Word[i].varName); + } + } + else if (mapIOT_Word[i].varName.StartsWith("IOT_PGMR_A_")) + { + try + { + numero = Convert.ToInt32(mapIOT_Word[i].varName.Replace("IOT_PGMR_A_", "")); + // salvo in vettore SE possibile... + if (numero <= vettMemArea.Length) + { + vettMemArea[numero - 1].mMemAreaProgNumRep.Value = ncDevice.PLC_MemoryAreaIOT_Word[byteNum]; + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_Word[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_Word[i].varName); + } + } + else if (mapIOT_Word[i].varName.StartsWith("IOT_C_EXEC_A_")) + { + try + { + numero = Convert.ToInt32(mapIOT_Word[i].varName.Replace("IOT_C_EXEC_A_", "")); + // salvo in vettore SE possibile... + if (numero <= vettMemArea.Length) + { + vettMemArea[numero - 1].mMemAreaProgNumExe.Value = ncDevice.PLC_MemoryAreaIOT_Word[byteNum]; + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_Word[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_Word[i].varName); + } + } + } + } + /// + /// Carica ed acquisisce dati del buffer DWORD (32 bit) di memoria + /// + protected void getIotMem_DWord() + { + if (connectionOk) + { + // leggo TUTTO il blocco di memoria + inizio = DateTime.Now; + ncDevice.ReadBufferDWord(); + if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-PLC_IOT-DWord", ncDevice.PLC_MemoryAreaIOT_DWord.Length), DateTime.Now.Subtract(inizio).Ticks); + } + else + { + lg.Error("Errore connessione mancante in getIotMem_DWord"); + } + + int numero = 0; + int byteNum = 0; + double valDouble = 0; + // Processing area WORD + for (int i = 0; i < mapIOT_DWord.Length; i++) + { + int.TryParse(mapIOT_DWord[i].memAddr, out byteNum); + if (mapIOT_DWord[i].varName.StartsWith("IOT_C_KU_AX_")) + { + // recupero NUMERO + try + { + numero = Convert.ToInt32(mapIOT_DWord[i].varName.Replace("IOT_C_KU_AX_", "")); + // salvo in vettore SE possibile... + if (numero <= vettAxis.Length) + { + vettAxis[numero - 1].mAxDistDone.Value = ncDevice.PLC_MemoryAreaIOT_DWord[byteNum]; + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_DWord[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_DWord[i].varName); + } + } + else if (mapIOT_DWord[i].varName.StartsWith("IOT_C_KINV_AX_")) + { + // recupero NUMERO + try + { + numero = Convert.ToInt32(mapIOT_DWord[i].varName.Replace("IOT_C_KINV_AX_", "")); + // salvo in vettore SE possibile... + if (numero <= vettAxis.Length) + { + vettAxis[numero - 1].mAxInvDDone.Value = ncDevice.PLC_MemoryAreaIOT_DWord[byteNum]; + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_DWord[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_DWord[i].varName); + } + } + else if (mapIOT_DWord[i].varName.StartsWith("IOT_POS_AX_")) + { + // recupero NUMERO + try + { + numero = Convert.ToInt32(mapIOT_DWord[i].varName.Replace("IOT_POS_AX_", "")); + // recupero valore pos assi (in micron) + valDouble = (double)BitConverter.ToInt32(BitConverter.GetBytes(ncDevice.PLC_MemoryAreaIOT_DWord[byteNum]), 0); + // salvo in vettore SE possibile... + if (numero <= vettAxis.Length) + { + // riporto il dato in mm (divido x 1000) + vettAxis[numero - 1].mAxPosAct.Value = valDouble / utils.CRI("fattdecimale"); + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_DWord[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_DWord[i].varName); + } + } + else if (mapIOT_DWord[i].varName.StartsWith("IOT_C_KREV_MD_")) + { + // recupero NUMERO + try + { + numero = Convert.ToInt32(mapIOT_DWord[i].varName.Replace("IOT_C_KREV_MD_", "")); + // salvo in vettore SE possibile... + if (numero <= vettUnOp.Length) + { + vettUnOp[numero - 1].mUnOpKRev.Value = ncDevice.PLC_MemoryAreaIOT_DWord[byteNum]; + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_DWord[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_DWord[i].varName); + } + } + else if (mapIOT_DWord[i].varName.StartsWith("IOT_PLC_MSG_")) + { + // recupero NUMERO + try + { + numero = Convert.ToInt32(mapIOT_DWord[i].varName.Replace("IOT_PLC_MSG_", "")); + // copio allarmi in vettore generale AlarmFlags (dove lo gestisce) 4 byte alla volta + Buffer.BlockCopy(BitConverter.GetBytes(ncDevice.PLC_MemoryAreaIOT_DWord[byteNum]), 0, AlarmFlags, numero * 4, 4); + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_DWord[i].varName); + } + } + } } + /// + /// Carica ed acquisisce dati del buffer STRING di memoria + /// + protected void getIotMem_String() + { + if (connectionOk) + { + // leggo TUTTO il blocco di memoria + inizio = DateTime.Now; + ncDevice.ReadBufferString(); + if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-PLC_IOT-DWord", ncDevice.PLC_MemoryAreaIOT_DWord.Length), DateTime.Now.Subtract(inizio).Ticks); + } + else + { + lg.Error("Errore connessione mancante in getIotMem_DWord"); + } + + int numero = 0; + int byteNum = 0; + double valDouble = 0; + // Processing area STRING + for (int i = 0; i < mapIOT_String.Length; i++) + { + int.TryParse(mapIOT_String[i].memAddr, out byteNum); +#if false + if (mapIOT_String[i].varName.StartsWith("IOT_C_KU_AX_")) + { + // recupero NUMERO + try + { + numero = Convert.ToInt32(mapIOT_String[i].varName.Replace("IOT_C_KU_AX_", "")); + // salvo in vettore SE possibile... + if (numero <= vettAxis.Length) + { + vettAxis[numero - 1].mAxDistDone.Value = ncDevice.PLC_MemoryAreaIOT_String[byteNum]; + } + else + { + lg.Error("Errore in inserimento vettore " + mapIOT_String[i].varName); + } + } + catch (Exception exc) + { + lg.Error(exc, "Errore in decodifica " + mapIOT_String[i].varName); + } + } +#endif + } + } public override void getGlobalData() { base.getGlobalData(); // accodo dati path in DataMonitor...... StringBuilder sb = new StringBuilder(); - if (connectionOk) { // leggo TUTTO il blocco di memoria @@ -113,7 +798,7 @@ namespace MTC_Adapter } else { - lg.Error("Errore connessione mancante in getStrobeAndAckStatus"); + lg.Error("Errore connessione mancante in getGlobalData"); } // dati override feed/speed... @@ -168,7 +853,7 @@ namespace MTC_Adapter needSave = procNumCU(needSave); // per ESA calcolo a mano se ci sia stato impiego assi... salvo le istantanee mov precedenti... - double precVal=0; + double precVal = 0; DateTime adesso = DateTime.Now; TimeSpan accumTime = adesso.Subtract(lastChekAccumTimeAxis); @@ -206,9 +891,8 @@ namespace MTC_Adapter // copio allarmi in vettore generale AlarFlags (dove lo gestisce)... Buffer.BlockCopy(ncDevice.PLC_MemoryAreaAllarmi, 0, AlarmFlags, 0, ncDevice.PLC_MemoryAreaAllarmi.Length); - //Buffer.BlockCopy(ncDevice.PLC_MemAreaAlarm_tmp, 0, AlarmFlags, 0, ncDevice.PLC_MemAreaAlarm_tmp.Length); - parentForm.dataMonitor = sb.ToString(); + } /// /// Path percorso file prod @@ -355,6 +1039,27 @@ namespace MTC_Adapter } } } + /// + /// Processing di TUTTA l'area di memoria configurata e delle variabili derivate... + /// + public override void processAllMemory() + { + // inizializzo data monitor su FORM + parentForm.dataMonitor = ""; + + // recupero le varie memorie + getIotMem_Byte(); + getIotMem_Word(); + getIotMem_DWord(); + getIotMem_String(); + + // processo componenti specifici x info... + getUnOp(); + getPath(); + getAxis(); + lg.Info("DONE processAllMemory"); + } + /// /// Processo stti macchina... /// @@ -363,9 +1068,12 @@ namespace MTC_Adapter // HARD CODE: forzo path 1 (indice 0...) int idxPath = 0; + // accodo dati path in DataMonitor...... + StringBuilder sb = new StringBuilder(); // verifica macchina accesa... Byte V73 = ncDevice.PLC_MemoryAreaV[5]; + if (((StFlag8)V73).HasFlag(StFlag8.B2)) { mPower.Value = "ON"; @@ -384,6 +1092,7 @@ namespace MTC_Adapter * */ Byte V70 = ncDevice.PLC_MemoryAreaV[2]; Byte V71 = ncDevice.PLC_MemoryAreaV[3]; + if (((StFlag8)V70).HasFlag(StFlag8.B3)) { vettPath[idxPath].mPathExeMode.Value = "FEED_HOLD"; //"FEEDHOLD"; @@ -446,27 +1155,23 @@ namespace MTC_Adapter break; } } - + /// + /// Recupera la speed override x i mandrini (UnOp) + /// public override void getUnOp() { - base.getUnOp(); - // cicl su UnOp for (int i = 0; i < currAdpConf.nUnOp; i++) { - vettUnOp[i].mUnOpToolId.Value = (int)ncDevice.PLC_MemoryAreaEOK[31]; + vettUnOp[i].mUnOpSpeedOverr.Value = SpeedRateOver; } } - public override void getPath() - { - base.getPath(); - } - + /// + /// Carica info accessorie assi (direzione, feed, ...) + /// public override void getAxis() { - base.getAxis(); - // mostro assi in DataMonitor...... StringBuilder sb = new StringBuilder(); @@ -480,42 +1185,10 @@ namespace MTC_Adapter // leggo in modo "cablato" i dati dei vari assi... for (int i = 0; i < currAdpConf.nAxis; i++) { - - // in base a indice scelgo valore posizione e load - switch (i) - { - case 0: - newPos = (double)BitConverter.ToInt32(BitConverter.GetBytes(ncDevice.PLC_MemoryRead[240]), 0); - break; - case 1: - newPos = (double)BitConverter.ToInt32(BitConverter.GetBytes(ncDevice.PLC_MemoryRead[241]), 0); - break; - case 2: - newPos = (double)BitConverter.ToInt32(BitConverter.GetBytes(ncDevice.PLC_MemoryRead[242]), 0); - break; - case 3: - newPos = (double)BitConverter.ToInt32(BitConverter.GetBytes(ncDevice.PLC_MemoryRead[243]), 0); - break; - case 4: - newPos = (double)BitConverter.ToInt32(BitConverter.GetBytes(ncDevice.PLC_MemoryRead[244]), 0); - break; - case 5: - newPos = (double)BitConverter.ToInt32(BitConverter.GetBytes(ncDevice.PLC_MemoryRead[245]), 0); - break; - default: - // valPos = posAssi.p1; - // valLoad = loadAssi.svload1; - break; - } - - // popolo valori... - //vettAxis[i].mAxLoad.Value = (double)(valLoad.data) / Math.Pow(10, valLoad.dec); - vettAxis[i].mAxPosAct.Value = newPos; - //vettAxis[i].mAxPosTgt.Value = newPos + (double)(valPos.dist.data) / Math.Pow(10, valPos.dist.dec); - vettAxis[i].mAxFeedAct.Value = FeedRate; // calcolo distanza e salvo valore... + newPos = Convert.ToDouble(vettAxis[i].mAxPosAct.Value); distPerc = newPos - prevPosAxis[i]; // sistemo direzione +/- (POS/NEG se lineari, CCW/CW se rotativi) @@ -552,49 +1225,15 @@ namespace MTC_Adapter if (utils.CRB("verbose")) { - sb.AppendLine(string.Format("Asse {0}: PosAct:{1:N3}, ToGo:{2:N3}{3} | {4}", i, (double)(newPos) / utils.CRI("fattdecimale"), i, 0, direzione)); + sb.AppendLine(string.Format("Asse {0}: PosAct:{1:N3}, | {2}", i, (double)(newPos), direzione)); } // salvo valori vettore prec... prevPosAxis[i] = newPos; prevDirAxis[i] = newDir; - - //vettAxis[i].mAxMainProc.Value = AxData.AxisMainProc; - //vettAxis[i].mAxIsMaster.Value = AxData.AxisIsMaster; - //vettAxis[i].mAxMastId.Value = AxData.AxisMastId; - //vettAxis[i].mAxFeedOver.Value = AxData.AxisFeedOver; - //vettAxis[i].mAxAccelAct.Value = AxData.AxisAccel; - //vettAxis[i].mAxBattery.Value = AxData.AxisBattery; } parentForm.dataMonitor += sb.ToString(); } - - public override void processAlarm() - { - base.processAlarm(); - - // ora controllo "allarmi speciali" se si sono... - if (AlarmFlags != null) - { - // variabili helper - StFlag32 AlarmBlock = 0; - int eStopCode = utils.CRI("eStopCode") - 1; // è base zero memoria, ma allarmi base 1... - - int memStart = (int)Math.Floor((double)eStopCode / 8); - // leggo 32bit alla volta... - AlarmBlock = (StFlag32)BitConverter.ToUInt32(AlarmFlags, memStart); - int eStopIndex = eStopCode - memStart * 8; - // converto! e aggiungo allarmi sollevati al corretto controller allarmi... - if (AlarmBlock.HasFlag((StFlag32)Math.Pow(2, eStopIndex))) - { - mEStop.Value = "TRIGGERED"; - } - else - { - mEStop.Value = "ARMED"; - } - } - } } } diff --git a/MTC_Adapter/MTC_Adapter/AdapterFanuc.cs b/MTC_Adapter/MTC_Adapter/AdapterFanuc.cs index aef1167..36f5d16 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterFanuc.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterFanuc.cs @@ -223,88 +223,104 @@ namespace MTC_Adapter string UserAction = ""; string TestingData = ""; string UnkStrobe = ""; - // controllo TUTTI i flag: se ce ne sono di alzati DEVO processare... - if (STRB_DW1 != StFlag32.NONE) + try { - // blocco memoria x lettura TUTTI i dati di buffer M/S/T: 46 byte: 2byte (16bit) x (11+6+6) aree - byte[] MemBlock = new byte[46]; - - // leggo tutto!!! - memIndex = 10660; - inizio = DateTime.Now; - FanucMemRW(R, FANUC.MemType.R, memIndex, ref MemBlock); - if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-STRB_DW1", MemBlock.Length), DateTime.Now.Subtract(inizio).Ticks); - - // check COD_M - bitNum = 0; - gestStrobeCodMST(bitNum, ref retACK_DW1, 0, MemBlock, "M"); - - // check COD_S - bitNum = 1; - gestStrobeCodMST(bitNum, ref retACK_DW1, 11, MemBlock, "S"); - - // check COD_T - bitNum = 2; - gestStrobeCodMST(bitNum, ref retACK_DW1, 17, MemBlock, "T"); - - // check FILE DATI MODIFICATO: ricaricare... - bitNum = 3; - if (STRB_DW1.HasFlag((StFlag32)Math.Pow(2, bitNum))) + // controllo TUTTI i flag: se ce ne sono di alzati DEVO processare... + if (STRB_DW1 != StFlag32.NONE) { - // reload dati da file... - reloadDataFromFile(); + // blocco memoria x lettura TUTTI i dati di buffer M/S/T: 46 byte: 2byte (16bit) x (11+6+6) aree + byte[] MemBlock = new byte[46]; - // memorizzo allarme nel vettore ack.... - retACK_DW1 = utils.setBitOnStFlag(retACK_DW1, true, bitNum); + // leggo tutto!!! + memIndex = 10660; + inizio = DateTime.Now; + FanucMemRW(R, FANUC.MemType.R, memIndex, ref MemBlock); + if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-STRB_DW1", MemBlock.Length), DateTime.Now.Subtract(inizio).Ticks); + + // check COD_M + bitNum = 0; + gestStrobeCodMST(bitNum, ref retACK_DW1, 0, MemBlock, "M"); + + // check COD_S + bitNum = 1; + gestStrobeCodMST(bitNum, ref retACK_DW1, 11, MemBlock, "S"); + + // check COD_T + bitNum = 2; + gestStrobeCodMST(bitNum, ref retACK_DW1, 17, MemBlock, "T"); + + + // check FILE DATI MODIFICATO: ricaricare... + bitNum = 3; + if (STRB_DW1.HasFlag((StFlag32)Math.Pow(2, bitNum))) + { + lg.Info("Notifica file modificato"); + try + { + // reload dati da file... + reloadDataFromFile(); + + // memorizzo allarme nel vettore ack.... + retACK_DW1 = utils.setBitOnStFlag(retACK_DW1, true, bitNum); + } + catch + { + lg.Info("Errore lettura dati da file"); + } + } + + // AREA strobe USER ACTION + // chiamato Start... + bitNum = 4; + gestStrobeUserAction(bitNum, ref retACK_DW1, ref UserAction, " (START) "); + // chiamato Stop... + bitNum = 5; + gestStrobeUserAction(bitNum, ref retACK_DW1, ref UserAction, " (STOP) "); + // chiamato Reset... + bitNum = 6; + gestStrobeUserAction(bitNum, ref retACK_DW1, ref UserAction, " (RESET) "); + + // processo tutti gli strobe x i BIT 7-29 NON gestiti in modo da dare comunque ACK e event... + for (int i = 7; i < 30; i++) + { + gestStrobeUserAction(i, ref retACK_DW1, ref UnkStrobe, string.Format(" [STROBE_{0:00}] ", i)); + } + + // AREA strobe x TEST + // INIZIO TEST... + bitNum = 30; + if (STRB_DW1.HasFlag((StFlag32)Math.Pow(2, bitNum))) + { + // formatto stringa risultato + TestingData = string.Format("START TEST{0}", getTestData(utils.CRS("testCharSep"))); + + // memorizzo allarme nel vettore ack.... + retACK_DW1 = utils.setBitOnStFlag(retACK_DW1, true, bitNum); + } + // FINE TEST... + bitNum = 31; + if (STRB_DW1.HasFlag((StFlag32)Math.Pow(2, bitNum))) + { + // formatto stringa risultato + TestingData = string.Format("STOP TEST{0}", getTestData(utils.CRS("testCharSep"))); + + // memorizzo allarme nel vettore ack.... + retACK_DW1 = utils.setBitOnStFlag(retACK_DW1, true, bitNum); + } } - - // AREA strobe USER ACTION - // chiamato Start... - bitNum = 4; - gestStrobeUserAction(bitNum, ref retACK_DW1, ref UserAction, " (START) "); - // chiamato Stop... - bitNum = 5; - gestStrobeUserAction(bitNum, ref retACK_DW1, ref UserAction, " (STOP) "); - // chiamato Reset... - bitNum = 6; - gestStrobeUserAction(bitNum, ref retACK_DW1, ref UserAction, " (RESET) "); - - // processo tutti gli strobe x i BIT 7-29 NON gestiti in modo da dare comunque ACK e event... - for (int i = 7; i < 30; i++) + else { - gestStrobeUserAction(i, ref retACK_DW1, ref UnkStrobe, string.Format(" [STROBE_{0:00}] ", i)); - } - - // AREA strobe x TEST - // INIZIO TEST... - bitNum = 30; - if (STRB_DW1.HasFlag((StFlag32)Math.Pow(2, bitNum))) - { - // formatto stringa risultato - TestingData = string.Format("START TEST{0}", getTestData(utils.CRS("testCharSep"))); - - // memorizzo allarme nel vettore ack.... - retACK_DW1 = utils.setBitOnStFlag(retACK_DW1, true, bitNum); - } - // FINE TEST... - bitNum = 31; - if (STRB_DW1.HasFlag((StFlag32)Math.Pow(2, bitNum))) - { - // formatto stringa risultato - TestingData = string.Format("STOP TEST{0}", getTestData(utils.CRS("testCharSep"))); - - // memorizzo allarme nel vettore ack.... - retACK_DW1 = utils.setBitOnStFlag(retACK_DW1, true, bitNum); + // se mi sono rimasti degli strobe di lettura allarmi alzati li abbasso + if (ACK_DW1 != StFlag32.NONE) + { + // inizializzo 4 byte a zero!!! + retACK_DW1 = new byte[4]; + } } } - else + catch { - // se mi sono rimasti degli strobe di lettura allarmi alzati li abbasso - if (ACK_DW1 != StFlag32.NONE) - { - // inizializzo 4 byte a zero!!! - retACK_DW1 = new byte[4]; - } + lg.Info("Errore in strobe"); } // 2017.01.16 INVIO vettore azioni (1 o +)... SE CE NE SONO! @@ -429,22 +445,32 @@ namespace MTC_Adapter totRighe = File.ReadLines(fileName).Count(); // creo un vettore della dimensione corretta... conta anche commenti tanto poi riduco... generalStatus = new Dictionary(); - // carica da file... - System.IO.StreamReader file = new System.IO.StreamReader(fileName); - // leggo 1 linea alla volta... - string[] valori; - while ((linea = file.ReadLine()) != null) + try { - // SE non è un commento... - if (linea.Substring(0, 1) != "#") + // carica da file... + System.IO.StreamReader file = new System.IO.StreamReader(fileName); + if (file != null) { - valori = linea.Split(utils.CRC("testCharSep")); - generalStatus.Add(valori[0], valori[1]); + // leggo 1 linea alla volta... + string[] valori; + while ((linea = file.ReadLine()) != null) + { + // SE non è un commento... + if (linea.Substring(0, 1) != "#") + { + valori = linea.Split(utils.CRC("testCharSep")); + generalStatus.Add(valori[0], valori[1]); + } + } + // chiudo file + file.Close(); + if (utils.CRB("verbose")) lg.Info("Fine lettura dati da file"); } } - // chiudo file - file.Close(); - if (utils.CRB("verbose")) lg.Info("Fine lettura dati da file"); + catch + { + lg.Info("Errore in lettura dati da file"); + } // ora salvo valori letti... @@ -565,15 +591,17 @@ namespace MTC_Adapter inizio = DateTime.Now; FanucMemRW(R, FANUC.MemType.R, memIndex, ref MemBlock); if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-STRB_DW0", MemBlock.Length), DateTime.Now.Subtract(inizio).Ticks); - - try + if (AlarmFlags != null) { - // aggiorno vettore allarmi x intero! - Buffer.BlockCopy(MemBlock, 0, AlarmFlags, 0, MemBlock.Length); - } - catch (Exception exc) - { - lg.Error(string.Format("Errore in BLOCKCOPY{0}{1}", Environment.NewLine, exc)); + try + { + // aggiorno vettore allarmi x intero! + Buffer.BlockCopy(MemBlock, 0, AlarmFlags, 0, MemBlock.Length); + } + catch (Exception exc) + { + lg.Error(string.Format("Errore in BLOCKCOPY{0}{1}", Environment.NewLine, exc)); + } } } else @@ -1552,7 +1580,6 @@ namespace MTC_Adapter public override void getAxis() { - // mostro assi in DataMonitor...... StringBuilder sb = new StringBuilder(); @@ -1576,92 +1603,204 @@ namespace MTC_Adapter for (int i = 0; i < currAdpConf.nAxis; i++) { - - // in base a indice scelgo valore posizione e load - switch (i) + // per sicurezza try-catch + try { - case 0: - valPos = posAssi.p1; - valLoad = loadAssi.svload1; - break; - case 1: - valPos = posAssi.p2; - valLoad = loadAssi.svload2; - break; - case 2: - valPos = posAssi.p3; - valLoad = loadAssi.svload3; - break; - case 3: - valPos = posAssi.p4; - valLoad = loadAssi.svload4; - break; - case 4: - valPos = posAssi.p5; - valLoad = loadAssi.svload5; - break; - case 5: - valPos = posAssi.p6; - valLoad = loadAssi.svload6; - break; - default: - valPos = posAssi.p1; - valLoad = loadAssi.svload1; - break; + // in base a indice scelgo valore posizione e load + switch (i) + { + case 0: + valPos = posAssi.p1; + valLoad = loadAssi.svload1; + break; + case 1: + valPos = posAssi.p2; + valLoad = loadAssi.svload2; + break; + case 2: + valPos = posAssi.p3; + valLoad = loadAssi.svload3; + break; + case 3: + valPos = posAssi.p4; + valLoad = loadAssi.svload4; + break; + case 4: + valPos = posAssi.p5; + valLoad = loadAssi.svload5; + break; + case 5: + valPos = posAssi.p6; + valLoad = loadAssi.svload6; + break; + case 6: + valPos = posAssi.p7; + valLoad = loadAssi.svload7; + break; + case 7: + valPos = posAssi.p8; + valLoad = loadAssi.svload8; + break; + case 8: + valPos = posAssi.p9; + valLoad = loadAssi.svload9; + break; + case 9: + valPos = posAssi.p10; + valLoad = loadAssi.svload10; + break; + case 10: + valPos = posAssi.p11; + valLoad = loadAssi.svload11; + break; + case 11: + valPos = posAssi.p12; + valLoad = loadAssi.svload12; + break; + case 12: + valPos = posAssi.p13; + valLoad = loadAssi.svload13; + break; + case 13: + valPos = posAssi.p14; + valLoad = loadAssi.svload14; + break; + case 14: + valPos = posAssi.p15; + valLoad = loadAssi.svload15; + break; + case 15: + valPos = posAssi.p16; + valLoad = loadAssi.svload16; + break; + case 16: + valPos = posAssi.p17; + valLoad = loadAssi.svload17; + break; + case 17: + valPos = posAssi.p18; + valLoad = loadAssi.svload18; + break; + case 18: + valPos = posAssi.p19; + valLoad = loadAssi.svload19; + break; + case 19: + valPos = posAssi.p20; + valLoad = loadAssi.svload20; + break; + case 20: + valPos = posAssi.p21; + valLoad = loadAssi.svload21; + break; + case 21: + valPos = posAssi.p22; + valLoad = loadAssi.svload22; + break; + case 22: + valPos = posAssi.p23; + valLoad = loadAssi.svload23; + break; + case 23: + valPos = posAssi.p24; + valLoad = loadAssi.svload24; + break; + case 24: + valPos = posAssi.p25; + valLoad = loadAssi.svload25; + break; + case 25: + valPos = posAssi.p26; + valLoad = loadAssi.svload26; + break; + case 26: + valPos = posAssi.p27; + valLoad = loadAssi.svload27; + break; + case 27: + valPos = posAssi.p28; + valLoad = loadAssi.svload28; + break; + case 28: + valPos = posAssi.p29; + valLoad = loadAssi.svload29; + break; + case 29: + valPos = posAssi.p30; + valLoad = loadAssi.svload30; + break; + case 30: + valPos = posAssi.p31; + valLoad = loadAssi.svload31; + break; + case 31: + valPos = posAssi.p32; + valLoad = loadAssi.svload32; + break; + default: + // 2017.03.01 suggerimento Fabio: in CMS_FANUC in advanced compiler options mettere FS30D=1,SIEMENS=1 x leggere + assi?!? + valPos = posAssi.p1; + valLoad = loadAssi.svload1; + break; + } + + // popolo valori... + vettAxis[i].mAxLoad.Value = (double)(valLoad.data) / Math.Pow(10, valLoad.dec); + newPos = (double)(valPos.abs.data) / Math.Pow(10, valPos.abs.dec); + vettAxis[i].mAxPosAct.Value = newPos; + vettAxis[i].mAxPosTgt.Value = newPos + (double)(valPos.dist.data) / Math.Pow(10, valPos.dist.dec); + + vettAxis[i].mAxFeedAct.Value = FeedRate; + + // calcolo distanza e salvo valore... + distPerc = newPos - prevPosAxis[i]; + + // sistemo direzione +/- (POS/NEG se lineari, CCW/CW se rotativi) + if (distPerc != 0) + { + newDir = Convert.ToInt32(distPerc / Math.Abs(distPerc)); + } + else + { + newDir = prevDirAxis[i]; + } + + // verifico tipo direzione da tipo asse... + tipoAsse = vettAxis[i].mAxType.Value.ToString(); + if (tipoAsse == "LINEAR") + { + // ?: conditional operator. + direzione = (newDir > 0) ? "POSITIVE" : "NEGATIVE"; + } + else if (tipoAsse == "ROTARY") + { + direzione = (newDir > 0) ? "CLOCKWISE" : "COUNTER_CLOCKWISE"; + } + + vettAxis[i].mAxDir.Value = direzione; + + + if (utils.CRB("verbose")) + { + + sb.AppendLine(string.Format("Asse {0}: PosAct:{1:N3}, ToGo:{2:N3}{3} | {4}", valPos.abs.name, (double)(valPos.abs.data) / Math.Pow(10, valPos.abs.dec), valPos.dist.name, (double)(valPos.dist.data) / Math.Pow(10, valPos.dist.dec), direzione)); + } + + // salvo valori vettore prec... + prevPosAxis[i] = newPos; + prevDirAxis[i] = newDir; + + //vettAxis[i].mAxMainProc.Value = AxData.AxisMainProc; + //vettAxis[i].mAxIsMaster.Value = AxData.AxisIsMaster; + //vettAxis[i].mAxMastId.Value = AxData.AxisMastId; + vettAxis[i].mAxFeedOver.Value = FeedRateOver; + //vettAxis[i].mAxAccelAct.Value = AxData.AxisAccel; + //vettAxis[i].mAxBattery.Value = AxData.AxisBattery; } - - // popolo valori... - vettAxis[i].mAxLoad.Value = (double)(valLoad.data) / Math.Pow(10, valLoad.dec); - newPos = (double)(valPos.abs.data) / Math.Pow(10, valPos.abs.dec); - vettAxis[i].mAxPosAct.Value = newPos; - vettAxis[i].mAxPosTgt.Value = newPos + (double)(valPos.dist.data) / Math.Pow(10, valPos.dist.dec); - - vettAxis[i].mAxFeedAct.Value = FeedRate; - - // calcolo distanza e salvo valore... - distPerc = newPos - prevPosAxis[i]; - - // sistemo direzione +/- (POS/NEG se lineari, CCW/CW se rotativi) - if (distPerc != 0) + catch { - newDir = Convert.ToInt32(distPerc / Math.Abs(distPerc)); + lg.Error(string.Format("Errore in lettura asse {0}", i)); } - else - { - newDir = prevDirAxis[i]; - } - - // verifico tipo direzione da tipo asse... - tipoAsse = vettAxis[i].mAxType.Value.ToString(); - if (tipoAsse == "LINEAR") - { - // ?: conditional operator. - direzione = (newDir > 0) ? "POSITIVE" : "NEGATIVE"; - } - else if (tipoAsse == "ROTARY") - { - direzione = (newDir > 0) ? "CLOCKWISE" : "COUNTER_CLOCKWISE"; - } - - vettAxis[i].mAxDir.Value = direzione; - - - if (utils.CRB("verbose")) - { - - sb.AppendLine(string.Format("Asse {0}: PosAct:{1:N3}, ToGo:{2:N3}{3} | {4}", valPos.abs.name, (double)(valPos.abs.data) / Math.Pow(10, valPos.abs.dec), valPos.dist.name, (double)(valPos.dist.data) / Math.Pow(10, valPos.dist.dec), direzione)); - } - - // salvo valori vettore prec... - prevPosAxis[i] = newPos; - prevDirAxis[i] = newDir; - - //vettAxis[i].mAxMainProc.Value = AxData.AxisMainProc; - //vettAxis[i].mAxIsMaster.Value = AxData.AxisIsMaster; - //vettAxis[i].mAxMastId.Value = AxData.AxisMastId; - vettAxis[i].mAxFeedOver.Value = FeedRateOver; - //vettAxis[i].mAxAccelAct.Value = AxData.AxisAccel; - //vettAxis[i].mAxBattery.Value = AxData.AxisBattery; } parentForm.dataMonitor += sb.ToString(); diff --git a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs index 4f81695..6562d53 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs @@ -21,12 +21,8 @@ namespace MTC_Adapter /// /// Singola pompa da vuoto, 0..n /// - public class VacuumPomp : element + public class VacuumPump : element { - /// - /// Alias - /// - public Event mVacPumpAlias; /// /// valore indca stato aperto/chiuso /// @@ -39,18 +35,13 @@ namespace MTC_Adapter /// Classe Vacuum Pump (pompa) /// /// element base contenente parametri (da XML) - public VacuumPomp(element baseElem) + public VacuumPump(element baseElem) { ident = baseElem.ident; - alias = baseElem.alias; - fonte = baseElem.fonte; dataRefList = baseElem.dataRefList; - - // genero elementi specifici MTConnect - mVacPumpAlias = new Event(string.Format("{0}_Alias", ident)); - mVacPumpAlias.Value = alias; - mVacPumpStatus = new Event(dataRefList[0].Key); - mVacPumpWrkTime = new Event(dataRefList[1].Key); + + mVacPumpStatus = new Event(string.Format("{0}_Status", ident)); + mVacPumpWrkTime = new Event(string.Format("{0}_WrkTime", ident)); } } /// @@ -58,15 +49,10 @@ namespace MTC_Adapter /// public class VacuumAct : element { - /// - /// Alias - /// - public Event mVacActAlias; /// /// valore numero attivazioni/disattivazioni valvola /// public Event mVacActCount; - /// /// Classe Vacuum Actuator (valvola) /// @@ -74,13 +60,9 @@ namespace MTC_Adapter public VacuumAct(element baseElem) { ident = baseElem.ident; - alias = baseElem.alias; - fonte = baseElem.fonte; dataRefList = baseElem.dataRefList; - - mVacActAlias = new Event(string.Format("{0}_Alias", ident)); - mVacActAlias.Value = alias; - mVacActCount = new Event(dataRefList[0].Key); + + mVacActCount = new Event(string.Format("{0}_Count", ident)); } } /// @@ -88,15 +70,14 @@ namespace MTC_Adapter /// public class Lubro : element { - /// - /// Alias - /// - public Event mLubroAlias; /// /// numero pompate necessarie per far scattare sensore /// public Event mLubroNum; - + /// + /// Status + /// + public Event mLubroStatus; /// /// Classe Lubrorefrigerante /// @@ -104,13 +85,10 @@ namespace MTC_Adapter public Lubro(element baseElem) { ident = baseElem.ident; - alias = baseElem.alias; - fonte = baseElem.fonte; dataRefList = baseElem.dataRefList; - - mLubroAlias = new Event(string.Format("{0}_Alias", ident)); - mLubroAlias.Value = alias; - mLubroNum = new Event(dataRefList[0].Key); + + mLubroNum = new Event(string.Format("{0}_Num", ident)); + mLubroStatus = new Event(string.Format("{0}_Status", ident)); } } /// @@ -118,15 +96,10 @@ namespace MTC_Adapter /// public class Cooler : element { - /// - /// Alias - /// - public Event mCoolAlias; /// /// Stato istantaneo (evento aperto/chiuso) /// public Event mCoolStatus; - /// /// Classe refrigeratore /// @@ -134,13 +107,9 @@ namespace MTC_Adapter public Cooler(element baseElem) { ident = baseElem.ident; - alias = baseElem.alias; - fonte = baseElem.fonte; dataRefList = baseElem.dataRefList; - - mCoolAlias = new Event(string.Format("{0}_Alias", ident)); - mCoolAlias.Value = alias; - mCoolStatus = new Event(dataRefList[0].Key); + + mCoolStatus = new Event(string.Format("{0}_Status", ident)); } } /// @@ -148,10 +117,6 @@ namespace MTC_Adapter /// public class Press : element { - /// - /// Alias - /// - public Event mPressAlias; /// /// valore pressione istantaneo /// @@ -163,13 +128,9 @@ namespace MTC_Adapter public Press(element baseElem) { ident = baseElem.ident; - alias = baseElem.alias; - fonte = baseElem.fonte; dataRefList = baseElem.dataRefList; - - mPressAlias = new Event(string.Format("{0}_Alias", ident)); - mPressAlias.Value = alias; - mPressValIst = new Sample(dataRefList[0].Key); + + mPressValIst = new Sample(string.Format("{0}_Value", ident)); } } /// @@ -177,10 +138,6 @@ namespace MTC_Adapter /// public class Tempe : element { - /// - /// Alias - /// - public Event mTempAlias; /// /// valore temperatura istantaneo /// @@ -192,13 +149,40 @@ namespace MTC_Adapter public Tempe(element baseElem) { ident = baseElem.ident; - alias = baseElem.alias; - fonte = baseElem.fonte; dataRefList = baseElem.dataRefList; - - mTempAlias = new Event(string.Format("{0}_Alias", ident)); - mTempAlias.Value = alias; - mTempValIst = new Sample(dataRefList[0].Key); + + mTempValIst = new Sample(string.Format("{0}_Value", ident)); + } + } + /// + /// Singola Area Memoria (Kvara 1..4) + /// + public class MemArea : element + { + /// + /// Programma caricato + /// + public Event mMemAreaProgName; + /// + /// Num esecuzioni programma + /// + public Event mMemAreaProgNumExe; + /// + /// Num esecuzioni programma + /// + public Event mMemAreaProgNumRep; + /// + /// INIT Classe Memory Area + /// + /// element base contenente parametri (da XML) + public MemArea(element baseElem) + { + ident = baseElem.ident; + dataRefList = baseElem.dataRefList; + + mMemAreaProgName = new Event(string.Format("{0}_PROG_NAME", ident)); + mMemAreaProgNumExe = new Event(string.Format("{0}_NUM_EXE", ident)); + mMemAreaProgNumRep = new Event(string.Format("{0}_NUM_REP", ident)); } } /// @@ -206,10 +190,6 @@ namespace MTC_Adapter /// public class Path : element { - /// - /// Alias - /// - public MTConnect.Message mPathAlias; /// /// Tipo Path (LAVOR/ASSERV) /// @@ -306,7 +286,6 @@ namespace MTC_Adapter /// Allarmi PCL del PATH /// public Condition mPathAlarmPLC; - /// /// Classe Path con Idx e descrizione /// @@ -314,35 +293,31 @@ namespace MTC_Adapter public Path(element baseElem) { ident = baseElem.ident; - alias = baseElem.alias; - fonte = baseElem.fonte; dataRefList = baseElem.dataRefList; - - mPathAlias = new MTConnect.Message(string.Format("{0}_Alias", ident)); - mPathAlias.Value = alias; - mPathFeed = new Sample(dataRefList[0].Key); - mPathFeedOver = new Sample(dataRefList[1].Key); - mPathRapidOver = new Sample(dataRefList[2].Key); - mPathPosActX = new Sample(dataRefList[3].Key); - mPathPosActY = new Sample(dataRefList[4].Key); - mPathPosActZ = new Sample(dataRefList[5].Key); - mPathPosActI = new Sample(dataRefList[6].Key); - mPathPosActJ = new Sample(dataRefList[7].Key); - mPathPosActK = new Sample(dataRefList[8].Key); + + mPathFeed = new Sample(string.Format("{0}_FeedRate", ident)); + mPathFeedOver = new Sample(string.Format("{0}_FeedOverr", ident)); + mPathRapidOver = new Sample(string.Format("{0}_RapidOverr", ident)); + mPathPosActX = new Sample(string.Format("{0}_PosActX", ident)); + mPathPosActY = new Sample(string.Format("{0}_PosActY", ident)); + mPathPosActZ = new Sample(string.Format("{0}_PosActZ", ident)); + mPathPosActI = new Sample(string.Format("{0}_PosActI", ident)); + mPathPosActJ = new Sample(string.Format("{0}_PosActJ", ident)); + mPathPosActK = new Sample(string.Format("{0}_PosActK", ident)); // aggiunta x revisione 2016.05.05 - mPathType = new MTConnect.Message(dataRefList[9].Key); - mPathPartId = new Event(dataRefList[10].Key); - mPathPartCount = new Event(dataRefList[11].Key); - mPathCodM = new MTConnect.Message(dataRefList[12].Key); - mPathCodS = new MTConnect.Message(dataRefList[13].Key); - mPathCodT = new MTConnect.Message(dataRefList[14].Key); - mPathRunMode = new Event(dataRefList[15].Key); - mPathExeMode = new Event(dataRefList[16].Key); - mPathCurrProg = new Event(dataRefList[17].Key); - mPathCurrProgRowNum = new Event(dataRefList[18].Key); - mPathActiveAxes = new Event(dataRefList[19].Key); - mPathCodG_Act = new MTConnect.Message(dataRefList[20].Key); - mPathSubMode = new MTConnect.Message(dataRefList[21].Key); + mPathType = new MTConnect.Message(string.Format("{0}_Type", ident)); + mPathPartId = new Event(string.Format("{0}_PartId", ident)); + mPathPartCount = new Event(string.Format("{0}_PZ_TOT", ident)); + mPathCodM = new MTConnect.Message(string.Format("{0}_Cod_M", ident)); + mPathCodS = new MTConnect.Message(string.Format("{0}_Cod_S", ident)); + mPathCodT = new MTConnect.Message(string.Format("{0}_Cod_T", ident)); + mPathRunMode = new Event(string.Format("{0}_RUN_MODE", ident)); + mPathExeMode = new Event(string.Format("{0}_EXE_MODE", ident)); + mPathCurrProg = new Event(string.Format("{0}_CurrProg", ident)); + mPathCurrProgRowNum = new Event(string.Format("{0}_CurrProg_RowNum", ident)); + mPathActiveAxes = new Event(string.Format("{0}_ActiveAxes", ident)); + mPathCodG_Act = new MTConnect.Message(string.Format("{0}_CodG_Act", ident)); + mPathSubMode = new MTConnect.Message(string.Format("{0}_SubMode", ident)); mPathAlarmCNC = new Condition(string.Format("{0}_AlarmCNC", ident)); mPathAlarmPLC = new Condition(string.Format("{0}_AlarmPLC", ident)); } @@ -353,11 +328,7 @@ namespace MTC_Adapter public class UnOp : element { /// - /// Alias - /// - public MTConnect.Message mUnOpAlias; - /// - /// Alias + /// ToolID /// public Event mUnOpToolId; /// @@ -397,27 +368,28 @@ namespace MTC_Adapter /// public Sample mUnOpAccTime; /// + /// contatore cumulato di giri mandrino (migliaia) + /// + public Sample mUnOpKRev; + /// /// Classe Unita Operatrice (Mandrino) con Idx e descrizione /// /// element base contenente parametri (da XML) public UnOp(element baseElem) { ident = baseElem.ident; - alias = baseElem.alias; - fonte = baseElem.fonte; dataRefList = baseElem.dataRefList; - - mUnOpAlias = new MTConnect.Message(string.Format("{0}_Alias", ident)); - mUnOpAlias.Value = alias; - mUnOpToolId = new Event(dataRefList[0].Key); - mUnOpNumCU = new Event(dataRefList[1].Key); - mUnOpStatus = new Event(dataRefList[2].Key); - mUnOpVitaRes = new Event(dataRefList[3].Key); - mUnOpSpeed = new Sample(dataRefList[4].Key); - mUnOpSpeedOverr = new Sample(dataRefList[5].Key); - mUnOpLoad = new Sample(dataRefList[6].Key); - mUnOpAccTime = new Sample(dataRefList[7].Key); - mUnOpVitaResType = new MTConnect.Message(dataRefList[8].Key); + + mUnOpToolId = new Event(string.Format("{0}_ToolId", ident)); + mUnOpNumCU = new Event(string.Format("{0}_NumCU", ident)); + mUnOpStatus = new Event(string.Format("{0}_Status", ident)); + mUnOpVitaRes = new Event(string.Format("{0}_VitaRes", ident)); + mUnOpSpeed = new Sample(string.Format("{0}_Speed", ident)); + mUnOpSpeedOverr = new Sample(string.Format("{0}_SpeedOverr", ident)); + mUnOpLoad = new Sample(string.Format("{0}_Load", ident)); + mUnOpAccTime = new Sample(string.Format("{0}_AccTime", ident)); + mUnOpVitaResType = new MTConnect.Message(string.Format("{0}_VitaResType", ident)); + mUnOpKRev = new Sample(string.Format("{0}_KRev", ident)); } } /// @@ -425,10 +397,6 @@ namespace MTC_Adapter /// public class Axis : element { - /// - /// Descrizione / Alias - /// - public MTConnect.Message mAxAlias; /// /// Processo di appartenenza /// @@ -497,37 +465,31 @@ namespace MTC_Adapter /// Allarmi PCL del PATH /// public Condition mAxAlarmPLC; - /// - /// Classe Asse con relativo ID UNIVOCO ed alias + /// Classe Asse con relativo ID UNIVOCO /// /// element base contenente parametri (da XML) public Axis(element baseElem) { ident = baseElem.ident; - alias = baseElem.alias; - fonte = baseElem.fonte; dataRefList = baseElem.dataRefList; - - // inizializzo vari eventi, sample, condizioni - mAxAlias = new MTConnect.Message(string.Format("{0}_Alias", ident)); - mAxAlias.Value = alias; - mAxMainProc = new MTConnect.Message(dataRefList[0].Key); - mAxIsMaster = new MTConnect.Message(dataRefList[1].Key); - mAxMastId = new Event(dataRefList[2].Key); - mAxType = new Event(dataRefList[3].Key); - mAxType.Value = dataRefList[3].Value; - mAxDir = new Event(dataRefList[4].Key); - mAxLoad = new Sample(dataRefList[5].Key); - mAxPosAct = new Sample(dataRefList[6].Key); - mAxPosTgt = new Sample(dataRefList[7].Key); - mAxFeedAct = new Sample(dataRefList[8].Key); - mAxFeedOver = new Sample(dataRefList[9].Key); - mAxAccelAct = new Sample(dataRefList[10].Key); - mAxAccTime = new Sample(dataRefList[11].Key); - mAxBattery = new Sample(dataRefList[12].Key); - mAxDistDone = new Sample(dataRefList[13].Key); - mAxInvDDone = new Sample(dataRefList[14].Key); + + mAxType = new Event(dataRefList[0].Key); + mAxType.Value = dataRefList[0].Value; + mAxMainProc = new MTConnect.Message(string.Format("{0}_MainProc", ident)); + mAxIsMaster = new MTConnect.Message(string.Format("{0}_IsMast", ident)); + mAxMastId = new Event(string.Format("{0}_MastId", ident)); + mAxDir = new Event(string.Format("{0}_Dir", ident)); + mAxLoad = new Sample(string.Format("{0}_Load", ident)); + mAxPosAct = new Sample(string.Format("{0}_PosAct", ident)); + mAxPosTgt = new Sample(string.Format("{0}_PosTgt", ident)); + mAxFeedAct = new Sample(string.Format("{0}_FeedAct", ident)); + mAxFeedOver = new Sample(string.Format("{0}_FeedOver", ident)); + mAxAccelAct = new Sample(string.Format("{0}_AccelAct", ident)); + mAxAccTime = new Sample(string.Format("{0}_AccTime", ident)); + mAxBattery = new Sample(string.Format("{0}_Battery", ident)); + mAxDistDone = new Sample(string.Format("{0}_DistDone", ident)); + mAxInvDDone = new Sample(string.Format("{0}_InvDDone", ident)); mAxAlarmCNC = new Condition(string.Format("{0}_AlarmCNC", ident)); mAxAlarmPLC = new Condition(string.Format("{0}_AlarmPLC", ident)); @@ -559,12 +521,16 @@ namespace MTC_Adapter /// /// valore booleano di check se sia stato AVVIATO l'adapter (Running) /// - public bool adpRunning; + public bool adpRunning = false; /// /// valore booleano (richiesta di riavvio automatico) /// public bool adpTryRestart; /// + /// Determina se utilizzare blocchi di memoria IOT contigui (e quindi processing "monoblocco" semplificato"= + /// + public bool procIotMem = false; + /// /// porta x adapter (x restart) /// protected int adpPortNum; @@ -819,7 +785,7 @@ namespace MTC_Adapter return (StFlag32)BitConverter.ToUInt32(Acknowl, 12); } } - + /// /// Strobe mask PLC /// @@ -844,7 +810,7 @@ namespace MTC_Adapter #endregion #region Events - + /// /// Asset Changed - cambio asset /// @@ -934,7 +900,7 @@ namespace MTC_Adapter #region oggetti complessi/completi - public VacuumPomp[] vettVacPump; + public VacuumPump[] vettVacPump; public VacuumAct[] vettVacAct; public Lubro[] vettLubro; public Cooler[] vettCooler; @@ -943,6 +909,7 @@ namespace MTC_Adapter public Path[] vettPath; public UnOp[] vettUnOp; public Axis[] vettAxis; + public MemArea[] vettMemArea; #endregion @@ -958,6 +925,7 @@ namespace MTC_Adapter lg = LogManager.GetCurrentClassLogger(); lg.Info("Avvio AdapterGeneric"); + procIotMem = utils.CRB("procIotMem"); currAdpConf = adpConf; @@ -1001,11 +969,20 @@ namespace MTC_Adapter mAdapter.AddDataItem(mUnkStatus); mAdapter.AddDataItem(mUnkStrobe); + // Aree memoria + vettMemArea = new MemArea[adpConf.nMemArea]; + for (int i = 0; i < adpConf.nMemArea; i++) + { + vettMemArea[i] = new MemArea(adpConf.MemArea[i]); + mAdapter.AddDataItem(vettMemArea[i].mMemAreaProgName); + mAdapter.AddDataItem(vettMemArea[i].mMemAreaProgNumExe); + mAdapter.AddDataItem(vettMemArea[i].mMemAreaProgNumRep); + } // Pompe vuoto - vettVacPump = new VacuumPomp[adpConf.nVacuumPump]; + vettVacPump = new VacuumPump[adpConf.nVacuumPump]; for (int i = 0; i < adpConf.nVacuumPump; i++) { - vettVacPump[i] = new VacuumPomp(adpConf.VacuumPump[i]); + vettVacPump[i] = new VacuumPump(adpConf.VacuumPump[i]); mAdapter.AddDataItem(vettVacPump[i].mVacPumpStatus); mAdapter.AddDataItem(vettVacPump[i].mVacPumpWrkTime); } @@ -1014,7 +991,6 @@ namespace MTC_Adapter for (int i = 0; i < adpConf.nVacuumAct; i++) { vettVacAct[i] = new VacuumAct(adpConf.VacuumAct[i]); - //mAdapter.AddDataItem(vettVacAct[i].mVacActAlias); mAdapter.AddDataItem(vettVacAct[i].mVacActCount); } // Lubrorefrigeranti @@ -1022,15 +998,14 @@ namespace MTC_Adapter for (int i = 0; i < adpConf.nLubro; i++) { vettLubro[i] = new Lubro(adpConf.Lubro[i]); - //mAdapter.AddDataItem(vettLubro[i].mLubroAlias); mAdapter.AddDataItem(vettLubro[i].mLubroNum); + mAdapter.AddDataItem(vettLubro[i].mLubroStatus); } // Cooler vettCooler = new Cooler[adpConf.nCooler]; for (int i = 0; i < adpConf.nCooler; i++) { vettCooler[i] = new Cooler(adpConf.Cooler[i]); - //mAdapter.AddDataItem(vettCooler[i].mCoolAlias); mAdapter.AddDataItem(vettCooler[i].mCoolStatus); } // Press @@ -1038,7 +1013,6 @@ namespace MTC_Adapter for (int i = 0; i < adpConf.nPress; i++) { vettPress[i] = new Press(adpConf.Press[i]); - //mAdapter.AddDataItem(vettPress[i].mPressAlias); mAdapter.AddDataItem(vettPress[i].mPressValIst); } // Temp @@ -1046,7 +1020,6 @@ namespace MTC_Adapter for (int i = 0; i < adpConf.nTemp; i++) { vettTempe[i] = new Tempe(adpConf.Temp[i]); - //mAdapter.AddDataItem(vettTempe[i].mTempAlias); mAdapter.AddDataItem(vettTempe[i].mTempValIst); } // Path @@ -1054,7 +1027,6 @@ namespace MTC_Adapter for (int i = 0; i < adpConf.nPath; i++) { vettPath[i] = new Path(adpConf.Path[i]); - mAdapter.AddDataItem(vettPath[i].mPathAlias); mAdapter.AddDataItem(vettPath[i].mPathFeed); mAdapter.AddDataItem(vettPath[i].mPathFeedOver); mAdapter.AddDataItem(vettPath[i].mPathRapidOver); @@ -1081,14 +1053,12 @@ namespace MTC_Adapter // aggiungo condizioni allarme... mAdapter.AddDataItem(vettPath[i].mPathAlarmCNC); mAdapter.AddDataItem(vettPath[i].mPathAlarmPLC); - // altre aggiunte } // UnOp vettUnOp = new UnOp[adpConf.nUnOp]; for (int i = 0; i < adpConf.nUnOp; i++) { vettUnOp[i] = new UnOp(adpConf.UnOp[i]); - //mAdapter.AddDataItem(vettUnOp[i].mUnOpAlias); mAdapter.AddDataItem(vettUnOp[i].mUnOpToolId); mAdapter.AddDataItem(vettUnOp[i].mUnOpNumCU); mAdapter.AddDataItem(vettUnOp[i].mUnOpStatus); @@ -1098,13 +1068,13 @@ namespace MTC_Adapter mAdapter.AddDataItem(vettUnOp[i].mUnOpSpeedOverr); mAdapter.AddDataItem(vettUnOp[i].mUnOpLoad); mAdapter.AddDataItem(vettUnOp[i].mUnOpAccTime); + mAdapter.AddDataItem(vettUnOp[i].mUnOpKRev); } // Assi vettAxis = new Axis[adpConf.nAxis]; for (int i = 0; i < adpConf.nAxis; i++) { vettAxis[i] = new Axis(adpConf.Axis[i]); - //mAdapter.AddDataItem(vettAxis[i].mAxAlias); mAdapter.AddDataItem(vettAxis[i].mAxMainProc); mAdapter.AddDataItem(vettAxis[i].mAxIsMaster); mAdapter.AddDataItem(vettAxis[i].mAxMastId); @@ -1130,13 +1100,8 @@ namespace MTC_Adapter mAdapter.AddDataItem(mMessage); // allarmi "base" - //mAdapter.AddDataItem(mAlarmSystem); mAdapter.AddDataItem(mAlarmCNC); mAdapter.AddDataItem(mAlarmPLC); - //mAdapter.AddDataItem(mAlarmHMI); - //mAdapter.AddDataItem(mAlarmGeneral); - - // azioni utente mAdapter.AddDataItem(mUserAction); @@ -1180,7 +1145,7 @@ namespace MTC_Adapter // 2016.07.20: dimensione AlarmFlags è la MAX tra quella del numero allarmi ed il numero allarmi standard dalla memoria... if (numByte < 32) numByte = 32; AlarmFlags = new byte[numByte]; - if (utils.CRB("verbose")) lg.Info("Fine caricamento vettore allarmi"); + if (utils.CRB("verbose")) lg.Info(string.Format("Fine caricamento vettore allarmi: {0} allarmi caricati!", rumRiga)); } /// /// Caricamento altri file necessari epr adapter all'avvio @@ -1268,7 +1233,7 @@ namespace MTC_Adapter return new otherData(valori[0], memAddr, valori[1].Trim(), valori[2].Trim()); } /// - /// Decodifica file allarme + /// Decodifica file MAP /// /// /// @@ -1311,9 +1276,9 @@ namespace MTC_Adapter { contDistMovAssi[i] = getStoredValUInt(string.Format("Axis_{0:00}_DistDone", i + 1)); contNumInvAssi[i] = getStoredValUInt(string.Format("Axis_{0:00}_InvDDone", i + 1)); - contAccTimeAssi[i] = getStoredValUInt(string.Format("Axis_{0:00}_AccTime", i + 1)); + contAccTimeAssi[i] = getStoredValDouble(string.Format("Axis_{0:00}_AccTime", i + 1)); } - + for (int i = 0; i < currAdpConf.nVacuumPump; i++) { currVacPumpWrkTime[i] = getStoredValUInt(string.Format("VacPump_{0:00}_WrkTime", i + 1)); @@ -1355,7 +1320,7 @@ namespace MTC_Adapter // resetto running flag... adpCommAct = false; - + // carico valori da adapter x i conteggi contOreMaccOn = currAdpConf.ContOreMaccOn; contOreMaccLav = currAdpConf.ContOreMaccLav; @@ -1545,49 +1510,62 @@ namespace MTC_Adapter // processing degli strobes di allarme (da ULTIMA rappresentazione vettore dell'ADP) processAlarm(); - - // ciclo HF: recupero update status & strobes vari - if (ciclo == gatherCycle.HF) + // verifico se processare tutto "in un colpo solo" + if (procIotMem) { - // parte che eseguo SEMPRE: RECUPERO stato di tutti gli strobe/status e degli ack attualmente noti - getStrobeAndAckStatus(); - - // faccio refresh degli allarmi segnalati (da strobe su vettore locale) - refreshAlarmState(STRB_DW0, true); - // acquisizione degli status - processStatus(); - // processing degli strobes - processStrobe(); + processAllMemory(); + // ciclo lento x log... + if (ciclo == gatherCycle.LF) + { + // eventuale log! + if (utils.CRB("recTime")) logTimeResults(); + } } - else if (ciclo == gatherCycle.MF) + // oppure in "modalitĂ  classica" con multistep... + else { - // leggo parametri a media freq (dati globali, path, assi, UnitĂ  Operatrice) - getGlobalData(); - getUnOp(); - getPath(); - getAxis(); - } - // ciclo lento - else if (ciclo == gatherCycle.LF) - { - // leggo EVENTUALI parametri da config file - getConfigParam(); - ///acquisisco dati su programma in esecuzione e dati generali (stato, orologio, power...) - getSlowChangingData(); + // ciclo HF: recupero update status & strobes vari + if (ciclo == gatherCycle.HF) + { + // parte che eseguo SEMPRE: RECUPERO stato di tutti gli strobe/status e degli ack attualmente noti + getStrobeAndAckStatus(); - // eventuale log! - if (utils.CRB("recTime")) logTimeResults(); - } - // ciclo lentissimo - else if (ciclo == gatherCycle.VLF) - { - lg.Info("Richiesta lettura completa allarmi attivi"); - // faccio comunque rilettura completa allarmi... - forceAlarmCheck(); - } + // faccio refresh degli allarmi segnalati (da strobe su vettore locale) + refreshAlarmState(STRB_DW0, true); + // acquisizione degli status + processStatus(); + // processing degli strobes + processStrobe(); + } + else if (ciclo == gatherCycle.MF) + { + // leggo parametri a media freq (dati globali, path, assi, UnitĂ  Operatrice) + getGlobalData(); + getUnOp(); + getPath(); + getAxis(); + } + // ciclo lento + else if (ciclo == gatherCycle.LF) + { + // leggo EVENTUALI parametri da config file + getConfigParam(); + ///acquisisco dati su programma in esecuzione e dati generali (stato, orologio, power...) + getSlowChangingData(); - // processo e svuoto eventuali code di invio per Codici M/S/T - trySendCodMST(); + // eventuale log! + if (utils.CRB("recTime")) logTimeResults(); + } + // ciclo lentissimo + else if (ciclo == gatherCycle.VLF) + { + lg.Info("Richiesta lettura completa allarmi attivi"); + // faccio comunque rilettura completa allarmi... + forceAlarmCheck(); + } + // processo e svuoto eventuali code di invio per Codici M/S/T + trySendCodMST(); + } // INVIO dati variati! mAdapter.SendChanged(); @@ -1853,7 +1831,11 @@ namespace MTC_Adapter } } } - + /// + /// Classe fittizia in caso di processing GLOBALE di tutto in 1 solo colpo... + /// + public virtual void processAllMemory() + { } /// /// metodo di recupero dei dati di identificativo macchina - DA CONF!!! /// @@ -1900,7 +1882,7 @@ namespace MTC_Adapter /// public int FeedRateOver { get; set; } /// - /// Override dei rapidi + /// OVERRIDE dei rapidi /// public int RapidOver { get; set; } /// diff --git a/MTC_Adapter/MTC_Adapter/App.CMS-FANUC.config b/MTC_Adapter/MTC_Adapter/App.CMS-FANUC.config index d750312..3a6d44e 100644 --- a/MTC_Adapter/MTC_Adapter/App.CMS-FANUC.config +++ b/MTC_Adapter/MTC_Adapter/App.CMS-FANUC.config @@ -4,6 +4,7 @@ + diff --git a/MTC_Adapter/MTC_Adapter/App.CMS-SIEMENS.config b/MTC_Adapter/MTC_Adapter/App.CMS-SIEMENS.config index 0d1692c..7a93800 100644 --- a/MTC_Adapter/MTC_Adapter/App.CMS-SIEMENS.config +++ b/MTC_Adapter/MTC_Adapter/App.CMS-SIEMENS.config @@ -4,6 +4,7 @@ + diff --git a/MTC_Adapter/MTC_Adapter/App.SCM-ESA.config b/MTC_Adapter/MTC_Adapter/App.SCM-ESA.config index 1d3e6e3..3523d79 100644 --- a/MTC_Adapter/MTC_Adapter/App.SCM-ESA.config +++ b/MTC_Adapter/MTC_Adapter/App.SCM-ESA.config @@ -4,6 +4,10 @@ + + + + diff --git a/MTC_Adapter/MTC_Adapter/App.config b/MTC_Adapter/MTC_Adapter/App.config index c255023..f9af073 100644 --- a/MTC_Adapter/MTC_Adapter/App.config +++ b/MTC_Adapter/MTC_Adapter/App.config @@ -28,7 +28,7 @@ - + @@ -60,6 +60,13 @@ + + + + + + + diff --git a/MTC_Adapter/MTC_Adapter/DATA/CONF/Adapter_ItemList.xml b/MTC_Adapter/MTC_Adapter/DATA/CONF/Adapter_ItemList.xml index aac3ce7..2ec34fc 100644 --- a/MTC_Adapter/MTC_Adapter/DATA/CONF/Adapter_ItemList.xml +++ b/MTC_Adapter/MTC_Adapter/DATA/CONF/Adapter_ItemList.xml @@ -1,706 +1,271 @@ 1 - ADAPTER_FANUC - FANUC + ADAPTER_ESAGV + ESAGV 0 0 VacPump_01 - Pompa 1 - Random - - - VacPump_01_Status - 0 - - - VacPump_01_WrkTime - 0 - - + VacPump_02 - Pompa 2 - Random - - - VacPump_02_Status - 0 - - - VacPump_02_WrkTime - 0 - - + VacAct_01 - Attuatore vuoto 1 - Random - - - VacAct_01_Count - 0 - - + VacAct_02 - Attuatore vuoto 2 - Random - - - VacAct_02_Count - 0 - - + + + + VacAct_03 + + + + VacAct_04 + Lubro_01 - Lubrorefrigerante 1 - Random - - - Lubro_01_Num - 0 - - + Lubro_02 - Lubrorefrigerante 2 - Random - - - Lubro_02_Num - 0 - - + Cooler_01 - Cooler 1 - Random - - - Cooler_01_Status - 0 - - + Cooler_02 - Cooler 2 - Random - - - Cooler_02_Status - 0 - - + Press_01 - Pressostato 1 - Random - - - Press_01_Value - 0 - - + Press_02 - Pressostato 2 - Random - - - Press_02_Value - 0 - - + Temp_01 - Sonda Temperatura 1 - Random - - - Temp_01_Value - 0 - - + Temp_02 - Sonda Temperatura 2 - Random - - - Temp_02_Value - 0 - - + Path_01 - Path num 1 - Random - - - Path_01_FeedRate - 0 - - - Path_01_FeedOverr - 0 - - - Path_01_RapidOverr - 0 - - - Path_01_PosActX - 0 - - - Path_01_PosActY - 0 - - - Path_01_PosActZ - 0 - - - Path_01_PosActI - 0 - - - Path_01_PosActJ - 0 - - - Path_01_PosActK - 0 - - - Path_01_Type - 0 - - - Path_01_PartId - 0 - - - Path_01_PZ_TOT - 0 - - - Path_01_Cod_M - 0 - - - Path_01_Cod_S - 0 - - - Path_01_Cod_T - 0 - - - Path_01_RUN_MODE - 0 - - - Path_01_EXE_MODE - 0 - - - Path_01_CurrProg - 0 - - - Path_01_CurrProg_RowNum - 0 - - - Path_01_ActiveAxes - 0 - - - Path_01_CodG_Act - 0 - - - Path_01_SubMode - 0 - - + UnOp_01 - Unita Op num 1 - Random - - - UnOp_01_ToolId - 0 - - - UnOp_01_NumCU - 0 - - - UnOp_01_Status - 0 - - - UnOp_01_VitaRes - 0 - - - UnOp_01_Speed - 0 - - - UnOp_01_SpeedOverr - 0 - - - UnOp_01_Load - 0 - - - UnOp_01_AccTime - 0 - - - UnOp_01_VitaResType - 0 - - + + + + UnOp_02 + + + + UnOp_03 + + + + UnOp_04 + + + + UnOp_05 + + + + UnOp_06 + + + + UnOp_07 + + + + UnOp_08 + Axis_01 - Asse num 1 - Random - - Axis_01_MainProc - 0 - - - Axis_01_IsMast - 0 - - - Axis_01_MastId - 0 - Axis_01_Type LINEAR - - Axis_01_Dir - 0 - - - Axis_01_Load - 0 - - - Axis_01_PosAct - 0 - - - Axis_01_PosTgt - 0 - - - Axis_01_FeedAct - 0 - - - Axis_01_FeedOver - 0 - - - Axis_01_AccelAct - 0 - - - Axis_01_AccTime - 0 - - - Axis_01_Battery - 0 - - - Axis_01_DistDone - 0 - - - Axis_01_InvDDone - 0 - Axis_02 - Asse num 2 - Random - - Axis_02_MainProc - 0 - - - Axis_02_IsMast - 0 - - - Axis_02_MastId - 0 - Axis_02_Type LINEAR - - Axis_02_Dir - 0 - - - Axis_02_Load - 0 - - - Axis_02_PosAct - 0 - - - Axis_02_PosTgt - 0 - - - Axis_02_FeedAct - 0 - - - Axis_02_FeedOver - 0 - - - Axis_02_AccelAct - 0 - - - Axis_02_AccTime - 0 - - - Axis_02_Battery - 0 - - - Axis_02_DistDone - 0 - - - Axis_02_InvDDone - 0 - Axis_03 - Asse num 3 - Random - - Axis_03_MainProc - 0 - - - Axis_03_IsMast - 0 - - - Axis_03_MastId - 0 - Axis_03_Type LINEAR - - Axis_03_Dir - 0 - - - Axis_03_Load - 0 - - - Axis_03_PosAct - 0 - - - Axis_03_PosTgt - 0 - - - Axis_03_FeedAct - 0 - - - Axis_03_FeedOver - 0 - - - Axis_03_AccelAct - 0 - - - Axis_03_AccTime - 0 - - - Axis_03_Battery - 0 - - - Axis_03_DistDone - 0 - - - Axis_03_InvDDone - 0 - Axis_04 - Asse num 4 - Random - - Axis_04_MainProc - 0 - - - Axis_04_IsMast - 0 - - - Axis_04_MastId - 0 - Axis_04_Type ROTARY - - Axis_04_Dir - 0 - - - Axis_04_Load - 0 - - - Axis_04_PosAct - 0 - - - Axis_04_PosTgt - 0 - - - Axis_04_FeedAct - 0 - - - Axis_04_FeedOver - 0 - - - Axis_04_AccelAct - 0 - - - Axis_04_AccTime - 0 - - - Axis_04_Battery - 0 - - - Axis_04_DistDone - 0 - - - Axis_04_InvDDone - 0 - Axis_05 - Asse num 5 - Random - - Axis_05_MainProc - 0 - - - Axis_05_IsMast - 0 - - - Axis_05_MastId - 0 - Axis_05_Type ROTARY - - Axis_05_Dir - 0 - - - Axis_05_Load - 0 - - - Axis_05_PosAct - 0 - - - Axis_05_PosTgt - 0 - - - Axis_05_FeedAct - 0 - - - Axis_05_FeedOver - 0 - - - Axis_05_AccelAct - 0 - - - Axis_05_AccTime - 0 - - - Axis_05_Battery - 0 - - - Axis_05_DistDone - 0 - - - Axis_05_InvDDone - 0 - Axis_06 - Asse num 6 - Random - - Axis_06_MainProc - 0 - - - Axis_06_IsMast - 0 - - - Axis_06_MastId - 0 - Axis_06_Type LINEAR + + + + Axis_07 + - Axis_06_Dir - 0 + Axis_07_Type + LINEAR + + + + Axis_08 + - Axis_06_Load - 0 + Axis_08_Type + LINEAR + + + + Axis_09 + - Axis_06_PosAct - 0 + Axis_09_Type + LINEAR + + + + Axis_10 + - Axis_06_PosTgt - 0 + Axis_10_Type + LINEAR + + + + Axis_11 + - Axis_06_FeedAct - 0 + Axis_11_Type + LINEAR + + + + Axis_12 + - Axis_06_FeedOver - 0 + Axis_12_Type + LINEAR + + + + Axis_13 + - Axis_06_AccelAct - 0 + Axis_13_Type + LINEAR + + + + Axis_14 + - Axis_06_AccTime - 0 + Axis_14_Type + LINEAR + + + + Axis_15 + - Axis_06_Battery - 0 - - - Axis_06_DistDone - 0 - - - Axis_06_InvDDone - 0 + Axis_15_Type + LINEAR + + + MemArea_01 + + + + MemArea_02 + + + + MemArea_03 + + + + MemArea_04 + + + \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/DATA/CONF/AlarmList.map b/MTC_Adapter/MTC_Adapter/DATA/CONF/AlarmList.map index 6698345..22ee9b1 100644 --- a/MTC_Adapter/MTC_Adapter/DATA/CONF/AlarmList.map +++ b/MTC_Adapter/MTC_Adapter/DATA/CONF/AlarmList.map @@ -1,1025 +1,421 @@ # Commenti con "#", elenco tipo COD_NUM|GRUPPO|LEVEL|DESCRIZIONE completa -000001|PLC|FAULT|[COD 001000] - 334 ERRORE COMUNICAZIONE PROFIBUS -000002|PLC|FAULT|[COD 001001] - 700 TABELLE IN MODIFICA -000003|PLC|FAULT|[COD 001002] - 404 BILANCIAMENTO ASSE Z INSUFFICIENTE -000004|PLC|FAULT|[COD 001003] - 403 SURRISCALDAMENTO ARMADIO ELETTRICO -000005|PLC|FAULT|[COD 001004] - 173 CAMBIARE LA BATTERIA -000006|PLC|FAULT|[COD 001005] - 407 UNO O PIU ASSI IN EXTRA CORSA -000007|PLC|FAULT|[COD 001006] - 406 PULSANTI DI EMERGENZA -000008|PLC|FAULT|[COD 001007] - ... -000009|PLC|FAULT|[COD 001008] - 583 MACCHINA SPENTA -000010|PLC|FAULT|[COD 001009] - 782 RICHIESTA ESECUZIONE TEST DI SICUREZZA -000011|PLC|FAULT|[COD 001010] - 783 INCONSISTENZA SEGNALI DUALCHEK (PARATIA) -000012|PLC|FAULT|[COD 001011] - 784 SOVRACORRENTE MODULI I/O LINK -000013|PLC|FAULT|[COD 001012] - 667 CIRCUITO DI SICUREZZA GUASTO -000014|PLC|FAULT|[COD 001013] - 404 BILANCIAMENTO ASSE W INSUFFICIENTE -000015|PLC|FAULT|[COD 001014] - 584 PORTA DI SICUREZZA AUSILIARIA 1 NON CHIUSA -000016|PLC|FAULT|[COD 001015] - 584 PORTA DI SICUREZZA AUSILIARIA 2 NON CHIUSA -000017|PLC|FAULT|[COD 001016] - 001 HAI VERIFICATO TABELLE UTENSILI ? PREMERE SOFTKEY SI -000018|PLC|FAULT|[COD 001017] - 002 SEI SICURO ? PREMERE SOFTKEY SI -000019|PLC|FAULT|[COD 001018] - 666 MODULO CONTROLLO MANDRINO FERMO NON OK -000020|PLC|FAULT|[COD 001019] - 666 DISPOSITIVO DI SICUREZZA GUASTO -000021|PLC|FAULT|[COD 001020] - 689 STATUS UTENSILE NON OK -000022|PLC|FAULT|[COD 001021] - 688 ERRORE TOOLTABLE - SINCRONISMO DATI -000023|PLC|FAULT|[COD 001022] - 688 ERRORE TOOLTABLE - UTENSILE NON TROVATO -000024|PLC|FAULT|[COD 001023] - 688 ERRORE TOOLTABLE - PASTIGLIA NON TROVATA -000025|PLC|FAULT|[COD 001024] - 688 ERRORE TOOLTABLE - FAMIGLIA NON TROVATA -000026|PLC|FAULT|[COD 001025] - 688 ERRORE TOOLTABLE - MAGAZZINO/POSTO NON TROVATO -000027|PLC|FAULT|[COD 001026] - 688 ERRORE TOOLTABLE - VITA UT. ESAURITA PER FAMIGLIA -000028|PLC|FAULT|[COD 001027] - 688 ERRORE TOOLTABLE - POSTO MAGAZZINO NON TROVATO -000029|PLC|FAULT|[COD 001028] - ... -000030|PLC|FAULT|[COD 001029] - ... -000031|PLC|FAULT|[COD 001030] - ... -000032|PLC|FAULT|[COD 001031] - 146 FIELDBUS KO (375) -000033|PLC|FAULT|[COD 001032] - -000034|PLC|FAULT|[COD 001033] - -000035|PLC|FAULT|[COD 001034] - -000036|PLC|FAULT|[COD 001035] - -000037|PLC|FAULT|[COD 001036] - -000038|PLC|FAULT|[COD 001037] - -000039|PLC|FAULT|[COD 001038] - -000040|PLC|FAULT|[COD 001039] - -000041|PLC|FAULT|[COD 001040] - -000042|PLC|FAULT|[COD 001041] - -000043|PLC|FAULT|[COD 001042] - -000044|PLC|FAULT|[COD 001043] - -000045|PLC|FAULT|[COD 001044] - -000046|PLC|FAULT|[COD 001045] - -000047|PLC|FAULT|[COD 001046] - -000048|PLC|FAULT|[COD 001047] - -000049|PLC|FAULT|[COD 001048] - -000050|PLC|FAULT|[COD 001049] - -000051|PLC|FAULT|[COD 001050] - -000052|PLC|FAULT|[COD 001051] - -000053|PLC|FAULT|[COD 001052] - -000054|PLC|FAULT|[COD 001053] - -000055|PLC|FAULT|[COD 001054] - -000056|PLC|FAULT|[COD 001055] - -000057|PLC|FAULT|[COD 001056] - -000058|PLC|FAULT|[COD 001057] - -000059|PLC|FAULT|[COD 001058] - -000060|PLC|FAULT|[COD 001059] - -000061|PLC|FAULT|[COD 001060] - -000062|PLC|FAULT|[COD 001061] - -000063|PLC|FAULT|[COD 001062] - -000064|PLC|FAULT|[COD 001063] - -000065|PLC|FAULT|[COD 001064] - -000066|PLC|FAULT|[COD 001065] - -000067|PLC|FAULT|[COD 001066] - -000068|PLC|FAULT|[COD 001067] - -000069|PLC|FAULT|[COD 001068] - -000070|PLC|FAULT|[COD 001069] - -000071|PLC|FAULT|[COD 001070] - -000072|PLC|FAULT|[COD 001071] - -000073|PLC|FAULT|[COD 001072] - -000074|PLC|FAULT|[COD 001073] - -000075|PLC|FAULT|[COD 001074] - -000076|PLC|FAULT|[COD 001075] - -000077|PLC|FAULT|[COD 001076] - -000078|PLC|FAULT|[COD 001077] - -000079|PLC|FAULT|[COD 001078] - -000080|PLC|FAULT|[COD 001079] - -000081|PLC|FAULT|[COD 001080] - -000082|PLC|FAULT|[COD 001081] - -000083|PLC|FAULT|[COD 001082] - -000084|PLC|FAULT|[COD 001083] - -000085|PLC|FAULT|[COD 001084] - -000086|PLC|FAULT|[COD 001085] - -000087|PLC|FAULT|[COD 001086] - -000088|PLC|FAULT|[COD 001087] - -000089|PLC|FAULT|[COD 001088] - -000090|PLC|FAULT|[COD 001089] - -000091|PLC|FAULT|[COD 001090] - -000092|PLC|FAULT|[COD 001091] - -000093|PLC|FAULT|[COD 001092] - -000094|PLC|FAULT|[COD 001093] - -000095|PLC|FAULT|[COD 001094] - -000096|PLC|FAULT|[COD 001095] - -000097|PLC|FAULT|[COD 001096] - -000098|PLC|FAULT|[COD 001097] - -000099|PLC|FAULT|[COD 001098] - -000100|PLC|FAULT|[COD 001099] - -000101|PLC|FAULT|[COD 001100] - -000102|PLC|FAULT|[COD 001101] - -000103|PLC|FAULT|[COD 001102] - -000104|PLC|FAULT|[COD 001103] - -000105|PLC|FAULT|[COD 001104] - -000106|PLC|FAULT|[COD 001105] - -000107|PLC|FAULT|[COD 001106] - -000108|PLC|FAULT|[COD 001107] - -000109|PLC|FAULT|[COD 001108] - -000110|PLC|FAULT|[COD 001109] - -000111|PLC|FAULT|[COD 001110] - -000112|PLC|FAULT|[COD 001111] - -000113|PLC|FAULT|[COD 001112] - -000114|PLC|FAULT|[COD 001113] - -000115|PLC|FAULT|[COD 001114] - -000116|PLC|FAULT|[COD 001115] - -000117|PLC|FAULT|[COD 001116] - -000118|PLC|FAULT|[COD 001117] - -000119|PLC|FAULT|[COD 001118] - -000120|PLC|FAULT|[COD 001119] - -000121|PLC|FAULT|[COD 001120] - -000122|PLC|FAULT|[COD 001121] - -000123|PLC|FAULT|[COD 001122] - -000124|PLC|FAULT|[COD 001123] - -000125|PLC|FAULT|[COD 001124] - -000126|PLC|FAULT|[COD 001125] - -000127|PLC|FAULT|[COD 001126] - -000128|PLC|FAULT|[COD 001127] - -000129|PLC|FAULT|[COD 001128] - -000130|PLC|FAULT|[COD 001129] - -000131|PLC|FAULT|[COD 001130] - -000132|PLC|FAULT|[COD 001131] - -000133|PLC|FAULT|[COD 001132] - -000134|PLC|FAULT|[COD 001133] - -000135|PLC|FAULT|[COD 001134] - -000136|PLC|FAULT|[COD 001135] - -000137|PLC|FAULT|[COD 001136] - -000138|PLC|FAULT|[COD 001137] - -000139|PLC|FAULT|[COD 001138] - -000140|PLC|FAULT|[COD 001139] - -000141|PLC|FAULT|[COD 001140] - -000142|PLC|FAULT|[COD 001141] - -000143|PLC|FAULT|[COD 001142] - -000144|PLC|FAULT|[COD 001143] - -000145|PLC|FAULT|[COD 001144] - -000146|PLC|FAULT|[COD 001145] - -000147|PLC|FAULT|[COD 001146] - -000148|PLC|FAULT|[COD 001147] - -000149|PLC|FAULT|[COD 001148] - -000150|PLC|FAULT|[COD 001149] - -000151|PLC|FAULT|[COD 001150] - -000152|PLC|FAULT|[COD 001151] - -000153|PLC|FAULT|[COD 001152] - -000154|PLC|FAULT|[COD 001153] - -000155|PLC|FAULT|[COD 001154] - -000156|PLC|FAULT|[COD 001155] - -000157|PLC|FAULT|[COD 001156] - -000158|PLC|FAULT|[COD 001157] - -000159|PLC|FAULT|[COD 001158] - -000160|PLC|FAULT|[COD 001159] - -000161|PLC|FAULT|[COD 001160] - -000162|PLC|FAULT|[COD 001161] - -000163|PLC|FAULT|[COD 001162] - -000164|PLC|FAULT|[COD 001163] - -000165|PLC|FAULT|[COD 001164] - -000166|PLC|FAULT|[COD 001165] - -000167|PLC|FAULT|[COD 001166] - -000168|PLC|FAULT|[COD 001167] - -000169|PLC|FAULT|[COD 001168] - -000170|PLC|FAULT|[COD 001169] - -000171|PLC|FAULT|[COD 001170] - -000172|PLC|FAULT|[COD 001171] - -000173|PLC|FAULT|[COD 001172] - -000174|PLC|FAULT|[COD 001173] - -000175|PLC|FAULT|[COD 001174] - -000176|PLC|FAULT|[COD 001175] - -000177|PLC|FAULT|[COD 001176] - -000178|PLC|FAULT|[COD 001177] - -000179|PLC|FAULT|[COD 001178] - -000180|PLC|FAULT|[COD 001179] - -000181|PLC|FAULT|[COD 001180] - -000182|PLC|FAULT|[COD 001181] - -000183|PLC|FAULT|[COD 001182] - -000184|PLC|FAULT|[COD 001183] - -000185|PLC|FAULT|[COD 001184] - -000186|PLC|FAULT|[COD 001185] - -000187|PLC|FAULT|[COD 001186] - -000188|PLC|FAULT|[COD 001187] - -000189|PLC|FAULT|[COD 001188] - -000190|PLC|FAULT|[COD 001189] - -000191|PLC|FAULT|[COD 001190] - -000192|PLC|FAULT|[COD 001191] - -000193|PLC|FAULT|[COD 001192] - -000194|PLC|FAULT|[COD 001193] - -000195|PLC|FAULT|[COD 001194] - -000196|PLC|FAULT|[COD 001195] - -000197|PLC|FAULT|[COD 001196] - -000198|PLC|FAULT|[COD 001197] - -000199|PLC|FAULT|[COD 001198] - -000200|PLC|FAULT|[COD 001199] - -000201|PLC|FAULT|[COD 001200] - -000202|PLC|FAULT|[COD 001201] - -000203|PLC|FAULT|[COD 001202] - -000204|PLC|FAULT|[COD 001203] - -000205|PLC|FAULT|[COD 001204] - -000206|PLC|FAULT|[COD 001205] - -000207|PLC|FAULT|[COD 001206] - -000208|PLC|FAULT|[COD 001207] - -000209|PLC|FAULT|[COD 001208] - -000210|PLC|FAULT|[COD 001209] - -000211|PLC|FAULT|[COD 001210] - -000212|PLC|FAULT|[COD 001211] - -000213|PLC|FAULT|[COD 001212] - -000214|PLC|FAULT|[COD 001213] - -000215|PLC|FAULT|[COD 001214] - -000216|PLC|FAULT|[COD 001215] - -000217|PLC|FAULT|[COD 001216] - -000218|PLC|FAULT|[COD 001217] - -000219|PLC|FAULT|[COD 001218] - -000220|PLC|FAULT|[COD 001219] - -000221|PLC|FAULT|[COD 001220] - -000222|PLC|FAULT|[COD 001221] - -000223|PLC|FAULT|[COD 001222] - -000224|PLC|FAULT|[COD 001223] - -000225|PLC|FAULT|[COD 001224] - -000226|PLC|FAULT|[COD 001225] - -000227|PLC|FAULT|[COD 001226] - -000228|PLC|FAULT|[COD 001227] - -000229|PLC|FAULT|[COD 001228] - -000230|PLC|FAULT|[COD 001229] - -000231|PLC|FAULT|[COD 001230] - -000232|PLC|FAULT|[COD 001231] - -000233|PLC|FAULT|[COD 001232] - -000234|PLC|FAULT|[COD 001233] - -000235|PLC|FAULT|[COD 001234] - -000236|PLC|FAULT|[COD 001235] - -000237|PLC|FAULT|[COD 001236] - -000238|PLC|FAULT|[COD 001237] - -000239|PLC|FAULT|[COD 001238] - -000240|PLC|FAULT|[COD 001239] - -000241|PLC|FAULT|[COD 001240] - -000242|PLC|FAULT|[COD 001241] - -000243|PLC|FAULT|[COD 001242] - -000244|PLC|FAULT|[COD 001243] - -000245|PLC|FAULT|[COD 001244] - -000246|PLC|FAULT|[COD 001245] - -000247|PLC|FAULT|[COD 001246] - -000248|PLC|FAULT|[COD 001247] - -000249|PLC|FAULT|[COD 001248] - -000250|PLC|FAULT|[COD 001249] - -000251|PLC|FAULT|[COD 001250] - -000252|PLC|FAULT|[COD 001251] - -000253|PLC|FAULT|[COD 001252] - -000254|PLC|FAULT|[COD 001253] - -000255|PLC|FAULT|[COD 001254] - -000256|PLC|FAULT|[COD 001255] - -000257|PLC|FAULT|[COD 002000] - 444 PRESSIONE LIQUIDO DI RAFFREDDAMENTO INSUFFICIENTE -000258|PLC|FAULT|[COD 002001] - 441 MALFUNZIONAMENTO RAFFREDDAMENTO MANDRINI -000259|PLC|FAULT|[COD 002002] - 276 LIMITI SOFTWARE ASSE X NON ATTUALI -000260|PLC|FAULT|[COD 002003] - 512 CAMBIO ZONA INTERROTTO -000261|PLC|FAULT|[COD 002004] - 346 PARATIA NON IN POSIZIONE -000262|PLC|FAULT|[COD 002005] - 607 PREMERE PRENOTAZIONE CAMBIO ZONA -000263|PLC|FAULT|[COD 002006] - 150 AZIONAMENTI NON ABILITATI -000264|PLC|FAULT|[COD 002007] - 161 COMUNICAZIONE INVERTER IN ERRORE -000265|PLC|FAULT|[COD 002008] - 162 FATAL ERROR INVERTER -000266|PLC|FAULT|[COD 002009] - 398 PRESSIONE ARIA INSUFFICIENTE -000267|PLC|FAULT|[COD 002010] - 400 LUBRIFICAZIONE INEFFICIENTE -000268|PLC|FAULT|[COD 002011] - 460 ASSE B BLOCCATO -000269|PLC|FAULT|[COD 002012] - 458 ASSE B NON BLOCCATO -000270|PLC|FAULT|[COD 002013] - 460 ASSE C BLOCCATO -000271|PLC|FAULT|[COD 002014] - 458 ASSE C NON BLOCCATO -000272|PLC|FAULT|[COD 002015] - 105 MACCHINA IN HOLD -000273|PLC|FAULT|[COD 002016] - 614 PREMERE LA SOFTKEY RIPRISTINO ACCOPPIAMENTO Z-W -000274|PLC|FAULT|[COD 002017] - 593 PROTEZIONI DI SICUREZZA -000275|PLC|FAULT|[COD 002018] - 362 MONTANTE CENTRALE NON IN POSIZIONE -000276|PLC|FAULT|[COD 002019] - 157 SICUREZZE ANTICADUTA ASSE Z NON OK -000277|PLC|FAULT|[COD 002020] - 158 PIOLO ANTICADUTA ASSE Z NON IN POSIZIONE -000278|PLC|FAULT|[COD 002021] - 115 CONTROLLO VELOCITA MANDRINO -000279|PLC|FAULT|[COD 002022] - 135 CONVERTITORE IN BLOCCO -000280|PLC|FAULT|[COD 002023] - 514 PROTEZIONE SUPPORTO LASER NON IN POSIZIONE -000281|PLC|FAULT|[COD 002024] - 561 LASER NON IN POSIZIONE -000282|PLC|FAULT|[COD 002025] - 230 RELE TERMICO POMPA VUOTO 1 -000283|PLC|FAULT|[COD 002026] - 230 RELE TERMICO POMPA VUOTO 2 -000284|PLC|FAULT|[COD 002027] - 200 RELE TERMICO MANDRINO -000285|PLC|FAULT|[COD 002028] - 168 CONVERTITORE NON ABILITATO -000286|PLC|FAULT|[COD 002029] - 333 COMUNICAZIONE VOLANTINO IN ERRORE -000287|PLC|FAULT|[COD 002030] - 390 FUNZIONE T NON PERMESSA -000288|PLC|FAULT|[COD 002031] - 429 UTENSILE IN MANDRINO NON OK -000289|PLC|FAULT|[COD 002032] - 245 PROTEZIONE TERMICA ASSE A -000290|PLC|FAULT|[COD 002033] - 245 PROTEZIONE TERMICA ASSE C -000291|PLC|FAULT|[COD 002034] - 004 VUOI ATTIVARE IL PROGRAMMA? PREMERE LA SOFTKEY SI OPPURE RESET -000292|PLC|FAULT|[COD 002035] - 490 VERIFICA POSIZIONE UTENSILI -000293|PLC|FAULT|[COD 002036] - 522 NUMERO DI GIRI TROPPO ELEVATI -000294|PLC|FAULT|[COD 002037] - 498 CARICO MASSIMO SUL MANDRINO -000295|PLC|FAULT|[COD 002038] - 397 CIRCUITO REFRIGERANTE UTENSILE NON OK -000296|PLC|FAULT|[COD 002039] - 465 UTENSILE ROTTO -000297|PLC|FAULT|[COD 002040] - 559 LASER/TASTATORE IN MANDRINO -000298|PLC|FAULT|[COD 002041] - 572 TASTATORE NON PRONTO -000299|PLC|FAULT|[COD 002042] - 514 PROTEZIONE SUPPORTO TASTATORE NON IN POSIZIONE -000300|PLC|FAULT|[COD 002043] - 561 TASTATORE NON IN POSIZIONE -000301|PLC|FAULT|[COD 002044] - 163 FRENO CONVERTITORE NON OK -000302|PLC|FAULT|[COD 002045] - 572 RADIO PROBE - BATTERIA SCARICA -000303|PLC|FAULT|[COD 002046] - 640 TAVOLE NON IN POSIZIONE CORRETTA -000304|PLC|FAULT|[COD 002047] - 673 ASSE Z NON OK PER CAMBIO TAVOLA -000305|PLC|FAULT|[COD 002048] - 641 CAMBIO TAVOLA INTERROTTO -000306|PLC|FAULT|[COD 002049] - 130 PROBE DEVICE NON OK - DISATTIVARE DRY RUN -000307|PLC|FAULT|[COD 002050] - 276 LIMITI SOFTWARE ASSE C NON ATTUALI -000308|PLC|FAULT|[COD 002051] - 495 AZZERAMENTO ASSI CON UTENSILE NON CONSENTITO -000309|PLC|FAULT|[COD 002052] - 479 PORTELLE ASPIRAZIONE DESTRA NON IN POSIZIONE -000310|PLC|FAULT|[COD 002053] - 479 PORTELLE ASPIRAZIONE SINISTRA NON IN POSIZIONE -000311|PLC|FAULT|[COD 002054] - ... -000312|PLC|FAULT|[COD 002055] - ... -000313|PLC|FAULT|[COD 002056] - ... -000314|PLC|FAULT|[COD 002057] - ... -000315|PLC|FAULT|[COD 002058] - 444 PRESSIONE LIQUIDO DI RAFFREDDAMENTO MOTORI TORQUE INSUFFICIENTE(TORQUE) -000316|PLC|FAULT|[COD 002059] - 672 CIRCUITO LIQUIDO DI RAFFREDDAMENTO MOTORI TORQUE NON OK -000317|PLC|FAULT|[COD 002060] - 265 ASSE X NON IN POSIZIONE PER AZZERAMENTO -000318|PLC|FAULT|[COD 002061] - 265 ASSE Y NON IN POSIZIONE PER AZZERAMENTO -000319|PLC|FAULT|[COD 002062] - 265 ASSE Z NON IN POSIZIONE PER AZZERAMENTO -000320|PLC|FAULT|[COD 002063] - ... -000321|PLC|FAULT|[COD 002064] - 551 CONDIZIONI NON OK PER GRUPPO A FORARE -000322|PLC|FAULT|[COD 002065] - 265 ASSE B NON IN POSIZIONE PER AZZERAMENTO -000323|PLC|FAULT|[COD 002066] - 265 ASSE C NON IN POSIZIONE PER AZZERAMENTO -000324|PLC|FAULT|[COD 002067] - 270 RELE TERMICO GRUPPO DI FORATURA -000325|PLC|FAULT|[COD 002068] - ... -000326|PLC|FAULT|[COD 002069] - ... -000327|PLC|FAULT|[COD 002070] - 105 STOP DA DISPOSITIVO DI MONITORAGGIO -000328|PLC|FAULT|[COD 002071] - ... -000329|PLC|FAULT|[COD 002072] - 551 CONDIZIONI NON OK PER GRUPPO A FORARE -000330|PLC|FAULT|[COD 002073] - 265 ASSE B NON IN POSIZIONE PER AZZERAMENTO -000331|PLC|FAULT|[COD 002074] - 265 ASSE C NON IN POSIZIONE PER AZZERAMENTO -000332|PLC|FAULT|[COD 002075] - 270 RELE TERMICO GRUPPO DI FORATURA -000333|PLC|FAULT|[COD 002076] - ... -000334|PLC|FAULT|[COD 002077] - ... -000335|PLC|FAULT|[COD 002078] - 105 STOP DA DISPOSITIVO DI MONITORAGGIO -000336|PLC|FAULT|[COD 002079] - ... -000337|PLC|FAULT|[COD 002080] - -000338|PLC|FAULT|[COD 002081] - -000339|PLC|FAULT|[COD 002082] - -000340|PLC|FAULT|[COD 002083] - -000341|PLC|FAULT|[COD 002084] - -000342|PLC|FAULT|[COD 002085] - -000343|PLC|FAULT|[COD 002086] - -000344|PLC|FAULT|[COD 002087] - -000345|PLC|FAULT|[COD 002088] - -000346|PLC|FAULT|[COD 002089] - -000347|PLC|FAULT|[COD 002090] - -000348|PLC|FAULT|[COD 002091] - -000349|PLC|FAULT|[COD 002092] - -000350|PLC|FAULT|[COD 002093] - -000351|PLC|FAULT|[COD 002094] - -000352|PLC|FAULT|[COD 002095] - -000353|PLC|FAULT|[COD 002096] - -000354|PLC|FAULT|[COD 000000] - -000355|PLC|FAULT|[COD 000000] - -000356|PLC|FAULT|[COD 000000] - -000357|PLC|FAULT|[COD 000000] - -000358|PLC|FAULT|[COD 000000] - -000359|PLC|FAULT|[COD 000000] - -000360|PLC|FAULT|[COD 000000] - -000361|PLC|FAULT|[COD 000000] - -000362|PLC|FAULT|[COD 000000] - -000363|PLC|FAULT|[COD 000000] - -000364|PLC|FAULT|[COD 000000] - -000365|PLC|FAULT|[COD 000000] - -000366|PLC|FAULT|[COD 000000] - -000367|PLC|FAULT|[COD 000000] - -000368|PLC|FAULT|[COD 000000] - -000369|PLC|FAULT|[COD 002100] - 503 CAMBIO UTENSILE IN CORSO -000370|PLC|FAULT|[COD 002101] - 781 UNO O PIU ASSI SENZA RIFERIMENTO -000371|PLC|FAULT|[COD 002102] - 674 MACCHINA NON IN ZONA DI LAVORO -000372|PLC|FAULT|[COD 002103] - 785 CONSENSO APERTURA PORTE NEGATO -000373|PLC|FAULT|[COD 002104] - 520 FUNZIONE STALL MODE ATTIVA -000374|PLC|FAULT|[COD 002105] - 450 UTENSILE MANDRINO NON BLOCCATO -000375|PLC|FAULT|[COD 002106] - 780 STAZIONE OCCUPATA MAGAZZINO -000376|PLC|FAULT|[COD 002107] - 530 PULSANTIERA ESTERNA ABILITATA -000377|PLC|FAULT|[COD 002108] - 504 CAMBIO UTENSILE INTERROTTO -000378|PLC|FAULT|[COD 002109] - 363 MONTANTE CENTRALE ALTO -000379|PLC|FAULT|[COD 002110] - =--- PREALLARME TERMICO TORQUE A -000380|PLC|FAULT|[COD 002111] - 498 CARICO MASSIMO SUL MANDRINO SUPERATO SOGLIA S1 -000381|PLC|FAULT|[COD 002112] - --- PREALLARME TERMICO TORQUE C -000382|PLC|FAULT|[COD 002113] - 432 UTENSILE NON SGANCIATO -000383|PLC|FAULT|[COD 002114] - 475 CUFFIA ASPIRAZIONE NON IN POSIZIONE -000384|PLC|FAULT|[COD 002115] - 498 CARICO MASSIMO SUL MANDRINO SUPERATO SOGLIA S6 -000385|PLC|FAULT|[COD 002116] - 505 MOVIMENTO CONSENTITO Z+ -000386|PLC|FAULT|[COD 002117] - 545 ASSE Z NON IN POSIZIONE -000387|PLC|FAULT|[COD 002118] - 528 MODALITA PROVA PROGRAMMA ATTIVA -000388|PLC|FAULT|[COD 002119] - 351 MESSAGGI PLC INVIATO SMS -000389|PLC|FAULT|[COD 002120] - 603 INDICARE IL NOME DELL OPERATORE E CAUSA ARRESTO MACCHINA -000390|PLC|FAULT|[COD 002121] - 538 TAVOLA NON POSIZIONATA -000391|PLC|FAULT|[COD 002122] - 595 BARRIERE DI SICUREZZA -000392|PLC|FAULT|[COD 002123] - 689 AVVISO TOOLTABLE - T INTERPRETATA COME MANINA -000393|PLC|FAULT|[COD 002124] - 689 AVVISO TOOLTABLE - T INTERPRETATA COME ID UTENSILE -000394|PLC|FAULT|[COD 002125] - 260 REGOLAZIONE AUTOMATICA FEED OVERRIDE IN CORSO -000395|PLC|FAULT|[COD 002126] - 464 VITA UTENSILE ESAURITA -000396|PLC|FAULT|[COD 002127] - 003 SEI SICURO DI VOLER CAMBIARE ORIGINE ? PREMERE SOFTKEY SI O RESET -000397|PLC|FAULT|[COD 002128] - 305 BLOCCAGGIO A DEPRESSIONE 1 INEFFICIENTE -000398|PLC|FAULT|[COD 002129] - 305 BLOCCAGGIO A DEPRESSIONE 2 INEFFICIENTE -000399|PLC|FAULT|[COD 002130] - 300 BLOCCAGGIO A PRESSIONE 1 INEFFICIENTE -000400|PLC|FAULT|[COD 002131] - 300 BLOCCAGGIO A PRESSIONE 2 INEFFICIENTE -000401|PLC|FAULT|[COD 002132] - 305 BLOCCAGGIO A DEPRESSIONE SUPPLEMENTARE 1 INEFFICIENTE -000402|PLC|FAULT|[COD 002133] - 305 BLOCCAGGIO A DEPRESSIONE SUPPLEMENTARE 2 INEFFICIENTE -000403|PLC|FAULT|[COD 002134] - 584 PORTE DI SICUREZZA 1 NON CHIUSE -000404|PLC|FAULT|[COD 002135] - 584 PORTE DI SICUREZZA 2 NON CHIUSE -000405|PLC|FAULT|[COD 002136] - 406 PULSANTE POWER-OFF PREMUTO -000406|PLC|FAULT|[COD 002137] - 412 AZZERAMENTO AUTOMATICO ASSI IN CORSO -000407|PLC|FAULT|[COD 002138] - 689 AVVISO TOOLTABLE - RICHIESTA CONFERMA ATTREZZAGGIO -000408|PLC|FAULT|[COD 002139] - 700 TABELLE IN MODIFICA -000409|PLC|FAULT|[COD 002140] - 442 MAGAZZINO DISCO MOBILE NON IN POSIZIONE -000410|PLC|FAULT|[COD 002141] - 442 MAGAZZINO PICK-UP 1 NON IN POSIZIONE -000411|PLC|FAULT|[COD 002142] - 442 MAGAZZINO PICK-UP 2 NON IN POSIZIONE -000412|PLC|FAULT|[COD 002143] - 442 MAGAZINO LATERALE 1 NON IN POSIZIONE -000413|PLC|FAULT|[COD 002144] - 442 MAGAZINO LATERALE 2 NON IN POSIZIONE -000414|PLC|FAULT|[COD 002145] - 514 PROTEZIONE MAGAZZINO PICK-UP 1 NON IN POSIZIONE -000415|PLC|FAULT|[COD 002146] - 514 PROTEZIONE MAGAZZINO PICK-UP 2 NON IN POSIZIONE -000416|PLC|FAULT|[COD 002147] - 514 PROTEZIONE MAGAZZINO LATERALE 1 NON IN POSIZIONE -000417|PLC|FAULT|[COD 002148] - 514 PROTEZIONE MAGAZZINO LATERALE 2 NON IN POSIZIONE -000418|PLC|FAULT|[COD 002149] - 334 ERRORE COMUNICAZIONE CANBUS -000419|PLC|FAULT|[COD 002150] - 147 CAMBIO UTENSILE 1 IN ALLARME -000420|PLC|FAULT|[COD 002151] - 160 AZIONAMENTO CAMBIO UTENSILE 1 NON PRONTO -000421|PLC|FAULT|[COD 002152] - 151 AZIONAMENTO CAMBIO UTENSILE 1 NON ALIMENTATO -000422|PLC|FAULT|[COD 002153] - 442 MAGAZZINO UTENSILI DISCO 1 NON IN POSIZIONE -000423|PLC|FAULT|[COD 002154] - 289 ATTREZZAGGIO CAMBIO UTENSILE 1 IN CORSO -000424|PLC|FAULT|[COD 002155] - 584 PORTA DI SICUREZZA MAGAZZINO DISCO 1 NON CHIUSA -000425|PLC|FAULT|[COD 002156] - 514 PROTEZIONE MAGAZZINO DISCO 1 NON IN POSIZIONE -000426|PLC|FAULT|[COD 002157] - 147 CAMBIO UTENSILE 2 IN ALLARME -000427|PLC|FAULT|[COD 002158] - 160 AZIONAMENTO CAMBIO UTENSILE 2 NON PRONTO -000428|PLC|FAULT|[COD 002159] - 151 AZIONAMENTO CAMBIO UTENSILE 2 NON ALIMENTATO -000429|PLC|FAULT|[COD 002160] - 442 MAGAZZINO UTENSILI DISCO 2 NON IN POSIZIONE -000430|PLC|FAULT|[COD 002161] - 289 ATTREZZAGGIO CAMBIO UTENSILE 2 IN CORSO -000431|PLC|FAULT|[COD 002162] - 584 PORTA DI SICUREZZA MAGAZZINO DISCO 2 NON CHIUSA -000432|PLC|FAULT|[COD 002163] - 514 PROTEZIONE MAGAZZINO DISCO 2 NON IN POSIZIONE -000433|PLC|FAULT|[COD 002164] - -000434|PLC|FAULT|[COD 002165] - 550 GRUPPO DI FORATURA NON IN POSIZIONE -000435|PLC|FAULT|[COD 002166] - ... -000436|PLC|FAULT|[COD 002167] - ... -000437|PLC|FAULT|[COD 002168] - ... -000438|PLC|FAULT|[COD 002169] - ... -000439|PLC|FAULT|[COD 002170] - 250 CICLO DI ATTREZZAGGIO AUTOMATICO IN CORSO -000440|PLC|FAULT|[COD 002171] - 251 CICLO DI ATTREZZAGGIO AUTOMATICO INTERROTTO -000441|PLC|FAULT|[COD 002172] - 605 DISPOSITIVO DI REGISTRAZIONE DATI UTENSILI NON IN POSIZIONE -000442|PLC|FAULT|[COD 002173] - ... -000443|PLC|FAULT|[COD 002174] - ... -000444|PLC|FAULT|[COD 002175] - ... -000445|PLC|FAULT|[COD 002176] - 130 DISPOSITIVO MONITORAGGIO NON PRONTO -000446|PLC|FAULT|[COD 002177] - 773 LIMITE 1 MONITORAGGIO NON OK -000447|PLC|FAULT|[COD 002178] - 773 LIMITE 2 MONITORAGGIO NON OK -000448|PLC|FAULT|[COD 002179] - 773 LIMITE 3 MONITORAGGIO NON OK -000449|PLC|FAULT|[COD 002180] - ... -000450|PLC|FAULT|[COD 002181] - -000451|PLC|FAULT|[COD 002182] - -000452|PLC|FAULT|[COD 002183] - -000453|PLC|FAULT|[COD 002184] - -000454|PLC|FAULT|[COD 002185] - -000455|PLC|FAULT|[COD 002186] - -000456|PLC|FAULT|[COD 002187] - -000457|PLC|FAULT|[COD 002188] - -000458|PLC|FAULT|[COD 002189] - -000459|PLC|FAULT|[COD 002190] - -000460|PLC|FAULT|[COD 002191] - -000461|PLC|FAULT|[COD 002192] - -000462|PLC|FAULT|[COD 002193] - -000463|PLC|FAULT|[COD 002194] - -000464|PLC|FAULT|[COD 002195] - -000465|PLC|FAULT|[COD 000000] - -000466|PLC|FAULT|[COD 000000] - -000467|PLC|FAULT|[COD 000000] - -000468|PLC|FAULT|[COD 000000] - -000469|PLC|FAULT|[COD 000000] - -000470|PLC|FAULT|[COD 000000] - -000471|PLC|FAULT|[COD 000000] - -000472|PLC|FAULT|[COD 000000] - -000473|PLC|FAULT|[COD 000000] - -000474|PLC|FAULT|[COD 000000] - -000475|PLC|FAULT|[COD 000000] - -000476|PLC|FAULT|[COD 000000] - -000477|PLC|FAULT|[COD 000000] - -000478|PLC|FAULT|[COD 000000] - -000479|PLC|FAULT|[COD 000000] - -000480|PLC|FAULT|[COD 000000] - -000481|PLC|FAULT|[COD 000000] - -000482|PLC|FAULT|[COD 000000] - -000483|PLC|FAULT|[COD 000000] - -000484|PLC|FAULT|[COD 000000] - -000485|PLC|FAULT|[COD 000000] - -000486|PLC|FAULT|[COD 000000] - -000487|PLC|FAULT|[COD 000000] - -000488|PLC|FAULT|[COD 000000] - -000489|PLC|FAULT|[COD 000000] - -000490|PLC|FAULT|[COD 000000] - -000491|PLC|FAULT|[COD 000000] - -000492|PLC|FAULT|[COD 000000] - -000493|PLC|FAULT|[COD 000000] - -000494|PLC|FAULT|[COD 000000] - -000495|PLC|FAULT|[COD 000000] - -000496|PLC|FAULT|[COD 000000] - -000497|PLC|FAULT|[COD 000000] - -000498|PLC|FAULT|[COD 000000] - -000499|PLC|FAULT|[COD 000000] - -000500|PLC|FAULT|[COD 000000] - -000501|PLC|FAULT|[COD 000000] - -000502|PLC|FAULT|[COD 000000] - -000503|PLC|FAULT|[COD 000000] - -000504|PLC|FAULT|[COD 000000] - -000505|PLC|FAULT|[COD 000000] - -000506|PLC|FAULT|[COD 000000] - -000507|PLC|FAULT|[COD 000000] - -000508|PLC|FAULT|[COD 000000] - -000509|PLC|FAULT|[COD 000000] - -000510|PLC|FAULT|[COD 000000] - -000511|PLC|FAULT|[COD 000000] - -000512|PLC|FAULT|[COD 000000] - -000513|PLC|FAULT|[COD 000000] - -000514|PLC|FAULT|[COD 000000] - -000515|PLC|FAULT|[COD 000000] - -000516|PLC|FAULT|[COD 000000] - -000517|PLC|FAULT|[COD 000000] - -000518|PLC|FAULT|[COD 000000] - -000519|PLC|FAULT|[COD 000000] - -000520|PLC|FAULT|[COD 000000] - -000521|PLC|FAULT|[COD 000000] - -000522|PLC|FAULT|[COD 000000] - -000523|PLC|FAULT|[COD 000000] - -000524|PLC|FAULT|[COD 000000] - -000525|PLC|FAULT|[COD 000000] - -000526|PLC|FAULT|[COD 000000] - -000527|PLC|FAULT|[COD 000000] - -000528|PLC|FAULT|[COD 000000] - -000529|PLC|FAULT|[COD 000000] - -000530|PLC|FAULT|[COD 000000] - -000531|PLC|FAULT|[COD 000000] - -000532|PLC|FAULT|[COD 000000] - -000533|PLC|FAULT|[COD 000000] - -000534|PLC|FAULT|[COD 000000] - -000535|PLC|FAULT|[COD 000000] - -000536|PLC|FAULT|[COD 000000] - -000537|PLC|FAULT|[COD 000000] - -000538|PLC|FAULT|[COD 000000] - -000539|PLC|FAULT|[COD 000000] - -000540|PLC|FAULT|[COD 000000] - -000541|PLC|FAULT|[COD 000000] - -000542|PLC|FAULT|[COD 000000] - -000543|PLC|FAULT|[COD 000000] - -000544|PLC|FAULT|[COD 000000] - -000545|PLC|FAULT|[COD 000000] - -000546|PLC|FAULT|[COD 000000] - -000547|PLC|FAULT|[COD 000000] - -000548|PLC|FAULT|[COD 000000] - -000549|PLC|FAULT|[COD 000000] - -000550|PLC|FAULT|[COD 000000] - -000551|PLC|FAULT|[COD 000000] - -000552|PLC|FAULT|[COD 000000] - -000553|PLC|FAULT|[COD 000000] - -000554|PLC|FAULT|[COD 000000] - -000555|PLC|FAULT|[COD 000000] - -000556|PLC|FAULT|[COD 000000] - -000557|PLC|FAULT|[COD 000000] - -000558|PLC|FAULT|[COD 000000] - -000559|PLC|FAULT|[COD 000000] - -000560|PLC|FAULT|[COD 000000] - -000561|PLC|FAULT|[COD 000000] - -000562|PLC|FAULT|[COD 000000] - -000563|PLC|FAULT|[COD 000000] - -000564|PLC|FAULT|[COD 000000] - -000565|PLC|FAULT|[COD 000000] - -000566|PLC|FAULT|[COD 000000] - -000567|PLC|FAULT|[COD 000000] - -000568|PLC|FAULT|[COD 000000] - -000569|PLC|FAULT|[COD 000000] - -000570|PLC|FAULT|[COD 000000] - -000571|PLC|FAULT|[COD 000000] - -000572|PLC|FAULT|[COD 000000] - -000573|PLC|FAULT|[COD 000000] - -000574|PLC|FAULT|[COD 000000] - -000575|PLC|FAULT|[COD 000000] - -000576|PLC|FAULT|[COD 000000] - -000577|PLC|FAULT|[COD 000000] - -000578|PLC|FAULT|[COD 000000] - -000579|PLC|FAULT|[COD 000000] - -000580|PLC|FAULT|[COD 000000] - -000581|PLC|FAULT|[COD 000000] - -000582|PLC|FAULT|[COD 000000] - -000583|PLC|FAULT|[COD 000000] - -000584|PLC|FAULT|[COD 000000] - -000585|PLC|FAULT|[COD 000000] - -000586|PLC|FAULT|[COD 000000] - -000587|PLC|FAULT|[COD 000000] - -000588|PLC|FAULT|[COD 000000] - -000589|PLC|FAULT|[COD 000000] - -000590|PLC|FAULT|[COD 000000] - -000591|PLC|FAULT|[COD 000000] - -000592|PLC|FAULT|[COD 000000] - -000593|PLC|FAULT|[COD 000000] - -000594|PLC|FAULT|[COD 000000] - -000595|PLC|FAULT|[COD 000000] - -000596|PLC|FAULT|[COD 000000] - -000597|PLC|FAULT|[COD 000000] - -000598|PLC|FAULT|[COD 000000] - -000599|PLC|FAULT|[COD 000000] - -000600|PLC|FAULT|[COD 000000] - -000601|PLC|FAULT|[COD 000000] - -000602|PLC|FAULT|[COD 000000] - -000603|PLC|FAULT|[COD 000000] - -000604|PLC|FAULT|[COD 000000] - -000605|PLC|FAULT|[COD 000000] - -000606|PLC|FAULT|[COD 000000] - -000607|PLC|FAULT|[COD 000000] - -000608|PLC|FAULT|[COD 000000] - -000609|PLC|FAULT|[COD 000000] - -000610|PLC|FAULT|[COD 000000] - -000611|PLC|FAULT|[COD 000000] - -000612|PLC|FAULT|[COD 000000] - -000613|PLC|FAULT|[COD 000000] - -000614|PLC|FAULT|[COD 000000] - -000615|PLC|FAULT|[COD 000000] - -000616|PLC|FAULT|[COD 000000] - -000617|PLC|FAULT|[COD 000000] - -000618|PLC|FAULT|[COD 000000] - -000619|PLC|FAULT|[COD 000000] - -000620|PLC|FAULT|[COD 000000] - -000621|PLC|FAULT|[COD 000000] - -000622|PLC|FAULT|[COD 000000] - -000623|PLC|FAULT|[COD 000000] - -000624|PLC|FAULT|[COD 000000] - -000625|PLC|FAULT|[COD 000000] - -000626|PLC|FAULT|[COD 000000] - -000627|PLC|FAULT|[COD 000000] - -000628|PLC|FAULT|[COD 000000] - -000629|PLC|FAULT|[COD 000000] - -000630|PLC|FAULT|[COD 000000] - -000631|PLC|FAULT|[COD 000000] - -000632|PLC|FAULT|[COD 000000] - -000633|PLC|FAULT|[COD 000000] - -000634|PLC|FAULT|[COD 000000] - -000635|PLC|FAULT|[COD 000000] - -000636|PLC|FAULT|[COD 000000] - -000637|PLC|FAULT|[COD 000000] - -000638|PLC|FAULT|[COD 000000] - -000639|PLC|FAULT|[COD 000000] - -000640|PLC|FAULT|[COD 000000] - -000641|PLC|FAULT|[COD 000000] - -000642|PLC|FAULT|[COD 000000] - -000643|PLC|FAULT|[COD 000000] - -000644|PLC|FAULT|[COD 000000] - -000645|PLC|FAULT|[COD 000000] - -000646|PLC|FAULT|[COD 000000] - -000647|PLC|FAULT|[COD 000000] - -000648|PLC|FAULT|[COD 000000] - -000649|PLC|FAULT|[COD 000000] - -000650|PLC|FAULT|[COD 000000] - -000651|PLC|FAULT|[COD 000000] - -000652|PLC|FAULT|[COD 000000] - -000653|PLC|FAULT|[COD 000000] - -000654|PLC|FAULT|[COD 000000] - -000655|PLC|FAULT|[COD 000000] - -000656|PLC|FAULT|[COD 000000] - -000657|PLC|FAULT|[COD 000000] - -000658|PLC|FAULT|[COD 000000] - -000659|PLC|FAULT|[COD 000000] - -000660|PLC|FAULT|[COD 000000] - -000661|PLC|FAULT|[COD 000000] - -000662|PLC|FAULT|[COD 000000] - -000663|PLC|FAULT|[COD 000000] - -000664|PLC|FAULT|[COD 000000] - -000665|PLC|FAULT|[COD 000000] - -000666|PLC|FAULT|[COD 000000] - -000667|PLC|FAULT|[COD 000000] - -000668|PLC|FAULT|[COD 000000] - -000669|PLC|FAULT|[COD 000000] - -000670|PLC|FAULT|[COD 000000] - -000671|PLC|FAULT|[COD 000000] - -000672|PLC|FAULT|[COD 000000] - -000673|PLC|FAULT|[COD 000000] - -000674|PLC|FAULT|[COD 000000] - -000675|PLC|FAULT|[COD 000000] - -000676|PLC|FAULT|[COD 000000] - -000677|PLC|FAULT|[COD 000000] - -000678|PLC|FAULT|[COD 000000] - -000679|PLC|FAULT|[COD 000000] - -000680|PLC|FAULT|[COD 000000] - -000681|PLC|FAULT|[COD 000000] - -000682|PLC|FAULT|[COD 000000] - -000683|PLC|FAULT|[COD 000000] - -000684|PLC|FAULT|[COD 000000] - -000685|PLC|FAULT|[COD 000000] - -000686|PLC|FAULT|[COD 000000] - -000687|PLC|FAULT|[COD 000000] - -000688|PLC|FAULT|[COD 000000] - -000689|PLC|FAULT|[COD 000000] - -000690|PLC|FAULT|[COD 000000] - -000691|PLC|FAULT|[COD 000000] - -000692|PLC|FAULT|[COD 000000] - -000693|PLC|FAULT|[COD 000000] - -000694|PLC|FAULT|[COD 000000] - -000695|PLC|FAULT|[COD 000000] - -000696|PLC|FAULT|[COD 000000] - -000697|PLC|FAULT|[COD 000000] - -000698|PLC|FAULT|[COD 000000] - -000699|PLC|FAULT|[COD 000000] - -000700|PLC|FAULT|[COD 000000] - -000701|PLC|FAULT|[COD 000000] - -000702|PLC|FAULT|[COD 000000] - -000703|PLC|FAULT|[COD 000000] - -000704|PLC|FAULT|[COD 000000] - -000705|PLC|FAULT|[COD 000000] - -000706|PLC|FAULT|[COD 000000] - -000707|PLC|FAULT|[COD 000000] - -000708|PLC|FAULT|[COD 000000] - -000709|PLC|FAULT|[COD 000000] - -000710|PLC|FAULT|[COD 000000] - -000711|PLC|FAULT|[COD 000000] - -000712|PLC|FAULT|[COD 000000] - -000713|PLC|FAULT|[COD 000000] - -000714|PLC|FAULT|[COD 000000] - -000715|PLC|FAULT|[COD 000000] - -000716|PLC|FAULT|[COD 000000] - -000717|PLC|FAULT|[COD 000000] - -000718|PLC|FAULT|[COD 000000] - -000719|PLC|FAULT|[COD 000000] - -000720|PLC|FAULT|[COD 000000] - -000721|PLC|FAULT|[COD 000000] - -000722|PLC|FAULT|[COD 000000] - -000723|PLC|FAULT|[COD 000000] - -000724|PLC|FAULT|[COD 000000] - -000725|PLC|FAULT|[COD 000000] - -000726|PLC|FAULT|[COD 000000] - -000727|PLC|FAULT|[COD 000000] - -000728|PLC|FAULT|[COD 000000] - -000729|PLC|FAULT|[COD 000000] - -000730|PLC|FAULT|[COD 000000] - -000731|PLC|FAULT|[COD 000000] - -000732|PLC|FAULT|[COD 000000] - -000733|PLC|FAULT|[COD 000000] - -000734|PLC|FAULT|[COD 000000] - -000735|PLC|FAULT|[COD 000000] - -000736|PLC|FAULT|[COD 000000] - -000737|PLC|FAULT|[COD 000000] - -000738|PLC|FAULT|[COD 000000] - -000739|PLC|FAULT|[COD 000000] - -000740|PLC|FAULT|[COD 000000] - -000741|PLC|FAULT|[COD 000000] - -000742|PLC|FAULT|[COD 000000] - -000743|PLC|FAULT|[COD 000000] - -000744|PLC|FAULT|[COD 000000] - -000745|PLC|FAULT|[COD 000000] - -000746|PLC|FAULT|[COD 000000] - -000747|PLC|FAULT|[COD 000000] - -000748|PLC|FAULT|[COD 000000] - -000749|PLC|FAULT|[COD 000000] - -000750|PLC|FAULT|[COD 000000] - -000751|PLC|FAULT|[COD 000000] - -000752|PLC|FAULT|[COD 000000] - -000753|PLC|FAULT|[COD 000000] - -000754|PLC|FAULT|[COD 000000] - -000755|PLC|FAULT|[COD 000000] - -000756|PLC|FAULT|[COD 000000] - -000757|PLC|FAULT|[COD 000000] - -000758|PLC|FAULT|[COD 000000] - -000759|PLC|FAULT|[COD 000000] - -000760|PLC|FAULT|[COD 000000] - -000761|PLC|FAULT|[COD 000000] - -000762|PLC|FAULT|[COD 000000] - -000763|PLC|FAULT|[COD 000000] - -000764|PLC|FAULT|[COD 000000] - -000765|PLC|FAULT|[COD 000000] - -000766|PLC|FAULT|[COD 000000] - -000767|PLC|FAULT|[COD 000000] - -000768|PLC|FAULT|[COD 000000] - -000769|PLC|FAULT|[COD 000000] - -000770|PLC|FAULT|[COD 000000] - -000771|PLC|FAULT|[COD 000000] - -000772|PLC|FAULT|[COD 000000] - -000773|PLC|FAULT|[COD 000000] - -000774|PLC|FAULT|[COD 000000] - -000775|PLC|FAULT|[COD 000000] - -000776|PLC|FAULT|[COD 000000] - -000777|PLC|FAULT|[COD 000000] - -000778|PLC|FAULT|[COD 000000] - -000779|PLC|FAULT|[COD 000000] - -000780|PLC|FAULT|[COD 000000] - -000781|PLC|FAULT|[COD 000000] - -000782|PLC|FAULT|[COD 000000] - -000783|PLC|FAULT|[COD 000000] - -000784|PLC|FAULT|[COD 000000] - -000785|PLC|FAULT|[COD 000000] - -000786|PLC|FAULT|[COD 000000] - -000787|PLC|FAULT|[COD 000000] - -000788|PLC|FAULT|[COD 000000] - -000789|PLC|FAULT|[COD 000000] - -000790|PLC|FAULT|[COD 000000] - -000791|PLC|FAULT|[COD 000000] - -000792|PLC|FAULT|[COD 000000] - -000793|PLC|FAULT|[COD 000000] - -000794|PLC|FAULT|[COD 000000] - -000795|PLC|FAULT|[COD 000000] - -000796|PLC|FAULT|[COD 000000] - -000797|PLC|FAULT|[COD 000000] - -000798|PLC|FAULT|[COD 000000] - -000799|PLC|FAULT|[COD 000000] - -000800|PLC|FAULT|[COD 000000] - -000801|PLC|FAULT|[COD 000000] - -000802|PLC|FAULT|[COD 000000] - -000803|PLC|FAULT|[COD 000000] - -000804|PLC|FAULT|[COD 000000] - -000805|PLC|FAULT|[COD 000000] - -000806|PLC|FAULT|[COD 000000] - -000807|PLC|FAULT|[COD 000000] - -000808|PLC|FAULT|[COD 000000] - -000809|PLC|FAULT|[COD 000000] - -000810|PLC|FAULT|[COD 000000] - -000811|PLC|FAULT|[COD 000000] - -000812|PLC|FAULT|[COD 000000] - -000813|PLC|FAULT|[COD 000000] - -000814|PLC|FAULT|[COD 000000] - -000815|PLC|FAULT|[COD 000000] - -000816|PLC|FAULT|[COD 000000] - -000817|PLC|FAULT|[COD 000000] - -000818|PLC|FAULT|[COD 000000] - -000819|PLC|FAULT|[COD 000000] - -000820|PLC|FAULT|[COD 000000] - -000821|PLC|FAULT|[COD 000000] - -000822|PLC|FAULT|[COD 000000] - -000823|PLC|FAULT|[COD 000000] - -000824|PLC|FAULT|[COD 000000] - -000825|PLC|FAULT|[COD 000000] - -000826|PLC|FAULT|[COD 000000] - -000827|PLC|FAULT|[COD 000000] - -000828|PLC|FAULT|[COD 000000] - -000829|PLC|FAULT|[COD 000000] - -000830|PLC|FAULT|[COD 000000] - -000831|PLC|FAULT|[COD 000000] - -000832|PLC|FAULT|[COD 000000] - -000833|PLC|FAULT|[COD 000000] - -000834|PLC|FAULT|[COD 000000] - -000835|PLC|FAULT|[COD 000000] - -000836|PLC|FAULT|[COD 000000] - -000837|PLC|FAULT|[COD 000000] - -000838|PLC|FAULT|[COD 000000] - -000839|PLC|FAULT|[COD 000000] - -000840|PLC|FAULT|[COD 000000] - -000841|PLC|FAULT|[COD 000000] - -000842|PLC|FAULT|[COD 000000] - -000843|PLC|FAULT|[COD 000000] - -000844|PLC|FAULT|[COD 000000] - -000845|PLC|FAULT|[COD 000000] - -000846|PLC|FAULT|[COD 000000] - -000847|PLC|FAULT|[COD 000000] - -000848|PLC|FAULT|[COD 000000] - -000849|PLC|FAULT|[COD 000000] - -000850|PLC|FAULT|[COD 000000] - -000851|PLC|FAULT|[COD 000000] - -000852|PLC|FAULT|[COD 000000] - -000853|PLC|FAULT|[COD 000000] - -000854|PLC|FAULT|[COD 000000] - -000855|PLC|FAULT|[COD 000000] - -000856|PLC|FAULT|[COD 000000] - -000857|PLC|FAULT|[COD 000000] - -000858|PLC|FAULT|[COD 000000] - -000859|PLC|FAULT|[COD 000000] - -000860|PLC|FAULT|[COD 000000] - -000861|PLC|FAULT|[COD 000000] - -000862|PLC|FAULT|[COD 000000] - -000863|PLC|FAULT|[COD 000000] - -000864|PLC|FAULT|[COD 000000] - -000865|PLC|FAULT|[COD 000000] - -000866|PLC|FAULT|[COD 000000] - -000867|PLC|FAULT|[COD 000000] - -000868|PLC|FAULT|[COD 000000] - -000869|PLC|FAULT|[COD 000000] - -000870|PLC|FAULT|[COD 000000] - -000871|PLC|FAULT|[COD 000000] - -000872|PLC|FAULT|[COD 000000] - -000873|PLC|FAULT|[COD 000000] - -000874|PLC|FAULT|[COD 000000] - -000875|PLC|FAULT|[COD 000000] - -000876|PLC|FAULT|[COD 000000] - -000877|PLC|FAULT|[COD 000000] - -000878|PLC|FAULT|[COD 000000] - -000879|PLC|FAULT|[COD 000000] - -000880|PLC|FAULT|[COD 000000] - -000881|PLC|FAULT|[COD 000000] - -000882|PLC|FAULT|[COD 000000] - -000883|PLC|FAULT|[COD 000000] - -000884|PLC|FAULT|[COD 000000] - -000885|PLC|FAULT|[COD 000000] - -000886|PLC|FAULT|[COD 000000] - -000887|PLC|FAULT|[COD 000000] - -000888|PLC|FAULT|[COD 000000] - -000889|PLC|FAULT|[COD 000000] - -000890|PLC|FAULT|[COD 000000] - -000891|PLC|FAULT|[COD 000000] - -000892|PLC|FAULT|[COD 000000] - -000893|PLC|FAULT|[COD 000000] - -000894|PLC|FAULT|[COD 000000] - -000895|PLC|FAULT|[COD 000000] - -000896|PLC|FAULT|[COD 000000] - -000897|PLC|FAULT|[COD 000000] - -000898|PLC|FAULT|[COD 000000] - -000899|PLC|FAULT|[COD 000000] - -000900|PLC|FAULT|[COD 000000] - -000901|PLC|FAULT|[COD 000000] - -000902|PLC|FAULT|[COD 000000] - -000903|PLC|FAULT|[COD 000000] - -000904|PLC|FAULT|[COD 000000] - -000905|PLC|FAULT|[COD 000000] - -000906|PLC|FAULT|[COD 000000] - -000907|PLC|FAULT|[COD 000000] - -000908|PLC|FAULT|[COD 000000] - -000909|PLC|FAULT|[COD 000000] - -000910|PLC|FAULT|[COD 000000] - -000911|PLC|FAULT|[COD 000000] - -000912|PLC|FAULT|[COD 000000] - -000913|PLC|FAULT|[COD 000000] - -000914|PLC|FAULT|[COD 000000] - -000915|PLC|FAULT|[COD 000000] - -000916|PLC|FAULT|[COD 000000] - -000917|PLC|FAULT|[COD 000000] - -000918|PLC|FAULT|[COD 000000] - -000919|PLC|FAULT|[COD 000000] - -000920|PLC|FAULT|[COD 000000] - -000921|PLC|FAULT|[COD 000000] - -000922|PLC|FAULT|[COD 000000] - -000923|PLC|FAULT|[COD 000000] - -000924|PLC|FAULT|[COD 000000] - -000925|PLC|FAULT|[COD 000000] - -000926|PLC|FAULT|[COD 000000] - -000927|PLC|FAULT|[COD 000000] - -000928|PLC|FAULT|[COD 000000] - -000929|PLC|FAULT|[COD 000000] - -000930|PLC|FAULT|[COD 000000] - -000931|PLC|FAULT|[COD 000000] - -000932|PLC|FAULT|[COD 000000] - -000933|PLC|FAULT|[COD 000000] - -000934|PLC|FAULT|[COD 000000] - -000935|PLC|FAULT|[COD 000000] - -000936|PLC|FAULT|[COD 000000] - -000937|PLC|FAULT|[COD 000000] - -000938|PLC|FAULT|[COD 000000] - -000939|PLC|FAULT|[COD 000000] - -000940|PLC|FAULT|[COD 000000] - -000941|PLC|FAULT|[COD 000000] - -000942|PLC|FAULT|[COD 000000] - -000943|PLC|FAULT|[COD 000000] - -000944|PLC|FAULT|[COD 000000] - -000945|PLC|FAULT|[COD 000000] - -000946|PLC|FAULT|[COD 000000] - -000947|PLC|FAULT|[COD 000000] - -000948|PLC|FAULT|[COD 000000] - -000949|PLC|FAULT|[COD 000000] - -000950|PLC|FAULT|[COD 000000] - -000951|PLC|FAULT|[COD 000000] - -000952|PLC|FAULT|[COD 000000] - -000953|PLC|FAULT|[COD 000000] - -000954|PLC|FAULT|[COD 000000] - -000955|PLC|FAULT|[COD 000000] - -000956|PLC|FAULT|[COD 000000] - -000957|PLC|FAULT|[COD 000000] - -000958|PLC|FAULT|[COD 000000] - -000959|PLC|FAULT|[COD 000000] - -000960|PLC|FAULT|[COD 000000] - -000961|PLC|FAULT|[COD 000000] - -000962|PLC|FAULT|[COD 000000] - -000963|PLC|FAULT|[COD 000000] - -000964|PLC|FAULT|[COD 000000] - -000965|PLC|FAULT|[COD 000000] - -000966|PLC|FAULT|[COD 000000] - -000967|PLC|FAULT|[COD 000000] - -000968|PLC|FAULT|[COD 000000] - -000969|PLC|FAULT|[COD 000000] - -000970|PLC|FAULT|[COD 000000] - -000971|PLC|FAULT|[COD 000000] - -000972|PLC|FAULT|[COD 000000] - -000973|PLC|FAULT|[COD 000000] - -000974|PLC|FAULT|[COD 000000] - -000975|PLC|FAULT|[COD 000000] - -000976|PLC|FAULT|[COD 000000] - -000977|PLC|FAULT|[COD 000000] - -000978|PLC|FAULT|[COD 000000] - -000979|PLC|FAULT|[COD 000000] - -000980|PLC|FAULT|[COD 000000] - -000981|PLC|FAULT|[COD 000000] - -000982|PLC|FAULT|[COD 000000] - -000983|PLC|FAULT|[COD 000000] - -000984|PLC|FAULT|[COD 000000] - -000985|PLC|FAULT|[COD 000000] - -000986|PLC|FAULT|[COD 000000] - -000987|PLC|FAULT|[COD 000000] - -000988|PLC|FAULT|[COD 000000] - -000989|PLC|FAULT|[COD 000000] - -000990|PLC|FAULT|[COD 000000] - -000991|PLC|FAULT|[COD 000000] - -000992|PLC|FAULT|[COD 000000] - -000993|PLC|FAULT|[COD 000000] - -000994|PLC|FAULT|[COD 000000] - -000995|PLC|FAULT|[COD 000000] - -000996|PLC|FAULT|[COD 000000] - -000997|PLC|FAULT|[COD 000000] - -000998|PLC|FAULT|[COD 000000] - -000999|PLC|FAULT|[COD 000000] - -001000|PLC|FAULT|[COD 000000] - -001001|PLC|FAULT|[COD 000000] - -001002|PLC|FAULT|[COD 000000] - -001003|PLC|FAULT|[COD 000000] - -001004|PLC|FAULT|[COD 000000] - -001005|PLC|FAULT|[COD 000000] - -001006|PLC|FAULT|[COD 000000] - -001007|PLC|FAULT|[COD 000000] - -001008|PLC|FAULT|[COD 000000] - -001009|PLC|FAULT|[COD 000000] - -001010|PLC|FAULT|[COD 000000] - -001011|PLC|FAULT|[COD 000000] - -001012|PLC|FAULT|[COD 000000] - -001013|PLC|FAULT|[COD 000000] - -001014|PLC|FAULT|[COD 000000] - -001015|PLC|FAULT|[COD 000000] - -001016|PLC|FAULT|[COD 000000] - -001017|PLC|FAULT|[COD 000000] - -001018|PLC|FAULT|[COD 000000] - -001019|PLC|FAULT|[COD 000000] - -001020|PLC|FAULT|[COD 000000] - -001021|PLC|FAULT|[COD 000000] - -001022|PLC|FAULT|[COD 000000] - -001023|PLC|FAULT|[COD 000000] - -001024|PLC|FAULT|[COD 000000] - \ No newline at end of file +000001|PLC|FAULT|[1] MANDRINO 1 NON BLOCCATO +000002|PLC|FAULT|[2] MANDRINO 2 NON BLOCCATO +000003|PLC|FAULT|[3] MANDRINO SUPPLEMENTARE NON BLOCCATO +000004|PLC|FAULT|[4] ZONA DI COLLISIONE CON CAMBIO UTENSILE ESTERNO +000005|PLC|FAULT|[5] ZONA DI COLLISIONE CON CAMBIO UTENSILE LINEARE +000006|PLC|FAULT|[6] GRUPPO ASSI NON VALIDO +000007|PLC|FAULT|[7] INVERTER 1 NON OK +000008|PLC|FAULT|[8] INVERTER 2 NON OK +000009|PLC|FAULT|[9] INVERTER MANDRINO SUPPLEMENTARE NON OK +0000010|PLC|FAULT|[10] SAVE ENERGY ATTIVO +0000011|PLC|FAULT|[11] B,[WD] SUPERATO NUMERO PEZZI MASSIMO CARICABILE SU TRANSFER +0000012|PLC|FAULT|[12] VERIFICA CONTATTORI NON OK +0000013|PLC|FAULT|[13] TIMEOUT COMUNICAZIONE XILOG +0000014|PLC|WARNING|[14] INTERVENTO MAGNETOTERMICI +0000015|PLC|FAULT|[15] PORTE PROTEZIONE APERTE +0000016|PLC|FAULT|[16] TAPPETO CONVOGLIA TRUCIOLI NON IN POSIZIONE +0000017|PLC|FAULT|[17] COLLISIONE RILEVATA DAL SIMULATORE +0000018|PLC|FAULT|[18] BUMPER MOBILE NON IN POSIZIONE +0000019|PLC|FAULT|[19] FORATRICE NON IN POSIZIONE +0000020|PLC|WARNING|[20] STOP MACCHINA DA CODICI M SUPPLEMENTARI +0000021|PLC|WARNING|[21] M00 ATTIVO: START CICLO +0000022|PLC|WARNING|[22] BATTERIA SCARICA ENCODER ASSI YASKAWA +0000023|PLC|FAULT|[23] AZIONAMENTI ASSI XYZ... NON OK +0000024|PLC|FAULT|[24] AZIONAMENTI ASSI ROTATIVI NON OK +0000025|PLC|FAULT|[25] CNC NON OK +0000026|PLC|FAULT|[26] PRESSOSTATO ARIA INTERVENUTO +0000027|PLC|FAULT|[27] BATTERIA CNC NON CARICA +0000028|PLC|FAULT|[28] ERRORE CANOPEN RING 0 +0000029|PLC|FAULT|[29] ERRORE CANOPEN RING 1 +0000030|PLC|WARNING|[30] ABILITAZIONE BL/SBL UTENSILE MANDRINO 1 +0000031|PLC|WARNING|[31] ABILITAZIONE BL/SBL UTENSILE MANDRINO 2 +0000032|PLC|WARNING|[32] ABILITAZIONE BL/SBL UTENSILE MANDRINO SUPPLEMENTARE +0000033|PLC|WARNING|[33] CICLO ETICHETTATURA IN CORSO +0000034|PLC|FAULT|[34] ETICHETTATRICE NON PRONTA +0000035|PLC|FAULT|[35] ETICHETTATRICE NON IN POSIZIONE +0000036|PLC|FAULT|[36] ERRORE ETICHETTATRICE +0000037|PLC|FAULT|[37] SONDA TERMICA/VENTOLA MANDRINO 1 +0000038|PLC|FAULT|[38] SONDA TERMICA/VENTOLA MANDRINO 2 +0000039|PLC|FAULT|[39] SONDA TERMICA/VENTOLA MANDRINO SUPPLEMENTARE +0000040|PLC|FAULT|[40] INTERVENTO MAGNETOTERMICO GRUPPO LAMA +0000041|PLC|FAULT|[41] RICARICARE POMPA LUBRIFICAZIONE +0000042|PLC|FAULT|[42] LUBRIFICAZIONE ASSI NON OK +0000043|PLC|WARNING|[43] LUBRIFICAZIONE ASSI IN CORSO +0000044|PLC|WARNING|[44] RICHIESTA VUOTO/ATTREZZATURA +0000045|PLC|FAULT|[45] EMERGENZA CAUSA VUOTO ZONA 1 +0000046|PLC|FAULT|[46] EMERGENZA CAUSA VUOTO ZONA 2 +0000047|PLC|FAULT|[47] ASSI IN FINE CORSA +0000048|PLC|FAULT|[48] CUFFIA ESTERNA NON IN POSIZIONE +0000049|PLC|FAULT|[49] CUFFIA INTERNA NON IN POSIZIONE +0000050|PLC|FAULT|[50] CUFFIA PULIZIA PIANO NON IN POSIZIONE +0000051|PLC|FAULT|[51] EMERGENZA CAUSA VUOTO ZONA 3 +0000052|PLC|FAULT|[52] EMERGENZA CAUSA VUOTO ZONA 4 +0000053|PLC|WARNING|[53] ESEGUIRE RIFERIMENTO ASSI +0000054|PLC|FAULT|[54] ESEGUIRE RIFERIMENTO MAGAZZINO UTENSILE 1 +0000055|PLC|FAULT|[55] ESEGUIRE RIFERIMENTO MAGAZZINO UTENSILE 2 +0000056|PLC|FAULT|[56] ESEGUIRE RIFERIMENTO MAGAZZINO UTENSILE MANDRINO SUPPLEMENTARE +0000057|PLC|FAULT|[57] ESEGUIRE RIFERIMENTO MAGAZZINO ESTERNO 1 +0000058|PLC|FAULT|[58] ESEGUIRE RIFERIMENTO NAVETTA HS +0000059|PLC|FAULT|[59] ESEGUIRE RIFERIMENTO PINZE ROBOT CELLA WD +0000060|PLC|FAULT|[60] CONVOGLIATORE TRUCIOLI NON OK +0000061|PLC|WARNING|[61] SERBATOIO LUBRIFICAZIONE CONVOGLIATORE TRUCIOLI VUOTO +0000062|PLC|FAULT|[62] ASSE X IN FINE CORSA +0000063|PLC|FAULT|[63] ASSE Y IN FINE CORSA +0000064|PLC|FAULT|[64] ASSE Z IN FINE CORSA +0000065|PLC|FAULT|[65] PALPATORE SYNCRO NON IN POSIZIONE +0000066|PLC|WARNING|[66] ALLINEAMENTO ASSI GANTRY IN CORSO +0000067|PLC|FAULT|[67] ASSE B IN FINE CORSA +0000068|PLC|FAULT|[68] ASSE C IN FINE CORSA +0000069|PLC|FAULT|[69] ASSE Y NON IN POSIZIONE +0000070|PLC|FAULT|[70] ESEGUIRE RIFERIMENTO PALPATORE SYNCRO +0000071|PLC|FAULT|[71] PERNO BLOCCAGGIO TAVOLO ELEVATORE NON IN POSIZIONE +0000072|PLC|FAULT|[72] FOTOCELLULA PRESENZA UTENSILE +0000073|PLC|FAULT|[73] MANDRINO 1 NON OK +0000074|PLC|FAULT|[74] MANDRINO 2 NON OK +0000075|PLC|FAULT|[75] MANDRINO SUPPLEMENTARE NON OK +0000076|PLC|FAULT|[76] FOTOCELLULA PRESENZA UTENSILE (CATENA) +0000077|PLC|FAULT|[77] ALLARME SENSORE ROTAZIONE MANDRINO 1 +0000078|PLC|FAULT|[78] ALLARME SENSORE ROTAZIONE MANDRINO 2 +0000079|PLC|FAULT|[79] ALLARME SENSORE ROTAZIONE MANDRINO SUPPLEMENTARE +0000080|PLC|FAULT|[80] CAMBIO UTENSILE TESTA 1(ONBOARD) NON IN POSIZIONE +0000081|PLC|FAULT|[81] CAMBIO UTENSILE MANDRINO SUPPLEMENTARE (ONBOARD) NON IN POSIZIONE +0000082|PLC|FAULT|[82] CAMBIO UTENSILE LINEARE NON IN POSIZIONE +0000083|PLC|FAULT|[83] CAMBIO UTENSILE HS NON IN POSIZIONE +0000084|PLC|FAULT|[84] [TM] NAVETTA TOOL MANAGEMENT NON IN POSIZIONE +0000085|PLC|FAULT|[85] [TM] LETTORE CHIP TOOL MANAGMENT NON IN POSIZIONE +0000086|PLC|FAULT|[86] [TM] LIBERARE PINZA DI CARICO TOOL MANAGMENT +0000087|PLC|FAULT|[87] [TM] COLLISIONE CON TOOL MANAGMENT +0000088|PLC|FAULT|[88] [TM] CARICARE UTENSILE SULLA PINZA DI CARICO DEL TOOL MANAGMENT +0000089|PLC|FAULT|[89] BANDELLA NON IN POSIZIONE +0000090|PLC|FAULT|[90] PANNELLO PRELEVATO FUORI ALLINEAMENTO +0000091|PLC|FAULT|[91] SCARICATORE NON IN POSIZIONE +0000092|PLC|FAULT|[92] SPONDE/BATTUTE DI SCARICO NON IN POSIZIONE +0000093|PLC|FAULT|[93] ZONA DI SCARICO OCCUPATA +0000094|PLC|FAULT|[94] VERIFICARE DIMENSIONI PILA +0000095|PLC|FAULT|[95] CARICARE NUOVA PILA +0000096|PLC|FAULT|[96] CARICATORE NON IN POSIZIONE +0000097|PLC|FAULT|[97] TAVOLO ELEVATORE NON OK +0000098|PLC|FAULT|[98] PANNELLO NON PRELEVATO DA TAVOLO ELEVATORE +0000099|PLC|FAULT|[99] FOTOCELLULA RIFERIMENTO PANNELLO NON OK +0000100|PLC|FAULT|[100] ALLARME CELLA WD +0000101|PLC|FAULT|[101] REFRIGERANTE MANDRINO 1 NON OK +0000102|PLC|FAULT|[102] REFRIGERANTE MANDRINO 2 NON OK +0000103|PLC|FAULT|[103] INVERTER NASTRO DI SCARICO NON OK +0000104|PLC|FAULT|[104] ARRESTO OPERATIVO: RESETTARE LE FOTOCELLULE DI SICUREZZA +0000105|PLC|WARNING|[105] C.UTENSILE LINEARE IN CORSO: ABBASSARE GLI INNALZATORI E RESETTARE LE FOTOCELLULE DI SICUREZZA +0000106|PLC|FAULT|[106] CARICO PANNELLO NON AMMESSO +0000107|PLC|FAULT|[107] BYPASS COLLISIONI ATTIVO +0000108|PLC|FAULT|[108] SPORTELLO CAMBIO UTENSILE LINEARE DESTRO NON IN POSIZIONE +0000109|PLC|FAULT|[109] VERIFICA FUNZIONAMENTO SICUREZZE +0000110|PLC|FAULT|[110] RESETTARE LE FOTOCELLULE DI SICUREZZA +0000111|PLC|FAULT|[111] INSERIMENTO UTENSILE NON OK +0000112|PLC|FAULT|[112] GUASTO MICRO CONTROLLO PEDANE +0000113|PLC|FAULT|[113] INSERIMENTO UTENSILE IN NAVETTA HS NON OK +0000114|PLC|WARNING|[114] TABELLA NON AGGIORNATA +0000115|PLC|FAULT|[115] MANDRINO 1 NON SBLOCCATO +0000116|PLC|FAULT|[116] MANDRINO SUPPLEMENTARE NON SBLOCCATO +0000117|PLC|FAULT|[117] CONTROLLARE CICLO CHIUSURA BORDO +0000118|PLC|WARNING|[118] PM: SETUP NON POSSIBILE ZONA 3 [Vuoto ON/Teste DW] +0000119|PLC|WARNING|[119] PM: SETUP NON POSSIBILE ZONA 4 [Vuoto ON/Teste DW] +0000120|PLC|WARNING|[120] UTENSILE SPECIALE: OPERAZIONE NON AMMESSA +0000121|PLC|FAULT|[121] ERRORE CICLO CHIUSURA BORDO +0000122|PLC|FAULT|[122] MAGAZZINO UTENSILE ESTERNO 1 NON IN POSIZIONE +0000123|PLC|FAULT|[123] SPORTELLO MAGAZZINO ESTERNO NON IN POSIZIONE +0000124|PLC|WARNING|[124] ERRATA PROGRAMMAZIONE +0000125|PLC|WARNING|[125] ERRORE UTENSILE TESTA 1 +0000126|PLC|WARNING|[126] ERRORE UTENSILE TESTA 2 +0000127|PLC|FAULT|[127] SPORTELLO CAMBIO UTENSILE LINEARE SINISTRO NON IN POSIZIONE +0000128|PLC|FAULT|[128] TIME OUT PIGNA MOBILE +0000129|PLC|WARNING|[129] CAMBIO MODALITA' MACCHINA (M103) +0000130|PLC|FAULT|[130] PORTE ARMADIO ELETTRICO APERTE +0000131|PLC|WARNING|[131] ESEGUIRE MANUTENZIONE CONDIZIONATORE ARMADIO ELETTRICO +0000132|PLC|FAULT|[132] AGGREGATO PRESSATORE/CONVOGLIATORE TRUCIOLI NON OK +0000133|PLC|FAULT|[133] SERBATOIO LUBROREFRIGERATORE UTENSILE VUOTO +0000134|PLC|WARNING|[134] BATTERIA SCARICA TASTATORE RADIO +0000135|PLC|FAULT|[135] RILEVATORE SPESSORE PEZZO NON IN POSIZIONE +0000136|PLC|FAULT|[136] CICLO TASTATURA NON OK +0000137|PLC|FAULT|[137] BATTUTE DI RIFERIMENTO ZONA 1 NON OK +0000138|PLC|FAULT|[138] BATTUTE DI RIFERIMENTO ZONA 2 NON OK +0000139|PLC|FAULT|[139] ASSI PRISMA BC NON IN POSIZIONE +0000140|PLC|FAULT|[140] AZIONAMENTI ASSI PRISMA BC NON OK +0000141|PLC|FAULT|[141] TASTATORE RADIO NON OK +0000142|PLC|FAULT|[142] AVVICINATORI NON IN POSIZIONE +0000143|PLC|FAULT|[143] AVVICINAMENTO PANNELLO NON AVVENUTO +0000144|PLC|FAULT|[144] PRESA PANNELLO NON OK +0000145|PLC|WARNING|[145] RIAGGANCIO MANDRINO IN CORSO +0000146|PLC|WARNING|[146] RIAGGANCIO MANDRINO FALLITO +0000147|PLC|WARNING|[147] RIAGGANCIO MANDRINO AVVENUTO +0000148|PLC|FAULT|[148] INTERVENTO FUNE DI SICUREZZA +0000149|PLC|FAULT|[149] INTERVENTO OVERSPEED ASSI +0000150|PLC|FAULT|[150] INTERVENTO BUMPERS +0000151|PLC|WARNING|[151] MACCHINA SPENTA +0000152|PLC|FAULT|[152] EMERGENZA PREMUTA +0000153|PLC|WARNING|[153] PM: SETUP NON POSSIBILE ZONA 1 [VUOTO ON / TESTE DW] +0000154|PLC|WARNING|[154] PM: SETUP NON POSSIBILE ZONA 2 [VUOTO ON / TESTE DW] +0000155|PLC|WARNING|[155] BARRA MOBILE CENTRALE 1 NON IN POSIZIONE +0000156|PLC|WARNING|[156] BARRA MOBILE CENTRALE 2 NON IN POSIZIONE +0000157|PLC|WARNING|[157] PM: COLLISIONE BATTUTE CON SUPPORTI VENTOSE / MORSETTI +0000158|PLC|WARNING|[158] CUFFIA MANDRINO SUPPLEMENTARE NON IN POSIZIONE +0000159|PLC|WARNING|[159] TESTA GRUPPO MANDRINO SUPPLEMENTARE NON IN POSIZIONE +0000160|PLC|WARNING|[160] TESTA GRUPPO LAMA NON IN POSIZIONE +0000161|PLC|WARNING|[161] CICLO DI CARICO IN CORSO +0000162|PLC|WARNING|[162] CICLO DI SCARICO IN CORSO +0000163|PLC|WARNING|[163] BATTUTE DI CARICO NON IN POSIZIONE ZONA 1 +0000164|PLC|WARNING|[164] ATTESA ROBOT IN POSIZIONE +0000165|PLC|WARNING|[165] INVERTER GUASTO POMPA VUOTO 1 (MASTER) +0000166|PLC|WARNING|[166] INVERTER GUASTO POMPA VUOTO 2 (SLAVE) +0000167|PLC|WARNING|[167] BATTUTE DI CARICO NON IN POSIZIONE ZONA 2 +0000168|PLC|WARNING|[168] SALITA CUFFIA DA OPERATORE +0000169|PLC|WARNING|[169] TRAVERSA 1 NON IN POSIZIONE +0000170|PLC|WARNING|[170] TRAVERSA 2 NON IN POSIZIONE +0000171|PLC|WARNING|[171] TRAVERSA 3 NON IN POSIZIONE +0000172|PLC|WARNING|[172] TRAVERSA 4 NON IN POSIZIONE +0000173|PLC|WARNING|[173] TRAVERSA 5 NON IN POSIZIONE +0000174|PLC|WARNING|[174] TRAVERSA 6 NON IN POSIZIONE +0000175|PLC|WARNING|[175] TRAVERSA 7 NON IN POSIZIONE +0000176|PLC|WARNING|[176] TRAVERSA 8 NON IN POSIZIONE +0000177|PLC|WARNING|[177] TRAVERSA 9 NON IN POSIZIONE +0000178|PLC|WARNING|[178] TRAVERSA 10 NON IN POSIZIONE +0000179|PLC|WARNING|[179] TRAVERSA 11 NON IN POSIZIONE +0000180|PLC|WARNING|[180] TRAVERSA 12 NON IN POSIZIONE +0000181|PLC|WARNING|[181] SOSTITUZIONE VENTOSE IN CORSO AREA 1 +0000182|PLC|WARNING|[182] SOSTITUZIONE VENTOSE IN CORSO AREA 2 +0000183|PLC|FAULT|[183] BATTUTE DI RIFERIMENTO ZONA 3 NON OK +0000184|PLC|FAULT|[184] BATTUTE DI RIFERIMENTO ZONA 4 NON OK +0000185|PLC|FAULT|[185] [BRC] GR5: GRUPPO FUSI ORIZZONTALI NON IN POSIZIONE (fori spine) +0000186|PLC|FAULT|[186] [BRC] GR6: GRUPPO FRESA VERTICALE NON IN POSIZIONE +0000187|PLC|FAULT|[187] [BRC] GR7: GRUPPO FRESA ORIZZONTALE NON IN POSIZIONE +0000188|PLC|FAULT|[188] [BRC] GR8: GRUPPO LAMA NON IN POSIZIONE +0000189|PLC|FAULT|[189] [BRC] ATTESA INNESTO PER ROTAZIONE GRUPPO LAMA +0000190|PLC|FAULT|[190] SELETTORI CONTROSAGOMA NON OK [AREA UNICA] +0000191|PLC|FAULT|[191] BATTUTE DI RIFERIMENTO BARRA 1 NON OK +0000192|PLC|FAULT|[192] BATTUTE DI RIFERIMENTO BARRA 2 NON OK +0000193|PLC|FAULT|[193] BATTUTE DI RIFERIMENTO BARRA 3 NON OK +0000194|PLC|FAULT|[194] BATTUTE DI RIFERIMENTO BARRA 4 NON OK +0000195|PLC|FAULT|[195] BATTUTE DI RIFERIMENTO BARRA 5 NON OK +0000196|PLC|FAULT|[196] BATTUTE DI RIFERIMENTO BARRA 6 NON OK +0000197|PLC|FAULT|[197] BATTUTE DI RIFERIMENTO BARRA 7 NON OK +0000198|PLC|FAULT|[198] BATTUTE DI RIFERIMENTO BARRA 8 NON OK +0000199|PLC|FAULT|[199] BATTUTE DI RIFERIMENTO BARRA 9 NON OK +0000200|PLC|FAULT|[200] BATTUTE DI RIFERIMENTO BARRA 10 NON OK +0000201|PLC|FAULT|[201] BATTUTE DI RIFERIMENTO BARRA 11 NON OK +0000202|PLC|FAULT|[202] BATTUTE DI RIFERIMENTO BARRA 12 NON OK +0000203|PLC|FAULT|[203] BATTUTE DI RIFERIMENTO BARRA FISSA SX NON OK +0000204|PLC|FAULT|[204] BATTUTE DI RIFERIMENTO BARRA FISSA DX NON OK +0000205|PLC|FAULT|[205] BASI NON BLOCCATE ZONA 1 +0000206|PLC|FAULT|[206] BASI NON BLOCCATE ZONA 2 +0000207|PLC|FAULT|[207] BASI NON BLOCCATE ZONA 3 +0000208|PLC|FAULT|[208] BASI NON BLOCCATE ZONA 4 +0000209|PLC|WARNING|[209] SOSTITUZIONE VENTOSE IN CORSO AREA 3 +0000210|PLC|WARNING|[210] SOSTITUZIONE VENTOSE IN CORSO AREA 4 +0000211|PLC|FAULT|[211] [BORDATORE POWER] ATTESA GRUPPO A BORDARE ALTO +0000212|PLC|FAULT|[212] [BORDATORE POWER] ATTESA GRUPPO A BORDARE BASSO +0000213|PLC|FAULT|[213] [BORDATORE POWER] ATTESA GRUPPO A BORDARE POSIZ. CAMBIO RULLO +0000214|PLC|FAULT|[214] [BORDATORE POWER] ATTESA PIANO CARICAMENTO BORDI ALTO +0000215|PLC|FAULT|[215] [BORDATORE POWER] ATTESA PIANO CARICAMENTO BORDI BASSO +0000216|PLC|FAULT|[216] [BORDATORE POWER] MANCATA LETTURA BORDO GIUNZIONE +0000217|PLC|FAULT|[217] [BORDATORE POWER] ERRORE BORDO SU FOTOCELLULA DI CARICO +0000218|PLC|FAULT|[218] VASCA COLLA NON IN TEMPERATURA +0000219|PLC|FAULT|[219] [BORDATORE POWER] ASSENZA BORDO IN MULTIROTOLO +0000220|PLC|FAULT|[220] [BORDATORE POWER] ATTESA CICLO CARICO COLLA DA PREFUSORE +0000221|PLC|FAULT|[221] [BORDATORE POWER] MANCATO TAGLIO TRANCIA MAGAZZINO BORDI +0000222|PLC|FAULT|[222] [BORDATORE POWER] ATTESA CARICO COLLA DA PREFUSORE +0000223|PLC|FAULT|[223] [BORDATORE POWER] ANOMALIA SENSORI CILINDRO TESTA A BORDARE +0000224|PLC|FAULT|[224] SENSORE TESTA A BORDARE IN COLLISIONE +0000225|PLC|FAULT|[225] [BORDATORE POWER] TIMEOUT INTESTATURA BORDO TESTA A BORDARE +0000226|PLC|FAULT|[226] INTERVENTO TERMICI VASCA COLLA +0000227|PLC|FAULT|[227] INTERVENTO TERMICI PREFUSORE +0000228|PLC|FAULT|[228] INTERVENTO TERMICI LAMPADE ONDE CORTE +0000229|PLC|FAULT|[229] ESEGUIRE RIFERIMENTO MOT. ALTEZZA BORDO TESTA B. +0000230|PLC|FAULT|[230] ESEGUIRE RIFERIMENTO MOT. ALTEZZA BORDO MAGAZZINO B. +0000231|PLC|FAULT|[231] ESEGUIRE RIFERIMENTO MOT. CAMBIO RULLO PRESSIONE +0000232|PLC|FAULT|[232] TIMEOUT SENSORE CHIUSURA CILINDRO PREFUSORE +0000233|PLC|FAULT|[233] ESEGUIRE TARATURA TRAVERSE/VENTOSE +0000234|PLC|FAULT|[234] VENTOSE NON BLOCCATE AREA 1 +0000235|PLC|FAULT|[235] VENTOSE NON BLOCCATE AREA 2 +0000236|PLC|WARNING|[236] ATTESA SBLOCCO VENTOSA +0000237|PLC|WARNING|[237] ATTESA BLOCCO VENTOSA +0000238|PLC|WARNING|[238] RIMUOVERE VENTOSA: START CICLO +0000239|PLC|WARNING|[239] INSERIRE VENTOSA: START CICLO +0000240|PLC|FAULT|[240] ANOMALIA FOTOCELLULA MAGAZZINO BORDI +0000241|PLC|WARNING|[241] BARRA 1 +0000242|PLC|WARNING|[242] BARRA 2 +0000243|PLC|WARNING|[243] BARRA 3 +0000244|PLC|WARNING|[244] BARRA 4 +0000245|PLC|WARNING|[245] BARRA 5 +0000246|PLC|WARNING|[246] BARRA 6 +0000247|PLC|WARNING|[247] BARRA 7 +0000248|PLC|WARNING|[248] BARRA 8 +0000249|PLC|WARNING|[249] BARRA 9 +0000250|PLC|WARNING|[250] BARRA 10 +0000251|PLC|WARNING|[251] BARRA 11 +0000252|PLC|WARNING|[252] BARRA 12 +0000253|PLC|WARNING|[253] RIMUOVERE/INSERIRE VENTOSA COME DA GRAFICA SU AREA 1: START CICLO +0000254|PLC|WARNING|[254] RIMUOVERE/INSERIRE VENTOSA COME DA GRAFICA SU AREA 2: START CICLO +0000255|PLC|FAULT|[255] PORTE PROTEZIONE SBLOCCATE +0000256|PLC|FAULT|[256] ERRORE MODULO ZERO SPEED MANDRINO +0000257|PLC|FAULT|[257] INTESTATORE NON IN POSIZIONE +0000258|PLC|FAULT|[258] INTESTATORE 92 VUOTO +0000259|PLC|FAULT|[259] INTESTATORE 93 VUOTO +0000260|PLC|FAULT|[260] LIVELLO COLLA BASSO B.BASIC +0000261|PLC|FAULT|[261] [WD]EMERGENZA TRANSFER PREMUTA +0000262|PLC|FAULT|[262] [WD]INTERVENTO MAGNETOTERMICI TRANSFER +0000263|PLC|FAULT|[263] [WD]PORTE ARMADIO ELETTRICO TRANSFER APERTE +0000264|PLC|FAULT|[264] [WD]SVUOTARE TRANSFER +0000265|PLC|FAULT|[265] [WD]PEZZO IN ZONA DI SCARICO +0000266|PLC|FAULT|[266] [WD]ATTESA ROBOT 1 IN POSIZIONE +0000267|PLC|FAULT|[267] [WD]ATTESA ROBOT 2 IN POSIZIONE +0000268|PLC|FAULT|[268] [WD]SVUOTARE RULLIERE +0000269|PLC|FAULT|[269] [WD]DIMENSIONI PEZZO NON OK +0000270|PLC|FAULT|[270] [WD]SVUOTARE PIANO MACCHINA E PINZE ROBOT +0000271|PLC|FAULT|[271] [WD]PINZA ROBOT 1 NON IN POSIZIONE +0000272|PLC|FAULT|[272] [WD]PINZA ROBOT 2 NON IN POSIZIONE +0000273|PLC|FAULT|[273] MORSETTI ZONA 1 ALTI PNEUMATICAMENTE +0000274|PLC|FAULT|[274] MORSETTI ZONA 2 ALTI PNEUMATICAMENTE +0000275|PLC|FAULT|[275] EMERGENZA CAUSA MORSETTI ZONA 1 +0000276|PLC|FAULT|[276] EMERGENZA CAUSA MORSETTI ZONA 2 +0000277|PLC|FAULT|[277] ZONA DI COLLISIONE REFILATORE / RAS +0000278|PLC|FAULT|[278] PERICOLO SPORTELLO PANTOGRAFO APERTO +0000279|PLC|FAULT|[279] ZONA DI COLLISIONE BORDATORE +0000280|PLC|FAULT|[280] POSIZIONE DEL SELETTORE DELLA PULSANTIERA NON OK +0000281|PLC|FAULT|[281] PREMERE PULSANTE UOMO-MORTO +0000282|PLC|FAULT|[282] METTERE LA MACCHINA IN EMERGENZA +0000283|PLC|FAULT|[283] EMERGENZA TAPPETO ZONA 1 +0000284|PLC|FAULT|[284] EMERGENZA TAPPETO ZONA 2 +0000285|PLC|FAULT|[285] ZONA DI COLLISIONE MAGAZZINO RULLI PRESSIONE +0000286|PLC|FAULT|[286] TAPPETO AREA 1 IMPEGNATO +0000287|PLC|FAULT|[287] TAPPETO CENTRALE IMPEGNATO +0000288|PLC|FAULT|[288] TAPPETO AREA 2 IMPEGNATO +0000289|PLC|FAULT|[289] NUMERO RULLO PRESSORE ERRATO +0000290|PLC|FAULT|[290] CHECK VASCA COLLA +0000291|PLC|FAULT|[291] TIMEOUT GRUPPO VENTOSE NON ESCLUSO +0000292|PLC|FAULT|[292] TIMEOUT GRUPPO VENTOSE NON INSERITO +0000293|PLC|FAULT|[293] ASSE C BORDATORE IN QUOTA COLLISIONE CON G.VENTOSE +0000294|PLC|FAULT|[294] CICLO INSERIMENTO SPINA GRUPPO 92 NON OK(MUOVERE IN JOG+ L'ASSE X) +0000295|PLC|FAULT|[295] CICLO INSERIMENTO SPINA GRUPPO 93 NON OK(MUOVERE IN JOG- L'ASSE X) +0000296|PLC|FAULT|[296] RULLI NON IN POSIZIONE +0000297|PLC|FAULT|[297] ASSE X FUORI LIMITE PER RULLI +0000298|PLC|FAULT|[298] COLLISIONE RULLI CON GRUPPO TESTE +0000299|PLC|FAULT|[299] LASCIARE LIBERO +0000300|PLC|FAULT|[300] PERICOLO COLLISIONE BORDATORE PIANO MULTIFUNZIONE +0000301|PLC|FAULT|[301] MODALITŔ CELLA NON ATTIVA +0000302|PLC|FAULT|[302] ZONA DI COLLISIONE BORDATORE IN Y +0000303|PLC|FAULT|[303] ERRORE SEQUENZA CAMBIO RULLO PRESSORE +0000304|PLC|FAULT|[304] +0000305|PLC|FAULT|[305] +0000306|PLC|FAULT|[306] +0000307|PLC|FAULT|[307] +0000308|PLC|FAULT|[308] +0000309|PLC|FAULT|[309] +0000310|PLC|FAULT|[310] +0000311|PLC|FAULT|[311] +0000312|PLC|FAULT|[312] +0000313|PLC|FAULT|[313] PRESSORE 1 TESTA 1 NON IN POSIZIONE +0000314|PLC|FAULT|[314] PRESSORE 2 TESTA 1 NON IN POSIZIONE +0000315|PLC|FAULT|[315] PRESSORE 3 TESTA 1 NON IN POSIZIONE +0000316|PLC|FAULT|[316] PRESSORE 4 TESTA 1 NON IN POSIZIONE +0000317|PLC|FAULT|[317] PRESSORE 1 TESTA 2 NON IN POSIZIONE +0000318|PLC|FAULT|[318] PRESSORE 2 TESTA 2 NON IN POSIZIONE +0000319|PLC|FAULT|[319] PRESSORE 3 TESTA 2 NON IN POSIZIONE +0000320|PLC|FAULT|[320] PRESSORE 4 TESTA 2 NON IN POSIZIONE +0000321|PLC|FAULT|[321] ATTESA FINE CAMBIO UTENSILE +0000322|PLC|FAULT|[322] +0000323|PLC|FAULT|[323] PERICOLO COLLISIONE ASSI X-U +0000324|PLC|FAULT|[324] PERICOLO COLLISIONE ASSI Y-V +0000325|PLC|FAULT|[325] ZERO FEED RATE +0000326|PLC|FAULT|[326] PIGNA MOBILE ATTIVA - PADDLE DISABILITATO +0000327|PLC|FAULT|[327] APERTURA PINZE BLOCCATO DA ASSI Z-W BASSI +0000328|PLC|FAULT|[328] ATTENZIONE! PERICOLO COLLISIONE +0000329|PLC|FAULT|[329] CUFFIA LAMA NON IN POSIZIONE +0000330|PLC|FAULT|[330] BATTUTA RIFERIMENTO NON ESCLUSA +0000331|PLC|FAULT|[331] SCARICO PANNELLO: CONFERMARE CON START CICLO +0000332|PLC|FAULT|[332] VELOCITA' RIDOTTA A 25MT/MIN +0000333|PLC|FAULT|[333] DISCESA PRESSORE BLOCCATA DA ASSI Z-W BASSI +0000334|PLC|FAULT|[334] DISCESA MANDRINO BLOCCATA DA ASSI Z-W BASSI +0000335|PLC|FAULT|[335] DISCESA FUSO/LAMA BLOCCATA DA ASSI Z-W BASSI +0000336|PLC|FAULT|[336] DISCESA BATTUTA RIFERIMENTO BLOCCATA DA ASSI Z-W BASSI +0000337|PLC|FAULT|[337] MOVIMENTO ASSI X BLOCCATO DA PINZA APERTA E TESTE BASSE +0000338|PLC|FAULT|[338] MOVIMENTO ASSI U BLOCCATO DA PINZA APERTA E TESTE BASSE +0000339|PLC|FAULT|[339] MOVIMENTO ASSI YZ BLOCCATO DA PINZE APERTE +0000340|PLC|FAULT|[340] MOVIMENTO ASSI VW BLOCCATO DA PINZE APERTE +0000341|PLC|FAULT|[341] +0000342|PLC|FAULT|[342] +0000343|PLC|FAULT|[343] +0000344|PLC|FAULT|[344] +0000345|PLC|FAULT|[345] +0000346|PLC|FAULT|[346] +0000347|PLC|FAULT|[347] +0000348|PLC|FAULT|[348] +0000349|PLC|FAULT|[349] +0000350|PLC|FAULT|[350] +0000351|PLC|FAULT|[351] +0000352|PLC|FAULT|[352] +0000353|PLC|FAULT|[353] +0000354|PLC|FAULT|[354] +0000355|PLC|FAULT|[355] +0000356|PLC|FAULT|[356] +0000357|PLC|FAULT|[357] +0000358|PLC|FAULT|[358] +0000359|PLC|FAULT|[359] +0000360|PLC|FAULT|[360] +0000361|PLC|FAULT|[361] +0000362|PLC|FAULT|[362] +0000363|PLC|FAULT|[363] +0000364|PLC|FAULT|[364] +0000365|PLC|FAULT|[365] +0000366|PLC|FAULT|[366] +0000367|PLC|FAULT|[367] +0000368|PLC|FAULT|[368] +0000369|PLC|FAULT|[369] +0000370|PLC|FAULT|[370] +0000371|PLC|FAULT|[371] +0000372|PLC|FAULT|[372] +0000373|PLC|FAULT|[373] +0000374|PLC|FAULT|[374] +0000375|PLC|FAULT|[375] +0000376|PLC|FAULT|[376] +0000377|PLC|FAULT|[377] +0000378|PLC|FAULT|[378] +0000379|PLC|FAULT|[379] +0000380|PLC|FAULT|[380] +0000381|PLC|FAULT|[381] +0000382|PLC|FAULT|[382] +0000383|PLC|FAULT|[383] +0000384|PLC|FAULT|[384] +0000385|PLC|FAULT|[385] +0000386|PLC|FAULT|[386] +0000387|PLC|FAULT|[387] +0000388|PLC|FAULT|[388] +0000389|PLC|FAULT|[389] +0000390|PLC|FAULT|[390] +0000391|PLC|FAULT|[391] +0000392|PLC|FAULT|[392] +0000393|PLC|FAULT|[393] +0000394|PLC|FAULT|[394] +0000395|PLC|FAULT|[395] +0000396|PLC|FAULT|[396] +0000397|PLC|FAULT|[397] +0000398|PLC|FAULT|[398] +0000399|PLC|FAULT|[399] +0000400|PLC|FAULT|[400] +0000401|PLC|FAULT|[401] +0000402|PLC|FAULT|[402] +0000403|PLC|FAULT|[403] +0000404|PLC|FAULT|[404] +0000405|PLC|FAULT|[405] +0000406|PLC|FAULT|[406] +0000407|PLC|FAULT|[407] +0000408|PLC|FAULT|[408] +0000409|PLC|FAULT|[409] +0000410|PLC|FAULT|[410] +0000411|PLC|FAULT|[411] +0000412|PLC|FAULT|[412] +0000413|PLC|FAULT|[413] +0000414|PLC|FAULT|[414] +0000415|PLC|FAULT|[415] +0000416|PLC|FAULT|[416] +0000417|PLC|FAULT|[417] +0000418|PLC|FAULT|[418] +0000419|PLC|FAULT|[419] +0000420|PLC|FAULT|[420] \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/DATA/CONF/IOT_ByteList.map b/MTC_Adapter/MTC_Adapter/DATA/CONF/IOT_ByteList.map new file mode 100644 index 0000000..6cb9510 --- /dev/null +++ b/MTC_Adapter/MTC_Adapter/DATA/CONF/IOT_ByteList.map @@ -0,0 +1,24 @@ +# 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) +0.0|IOT_EXEC |BOOL +0.1|IOT_HOLD |BOOL +0.2|IOT_EMG |BOOL +0.3|IOT_ALRM |BOOL +0.4|IOT_MACHON |BOOL +0.5|IOT_READY |BOOL +0.6|libero |BOOL +0.7|libero |BOOL +001|libero |BYTE +002|libero |BYTE +003|IOT_MODECN |BYTE +004|IOT_OVRF |BYTE +005|IOT_OVRS |BYTE +006|IOT_LUB_01_STA |BYTE +007|IOT_LUB_01_CNT |BYTE +008|IOT_I_MD_01 |BYTE +009|IOT_I_MD_02 |BYTE +010|IOT_I_MD_03 |BYTE +011|IOT_I_MD_04 |BYTE +012|IOT_I_MD_05 |BYTE +013|IOT_I_MD_06 |BYTE +014|IOT_I_MD_07 |BYTE +015|IOT_I_MD_08 |BYTE \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/DATA/CONF/IOT_DWordList.map b/MTC_Adapter/MTC_Adapter/DATA/CONF/IOT_DWordList.map new file mode 100644 index 0000000..d6d6067 --- /dev/null +++ b/MTC_Adapter/MTC_Adapter/DATA/CONF/IOT_DWordList.map @@ -0,0 +1,67 @@ +# 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) +000|IOT_C_KU_AX_01 |DWORD +001|IOT_C_KU_AX_02 |DWORD +002|IOT_C_KU_AX_03 |DWORD +003|IOT_C_KU_AX_04 |DWORD +004|IOT_C_KU_AX_05 |DWORD +005|IOT_C_KU_AX_06 |DWORD +006|IOT_C_KU_AX_07 |DWORD +007|IOT_C_KU_AX_08 |DWORD +008|IOT_C_KU_AX_09 |DWORD +009|IOT_C_KU_AX_10 |DWORD +010|IOT_C_KU_AX_11 |DWORD +011|IOT_C_KU_AX_12 |DWORD +012|IOT_C_KU_AX_13 |DWORD +013|IOT_C_KU_AX_14 |DWORD +014|IOT_C_KU_AX_15 |DWORD +015|IOT_C_KINV_AX_01 |DWORD +016|IOT_C_KINV_AX_02 |DWORD +017|IOT_C_KINV_AX_03 |DWORD +018|IOT_C_KINV_AX_04 |DWORD +019|IOT_C_KINV_AX_05 |DWORD +020|IOT_C_KINV_AX_06 |DWORD +021|IOT_C_KINV_AX_07 |DWORD +022|IOT_C_KINV_AX_08 |DWORD +023|IOT_C_KINV_AX_09 |DWORD +024|IOT_C_KINV_AX_10 |DWORD +025|IOT_C_KINV_AX_11 |DWORD +026|IOT_C_KINV_AX_12 |DWORD +027|IOT_C_KINV_AX_13 |DWORD +028|IOT_C_KINV_AX_14 |DWORD +029|IOT_C_KINV_AX_15 |DWORD +030|IOT_POS_AX_01 |DWORD +031|IOT_POS_AX_02 |DWORD +032|IOT_POS_AX_03 |DWORD +033|IOT_POS_AX_04 |DWORD +034|IOT_POS_AX_05 |DWORD +035|IOT_POS_AX_06 |DWORD +036|IOT_POS_AX_07 |DWORD +037|IOT_POS_AX_08 |DWORD +038|IOT_POS_AX_09 |DWORD +039|IOT_POS_AX_10 |DWORD +040|IOT_POS_AX_11 |DWORD +041|IOT_POS_AX_12 |DWORD +042|IOT_POS_AX_13 |DWORD +043|IOT_POS_AX_14 |DWORD +044|IOT_POS_AX_15 |DWORD +045|IOT_C_KREV_MD_01 |DWORD +046|IOT_C_KREV_MD_02 |DWORD +047|IOT_C_KREV_MD_03 |DWORD +048|IOT_C_KREV_MD_04 |DWORD +049|IOT_C_KREV_MD_05 |DWORD +050|IOT_C_KREV_MD_06 |DWORD +051|IOT_C_KREV_MD_07 |DWORD +052|IOT_C_KREV_MD_08 |DWORD +053|IOT_PLC_MSG_00 |DWORD +054|IOT_PLC_MSG_01 |DWORD +055|IOT_PLC_MSG_02 |DWORD +056|IOT_PLC_MSG_03 |DWORD +057|IOT_PLC_MSG_04 |DWORD +058|IOT_PLC_MSG_05 |DWORD +059|IOT_PLC_MSG_06 |DWORD +060|IOT_PLC_MSG_07 |DWORD +061|IOT_PLC_MSG_08 |DWORD +062|IOT_PLC_MSG_09 |DWORD +063|IOT_PLC_MSG_10 |DWORD +064|IOT_PLC_MSG_11 |DWORD +065|IOT_PLC_MSG_12 |DWORD \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/DATA/CONF/IOT_StringList.map b/MTC_Adapter/MTC_Adapter/DATA/CONF/IOT_StringList.map new file mode 100644 index 0000000..7e9dfac --- /dev/null +++ b/MTC_Adapter/MTC_Adapter/DATA/CONF/IOT_StringList.map @@ -0,0 +1,5 @@ +# 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) +1 001|IOT_PGMID_A1 |STRING +2 002|IOT_PGMID_A2 |STRING +3 003|IOT_PGMID_A3 |STRING +4 004|IOT_PGMID_A4 |STRING \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/DATA/CONF/IOT_WordList.map b/MTC_Adapter/MTC_Adapter/DATA/CONF/IOT_WordList.map new file mode 100644 index 0000000..0e77769 --- /dev/null +++ b/MTC_Adapter/MTC_Adapter/DATA/CONF/IOT_WordList.map @@ -0,0 +1,45 @@ +# 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) +000|IOT_S_MD_01 |WORD +001|IOT_S_MD_02 |WORD +002|IOT_S_MD_03 |WORD +003|IOT_S_MD_04 |WORD +004|IOT_S_MD_05 |WORD +005|IOT_S_MD_06 |WORD +006|IOT_S_MD_07 |WORD +007|IOT_S_MD_08 |WORD +008|IOT_T_MD_01 |WORD +009|IOT_T_MD_02 |WORD +010|IOT_T_MD_03 |WORD +011|IOT_T_MD_04 |WORD +012|IOT_T_MD_05 |WORD +013|IOT_T_MD_06 |WORD +014|IOT_T_MD_07 |WORD +015|IOT_T_MD_08 |WORD +016|IOT_C_H_VAC_01 |WORD +017|IOT_C_H_VAC_02 |WORD +018|IOT_C_H_VAC_03 |WORD +019|IOT_C_H_VAC_04 |WORD +020|IOT_C_TC_01 |WORD +021|IOT_C_TC_02 |WORD +022|IOT_C_TC_03 |WORD +023|IOT_C_TC_04 |WORD +024|IOT_C_TC_05 |WORD +025|IOT_C_TC_06 |WORD +026|IOT_C_TC_07 |WORD +027|IOT_C_TC_08 |WORD +028|IOT_C_H_MD_01 |WORD +029|IOT_C_H_MD_02 |WORD +030|IOT_C_H_MD_03 |WORD +031|IOT_C_H_MD_04 |WORD +032|IOT_C_H_MD_05 |WORD +033|IOT_C_H_MD_06 |WORD +034|IOT_C_H_MD_07 |WORD +035|IOT_C_H_MD_08 |WORD +036|IOT_PGMR_A_01 |WORD +037|IOT_PGMR_A_02 |WORD +038|IOT_PGMR_A_03 |WORD +039|IOT_PGMR_A_04 |WORD +040|IOT_C_EXEC_A_01 |WORD +041|IOT_C_EXEC_A_02 |WORD +042|IOT_C_EXEC_A_03 |WORD +043|IOT_C_EXEC_A_04 |WORD \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/MTC-Adapter.csproj b/MTC_Adapter/MTC_Adapter/MTC-Adapter.csproj index a6d0fbe..026f252 100644 --- a/MTC_Adapter/MTC_Adapter/MTC-Adapter.csproj +++ b/MTC_Adapter/MTC_Adapter/MTC-Adapter.csproj @@ -12,6 +12,7 @@ v4.5.2 512 true + false publish\ true Disk @@ -24,7 +25,6 @@ true 0 1.0.0.%2a - false false true @@ -163,10 +163,20 @@ App.config + Designer Always + + Always + + + Always + + + Always + Always @@ -178,6 +188,9 @@ Designer + + Always + Designer diff --git a/MTC_Adapter/MTC_Adapter/MainForm.Designer.cs b/MTC_Adapter/MTC_Adapter/MainForm.Designer.cs index ee35267..32862e8 100644 --- a/MTC_Adapter/MTC_Adapter/MainForm.Designer.cs +++ b/MTC_Adapter/MTC_Adapter/MainForm.Designer.cs @@ -116,9 +116,9 @@ this.lblPLC_ADP = new System.Windows.Forms.Label(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.lblApp = new System.Windows.Forms.ToolStripStatusLabel(); - this.lblStatus = new System.Windows.Forms.ToolStripStatusLabel(); - this.MainProgrBar = new System.Windows.Forms.ToolStripProgressBar(); this.lblVers = new System.Windows.Forms.ToolStripStatusLabel(); + this.MainProgrBar = new System.Windows.Forms.ToolStripProgressBar(); + this.lblStatus = new System.Windows.Forms.ToolStripStatusLabel(); this.groupBox13 = new System.Windows.Forms.GroupBox(); this.cbPathSel = new System.Windows.Forms.ComboBox(); this.label38 = new System.Windows.Forms.Label(); @@ -245,7 +245,7 @@ this.PlcErr_02.AutoSize = true; this.PlcErr_02.Location = new System.Drawing.Point(96, 43); this.PlcErr_02.Name = "PlcErr_02"; - this.PlcErr_02.Size = new System.Drawing.Size(72, 17); + this.PlcErr_02.Size = new System.Drawing.Size(83, 19); this.PlcErr_02.TabIndex = 6; this.PlcErr_02.Text = "PlcErr_05"; this.PlcErr_02.UseVisualStyleBackColor = true; @@ -273,7 +273,7 @@ this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(118, 26); this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(28, 13); + this.label8.Size = new System.Drawing.Size(30, 15); this.label8.TabIndex = 19; this.label8.Text = "Text"; // @@ -282,7 +282,7 @@ this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(4, 26); this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(32, 13); + this.label7.Size = new System.Drawing.Size(36, 15); this.label7.TabIndex = 18; this.label7.Text = "Code"; // @@ -306,7 +306,7 @@ this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(12, 367); this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(0, 13); + this.label6.Size = new System.Drawing.Size(0, 15); this.label6.TabIndex = 43; // // AxFeedOverValue @@ -328,7 +328,7 @@ this.label9.AutoSize = true; this.label9.Location = new System.Drawing.Point(12, 166); this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(57, 13); + this.label9.Size = new System.Drawing.Size(63, 15); this.label9.TabIndex = 24; this.label9.Text = "Feed Over"; // @@ -346,7 +346,7 @@ this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(12, 145); this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(50, 13); + this.label10.Size = new System.Drawing.Size(54, 15); this.label10.TabIndex = 22; this.label10.Text = "Feed Act"; // @@ -370,7 +370,7 @@ this.label13.AutoSize = true; this.label13.Location = new System.Drawing.Point(31, 48); this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(40, 13); + this.label13.Size = new System.Drawing.Size(44, 15); this.label13.TabIndex = 48; this.label13.Text = "Part ID"; // @@ -387,7 +387,7 @@ this.label12.AutoSize = true; this.label12.Location = new System.Drawing.Point(15, 74); this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(53, 13); + this.label12.Size = new System.Drawing.Size(58, 15); this.label12.TabIndex = 46; this.label12.Text = "Halt Type"; // @@ -416,49 +416,49 @@ this.X.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells; this.X.HeaderText = "X"; this.X.Name = "X"; - this.X.Width = 39; + this.X.Width = 44; // // Y // this.Y.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells; this.Y.HeaderText = "Y"; this.Y.Name = "Y"; - this.Y.Width = 39; + this.Y.Width = 43; // // Z // this.Z.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells; this.Z.HeaderText = "Z"; this.Z.Name = "Z"; - this.Z.Width = 39; + this.Z.Width = 43; // // I // this.I.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells; this.I.HeaderText = "I"; this.I.Name = "I"; - this.I.Width = 35; + this.I.Width = 39; // // J // this.J.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells; this.J.HeaderText = "J"; this.J.Name = "J"; - this.J.Width = 37; + this.J.Width = 42; // // K // this.K.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells; this.K.HeaderText = "K"; this.K.Name = "K"; - this.K.Width = 39; + this.K.Width = 44; // // PlcErr_03 // this.PlcErr_03.AutoSize = true; this.PlcErr_03.Location = new System.Drawing.Point(96, 66); this.PlcErr_03.Name = "PlcErr_03"; - this.PlcErr_03.Size = new System.Drawing.Size(72, 17); + this.PlcErr_03.Size = new System.Drawing.Size(83, 19); this.PlcErr_03.TabIndex = 5; this.PlcErr_03.Text = "PlcErr_06"; this.PlcErr_03.UseVisualStyleBackColor = true; @@ -469,7 +469,7 @@ this.PlcErr_01.AutoSize = true; this.PlcErr_01.Location = new System.Drawing.Point(96, 20); this.PlcErr_01.Name = "PlcErr_01"; - this.PlcErr_01.Size = new System.Drawing.Size(72, 17); + this.PlcErr_01.Size = new System.Drawing.Size(83, 19); this.PlcErr_01.TabIndex = 4; this.PlcErr_01.Text = "PlcErr_04"; this.PlcErr_01.UseVisualStyleBackColor = true; @@ -501,7 +501,7 @@ this.ErrRT_03.AutoSize = true; this.ErrRT_03.Location = new System.Drawing.Point(268, 66); this.ErrRT_03.Name = "ErrRT_03"; - this.ErrRT_03.Size = new System.Drawing.Size(67, 17); + this.ErrRT_03.Size = new System.Drawing.Size(76, 19); this.ErrRT_03.TabIndex = 11; this.ErrRT_03.Text = "ERR_12"; this.ErrRT_03.UseVisualStyleBackColor = true; @@ -512,7 +512,7 @@ this.ErrRT_02.AutoSize = true; this.ErrRT_02.Location = new System.Drawing.Point(268, 43); this.ErrRT_02.Name = "ErrRT_02"; - this.ErrRT_02.Size = new System.Drawing.Size(67, 17); + this.ErrRT_02.Size = new System.Drawing.Size(76, 19); this.ErrRT_02.TabIndex = 10; this.ErrRT_02.Text = "ERR_11"; this.ErrRT_02.UseVisualStyleBackColor = true; @@ -523,7 +523,7 @@ this.CncErr_02.AutoSize = true; this.CncErr_02.Location = new System.Drawing.Point(181, 43); this.CncErr_02.Name = "CncErr_02"; - this.CncErr_02.Size = new System.Drawing.Size(76, 17); + this.CncErr_02.Size = new System.Drawing.Size(87, 19); this.CncErr_02.TabIndex = 9; this.CncErr_02.Text = "CncErr_08"; this.CncErr_02.UseVisualStyleBackColor = true; @@ -534,7 +534,7 @@ this.CncErr_03.AutoSize = true; this.CncErr_03.Location = new System.Drawing.Point(181, 66); this.CncErr_03.Name = "CncErr_03"; - this.CncErr_03.Size = new System.Drawing.Size(76, 17); + this.CncErr_03.Size = new System.Drawing.Size(87, 19); this.CncErr_03.TabIndex = 8; this.CncErr_03.Text = "CncErr_09"; this.CncErr_03.UseVisualStyleBackColor = true; @@ -545,7 +545,7 @@ this.CncErr_01.AutoSize = true; this.CncErr_01.Location = new System.Drawing.Point(181, 20); this.CncErr_01.Name = "CncErr_01"; - this.CncErr_01.Size = new System.Drawing.Size(76, 17); + this.CncErr_01.Size = new System.Drawing.Size(87, 19); this.CncErr_01.TabIndex = 7; this.CncErr_01.Text = "CncErr_07"; this.CncErr_01.UseVisualStyleBackColor = true; @@ -556,7 +556,7 @@ this.SysErr_03.AutoSize = true; this.SysErr_03.Location = new System.Drawing.Point(7, 66); this.SysErr_03.Name = "SysErr_03"; - this.SysErr_03.Size = new System.Drawing.Size(74, 17); + this.SysErr_03.Size = new System.Drawing.Size(85, 19); this.SysErr_03.TabIndex = 3; this.SysErr_03.Text = "SysErr_03"; this.SysErr_03.UseVisualStyleBackColor = true; @@ -567,7 +567,7 @@ this.ErrRT_01.AutoSize = true; this.ErrRT_01.Location = new System.Drawing.Point(268, 20); this.ErrRT_01.Name = "ErrRT_01"; - this.ErrRT_01.Size = new System.Drawing.Size(67, 17); + this.ErrRT_01.Size = new System.Drawing.Size(76, 19); this.ErrRT_01.TabIndex = 2; this.ErrRT_01.Text = "ERR_10"; this.ErrRT_01.UseVisualStyleBackColor = true; @@ -578,7 +578,7 @@ this.SysErr_02.AutoSize = true; this.SysErr_02.Location = new System.Drawing.Point(7, 43); this.SysErr_02.Name = "SysErr_02"; - this.SysErr_02.Size = new System.Drawing.Size(74, 17); + this.SysErr_02.Size = new System.Drawing.Size(85, 19); this.SysErr_02.TabIndex = 1; this.SysErr_02.Text = "SysErr_02"; this.SysErr_02.UseVisualStyleBackColor = true; @@ -589,7 +589,7 @@ this.SysErr_01.AutoSize = true; this.SysErr_01.Location = new System.Drawing.Point(7, 20); this.SysErr_01.Name = "SysErr_01"; - this.SysErr_01.Size = new System.Drawing.Size(74, 17); + this.SysErr_01.Size = new System.Drawing.Size(85, 19); this.SysErr_01.TabIndex = 0; this.SysErr_01.Text = "SysErr_01"; this.SysErr_01.UseVisualStyleBackColor = true; @@ -646,7 +646,7 @@ this.label37.AutoSize = true; this.label37.Location = new System.Drawing.Point(10, 187); this.label37.Name = "label37"; - this.label37.Size = new System.Drawing.Size(53, 13); + this.label37.Size = new System.Drawing.Size(55, 15); this.label37.TabIndex = 42; this.label37.Text = "Accel Act"; // @@ -662,7 +662,7 @@ this.label36.AutoSize = true; this.label36.Location = new System.Drawing.Point(262, 187); this.label36.Name = "label36"; - this.label36.Size = new System.Drawing.Size(40, 13); + this.label36.Size = new System.Drawing.Size(44, 15); this.label36.TabIndex = 40; this.label36.Text = "Battery"; // @@ -678,7 +678,7 @@ this.label11.AutoSize = true; this.label11.Location = new System.Drawing.Point(127, 187); this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(66, 13); + this.label11.Size = new System.Drawing.Size(75, 15); this.label11.TabIndex = 38; this.label11.Text = "Accum Time"; // @@ -695,7 +695,7 @@ this.label35.AutoSize = true; this.label35.Location = new System.Drawing.Point(218, 71); this.label35.Name = "label35"; - this.label35.Size = new System.Drawing.Size(49, 13); + this.label35.Size = new System.Drawing.Size(56, 15); this.label35.TabIndex = 36; this.label35.Text = "Direction"; // @@ -704,7 +704,7 @@ this.label34.AutoSize = true; this.label34.Location = new System.Drawing.Point(12, 72); this.label34.Name = "label34"; - this.label34.Size = new System.Drawing.Size(53, 13); + this.label34.Size = new System.Drawing.Size(58, 15); this.label34.TabIndex = 35; this.label34.Text = "Axis Type"; // @@ -731,7 +731,7 @@ this.label33.AutoSize = true; this.label33.Location = new System.Drawing.Point(238, 45); this.label33.Name = "label33"; - this.label33.Size = new System.Drawing.Size(44, 13); + this.label33.Size = new System.Drawing.Size(49, 15); this.label33.TabIndex = 32; this.label33.Text = "Mast ID"; // @@ -740,7 +740,7 @@ this.AxIsMaster.AutoSize = true; this.AxIsMaster.Location = new System.Drawing.Point(178, 44); this.AxIsMaster.Name = "AxIsMaster"; - this.AxIsMaster.Size = new System.Drawing.Size(58, 17); + this.AxIsMaster.Size = new System.Drawing.Size(67, 19); this.AxIsMaster.TabIndex = 31; this.AxIsMaster.Text = "Master"; this.AxIsMaster.UseVisualStyleBackColor = true; @@ -757,7 +757,7 @@ this.label32.AutoSize = true; this.label32.Location = new System.Drawing.Point(11, 44); this.label32.Name = "label32"; - this.label32.Size = new System.Drawing.Size(55, 13); + this.label32.Size = new System.Drawing.Size(63, 15); this.label32.TabIndex = 29; this.label32.Text = "Main Proc"; // @@ -777,7 +777,7 @@ this.label31.AutoSize = true; this.label31.Location = new System.Drawing.Point(12, 19); this.label31.Name = "label31"; - this.label31.Size = new System.Drawing.Size(51, 13); + this.label31.Size = new System.Drawing.Size(59, 15); this.label31.TabIndex = 27; this.label31.Text = "Axis Num"; // @@ -800,7 +800,7 @@ this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(12, 124); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(44, 13); + this.label5.Size = new System.Drawing.Size(51, 15); this.label5.TabIndex = 24; this.label5.Text = "Position"; // @@ -817,7 +817,7 @@ this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(12, 103); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(31, 13); + this.label4.Size = new System.Drawing.Size(35, 15); this.label4.TabIndex = 22; this.label4.Text = "Load"; // @@ -826,7 +826,7 @@ this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(87, 95); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(0, 13); + this.label3.Size = new System.Drawing.Size(0, 15); this.label3.TabIndex = 21; // // AxLoad @@ -849,7 +849,7 @@ this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(7, 22); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(68, 13); + this.label2.Size = new System.Drawing.Size(81, 15); this.label2.TabIndex = 38; this.label2.Text = "Curr Program"; // @@ -891,7 +891,7 @@ this.label25.AutoSize = true; this.label25.Location = new System.Drawing.Point(269, 101); this.label25.Name = "label25"; - this.label25.Size = new System.Drawing.Size(37, 13); + this.label25.Size = new System.Drawing.Size(41, 15); this.label25.TabIndex = 58; this.label25.Text = "Pz KO"; // @@ -908,7 +908,7 @@ this.label23.AutoSize = true; this.label23.Location = new System.Drawing.Point(157, 101); this.label23.Name = "label23"; - this.label23.Size = new System.Drawing.Size(37, 13); + this.label23.Size = new System.Drawing.Size(41, 15); this.label23.TabIndex = 56; this.label23.Text = "Pz OK"; // @@ -925,7 +925,7 @@ this.label21.AutoSize = true; this.label21.Location = new System.Drawing.Point(33, 101); this.label21.Name = "label21"; - this.label21.Size = new System.Drawing.Size(38, 13); + this.label21.Size = new System.Drawing.Size(41, 15); this.label21.TabIndex = 54; this.label21.Text = "Pz Tot"; // @@ -941,7 +941,7 @@ this.label19.AutoSize = true; this.label19.Location = new System.Drawing.Point(222, 48); this.label19.Name = "label19"; - this.label19.Size = new System.Drawing.Size(45, 13); + this.label19.Size = new System.Drawing.Size(50, 15); this.label19.TabIndex = 52; this.label19.Text = "ID oper."; // @@ -957,7 +957,7 @@ this.label17.AutoSize = true; this.label17.Location = new System.Drawing.Point(253, 22); this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(54, 13); + this.label17.Size = new System.Drawing.Size(62, 15); this.label17.TabIndex = 50; this.label17.Text = "Row Num"; // @@ -983,7 +983,7 @@ this.STATUS_STRB_DW3.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_STRB_DW3.Location = new System.Drawing.Point(85, 119); this.STATUS_STRB_DW3.Name = "STATUS_STRB_DW3"; - this.STATUS_STRB_DW3.Size = new System.Drawing.Size(291, 24); + this.STATUS_STRB_DW3.Size = new System.Drawing.Size(291, 28); this.STATUS_STRB_DW3.TabIndex = 59; // // label49 @@ -991,7 +991,7 @@ this.label49.AutoSize = true; this.label49.Location = new System.Drawing.Point(15, 125); this.label49.Name = "label49"; - this.label49.Size = new System.Drawing.Size(67, 13); + this.label49.Size = new System.Drawing.Size(73, 15); this.label49.TabIndex = 58; this.label49.Text = "STRB_DW3"; // @@ -1000,7 +1000,7 @@ this.STATUS_STRB_DW2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_STRB_DW2.Location = new System.Drawing.Point(85, 84); this.STATUS_STRB_DW2.Name = "STATUS_STRB_DW2"; - this.STATUS_STRB_DW2.Size = new System.Drawing.Size(291, 24); + this.STATUS_STRB_DW2.Size = new System.Drawing.Size(291, 28); this.STATUS_STRB_DW2.TabIndex = 57; // // label47 @@ -1008,7 +1008,7 @@ this.label47.AutoSize = true; this.label47.Location = new System.Drawing.Point(15, 90); this.label47.Name = "label47"; - this.label47.Size = new System.Drawing.Size(67, 13); + this.label47.Size = new System.Drawing.Size(73, 15); this.label47.TabIndex = 56; this.label47.Text = "STRB_DW2"; // @@ -1017,7 +1017,7 @@ this.STATUS_STRB_DW1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_STRB_DW1.Location = new System.Drawing.Point(85, 49); this.STATUS_STRB_DW1.Name = "STATUS_STRB_DW1"; - this.STATUS_STRB_DW1.Size = new System.Drawing.Size(291, 24); + this.STATUS_STRB_DW1.Size = new System.Drawing.Size(291, 28); this.STATUS_STRB_DW1.TabIndex = 55; // // label18 @@ -1025,7 +1025,7 @@ this.label18.AutoSize = true; this.label18.Location = new System.Drawing.Point(15, 55); this.label18.Name = "label18"; - this.label18.Size = new System.Drawing.Size(67, 13); + this.label18.Size = new System.Drawing.Size(73, 15); this.label18.TabIndex = 54; this.label18.Text = "STRB_DW1"; // @@ -1034,7 +1034,7 @@ this.STATUS_STRB_DW0.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_STRB_DW0.Location = new System.Drawing.Point(85, 14); this.STATUS_STRB_DW0.Name = "STATUS_STRB_DW0"; - this.STATUS_STRB_DW0.Size = new System.Drawing.Size(291, 24); + this.STATUS_STRB_DW0.Size = new System.Drawing.Size(291, 28); this.STATUS_STRB_DW0.TabIndex = 53; // // lblPLC_ADP @@ -1042,7 +1042,7 @@ this.lblPLC_ADP.AutoSize = true; this.lblPLC_ADP.Location = new System.Drawing.Point(15, 22); this.lblPLC_ADP.Name = "lblPLC_ADP"; - this.lblPLC_ADP.Size = new System.Drawing.Size(67, 13); + this.lblPLC_ADP.Size = new System.Drawing.Size(73, 15); this.lblPLC_ADP.TabIndex = 52; this.lblPLC_ADP.Text = "STRB_DW0"; // @@ -1065,14 +1065,16 @@ this.lblApp.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); this.lblApp.ForeColor = System.Drawing.SystemColors.ControlText; this.lblApp.Name = "lblApp"; - this.lblApp.Size = new System.Drawing.Size(16, 20); + this.lblApp.Size = new System.Drawing.Size(21, 20); this.lblApp.Text = "..."; // - // lblStatus + // lblVers // - this.lblStatus.Name = "lblStatus"; - this.lblStatus.Size = new System.Drawing.Size(22, 20); - this.lblStatus.Text = "---"; + this.lblVers.Font = new System.Drawing.Font("Segoe UI", 8F); + this.lblVers.ForeColor = System.Drawing.SystemColors.ControlDarkDark; + this.lblVers.Name = "lblVers"; + this.lblVers.Size = new System.Drawing.Size(18, 20); + this.lblVers.Text = "..."; // // MainProgrBar // @@ -1080,13 +1082,11 @@ this.MainProgrBar.Size = new System.Drawing.Size(100, 19); this.MainProgrBar.Step = 1; // - // lblVers + // lblStatus // - this.lblVers.Font = new System.Drawing.Font("Segoe UI", 8F); - this.lblVers.ForeColor = System.Drawing.SystemColors.ControlDarkDark; - this.lblVers.Name = "lblVers"; - this.lblVers.Size = new System.Drawing.Size(16, 20); - this.lblVers.Text = "..."; + this.lblStatus.Name = "lblStatus"; + this.lblStatus.Size = new System.Drawing.Size(27, 20); + this.lblStatus.Text = "---"; // // groupBox13 // @@ -1126,7 +1126,7 @@ this.label38.AutoSize = true; this.label38.Location = new System.Drawing.Point(11, 20); this.label38.Name = "label38"; - this.label38.Size = new System.Drawing.Size(54, 13); + this.label38.Size = new System.Drawing.Size(62, 15); this.label38.TabIndex = 62; this.label38.Text = "Path Num"; // @@ -1135,7 +1135,7 @@ this.label29.AutoSize = true; this.label29.Location = new System.Drawing.Point(12, 133); this.label29.Name = "label29"; - this.label29.Size = new System.Drawing.Size(51, 13); + this.label29.Size = new System.Drawing.Size(56, 15); this.label29.TabIndex = 33; this.label29.Text = "Posiz Act"; // @@ -1152,7 +1152,7 @@ this.label28.AutoSize = true; this.label28.Location = new System.Drawing.Point(10, 91); this.label28.Name = "label28"; - this.label28.Size = new System.Drawing.Size(64, 13); + this.label28.Size = new System.Drawing.Size(71, 15); this.label28.TabIndex = 31; this.label28.Text = "Rapid Over."; // @@ -1178,7 +1178,7 @@ this.label27.AutoSize = true; this.label27.Location = new System.Drawing.Point(10, 66); this.label27.Name = "label27"; - this.label27.Size = new System.Drawing.Size(60, 13); + this.label27.Size = new System.Drawing.Size(66, 15); this.label27.TabIndex = 28; this.label27.Text = "Feed Over."; // @@ -1204,7 +1204,7 @@ this.label26.AutoSize = true; this.label26.Location = new System.Drawing.Point(10, 40); this.label26.Name = "label26"; - this.label26.Size = new System.Drawing.Size(49, 13); + this.label26.Size = new System.Drawing.Size(56, 15); this.label26.TabIndex = 24; this.label26.Text = "Feedrate"; // @@ -1225,7 +1225,7 @@ this.sETUPToolStripMenuItem}); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; - this.menuStrip1.Size = new System.Drawing.Size(785, 24); + this.menuStrip1.Size = new System.Drawing.Size(785, 28); this.menuStrip1.TabIndex = 61; this.menuStrip1.Text = "menuStrip1"; // @@ -1234,13 +1234,13 @@ this.fILEToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mLoadAdaptConf}); this.fILEToolStripMenuItem.Name = "fILEToolStripMenuItem"; - this.fILEToolStripMenuItem.Size = new System.Drawing.Size(40, 20); + this.fILEToolStripMenuItem.Size = new System.Drawing.Size(47, 24); this.fILEToolStripMenuItem.Text = "FILE"; // // mLoadAdaptConf // this.mLoadAdaptConf.Name = "mLoadAdaptConf"; - this.mLoadAdaptConf.Size = new System.Drawing.Size(194, 22); + this.mLoadAdaptConf.Size = new System.Drawing.Size(232, 26); this.mLoadAdaptConf.Text = "LOAD ADAPTER CONF"; this.mLoadAdaptConf.Click += new System.EventHandler(this.mLoadAdaptConf_Click); // @@ -1250,14 +1250,14 @@ this.mConfGen}); this.sETUPToolStripMenuItem.Name = "sETUPToolStripMenuItem"; this.sETUPToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.S))); - this.sETUPToolStripMenuItem.Size = new System.Drawing.Size(53, 20); + this.sETUPToolStripMenuItem.Size = new System.Drawing.Size(63, 24); this.sETUPToolStripMenuItem.Text = "SETUP"; // // mConfGen // this.mConfGen.Name = "mConfGen"; this.mConfGen.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.T))); - this.mConfGen.Size = new System.Drawing.Size(271, 22); + this.mConfGen.Size = new System.Drawing.Size(327, 26); this.mConfGen.Text = "TEMPLATE CONF GENERATOR"; this.mConfGen.Click += new System.EventHandler(this.mConfGen_Click); // @@ -1265,7 +1265,7 @@ // this.lblCurrAdapt.Dock = System.Windows.Forms.DockStyle.Top; this.lblCurrAdapt.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblCurrAdapt.Location = new System.Drawing.Point(0, 24); + this.lblCurrAdapt.Location = new System.Drawing.Point(0, 28); this.lblCurrAdapt.Name = "lblCurrAdapt"; this.lblCurrAdapt.Size = new System.Drawing.Size(785, 26); this.lblCurrAdapt.TabIndex = 64; @@ -1278,10 +1278,10 @@ this.tabCtrlMain.Controls.Add(this.tbConf); this.tabCtrlMain.Controls.Add(this.tpSIM); this.tabCtrlMain.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabCtrlMain.Location = new System.Drawing.Point(0, 50); + this.tabCtrlMain.Location = new System.Drawing.Point(0, 54); this.tabCtrlMain.Name = "tabCtrlMain"; this.tabCtrlMain.SelectedIndex = 0; - this.tabCtrlMain.Size = new System.Drawing.Size(785, 666); + this.tabCtrlMain.Size = new System.Drawing.Size(785, 662); this.tabCtrlMain.TabIndex = 65; // // tpStatus @@ -1295,7 +1295,7 @@ this.tpStatus.Location = new System.Drawing.Point(4, 22); this.tpStatus.Name = "tpStatus"; this.tpStatus.Padding = new System.Windows.Forms.Padding(3); - this.tpStatus.Size = new System.Drawing.Size(777, 640); + this.tpStatus.Size = new System.Drawing.Size(777, 636); this.tpStatus.TabIndex = 0; this.tpStatus.Text = "STATUS"; // @@ -1304,7 +1304,7 @@ this.lblOutMessage.AutoSize = true; this.lblOutMessage.Location = new System.Drawing.Point(95, 281); this.lblOutMessage.Name = "lblOutMessage"; - this.lblOutMessage.Size = new System.Drawing.Size(16, 13); + this.lblOutMessage.Size = new System.Drawing.Size(16, 15); this.lblOutMessage.TabIndex = 60; this.lblOutMessage.Text = "..."; // @@ -1313,7 +1313,7 @@ this.label53.AutoSize = true; this.label53.Location = new System.Drawing.Point(18, 281); this.label53.Name = "label53"; - this.label53.Size = new System.Drawing.Size(54, 13); + this.label53.Size = new System.Drawing.Size(61, 15); this.label53.TabIndex = 59; this.label53.Text = "Data Mon"; // @@ -1339,7 +1339,7 @@ this.STATUS_ACK_DW3.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_ACK_DW3.Location = new System.Drawing.Point(85, 118); this.STATUS_ACK_DW3.Name = "STATUS_ACK_DW3"; - this.STATUS_ACK_DW3.Size = new System.Drawing.Size(293, 24); + this.STATUS_ACK_DW3.Size = new System.Drawing.Size(293, 28); this.STATUS_ACK_DW3.TabIndex = 59; // // label52 @@ -1347,7 +1347,7 @@ this.label52.AutoSize = true; this.label52.Location = new System.Drawing.Point(15, 126); this.label52.Name = "label52"; - this.label52.Size = new System.Drawing.Size(59, 13); + this.label52.Size = new System.Drawing.Size(64, 15); this.label52.TabIndex = 58; this.label52.Text = "ACK_DW3"; // @@ -1356,7 +1356,7 @@ this.STATUS_ACK_DW2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_ACK_DW2.Location = new System.Drawing.Point(85, 83); this.STATUS_ACK_DW2.Name = "STATUS_ACK_DW2"; - this.STATUS_ACK_DW2.Size = new System.Drawing.Size(293, 24); + this.STATUS_ACK_DW2.Size = new System.Drawing.Size(293, 28); this.STATUS_ACK_DW2.TabIndex = 57; // // label51 @@ -1364,7 +1364,7 @@ this.label51.AutoSize = true; this.label51.Location = new System.Drawing.Point(15, 91); this.label51.Name = "label51"; - this.label51.Size = new System.Drawing.Size(59, 13); + this.label51.Size = new System.Drawing.Size(64, 15); this.label51.TabIndex = 56; this.label51.Text = "ACK_DW2"; // @@ -1373,7 +1373,7 @@ this.STATUS_ACK_DW1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_ACK_DW1.Location = new System.Drawing.Point(85, 48); this.STATUS_ACK_DW1.Name = "STATUS_ACK_DW1"; - this.STATUS_ACK_DW1.Size = new System.Drawing.Size(293, 24); + this.STATUS_ACK_DW1.Size = new System.Drawing.Size(293, 28); this.STATUS_ACK_DW1.TabIndex = 55; // // label50 @@ -1381,7 +1381,7 @@ this.label50.AutoSize = true; this.label50.Location = new System.Drawing.Point(15, 56); this.label50.Name = "label50"; - this.label50.Size = new System.Drawing.Size(59, 13); + this.label50.Size = new System.Drawing.Size(64, 15); this.label50.TabIndex = 54; this.label50.Text = "ACK_DW1"; // @@ -1390,7 +1390,7 @@ this.STATUS_ACK_DW0.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_ACK_DW0.Location = new System.Drawing.Point(85, 15); this.STATUS_ACK_DW0.Name = "STATUS_ACK_DW0"; - this.STATUS_ACK_DW0.Size = new System.Drawing.Size(293, 24); + this.STATUS_ACK_DW0.Size = new System.Drawing.Size(293, 28); this.STATUS_ACK_DW0.TabIndex = 53; // // label48 @@ -1398,7 +1398,7 @@ this.label48.AutoSize = true; this.label48.Location = new System.Drawing.Point(15, 19); this.label48.Name = "label48"; - this.label48.Size = new System.Drawing.Size(59, 13); + this.label48.Size = new System.Drawing.Size(64, 15); this.label48.TabIndex = 52; this.label48.Text = "ACK_DW0"; // @@ -1460,7 +1460,7 @@ this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(18, 20); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(26, 13); + this.label1.Size = new System.Drawing.Size(29, 15); this.label1.TabIndex = 0; this.label1.Text = "Port"; // @@ -1551,7 +1551,7 @@ this.label45.AutoSize = true; this.label45.Location = new System.Drawing.Point(4, 122); this.label45.Name = "label45"; - this.label45.Size = new System.Drawing.Size(38, 13); + this.label45.Size = new System.Drawing.Size(43, 15); this.label45.TabIndex = 79; this.label45.Text = "Speed"; // @@ -1568,7 +1568,7 @@ this.label46.AutoSize = true; this.label46.Location = new System.Drawing.Point(4, 101); this.label46.Name = "label46"; - this.label46.Size = new System.Drawing.Size(31, 13); + this.label46.Size = new System.Drawing.Size(35, 15); this.label46.TabIndex = 77; this.label46.Text = "Load"; // @@ -1592,7 +1592,7 @@ this.label43.AutoSize = true; this.label43.Location = new System.Drawing.Point(6, 75); this.label43.Name = "label43"; - this.label43.Size = new System.Drawing.Size(44, 13); + this.label43.Size = new System.Drawing.Size(49, 15); this.label43.TabIndex = 74; this.label43.Text = "VitaRes"; // @@ -1608,7 +1608,7 @@ this.label44.AutoSize = true; this.label44.Location = new System.Drawing.Point(120, 75); this.label44.Name = "label44"; - this.label44.Size = new System.Drawing.Size(52, 13); + this.label44.Size = new System.Drawing.Size(57, 15); this.label44.TabIndex = 72; this.label44.Text = "Acc Time"; // @@ -1624,7 +1624,7 @@ this.label40.AutoSize = true; this.label40.Location = new System.Drawing.Point(6, 49); this.label40.Name = "label40"; - this.label40.Size = new System.Drawing.Size(42, 13); + this.label40.Size = new System.Drawing.Size(46, 15); this.label40.TabIndex = 70; this.label40.Text = "Tool ID"; // @@ -1640,7 +1640,7 @@ this.label41.AutoSize = true; this.label41.Location = new System.Drawing.Point(255, 49); this.label41.Name = "label41"; - this.label41.Size = new System.Drawing.Size(37, 13); + this.label41.Size = new System.Drawing.Size(41, 15); this.label41.TabIndex = 68; this.label41.Text = "Status"; // @@ -1656,7 +1656,7 @@ this.label42.AutoSize = true; this.label42.Location = new System.Drawing.Point(120, 49); this.label42.Name = "label42"; - this.label42.Size = new System.Drawing.Size(44, 13); + this.label42.Size = new System.Drawing.Size(51, 15); this.label42.TabIndex = 66; this.label42.Text = "NumCU"; // @@ -1676,7 +1676,7 @@ this.label39.AutoSize = true; this.label39.Location = new System.Drawing.Point(4, 23); this.label39.Name = "label39"; - this.label39.Size = new System.Drawing.Size(60, 13); + this.label39.Size = new System.Drawing.Size(69, 15); this.label39.TabIndex = 64; this.label39.Text = "Num UnOp"; // @@ -1699,7 +1699,7 @@ this.ready.Checked = true; this.ready.Location = new System.Drawing.Point(114, 16); this.ready.Name = "ready"; - this.ready.Size = new System.Drawing.Size(56, 17); + this.ready.Size = new System.Drawing.Size(63, 19); this.ready.TabIndex = 9; this.ready.TabStop = true; this.ready.Text = "Ready"; @@ -1710,7 +1710,7 @@ this.feedhold.AutoSize = true; this.feedhold.Location = new System.Drawing.Point(253, 16); this.feedhold.Name = "feedhold"; - this.feedhold.Size = new System.Drawing.Size(74, 17); + this.feedhold.Size = new System.Drawing.Size(85, 19); this.feedhold.TabIndex = 8; this.feedhold.Text = "Feed Hold"; this.feedhold.UseVisualStyleBackColor = true; @@ -1720,7 +1720,7 @@ this.stopped.AutoSize = true; this.stopped.Location = new System.Drawing.Point(180, 16); this.stopped.Name = "stopped"; - this.stopped.Size = new System.Drawing.Size(65, 17); + this.stopped.Size = new System.Drawing.Size(74, 19); this.stopped.TabIndex = 7; this.stopped.Text = "Stopped"; this.stopped.UseVisualStyleBackColor = true; @@ -1730,7 +1730,7 @@ this.running.AutoSize = true; this.running.Location = new System.Drawing.Point(36, 16); this.running.Name = "running"; - this.running.Size = new System.Drawing.Size(65, 17); + this.running.Size = new System.Drawing.Size(75, 19); this.running.TabIndex = 6; this.running.Text = "Running"; this.running.UseVisualStyleBackColor = true; @@ -1753,7 +1753,7 @@ this.edit.AutoSize = true; this.edit.Location = new System.Drawing.Point(299, 16); this.edit.Name = "edit"; - this.edit.Size = new System.Drawing.Size(43, 17); + this.edit.Size = new System.Drawing.Size(49, 19); this.edit.TabIndex = 9; this.edit.Text = "Edit"; this.edit.UseVisualStyleBackColor = true; @@ -1763,7 +1763,7 @@ this.mdi.AutoSize = true; this.mdi.Location = new System.Drawing.Point(180, 15); this.mdi.Name = "mdi"; - this.mdi.Size = new System.Drawing.Size(113, 17); + this.mdi.Size = new System.Drawing.Size(129, 19); this.mdi.TabIndex = 8; this.mdi.Text = "Manual Data Input"; this.mdi.UseVisualStyleBackColor = true; @@ -1774,7 +1774,7 @@ this.manual.Checked = true; this.manual.Location = new System.Drawing.Point(114, 15); this.manual.Name = "manual"; - this.manual.Size = new System.Drawing.Size(60, 17); + this.manual.Size = new System.Drawing.Size(70, 19); this.manual.TabIndex = 7; this.manual.TabStop = true; this.manual.Text = "Manual"; @@ -1785,7 +1785,7 @@ this.automatic.AutoSize = true; this.automatic.Location = new System.Drawing.Point(36, 16); this.automatic.Name = "automatic"; - this.automatic.Size = new System.Drawing.Size(72, 17); + this.automatic.Size = new System.Drawing.Size(82, 19); this.automatic.TabIndex = 6; this.automatic.Text = "Automatic"; this.automatic.UseVisualStyleBackColor = true; @@ -1815,7 +1815,7 @@ this.D1_UUID.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.D1_UUID.Location = new System.Drawing.Point(233, 54); this.D1_UUID.Name = "D1_UUID"; - this.D1_UUID.Size = new System.Drawing.Size(19, 13); + this.D1_UUID.Size = new System.Drawing.Size(23, 17); this.D1_UUID.TabIndex = 66; this.D1_UUID.Text = "..."; // @@ -1825,7 +1825,7 @@ this.D1_ID.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.D1_ID.Location = new System.Drawing.Point(54, 53); this.D1_ID.Name = "D1_ID"; - this.D1_ID.Size = new System.Drawing.Size(19, 13); + this.D1_ID.Size = new System.Drawing.Size(23, 17); this.D1_ID.TabIndex = 65; this.D1_ID.Text = "..."; // @@ -1835,7 +1835,7 @@ this.D1_NAME.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.D1_NAME.Location = new System.Drawing.Point(54, 20); this.D1_NAME.Name = "D1_NAME"; - this.D1_NAME.Size = new System.Drawing.Size(19, 13); + this.D1_NAME.Size = new System.Drawing.Size(23, 17); this.D1_NAME.TabIndex = 64; this.D1_NAME.Text = "..."; // @@ -1844,7 +1844,7 @@ this.lblAT.AutoSize = true; this.lblAT.Location = new System.Drawing.Point(189, 20); this.lblAT.Name = "lblAT"; - this.lblAT.Size = new System.Drawing.Size(43, 13); + this.lblAT.Size = new System.Drawing.Size(47, 15); this.lblAT.TabIndex = 63; this.lblAT.Text = "AccMin"; // @@ -1860,7 +1860,7 @@ this.label30.AutoSize = true; this.label30.Location = new System.Drawing.Point(288, 20); this.label30.Name = "label30"; - this.label30.Size = new System.Drawing.Size(36, 13); + this.label30.Size = new System.Drawing.Size(41, 15); this.label30.TabIndex = 61; this.label30.Text = "power"; // @@ -1876,7 +1876,7 @@ this.label16.AutoSize = true; this.label16.Location = new System.Drawing.Point(193, 53); this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(34, 13); + this.label16.Size = new System.Drawing.Size(37, 15); this.label16.TabIndex = 59; this.label16.Text = "UUID"; // @@ -1885,7 +1885,7 @@ this.label15.AutoSize = true; this.label15.Location = new System.Drawing.Point(10, 53); this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(18, 13); + this.label15.Size = new System.Drawing.Size(19, 15); this.label15.TabIndex = 57; this.label15.Text = "ID"; // @@ -1894,7 +1894,7 @@ this.label14.AutoSize = true; this.label14.Location = new System.Drawing.Point(10, 20); this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(35, 13); + this.label14.Size = new System.Drawing.Size(41, 15); this.label14.TabIndex = 54; this.label14.Text = "Nome"; // @@ -1914,7 +1914,7 @@ this.enableDataSim.Location = new System.Drawing.Point(112, 9); this.enableDataSim.Name = "enableDataSim"; this.enableDataSim.RightToLeft = System.Windows.Forms.RightToLeft.Yes; - this.enableDataSim.Size = new System.Drawing.Size(59, 17); + this.enableDataSim.Size = new System.Drawing.Size(68, 19); this.enableDataSim.TabIndex = 55; this.enableDataSim.Text = "Enable"; this.enableDataSim.UseVisualStyleBackColor = true; @@ -1935,7 +1935,7 @@ this.estop.Location = new System.Drawing.Point(59, 9); this.estop.Name = "estop"; this.estop.RightToLeft = System.Windows.Forms.RightToLeft.Yes; - this.estop.Size = new System.Drawing.Size(104, 17); + this.estop.Size = new System.Drawing.Size(119, 19); this.estop.TabIndex = 55; this.estop.Text = "Emergency Stop"; this.estop.UseVisualStyleBackColor = true; @@ -1963,7 +1963,7 @@ this.lblCodaT.AutoSize = true; this.lblCodaT.Location = new System.Drawing.Point(117, 74); this.lblCodaT.Name = "lblCodaT"; - this.lblCodaT.Size = new System.Drawing.Size(22, 13); + this.lblCodaT.Size = new System.Drawing.Size(22, 15); this.lblCodaT.TabIndex = 60; this.lblCodaT.Text = "[...]"; // @@ -1981,7 +1981,7 @@ this.label24.AutoSize = true; this.label24.Location = new System.Drawing.Point(9, 74); this.label24.Name = "label24"; - this.label24.Size = new System.Drawing.Size(33, 13); + this.label24.Size = new System.Drawing.Size(35, 15); this.label24.TabIndex = 58; this.label24.Text = "AddT"; // @@ -1990,7 +1990,7 @@ this.lblCodaS.AutoSize = true; this.lblCodaS.Location = new System.Drawing.Point(118, 48); this.lblCodaS.Name = "lblCodaS"; - this.lblCodaS.Size = new System.Drawing.Size(22, 13); + this.lblCodaS.Size = new System.Drawing.Size(22, 15); this.lblCodaS.TabIndex = 57; this.lblCodaS.Text = "[...]"; // @@ -2008,7 +2008,7 @@ this.label22.AutoSize = true; this.label22.Location = new System.Drawing.Point(10, 48); this.label22.Name = "label22"; - this.label22.Size = new System.Drawing.Size(33, 13); + this.label22.Size = new System.Drawing.Size(36, 15); this.label22.TabIndex = 55; this.label22.Text = "AddS"; // @@ -2017,7 +2017,7 @@ this.lblCodaM.AutoSize = true; this.lblCodaM.Location = new System.Drawing.Point(118, 22); this.lblCodaM.Name = "lblCodaM"; - this.lblCodaM.Size = new System.Drawing.Size(22, 13); + this.lblCodaM.Size = new System.Drawing.Size(22, 15); this.lblCodaM.TabIndex = 54; this.lblCodaM.Text = "[...]"; // @@ -2035,7 +2035,7 @@ this.label20.AutoSize = true; this.label20.Location = new System.Drawing.Point(10, 22); this.label20.Name = "label20"; - this.label20.Size = new System.Drawing.Size(35, 13); + this.label20.Size = new System.Drawing.Size(39, 15); this.label20.TabIndex = 52; this.label20.Text = "AddM"; // @@ -2048,8 +2048,9 @@ // // trayMenu // + this.trayMenu.ImageScalingSize = new System.Drawing.Size(20, 20); this.trayMenu.Name = "trayMenu"; - this.trayMenu.Size = new System.Drawing.Size(61, 4); + this.trayMenu.Size = new System.Drawing.Size(67, 4); this.trayMenu.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.trayMenu_ItemClicked); // // MainForm diff --git a/MTC_Adapter/MTC_Adapter/MainForm.cs b/MTC_Adapter/MTC_Adapter/MainForm.cs index bfe9b07..3710d9a 100644 --- a/MTC_Adapter/MTC_Adapter/MainForm.cs +++ b/MTC_Adapter/MTC_Adapter/MainForm.cs @@ -49,7 +49,7 @@ namespace MTC_Adapter /// /// timer base in avvio /// - protected int startTimerMs; + protected int startTimerMs = 250; /// /// ultimo tentativo riavvio... /// @@ -149,8 +149,7 @@ namespace MTC_Adapter var sentinalRule = new LoggingRule("*", LogLevel.Trace, sentinalTarget); LogManager.Configuration.AddTarget("sentinal", sentinalTarget); LogManager.Configuration.LoggingRules.Add(sentinalRule); - - + #endif LogManager.ReconfigExistingLoggers(); @@ -166,8 +165,11 @@ namespace MTC_Adapter if (utils.CRB("autoLoadConf")) { loadXmlFile(defConfFilePath); + lg.Info("XML LOADED"); loadPersistLayer(defPersLayerFile); + lg.Info("PersLayerFile READ"); agObj.loadPersData(); + lg.Info("PersLayerFile LOADED"); } else { @@ -184,6 +186,8 @@ namespace MTC_Adapter displayTaskAndWait("Running"); createTrayMenu(); + displayTaskAndWait("Tray Menu OK"); + // avvio minimizzato se richiesto if (utils.CRB("startMinimized")) { @@ -192,7 +196,10 @@ namespace MTC_Adapter { WindowState = FormWindowState.Minimized; } + displayTaskAndWait("Minimized"); } + + displayTaskAndWait("Main Form OK"); } /// /// Verifica finale a fine show... @@ -207,6 +214,7 @@ namespace MTC_Adapter // controllo e mando a tray... sendToTray(); } + displayTaskAndWait("Main Form SHOWN"); } /// /// crea menĂą tray x applicazione @@ -269,6 +277,7 @@ namespace MTC_Adapter { notifyIcon1.Visible = false; } + } /// /// Gestisce "andata nel tray" della form @@ -445,19 +454,19 @@ namespace MTC_Adapter // fix componenti vettoriali PATH, UNOP, ASSI... for (int i = 0; i < adpConf.nPath; i++) { - cbPathSel.Items.Insert(i, adpConf.Path[i].alias); + cbPathSel.Items.Insert(i, adpConf.Path[i].ident); } if (adpConf.nPath > 0) cbPathSel.SelectedIndex = 0; for (int i = 0; i < adpConf.nUnOp; i++) { - cbUnOpSel.Items.Insert(i, adpConf.UnOp[i].alias); + cbUnOpSel.Items.Insert(i, adpConf.UnOp[i].ident); } if (adpConf.nUnOp > 0) cbUnOpSel.SelectedIndex = 0; for (int i = 0; i < adpConf.nAxis; i++) { - cbAxNum.Items.Insert(i, adpConf.Axis[i].alias); + cbAxNum.Items.Insert(i, adpConf.Axis[i].ident); } if (adpConf.nAxis > 0) cbAxNum.SelectedIndex = 0; @@ -473,6 +482,8 @@ namespace MTC_Adapter { avviaAdapter(); agObj.loadPersData(); + // salvo che ho avviato adapter + lg.Info("Completato LOAD Adapter"); } public void avviaAdapter() @@ -500,7 +511,6 @@ namespace MTC_Adapter normCount = utils.CRI("normCount"); slowCount = utils.CRI("slowCount"); alarmSyncCount = utils.CRI("alarmSyncCount"); - displayTaskAndWait("Adapter Running..."); } @@ -512,6 +522,8 @@ namespace MTC_Adapter private void stop_Click(object sender, EventArgs e) { fermaAdapter(false); + // salvo che ho fermato adapter + lg.Info("UNLOAD Adapter"); } /// /// Ferma l'adapter @@ -524,17 +536,18 @@ namespace MTC_Adapter private void gather_Tick(object sender, EventArgs e) { - + //lg.Info("timer called"); // eseguo cicli attivi SOLO se adapter è in EFFETTIVO running... if (agObj.adpRunning) { // inizio a riportare che sto eseguendo.. - MainProgrBar.PerformStep(); + advProgBar(); if (agObj.connectionOk) { - +#if false // eseguo eventuali simulazioni x dati/flags SE RICHIESTO - simulateData(); + simulateData(); +#endif // check esecuzione FastTask checkFastTask(); @@ -585,6 +598,7 @@ namespace MTC_Adapter private void checkAlarmSync() { + alarmSyncCount--; if (alarmSyncCount <= 0) { @@ -592,7 +606,7 @@ namespace MTC_Adapter // avvio fase raccolta dati e invio con adapter agObj.gaterAndSend(gatherCycle.VLF); - MainProgrBar.PerformStep(); + advProgBar(); } } private void checkSlowTask() @@ -604,7 +618,7 @@ namespace MTC_Adapter // avvio fase raccolta dati e invio con adapter agObj.gaterAndSend(gatherCycle.LF); - MainProgrBar.PerformStep(); + advProgBar(); // refresh stringhe code M/S/T refreshCodeMST(); @@ -645,6 +659,7 @@ namespace MTC_Adapter private void checkNormTask() { + // decremento... normCount--; // se il counter è a zero eseguo... @@ -654,8 +669,20 @@ namespace MTC_Adapter // avvio fase raccolta dati e invio con adapter agObj.gaterAndSend(gatherCycle.MF); + advProgBar(); + } + } + /// + /// Avanza la barra di stato... + /// + public void advProgBar() + { + try + { MainProgrBar.PerformStep(); } + catch + { } } private void checkFastTask() @@ -671,16 +698,18 @@ namespace MTC_Adapter agObj.gaterAndSend(gatherCycle.HF); refreshVisualStrobes(); - MainProgrBar.PerformStep(); + advProgBar(); } } private void message_Leave(object sender, EventArgs e) { +#if false agObj.mMessage.Code = messageCode.Text; agObj.mMessage.Value = messageText.Text; agObj.mMessage.ForceChanged(); agObj.mAdapter.SendChanged(); +#endif } // apro eseguibile dump @@ -1154,13 +1183,21 @@ namespace MTC_Adapter /// public void savePersistLayer(string filePath) { - try + // se HO dei dati... + if (agObj.persistenceLayer != null) { - utils.WritePlain(agObj.persistenceLayer, filePath); + try + { + utils.WritePlain(agObj.persistenceLayer, filePath); + } + catch (Exception exc) + { + lg.Error(string.Format("Errore salvataggio file{0}{1}", Environment.NewLine, exc)); + } } - catch (Exception exc) + else { - lg.Error(exc, "Errore salvataggio file"); + lg.Info("persistenceLayer null, non salvato..."); } } /// @@ -1600,5 +1637,6 @@ namespace MTC_Adapter agObj.tryDisconnect(); } } + } } diff --git a/MTC_Adapter/MTC_Adapter/Resources/CMS/AlarmListFANUC.map b/MTC_Adapter/MTC_Adapter/Resources/CMS/AlarmListFANUC.map index 6698345..c799ba6 100644 --- a/MTC_Adapter/MTC_Adapter/Resources/CMS/AlarmListFANUC.map +++ b/MTC_Adapter/MTC_Adapter/Resources/CMS/AlarmListFANUC.map @@ -377,7 +377,7 @@ 000376|PLC|FAULT|[COD 002107] - 530 PULSANTIERA ESTERNA ABILITATA 000377|PLC|FAULT|[COD 002108] - 504 CAMBIO UTENSILE INTERROTTO 000378|PLC|FAULT|[COD 002109] - 363 MONTANTE CENTRALE ALTO -000379|PLC|FAULT|[COD 002110] - =--- PREALLARME TERMICO TORQUE A +000379|PLC|FAULT|[COD 002110] - --- PREALLARME TERMICO TORQUE A 000380|PLC|FAULT|[COD 002111] - 498 CARICO MASSIMO SUL MANDRINO SUPERATO SOGLIA S1 000381|PLC|FAULT|[COD 002112] - --- PREALLARME TERMICO TORQUE C 000382|PLC|FAULT|[COD 002113] - 432 UTENSILE NON SGANCIATO @@ -431,7 +431,7 @@ 000430|PLC|FAULT|[COD 002161] - 289 ATTREZZAGGIO CAMBIO UTENSILE 2 IN CORSO 000431|PLC|FAULT|[COD 002162] - 584 PORTA DI SICUREZZA MAGAZZINO DISCO 2 NON CHIUSA 000432|PLC|FAULT|[COD 002163] - 514 PROTEZIONE MAGAZZINO DISCO 2 NON IN POSIZIONE -000433|PLC|FAULT|[COD 002164] - +000433|PLC|FAULT|[COD 002164] - ... 000434|PLC|FAULT|[COD 002165] - 550 GRUPPO DI FORATURA NON IN POSIZIONE 000435|PLC|FAULT|[COD 002166] - ... 000436|PLC|FAULT|[COD 002167] - ... diff --git a/MTC_Adapter/MTC_Adapter/Resources/MTCA.ico b/MTC_Adapter/MTC_Adapter/Resources/MTCA.ico index aa5c63e..6ed8df8 100644 Binary files a/MTC_Adapter/MTC_Adapter/Resources/MTCA.ico and b/MTC_Adapter/MTC_Adapter/Resources/MTCA.ico differ diff --git a/MTC_Adapter/MTC_Adapter/Resources/SCM/AlarmListEsaGv.map b/MTC_Adapter/MTC_Adapter/Resources/SCM/AlarmListEsaGv.map index 9c35e40..22ee9b1 100644 --- a/MTC_Adapter/MTC_Adapter/Resources/SCM/AlarmListEsaGv.map +++ b/MTC_Adapter/MTC_Adapter/Resources/SCM/AlarmListEsaGv.map @@ -1,276 +1,421 @@ -1|PLC|FAULT|[1] MANDRINO 1 NON BLOCCATO -2|PLC|FAULT|[2] MANDRINO 2 NON BLOCCATO -3|PLC|FAULT|[3] MANDRINO SUPPLEMENTARE NON BLOCCATO -4|PLC|FAULT|[4] ZONA DI COLLISIONE CON CAMBIO UTENSILE ESTERNO -5|PLC|FAULT|[5] ZONA DI COLLISIONE CON CAMBIO UTENSILE LINEARE -6|PLC|FAULT|[6] GRUPPO ASSI NON VALIDO -7|PLC|FAULT|[7] INVERTER 1 NON OK -8|PLC|FAULT|[8] INVERTER 2 NON OK -9|PLC|FAULT|[9] INVERTER MANDRINO SUPPLEMENTARE NON OK -10|PLC|FAULT|[10] SAVE ENERGY ATTIVO -11|PLC|FAULT|[11] [WD]SUPERATO NUMERO PEZZI MASSIMO CARICABILE SU TRANSFER -12|PLC|FAULT|[12] VERIFICA CONTATTORI NON OK -13|PLC|FAULT|[13] TIMEOUT COMUNICAZIONE XILOG -14|PLC|WARNING|[14] INTERVENTO MAGNETOTERMICI -15|PLC|FAULT|[15] PORTE PROTEZIONE APERTE -16|PLC|FAULT|[16] TAPPETO CONVOGLIA TRUCIOLI NON IN POSIZIONE -17|PLC|FAULT|[17] COLLISIONE RILEVATA DAL SIMULATORE -18|PLC|FAULT|[18] -19|PLC|FAULT|[19] FORATRICE NON IN POSIZIONE -20|PLC|WARNING|[20] STOP MACCHINA DA CODICI M SUPPLEMENTARI -21|PLC|WARNING|[21] M00 ATTIVO: START CICLO -22|PLC|WARNING|[22] BATTERIA SCARICA ENCODER ASSI YASKAWA -23|PLC|FAULT|[23] AZIONAMENTI ASSI XYZ... NON OK -24|PLC|FAULT|[24] AZIONAMENTI ASSI ROTATIVI NON OK -25|PLC|FAULT|[25] CNC NON OK -26|PLC|FAULT|[26] PRESSOSTATO ARIA INTERVENUTO -27|PLC|FAULT|[27] BATTERIA CNC NON CARICA -28|PLC|FAULT|[28] ERRORE CANOPEN RING 0 -29|PLC|FAULT|[29] ERRORE CANOPEN RING 1 -30|PLC|WARNING|[30] ABILITAZIONE BL/SBL UTENSILE MANDRINO 1 -31|PLC|WARNING|[31] ABILITAZIONE BL/SBL UTENSILE MANDRINO 2 -32|PLC|WARNING|[32] ABILITAZIONE BL/SBL UTENSILE MANDRINO SUPPLEMENTARE -33|PLC|FAULT|[33] CICLO ETICHETTATURA IN CORSO -34|PLC|FAULT|[34] ETICHETTATRICE NON PRONTA -35|PLC|FAULT|[35] ETICHETTATRICE NON IN POSIZIONE -36|PLC|FAULT|[36] ERRORE ETICHETTATRICE -37|PLC|FAULT|[37] SONDA TERMICA/VENTOLA MANDRINO 1 -38|PLC|FAULT|[38] SONDA TERMICA/VENTOLA MANDRINO 2 -39|PLC|FAULT|[39] SONDA TERMICA/VENTOLA MANDRINO SUPPLEMENTARE -40|PLC|FAULT|[40] INTERVENTO MAGNETOTERMICO GRUPPO LAMA -41|PLC|FAULT|[41] RICARICARE POMPA LUBRIFICAZIONE -42|PLC|FAULT|[42] LUBRIFICAZIONE ASSI NON OK -43|PLC|WARNING|[43] LUBRIFICAZIONE ASSI IN CORSO -44|PLC|WARNING|[44] RICHIESTA VUOTO/ATTREZZATURA -45|PLC|FAULT|[45] EMERGENZA CAUSA VUOTO ZONA 1 -46|PLC|FAULT|[46] EMERGENZA CAUSA VUOTO ZONA 2 -47|PLC|FAULT|[47] ASSI IN FINE CORSA -48|PLC|FAULT|[48] CUFFIA ESTERNA NON IN POSIZIONE -49|PLC|FAULT|[49] CUFFIA INTERNA NON IN POSIZIONE -50|PLC|FAULT|[50] CUFFIA PULIZIA PIANO NON IN POSIZIONE -51|PLC|FAULT|[51] EMERGENZA CAUSA VUOTO ZONA 3 -52|PLC|FAULT|[52] EMERGENZA CAUSA VUOTO ZONA 4 -53|PLC|WARNING|[53] ESEGUIRE RIFERIMENTO ASSI -54|PLC|FAULT|[54] ESEGUIRE RIFERIMENTO MAGAZZINO UTENSILE 1 -55|PLC|FAULT|[55] ESEGUIRE RIFERIMENTO MAGAZZINO UTENSILE 2 -56|PLC|FAULT|[56] ESEGUIRE RIFERIMENTO MAGAZZINO UTENSILE MANDRINO SUPPLEMENTARE -57|PLC|FAULT|[57] ESEGUIRE RIFERIMENTO MAGAZZINO ESTERNO 1 -58|PLC|FAULT|[58] ESEGUIRE RIFERIMENTO NAVETTA HS -59|PLC|FAULT|[59] ESEGUIRE RIFERIMENTO PINZE ROBOT CELLA WD -60|PLC|FAULT|[60] CONVOGLIATORE TRUCIOLI NON OK -61|PLC|WARNING|[61] SERBATOIO LUBRIFICAZIONE CONVOGLIATORE TRUCIOLI VUOTO -62|PLC|FAULT|[62] ASSE X IN FINE CORSA -63|PLC|FAULT|[63] ASSE Y IN FINE CORSA -64|PLC|FAULT|[64] ASSE Z IN FINE CORSA -65|PLC|FAULT|[65] PALPATORE SYNCRO NON IN POSIZIONE -66|PLC|WARNING|[66] ALLINEAMENTO ASSI GANTRY IN CORSO -67|PLC|FAULT|[67] ASSE B IN FINE CORSA -68|PLC|FAULT|[68] ASSE C IN FINE CORSA -69|PLC|FAULT|[69] ASSE Y NON IN POSIZIONE -70|PLC|FAULT|[70] ESEGUIRE RIFERIMENTO PALPATORE SYNCRO -71|PLC|FAULT|[71] PERNO BLOCCAGGIO TAVOLO ELEVATORE NON IN POSIZIONE -72|PLC|FAULT|[72] FOTOCELLULA PRESENZA UTENSILE -73|PLC|FAULT|[73] MANDRINO 1 NON OK -74|PLC|FAULT|[74] MANDRINO 2 NON OK -75|PLC|FAULT|[75] MANDRINO SUPPLEMENTARE NON OK -76|PLC|FAULT|[76] FOTOCELLULA PRESENZA UTENSILE (CATENA) -77|PLC|FAULT|[77] ALLARME SENSORE ROTAZIONE MANDRINO 1 -78|PLC|FAULT|[78] ALLARME SENSORE ROTAZIONE MANDRINO 2 -79|PLC|FAULT|[79] ALLARME SENSORE ROTAZIONE MANDRINO SUPPLEMENTARE -80|PLC|FAULT|[80] CAMBIO UTENSILE TESTA 1(ONBOARD) NON IN POSIZIONE -81|PLC|FAULT|[81] CAMBIO UTENSILE MANDRINO SUPPLEMENTARE (ONBOARD) NON IN POSIZIONE -82|PLC|FAULT|[82] CAMBIO UTENSILE LINEARE NON IN POSIZIONE -83|PLC|FAULT|[83] CAMBIO UTENSILE HS NON IN POSIZIONE -84|PLC|FAULT|[84] [TM] NAVETTA TOOL MANAGEMENT NON IN POSIZIONE -85|PLC|FAULT|[85] [TM] LETTORE CHIP TOOL MANAGMENT NON IN POSIZIONE -86|PLC|FAULT|[86] [TM] LIBERARE PINZA DI CARICO TOOL MANAGMENT -87|PLC|FAULT|[87] [TM] COLLISIONE CON TOOL MANAGMENT -88|PLC|FAULT|[88] [TM] CARICARE UTENSILE SULLA PINZA DI CARICO DEL TOOL MANAGMENT -89|PLC|FAULT|[89] BANDELLA NON IN POSIZIONE -90|PLC|FAULT|[90] PANNELLO PRELEVATO FUORI ALLINEAMENTO -91|PLC|FAULT|[91] SCARICATORE NON IN POSIZIONE -92|PLC|FAULT|[92] SPONDE/BATTUTE DI SCARICO NON IN POSIZIONE -93|PLC|FAULT|[93] ZONA DI SCARICO OCCUPATA -94|PLC|FAULT|[94] VERIFICARE DIMENSIONI PILA -95|PLC|FAULT|[95] CARICARE NUOVA PILA -96|PLC|FAULT|[96] CARICATORE NON IN POSIZIONE -97|PLC|FAULT|[97] TAVOLO ELEVATORE NON OK -98|PLC|FAULT|[98] PANNELLO NON PRELEVATO DA TAVOLO ELEVATORE -99|PLC|FAULT|[99] FOTOCELLULA RIFERIMENTO PANNELLO NON OK -100|PLC|FAULT|[100] ALLARME CELLA WD -101|PLC|FAULT|[101] REFRIGERANTE MANDRINO 1 NON OK -102|PLC|FAULT|[102] REFRIGERANTE MANDRINO 2 NON OK -103|PLC|FAULT|[103] INVERTER NASTRO DI SCARICO NON OK -104|PLC|FAULT|[104] ARRESTO OPERATIVO: RESETTARE LE FOTOCELLULE DI SICUREZZA -105|PLC|WARNING|[105] C.UTENSILE LINEARE IN CORSO: ABBASSARE GLI INNALZATORI E RESETTARE LE FOTOCELLULE DI SICUREZZA -106|PLC|FAULT|[106] CARICO PANNELLO NON AMMESSO -107|PLC|FAULT|[107] BYPASS COLLISIONI ATTIVO -108|PLC|FAULT|[108] SPORTELLO CAMBIO UTENSILE LINEARE DESTRO NON IN POSIZIONE -109|PLC|FAULT|[109] VERIFICA FUNZIONAMENTO SICUREZZE -110|PLC|FAULT|[110] RESETTARE LE FOTOCELLULE DI SICUREZZA -111|PLC|FAULT|[111] INSERIMENTO UTENSILE NON OK -112|PLC|FAULT|[112] GUASTO MICRO CONTROLLO PEDANE -113|PLC|FAULT|[113] INSERIMENTO UTENSILE IN NAVETTA HS NON OK -114|PLC|WARNING|[114] TABELLA NON AGGIORNATA -115|PLC|FAULT|[115] MANDRINO 1 NON SBLOCCATO -116|PLC|FAULT|[116] MANDRINO SUPPLEMENTARE NON SBLOCCATO -117|PLC|FAULT|[117] CONTROLLARE CICLO CHIUSURA BORDO -118|PLC|WARNING|[118] PM: SETUP NON POSSIBILE ZONA 3 [Vuoto ON/Teste DW] -119|PLC|WARNING|[119] PM: SETUP NON POSSIBILE ZONA 4 [Vuoto ON/Teste DW] -120|PLC|WARNING|[120] UTENSILE SPECIALE: OPERAZIONE NON AMMESSA -121|PLC|FAULT|[121] ERRORE CICLO CHIUSURA BORDO -122|PLC|FAULT|[122] MAGAZZINO UTENSILE ESTERNO 1 NON IN POSIZIONE -123|PLC|FAULT|[123] SPORTELLO MAGAZZINO ESTERNO NON IN POSIZIONE -124|PLC|WARNING|[124] ERRATA PROGRAMMAZIONE -125|PLC|WARNING|[125] ERRORE UTENSILE TESTA 1 -126|PLC|WARNING|[126] ERRORE UTENSILE TESTA 2 -127|PLC|FAULT|[127] SPORTELLO CAMBIO UTENSILE LINEARE SINISTRO NON IN POSIZIONE -128|PLC|FAULT|[128] TIME OUT PIGNA MOBILE -129|PLC|WARNING|[129] CAMBIO MODALITA' MACCHINA (M103) -130|PLC|FAULT|[130] PORTE ARMADIO ELETTRICO APERTE -131|PLC|WARNING|[131] ESEGUIRE MANUTENZIONE CONDIZIONATORE ARMADIO ELETTRICO -132|PLC|FAULT|[132] AGGREGATO PRESSATORE/CONVOGLIATORE TRUCIOLI NON OK -133|PLC|FAULT|[133] SERBATOIO LUBROREFRIGERATORE UTENSILE VUOTO -134|PLC|WARNING|[134] BATTERIA SCARICA TASTATORE RADIO -135|PLC|FAULT|[135] RILEVATORE SPESSORE PEZZO NON IN POSIZIONE -136|PLC|FAULT|[136] CICLO TASTATURA NON OK -137|PLC|FAULT|[137] BATTUTE DI RIFERIMENTO ZONA 1 NON OK -138|PLC|FAULT|[138] BATTUTE DI RIFERIMENTO ZONA 2 NON OK -139|PLC|FAULT|[139] ASSI PRISMA BC NON IN POSIZIONE -140|PLC|FAULT|[140] AZIONAMENTI ASSI PRISMA BC NON OK -141|PLC|FAULT|[141] TASTATORE RADIO NON OK -142|PLC|FAULT|[142] -143|PLC|FAULT|[143] -144|PLC|FAULT|[144] -145|PLC|WARNING|[145] RIAGGANCIO MANDRINO IN CORSO -146|PLC|WARNING|[146] RIAGGANCIO MANDRINO FALLITO -147|PLC|WARNING|[147] RIAGGANCIO MANDRINO AVVENUTO -148|PLC|FAULT|[148] INTERVENTO FUNE DI SICUREZZA -149|PLC|FAULT|[149] INTERVENTO OVERSPEED ASSI -150|PLC|FAULT|[150] INTERVENTO BUMPERS -151|PLC|WARNING|[151] MACCHINA SPENTA -152|PLC|FAULT|[152] EMERGENZA PREMUTA -153|PLC|WARNING|[153] PM: SETUP NON POSSIBILE ZONA 1 [VUOTO ON / TESTE DW] -154|PLC|WARNING|[154] PM: SETUP NON POSSIBILE ZONA 2 [VUOTO ON / TESTE DW] -155|PLC|WARNING|[155] BARRA MOBILE CENTRALE 1 NON IN POSIZIONE -156|PLC|WARNING|[156] BARRA MOBILE CENTRALE 2 NON IN POSIZIONE -157|PLC|WARNING|[157] PM: COLLISIONE BATTUTE CON SUPPORTI VENTOSE / MORSETTI -158|PLC|WARNING|[158] CUFFIA MANDRINO SUPPLEMENTARE NON IN POSIZIONE -159|PLC|WARNING|[159] TESTA GRUPPO MANDRINO SUPPLEMENTARE NON IN POSIZIONE -160|PLC|WARNING|[160] TESTA GRUPPO LAMA NON IN POSIZIONE -161|PLC|WARNING|[161] CICLO DI CARICO IN CORSO -162|PLC|WARNING|[162] CICLO DI SCARICO IN CORSO -163|PLC|WARNING|[163] BATTUTE DI CARICO NON IN POSIZIONE ZONA 1 -164|PLC|WARNING|[164] ATTESA ROBOT IN POSIZIONE -165|PLC|WARNING|[165] INVERTER GUASTO POMPA VUOTO 1 (MASTER) -166|PLC|WARNING|[166] INVERTER GUASTO POMPA VUOTO 2 (SLAVE) -167|PLC|WARNING|[167] BATTUTE DI CARICO NON IN POSIZIONE ZONA 2 -168|PLC|WARNING|[168] SALITA CUFFIA DA OPERATORE -169|PLC|WARNING|[169] TRAVERSA 1 NON IN POSIZIONE -170|PLC|WARNING|[170] TRAVERSA 2 NON IN POSIZIONE -171|PLC|WARNING|[171] TRAVERSA 3 NON IN POSIZIONE -172|PLC|WARNING|[172] TRAVERSA 4 NON IN POSIZIONE -173|PLC|WARNING|[173] TRAVERSA 5 NON IN POSIZIONE -174|PLC|WARNING|[174] TRAVERSA 6 NON IN POSIZIONE -175|PLC|WARNING|[175] TRAVERSA 7 NON IN POSIZIONE -176|PLC|WARNING|[176] TRAVERSA 8 NON IN POSIZIONE -177|PLC|WARNING|[177] TRAVERSA 9 NON IN POSIZIONE -178|PLC|WARNING|[178] TRAVERSA 10 NON IN POSIZIONE -179|PLC|WARNING|[179] TRAVERSA 11 NON IN POSIZIONE -180|PLC|WARNING|[180] TRAVERSA 12 NON IN POSIZIONE -181|PLC|WARNING|[181] SOSTITUZIONE VENTOSE IN CORSO AREA 1 -182|PLC|WARNING|[182] SOSTITUZIONE VENTOSE IN CORSO AREA 2 -183|PLC|FAULT|[183] BATTUTE DI RIFERIMENTO ZONA 3 NON OK -184|PLC|FAULT|[184] BATTUTE DI RIFERIMENTO ZONA 4 NON OK -185|PLC|FAULT|[185] [BRC] GR5: GRUPPO FUSI ORIZZONTALI NON IN POSIZIONE (fori spine) -186|PLC|FAULT|[186] [BRC] GR6: GRUPPO FRESA VERTICALE NON IN POSIZIONE -187|PLC|FAULT|[187] [BRC] GR7: GRUPPO FRESA ORIZZONTALE NON IN POSIZIONE -188|PLC|FAULT|[188] [BRC] GR8: GRUPPO LAMA NON IN POSIZIONE -189|PLC|FAULT|[189] [BRC] ATTESA INNESTO PER ROTAZIONE GRUPPO LAMA -190|PLC|FAULT|[190] SELETTORI CONTROSAGOMA NON OK [AREA UNICA] -191|PLC|FAULT|[191] BATTUTE DI RIFERIMENTO BARRA 1 NON OK -192|PLC|FAULT|[192] BATTUTE DI RIFERIMENTO BARRA 2 NON OK -193|PLC|FAULT|[193] BATTUTE DI RIFERIMENTO BARRA 3 NON OK -194|PLC|FAULT|[194] BATTUTE DI RIFERIMENTO BARRA 4 NON OK -195|PLC|FAULT|[195] BATTUTE DI RIFERIMENTO BARRA 5 NON OK -196|PLC|FAULT|[196] BATTUTE DI RIFERIMENTO BARRA 6 NON OK -197|PLC|FAULT|[197] BATTUTE DI RIFERIMENTO BARRA 7 NON OK -198|PLC|FAULT|[198] BATTUTE DI RIFERIMENTO BARRA 8 NON OK -199|PLC|FAULT|[199] BATTUTE DI RIFERIMENTO BARRA 9 NON OK -200|PLC|FAULT|[200] BATTUTE DI RIFERIMENTO BARRA 10 NON OK -201|PLC|FAULT|[201] BATTUTE DI RIFERIMENTO BARRA 11 NON OK -202|PLC|FAULT|[202] BATTUTE DI RIFERIMENTO BARRA 12 NON OK -203|PLC|FAULT|[203] BATTUTE DI RIFERIMENTO BARRA FISSA SX NON OK -204|PLC|FAULT|[204] BATTUTE DI RIFERIMENTO BARRA FISSA DX NON OK -205|PLC|FAULT|[205] BASI NON BLOCCATE ZONA 1 -206|PLC|FAULT|[206] BASI NON BLOCCATE ZONA 2 -207|PLC|FAULT|[207] BASI NON BLOCCATE ZONA 3 -208|PLC|FAULT|[208] BASI NON BLOCCATE ZONA 4 -209|PLC|WARNING|[209] SOSTITUZIONE VENTOSE IN CORSO AREA 3 -210|PLC|WARNING|[210] SOSTITUZIONE VENTOSE IN CORSO AREA 4 -211|PLC|FAULT|[211] [BORDATORE POWER] ATTESA GRUPPO A BORDARE ALTO -212|PLC|FAULT|[212] [BORDATORE POWER] ATTESA GRUPPO A BORDARE BASSO -213|PLC|FAULT|[213] [BORDATORE POWER] ATTESA GRUPPO A BORDARE POSIZ. CAMBIO RULLO -214|PLC|FAULT|[214] [BORDATORE POWER] ATTESA PIANO CARICAMENTO BORDI ALTO -215|PLC|FAULT|[215] [BORDATORE POWER] ATTESA PIANO CARICAMENTO BORDI BASSO -216|PLC|FAULT|[216] [BORDATORE POWER] MANCATA LETTURA BORDO GIUNZIONE -217|PLC|FAULT|[217] [BORDATORE POWER] ERRORE BORDO SU FOTOCELLULA DI CARICO -218|PLC|FAULT|[218] VASCA COLLA NON IN TEMPERATURA -219|PLC|FAULT|[219] [BORDATORE POWER] ASSENZA BORDO IN MULTIROTOLO -220|PLC|FAULT|[220] [BORDATORE POWER] ATTESA CICLO CARICO COLLA DA PREFUSORE -221|PLC|FAULT|[221] [BORDATORE POWER] MANCATO TAGLIO TRANCIA MAGAZZINO BORDI -222|PLC|FAULT|[222] [BORDATORE POWER] ATTESA CARICO COLLA DA PREFUSORE -223|PLC|FAULT|[223] [BORDATORE POWER] ANOMALIA SENSORI CILINDRO TESTA A BORDARE -224|PLC|FAULT|[224] SENSORE TESTA A BORDARE IN COLLISIONE -225|PLC|FAULT|[225] [BORDATORE POWER] TIMEOUT INTESTATURA BORDO TESTA A BORDARE -226|PLC|FAULT|[226] INTERVENTO TERMICI VASCA COLLA -227|PLC|FAULT|[227] INTERVENTO TERMICI PREFUSORE -228|PLC|FAULT|[228] INTERVENTO TERMICI LAMPADE ONDE CORTE -229|PLC|FAULT|[229] ESEGUIRE RIFERIMENTO MOT. ALTEZZA BORDO TESTA B. -230|PLC|FAULT|[230] ESEGUIRE RIFERIMENTO MOT. ALTEZZA BORDO MAGAZZINO B. -231|PLC|FAULT|[231] ESEGUIRE RIFERIMENTO MOT. CAMBIO RULLO PRESSIONE -232|PLC|FAULT|[232] TIMEOUT SENSORE CHIUSURA CILINDRO PREFUSORE -233|PLC|FAULT|[233] ESEGUIRE TARATURA TRAVERSE/VENTOSE -234|PLC|FAULT|[234] VENTOSE NON BLOCCATE AREA 1 -235|PLC|FAULT|[235] VENTOSE NON BLOCCATE AREA 2 -236|PLC|WARNING|[236] ATTESA SBLOCCO VENTOSA -237|PLC|WARNING|[237] ATTESA BLOCCO VENTOSA -238|PLC|WARNING|[238] RIMUOVERE VENTOSA: START CICLO -239|PLC|WARNING|[239] INSERIRE VENTOSA: START CICLO -240|PLC|FAULT|[240] ANOMALIA FOTOCELLULA MAGAZZINO BORDI -241|PLC|WARNING|[241] BARRA 1 -242|PLC|WARNING|[242] BARRA 2 -243|PLC|WARNING|[243] BARRA 3 -244|PLC|WARNING|[244] BARRA 4 -245|PLC|WARNING|[245] BARRA 5 -246|PLC|WARNING|[246] BARRA 6 -247|PLC|WARNING|[247] BARRA 7 -248|PLC|WARNING|[248] BARRA 8 -249|PLC|WARNING|[249] BARRA 9 -250|PLC|WARNING|[250] BARRA 10 -251|PLC|WARNING|[251] BARRA 11 -252|PLC|WARNING|[252] BARRA 12 -253|PLC|WARNING|[253] RIMUOVERE/INSERIRE VENTOSA COME DA GRAFICA SU AREA 1: START CICLO -254|PLC|WARNING|[254] RIMUOVERE/INSERIRE VENTOSA COME DA GRAFICA SU AREA 2: START CICLO -255|PLC|FAULT|[255] PORTE PROTEZIONE SBLOCCATE -256|PLC|FAULT|[256] ERRORE MODULO ZERO SPEED MANDRINO -257|PLC|FAULT|[257] INTESTATORE NON IN POSIZIONE -258|PLC|FAULT|[258] INTESTATORE 92 VUOTO -259|PLC|FAULT|[259] INTESTATORE 93 VUOTO -260|PLC|FAULT|[260] LIVELLO COLLA BASSO B.BASIC -261|PLC|FAULT|[261] [WD]EMERGENZA TRANSFER PREMUTA -262|PLC|FAULT|[262] [WD]INTERVENTO MAGNETOTERMICI TRANSFER -263|PLC|FAULT|[263] [WD]PORTE ARMADIO ELETTRICO TRANSFER APERTE -264|PLC|FAULT|[264] [WD]SVUOTARE TRANSFER -265|PLC|FAULT|[265] [WD]PEZZO IN ZONA DI SCARICO -266|PLC|FAULT|[266] [WD]ATTESA ROBOT 1 IN POSIZIONE -267|PLC|FAULT|[267] [WD]ATTESA ROBOT 2 IN POSIZIONE -268|PLC|FAULT|[268] [WD]SVUOTARE RULLIERE -269|PLC|FAULT|[269] [WD]DIMENSIONI PEZZO NON OK -270|PLC|FAULT|[270] [WD]SVUOTARE PIANO MACCHINA E PINZE ROBOT -271|PLC|FAULT|[271] [WD]PINZA ROBOT 1 NON IN POSIZIONE -272|PLC|FAULT|[272] [WD]PINZA ROBOT 2 NON IN POSIZIONE -273|PLC|FAULT|[273] MORSETTI ZONA 1 ALTI PNEUMATICAMENTE -274|PLC|FAULT|[274] MORSETTI ZONA 2 ALTI PNEUMATICAMENTE -275|PLC|FAULT|[275] EMERGENZA CAUSA MORSETTI ZONA 1 -276|PLC|FAULT|[276] EMERGENZA CAUSA MORSETTI ZONA 2 +# Commenti con "#", elenco tipo COD_NUM|GRUPPO|LEVEL|DESCRIZIONE completa +000001|PLC|FAULT|[1] MANDRINO 1 NON BLOCCATO +000002|PLC|FAULT|[2] MANDRINO 2 NON BLOCCATO +000003|PLC|FAULT|[3] MANDRINO SUPPLEMENTARE NON BLOCCATO +000004|PLC|FAULT|[4] ZONA DI COLLISIONE CON CAMBIO UTENSILE ESTERNO +000005|PLC|FAULT|[5] ZONA DI COLLISIONE CON CAMBIO UTENSILE LINEARE +000006|PLC|FAULT|[6] GRUPPO ASSI NON VALIDO +000007|PLC|FAULT|[7] INVERTER 1 NON OK +000008|PLC|FAULT|[8] INVERTER 2 NON OK +000009|PLC|FAULT|[9] INVERTER MANDRINO SUPPLEMENTARE NON OK +0000010|PLC|FAULT|[10] SAVE ENERGY ATTIVO +0000011|PLC|FAULT|[11] B,[WD] SUPERATO NUMERO PEZZI MASSIMO CARICABILE SU TRANSFER +0000012|PLC|FAULT|[12] VERIFICA CONTATTORI NON OK +0000013|PLC|FAULT|[13] TIMEOUT COMUNICAZIONE XILOG +0000014|PLC|WARNING|[14] INTERVENTO MAGNETOTERMICI +0000015|PLC|FAULT|[15] PORTE PROTEZIONE APERTE +0000016|PLC|FAULT|[16] TAPPETO CONVOGLIA TRUCIOLI NON IN POSIZIONE +0000017|PLC|FAULT|[17] COLLISIONE RILEVATA DAL SIMULATORE +0000018|PLC|FAULT|[18] BUMPER MOBILE NON IN POSIZIONE +0000019|PLC|FAULT|[19] FORATRICE NON IN POSIZIONE +0000020|PLC|WARNING|[20] STOP MACCHINA DA CODICI M SUPPLEMENTARI +0000021|PLC|WARNING|[21] M00 ATTIVO: START CICLO +0000022|PLC|WARNING|[22] BATTERIA SCARICA ENCODER ASSI YASKAWA +0000023|PLC|FAULT|[23] AZIONAMENTI ASSI XYZ... NON OK +0000024|PLC|FAULT|[24] AZIONAMENTI ASSI ROTATIVI NON OK +0000025|PLC|FAULT|[25] CNC NON OK +0000026|PLC|FAULT|[26] PRESSOSTATO ARIA INTERVENUTO +0000027|PLC|FAULT|[27] BATTERIA CNC NON CARICA +0000028|PLC|FAULT|[28] ERRORE CANOPEN RING 0 +0000029|PLC|FAULT|[29] ERRORE CANOPEN RING 1 +0000030|PLC|WARNING|[30] ABILITAZIONE BL/SBL UTENSILE MANDRINO 1 +0000031|PLC|WARNING|[31] ABILITAZIONE BL/SBL UTENSILE MANDRINO 2 +0000032|PLC|WARNING|[32] ABILITAZIONE BL/SBL UTENSILE MANDRINO SUPPLEMENTARE +0000033|PLC|WARNING|[33] CICLO ETICHETTATURA IN CORSO +0000034|PLC|FAULT|[34] ETICHETTATRICE NON PRONTA +0000035|PLC|FAULT|[35] ETICHETTATRICE NON IN POSIZIONE +0000036|PLC|FAULT|[36] ERRORE ETICHETTATRICE +0000037|PLC|FAULT|[37] SONDA TERMICA/VENTOLA MANDRINO 1 +0000038|PLC|FAULT|[38] SONDA TERMICA/VENTOLA MANDRINO 2 +0000039|PLC|FAULT|[39] SONDA TERMICA/VENTOLA MANDRINO SUPPLEMENTARE +0000040|PLC|FAULT|[40] INTERVENTO MAGNETOTERMICO GRUPPO LAMA +0000041|PLC|FAULT|[41] RICARICARE POMPA LUBRIFICAZIONE +0000042|PLC|FAULT|[42] LUBRIFICAZIONE ASSI NON OK +0000043|PLC|WARNING|[43] LUBRIFICAZIONE ASSI IN CORSO +0000044|PLC|WARNING|[44] RICHIESTA VUOTO/ATTREZZATURA +0000045|PLC|FAULT|[45] EMERGENZA CAUSA VUOTO ZONA 1 +0000046|PLC|FAULT|[46] EMERGENZA CAUSA VUOTO ZONA 2 +0000047|PLC|FAULT|[47] ASSI IN FINE CORSA +0000048|PLC|FAULT|[48] CUFFIA ESTERNA NON IN POSIZIONE +0000049|PLC|FAULT|[49] CUFFIA INTERNA NON IN POSIZIONE +0000050|PLC|FAULT|[50] CUFFIA PULIZIA PIANO NON IN POSIZIONE +0000051|PLC|FAULT|[51] EMERGENZA CAUSA VUOTO ZONA 3 +0000052|PLC|FAULT|[52] EMERGENZA CAUSA VUOTO ZONA 4 +0000053|PLC|WARNING|[53] ESEGUIRE RIFERIMENTO ASSI +0000054|PLC|FAULT|[54] ESEGUIRE RIFERIMENTO MAGAZZINO UTENSILE 1 +0000055|PLC|FAULT|[55] ESEGUIRE RIFERIMENTO MAGAZZINO UTENSILE 2 +0000056|PLC|FAULT|[56] ESEGUIRE RIFERIMENTO MAGAZZINO UTENSILE MANDRINO SUPPLEMENTARE +0000057|PLC|FAULT|[57] ESEGUIRE RIFERIMENTO MAGAZZINO ESTERNO 1 +0000058|PLC|FAULT|[58] ESEGUIRE RIFERIMENTO NAVETTA HS +0000059|PLC|FAULT|[59] ESEGUIRE RIFERIMENTO PINZE ROBOT CELLA WD +0000060|PLC|FAULT|[60] CONVOGLIATORE TRUCIOLI NON OK +0000061|PLC|WARNING|[61] SERBATOIO LUBRIFICAZIONE CONVOGLIATORE TRUCIOLI VUOTO +0000062|PLC|FAULT|[62] ASSE X IN FINE CORSA +0000063|PLC|FAULT|[63] ASSE Y IN FINE CORSA +0000064|PLC|FAULT|[64] ASSE Z IN FINE CORSA +0000065|PLC|FAULT|[65] PALPATORE SYNCRO NON IN POSIZIONE +0000066|PLC|WARNING|[66] ALLINEAMENTO ASSI GANTRY IN CORSO +0000067|PLC|FAULT|[67] ASSE B IN FINE CORSA +0000068|PLC|FAULT|[68] ASSE C IN FINE CORSA +0000069|PLC|FAULT|[69] ASSE Y NON IN POSIZIONE +0000070|PLC|FAULT|[70] ESEGUIRE RIFERIMENTO PALPATORE SYNCRO +0000071|PLC|FAULT|[71] PERNO BLOCCAGGIO TAVOLO ELEVATORE NON IN POSIZIONE +0000072|PLC|FAULT|[72] FOTOCELLULA PRESENZA UTENSILE +0000073|PLC|FAULT|[73] MANDRINO 1 NON OK +0000074|PLC|FAULT|[74] MANDRINO 2 NON OK +0000075|PLC|FAULT|[75] MANDRINO SUPPLEMENTARE NON OK +0000076|PLC|FAULT|[76] FOTOCELLULA PRESENZA UTENSILE (CATENA) +0000077|PLC|FAULT|[77] ALLARME SENSORE ROTAZIONE MANDRINO 1 +0000078|PLC|FAULT|[78] ALLARME SENSORE ROTAZIONE MANDRINO 2 +0000079|PLC|FAULT|[79] ALLARME SENSORE ROTAZIONE MANDRINO SUPPLEMENTARE +0000080|PLC|FAULT|[80] CAMBIO UTENSILE TESTA 1(ONBOARD) NON IN POSIZIONE +0000081|PLC|FAULT|[81] CAMBIO UTENSILE MANDRINO SUPPLEMENTARE (ONBOARD) NON IN POSIZIONE +0000082|PLC|FAULT|[82] CAMBIO UTENSILE LINEARE NON IN POSIZIONE +0000083|PLC|FAULT|[83] CAMBIO UTENSILE HS NON IN POSIZIONE +0000084|PLC|FAULT|[84] [TM] NAVETTA TOOL MANAGEMENT NON IN POSIZIONE +0000085|PLC|FAULT|[85] [TM] LETTORE CHIP TOOL MANAGMENT NON IN POSIZIONE +0000086|PLC|FAULT|[86] [TM] LIBERARE PINZA DI CARICO TOOL MANAGMENT +0000087|PLC|FAULT|[87] [TM] COLLISIONE CON TOOL MANAGMENT +0000088|PLC|FAULT|[88] [TM] CARICARE UTENSILE SULLA PINZA DI CARICO DEL TOOL MANAGMENT +0000089|PLC|FAULT|[89] BANDELLA NON IN POSIZIONE +0000090|PLC|FAULT|[90] PANNELLO PRELEVATO FUORI ALLINEAMENTO +0000091|PLC|FAULT|[91] SCARICATORE NON IN POSIZIONE +0000092|PLC|FAULT|[92] SPONDE/BATTUTE DI SCARICO NON IN POSIZIONE +0000093|PLC|FAULT|[93] ZONA DI SCARICO OCCUPATA +0000094|PLC|FAULT|[94] VERIFICARE DIMENSIONI PILA +0000095|PLC|FAULT|[95] CARICARE NUOVA PILA +0000096|PLC|FAULT|[96] CARICATORE NON IN POSIZIONE +0000097|PLC|FAULT|[97] TAVOLO ELEVATORE NON OK +0000098|PLC|FAULT|[98] PANNELLO NON PRELEVATO DA TAVOLO ELEVATORE +0000099|PLC|FAULT|[99] FOTOCELLULA RIFERIMENTO PANNELLO NON OK +0000100|PLC|FAULT|[100] ALLARME CELLA WD +0000101|PLC|FAULT|[101] REFRIGERANTE MANDRINO 1 NON OK +0000102|PLC|FAULT|[102] REFRIGERANTE MANDRINO 2 NON OK +0000103|PLC|FAULT|[103] INVERTER NASTRO DI SCARICO NON OK +0000104|PLC|FAULT|[104] ARRESTO OPERATIVO: RESETTARE LE FOTOCELLULE DI SICUREZZA +0000105|PLC|WARNING|[105] C.UTENSILE LINEARE IN CORSO: ABBASSARE GLI INNALZATORI E RESETTARE LE FOTOCELLULE DI SICUREZZA +0000106|PLC|FAULT|[106] CARICO PANNELLO NON AMMESSO +0000107|PLC|FAULT|[107] BYPASS COLLISIONI ATTIVO +0000108|PLC|FAULT|[108] SPORTELLO CAMBIO UTENSILE LINEARE DESTRO NON IN POSIZIONE +0000109|PLC|FAULT|[109] VERIFICA FUNZIONAMENTO SICUREZZE +0000110|PLC|FAULT|[110] RESETTARE LE FOTOCELLULE DI SICUREZZA +0000111|PLC|FAULT|[111] INSERIMENTO UTENSILE NON OK +0000112|PLC|FAULT|[112] GUASTO MICRO CONTROLLO PEDANE +0000113|PLC|FAULT|[113] INSERIMENTO UTENSILE IN NAVETTA HS NON OK +0000114|PLC|WARNING|[114] TABELLA NON AGGIORNATA +0000115|PLC|FAULT|[115] MANDRINO 1 NON SBLOCCATO +0000116|PLC|FAULT|[116] MANDRINO SUPPLEMENTARE NON SBLOCCATO +0000117|PLC|FAULT|[117] CONTROLLARE CICLO CHIUSURA BORDO +0000118|PLC|WARNING|[118] PM: SETUP NON POSSIBILE ZONA 3 [Vuoto ON/Teste DW] +0000119|PLC|WARNING|[119] PM: SETUP NON POSSIBILE ZONA 4 [Vuoto ON/Teste DW] +0000120|PLC|WARNING|[120] UTENSILE SPECIALE: OPERAZIONE NON AMMESSA +0000121|PLC|FAULT|[121] ERRORE CICLO CHIUSURA BORDO +0000122|PLC|FAULT|[122] MAGAZZINO UTENSILE ESTERNO 1 NON IN POSIZIONE +0000123|PLC|FAULT|[123] SPORTELLO MAGAZZINO ESTERNO NON IN POSIZIONE +0000124|PLC|WARNING|[124] ERRATA PROGRAMMAZIONE +0000125|PLC|WARNING|[125] ERRORE UTENSILE TESTA 1 +0000126|PLC|WARNING|[126] ERRORE UTENSILE TESTA 2 +0000127|PLC|FAULT|[127] SPORTELLO CAMBIO UTENSILE LINEARE SINISTRO NON IN POSIZIONE +0000128|PLC|FAULT|[128] TIME OUT PIGNA MOBILE +0000129|PLC|WARNING|[129] CAMBIO MODALITA' MACCHINA (M103) +0000130|PLC|FAULT|[130] PORTE ARMADIO ELETTRICO APERTE +0000131|PLC|WARNING|[131] ESEGUIRE MANUTENZIONE CONDIZIONATORE ARMADIO ELETTRICO +0000132|PLC|FAULT|[132] AGGREGATO PRESSATORE/CONVOGLIATORE TRUCIOLI NON OK +0000133|PLC|FAULT|[133] SERBATOIO LUBROREFRIGERATORE UTENSILE VUOTO +0000134|PLC|WARNING|[134] BATTERIA SCARICA TASTATORE RADIO +0000135|PLC|FAULT|[135] RILEVATORE SPESSORE PEZZO NON IN POSIZIONE +0000136|PLC|FAULT|[136] CICLO TASTATURA NON OK +0000137|PLC|FAULT|[137] BATTUTE DI RIFERIMENTO ZONA 1 NON OK +0000138|PLC|FAULT|[138] BATTUTE DI RIFERIMENTO ZONA 2 NON OK +0000139|PLC|FAULT|[139] ASSI PRISMA BC NON IN POSIZIONE +0000140|PLC|FAULT|[140] AZIONAMENTI ASSI PRISMA BC NON OK +0000141|PLC|FAULT|[141] TASTATORE RADIO NON OK +0000142|PLC|FAULT|[142] AVVICINATORI NON IN POSIZIONE +0000143|PLC|FAULT|[143] AVVICINAMENTO PANNELLO NON AVVENUTO +0000144|PLC|FAULT|[144] PRESA PANNELLO NON OK +0000145|PLC|WARNING|[145] RIAGGANCIO MANDRINO IN CORSO +0000146|PLC|WARNING|[146] RIAGGANCIO MANDRINO FALLITO +0000147|PLC|WARNING|[147] RIAGGANCIO MANDRINO AVVENUTO +0000148|PLC|FAULT|[148] INTERVENTO FUNE DI SICUREZZA +0000149|PLC|FAULT|[149] INTERVENTO OVERSPEED ASSI +0000150|PLC|FAULT|[150] INTERVENTO BUMPERS +0000151|PLC|WARNING|[151] MACCHINA SPENTA +0000152|PLC|FAULT|[152] EMERGENZA PREMUTA +0000153|PLC|WARNING|[153] PM: SETUP NON POSSIBILE ZONA 1 [VUOTO ON / TESTE DW] +0000154|PLC|WARNING|[154] PM: SETUP NON POSSIBILE ZONA 2 [VUOTO ON / TESTE DW] +0000155|PLC|WARNING|[155] BARRA MOBILE CENTRALE 1 NON IN POSIZIONE +0000156|PLC|WARNING|[156] BARRA MOBILE CENTRALE 2 NON IN POSIZIONE +0000157|PLC|WARNING|[157] PM: COLLISIONE BATTUTE CON SUPPORTI VENTOSE / MORSETTI +0000158|PLC|WARNING|[158] CUFFIA MANDRINO SUPPLEMENTARE NON IN POSIZIONE +0000159|PLC|WARNING|[159] TESTA GRUPPO MANDRINO SUPPLEMENTARE NON IN POSIZIONE +0000160|PLC|WARNING|[160] TESTA GRUPPO LAMA NON IN POSIZIONE +0000161|PLC|WARNING|[161] CICLO DI CARICO IN CORSO +0000162|PLC|WARNING|[162] CICLO DI SCARICO IN CORSO +0000163|PLC|WARNING|[163] BATTUTE DI CARICO NON IN POSIZIONE ZONA 1 +0000164|PLC|WARNING|[164] ATTESA ROBOT IN POSIZIONE +0000165|PLC|WARNING|[165] INVERTER GUASTO POMPA VUOTO 1 (MASTER) +0000166|PLC|WARNING|[166] INVERTER GUASTO POMPA VUOTO 2 (SLAVE) +0000167|PLC|WARNING|[167] BATTUTE DI CARICO NON IN POSIZIONE ZONA 2 +0000168|PLC|WARNING|[168] SALITA CUFFIA DA OPERATORE +0000169|PLC|WARNING|[169] TRAVERSA 1 NON IN POSIZIONE +0000170|PLC|WARNING|[170] TRAVERSA 2 NON IN POSIZIONE +0000171|PLC|WARNING|[171] TRAVERSA 3 NON IN POSIZIONE +0000172|PLC|WARNING|[172] TRAVERSA 4 NON IN POSIZIONE +0000173|PLC|WARNING|[173] TRAVERSA 5 NON IN POSIZIONE +0000174|PLC|WARNING|[174] TRAVERSA 6 NON IN POSIZIONE +0000175|PLC|WARNING|[175] TRAVERSA 7 NON IN POSIZIONE +0000176|PLC|WARNING|[176] TRAVERSA 8 NON IN POSIZIONE +0000177|PLC|WARNING|[177] TRAVERSA 9 NON IN POSIZIONE +0000178|PLC|WARNING|[178] TRAVERSA 10 NON IN POSIZIONE +0000179|PLC|WARNING|[179] TRAVERSA 11 NON IN POSIZIONE +0000180|PLC|WARNING|[180] TRAVERSA 12 NON IN POSIZIONE +0000181|PLC|WARNING|[181] SOSTITUZIONE VENTOSE IN CORSO AREA 1 +0000182|PLC|WARNING|[182] SOSTITUZIONE VENTOSE IN CORSO AREA 2 +0000183|PLC|FAULT|[183] BATTUTE DI RIFERIMENTO ZONA 3 NON OK +0000184|PLC|FAULT|[184] BATTUTE DI RIFERIMENTO ZONA 4 NON OK +0000185|PLC|FAULT|[185] [BRC] GR5: GRUPPO FUSI ORIZZONTALI NON IN POSIZIONE (fori spine) +0000186|PLC|FAULT|[186] [BRC] GR6: GRUPPO FRESA VERTICALE NON IN POSIZIONE +0000187|PLC|FAULT|[187] [BRC] GR7: GRUPPO FRESA ORIZZONTALE NON IN POSIZIONE +0000188|PLC|FAULT|[188] [BRC] GR8: GRUPPO LAMA NON IN POSIZIONE +0000189|PLC|FAULT|[189] [BRC] ATTESA INNESTO PER ROTAZIONE GRUPPO LAMA +0000190|PLC|FAULT|[190] SELETTORI CONTROSAGOMA NON OK [AREA UNICA] +0000191|PLC|FAULT|[191] BATTUTE DI RIFERIMENTO BARRA 1 NON OK +0000192|PLC|FAULT|[192] BATTUTE DI RIFERIMENTO BARRA 2 NON OK +0000193|PLC|FAULT|[193] BATTUTE DI RIFERIMENTO BARRA 3 NON OK +0000194|PLC|FAULT|[194] BATTUTE DI RIFERIMENTO BARRA 4 NON OK +0000195|PLC|FAULT|[195] BATTUTE DI RIFERIMENTO BARRA 5 NON OK +0000196|PLC|FAULT|[196] BATTUTE DI RIFERIMENTO BARRA 6 NON OK +0000197|PLC|FAULT|[197] BATTUTE DI RIFERIMENTO BARRA 7 NON OK +0000198|PLC|FAULT|[198] BATTUTE DI RIFERIMENTO BARRA 8 NON OK +0000199|PLC|FAULT|[199] BATTUTE DI RIFERIMENTO BARRA 9 NON OK +0000200|PLC|FAULT|[200] BATTUTE DI RIFERIMENTO BARRA 10 NON OK +0000201|PLC|FAULT|[201] BATTUTE DI RIFERIMENTO BARRA 11 NON OK +0000202|PLC|FAULT|[202] BATTUTE DI RIFERIMENTO BARRA 12 NON OK +0000203|PLC|FAULT|[203] BATTUTE DI RIFERIMENTO BARRA FISSA SX NON OK +0000204|PLC|FAULT|[204] BATTUTE DI RIFERIMENTO BARRA FISSA DX NON OK +0000205|PLC|FAULT|[205] BASI NON BLOCCATE ZONA 1 +0000206|PLC|FAULT|[206] BASI NON BLOCCATE ZONA 2 +0000207|PLC|FAULT|[207] BASI NON BLOCCATE ZONA 3 +0000208|PLC|FAULT|[208] BASI NON BLOCCATE ZONA 4 +0000209|PLC|WARNING|[209] SOSTITUZIONE VENTOSE IN CORSO AREA 3 +0000210|PLC|WARNING|[210] SOSTITUZIONE VENTOSE IN CORSO AREA 4 +0000211|PLC|FAULT|[211] [BORDATORE POWER] ATTESA GRUPPO A BORDARE ALTO +0000212|PLC|FAULT|[212] [BORDATORE POWER] ATTESA GRUPPO A BORDARE BASSO +0000213|PLC|FAULT|[213] [BORDATORE POWER] ATTESA GRUPPO A BORDARE POSIZ. CAMBIO RULLO +0000214|PLC|FAULT|[214] [BORDATORE POWER] ATTESA PIANO CARICAMENTO BORDI ALTO +0000215|PLC|FAULT|[215] [BORDATORE POWER] ATTESA PIANO CARICAMENTO BORDI BASSO +0000216|PLC|FAULT|[216] [BORDATORE POWER] MANCATA LETTURA BORDO GIUNZIONE +0000217|PLC|FAULT|[217] [BORDATORE POWER] ERRORE BORDO SU FOTOCELLULA DI CARICO +0000218|PLC|FAULT|[218] VASCA COLLA NON IN TEMPERATURA +0000219|PLC|FAULT|[219] [BORDATORE POWER] ASSENZA BORDO IN MULTIROTOLO +0000220|PLC|FAULT|[220] [BORDATORE POWER] ATTESA CICLO CARICO COLLA DA PREFUSORE +0000221|PLC|FAULT|[221] [BORDATORE POWER] MANCATO TAGLIO TRANCIA MAGAZZINO BORDI +0000222|PLC|FAULT|[222] [BORDATORE POWER] ATTESA CARICO COLLA DA PREFUSORE +0000223|PLC|FAULT|[223] [BORDATORE POWER] ANOMALIA SENSORI CILINDRO TESTA A BORDARE +0000224|PLC|FAULT|[224] SENSORE TESTA A BORDARE IN COLLISIONE +0000225|PLC|FAULT|[225] [BORDATORE POWER] TIMEOUT INTESTATURA BORDO TESTA A BORDARE +0000226|PLC|FAULT|[226] INTERVENTO TERMICI VASCA COLLA +0000227|PLC|FAULT|[227] INTERVENTO TERMICI PREFUSORE +0000228|PLC|FAULT|[228] INTERVENTO TERMICI LAMPADE ONDE CORTE +0000229|PLC|FAULT|[229] ESEGUIRE RIFERIMENTO MOT. ALTEZZA BORDO TESTA B. +0000230|PLC|FAULT|[230] ESEGUIRE RIFERIMENTO MOT. ALTEZZA BORDO MAGAZZINO B. +0000231|PLC|FAULT|[231] ESEGUIRE RIFERIMENTO MOT. CAMBIO RULLO PRESSIONE +0000232|PLC|FAULT|[232] TIMEOUT SENSORE CHIUSURA CILINDRO PREFUSORE +0000233|PLC|FAULT|[233] ESEGUIRE TARATURA TRAVERSE/VENTOSE +0000234|PLC|FAULT|[234] VENTOSE NON BLOCCATE AREA 1 +0000235|PLC|FAULT|[235] VENTOSE NON BLOCCATE AREA 2 +0000236|PLC|WARNING|[236] ATTESA SBLOCCO VENTOSA +0000237|PLC|WARNING|[237] ATTESA BLOCCO VENTOSA +0000238|PLC|WARNING|[238] RIMUOVERE VENTOSA: START CICLO +0000239|PLC|WARNING|[239] INSERIRE VENTOSA: START CICLO +0000240|PLC|FAULT|[240] ANOMALIA FOTOCELLULA MAGAZZINO BORDI +0000241|PLC|WARNING|[241] BARRA 1 +0000242|PLC|WARNING|[242] BARRA 2 +0000243|PLC|WARNING|[243] BARRA 3 +0000244|PLC|WARNING|[244] BARRA 4 +0000245|PLC|WARNING|[245] BARRA 5 +0000246|PLC|WARNING|[246] BARRA 6 +0000247|PLC|WARNING|[247] BARRA 7 +0000248|PLC|WARNING|[248] BARRA 8 +0000249|PLC|WARNING|[249] BARRA 9 +0000250|PLC|WARNING|[250] BARRA 10 +0000251|PLC|WARNING|[251] BARRA 11 +0000252|PLC|WARNING|[252] BARRA 12 +0000253|PLC|WARNING|[253] RIMUOVERE/INSERIRE VENTOSA COME DA GRAFICA SU AREA 1: START CICLO +0000254|PLC|WARNING|[254] RIMUOVERE/INSERIRE VENTOSA COME DA GRAFICA SU AREA 2: START CICLO +0000255|PLC|FAULT|[255] PORTE PROTEZIONE SBLOCCATE +0000256|PLC|FAULT|[256] ERRORE MODULO ZERO SPEED MANDRINO +0000257|PLC|FAULT|[257] INTESTATORE NON IN POSIZIONE +0000258|PLC|FAULT|[258] INTESTATORE 92 VUOTO +0000259|PLC|FAULT|[259] INTESTATORE 93 VUOTO +0000260|PLC|FAULT|[260] LIVELLO COLLA BASSO B.BASIC +0000261|PLC|FAULT|[261] [WD]EMERGENZA TRANSFER PREMUTA +0000262|PLC|FAULT|[262] [WD]INTERVENTO MAGNETOTERMICI TRANSFER +0000263|PLC|FAULT|[263] [WD]PORTE ARMADIO ELETTRICO TRANSFER APERTE +0000264|PLC|FAULT|[264] [WD]SVUOTARE TRANSFER +0000265|PLC|FAULT|[265] [WD]PEZZO IN ZONA DI SCARICO +0000266|PLC|FAULT|[266] [WD]ATTESA ROBOT 1 IN POSIZIONE +0000267|PLC|FAULT|[267] [WD]ATTESA ROBOT 2 IN POSIZIONE +0000268|PLC|FAULT|[268] [WD]SVUOTARE RULLIERE +0000269|PLC|FAULT|[269] [WD]DIMENSIONI PEZZO NON OK +0000270|PLC|FAULT|[270] [WD]SVUOTARE PIANO MACCHINA E PINZE ROBOT +0000271|PLC|FAULT|[271] [WD]PINZA ROBOT 1 NON IN POSIZIONE +0000272|PLC|FAULT|[272] [WD]PINZA ROBOT 2 NON IN POSIZIONE +0000273|PLC|FAULT|[273] MORSETTI ZONA 1 ALTI PNEUMATICAMENTE +0000274|PLC|FAULT|[274] MORSETTI ZONA 2 ALTI PNEUMATICAMENTE +0000275|PLC|FAULT|[275] EMERGENZA CAUSA MORSETTI ZONA 1 +0000276|PLC|FAULT|[276] EMERGENZA CAUSA MORSETTI ZONA 2 +0000277|PLC|FAULT|[277] ZONA DI COLLISIONE REFILATORE / RAS +0000278|PLC|FAULT|[278] PERICOLO SPORTELLO PANTOGRAFO APERTO +0000279|PLC|FAULT|[279] ZONA DI COLLISIONE BORDATORE +0000280|PLC|FAULT|[280] POSIZIONE DEL SELETTORE DELLA PULSANTIERA NON OK +0000281|PLC|FAULT|[281] PREMERE PULSANTE UOMO-MORTO +0000282|PLC|FAULT|[282] METTERE LA MACCHINA IN EMERGENZA +0000283|PLC|FAULT|[283] EMERGENZA TAPPETO ZONA 1 +0000284|PLC|FAULT|[284] EMERGENZA TAPPETO ZONA 2 +0000285|PLC|FAULT|[285] ZONA DI COLLISIONE MAGAZZINO RULLI PRESSIONE +0000286|PLC|FAULT|[286] TAPPETO AREA 1 IMPEGNATO +0000287|PLC|FAULT|[287] TAPPETO CENTRALE IMPEGNATO +0000288|PLC|FAULT|[288] TAPPETO AREA 2 IMPEGNATO +0000289|PLC|FAULT|[289] NUMERO RULLO PRESSORE ERRATO +0000290|PLC|FAULT|[290] CHECK VASCA COLLA +0000291|PLC|FAULT|[291] TIMEOUT GRUPPO VENTOSE NON ESCLUSO +0000292|PLC|FAULT|[292] TIMEOUT GRUPPO VENTOSE NON INSERITO +0000293|PLC|FAULT|[293] ASSE C BORDATORE IN QUOTA COLLISIONE CON G.VENTOSE +0000294|PLC|FAULT|[294] CICLO INSERIMENTO SPINA GRUPPO 92 NON OK(MUOVERE IN JOG+ L'ASSE X) +0000295|PLC|FAULT|[295] CICLO INSERIMENTO SPINA GRUPPO 93 NON OK(MUOVERE IN JOG- L'ASSE X) +0000296|PLC|FAULT|[296] RULLI NON IN POSIZIONE +0000297|PLC|FAULT|[297] ASSE X FUORI LIMITE PER RULLI +0000298|PLC|FAULT|[298] COLLISIONE RULLI CON GRUPPO TESTE +0000299|PLC|FAULT|[299] LASCIARE LIBERO +0000300|PLC|FAULT|[300] PERICOLO COLLISIONE BORDATORE PIANO MULTIFUNZIONE +0000301|PLC|FAULT|[301] MODALITŔ CELLA NON ATTIVA +0000302|PLC|FAULT|[302] ZONA DI COLLISIONE BORDATORE IN Y +0000303|PLC|FAULT|[303] ERRORE SEQUENZA CAMBIO RULLO PRESSORE +0000304|PLC|FAULT|[304] +0000305|PLC|FAULT|[305] +0000306|PLC|FAULT|[306] +0000307|PLC|FAULT|[307] +0000308|PLC|FAULT|[308] +0000309|PLC|FAULT|[309] +0000310|PLC|FAULT|[310] +0000311|PLC|FAULT|[311] +0000312|PLC|FAULT|[312] +0000313|PLC|FAULT|[313] PRESSORE 1 TESTA 1 NON IN POSIZIONE +0000314|PLC|FAULT|[314] PRESSORE 2 TESTA 1 NON IN POSIZIONE +0000315|PLC|FAULT|[315] PRESSORE 3 TESTA 1 NON IN POSIZIONE +0000316|PLC|FAULT|[316] PRESSORE 4 TESTA 1 NON IN POSIZIONE +0000317|PLC|FAULT|[317] PRESSORE 1 TESTA 2 NON IN POSIZIONE +0000318|PLC|FAULT|[318] PRESSORE 2 TESTA 2 NON IN POSIZIONE +0000319|PLC|FAULT|[319] PRESSORE 3 TESTA 2 NON IN POSIZIONE +0000320|PLC|FAULT|[320] PRESSORE 4 TESTA 2 NON IN POSIZIONE +0000321|PLC|FAULT|[321] ATTESA FINE CAMBIO UTENSILE +0000322|PLC|FAULT|[322] +0000323|PLC|FAULT|[323] PERICOLO COLLISIONE ASSI X-U +0000324|PLC|FAULT|[324] PERICOLO COLLISIONE ASSI Y-V +0000325|PLC|FAULT|[325] ZERO FEED RATE +0000326|PLC|FAULT|[326] PIGNA MOBILE ATTIVA - PADDLE DISABILITATO +0000327|PLC|FAULT|[327] APERTURA PINZE BLOCCATO DA ASSI Z-W BASSI +0000328|PLC|FAULT|[328] ATTENZIONE! PERICOLO COLLISIONE +0000329|PLC|FAULT|[329] CUFFIA LAMA NON IN POSIZIONE +0000330|PLC|FAULT|[330] BATTUTA RIFERIMENTO NON ESCLUSA +0000331|PLC|FAULT|[331] SCARICO PANNELLO: CONFERMARE CON START CICLO +0000332|PLC|FAULT|[332] VELOCITA' RIDOTTA A 25MT/MIN +0000333|PLC|FAULT|[333] DISCESA PRESSORE BLOCCATA DA ASSI Z-W BASSI +0000334|PLC|FAULT|[334] DISCESA MANDRINO BLOCCATA DA ASSI Z-W BASSI +0000335|PLC|FAULT|[335] DISCESA FUSO/LAMA BLOCCATA DA ASSI Z-W BASSI +0000336|PLC|FAULT|[336] DISCESA BATTUTA RIFERIMENTO BLOCCATA DA ASSI Z-W BASSI +0000337|PLC|FAULT|[337] MOVIMENTO ASSI X BLOCCATO DA PINZA APERTA E TESTE BASSE +0000338|PLC|FAULT|[338] MOVIMENTO ASSI U BLOCCATO DA PINZA APERTA E TESTE BASSE +0000339|PLC|FAULT|[339] MOVIMENTO ASSI YZ BLOCCATO DA PINZE APERTE +0000340|PLC|FAULT|[340] MOVIMENTO ASSI VW BLOCCATO DA PINZE APERTE +0000341|PLC|FAULT|[341] +0000342|PLC|FAULT|[342] +0000343|PLC|FAULT|[343] +0000344|PLC|FAULT|[344] +0000345|PLC|FAULT|[345] +0000346|PLC|FAULT|[346] +0000347|PLC|FAULT|[347] +0000348|PLC|FAULT|[348] +0000349|PLC|FAULT|[349] +0000350|PLC|FAULT|[350] +0000351|PLC|FAULT|[351] +0000352|PLC|FAULT|[352] +0000353|PLC|FAULT|[353] +0000354|PLC|FAULT|[354] +0000355|PLC|FAULT|[355] +0000356|PLC|FAULT|[356] +0000357|PLC|FAULT|[357] +0000358|PLC|FAULT|[358] +0000359|PLC|FAULT|[359] +0000360|PLC|FAULT|[360] +0000361|PLC|FAULT|[361] +0000362|PLC|FAULT|[362] +0000363|PLC|FAULT|[363] +0000364|PLC|FAULT|[364] +0000365|PLC|FAULT|[365] +0000366|PLC|FAULT|[366] +0000367|PLC|FAULT|[367] +0000368|PLC|FAULT|[368] +0000369|PLC|FAULT|[369] +0000370|PLC|FAULT|[370] +0000371|PLC|FAULT|[371] +0000372|PLC|FAULT|[372] +0000373|PLC|FAULT|[373] +0000374|PLC|FAULT|[374] +0000375|PLC|FAULT|[375] +0000376|PLC|FAULT|[376] +0000377|PLC|FAULT|[377] +0000378|PLC|FAULT|[378] +0000379|PLC|FAULT|[379] +0000380|PLC|FAULT|[380] +0000381|PLC|FAULT|[381] +0000382|PLC|FAULT|[382] +0000383|PLC|FAULT|[383] +0000384|PLC|FAULT|[384] +0000385|PLC|FAULT|[385] +0000386|PLC|FAULT|[386] +0000387|PLC|FAULT|[387] +0000388|PLC|FAULT|[388] +0000389|PLC|FAULT|[389] +0000390|PLC|FAULT|[390] +0000391|PLC|FAULT|[391] +0000392|PLC|FAULT|[392] +0000393|PLC|FAULT|[393] +0000394|PLC|FAULT|[394] +0000395|PLC|FAULT|[395] +0000396|PLC|FAULT|[396] +0000397|PLC|FAULT|[397] +0000398|PLC|FAULT|[398] +0000399|PLC|FAULT|[399] +0000400|PLC|FAULT|[400] +0000401|PLC|FAULT|[401] +0000402|PLC|FAULT|[402] +0000403|PLC|FAULT|[403] +0000404|PLC|FAULT|[404] +0000405|PLC|FAULT|[405] +0000406|PLC|FAULT|[406] +0000407|PLC|FAULT|[407] +0000408|PLC|FAULT|[408] +0000409|PLC|FAULT|[409] +0000410|PLC|FAULT|[410] +0000411|PLC|FAULT|[411] +0000412|PLC|FAULT|[412] +0000413|PLC|FAULT|[413] +0000414|PLC|FAULT|[414] +0000415|PLC|FAULT|[415] +0000416|PLC|FAULT|[416] +0000417|PLC|FAULT|[417] +0000418|PLC|FAULT|[418] +0000419|PLC|FAULT|[419] +0000420|PLC|FAULT|[420] \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/Resources/SCM/Appunti SCM.txt b/MTC_Adapter/MTC_Adapter/Resources/SCM/Appunti SCM.txt index 1a62e69..36a39a2 100644 --- a/MTC_Adapter/MTC_Adapter/Resources/SCM/Appunti SCM.txt +++ b/MTC_Adapter/MTC_Adapter/Resources/SCM/Appunti SCM.txt @@ -6,4 +6,9 @@ 02) lettura assi... va da SImDATA, am serve "molteplice conversione", ovvero BitConverter.ToInt32(BitConverter.GetBytes(PLC_MemoryRead[240]),0) 03) in caso di chiusura SI BLOCCA - va visto meglio l'insieme delle procedure di chiusura... \ No newline at end of file + va visto meglio l'insieme delle procedure di chiusura... + + +TODO + - completare le aree IOT-STRING + - eliminare da thdNcEsaGvKvara "vecchie" aree di memoria \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/Resources/SCM/EsaKvara.ini b/MTC_Adapter/MTC_Adapter/Resources/SCM/EsaKvara.ini index c6c1578..d7d8692 100644 --- a/MTC_Adapter/MTC_Adapter/Resources/SCM/EsaKvara.ini +++ b/MTC_Adapter/MTC_Adapter/Resources/SCM/EsaKvara.ini @@ -80,6 +80,15 @@ SysDefCn=C:\KVARA\DISCOI ; modo sincronizzato con il plc ;PlcSyncAddress=2103 +;CONFIGURAZIONE DELLE AREE DI MEMORIA IOT (dimensioni vari array...) +IOT_AreaAddressByte=IOT.BYTE +IOT_AreaAddressWord=IOT.WORD +IOT_AreaAddressDWord=IOT.DWORD +IOT_AreaAddressString=IOT.STRING +;IOT_ByteAreaByteSize=20 +;IOT_WordAreaByteSize=38 +;IOT_DWordAreaByteSize=70 +;IOT_StringAreaByteSize=4 [XILOG] Enable=1 diff --git a/MTC_Adapter/MTC_Adapter/Resources/SCM/SCM_ESA.xml b/MTC_Adapter/MTC_Adapter/Resources/SCM/SCM_ESA.xml index cf09a6f..2ec34fc 100644 --- a/MTC_Adapter/MTC_Adapter/Resources/SCM/SCM_ESA.xml +++ b/MTC_Adapter/MTC_Adapter/Resources/SCM/SCM_ESA.xml @@ -8,699 +8,264 @@ VacPump_01 - Pompa 1 - Random - - - VacPump_01_Status - 0 - - - VacPump_01_WrkTime - 0 - - + VacPump_02 - Pompa 2 - Random - - - VacPump_02_Status - 0 - - - VacPump_02_WrkTime - 0 - - + VacAct_01 - Attuatore vuoto 1 - Random - - - VacAct_01_Count - 0 - - + VacAct_02 - Attuatore vuoto 2 - Random - - - VacAct_02_Count - 0 - - + + + + VacAct_03 + + + + VacAct_04 + Lubro_01 - Lubrorefrigerante 1 - Random - - - Lubro_01_Num - 0 - - + Lubro_02 - Lubrorefrigerante 2 - Random - - - Lubro_02_Num - 0 - - + Cooler_01 - Cooler 1 - Random - - - Cooler_01_Status - 0 - - + Cooler_02 - Cooler 2 - Random - - - Cooler_02_Status - 0 - - + Press_01 - Pressostato 1 - Random - - - Press_01_Value - 0 - - + Press_02 - Pressostato 2 - Random - - - Press_02_Value - 0 - - + Temp_01 - Sonda Temperatura 1 - Random - - - Temp_01_Value - 0 - - + Temp_02 - Sonda Temperatura 2 - Random - - - Temp_02_Value - 0 - - + Path_01 - Path num 1 - Random - - - Path_01_FeedRate - 0 - - - Path_01_FeedOverr - 0 - - - Path_01_RapidOverr - 0 - - - Path_01_PosActX - 0 - - - Path_01_PosActY - 0 - - - Path_01_PosActZ - 0 - - - Path_01_PosActI - 0 - - - Path_01_PosActJ - 0 - - - Path_01_PosActK - 0 - - - Path_01_Type - 0 - - - Path_01_PartId - 0 - - - Path_01_PZ_TOT - 0 - - - Path_01_Cod_M - 0 - - - Path_01_Cod_S - 0 - - - Path_01_Cod_T - 0 - - - Path_01_RUN_MODE - 0 - - - Path_01_EXE_MODE - 0 - - - Path_01_CurrProg - 0 - - - Path_01_CurrProg_RowNum - 0 - - - Path_01_ActiveAxes - 0 - - - Path_01_CodG_Act - 0 - - - Path_01_SubMode - 0 - - + UnOp_01 - Unita Op num 1 - Random - - - UnOp_01_ToolId - 0 - - - UnOp_01_NumCU - 0 - - - UnOp_01_Status - 0 - - - UnOp_01_VitaRes - 0 - - - UnOp_01_Speed - 0 - - - UnOp_01_SpeedOverr - 0 - - - UnOp_01_Load - 0 - - - UnOp_01_AccTime - 0 - - - UnOp_01_VitaResType - 0 - - + + + + UnOp_02 + + + + UnOp_03 + + + + UnOp_04 + + + + UnOp_05 + + + + UnOp_06 + + + + UnOp_07 + + + + UnOp_08 + Axis_01 - Asse num 1 - Random - - Axis_01_MainProc - 0 - - - Axis_01_IsMast - 0 - - - Axis_01_MastId - 0 - Axis_01_Type LINEAR - - Axis_01_Dir - 0 - - - Axis_01_Load - 0 - - - Axis_01_PosAct - 0 - - - Axis_01_PosTgt - 0 - - - Axis_01_FeedAct - 0 - - - Axis_01_FeedOver - 0 - - - Axis_01_AccelAct - 0 - - - Axis_01_AccTime - 0 - - - Axis_01_Battery - 0 - - - Axis_01_DistDone - 0 - - - Axis_01_InvDDone - 0 - Axis_02 - Asse num 2 - Random - - Axis_02_MainProc - 0 - - - Axis_02_IsMast - 0 - - - Axis_02_MastId - 0 - Axis_02_Type LINEAR - - Axis_02_Dir - 0 - - - Axis_02_Load - 0 - - - Axis_02_PosAct - 0 - - - Axis_02_PosTgt - 0 - - - Axis_02_FeedAct - 0 - - - Axis_02_FeedOver - 0 - - - Axis_02_AccelAct - 0 - - - Axis_02_AccTime - 0 - - - Axis_02_Battery - 0 - - - Axis_02_DistDone - 0 - - - Axis_02_InvDDone - 0 - Axis_03 - Asse num 3 - Random - - Axis_03_MainProc - 0 - - - Axis_03_IsMast - 0 - - - Axis_03_MastId - 0 - Axis_03_Type LINEAR - - Axis_03_Dir - 0 - - - Axis_03_Load - 0 - - - Axis_03_PosAct - 0 - - - Axis_03_PosTgt - 0 - - - Axis_03_FeedAct - 0 - - - Axis_03_FeedOver - 0 - - - Axis_03_AccelAct - 0 - - - Axis_03_AccTime - 0 - - - Axis_03_Battery - 0 - - - Axis_03_DistDone - 0 - - - Axis_03_InvDDone - 0 - Axis_04 - Asse num 4 - Random - - Axis_04_MainProc - 0 - - - Axis_04_IsMast - 0 - - - Axis_04_MastId - 0 - Axis_04_Type ROTARY - - Axis_04_Dir - 0 - - - Axis_04_Load - 0 - - - Axis_04_PosAct - 0 - - - Axis_04_PosTgt - 0 - - - Axis_04_FeedAct - 0 - - - Axis_04_FeedOver - 0 - - - Axis_04_AccelAct - 0 - - - Axis_04_AccTime - 0 - - - Axis_04_Battery - 0 - - - Axis_04_DistDone - 0 - - - Axis_04_InvDDone - 0 - Axis_05 - Asse num 5 - Random - - Axis_05_MainProc - 0 - - - Axis_05_IsMast - 0 - - - Axis_05_MastId - 0 - Axis_05_Type ROTARY - - Axis_05_Dir - 0 - - - Axis_05_Load - 0 - - - Axis_05_PosAct - 0 - - - Axis_05_PosTgt - 0 - - - Axis_05_FeedAct - 0 - - - Axis_05_FeedOver - 0 - - - Axis_05_AccelAct - 0 - - - Axis_05_AccTime - 0 - - - Axis_05_Battery - 0 - - - Axis_05_DistDone - 0 - - - Axis_05_InvDDone - 0 - Axis_06 - Asse num 6 - Random - - Axis_06_MainProc - 0 - - - Axis_06_IsMast - 0 - - - Axis_06_MastId - 0 - Axis_06_Type LINEAR + + + + Axis_07 + - Axis_06_Dir - 0 + Axis_07_Type + LINEAR + + + + Axis_08 + - Axis_06_Load - 0 + Axis_08_Type + LINEAR + + + + Axis_09 + - Axis_06_PosAct - 0 + Axis_09_Type + LINEAR + + + + Axis_10 + - Axis_06_PosTgt - 0 + Axis_10_Type + LINEAR + + + + Axis_11 + - Axis_06_FeedAct - 0 + Axis_11_Type + LINEAR + + + + Axis_12 + - Axis_06_FeedOver - 0 + Axis_12_Type + LINEAR + + + + Axis_13 + - Axis_06_AccelAct - 0 + Axis_13_Type + LINEAR + + + + Axis_14 + - Axis_06_AccTime - 0 + Axis_14_Type + LINEAR + + + + Axis_15 + - Axis_06_Battery - 0 - - - Axis_06_DistDone - 0 - - - Axis_06_InvDDone - 0 + Axis_15_Type + LINEAR + + + MemArea_01 + + + + MemArea_02 + + + + MemArea_03 + + + + MemArea_04 + + + \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/Resources/SCM/app.msg b/MTC_Adapter/MTC_Adapter/Resources/SCM/app.msg index 0b11aac..22933ed 100644 --- a/MTC_Adapter/MTC_Adapter/Resources/SCM/app.msg +++ b/MTC_Adapter/MTC_Adapter/Resources/SCM/app.msg @@ -1,4 +1,4 @@ -MODULE 1,PLC%d: ,276 +MODULE 1,PLC%d: ,340 @0," " @1,"MANDRINO 1 NON BLOCCATO" @2,"MANDRINO 2 NON BLOCCATO" @@ -10,14 +10,14 @@ MODULE 1,PLC%d: ,276 @8,"INVERTER 2 NON OK" @9,"INVERTER MANDRINO SUPPLEMENTARE NON OK" @10,"SAVE ENERGY ATTIVO" -@11,"[WD]SUPERATO NUMERO PEZZI MASSIMO CARICABILE SU TRANSFER" +@11,B,"[WD] SUPERATO NUMERO PEZZI MASSIMO CARICABILE SU TRANSFER" @12,"VERIFICA CONTATTORI NON OK" @13,"TIMEOUT COMUNICAZIONE XILOG" @14,B,"INTERVENTO MAGNETOTERMICI" @15,"PORTE PROTEZIONE APERTE" @16,"TAPPETO CONVOGLIA TRUCIOLI NON IN POSIZIONE" @17,"COLLISIONE RILEVATA DAL SIMULATORE" -@18," " +@18,"BUMPER MOBILE NON IN POSIZIONE" @19,"FORATRICE NON IN POSIZIONE" @20,B,"STOP MACCHINA DA CODICI M SUPPLEMENTARI" @21,B,"M00 ATTIVO: START CICLO" @@ -32,7 +32,7 @@ MODULE 1,PLC%d: ,276 @30,B,"ABILITAZIONE BL/SBL UTENSILE MANDRINO 1" @31,B,"ABILITAZIONE BL/SBL UTENSILE MANDRINO 2" @32,B,"ABILITAZIONE BL/SBL UTENSILE MANDRINO SUPPLEMENTARE" -@33,"CICLO ETICHETTATURA IN CORSO" +@33,B,"CICLO ETICHETTATURA IN CORSO" @34,"ETICHETTATRICE NON PRONTA" @35,"ETICHETTATRICE NON IN POSIZIONE" @36,"ERRORE ETICHETTATRICE" @@ -141,9 +141,9 @@ MODULE 1,PLC%d: ,276 @139,"ASSI PRISMA BC NON IN POSIZIONE" @140,"AZIONAMENTI ASSI PRISMA BC NON OK" @141,"TASTATORE RADIO NON OK" -@142," " -@143," " -@144," " +@142,"AVVICINATORI NON IN POSIZIONE" +@143,"AVVICINAMENTO PANNELLO NON AVVENUTO" +@144,"PRESA PANNELLO NON OK" @145,B,"RIAGGANCIO MANDRINO IN CORSO" @146,B,"RIAGGANCIO MANDRINO FALLITO" @147,B,"RIAGGANCIO MANDRINO AVVENUTO" @@ -276,4 +276,68 @@ MODULE 1,PLC%d: ,276 @274,"MORSETTI ZONA 2 ALTI PNEUMATICAMENTE" @275,"EMERGENZA CAUSA MORSETTI ZONA 1" @276,"EMERGENZA CAUSA MORSETTI ZONA 2" +@277,"ZONA DI COLLISIONE REFILATORE / RAS" +@278,"PERICOLO SPORTELLO PANTOGRAFO APERTO" +@279,"ZONA DI COLLISIONE BORDATORE" +@280,"POSIZIONE DEL SELETTORE DELLA PULSANTIERA NON OK" +@281,"PREMERE PULSANTE UOMO-MORTO" +@282,"METTERE LA MACCHINA IN EMERGENZA" +@283,"EMERGENZA TAPPETO ZONA 1" +@284,"EMERGENZA TAPPETO ZONA 2" +@285,"ZONA DI COLLISIONE MAGAZZINO RULLI PRESSIONE" +@286,"TAPPETO AREA 1 IMPEGNATO" +@287,"TAPPETO CENTRALE IMPEGNATO" +@288,"TAPPETO AREA 2 IMPEGNATO" +@289,"NUMERO RULLO PRESSORE ERRATO" +@290,"CHECK VASCA COLLA" +@291,"TIMEOUT GRUPPO VENTOSE NON ESCLUSO" +@292,"TIMEOUT GRUPPO VENTOSE NON INSERITO" +@293,"ASSE C BORDATORE IN QUOTA COLLISIONE CON G.VENTOSE" +@294,"CICLO INSERIMENTO SPINA GRUPPO 92 NON OK(MUOVERE IN JOG+ L'ASSE X)" +@295,"CICLO INSERIMENTO SPINA GRUPPO 93 NON OK(MUOVERE IN JOG- L'ASSE X)" +@296,"RULLI NON IN POSIZIONE" +@297,"ASSE X FUORI LIMITE PER RULLI" +@298,"COLLISIONE RULLI CON GRUPPO TESTE" +@299,"LASCIARE LIBERO" +@300,"PERICOLO COLLISIONE BORDATORE PIANO MULTIFUNZIONE" +@301,"MODALITŔ CELLA NON ATTIVA" +@302,"ZONA DI COLLISIONE BORDATORE IN Y" +@303,"ERRORE SEQUENZA CAMBIO RULLO PRESSORE" +@304," " +@305," " +@306," " +@307," " +@308," " +@309," " +@310," " +@311," " +@312," " +@313,"PRESSORE 1 TESTA 1 NON IN POSIZIONE" +@314,"PRESSORE 2 TESTA 1 NON IN POSIZIONE" +@315,"PRESSORE 3 TESTA 1 NON IN POSIZIONE" +@316,"PRESSORE 4 TESTA 1 NON IN POSIZIONE" +@317,"PRESSORE 1 TESTA 2 NON IN POSIZIONE" +@318,"PRESSORE 2 TESTA 2 NON IN POSIZIONE" +@319,"PRESSORE 3 TESTA 2 NON IN POSIZIONE" +@320,"PRESSORE 4 TESTA 2 NON IN POSIZIONE" +@321,"ATTESA FINE CAMBIO UTENSILE" +@322," " +@323,"PERICOLO COLLISIONE ASSI X-U" +@324,"PERICOLO COLLISIONE ASSI Y-V" +@325,"ZERO FEED RATE" +@326,"PIGNA MOBILE ATTIVA - PADDLE DISABILITATO" +@327,"APERTURA PINZE BLOCCATO DA ASSI Z-W BASSI" +@328,"ATTENZIONE! PERICOLO COLLISIONE" +@329,"CUFFIA LAMA NON IN POSIZIONE" +@330,"BATTUTA RIFERIMENTO NON ESCLUSA" +@331,"SCARICO PANNELLO: CONFERMARE CON START CICLO" +@332,"VELOCITA' RIDOTTA A 25MT/MIN" +@333,"DISCESA PRESSORE BLOCCATA DA ASSI Z-W BASSI" +@334,"DISCESA MANDRINO BLOCCATA DA ASSI Z-W BASSI" +@335,"DISCESA FUSO/LAMA BLOCCATA DA ASSI Z-W BASSI" +@336,"DISCESA BATTUTA RIFERIMENTO BLOCCATA DA ASSI Z-W BASSI" +@337,"MOVIMENTO ASSI X BLOCCATO DA PINZA APERTA E TESTE BASSE" +@338,"MOVIMENTO ASSI U BLOCCATO DA PINZA APERTA E TESTE BASSE" +@339,"MOVIMENTO ASSI YZ BLOCCATO DA PINZE APERTE" +@340,"MOVIMENTO ASSI VW BLOCCATO DA PINZE APERTE" END diff --git a/MTC_Adapter/MTC_Adapter/Resources/SCM/convertScmAlarm.ps1 b/MTC_Adapter/MTC_Adapter/Resources/SCM/convertScmAlarm.ps1 index 333d31b..646f4e4 100644 --- a/MTC_Adapter/MTC_Adapter/Resources/SCM/convertScmAlarm.ps1 +++ b/MTC_Adapter/MTC_Adapter/Resources/SCM/convertScmAlarm.ps1 @@ -5,8 +5,11 @@ # parte da file di input (tipicamente C:\Kvara\Xilog Plus Default\Country\Ita\app.msg) # e genera un file di output nel formato necessario per MTConnect Adapter #---------------------------------------------- +# +# abilitazione script: +# Set-ExecutionPolicy -Scope Process -ExecutionPolicy unrestricted +#.\convertScmAlarm.ps1 .\app.msg AlarmListEsaGv.map -#.\convertScmAlarm.ps1 .\app.msg AlarmListEsaGv.txt param( diff --git a/MTC_Adapter/MTC_Adapter/SetupAdapter.Designer.cs b/MTC_Adapter/MTC_Adapter/SetupAdapter.Designer.cs index 5b558bc..f6958e2 100644 --- a/MTC_Adapter/MTC_Adapter/SetupAdapter.Designer.cs +++ b/MTC_Adapter/MTC_Adapter/SetupAdapter.Designer.cs @@ -55,47 +55,54 @@ this.nUnOp = new System.Windows.Forms.TextBox(); this.label12 = new System.Windows.Forms.Label(); this.nAssi = new System.Windows.Forms.TextBox(); + this.label13 = new System.Windows.Forms.Label(); + this.nMemArea = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // // txtAdapter // - this.txtAdapter.Location = new System.Drawing.Point(91, 10); + this.txtAdapter.Location = new System.Drawing.Point(121, 12); + this.txtAdapter.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtAdapter.Name = "txtAdapter"; - this.txtAdapter.Size = new System.Drawing.Size(214, 20); + this.txtAdapter.Size = new System.Drawing.Size(284, 22); this.txtAdapter.TabIndex = 0; this.txtAdapter.Text = "CMS_ADAPTER_00"; // // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(22, 13); + this.label1.Location = new System.Drawing.Point(29, 16); + this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(58, 13); + this.label1.Size = new System.Drawing.Size(73, 17); this.label1.TabIndex = 1; this.label1.Text = "ADAPTER"; // // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(311, 13); + this.label2.Location = new System.Drawing.Point(415, 16); + this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(63, 13); + this.label2.Size = new System.Drawing.Size(79, 17); this.label2.TabIndex = 3; this.label2.Text = "FILE NAME"; // // txtFileName // - this.txtFileName.Location = new System.Drawing.Point(380, 10); + this.txtFileName.Location = new System.Drawing.Point(507, 12); + this.txtFileName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtFileName.Name = "txtFileName"; - this.txtFileName.Size = new System.Drawing.Size(122, 20); + this.txtFileName.Size = new System.Drawing.Size(161, 22); this.txtFileName.TabIndex = 2; - this.txtFileName.Text = "FANUC.xml"; + this.txtFileName.Text = "Adapter_ItemList.xml"; // // btnSave // - this.btnSave.Location = new System.Drawing.Point(479, 467); + this.btnSave.Location = new System.Drawing.Point(639, 575); + this.btnSave.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(201, 38); + this.btnSave.Size = new System.Drawing.Size(268, 47); this.btnSave.TabIndex = 4; this.btnSave.Text = "SAVE CONFIGURATION"; this.btnSave.UseVisualStyleBackColor = true; @@ -103,9 +110,10 @@ // // btnLoad // - this.btnLoad.Location = new System.Drawing.Point(16, 467); + this.btnLoad.Location = new System.Drawing.Point(21, 575); + this.btnLoad.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnLoad.Name = "btnLoad"; - this.btnLoad.Size = new System.Drawing.Size(201, 38); + this.btnLoad.Size = new System.Drawing.Size(268, 47); this.btnLoad.TabIndex = 5; this.btnLoad.Text = "LOAD CONFIGURATION"; this.btnLoad.UseVisualStyleBackColor = true; @@ -114,43 +122,48 @@ // label3 // this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(10, 39); + this.label3.Location = new System.Drawing.Point(13, 48); + this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 13); + this.label3.Size = new System.Drawing.Size(96, 17); this.label3.TabIndex = 7; this.label3.Text = "n° VAC PUMP"; // // nVacPump // - this.nVacPump.Location = new System.Drawing.Point(91, 36); + this.nVacPump.Location = new System.Drawing.Point(121, 44); + this.nVacPump.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.nVacPump.Name = "nVacPump"; - this.nVacPump.Size = new System.Drawing.Size(33, 20); + this.nVacPump.Size = new System.Drawing.Size(43, 22); this.nVacPump.TabIndex = 6; this.nVacPump.Text = "1"; // // label4 // this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(176, 39); + this.label4.Location = new System.Drawing.Point(235, 48); + this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(60, 13); + this.label4.Size = new System.Drawing.Size(77, 17); this.label4.TabIndex = 9; this.label4.Text = "n° VAC Act"; // // nVacAct // - this.nVacAct.Location = new System.Drawing.Point(242, 36); + this.nVacAct.Location = new System.Drawing.Point(323, 44); + this.nVacAct.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.nVacAct.Name = "nVacAct"; - this.nVacAct.Size = new System.Drawing.Size(33, 20); + this.nVacAct.Size = new System.Drawing.Size(43, 22); this.nVacAct.TabIndex = 8; this.nVacAct.Text = "2"; // // label5 // this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(517, 13); + this.label5.Location = new System.Drawing.Point(689, 16); + this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(32, 13); + this.label5.Size = new System.Drawing.Size(40, 17); this.label5.TabIndex = 10; this.label5.Text = "TIPO"; // @@ -162,135 +175,171 @@ "ESAGV", "FANUC", "SIEMENS"}); - this.cbTipoAdapt.Location = new System.Drawing.Point(555, 10); + this.cbTipoAdapt.Location = new System.Drawing.Point(740, 12); + this.cbTipoAdapt.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cbTipoAdapt.Name = "cbTipoAdapt"; - this.cbTipoAdapt.Size = new System.Drawing.Size(121, 21); + this.cbTipoAdapt.Size = new System.Drawing.Size(160, 24); this.cbTipoAdapt.TabIndex = 11; // // label6 // this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(314, 39); + this.label6.Location = new System.Drawing.Point(419, 48); + this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(57, 13); + this.label6.Size = new System.Drawing.Size(74, 17); this.label6.TabIndex = 13; this.label6.Text = "n° LUBRO"; // // nLubro // - this.nLubro.Location = new System.Drawing.Point(380, 36); + this.nLubro.Location = new System.Drawing.Point(507, 44); + this.nLubro.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.nLubro.Name = "nLubro"; - this.nLubro.Size = new System.Drawing.Size(33, 20); + this.nLubro.Size = new System.Drawing.Size(43, 22); this.nLubro.TabIndex = 12; this.nLubro.Text = "1"; // // label7 // this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(473, 39); + this.label7.Location = new System.Drawing.Point(631, 48); + this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(64, 13); + this.label7.Size = new System.Drawing.Size(84, 17); this.label7.TabIndex = 15; this.label7.Text = "n° COOLER"; // // nCooler // - this.nCooler.Location = new System.Drawing.Point(539, 36); + this.nCooler.Location = new System.Drawing.Point(719, 44); + this.nCooler.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.nCooler.Name = "nCooler"; - this.nCooler.Size = new System.Drawing.Size(33, 20); + this.nCooler.Size = new System.Drawing.Size(43, 22); this.nCooler.TabIndex = 14; this.nCooler.Text = "2"; // // label8 // this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(25, 65); + this.label8.Location = new System.Drawing.Point(33, 80); + this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(56, 13); + this.label8.Size = new System.Drawing.Size(72, 17); this.label8.TabIndex = 17; this.label8.Text = "n° PRESS"; // // nPress // - this.nPress.Location = new System.Drawing.Point(91, 62); + this.nPress.Location = new System.Drawing.Point(121, 76); + this.nPress.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.nPress.Name = "nPress"; - this.nPress.Size = new System.Drawing.Size(33, 20); + this.nPress.Size = new System.Drawing.Size(43, 22); this.nPress.TabIndex = 16; this.nPress.Text = "1"; // // label9 // this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(176, 65); + this.label9.Location = new System.Drawing.Point(235, 80); + this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(50, 13); + this.label9.Size = new System.Drawing.Size(64, 17); this.label9.TabIndex = 19; this.label9.Text = "n° TEMP"; // // nTempe // - this.nTempe.Location = new System.Drawing.Point(242, 62); + this.nTempe.Location = new System.Drawing.Point(323, 76); + this.nTempe.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.nTempe.Name = "nTempe"; - this.nTempe.Size = new System.Drawing.Size(33, 20); + this.nTempe.Size = new System.Drawing.Size(43, 22); this.nTempe.TabIndex = 18; this.nTempe.Text = "1"; // // label10 // this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(314, 65); + this.label10.Location = new System.Drawing.Point(419, 80); + this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(49, 13); + this.label10.Size = new System.Drawing.Size(63, 17); this.label10.TabIndex = 21; this.label10.Text = "n° PATH"; // // nPath // - this.nPath.Location = new System.Drawing.Point(380, 62); + this.nPath.Location = new System.Drawing.Point(507, 76); + this.nPath.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.nPath.Name = "nPath"; - this.nPath.Size = new System.Drawing.Size(33, 20); + this.nPath.Size = new System.Drawing.Size(43, 22); this.nPath.TabIndex = 20; this.nPath.Text = "1"; // // label11 // this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(473, 65); + this.label11.Location = new System.Drawing.Point(631, 80); + this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(52, 13); + this.label11.Size = new System.Drawing.Size(68, 17); this.label11.TabIndex = 23; this.label11.Text = "n° Un OP"; // // nUnOp // - this.nUnOp.Location = new System.Drawing.Point(539, 62); + this.nUnOp.Location = new System.Drawing.Point(719, 76); + this.nUnOp.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.nUnOp.Name = "nUnOp"; - this.nUnOp.Size = new System.Drawing.Size(33, 20); + this.nUnOp.Size = new System.Drawing.Size(43, 22); this.nUnOp.TabIndex = 22; this.nUnOp.Text = "1"; // // label12 // this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(25, 91); + this.label12.Location = new System.Drawing.Point(33, 112); + this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(39, 13); + this.label12.Size = new System.Drawing.Size(52, 17); this.label12.TabIndex = 25; this.label12.Text = "n° Assi"; // // nAssi // - this.nAssi.Location = new System.Drawing.Point(91, 88); + this.nAssi.Location = new System.Drawing.Point(121, 108); + this.nAssi.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.nAssi.Name = "nAssi"; - this.nAssi.Size = new System.Drawing.Size(33, 20); + this.nAssi.Size = new System.Drawing.Size(43, 22); this.nAssi.TabIndex = 24; this.nAssi.Text = "1"; // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(235, 116); + this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(86, 17); + this.label13.TabIndex = 27; + this.label13.Text = "n° MemArea"; + // + // nMemArea + // + this.nMemArea.Location = new System.Drawing.Point(323, 112); + this.nMemArea.Margin = new System.Windows.Forms.Padding(4); + this.nMemArea.Name = "nMemArea"; + this.nMemArea.Size = new System.Drawing.Size(43, 22); + this.nMemArea.TabIndex = 26; + this.nMemArea.Text = "1"; + // // SetupAdapter // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(692, 517); + this.ClientSize = new System.Drawing.Size(923, 636); + this.Controls.Add(this.label13); + this.Controls.Add(this.nMemArea); this.Controls.Add(this.label12); this.Controls.Add(this.nAssi); this.Controls.Add(this.label11); @@ -318,6 +367,7 @@ this.Controls.Add(this.label1); this.Controls.Add(this.txtAdapter); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.Name = "SetupAdapter"; this.Text = "Adapter Setup Manager"; this.ResumeLayout(false); @@ -353,5 +403,7 @@ private System.Windows.Forms.TextBox nUnOp; private System.Windows.Forms.Label label12; private System.Windows.Forms.TextBox nAssi; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.TextBox nMemArea; } } \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/SetupAdapter.cs b/MTC_Adapter/MTC_Adapter/SetupAdapter.cs index 6fa7ff8..6b8f87d 100644 --- a/MTC_Adapter/MTC_Adapter/SetupAdapter.cs +++ b/MTC_Adapter/MTC_Adapter/SetupAdapter.cs @@ -199,6 +199,24 @@ namespace MTC_Adapter nAssi.Text = value.ToString(); } } + protected int numMemArea + { + get + { + int answ = 0; + try + { + answ = Convert.ToInt32(nMemArea.Text); + } + catch + { } + return answ; + } + set + { + nMemArea.Text = value.ToString(); + } + } private void btnCreateFile_Click(object sender, EventArgs e) { @@ -239,6 +257,22 @@ namespace MTC_Adapter // init lista parametri List> listaDR; + // MemArea + if (numMemArea > 0) + { + // creo elementi richiesti + element[] MemArea = new element[numMemArea]; + // ciclo x istanziare! + for (int i = 0; i < numMemArea; i++) + { + // inizializzo list x parametri + listaDR = new List>(); + MemArea[i] = new element(string.Format("MemArea_{0:00}", i + 1), listaDR); + } + // salvo oggetto + c.MemArea = MemArea; + } + // VAC PUMP if (numVacPump > 0) { @@ -249,9 +283,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("VacPump_{0:00}_Status", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("VacPump_{0:00}_WrkTime", i + 1), "0")); - VacuumPump[i] = new element(string.Format("VacPump_{0:00}", i + 1), string.Format("Pompa {0}", i + 1), fonteDati.Random, listaDR); + VacuumPump[i] = new element(string.Format("VacPump_{0:00}", i + 1), listaDR); } // salvo oggetto c.VacuumPump = VacuumPump; @@ -267,8 +299,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("VacAct_{0:00}_Count", i + 1), "0")); - VacuumAct[i] = new element(string.Format("VacAct_{0:00}", i + 1), string.Format("Attuatore vuoto {0}", i + 1), fonteDati.Random, listaDR); + VacuumAct[i] = new element(string.Format("VacAct_{0:00}", i + 1), listaDR); } // salvo oggetto c.VacuumAct = VacuumAct; @@ -284,8 +315,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("Lubro_{0:00}_Num", i + 1), "0")); - Lubro[i] = new element(string.Format("Lubro_{0:00}", i + 1), string.Format("Lubrorefrigerante {0}", i + 1), fonteDati.Random, listaDR); + Lubro[i] = new element(string.Format("Lubro_{0:00}", i + 1), listaDR); } // salvo oggetto c.Lubro = Lubro; @@ -301,8 +331,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("Cooler_{0:00}_Status", i + 1), "0")); - Cooler[i] = new element(string.Format("Cooler_{0:00}", i + 1), string.Format("Cooler {0}", i + 1), fonteDati.Random, listaDR); + Cooler[i] = new element(string.Format("Cooler_{0:00}", i + 1), listaDR); } // salvo oggetto c.Cooler = Cooler; @@ -318,8 +347,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("Press_{0:00}_Value", i + 1), "0")); - Press[i] = new element(string.Format("Press_{0:00}", i + 1), string.Format("Pressostato {0}", i + 1), fonteDati.Random, listaDR); + Press[i] = new element(string.Format("Press_{0:00}", i + 1), listaDR); } // salvo oggetto c.Press = Press; @@ -335,8 +363,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("Temp_{0:00}_Value", i + 1), "0")); - Temp[i] = new element(string.Format("Temp_{0:00}", i + 1), string.Format("Sonda Temperatura {0}", i + 1), fonteDati.Random, listaDR); + Temp[i] = new element(string.Format("Temp_{0:00}", i + 1), listaDR); } // salvo oggetto c.Temp = Temp; @@ -352,32 +379,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_FeedRate", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_FeedOverr", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_RapidOverr", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActX", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActY", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActZ", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActI", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActJ", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActK", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_Type", i + 1), "0")); - // aggiunta x revisione 2016.05.05 - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PartId", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PZ_TOT", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_Cod_M", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_Cod_S", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_Cod_T", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_RUN_MODE", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_EXE_MODE", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_CurrProg", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_CurrProg_RowNum", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_ActiveAxes", i + 1), "0")); - // aggiunto 2016.05.10 - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_CodG_Act", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_SubMode", i + 1), "0")); - - Path[i] = new element(string.Format("Path_{0:00}", i + 1), string.Format("Path num {0}", i + 1), fonteDati.Random, listaDR); + Path[i] = new element(string.Format("Path_{0:00}", i + 1), listaDR); } // salvo oggetto c.Path = Path; @@ -393,16 +395,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_ToolId", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_NumCU", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_Status", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_VitaRes", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_Speed", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_SpeedOverr", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_Load", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_AccTime", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_VitaResType", i + 1), "0")); - UnOp[i] = new element(string.Format("UnOp_{0:00}", i + 1), string.Format("Unita Op num {0}", i + 1), fonteDati.Random, listaDR); + UnOp[i] = new element(string.Format("UnOp_{0:00}", i + 1), listaDR); } // salvo oggetto c.UnOp = UnOp; @@ -418,22 +411,8 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_MainProc", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_IsMast", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_MastId", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Type", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Dir", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Load", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_PosAct", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_PosTgt", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_FeedAct", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_FeedOver", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_AccelAct", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_AccTime", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Battery", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_DistDone", i + 1), "0")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_InvDDone", i + 1), "0")); - Axis[i] = new element(string.Format("Axis_{0:00}", i + 1), string.Format("Asse num {0}", i + 1), fonteDati.Random, listaDR); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Type", i + 1), "LINEAR")); + Axis[i] = new element(string.Format("Axis_{0:00}", i + 1), listaDR); } // salvo oggetto c.Axis = Axis; @@ -460,6 +439,7 @@ namespace MTC_Adapter numPath = c2.nPath; numUnOp = c2.nUnOp; numAxis = c2.nAxis; + numMemArea = c2.nMemArea; } } } diff --git a/MTC_Adapter/MTC_Adapter/setupTgt.bat b/MTC_Adapter/MTC_Adapter/setupTgt.bat index 6a81d65..6b9c522 100644 --- a/MTC_Adapter/MTC_Adapter/setupTgt.bat +++ b/MTC_Adapter/MTC_Adapter/setupTgt.bat @@ -9,7 +9,7 @@ if %1 == "CMS-SIEMENS" goto CMS if %1 == "SCM-ESA" goto SCM :Release -echo Release: uso +echo Release: non devo copiare nulla goto END :Debug diff --git a/MTC_Adapter/MTC_Adapter/utils.cs b/MTC_Adapter/MTC_Adapter/utils.cs index fa88a76..2059491 100644 --- a/MTC_Adapter/MTC_Adapter/utils.cs +++ b/MTC_Adapter/MTC_Adapter/utils.cs @@ -448,28 +448,6 @@ namespace MTC_Adapter /// SIEMENS } - /// - /// Sorgente dati (per modalitĂ  recupero sw) - /// - public enum fonteDati - { - /// - /// dati recuperati da metodi/classi con HMI - /// - HMI, - /// - /// dati recuperati da recupero memorie PLC/CNC - /// - MemLoad, - /// - /// in questo caso dato fittizio/senza dati (x init) - /// - NoData, - /// - /// Dati generati random - /// - Random - } public enum gatherCycle { diff --git a/MTC_Adapter/SCMCncLib/thdNcEsaGvKvara.cs b/MTC_Adapter/SCMCncLib/thdNcEsaGvKvara.cs index 6ac924f..1549667 100644 --- a/MTC_Adapter/SCMCncLib/thdNcEsaGvKvara.cs +++ b/MTC_Adapter/SCMCncLib/thdNcEsaGvKvara.cs @@ -35,9 +35,14 @@ namespace SCMCncLib private UInt16 WriteNumber; private UInt16 VAreaByteSize; private UInt16 EOKAreaByteSize; - private UInt16 ETKAreaByteSize; + private UInt16 ETKAreaByteSize; private UInt16 AlarmByteSize; + private UInt16 IOT_ByteAreaByteSize; + private UInt16 IOT_WordAreaByteSize; + private UInt16 IOT_DWordAreaByteSize; + private UInt16 IOT_StringAreaByteSize; + private string SysLink = ""; private string DefCn = ""; @@ -56,13 +61,26 @@ namespace SCMCncLib private string EOKAreaAddressName; private TS_REG EOKAreaAddress; - + private string ETKAreaAddressName; - private TS_REG ETKAreaAddress; - + private TS_REG ETKAreaAddress; + private string PlcErrAreaAddressName; private TS_REG PlcErrAreaAddress; + + private string IOT_ByteAreaAddressName; + private TS_REG IOT_ByteAreaAddress; + + private string IOT_WordAreaAddressName; + private TS_REG IOT_WordAreaAddress; + + private string IOT_DWordAreaAddressName; + private TS_REG IOT_DWordAreaAddress; + + private string IOT_StringAreaAddressName; + private TS_REG IOT_StringAreaAddress; + /// /// Memorie a 4 byte (32 bit) /// @@ -94,6 +112,35 @@ namespace SCMCncLib /// public Byte[] PLC_MemoryAreaAllarmi; + #region memorie IOT NUOVE + + /// + /// Area IOT_Byte: memoria temp di UINT di 4 byte (32 bit) + /// + public UInt32[] PLC_MemoryAreaIOT_Byte_tmp; + /// + /// Area IOT_Word: memoria temp di UINT di 4 byte (32 bit) + /// + public UInt32[] PLC_MemoryAreaIOT_Word_tmp; + /// + /// memorie a 1 byte (8 bit) x area IOT.Byte + /// + public Byte[] PLC_MemoryAreaIOT_Byte; + /// + /// memorie a 2 byte (16 bit) x area IOT.Word + /// + public UInt16[] PLC_MemoryAreaIOT_Word; + /// + /// memorie a 4 byte (32 bit) x area IOT.DWord + /// + public UInt32[] PLC_MemoryAreaIOT_DWord; + /// + /// memorie stringa x area IOT.String + /// + public string[] PLC_MemoryAreaIOT_String; + + #endregion + // esa constants #region ESA_PLC_CONSTANTS private const UInt32 MAX_PATH = 256; @@ -114,7 +161,7 @@ namespace SCMCncLib [DllImport("KvCom3x", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi, EntryPoint = "_read_regbuffer@16")] private static extern int read_regbuffer(ref TS_REG pReg, UInt16 Offset, UInt16 Count, [MarshalAs(UnmanagedType.LPArray)] UInt32[] pDst); - + [DllImport("KvCom3x", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi, EntryPoint = "_write_regbuffer@16")] private static extern int write_regbuffer(ref TS_REG pReg, UInt16 Offset, UInt16 Count, [MarshalAs(UnmanagedType.LPArray)] UInt32[] pSrc); @@ -148,7 +195,7 @@ namespace SCMCncLib /// Initializes a new instance of the class. /// /// The f ini. - public thdNcEsaGvKvara(IniFile fIni) : base(fIni) + public thdNcEsaGvKvara(IniFile fIni, int IAS_Byte, int IAS_Word, int IAS_DWord, int IAS_String) : base(fIni) { DeviceType = NC_DEVICE_TYPE.ESAGV_KVARA; @@ -171,14 +218,20 @@ namespace SCMCncLib DefCn = tempS.ToString() + "\\defcn"; //StrCat(DefCn, "\\defcn"); - ReadNumber = 265; WriteNumber = 265; VAreaByteSize = 32; - ETKAreaByteSize = 8; + ETKAreaByteSize = 8; EOKAreaByteSize = 32; // era 14aggiunto sino a 31 x avere 91... AlarmByteSize = 32; + // nuove aree: da init mi passa le dimensioni delle memorie + IOT_ByteAreaByteSize = Convert.ToUInt16(IAS_Byte); + IOT_WordAreaByteSize = Convert.ToUInt16(IAS_Word); + IOT_DWordAreaByteSize = Convert.ToUInt16(IAS_DWord); + IOT_StringAreaByteSize = Convert.ToUInt16(IAS_String); + + CommandsAddressName = fIni.ReadString("NC", "CommandsAddress", "SIMREAD[0]"); EOKAreaAddressName = fIni.ReadString("NC", "EOKAreaAddress", "EOK"); ETKAreaAddressName = fIni.ReadString("NC", "ETKAreaAddress", "ETK"); @@ -186,6 +239,12 @@ namespace SCMCncLib StatusAddressName = fIni.ReadString("NC", "StatusAddress", "SIMWRITE[0]"); VAreaAddressName = fIni.ReadString("NC", "VAreaAddress", "V"); + // indirizzo area IOT... + IOT_ByteAreaAddressName = fIni.ReadString("NC", "IOT_AreaAddressByte", "IOT.BYTE"); + IOT_WordAreaAddressName = fIni.ReadString("NC", "IOT_AreaAddressWord", "IOT.WORD"); + IOT_DWordAreaAddressName = fIni.ReadString("NC", "IOT_AreaAddressDWord", "IOT.DWORD"); + IOT_StringAreaAddressName = fIni.ReadString("NC", "IOT_AreaAddressString", "IOT"); + /************************************************** * Creazione buffers letture memoria **************************************************/ @@ -208,6 +267,14 @@ namespace SCMCncLib PLC_MemoryAreaEOK = new uint[EOKAreaByteSize]; PLC_MemoryAreaETK = new UInt32[ETKAreaByteSize]; + // creo array x aree memoria IOT... + PLC_MemoryAreaIOT_Byte_tmp = new UInt32[(int)Math.Ceiling((decimal)IOT_ByteAreaByteSize / 4)]; + PLC_MemoryAreaIOT_Word_tmp = new UInt32[(int)Math.Ceiling((decimal)IOT_WordAreaByteSize / 2)]; + PLC_MemoryAreaIOT_Byte = new Byte[IOT_ByteAreaByteSize]; + PLC_MemoryAreaIOT_Word = new UInt16[IOT_WordAreaByteSize]; + PLC_MemoryAreaIOT_DWord = new UInt32[IOT_DWordAreaByteSize]; + PLC_MemoryAreaIOT_String = new string[IOT_StringAreaByteSize]; + if (!Connect()) Disconnect(); } @@ -241,13 +308,64 @@ namespace SCMCncLib Finished = true; } + + /// + /// Leggo il buffer di memorie BYTE + /// + public void ReadBufferByte() + { + // 2017.02: modifiche x nuova versione PLC: leggo intero buffer BYTE + iError = read_regbuffer(ref IOT_ByteAreaAddress, 0, IOT_ByteAreaByteSize, PLC_MemoryAreaIOT_Byte_tmp); + // ...e copio in array a byte... + try + { + Buffer.BlockCopy(PLC_MemoryAreaIOT_Byte_tmp, 0, PLC_MemoryAreaIOT_Byte, 0, IOT_ByteAreaByteSize); + } + catch + { } + } + /// + /// Leggo il buffer di memorie WORD + /// + public void ReadBufferWord() + { + // 2017.02: modifiche x nuova versione PLC: leggo intero buffer WORD + iError = read_regbuffer(ref IOT_WordAreaAddress, 0, IOT_WordAreaByteSize, PLC_MemoryAreaIOT_Word_tmp); + try + { + Buffer.BlockCopy(PLC_MemoryAreaIOT_Word_tmp, 0, PLC_MemoryAreaIOT_Word, 0, IOT_WordAreaByteSize * 2); + } + catch + { } + } + /// + /// Leggo il buffer di memorie DWORD + /// + public void ReadBufferDWord() + { + // leggo intero buffer DWORD + iError = read_regbuffer(ref IOT_DWordAreaAddress, 0, IOT_DWordAreaByteSize, PLC_MemoryAreaIOT_DWord); + } + /// + /// Leggo il buffer di memorie STRING + /// + public void ReadBufferString() + { +#if false + // leggo intero buffer STRING + iError = read_regbuffer(ref IOT_StringAreaAddress, 0, IOT_StringAreaByteSize, PLC_MemoryAreaIOT_String); +#endif + } + + + /// /// Reads the buffer. /// public void ReadBuffer() { // leggo da posizione memorie V/allarmi come TS_REG - iError = read_regbuffer(ref PlcErrAreaAddress, 300, AlarmByteSize, PLC_MemAreaAlarm_tmp); + iError = read_regbuffer(ref PlcErrAreaAddress, 300, AlarmByteSize, PLC_MemAreaAlarm_tmp); // lettura buffer dal CN iError = read_regbuffer(ref StatusAddress, 0, ReadNumber, PLC_MemoryRead); @@ -273,7 +391,7 @@ namespace SCMCncLib catch { } } - + /// /// Connects to device. /// @@ -295,6 +413,16 @@ namespace SCMCncLib if (iError == 0) iError = get_reg_by_name(VAreaAddressName, ref VAreaAddress); + + if (iError == 0) + iError = get_reg_by_name(IOT_ByteAreaAddressName, ref IOT_ByteAreaAddress); + if (iError == 0) + iError = get_reg_by_name(IOT_WordAreaAddressName, ref IOT_WordAreaAddress); + if (iError == 0) + iError = get_reg_by_name(IOT_DWordAreaAddressName, ref IOT_DWordAreaAddress); + if (iError == 0) + iError = get_reg_by_name(IOT_StringAreaAddressName, ref IOT_StringAreaAddress); + Connected = (iError == 0); return Connected; } diff --git a/MTC_Adapter/VersGen/VersGen.cs b/MTC_Adapter/VersGen/VersGen.cs index 78ad84c..59f5edc 100644 --- a/MTC_Adapter/VersGen/VersGen.cs +++ b/MTC_Adapter/VersGen/VersGen.cs @@ -5,7 +5,7 @@ using System.Reflection; -[assembly: AssemblyVersion("1.3.9999.119")] -[assembly: AssemblyFileVersion("1.3.9999.119")] +[assembly: AssemblyVersion("1.4.9999.125")] +[assembly: AssemblyFileVersion("1.4.9999.125")] [assembly: AssemblyCopyright("Steamware-CMS-SCM © 2015-2017")] [assembly: AssemblyCompany("Steamware-CMS-SCM")] diff --git a/MTC_Adapter/VersGen/VersGen.tt b/MTC_Adapter/VersGen/VersGen.tt index 75e8ef4..3723919 100644 --- a/MTC_Adapter/VersGen/VersGen.tt +++ b/MTC_Adapter/VersGen/VersGen.tt @@ -6,8 +6,8 @@ using System.Reflection; -[assembly: AssemblyVersion("1.3.9999.<#= this.RevisionNumber #>")] -[assembly: AssemblyFileVersion("1.3.9999.<#= this.RevisionNumber #>")] +[assembly: AssemblyVersion("1.4.9999.<#= this.RevisionNumber #>")] +[assembly: AssemblyFileVersion("1.4.9999.<#= this.RevisionNumber #>")] [assembly: AssemblyCopyright("Steamware-CMS-SCM © 2015-<#= DateTime.Now.Year #>")] [assembly: AssemblyCompany("Steamware-CMS-SCM")] <#+