From 735f28dae06aab2fc06ad91dbb7bb263178b867e Mon Sep 17 00:00:00 2001 From: "ext_luca.pansa@cms.it" Date: Fri, 18 Dec 2020 12:46:00 +0100 Subject: [PATCH] LP modifiche per M156 su Fanuc --- CMS_CORE_Library/Fanuc/Nc_Fanuc.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; }