diff --git a/CMS_CORE_Application/Form1.cs b/CMS_CORE_Application/Form1.cs index c63d24a..2adfdac 100644 --- a/CMS_CORE_Application/Form1.cs +++ b/CMS_CORE_Application/Form1.cs @@ -121,7 +121,8 @@ namespace CMS_CORE_Application cmsError = N.PROC_RSelectedProcessData(1, ref selected); cmsError = N.NC_SetScreenVisible(Nc.SCREEN_PAGE.Fanuc_Custom2); - + List ax = new List(); + cmsError = N.AXES_RAxesNames(1, ref ax); sw.Stop(); Console.WriteLine(sw.ElapsedMilliseconds); diff --git a/CMS_CORE_Library/CMS_CORE_Library.csproj b/CMS_CORE_Library/CMS_CORE_Library.csproj index 2118276..f8caa23 100644 --- a/CMS_CORE_Library/CMS_CORE_Library.csproj +++ b/CMS_CORE_Library/CMS_CORE_Library.csproj @@ -162,7 +162,9 @@ - + + Designer + Reference.svcmap diff --git a/CMS_CORE_Library/Osai/Nc_Osai.cs b/CMS_CORE_Library/Osai/Nc_Osai.cs index cb78b52..8e3f894 100644 --- a/CMS_CORE_Library/Osai/Nc_Osai.cs +++ b/CMS_CORE_Library/Osai/Nc_Osai.cs @@ -106,6 +106,10 @@ namespace CMS_CORE_Library.Osai Url = "http://" + Ip + ":" + Port; endPointAddress = new EndpointAddress(new Uri(Url)); + HttpBinding.MaxBufferSize = int.MaxValue; + HttpBinding.MaxReceivedMessageSize = int.MaxValue; + HttpBinding.MaxBufferPoolSize = int.MaxValue; + //Open the connection OpenNC = new OPENcontrolPortTypeClient(HttpBinding, endPointAddress); @@ -2950,10 +2954,10 @@ namespace CMS_CORE_Library.Osai return GetNCError(errorClass, errorNum); // Read file content - if (size >= 65536) - { - size = 65534; - } + //if (size >= 65536) + //{ + // size = 65534; + //} // nReturn = OpenNC.GetFile(filePath, ref size, out fileContentContent, out errorClass, out errorNum); nReturn = OpenNC.GetBinaryFile(filePath, size, out byte[] data, out errorClass, out errorNum); // Convert byte[] into string