gclib  370
Communications API for Galil controllers and PLCs
 All Data Structures Files Functions Variables Typedefs Macros Pages
gclib_errors.h
Go to the documentation of this file.
1 
6 #ifndef I_0DD3687F_47D0_454B_ADB2_CBAB0ED46FCE
7 #define I_0DD3687F_47D0_454B_ADB2_CBAB0ED46FCE
8 
9 #define G_NO_ERROR 0
10 #define G_NO_ERROR_S "no error"
11 
12 #define G_GCLIB_ERROR -1
13 #define G_GCLIB_ERROR_S "gclib unexpected error"
14 
15 #define G_GCLIB_UTILITY_ERROR -2
16 #define G_GCLIB_UTILITY_ERROR_S "invalid request value or bad arguments were specified to GUtility()"
17 
18 #define G_GCLIB_UTILITY_IP_TAKEN -3
19 #define G_GCLIB_UTILITY_IP_TAKEN_S "ip address is already taken by a device on the network"
20 
21 #define G_GCLIB_NON_BLOCKING_READ_EMPTY -4
22 #define G_GCLIB_NON_BLOCKING_READ_EMPTY_S "data was not waiting for a zero-timeout read"
23 
24 #define G_TIMEOUT -1100
25 #define G_TIMEOUT_S "device timed out"
26 
27 #define G_OPEN_ERROR -1101
28 #define G_OPEN_ERROR_S "device failed to open"
29 
30 #define G_INVALID_PREPROCESSOR_OPTIONS -1204
31 #define G_INVALID_PREPROCESSOR_OPTIONS_S "preprocessor did not recognize options"
32 
33 #define G_COMMAND_CALLED_WITH_ILLEGAL_COMMAND -1106
34 #define G_COMMAND_CALLED_WITH_ILLEGAL_COMMAND_S "illegal command passed to command call"
35 
36 #define G_DATA_RECORD_ERROR -1107
37 #define G_DATA_RECORD_ERROR_S "data record error"
38 
39 #define G_UNSUPPORTED_FUNCTION -1109
40 #define G_UNSUPPORTED_FUNCTION_S "function not supported on this communication bus"
41 
42 #define G_FIRMWARE_LOAD_NOT_SUPPORTED -1110
43 #define G_FIRMWARE_LOAD_NOT_SUPPORTED_S "firmware cannot be loaded on this communication bus to this hardware"
44 
45 #define G_ARRAY_NOT_DIMENSIONED -1200
46 #define G_ARRAY_NOT_DIMENSIONED_S "array not dimensioned on controller or wrong size"
47 
48 #define G_ILLEGAL_DATA_IN_PROGRAM -1202
49 #define G_ILLEGAL_DATA_IN_PROGRAM_S "illegal ASCII character in program"
50 
51 #define G_UNABLE_TO_COMPRESS_PROGRAM_TO_FIT -1203
52 #define G_UNABLE_TO_COMPRESS_PROGRAM_TO_FIT_S "program cannot be compressed to fit on the controller"
53 
54 #define G_BAD_RESPONSE_QUESTION_MARK -10000
55 #define G_BAD_RESPONSE_QUESTION_MARK_S "question mark returned by controller"
56 
57 #define G_BAD_VALUE_RANGE -10002
58 #define G_BAD_VALUE_RANGE_S "value passed to function was bad or out of range"
59 
60 #define G_BAD_FULL_MEMORY -10003
61 #define G_BAD_FULL_MEMORY_S "operation could not complete because of a memory error"
62 
63 #define G_BAD_LOST_DATA -10004
64 #define G_BAD_LOST_DATA_S "data was lost due to buffer or fifo limitations"
65 
66 #define G_BAD_FILE -10005
67 #define G_BAD_FILE_S "file was not found, contents are invalid, or write failed"
68 
69 #define G_BAD_ADDRESS -10006
70 #define G_BAD_ADDRESS_S "a bad address was specified in open"
71 
72 #define G_GCAPS_OPEN_ERROR -20000
73 #define G_GCAPS_OPEN_ERROR_S "gcaps connection could not be opened"
74 
75 #endif //I_0DD3687F_47D0_454B_ADB2_CBAB0ED46FCE