This commit is contained in:
Binary file not shown.
+4
-1
@@ -1,9 +1,12 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.27004.2005
|
||||
VisualStudioVersion = 15.0.26730.16
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CMS_CORE_Application", "CMS_CORE_Application\CMS_CORE_Application.csproj", "{EEB0C188-6EFA-4ABB-9E6F-4D423006428C}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{4ABF8EEF-2B23-483E-ACDC-53214FE28681} = {4ABF8EEF-2B23-483E-ACDC-53214FE28681}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CMS_CORE_Library", "CMS_CORE_Library\CMS_CORE_Library.csproj", "{4ABF8EEF-2B23-483E-ACDC-53214FE28681}"
|
||||
EndProject
|
||||
|
||||
@@ -33,10 +33,14 @@ namespace CMS_CORE_Application
|
||||
vv.Key = ss;
|
||||
Boolean tt= vv.IsValid;
|
||||
|
||||
Nc N = new Nc_Osai("192.168.157.2", 8080, 2);
|
||||
Nc N = new Nc_Osai("192.168.157.2", 8080, 5);
|
||||
try
|
||||
{
|
||||
N.Connect();
|
||||
N.NC_Connect();
|
||||
|
||||
byte byteValue = 0;
|
||||
N.MEM_RWByte(false, 1, Nc.MEMORY_Type.Osai_MW, 0, 0, ref byteValue);
|
||||
|
||||
}
|
||||
catch(Nc_Exception e)
|
||||
{
|
||||
@@ -55,13 +59,13 @@ namespace CMS_CORE_Application
|
||||
{
|
||||
|
||||
Nc_Demo nc_Demo = new Nc_Demo("localhost", 8080);
|
||||
nc_Demo.Connect();
|
||||
nc_Demo.NC_Connect();
|
||||
|
||||
DateTime testDateTime = new DateTime();
|
||||
nc_Demo.R_NCDateTime(ref testDateTime);
|
||||
nc_Demo.NC_RDateTime(ref testDateTime);
|
||||
|
||||
byte byteValue = 0;
|
||||
nc_Demo.RW_Byte(false, 1, Nc.MEMORY_Type.NullVariable, 0, 0, ref byteValue);
|
||||
nc_Demo.MEM_RWByte(false, 1, Nc.MEMORY_Type.Null, 0, 0, ref byteValue);
|
||||
MessageBox.Show("First byte: " + byteValue.ToString() + "\nDateTime: " + testDateTime.ToString());
|
||||
}
|
||||
catch (Nc_Exception ex)
|
||||
|
||||
Binary file not shown.
@@ -29,3 +29,19 @@ C:\Workspace\CMS_CORE_LIBRARY\CMS_CORE_Application\obj\x86\Debug\CMS_CORE_Applic
|
||||
C:\Workspace\CMS_CORE_LIBRARY\CMS_CORE_Application\obj\x86\Debug\CMS_CORE_Application.csproj.CoreCompileInputs.cache
|
||||
C:\Workspace\CMS_CORE_LIBRARY\CMS_CORE_Application\obj\x86\Debug\CMS_CORE_Application.exe
|
||||
C:\Workspace\CMS_CORE_LIBRARY\CMS_CORE_Application\obj\x86\Debug\CMS_CORE_Application.pdb
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\bin\x86\Debug\CMS_CORE_Application.exe.config
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\bin\x86\Debug\CMS_CORE_Application.exe
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\bin\x86\Debug\CMS_CORE_Application.pdb
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\bin\x86\Debug\CMS_CORE_Library.dll
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\bin\x86\Debug\SKGL.dll
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\bin\x86\Debug\CndexLinkDotNet.dll
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\bin\x86\Debug\CMS_CORE_Library.pdb
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\bin\x86\Debug\CMS_CORE_Library.xml
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\bin\x86\Debug\CMS_CORE_Library.dll.config
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\obj\x86\Debug\CMS_CORE_Application.csprojResolveAssemblyReference.cache
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\obj\x86\Debug\CMS_CORE_Application.Form1.resources
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\obj\x86\Debug\CMS_CORE_Application.Properties.Resources.resources
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\obj\x86\Debug\CMS_CORE_Application.csproj.GenerateResource.Cache
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\obj\x86\Debug\CMS_CORE_Application.csproj.CoreCompileInputs.cache
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\obj\x86\Debug\CMS_CORE_Application.exe
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Application\obj\x86\Debug\CMS_CORE_Application.pdb
|
||||
|
||||
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -12,6 +12,7 @@ using CMS_CORE.Demo.Models;
|
||||
using CMS_CORE.Exceptions;
|
||||
using CMS_CORE_Library.Demo.Models;
|
||||
using Nc_Demo_Application.Server.Service;
|
||||
using CMS_CORE_Library;
|
||||
|
||||
namespace CMS_CORE.Demo
|
||||
{
|
||||
@@ -31,7 +32,7 @@ namespace CMS_CORE.Demo
|
||||
Port = RemotePort;
|
||||
}
|
||||
|
||||
public override void Connect()
|
||||
public override void NC_Connect()
|
||||
{
|
||||
// Create new connection to the demo server
|
||||
String url = "http://" + Ip + ":" + Port + "/api";
|
||||
@@ -45,7 +46,7 @@ namespace CMS_CORE.Demo
|
||||
Connected = true;
|
||||
}
|
||||
|
||||
public override void Disconnect()
|
||||
public override void NC_Disconnect()
|
||||
{
|
||||
cf.Close();
|
||||
Connected = false;
|
||||
@@ -56,7 +57,7 @@ namespace CMS_CORE.Demo
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#region High level methods
|
||||
|
||||
public override void R_NCDateTime(ref DateTime ActualTime)
|
||||
public override void NC_RDateTime(ref DateTime ActualTime)
|
||||
{
|
||||
//Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -75,7 +76,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void R_NCSerialNumber(ref String SN)
|
||||
public override void NC_RSerialNumber(ref String SN)
|
||||
{
|
||||
//Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -92,7 +93,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
|
||||
//Get the NC model Name
|
||||
public override void R_NCModelName(ref string ModelName)
|
||||
public override void NC_RModelName(ref string ModelName)
|
||||
{
|
||||
//Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -107,7 +108,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void R_NCSoftwareVersion(ref String SWV)
|
||||
public override void NC_RSoftwareVersion(ref String SWV)
|
||||
{
|
||||
//Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -123,7 +124,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void R_NCMachineNumber(ref string MachNumber)
|
||||
public override void NC_RMachineNumber(ref string MachNumber)
|
||||
{
|
||||
//Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -139,7 +140,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void R_NCProcessesNum(ref ushort ProcNumber)
|
||||
public override void NC_RProcessesNum(ref ushort ProcNumber)
|
||||
{
|
||||
//Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -153,7 +154,7 @@ namespace CMS_CORE.Demo
|
||||
ThrowNCException(ex);
|
||||
}
|
||||
}
|
||||
public override void R_NCLanguage(ref CultureInfo Language)
|
||||
public override void NC_RLanguage(ref CultureInfo Language)
|
||||
{
|
||||
//Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -176,7 +177,7 @@ namespace CMS_CORE.Demo
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#region PLC High-level data
|
||||
|
||||
public override void R_PLCActiveAlarms(ref List<String> Alarms)
|
||||
public override void PLC_RActiveAlarms(ref List<String> Alarms)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -204,7 +205,7 @@ namespace CMS_CORE.Demo
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#region PROCESS (PATH) High-level data
|
||||
|
||||
public override void R_PROCStatus(ushort ProcNumber, ref PROC_Status Status)
|
||||
public override void PROC_RStatus(ushort ProcNumber, ref PROC_Status Status)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -222,7 +223,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void R_PROCMode(ushort ProcNumber, ref PROC_Mode Mode)
|
||||
public override void PROC_RMode(ushort ProcNumber, ref PROC_Mode Mode)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -240,7 +241,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void R_PROCActiveAlarms(ushort ProcNumber, ref List<string> Alarms)
|
||||
public override void PROC_RActiveAlarms(ushort ProcNumber, ref List<string> Alarms)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -264,7 +265,7 @@ namespace CMS_CORE.Demo
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#region PROCESS-AXES (PATH) High-level data
|
||||
|
||||
public override void R_PROCAxis_InterpPosition(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
public override void AXES_RInterpPosition(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -286,7 +287,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void R_PROCAxis_ProgrPosition(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
public override void AXES_RProgrPosition(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -307,7 +308,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void R_PROCAxis_MachinePosition(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
public override void AXES_RMachinePosition(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -329,7 +330,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void R_PROCAxis_FollError(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
public override void AXES_RFollowingError(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -350,7 +351,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void R_PROCAxis_DistToGo(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
public override void AXES_RDistanceToGo(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -375,7 +376,7 @@ namespace CMS_CORE.Demo
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#region NC Low-level function: single valiable in memory
|
||||
|
||||
public override void RW_Boolean(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemBit, ref bool Value)
|
||||
public override void MEM_RWBoolean(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemBit, ref bool Value)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -401,7 +402,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void RW_Byte(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemByte, ref byte Value)
|
||||
public override void MEM_RWByte(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemByte, ref byte Value)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -427,7 +428,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void RW_Word(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref ushort Value)
|
||||
public override void MEM_RWWord(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref ushort Value)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -452,7 +453,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void RW_Short(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref short Value)
|
||||
public override void MEM_RWShort(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref short Value)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -477,7 +478,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void RW_DWord(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref uint Value)
|
||||
public override void MEM_RWDWord(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref uint Value)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -502,7 +503,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void RW_Integer(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref int Value)
|
||||
public override void MEM_RWInteger(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref int Value)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -532,7 +533,7 @@ namespace CMS_CORE.Demo
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#region NC Low-level function: variables List in memory
|
||||
|
||||
public override void RW_Byte_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemByteStart, int Number, ref List<byte> Value)
|
||||
public override void MEM_RWByteList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemByteStart, int Number, ref List<byte> Value)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -557,7 +558,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void RW_Word_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<ushort> Value)
|
||||
public override void MEM_RWWordList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<ushort> Value)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -582,7 +583,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void RW_Short_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<short> Value)
|
||||
public override void MEM_RWShortList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<short> Value)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -607,7 +608,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void RW_Integer_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<int> Value)
|
||||
public override void MEM_RWIntegerList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<int> Value)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -632,7 +633,7 @@ namespace CMS_CORE.Demo
|
||||
}
|
||||
}
|
||||
|
||||
public override void RW_DWord_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<uint> Value)
|
||||
public override void MEM_RWDWordList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<uint> Value)
|
||||
{
|
||||
// Check if the NC Demo is Connected
|
||||
CheckConnection();
|
||||
@@ -662,27 +663,27 @@ namespace CMS_CORE.Demo
|
||||
#region NC Low-level function: Parameters
|
||||
|
||||
|
||||
public override void R_NCParam(short Index, short Bit, ref bool Value)
|
||||
public override void NC_RParam(short Index, short Bit, ref bool Value)
|
||||
{
|
||||
throw new Nc_Exception(getError(FUNC_NOTALL_NC_ERROR));
|
||||
}
|
||||
|
||||
public override void R_NCParam(short Index, ref byte Value)
|
||||
public override void NC_RParam(short Index, ref byte Value)
|
||||
{
|
||||
throw new Nc_Exception(getError(FUNC_NOTALL_NC_ERROR));
|
||||
}
|
||||
|
||||
public override void R_NCParam(short Index, ref short Value)
|
||||
public override void NC_RParam(short Index, ref short Value)
|
||||
{
|
||||
throw new Nc_Exception(getError(FUNC_NOTALL_NC_ERROR));
|
||||
}
|
||||
|
||||
public override void R_NCParam(short Index, ref int Value)
|
||||
public override void NC_RParam(short Index, ref int Value)
|
||||
{
|
||||
throw new Nc_Exception(getError(FUNC_NOTALL_NC_ERROR));
|
||||
}
|
||||
|
||||
public override void R_NCParam(short Index, ref double Value)
|
||||
public override void NC_RParam(short Index, ref double Value)
|
||||
{
|
||||
throw new Nc_Exception(getError(FUNC_NOTALL_NC_ERROR));
|
||||
}
|
||||
@@ -691,22 +692,22 @@ namespace CMS_CORE.Demo
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#region File Management
|
||||
|
||||
public override void R_NCReadPartProgramToFile(string partProgramPath, string partProgramLocalName, ref FileStream localFile)
|
||||
public override void FILES_RProgramToFile(string partProgramPath, string partProgramLocalName, ref FileStream localFile)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override void W_NCWritePartProgramFromFile(string partProgramPath, FileStream localFile)
|
||||
public override void FILES_WProgramFromFile(string partProgramPath, FileStream localFile)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override void NCCopyPartProgram(string partProgramPath, string newPartProgramPath, bool failIfExist)
|
||||
public override void FILES_CopyProgram(string partProgramPath, string newPartProgramPath, bool failIfExist)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override void NCDeletePartProgram(string partProgramPath, string partProgramName)
|
||||
public override void FILES_DeleteProgram(string partProgramPath, string partProgramName)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
@@ -719,7 +720,7 @@ namespace CMS_CORE.Demo
|
||||
//Check if NC is connected
|
||||
private void CheckConnection()
|
||||
{
|
||||
if (!isConnected())
|
||||
if (!NC_IsConnected())
|
||||
throw new Nc_Exception(getError(NOT_CONNECTED_ERROR));
|
||||
}
|
||||
|
||||
@@ -761,6 +762,7 @@ namespace CMS_CORE.Demo
|
||||
case FUNC_NOTALL_NC_ERROR: return ErrororOwner + "Function not allowed for this type of NC";
|
||||
case BIT_NOT_IN_RANGE_ERROR: return ErrororOwner + "Bit-number must be between 0 and 7";
|
||||
case INTERNAL_ERROR: return ErrororOwner + "Internal function error";
|
||||
case INCORRECT_PARAMETERS_ERROR: return ErrororOwner + "Incorrect Parameters error";
|
||||
}
|
||||
}
|
||||
return ErrororOwner + "Generic Error On Function";
|
||||
@@ -772,6 +774,7 @@ namespace CMS_CORE.Demo
|
||||
if (bitnum < 0 || bitnum > 7)
|
||||
throw new Nc_Exception(getError(BIT_NOT_IN_RANGE_ERROR));
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.IO;
|
||||
using CMS_CORE.Utils;
|
||||
using CMS_CORE_Library;
|
||||
|
||||
#pragma warning disable 1591
|
||||
|
||||
@@ -56,7 +57,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Connect Method
|
||||
public override void Connect()
|
||||
public override void NC_Connect()
|
||||
{
|
||||
short nReturn;
|
||||
short ActivePath;
|
||||
@@ -100,7 +101,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Disconnect Method
|
||||
public override void Disconnect()
|
||||
public override void NC_Disconnect()
|
||||
{
|
||||
short nReturn;
|
||||
|
||||
@@ -125,7 +126,7 @@ namespace CMS_CORE.Fanuc
|
||||
#region High level methods
|
||||
|
||||
//Get the NC Language
|
||||
public override void R_NCLanguage(ref CultureInfo Language)
|
||||
public override void NC_RLanguage(ref CultureInfo Language)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -137,7 +138,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the NC Serial Number
|
||||
public override void R_NCSerialNumber(ref string SN)
|
||||
public override void NC_RSerialNumber(ref string SN)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -149,7 +150,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the NC Software Version
|
||||
public override void R_NCSoftwareVersion(ref string SWV)
|
||||
public override void NC_RSoftwareVersion(ref string SWV)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -161,7 +162,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the NC model Name
|
||||
public override void R_NCModelName(ref string ModelName)
|
||||
public override void NC_RModelName(ref string ModelName)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -173,7 +174,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the processes-count configurated
|
||||
public override void R_NCProcessesNum(ref ushort ProcNumber)
|
||||
public override void NC_RProcessesNum(ref ushort ProcNumber)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -185,7 +186,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the NC Time
|
||||
public override void R_NCDateTime(ref DateTime ActualTime)
|
||||
public override void NC_RDateTime(ref DateTime ActualTime)
|
||||
{
|
||||
Focas1.IODBTIMER TimerDate = new Focas1.IODBTIMER();
|
||||
Focas1.IODBTIMER TimerTime = new Focas1.IODBTIMER();
|
||||
@@ -220,21 +221,21 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the Machine Number
|
||||
public override void R_NCMachineNumber(ref string MachNumber)
|
||||
public override void NC_RMachineNumber(ref string MachNumber)
|
||||
{
|
||||
ushort Value = 0;
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
RW_Word(R, UNDEF_PROC, MATR_MACCH_FANUC.MemType, MATR_MACCH_FANUC.Address, ref Value);
|
||||
MEM_RWWord(R, UNDEF_PROC, MATR_MACCH_FANUC.MemType, MATR_MACCH_FANUC.Address, ref Value);
|
||||
MachNumber = Value.ToString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Get the process status
|
||||
public override void R_PROCStatus(ushort Number, ref PROC_Status Status)
|
||||
public override void PROC_RStatus(ushort Number, ref PROC_Status Status)
|
||||
{
|
||||
Focas1.ODBST StatInfo = new Focas1.ODBST();
|
||||
short nReturn;
|
||||
@@ -255,7 +256,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the process Mode
|
||||
public override void R_PROCMode(ushort Number, ref PROC_Mode Mode)
|
||||
public override void PROC_RMode(ushort Number, ref PROC_Mode Mode)
|
||||
{
|
||||
Focas1.ODBST StatInfo = new Focas1.ODBST();
|
||||
short nReturn=0;
|
||||
@@ -276,7 +277,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the process message
|
||||
public override void R_PROCActiveAlarms(ushort ProcNumber, ref List<string> Alarms)
|
||||
public override void PROC_RActiveAlarms(ushort ProcNumber, ref List<string> Alarms)
|
||||
{
|
||||
Focas1.ODBALMMSG2 Messg = new Focas1.ODBALMMSG2();
|
||||
short nReturn = 0;
|
||||
@@ -320,7 +321,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the PMC Messages
|
||||
public override void R_PLCActiveAlarms(ref List<String> Alarms)
|
||||
public override void PLC_RActiveAlarms(ref List<String> Alarms)
|
||||
{
|
||||
Focas1.OPMSG3 Messg = new Focas1.OPMSG3();
|
||||
short nReturn = 0;
|
||||
@@ -353,7 +354,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the Inrpolated position
|
||||
public override void R_PROCAxis_InterpPosition(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
public override void AXES_RInterpPosition(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
{
|
||||
Focas1.ODBPOS axisFan = new Focas1.ODBPOS();
|
||||
short nReturn;
|
||||
@@ -420,7 +421,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the Machine position
|
||||
public override void R_PROCAxis_MachinePosition(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
public override void AXES_RMachinePosition(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
{
|
||||
Focas1.ODBPOS axisFan = new Focas1.ODBPOS();
|
||||
short nReturn;
|
||||
@@ -487,7 +488,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the Distance To Go
|
||||
public override void R_PROCAxis_DistToGo(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
public override void AXES_RDistanceToGo(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
{
|
||||
Focas1.ODBPOS axisFan = new Focas1.ODBPOS();
|
||||
short nReturn;
|
||||
@@ -554,7 +555,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get the Programmed Position
|
||||
public override void R_PROCAxis_ProgrPosition(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
public override void AXES_RProgrPosition(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
{
|
||||
//In fanuc is not implemented, so i need to build it
|
||||
Dictionary<string, double> ActualMach = new Dictionary<string, double>();
|
||||
@@ -562,8 +563,8 @@ namespace CMS_CORE.Fanuc
|
||||
KeyValuePair<string, Double> val;
|
||||
|
||||
//Read the positions
|
||||
R_PROCAxis_MachinePosition(ProcNumber, ref ActualMach);
|
||||
R_PROCAxis_DistToGo(ProcNumber, ref ToGo);
|
||||
AXES_RMachinePosition(ProcNumber, ref ActualMach);
|
||||
AXES_RDistanceToGo(ProcNumber, ref ToGo);
|
||||
|
||||
//If it has the same size
|
||||
if(ActualMach.Count == ToGo.Count)
|
||||
@@ -588,7 +589,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
}
|
||||
|
||||
public override void R_PROCAxis_FollError(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
public override void AXES_RFollowingError(ushort ProcNumber, ref Dictionary<string, double> Axes)
|
||||
{
|
||||
ThrowNCException(FUNC_NOTALL_NC_ERROR, 0);
|
||||
}
|
||||
@@ -605,7 +606,7 @@ namespace CMS_CORE.Fanuc
|
||||
// PARAMS
|
||||
|
||||
//Get NC Bit Parameter
|
||||
public override void R_NCParam(short Index, short Bit, ref Boolean Value)
|
||||
public override void NC_RParam(short Index, short Bit, ref Boolean Value)
|
||||
{
|
||||
Focas1.IODBPSD_1 outpar = new Focas1.IODBPSD_1();
|
||||
short nReturn;
|
||||
@@ -632,7 +633,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get NC Byte Parameter
|
||||
public override void R_NCParam(short Index, ref byte Value)
|
||||
public override void NC_RParam(short Index, ref byte Value)
|
||||
{
|
||||
Focas1.IODBPSD_1 outpar = new Focas1.IODBPSD_1();
|
||||
short nReturn;
|
||||
@@ -655,7 +656,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get NC Word Parameter
|
||||
public override void R_NCParam(short Index, ref short Value)
|
||||
public override void NC_RParam(short Index, ref short Value)
|
||||
{
|
||||
Focas1.IODBPSD_1 outpar = new Focas1.IODBPSD_1();
|
||||
short nReturn;
|
||||
@@ -678,7 +679,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get NC DWord Parameter
|
||||
public override void R_NCParam(short Index, ref int Value)
|
||||
public override void NC_RParam(short Index, ref int Value)
|
||||
{
|
||||
Focas1.IODBPSD_1 outpar = new Focas1.IODBPSD_1();
|
||||
short nReturn;
|
||||
@@ -701,7 +702,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Get NC Real Parameter
|
||||
public override void R_NCParam(short Index, ref double Value)
|
||||
public override void NC_RParam(short Index, ref double Value)
|
||||
{
|
||||
Focas1.IODBPSD_2 outpar = new Focas1.IODBPSD_2();
|
||||
short nReturn;
|
||||
@@ -730,7 +731,7 @@ namespace CMS_CORE.Fanuc
|
||||
// BOOL (NC) <-> BOOL (.NET) ToDo
|
||||
|
||||
//Read-Write a Boolean-Value inside the NC.
|
||||
public override void RW_Boolean(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemBit, ref bool Value)
|
||||
public override void MEM_RWBoolean(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemBit, ref bool Value)
|
||||
{
|
||||
byte ReadValue = 0;
|
||||
byte pow = (byte)Math.Pow(2, MemBit);
|
||||
@@ -738,11 +739,14 @@ namespace CMS_CORE.Fanuc
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//Check if the Bit Number is Correct
|
||||
CheckBitRange(MemBit);
|
||||
|
||||
//Read the Byte where is the bit
|
||||
RW_Byte(R, Process, MemType, MemIndex, 0, ref ReadValue);
|
||||
MEM_RWByte(R, Process, MemType, MemIndex, 0, ref ReadValue);
|
||||
|
||||
//If i have to read -> Read the Bit
|
||||
if (bWrite == R)
|
||||
@@ -757,7 +761,7 @@ namespace CMS_CORE.Fanuc
|
||||
else
|
||||
ReadValue = (byte)(ReadValue & ~(1 << MemBit));
|
||||
|
||||
RW_Byte(W, Process, MemType, MemIndex,0, ref ReadValue);
|
||||
MEM_RWByte(W, Process, MemType, MemIndex,0, ref ReadValue);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -766,15 +770,18 @@ namespace CMS_CORE.Fanuc
|
||||
// BYTE (NC) <-> BYTE (.NET)
|
||||
|
||||
//Read-Write a Byte-Value inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Byte(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemByte, ref byte Value)
|
||||
public override void MEM_RWByte(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemByte, ref byte Value)
|
||||
{
|
||||
List<byte> Values = new List<byte>() { Value };
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//uses the List method with one-element list
|
||||
RW_Byte_List(bWrite, Process, MemType, MemIndex, 0, 1, ref Values);
|
||||
MEM_RWByteList(bWrite, Process, MemType, MemIndex, 0, 1, ref Values);
|
||||
|
||||
Value = Values.First();
|
||||
|
||||
@@ -783,7 +790,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Read-Write a Byte-Value-List inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Byte_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemByteStart, int Number, ref List<byte> Value)
|
||||
public override void MEM_RWByteList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemByteStart, int Number, ref List<byte> Value)
|
||||
{
|
||||
//The maximum number of variables readed/writed at the same time is 5
|
||||
//I have to iterate it
|
||||
@@ -802,6 +809,9 @@ namespace CMS_CORE.Fanuc
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//Setup the 'Value' variable
|
||||
if (bWrite)
|
||||
Number = Value.Count();
|
||||
@@ -866,22 +876,25 @@ namespace CMS_CORE.Fanuc
|
||||
// DWORD (NC) <-> INT (.NET)
|
||||
|
||||
//Write a Int-Value inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Integer(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref int Value)
|
||||
public override void MEM_RWInteger(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref int Value)
|
||||
{
|
||||
List<int> ListValue = new List<int>() { Value };
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//uses the List method with one-element list
|
||||
RW_Integer_List(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
MEM_RWIntegerList(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
|
||||
Value = ListValue.First();
|
||||
}
|
||||
|
||||
|
||||
//Write a Int-Value-List inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Integer_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<int> Value)
|
||||
public override void MEM_RWIntegerList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<int> Value)
|
||||
{
|
||||
//The maximum number of variables readed/writed at the same time is 5
|
||||
//I have to iterate it
|
||||
@@ -900,6 +913,9 @@ namespace CMS_CORE.Fanuc
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//Setup the 'Value' variable
|
||||
if (bWrite)
|
||||
Number = Value.Count();
|
||||
@@ -964,15 +980,18 @@ namespace CMS_CORE.Fanuc
|
||||
// DWORD (NC) <-> UINT (.NET)
|
||||
|
||||
//Write a DWord-Value inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_DWord(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref uint Value)
|
||||
public override void MEM_RWDWord(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref uint Value)
|
||||
{
|
||||
List<uint> ListValue = new List<uint>() { Value };
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//uses the List method with one-element list
|
||||
RW_DWord_List(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
MEM_RWDWordList(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
|
||||
Value = ListValue.First();
|
||||
}
|
||||
@@ -980,19 +999,22 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Write a DWord-Value-List inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_DWord_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<uint> Values)
|
||||
public override void MEM_RWDWordList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<uint> Values)
|
||||
{
|
||||
List<int> WordValues = new List<int>();
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//If i have to write convert the INT list into (2x) WORD
|
||||
if (bWrite)
|
||||
WordValues = Values.Select(i => (int)i).ToList();
|
||||
|
||||
//Exetute the function
|
||||
RW_Integer_List(bWrite, Process, MemType, MemIndex, Number, ref WordValues);
|
||||
MEM_RWIntegerList(bWrite, Process, MemType, MemIndex, Number, ref WordValues);
|
||||
|
||||
//If i have to read, convert the WORD list into INT
|
||||
if (!bWrite)
|
||||
@@ -1006,15 +1028,18 @@ namespace CMS_CORE.Fanuc
|
||||
// WORD (NC) <-> SHORT (.NET)
|
||||
|
||||
//Write a Short-Value inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Short(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref short Value)
|
||||
public override void MEM_RWShort(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref short Value)
|
||||
{
|
||||
List<short> ListValue = new List<short>() { Value };
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//uses the List method with one-element list
|
||||
RW_Short_List(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
MEM_RWShortList(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
|
||||
Value = ListValue.First();
|
||||
}
|
||||
@@ -1022,7 +1047,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Write a Short-Value-List inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Short_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<short> Value)
|
||||
public override void MEM_RWShortList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<short> Value)
|
||||
{
|
||||
//The maximum number of variables readed/writed at the same time is 5
|
||||
//I have to iterate it
|
||||
@@ -1041,6 +1066,9 @@ namespace CMS_CORE.Fanuc
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//Setup the 'Value' variable
|
||||
if (bWrite)
|
||||
Number = Value.Count();
|
||||
@@ -1105,15 +1133,18 @@ namespace CMS_CORE.Fanuc
|
||||
// WORD (NC) <-> SHORT (.NET)
|
||||
|
||||
//Write a Word-Value inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Word(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref ushort Value)
|
||||
public override void MEM_RWWord(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref ushort Value)
|
||||
{
|
||||
List<ushort> ListValue = new List<ushort>() { Value };
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//uses the List method with one-element list
|
||||
RW_Word_List(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
MEM_RWWordList(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
|
||||
Value = ListValue.First();
|
||||
}
|
||||
@@ -1121,19 +1152,22 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
|
||||
//Write a Word-Value-List inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Word_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<ushort> Values)
|
||||
public override void MEM_RWWordList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<ushort> Values)
|
||||
{
|
||||
List<short> WordValues = new List<short>();
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//If i have to write convert the INT list into (2x) WORD
|
||||
if (bWrite)
|
||||
WordValues = Values.Select(i => (short)i).ToList();
|
||||
|
||||
//Exetute the function
|
||||
RW_Short_List(bWrite, Process, MemType, MemIndex, Number, ref WordValues);
|
||||
MEM_RWShortList(bWrite, Process, MemType, MemIndex, Number, ref WordValues);
|
||||
|
||||
//If i have to read, convert the WORD list into INT
|
||||
if (!bWrite)
|
||||
@@ -1147,7 +1181,7 @@ namespace CMS_CORE.Fanuc
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#region File Management
|
||||
|
||||
public override void R_NCReadPartProgramToFile(string partProgramPath, string partProgramLocalName, ref FileStream localFile)
|
||||
public override void FILES_RProgramToFile(string partProgramPath, string partProgramLocalName, ref FileStream localFile)
|
||||
{
|
||||
string partProgramContent = "";
|
||||
|
||||
@@ -1218,7 +1252,7 @@ namespace CMS_CORE.Fanuc
|
||||
partProgramContent = partProgramContent.Replace("\0", String.Empty);
|
||||
}
|
||||
|
||||
public override void W_NCWritePartProgramFromFile(string partProgramPath, FileStream localFile)
|
||||
public override void FILES_WProgramFromFile(string partProgramPath, FileStream localFile)
|
||||
{
|
||||
string partProgramContent = "";
|
||||
|
||||
@@ -1263,7 +1297,7 @@ namespace CMS_CORE.Fanuc
|
||||
ErrorHandler(NC_PROD_ERROR, nReturn);
|
||||
}
|
||||
|
||||
public override void NCCopyPartProgram(string partProgramPath, string newPartProgramPath, bool failIfExist)
|
||||
public override void FILES_CopyProgram(string partProgramPath, string newPartProgramPath, bool failIfExist)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -1298,7 +1332,7 @@ namespace CMS_CORE.Fanuc
|
||||
|
||||
if (errorDetails.err_no == 4)
|
||||
{
|
||||
NCDeletePartProgram(newPartProgramPath, "");
|
||||
FILES_DeleteProgram(newPartProgramPath, "");
|
||||
|
||||
nReturn = Focas1.cnc_pdf_copy(nLibHandle[0], partProgramPath, newPartProgramPath);
|
||||
|
||||
@@ -1313,7 +1347,7 @@ namespace CMS_CORE.Fanuc
|
||||
}
|
||||
}
|
||||
|
||||
public override void NCDeletePartProgram(string partProgramPath, string partProgramName)
|
||||
public override void FILES_DeleteProgram(string partProgramPath, string partProgramName)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -1464,7 +1498,7 @@ namespace CMS_CORE.Fanuc
|
||||
{
|
||||
|
||||
//Read Language from NC PARAM
|
||||
R_NCParam( (short) PARAM_LING_FANUC.Address, ref FanucLanguage);
|
||||
NC_RParam( (short) PARAM_LING_FANUC.Address, ref FanucLanguage);
|
||||
|
||||
//Execute the method
|
||||
nReturn = Focas1.cnc_sysinfo(nLibHandle[0], node);
|
||||
@@ -1499,7 +1533,7 @@ namespace CMS_CORE.Fanuc
|
||||
private void ThrowNCException(uint Owner, short exNum)
|
||||
{
|
||||
if (exNum == (short)Focas1.focas_ret.EW_SOCKET)
|
||||
Disconnect();
|
||||
NC_Disconnect();
|
||||
|
||||
throw new Nc_Exception(getError(Owner,exNum));
|
||||
}
|
||||
@@ -1509,9 +1543,18 @@ namespace CMS_CORE.Fanuc
|
||||
//Check if NC is connected
|
||||
private void CheckConnection()
|
||||
{
|
||||
if (!isConnected())
|
||||
if (!NC_IsConnected())
|
||||
throw new Nc_Exception(getError(NOT_CONNECTED_ERROR, 0));
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Check if Memory Area is corrected
|
||||
private void CheckMemoryArea(String AreaName)
|
||||
{
|
||||
if (!AreaName.StartsWith(FANUC_MEMTYPE) && !AreaName.StartsWith(UNDEFINED_MEMTYPE))
|
||||
throw new Nc_Exception(getError(INCORRECT_PARAMETERS_ERROR, 0));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1555,11 +1598,12 @@ namespace CMS_CORE.Fanuc
|
||||
ErrororOwner = "CMS-Core-Error: ";
|
||||
switch (CMSError)
|
||||
{
|
||||
case NOT_CONNECTED_ERROR: return ErrororOwner + "Nc not Connected";
|
||||
case PROC_NOT_FOUND_ERROR: return ErrororOwner + "Process Id not found";
|
||||
case FUNC_NOTALL_NC_ERROR: return ErrororOwner + "Function not allowed for this type of NC";
|
||||
case BIT_NOT_IN_RANGE_ERROR: return ErrororOwner + "Bit-number must be between 0 and 7";
|
||||
case INTERNAL_ERROR: return ErrororOwner + "Internal function error";
|
||||
case NOT_CONNECTED_ERROR: return ErrororOwner + "Nc not Connected";
|
||||
case PROC_NOT_FOUND_ERROR: return ErrororOwner + "Process Id not found";
|
||||
case FUNC_NOTALL_NC_ERROR: return ErrororOwner + "Function not allowed for this type of NC";
|
||||
case BIT_NOT_IN_RANGE_ERROR: return ErrororOwner + "Bit-number must be between 0 and 7";
|
||||
case INTERNAL_ERROR: return ErrororOwner + "Internal function error";
|
||||
case INCORRECT_PARAMETERS_ERROR: return ErrororOwner + "Incorrect Parameters error";
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1603,6 +1647,7 @@ namespace CMS_CORE.Fanuc
|
||||
}
|
||||
return ErrororOwner + "Generic Error On Function";
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
+669
-441
File diff suppressed because it is too large
Load Diff
@@ -32,7 +32,6 @@ namespace CMS_CORE.Osai
|
||||
private DateTime Last_Static_Read;
|
||||
private String OsaiLanguages;
|
||||
private ushort timeOutConn;
|
||||
private Boolean UseProxy;
|
||||
private EndpointAddress endPointAddress;
|
||||
private BasicHttpBinding HttpBinding;
|
||||
|
||||
@@ -70,7 +69,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Connect Method
|
||||
public override void Connect()
|
||||
public override void NC_Connect()
|
||||
{
|
||||
|
||||
uint errorClass, errorNum;
|
||||
@@ -112,7 +111,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Disconnect Method
|
||||
public override void Disconnect()
|
||||
public override void NC_Disconnect()
|
||||
{
|
||||
//Set Connected to FALSE and close the session
|
||||
OpenNC.Close();
|
||||
@@ -127,7 +126,7 @@ namespace CMS_CORE.Osai
|
||||
#region High-level Methods
|
||||
|
||||
//Get the NC Language
|
||||
public override void R_NCLanguage(ref CultureInfo Language)
|
||||
public override void NC_RLanguage(ref CultureInfo Language)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -138,7 +137,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get the NC Serial Number
|
||||
public override void R_NCSerialNumber(ref string SN)
|
||||
public override void NC_RSerialNumber(ref string SN)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -151,7 +150,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get the NC Software Version
|
||||
public override void R_NCSoftwareVersion(ref string SWV)
|
||||
public override void NC_RSoftwareVersion(ref string SWV)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -164,7 +163,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get the NC model Name
|
||||
public override void R_NCModelName(ref string ModelName)
|
||||
public override void NC_RModelName(ref string ModelName)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -176,7 +175,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get the NC Time
|
||||
public override void R_NCDateTime(ref DateTime ActualTime)
|
||||
public override void NC_RDateTime(ref DateTime ActualTime)
|
||||
{
|
||||
uint errorClass, errorNum;
|
||||
ushort nReturn;
|
||||
@@ -210,7 +209,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get the Machine Number
|
||||
public override void R_NCMachineNumber(ref string MachNumber)
|
||||
public override void NC_RMachineNumber(ref string MachNumber)
|
||||
{
|
||||
ushort mac = 0;
|
||||
|
||||
@@ -218,7 +217,7 @@ namespace CMS_CORE.Osai
|
||||
CheckConnection();
|
||||
|
||||
//Exetute the function
|
||||
RW_Word(R, UNDEF_PROC, MATR_MACCH_OSAI.MemType, MATR_MACCH_OSAI.Address, ref mac);
|
||||
MEM_RWWord(R, UNDEF_PROC, MATR_MACCH_OSAI.MemType, MATR_MACCH_OSAI.Address, ref mac);
|
||||
|
||||
MachNumber = mac.ToString();
|
||||
}
|
||||
@@ -226,7 +225,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get the PLC Active Alarms
|
||||
public override void R_PLCActiveAlarms(ref List<String> Alarms)
|
||||
public override void PLC_RActiveAlarms(ref List<String> Alarms)
|
||||
{
|
||||
List<ushort> lista = new List<ushort>();
|
||||
BitArray Bits;
|
||||
@@ -237,7 +236,7 @@ namespace CMS_CORE.Osai
|
||||
CheckConnection();
|
||||
|
||||
//Execute the method
|
||||
RW_Word_List(R, 0, MEMORY_Type.Osai_MW, 12000, 47, ref lista);
|
||||
MEM_RWWordList(R, 0, MEMORY_Type.Osai_MW, 12000, 47, ref lista);
|
||||
|
||||
//Elaborates the Messages
|
||||
for (int i=0; i<lista.Count;i++)
|
||||
@@ -261,7 +260,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get the processes-count configurated
|
||||
public override void R_NCProcessesNum(ref ushort ProcNumber)
|
||||
public override void NC_RProcessesNum(ref ushort ProcNumber)
|
||||
{
|
||||
uint errorClass, errorNum;
|
||||
ushort num = 0, nReturn,i;
|
||||
@@ -307,7 +306,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get the process status
|
||||
public override void R_PROCStatus(ushort Number, ref PROC_Status Status)
|
||||
public override void PROC_RStatus(ushort Number, ref PROC_Status Status)
|
||||
{
|
||||
uint errorClass, errorNum;
|
||||
ushort nReturn;
|
||||
@@ -337,7 +336,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get the process mode
|
||||
public override void R_PROCMode(ushort Number, ref PROC_Mode Mode)
|
||||
public override void PROC_RMode(ushort Number, ref PROC_Mode Mode)
|
||||
{
|
||||
uint errorClass, errorNum;
|
||||
ushort nReturn;
|
||||
@@ -367,7 +366,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get the process Messages
|
||||
public override void R_PROCActiveAlarms(ushort Number, ref List<String> Alarms)
|
||||
public override void PROC_RActiveAlarms(ushort Number, ref List<String> Alarms)
|
||||
{
|
||||
String ActMSG = "";
|
||||
uint errorClass, errorNum;
|
||||
@@ -419,7 +418,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get a dictionary with the Actual position of the axes in Process
|
||||
public override void R_PROCAxis_InterpPosition(ushort Process, ref Dictionary<String, double> Axes)
|
||||
public override void AXES_RInterpPosition(ushort Process, ref Dictionary<String, double> Axes)
|
||||
{
|
||||
uint errorClass, errorNum;
|
||||
ushort nReturn;
|
||||
@@ -471,7 +470,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get a dictionary with the Programmed position of the axes in Process
|
||||
public override void R_PROCAxis_ProgrPosition(ushort Process, ref Dictionary<String, double> Axes)
|
||||
public override void AXES_RProgrPosition(ushort Process, ref Dictionary<String, double> Axes)
|
||||
{
|
||||
uint errorClass, errorNum;
|
||||
ushort nReturn;
|
||||
@@ -522,7 +521,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get a dictionary with the Machine position of the axes in Process
|
||||
public override void R_PROCAxis_MachinePosition(ushort Process, ref Dictionary<String, double> Axes)
|
||||
public override void AXES_RMachinePosition(ushort Process, ref Dictionary<String, double> Axes)
|
||||
{
|
||||
uint errorClass, errorNum;
|
||||
ushort nReturn;
|
||||
@@ -573,7 +572,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get a dictionary with the Following Error of the axes in Process
|
||||
public override void R_PROCAxis_FollError(ushort Process, ref Dictionary<String, double> Axes)
|
||||
public override void AXES_RFollowingError(ushort Process, ref Dictionary<String, double> Axes)
|
||||
{
|
||||
uint errorClass, errorNum;
|
||||
ushort nReturn;
|
||||
@@ -624,7 +623,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Get a dictionary with the Distance To Go of the axes in Process
|
||||
public override void R_PROCAxis_DistToGo(ushort Process, ref Dictionary<String, double> Axes)
|
||||
public override void AXES_RDistanceToGo(ushort Process, ref Dictionary<String, double> Axes)
|
||||
{
|
||||
uint errorClass, errorNum;
|
||||
ushort nReturn;
|
||||
@@ -683,7 +682,7 @@ namespace CMS_CORE.Osai
|
||||
// BOOLEAN (NC) <-> BOOLEAN (.NET) ToDo
|
||||
|
||||
//Read-Write a Boolean-Value inside the NC.
|
||||
public override void RW_Boolean(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemBit, ref bool Value)
|
||||
public override void MEM_RWBoolean(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemBit, ref bool Value)
|
||||
{
|
||||
ushort WordValue = 0;
|
||||
byte pow = (byte)Math.Pow(2, MemBit);
|
||||
@@ -691,11 +690,14 @@ namespace CMS_CORE.Osai
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//Check if the Bit Number is Correct
|
||||
CheckBitRange(MemBit);
|
||||
|
||||
//Read the Byte where is the bit
|
||||
RW_Word(R, Process, MemType, MemIndex, ref WordValue);
|
||||
MEM_RWWord(R, Process, MemType, MemIndex, ref WordValue);
|
||||
|
||||
//If i have to read -> Read the Bit
|
||||
if (bWrite == R)
|
||||
@@ -710,7 +712,7 @@ namespace CMS_CORE.Osai
|
||||
else
|
||||
WordValue = (byte)(WordValue & ~(1 << MemBit));
|
||||
|
||||
RW_Word(W, Process, MemType, MemIndex, ref WordValue);
|
||||
MEM_RWWord(W, Process, MemType, MemIndex, ref WordValue);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -720,19 +722,22 @@ namespace CMS_CORE.Osai
|
||||
// BYTE (NC) <-> BYTE (.NET) ToDo
|
||||
|
||||
//Read-Write a Byte-Value inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Byte(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemByte, ref byte Value)
|
||||
public override void MEM_RWByte(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemByte, ref byte Value)
|
||||
{
|
||||
ushort WordValue = 0;
|
||||
ushort WordToWrite = 0;
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//Check if the Bit Number is Correct
|
||||
CheckByteRange(MemByte);
|
||||
|
||||
//Read the Byte where is the bit
|
||||
RW_Word(R, Process, MemType, MemIndex, ref WordValue);
|
||||
MEM_RWWord(R, Process, MemType, MemIndex, ref WordValue);
|
||||
|
||||
//If i have to read -> Read the Bit
|
||||
if (bWrite == R)
|
||||
@@ -759,14 +764,14 @@ namespace CMS_CORE.Osai
|
||||
WordToWrite = (ushort)(WordToWrite | WordValue);
|
||||
|
||||
//Write to the NC
|
||||
RW_Word(W, Process, MemType, MemIndex, ref WordToWrite);
|
||||
MEM_RWWord(W, Process, MemType, MemIndex, ref WordToWrite);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Read-Write a Byte-Value-List inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Byte_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemByteStart, int Number, ref List<byte> Values)
|
||||
public override void MEM_RWByteList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int MemByteStart, int Number, ref List<byte> Values)
|
||||
{
|
||||
int index = 0;
|
||||
byte TempVal = 0;
|
||||
@@ -776,6 +781,9 @@ namespace CMS_CORE.Osai
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//Check if the Bit Number is Correct
|
||||
CheckByteRange(MemByteStart);
|
||||
|
||||
@@ -791,7 +799,7 @@ namespace CMS_CORE.Osai
|
||||
for (int i = 0; i < Values.Count; i++)
|
||||
{
|
||||
TempVal = Values[i];
|
||||
RW_Byte(W, Process, MemType, MemIndexTemp, index, ref TempVal);
|
||||
MEM_RWByte(W, Process, MemType, MemIndexTemp, index, ref TempVal);
|
||||
if (index == 1)
|
||||
{
|
||||
index = 0;
|
||||
@@ -808,7 +816,7 @@ namespace CMS_CORE.Osai
|
||||
Values.Clear();
|
||||
for (int i = 0; i < Number; i++)
|
||||
{
|
||||
RW_Byte(W, Process, MemType, MemIndexTemp, index, ref TempVal);
|
||||
MEM_RWByte(W, Process, MemType, MemIndexTemp, index, ref TempVal);
|
||||
Values.Add(TempVal);
|
||||
if (index == 1)
|
||||
{
|
||||
@@ -828,22 +836,25 @@ namespace CMS_CORE.Osai
|
||||
// WORD (NC) <-> USHORT (.NET)
|
||||
|
||||
//Write a Word-Value inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Word(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref ushort Value)
|
||||
public override void MEM_RWWord(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref ushort Value)
|
||||
{
|
||||
List<ushort> ListValue = new List<ushort>() { Value };
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//uses the List method with one-element list
|
||||
RW_Word_List(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
MEM_RWWordList(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
|
||||
Value = ListValue.First();
|
||||
}
|
||||
|
||||
|
||||
//Write a Word-Value-List inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Word_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<ushort> Values)
|
||||
public override void MEM_RWWordList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<ushort> Values)
|
||||
{
|
||||
uint errorClass, errorNum;
|
||||
ushort nReturn;
|
||||
@@ -852,6 +863,9 @@ namespace CMS_CORE.Osai
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//Try to get information
|
||||
try
|
||||
{
|
||||
@@ -895,24 +909,27 @@ namespace CMS_CORE.Osai
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
// WORD (NC) <-> SHORT (.NET)
|
||||
|
||||
public override void RW_Short(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref short Value)
|
||||
public override void MEM_RWShort(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref short Value)
|
||||
{
|
||||
List<short> ListValue = new List<short>() { Value };
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//uses the List method with one-element list
|
||||
RW_Short_List(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
MEM_RWShortList(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
|
||||
Value = ListValue.First();
|
||||
}
|
||||
|
||||
|
||||
public override void RW_Short_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<short> Value)
|
||||
public override void MEM_RWShortList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<short> Value)
|
||||
{
|
||||
List<ushort> ShortValue = Value.ConvertAll(x => (ushort) x);
|
||||
RW_Word_List(bWrite, Process, MemType, MemIndex, 1, ref ShortValue);
|
||||
MEM_RWWordList(bWrite, Process, MemType, MemIndex, 1, ref ShortValue);
|
||||
}
|
||||
|
||||
|
||||
@@ -922,34 +939,40 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Write a Word-Value inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_DWord(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref uint Value)
|
||||
public override void MEM_RWDWord(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref uint Value)
|
||||
{
|
||||
List<uint> ListValue = new List<uint>() { Value };
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//uses the List method with one-element list
|
||||
RW_DWord_List(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
MEM_RWDWordList(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
|
||||
Value = ListValue.First();
|
||||
}
|
||||
|
||||
|
||||
//Write a Word-Value-List inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_DWord_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<uint> Values)
|
||||
public override void MEM_RWDWordList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<uint> Values)
|
||||
{
|
||||
List<ushort> WordValues = new List<ushort>();
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//If i have to write convert the UINT list into (2x) WORD
|
||||
if (bWrite)
|
||||
WordValues = Nc_Utils.UIntTOWordList(Values);
|
||||
|
||||
//Exetute the function
|
||||
RW_Word_List(bWrite, Process, MemType, MemIndex, (Number * 2), ref WordValues);
|
||||
MEM_RWWordList(bWrite, Process, MemType, MemIndex, (Number * 2), ref WordValues);
|
||||
|
||||
//If i have to read convert the (2x) WORD list into UINT
|
||||
if (!bWrite)
|
||||
@@ -963,7 +986,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
|
||||
//Write a Int-Value inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Integer(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref int Value)
|
||||
public override void MEM_RWInteger(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, ref int Value)
|
||||
{
|
||||
|
||||
List<int> ListValue = new List<int>() { Value };
|
||||
@@ -971,27 +994,33 @@ namespace CMS_CORE.Osai
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//uses the List method with one-element list
|
||||
RW_Integer_List(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
MEM_RWIntegerList(bWrite, Process, MemType, MemIndex, 1, ref ListValue);
|
||||
|
||||
Value = ListValue.First();
|
||||
}
|
||||
|
||||
|
||||
//Write a Int-Value-List inside the NC. In writing-mode the field "Number" is not required
|
||||
public override void RW_Integer_List(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<int> Values)
|
||||
public override void MEM_RWIntegerList(bool bWrite, int Process, MEMORY_Type MemType, int MemIndex, int Number, ref List<int> Values)
|
||||
{
|
||||
List<ushort> WordValues = new List<ushort>();
|
||||
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
|
||||
//Check if the Memory area is corrected
|
||||
CheckMemoryArea(MemType.ToString());
|
||||
|
||||
//If i have to write convert the INT list into (2x) WORD
|
||||
if (bWrite)
|
||||
WordValues = Nc_Utils.IntTOWordList(Values);
|
||||
|
||||
//Exetute the function
|
||||
RW_Word_List(bWrite, Process, MemType, MemIndex, (Number * 2), ref WordValues);
|
||||
MEM_RWWordList(bWrite, Process, MemType, MemIndex, (Number * 2), ref WordValues);
|
||||
|
||||
//If i have to read convert the (2x) WORD list into INT
|
||||
if (!bWrite)
|
||||
@@ -1004,27 +1033,27 @@ namespace CMS_CORE.Osai
|
||||
// PARAMS
|
||||
|
||||
|
||||
public override void R_NCParam(short Index, short Bit, ref bool Value)
|
||||
public override void NC_RParam(short Index, short Bit, ref bool Value)
|
||||
{
|
||||
throw new Nc_Exception(getError(FUNC_NOTALL_NC_ERROR, 0, 0));
|
||||
}
|
||||
|
||||
public override void R_NCParam(short Index, ref byte Value)
|
||||
public override void NC_RParam(short Index, ref byte Value)
|
||||
{
|
||||
throw new Nc_Exception(getError(FUNC_NOTALL_NC_ERROR, 0, 0));
|
||||
}
|
||||
|
||||
public override void R_NCParam(short Index, ref short Value)
|
||||
public override void NC_RParam(short Index, ref short Value)
|
||||
{
|
||||
throw new Nc_Exception(getError(FUNC_NOTALL_NC_ERROR, 0, 0));
|
||||
}
|
||||
|
||||
public override void R_NCParam(short Index, ref int Value)
|
||||
public override void NC_RParam(short Index, ref int Value)
|
||||
{
|
||||
throw new Nc_Exception(getError(FUNC_NOTALL_NC_ERROR, 0, 0));
|
||||
}
|
||||
|
||||
public override void R_NCParam(short Index, ref double Value)
|
||||
public override void NC_RParam(short Index, ref double Value)
|
||||
{
|
||||
throw new Nc_Exception(getError(FUNC_NOTALL_NC_ERROR, 0, 0));
|
||||
}
|
||||
@@ -1036,7 +1065,7 @@ namespace CMS_CORE.Osai
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#region File Management
|
||||
|
||||
public override void R_NCReadPartProgramToFile(string partProgramPath, string partProgramLocalName, ref FileStream localFile)
|
||||
public override void FILES_RProgramToFile(string partProgramPath, string partProgramLocalName, ref FileStream localFile)
|
||||
{
|
||||
string partProgramContent = "";
|
||||
// Read NC part program content
|
||||
@@ -1079,7 +1108,7 @@ namespace CMS_CORE.Osai
|
||||
}
|
||||
}
|
||||
|
||||
public override void W_NCWritePartProgramFromFile(string partProgramPath, FileStream localFile)
|
||||
public override void FILES_WProgramFromFile(string partProgramPath, FileStream localFile)
|
||||
{
|
||||
string partProgramContent = "";
|
||||
|
||||
@@ -1119,7 +1148,7 @@ namespace CMS_CORE.Osai
|
||||
}
|
||||
}
|
||||
|
||||
public override void NCCopyPartProgram(string partProgramPath, string newPartProgramPath, bool failIfExist)
|
||||
public override void FILES_CopyProgram(string partProgramPath, string newPartProgramPath, bool failIfExist)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -1147,7 +1176,7 @@ namespace CMS_CORE.Osai
|
||||
}
|
||||
}
|
||||
|
||||
public override void NCDeletePartProgram(string partProgramPath, string partProgramName)
|
||||
public override void FILES_DeleteProgram(string partProgramPath, string partProgramName)
|
||||
{
|
||||
//Check if the NC is Connected
|
||||
CheckConnection();
|
||||
@@ -1176,6 +1205,7 @@ namespace CMS_CORE.Osai
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#region Subordinate Private Functions
|
||||
|
||||
|
||||
//Setup the connection Binding
|
||||
private void setupConnection()
|
||||
{
|
||||
@@ -1203,11 +1233,21 @@ namespace CMS_CORE.Osai
|
||||
//Check if NC is connected
|
||||
private void CheckConnection()
|
||||
{
|
||||
if (!isConnected())
|
||||
if (!NC_IsConnected())
|
||||
throw new Nc_Exception(getError(NOT_CONNECTED_ERROR,0 , 0));
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Check if Memory Area is corrected
|
||||
private void CheckMemoryArea(String AreaName)
|
||||
{
|
||||
if (!AreaName.StartsWith(OSAI_MEMTYPE) && !AreaName.StartsWith(UNDEFINED_MEMTYPE))
|
||||
throw new Nc_Exception(getError(INCORRECT_PARAMETERS_ERROR, 0, 0));
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Read Static Data
|
||||
private void readStaticNCData()
|
||||
{
|
||||
@@ -1272,7 +1312,7 @@ namespace CMS_CORE.Osai
|
||||
try
|
||||
{
|
||||
//Read From Files
|
||||
ConfigLines = File.ReadAllLines(NC_OSAI_WINBI_PATH + ConfigFile );
|
||||
ConfigLines = File.ReadAllLines(OSAI_WinNbiPath + ConfigFile );
|
||||
|
||||
//Find the first line that contains "ID_LANGUAGE" String
|
||||
LangLine = ConfigLines.FirstOrDefault(X => X.ToUpper().Contains("ID_LANGUAGE"));
|
||||
@@ -1280,10 +1320,7 @@ namespace CMS_CORE.Osai
|
||||
//Check if i found it
|
||||
if (String.IsNullOrEmpty(LangLine))
|
||||
throw new Nc_Exception("'ID_LANGUAGE' Line in Osai Config File not Found");
|
||||
|
||||
//Check if i found it
|
||||
if (String.IsNullOrEmpty(LangLine))
|
||||
throw new Nc_Exception("'ID_LANGUAGE' Line in Osai Config File not Found");
|
||||
|
||||
|
||||
//Split the string
|
||||
SPlitted = LangLine.Split('=');
|
||||
@@ -1296,7 +1333,7 @@ namespace CMS_CORE.Osai
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
new Nc_Exception("Error in reading OSAI Configuration File:\n" + ex.Message);
|
||||
throw new Nc_Exception("Error in reading OSAI Configuration File:\n" + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1310,7 +1347,7 @@ namespace CMS_CORE.Osai
|
||||
try
|
||||
{
|
||||
//Setup the Path
|
||||
Path = NC_OSAI_PLC_MESSAGES + @"Messaggi_" + OsaiLanguages + @".txt";
|
||||
Path = OSAI_PlcMessagesPath + @"Messaggi_" + OsaiLanguages + @".txt";
|
||||
|
||||
//Read From Files
|
||||
PlcMessages = File.ReadAllLines(Path);
|
||||
@@ -1325,7 +1362,7 @@ namespace CMS_CORE.Osai
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
new Nc_Exception("Error in reading OSAI PLC Messages:\n" + ex.Message);
|
||||
throw new Nc_Exception("Error in reading OSAI PLC Messages:\n" + ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1415,6 +1452,8 @@ namespace CMS_CORE.Osai
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Convert the internal error in a readable-String error
|
||||
private String getError(uint CMSError, uint Class, uint Num)
|
||||
{
|
||||
@@ -1431,6 +1470,7 @@ namespace CMS_CORE.Osai
|
||||
case BIT_NOT_IN_RANGE_ERROR: return ErrororOwner + "Bit-number must be between 0 and 7";
|
||||
case BYTE_NOT_IN_RANGE_ERROR: return ErrororOwner + "Byte-number must be between 0 and 1";
|
||||
case INTERNAL_ERROR: return ErrororOwner + "Internal function error";
|
||||
case INCORRECT_PARAMETERS_ERROR:return ErrororOwner + "Incorrect Parameters error";
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1610,7 +1650,7 @@ namespace CMS_CORE.Osai
|
||||
}
|
||||
return ErrororOwner + "Generic Error On Function";
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -14,141 +14,286 @@
|
||||
<param name="ConnectionTimeOut">Send/Recieve timeout connection</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.isConnected">
|
||||
<member name="M:CMS_CORE.Nc.LIB_GetIpAddress">
|
||||
<summary>
|
||||
Read Nc Status
|
||||
Get the NC IP-Address
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
|
||||
</member>
|
||||
<!-- Commento XML in formato non corretto ignorato per il membro 'M:CMS_CORE.Nc.getIpAddress' -->
|
||||
<member name="M:CMS_CORE.Nc.getPort">
|
||||
<summary>
|
||||
Read Nc Port
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
</summary>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.Connect">
|
||||
<member name="M:CMS_CORE.Nc.LIB_SetIpAddress(System.String)">
|
||||
<summary>
|
||||
Set the NC IP-Address
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
</summary>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.LIB_GetPort">
|
||||
<summary>
|
||||
Get Nc Port
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
</summary>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.LIB_SetPort(System.UInt16)">
|
||||
<summary>
|
||||
Set Nc Port
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
</summary>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.LIB_GetWindowsProxy">
|
||||
<summary>
|
||||
Get if the library uses Windows proxy
|
||||
<para>
|
||||
Compatibility: Osai
|
||||
</para>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
</summary>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.LIB_SetWindowsProxy(System.Boolean)">
|
||||
<summary>
|
||||
Set if the library need to use Windows proxy
|
||||
<para>
|
||||
Compatibility: Osai
|
||||
</para>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
</summary>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.LIB_GetPlcMsgsPath">
|
||||
<summary>
|
||||
Get the path of PLC Messages Folder
|
||||
<para>
|
||||
Compatibility: Osai
|
||||
</para>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
</summary>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.LIB_SetPlcMsgsPath(System.String)">
|
||||
<summary>
|
||||
Set the path of PLC Messages Folder
|
||||
<para>
|
||||
Compatibility: Osai
|
||||
</para>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
</summary>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.LIB_GetWinNbiPath">
|
||||
<summary>
|
||||
Get the path of Win-Nbi installation
|
||||
<para>
|
||||
Compatibility: Osai
|
||||
</para>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
</summary>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.LIB_SetWinNbiPath(System.String)">
|
||||
<summary>
|
||||
Set the path of Win-Nbi installation
|
||||
<para>
|
||||
Compatibility: Osai
|
||||
</para>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
</summary>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.NC_Connect">
|
||||
<summary>
|
||||
Connect the NC
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
</summary>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.Disconnect">
|
||||
<member name="M:CMS_CORE.Nc.NC_Disconnect">
|
||||
<summary>
|
||||
Disconnect the NC
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
</summary>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCDateTime(System.DateTime@)">
|
||||
<member name="M:CMS_CORE.Nc.NC_IsConnected">
|
||||
<summary>
|
||||
Read Nc Status
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.NC_RDateTime(System.DateTime@)">
|
||||
<summary>
|
||||
Read actual time of the NC-Software (sometimes it can be different from NC-Operative-System)
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="ActualTime">Reference of a DateTime Variable where data will be saved</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCSerialNumber(System.String@)">
|
||||
<member name="M:CMS_CORE.Nc.NC_RSerialNumber(System.String@)">
|
||||
<summary>
|
||||
Read CMS Serial number of the NC
|
||||
Read Vendor NC Serial number
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="SN">Reference of a String Variable where data will be saved</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCModelName(System.String@)">
|
||||
<member name="M:CMS_CORE.Nc.NC_RModelName(System.String@)">
|
||||
<summary>
|
||||
Read Model name of the NC
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="ModelName">Reference of a String Variable where data will be saved</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCSoftwareVersion(System.String@)">
|
||||
<member name="M:CMS_CORE.Nc.NC_RSoftwareVersion(System.String@)">
|
||||
<summary>
|
||||
Read Software Version of the Nc
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="SWV">Reference of a String Variable where data will be saved</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCMachineNumber(System.String@)">
|
||||
<member name="M:CMS_CORE.Nc.NC_RMachineNumber(System.String@)">
|
||||
<summary>
|
||||
Read CMS Serial number of the Machine
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="MachNumber">Reference of a String Variable where data will be saved</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCProcessesNum(System.UInt16@)">
|
||||
<member name="M:CMS_CORE.Nc.NC_RProcessesNum(System.UInt16@)">
|
||||
<summary>
|
||||
Read number of configured Processes/Paths
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="ProcNumber">Reference of a ushort Variable where data will be saved</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCLanguage(System.Globalization.CultureInfo@)">
|
||||
<member name="M:CMS_CORE.Nc.NC_RLanguage(System.Globalization.CultureInfo@)">
|
||||
<summary>
|
||||
Read the configured language of the NC
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="Language">Reference of a CultureInfo Variable where data will be saved</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_PLCActiveAlarms(System.Collections.Generic.List{System.String}@)">
|
||||
<member name="M:CMS_CORE.Nc.NC_RParam(System.Int16,System.Int16,System.Boolean@)">
|
||||
<summary>Read Boolean Parameter Machine (Not compatible for Axis Parameter (Multiple values in a parameter)
|
||||
<para>
|
||||
Compatibility: Fanuc
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="Index">Index of the parameter</param>
|
||||
<param name="Bit">Set the Bit to Read. (0..7)</param>
|
||||
<param name="Value">Reference of a variable with Param values</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.NC_RParam(System.Int16,System.Byte@)">
|
||||
<summary>Read Byte Parameter Machine (Not compatible for Axis Parameter (Multiple values in a parameter)
|
||||
<para>
|
||||
Compatibility: Fanuc
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="Index">Index of the parameter</param>
|
||||
<param name="Value">Reference of a variable with Param values</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.NC_RParam(System.Int16,System.Int16@)">
|
||||
<summary>Read 2 Byte (Short) Parameter Machine (Not compatible for Axis Parameter (Multiple values in a parameter)
|
||||
<para>
|
||||
Compatibility: Fanuc
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="Index">Index of the parameter</param>
|
||||
<param name="Value">Reference of a variable with Param values</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.NC_RParam(System.Int16,System.Int32@)">
|
||||
<summary>Read 4 Byte (Integer) Parameter Machine (Not compatible for Axis Parameter (Multiple values in a parameter)
|
||||
<para>
|
||||
Compatibility: Fanuc
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="Index">Index of the parameter</param>
|
||||
<param name="Value">Reference of a variable with Param values</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.NC_RParam(System.Int16,System.Double@)">
|
||||
<summary>Read Real Parameter Machine (Not compatible for Axis Parameter (Multiple values in a parameter)
|
||||
<para>
|
||||
Compatibility: Fanuc
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="Index">Index of the parameter</param>
|
||||
<param name="Value">Reference of a variable with Param values</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.PLC_RActiveAlarms(System.Collections.Generic.List{System.String}@)">
|
||||
<summary>
|
||||
Read PMC active Alarms
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="Alarms">Reference of a List of String Variables where data will be saved</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_PROCStatus(System.UInt16,CMS_CORE.Nc.PROC_Status@)">
|
||||
<member name="M:CMS_CORE.Nc.PROC_RStatus(System.UInt16,CMS_CORE.Nc.PROC_Status@)">
|
||||
<summary>
|
||||
Read the actual status of the Process "ProcNumber"
|
||||
<para>See <see cref="T:CMS_CORE.Nc.PROC_Status"/> for information about the PROC_Status type</para>
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -156,12 +301,12 @@
|
||||
<param name="Status">Reference of a PROC_Status Variable where data will be saved</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_PROCMode(System.UInt16,CMS_CORE.Nc.PROC_Mode@)">
|
||||
<member name="M:CMS_CORE.Nc.PROC_RMode(System.UInt16,CMS_CORE.Nc.PROC_Mode@)">
|
||||
<summary>
|
||||
Read the selected Mode Process "ProcNumber"
|
||||
<para>See <see cref="T:CMS_CORE.Nc.PROC_Mode"/> for information about the PROC_Status type</para>
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -169,11 +314,11 @@
|
||||
<param name="Mode">Reference of a PROC_Mode Variable where data will be saved</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_PROCActiveAlarms(System.UInt16,System.Collections.Generic.List{System.String}@)">
|
||||
<member name="M:CMS_CORE.Nc.PROC_RActiveAlarms(System.UInt16,System.Collections.Generic.List{System.String}@)">
|
||||
<summary>
|
||||
Read active alarms of the process "ProcNumber". For OSAI Nc the list can contain only one Message
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -181,11 +326,11 @@
|
||||
<param name="Alarms">Reference of a List of String Variables where data will be saved</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_PROCAxis_InterpPosition(System.UInt16,System.Collections.Generic.Dictionary{System.String,System.Double}@)">
|
||||
<member name="M:CMS_CORE.Nc.AXES_RInterpPosition(System.UInt16,System.Collections.Generic.Dictionary{System.String,System.Double}@)">
|
||||
<summary>
|
||||
Read the Interpolated position of all axes in Process "ProcNumber"
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -193,12 +338,12 @@
|
||||
<param name="Axes">Reference of Dictionary "Key,Value" with: Key: Axis Name, Value: Position</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_PROCAxis_ProgrPosition(System.UInt16,System.Collections.Generic.Dictionary{System.String,System.Double}@)">
|
||||
<member name="M:CMS_CORE.Nc.AXES_RProgrPosition(System.UInt16,System.Collections.Generic.Dictionary{System.String,System.Double}@)">
|
||||
<summary>
|
||||
Read the Programmed position of all axes in Process "ProcNumber".
|
||||
For Fanuc-Nc there's not "Programmed position" variables. Si it is calculated from Machine-Pos and Distance-to-go
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -206,11 +351,11 @@
|
||||
<param name="Axes">Reference of Dictionary "Key,Value" with: Key: Axis Name, Value: Position</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_PROCAxis_MachinePosition(System.UInt16,System.Collections.Generic.Dictionary{System.String,System.Double}@)">
|
||||
<member name="M:CMS_CORE.Nc.AXES_RMachinePosition(System.UInt16,System.Collections.Generic.Dictionary{System.String,System.Double}@)">
|
||||
<summary>
|
||||
Read the Machine position of all axes in Process "ProcNumber"
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -218,11 +363,11 @@
|
||||
<param name="Axes">Reference of Dictionary "Key,Value" with: Key: Axis Name, Value: Position</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_PROCAxis_FollError(System.UInt16,System.Collections.Generic.Dictionary{System.String,System.Double}@)">
|
||||
<member name="M:CMS_CORE.Nc.AXES_RFollowingError(System.UInt16,System.Collections.Generic.Dictionary{System.String,System.Double}@)">
|
||||
<summary>
|
||||
Read the Following-Error of all axes in Process "ProcNumber"
|
||||
<para>
|
||||
Compatibility: Osai
|
||||
Compatibility: Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -230,11 +375,11 @@
|
||||
<param name="Axes">Reference of Dictionary "Key,Value" with: Key: Axis Name, Value: Position</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_PROCAxis_DistToGo(System.UInt16,System.Collections.Generic.Dictionary{System.String,System.Double}@)">
|
||||
<member name="M:CMS_CORE.Nc.AXES_RDistanceToGo(System.UInt16,System.Collections.Generic.Dictionary{System.String,System.Double}@)">
|
||||
<summary>
|
||||
Read the Distance-to-go of all axes in Process "ProcNumber"
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -242,10 +387,10 @@
|
||||
<param name="Axes">Reference of Dictionary "Key,Value" with: Key: Axis Name, Value: Position</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.RW_Boolean(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Boolean@)">
|
||||
<member name="M:CMS_CORE.Nc.MEM_RWBoolean(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Boolean@)">
|
||||
<summary>Read/Write Boolean variable from/into NC Memory Area
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -257,10 +402,10 @@
|
||||
<param name="Value">Reference to variable to read/Write</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.RW_Byte(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Byte@)">
|
||||
<member name="M:CMS_CORE.Nc.MEM_RWByte(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Byte@)">
|
||||
<summary>Read/Write Byte variable from/into NC Memory Area
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -272,10 +417,10 @@
|
||||
<param name="Value">Reference to variable to read/Write</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.RW_Word(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.UInt16@)">
|
||||
<member name="M:CMS_CORE.Nc.MEM_RWWord(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.UInt16@)">
|
||||
<summary>Read/Write unsigned 2 Byte (NC: Word:, .NET: ushort) variable from/into NC Memory Area
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -287,10 +432,10 @@
|
||||
<param name="Value">List of values to read/Write</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.RW_Short(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int16@)">
|
||||
<member name="M:CMS_CORE.Nc.MEM_RWShort(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int16@)">
|
||||
<summary>Read/Write signed 2 Byte (NC: Word:, .NET: short) variable from/into NC Memory Area
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -302,10 +447,10 @@
|
||||
<param name="Value">List of values to read/Write</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.RW_DWord(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.UInt32@)">
|
||||
<member name="M:CMS_CORE.Nc.MEM_RWDWord(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.UInt32@)">
|
||||
<summary>Read/Write signed 4 Byte (NC: DWord:, .NET: uint) variable from/into NC Memory Area
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>uW
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -317,10 +462,10 @@
|
||||
<param name="Value">List of values to read/Write</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.RW_Integer(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32@)">
|
||||
<member name="M:CMS_CORE.Nc.MEM_RWInteger(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32@)">
|
||||
<summary>Read/Write signed 4 Byte (NC: DWord:, .NET: int) variable from/into NC Memory Area
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -332,10 +477,10 @@
|
||||
<param name="Value">List of values to read/Write</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.RW_Byte_List(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Int32,System.Collections.Generic.List{System.Byte}@)">
|
||||
<member name="M:CMS_CORE.Nc.MEM_RWByteList(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Int32,System.Collections.Generic.List{System.Byte}@)">
|
||||
<summary>Read/Write List of Byte from/into NC Memory Area
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -348,10 +493,10 @@
|
||||
<param name="Value">List of values to read/Write</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.RW_Word_List(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Collections.Generic.List{System.UInt16}@)">
|
||||
<member name="M:CMS_CORE.Nc.MEM_RWWordList(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Collections.Generic.List{System.UInt16}@)">
|
||||
<summary>Read/Write List of unsigned 2 Byte (NC: Word:, .NET: ushort) from/into NC Memory Area
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -363,10 +508,10 @@
|
||||
<param name="Value">List of values to read/Write</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.RW_Short_List(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Collections.Generic.List{System.Int16}@)">
|
||||
<member name="M:CMS_CORE.Nc.MEM_RWShortList(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Collections.Generic.List{System.Int16}@)">
|
||||
<summary>Read/Write List of signed 2 Byte (NC: Word:, .NET: short) from/into NC Memory Area
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -378,10 +523,10 @@
|
||||
<param name="Value">List of values to read/Write</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.RW_DWord_List(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Collections.Generic.List{System.UInt32}@)">
|
||||
<member name="M:CMS_CORE.Nc.MEM_RWDWordList(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Collections.Generic.List{System.UInt32}@)">
|
||||
<summary>Read/Write List of unsigned 4 Byte (NC: DWord:, .NET: uint) from/into NC Memory Area
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -393,10 +538,10 @@
|
||||
<param name="Value">List of values to read/Write</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.RW_Integer_List(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Collections.Generic.List{System.Int32}@)">
|
||||
<member name="M:CMS_CORE.Nc.MEM_RWIntegerList(System.Boolean,System.Int32,CMS_CORE.Nc.MEMORY_Type,System.Int32,System.Int32,System.Collections.Generic.List{System.Int32}@)">
|
||||
<summary>Read/Write List of signed 4 Byte (NC: DWord:, .NET: int) from/into NC Memory Area
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
@@ -408,81 +553,34 @@
|
||||
<param name="Value">List of values to read/Write</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCParam(System.Int16,System.Int16,System.Boolean@)">
|
||||
<summary>Read Boolean Parameter Machine (Not compatible for Axis Parameter (Multiple values in a parameter)
|
||||
<member name="M:CMS_CORE.Nc.FILES_RProgramToFile(System.String,System.String,System.IO.FileStream@)">
|
||||
<summary>Read a Part Program by path and name
|
||||
<para>
|
||||
Compatibility: Fanuc
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="Index">Index of the parameter</param>
|
||||
<param name="Bit">Set the Bit to Read. (0..7)</param>
|
||||
<param name="Value">Reference of a variable with Param values</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCParam(System.Int16,System.Byte@)">
|
||||
<summary>Read Byte Parameter Machine (Not compatible for Axis Parameter (Multiple values in a parameter)
|
||||
<para>
|
||||
Compatibility: Fanuc
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="Index">Index of the parameter</param>
|
||||
<param name="Value">Reference of a variable with Param values</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCParam(System.Int16,System.Int16@)">
|
||||
<summary>Read 2 Byte (Short) Parameter Machine (Not compatible for Axis Parameter (Multiple values in a parameter)
|
||||
<para>
|
||||
Compatibility: Fanuc
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="Index">Index of the parameter</param>
|
||||
<param name="Value">Reference of a variable with Param values</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCParam(System.Int16,System.Int32@)">
|
||||
<summary>Read 4 Byte (Integer) Parameter Machine (Not compatible for Axis Parameter (Multiple values in a parameter)
|
||||
<para>
|
||||
Compatibility: Fanuc
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="Index">Index of the parameter</param>
|
||||
<param name="Value">Reference of a variable with Param values</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCParam(System.Int16,System.Double@)">
|
||||
<summary>Read Real Parameter Machine (Not compatible for Axis Parameter (Multiple values in a parameter)
|
||||
<para>
|
||||
Compatibility: Fanuc
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="Index">Index of the parameter</param>
|
||||
<param name="Value">Reference of a variable with Param values</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.R_NCReadPartProgramToFile(System.String,System.String,System.IO.FileStream@)">
|
||||
<summary> Read a Part Program by path and name
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="partProgramPath">Path of the Part Program stored in the Nc</param>
|
||||
<param name="partProgramLocalName">Name of the Part Program and name of new local file</param>
|
||||
<param name="localFile">Reference to the new local file where the NC Part Program data will be saved</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.W_NCWritePartProgramFromFile(System.String,System.IO.FileStream)">
|
||||
<summary> Write/Overwrite a Part Program by path and name
|
||||
<member name="M:CMS_CORE.Nc.FILES_WProgramFromFile(System.String,System.IO.FileStream)">
|
||||
<summary>Write/Overwrite a Part Program by path and name
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="partProgramPath">Path of the Part Program stored in the Nc</param>
|
||||
<param name="localFile">Reference to the local Part Program file</param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.NCCopyPartProgram(System.String,System.String,System.Boolean)">
|
||||
<summary> Copy a Part Program into another path
|
||||
<member name="M:CMS_CORE.Nc.FILES_CopyProgram(System.String,System.String,System.Boolean)">
|
||||
<summary>Copy a Part Program into another path
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="partProgramPath">Path where the Part Program is saved in the NC</param>
|
||||
@@ -490,13 +588,191 @@
|
||||
<param name="failIfExist"></param>
|
||||
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Nc.NCDeletePartProgram(System.String,System.String)">
|
||||
<summary> Delete a Nc Part Program</summary>
|
||||
<member name="M:CMS_CORE.Nc.FILES_DeleteProgram(System.String,System.String)">
|
||||
<summary>Delete a Nc Part Program
|
||||
<para>
|
||||
Compatibility: Fanuc | Osai | Demo
|
||||
</para>
|
||||
</summary>
|
||||
<exception cref="T:CMS_CORE.Exceptions.Nc_Exception">Thrown when an internal or a library error occours</exception>
|
||||
<param name="partProgramPath">Path where the Nc Part Program is saved in the NC</param>
|
||||
<param name="partProgramName">Name of the Part Program file</param>
|
||||
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.W">
|
||||
<summary>Write action</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.R">
|
||||
<summary>Read action</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.UNDEF_PROC">
|
||||
<summary>Not-Defined Process</summary>
|
||||
</member>
|
||||
<member name="T:CMS_CORE.Nc.PROC_Status">
|
||||
<summary>Process-Status</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Status.IDLE">
|
||||
<summary>Idle-Status</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Status.RUN">
|
||||
<summary>Run-Status</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Status.HOLD">
|
||||
<summary>Hold-Status</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Status.ERROR">
|
||||
<summary>Error-Status</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Status.RESET">
|
||||
<summary>Reset-Status</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Status.EMERG">
|
||||
<summary>Emergency-Status</summary>
|
||||
</member>
|
||||
<member name="T:CMS_CORE.Nc.PROC_Mode">
|
||||
<summary>CMS-Process-Mode</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Mode.AUTO">
|
||||
<summary>Automatic-Mode</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Mode.EDIT">
|
||||
<summary>Edit-Mode</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Mode.MDI">
|
||||
<summary>Mdi-Mode</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Mode.REMOTE">
|
||||
<summary>Remote-Mode</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Mode.TEACH">
|
||||
<summary>Teach-Mode</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Mode.REF">
|
||||
<summary>Ref-Mode</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Mode.JOG">
|
||||
<summary>Jog-Mode</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Mode.JOGINC">
|
||||
<summary>Joginc-Mode</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Mode.RETPROF">
|
||||
<summary>Ret_on_Profile-Mode</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Mode.HANDLE">
|
||||
<summary>Handle-Mode</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Mode.RESTART">
|
||||
<summary>Restart-Mode</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.PROC_Mode.ERROR">
|
||||
<summary>Error-Mode</summary>
|
||||
</member>
|
||||
<member name="T:CMS_CORE.Nc.MEMORY_Type">
|
||||
<summary>Nc Memory Type (Table)</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Null">
|
||||
<summary>Null Type</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_G">
|
||||
<summary>Fanuc G Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_F">
|
||||
<summary>Fanuc F Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_Y">
|
||||
<summary>Fanuc Y Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_X">
|
||||
<summary>Fanuc X Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_A">
|
||||
<summary>Fanuc A Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_R">
|
||||
<summary>Fanuc R Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_T">
|
||||
<summary>Fanuc T Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_K">
|
||||
<summary>Fanuc K Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_C">
|
||||
<summary>Fanuc C Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_D">
|
||||
<summary>Fanuc D Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_M">
|
||||
<summary>Fanuc M Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_N">
|
||||
<summary>Fanuc N Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_E">
|
||||
<summary>Fanuc E Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_Z">
|
||||
<summary>Fanuc Z Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Fanuc_CM">
|
||||
<summary>Fanuc CM Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_I">
|
||||
<summary>Osai I Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_O">
|
||||
<summary>Osai O Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_MW">
|
||||
<summary>Osai MW Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_GW">
|
||||
<summary>Osai GW Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_SW">
|
||||
<summary>Osai SW Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_PW">
|
||||
<summary>Osai PW Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_UW">
|
||||
<summary>Osai UW Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_MD">
|
||||
<summary>Osai MD Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_GD">
|
||||
<summary>Osai GD Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_SD">
|
||||
<summary>Osai SD Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_PD">
|
||||
<summary>Osai PD Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_UD">
|
||||
<summary>Osai UD Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_L">
|
||||
<summary>Osai L Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_LS">
|
||||
<summary>Osai LS Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_AA">
|
||||
<summary>Osai AA Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_A">
|
||||
<summary>Osai A Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_SC">
|
||||
<summary>Osai SC Area</summary>
|
||||
</member>
|
||||
<member name="F:CMS_CORE.Nc.MEMORY_Type.Osai_SYMO">
|
||||
<summary>Osai SYMO Area</summary>
|
||||
</member>
|
||||
<member name="M:CMS_CORE.Osai.Nc_Osai.#ctor(System.String,System.UInt16,System.UInt16)">
|
||||
<summary>
|
||||
Instantiate The NC-Osai Class
|
||||
|
||||
Binary file not shown.
@@ -17,3 +17,12 @@ C:\Workspace\CMS_CORE_LIBRARY\CMS_CORE_Library\obj\Debug2\CMS_CORE_Library.cspro
|
||||
C:\Workspace\CMS_CORE_LIBRARY\CMS_CORE_Library\obj\Debug2\CMS_CORE_Library.csproj.CoreCompileInputs.cache
|
||||
C:\Workspace\CMS_CORE_LIBRARY\CMS_CORE_Library\obj\Debug2\CMS_CORE_Library.dll
|
||||
C:\Workspace\CMS_CORE_LIBRARY\CMS_CORE_Library\obj\Debug2\CMS_CORE_Library.pdb
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Library\obj\Debug2\CMS_CORE_Library.csproj.CoreCompileInputs.cache
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Library\obj\Debug2\CMS_CORE_Library.dll
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Library\obj\Debug2\CMS_CORE_Library.pdb
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Library\bin\Debug2\CMS_CORE_Library.dll.config
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Library\bin\Debug2\CMS_CORE_Library.xml
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Library\bin\Debug2\CMS_CORE_Library.dll
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Library\bin\Debug2\CMS_CORE_Library.pdb
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Library\bin\Debug2\CndexLinkDotNet.dll
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Library\bin\Debug2\SKGL.dll
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+21
@@ -39,3 +39,24 @@ C:\Workspace\CMS_CORE_LIBRARY\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\o
|
||||
C:\Workspace\CMS_CORE_LIBRARY\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\obj\Debug\Nc_Demo_Application.pdb
|
||||
C:\Workspace\CMS_CORE_LIBRARY\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\obj\Debug\Nc_Demo_Application.DemoApplicationForm.resources
|
||||
C:\Workspace\CMS_CORE_LIBRARY\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\obj\Debug\Nc_Demo_Application.StartupForm.resources
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\Nc_Demo_Application.exe.config
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\Nc_Demo_Application.exe
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\Nc_Demo_Application.pdb
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\EntityFramework.dll
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\EntityFramework.SqlServer.dll
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\System.Data.SQLite.dll
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\System.Data.SQLite.EF6.dll
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\System.Data.SQLite.Linq.dll
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\System.ServiceModel.Primitives.dll
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\EntityFramework.xml
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\EntityFramework.SqlServer.xml
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\System.Data.SQLite.xml
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\bin\Debug\System.Data.SQLite.dll.config
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\obj\Debug\CMS_Core_Nc_Demo_Application.csprojResolveAssemblyReference.cache
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\obj\Debug\Nc_Demo_Application.DemoApplicationForm.resources
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\obj\Debug\Nc_Demo_Application.Properties.Resources.resources
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\obj\Debug\Nc_Demo_Application.StartupForm.resources
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\obj\Debug\CMS_Core_Nc_Demo_Application.csproj.GenerateResource.Cache
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\obj\Debug\CMS_Core_Nc_Demo_Application.csproj.CoreCompileInputs.cache
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\obj\Debug\Nc_Demo_Application.exe
|
||||
C:\Users\carminatini\Documents\Visual Studio 2017\SVN Projects\CMS_CORE_Library\CMS_CORE_Nc_Demo_Application\Nc_Demo_Application\obj\Debug\Nc_Demo_Application.pdb
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user