S7NEW: read/write error more detailed for debug

This commit is contained in:
Samuele Locatelli
2020-09-04 11:48:07 +02:00
parent ff25f5297d
commit 89cecacfc9
3 changed files with 34 additions and 17 deletions
+17 -2
View File
@@ -174,8 +174,23 @@ namespace CMS_CORE_Library.Models
public static CmsError NOT_FOUND_ERROR = new CmsError(CMS_ERROR_CODES.INTERNAL_ERROR, "error_not_found");
public static CmsError S7_PLC_EMPTY_READ = new CmsError(CMS_ERROR_CODES.PLC_MEM_CONF_ERROR, "error_s7_empy_data");
public static CmsError S7_PLC_WRONG_DATA = new CmsError(CMS_ERROR_CODES.PLC_MEM_CONF_ERROR, "error_s7_wrong_data");
public static CmsError S7_PLC_READ_ERROR = new CmsError(CMS_ERROR_CODES.PLC_MEM_CONF_ERROR, "error_s7_read_error");
public static CmsError S7_PLC_WRITE_ERROR = new CmsError(CMS_ERROR_CODES.PLC_MEM_CONF_ERROR, "error_s7_write_error");
public static CmsError S7_PLC_READ_ERROR = new CmsError(CMS_ERROR_CODES.S7NET_READ_ERROR, "error_s7_read_error");
public static CmsError S7_PLC_READ_ERROR_BYTE = new CmsError(CMS_ERROR_CODES.S7NET_READ_ERROR, "error_s7_read_error_byte");
public static CmsError S7_PLC_READ_ERROR_LST_BYTE = new CmsError(CMS_ERROR_CODES.S7NET_READ_ERROR, "error_s7_read_error_byte_list");
public static CmsError S7_PLC_READ_ERROR_LST_SHORT = new CmsError(CMS_ERROR_CODES.S7NET_READ_ERROR, "error_s7_read_error_short_list");
public static CmsError S7_PLC_READ_ERROR_LST_INT = new CmsError(CMS_ERROR_CODES.S7NET_READ_ERROR, "error_s7_read_error_int_list");
public static CmsError S7_PLC_READ_ERROR_LST_WORD = new CmsError(CMS_ERROR_CODES.S7NET_READ_ERROR, "error_s7_read_error_word_list");
public static CmsError S7_PLC_READ_ERROR_LST_DWORD = new CmsError(CMS_ERROR_CODES.S7NET_READ_ERROR, "error_s7_read_error_dword_list");
public static CmsError S7_PLC_READ_ERROR_LST_DOUBLE = new CmsError(CMS_ERROR_CODES.S7NET_READ_ERROR, "error_s7_read_error_double_list");
public static CmsError S7_PLC_WRITE_ERROR = new CmsError(CMS_ERROR_CODES.S7NET_WRITE_ERROR, "error_s7_write_error");
public static CmsError S7_PLC_WRITE_ERROR_BYTE = new CmsError(CMS_ERROR_CODES.S7NET_WRITE_ERROR, "error_s7_write_error_byte");
public static CmsError S7_PLC_WRITE_ERROR_LST_BYTE = new CmsError(CMS_ERROR_CODES.S7NET_WRITE_ERROR, "error_s7_write_error_byte_list");
public static CmsError S7_PLC_WRITE_ERROR_LST_SHORT = new CmsError(CMS_ERROR_CODES.S7NET_WRITE_ERROR, "error_s7_write_error_short_list");
public static CmsError S7_PLC_WRITE_ERROR_LST_INT = new CmsError(CMS_ERROR_CODES.S7NET_WRITE_ERROR, "error_s7_write_error_int_list");
public static CmsError S7_PLC_WRITE_ERROR_LST_WORD = new CmsError(CMS_ERROR_CODES.S7NET_WRITE_ERROR, "error_s7_write_error_word_list");
public static CmsError S7_PLC_WRITE_ERROR_LST_DWORD = new CmsError(CMS_ERROR_CODES.S7NET_WRITE_ERROR, "error_s7_write_error_dword_list");
public static CmsError S7_PLC_WRITE_ERROR_LST_DOUBLE = new CmsError(CMS_ERROR_CODES.S7NET_WRITE_ERROR, "error_s7_write_error_double_list");
public static CmsError PROC_NOT_FOUND_ERROR = new CmsError(CMS_ERROR_CODES.FUNCTION_NOT_ALLOWED, "error_process_not_found");
public static CmsError FUNCTION_NOT_ALLOWED_ERROR = new CmsError(CMS_ERROR_CODES.FUNCTION_NOT_ALLOWED, "error_function_not_allowed");
public static CmsError BIT_NOT_IN_RANGE_ERROR = new CmsError(CMS_ERROR_CODES.BIT_NOT_IN_RANGE, "error_bit_not_in_range");