diff --git a/CMS_CORE_Library/Fanuc/Nc_Fanuc.cs b/CMS_CORE_Library/Fanuc/Nc_Fanuc.cs index 780a9d9..8d10466 100644 --- a/CMS_CORE_Library/Fanuc/Nc_Fanuc.cs +++ b/CMS_CORE_Library/Fanuc/Nc_Fanuc.cs @@ -1140,11 +1140,16 @@ namespace CMS_CORE_Library.Fanuc public override CmsError PLC_WM156Response(int process, double responseVal) { - CmsError cmsError = MEM_RWDouble(W, 0, MEMORY_TYPE.Osai_GD, 900 + (process - 1), ref responseVal); + CmsError cmsError = WriteMacroValue(process, M155_RESPONSE_MEMORY, responseVal); if (cmsError.IsError()) return cmsError; return PLC_WStrobe(M156_INPUT_ACK, M156_INPUT_STROBE, (uint)process); + //CmsError cmsError = MEM_RWDouble(W, 0, MEMORY_TYPE.Osai_GD, 900 + (process - 1), ref responseVal); + //if (cmsError.IsError()) + // return cmsError; + + //return PLC_WStrobe(M156_INPUT_ACK, M156_INPUT_STROBE, (uint)process); } public override CmsError PLC_RM157Data(ref List value) @@ -2576,6 +2581,7 @@ namespace CMS_CORE_Library.Fanuc public override CmsError MEM_RWDouble(bool bWrite, int process, MEMORY_TYPE memType, int memIndex, ref double value) { + //List ListValue = new List() { value }; return FUNCTION_NOT_ALLOWED_ERROR; }