LP modifiche per M156 su Fanuc
This commit is contained in:
@@ -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<M157DataModel> 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<ushort> ListValue = new List<ushort>() { value };
|
||||
return FUNCTION_NOT_ALLOWED_ERROR;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user