gclib  2.0.8
Communications API for Galil controllers and PLCs
gclib_errors.h
Go to the documentation of this file.
1 
10 #ifndef I_0DD3687F_47D0_454B_ADB2_CBAB0ED46FCE
11 #define I_0DD3687F_47D0_454B_ADB2_CBAB0ED46FCE
12 
13 #define G_NO_ERROR 0
14 #define G_NO_ERROR_S "no error"
15 
16 #define G_GCLIB_ERROR -1
17 #define G_GCLIB_ERROR_S "gclib unexpected error"
18 
19 #define G_GCLIB_UTILITY_ERROR -2
20 #define G_GCLIB_UTILITY_ERROR_S "invalid request value or bad arguments were specified to GUtility()"
21 
22 #define G_GCLIB_UTILITY_IP_TAKEN -3
23 #define G_GCLIB_UTILITY_IP_TAKEN_S "ip address is already taken by a device on the network"
24 
25 #define G_GCLIB_NON_BLOCKING_READ_EMPTY -4
26 #define G_GCLIB_NON_BLOCKING_READ_EMPTY_S "data was not waiting for a zero-timeout read"
27 
28 #define G_GCLIB_POLLING_FAILED -5
29 #define G_GCLIB_POLLING_FAILED_S "exit condition not met in specified polling period"
30 
31 #define G_TIMEOUT -1100
32 #define G_TIMEOUT_S "device timed out"
33 
34 #define G_OPEN_ERROR -1101
35 #define G_OPEN_ERROR_S "device failed to open"
36 
37 #define G_ALREADY_OPEN -1111
38 #define G_ALREADY_OPEN_S "Serial or PCI port already open"
39 
40 #define G_READ_ERROR -1103
41 #define G_READ_ERROR_S "device read error"
42 
43 #define G_WRITE_ERROR -1104
44 #define G_WRITE_ERROR_S "device write error"
45 
46 #define G_INVALID_PREPROCESSOR_OPTIONS -1204
47 #define G_INVALID_PREPROCESSOR_OPTIONS_S "preprocessor did not recognize options"
48 
49 #define G_COMMAND_CALLED_WITH_ILLEGAL_COMMAND -1106
50 #define G_COMMAND_CALLED_WITH_ILLEGAL_COMMAND_S "illegal command passed to command call"
51 
52 #define G_DATA_RECORD_ERROR -1107
53 #define G_DATA_RECORD_ERROR_S "data record error"
54 
55 #define G_UNSUPPORTED_FUNCTION -1109
56 #define G_UNSUPPORTED_FUNCTION_S "function not supported on this communication bus"
57 
58 #define G_FIRMWARE_LOAD_NOT_SUPPORTED -1110
59 #define G_FIRMWARE_LOAD_NOT_SUPPORTED_S "firmware cannot be loaded on this communication bus to this hardware"
60 
61 #define G_ARRAY_NOT_DIMENSIONED -1200
62 #define G_ARRAY_NOT_DIMENSIONED_S "array not dimensioned on controller or wrong size"
63 
64 #define G_CONNECTION_NOT_ESTABLISHED -1201
65 #define G_CONNECTION_NOT_ESTABLISHED_S "connection to hardware not established"
66 
67 #define G_ILLEGAL_DATA_IN_PROGRAM -1202
68 #define G_ILLEGAL_DATA_IN_PROGRAM_S "illegal ASCII character in program"
69 
70 #define G_UNABLE_TO_COMPRESS_PROGRAM_TO_FIT -1203
71 #define G_UNABLE_TO_COMPRESS_PROGRAM_TO_FIT_S "program cannot be compressed to fit on the controller"
72 
73 #define G_BAD_RESPONSE_QUESTION_MARK -10000
74 #define G_BAD_RESPONSE_QUESTION_MARK_S "question mark returned by controller"
75 
76 #define G_BAD_VALUE_RANGE -10002
77 #define G_BAD_VALUE_RANGE_S "value passed to function was bad or out of range"
78 
79 #define G_BAD_FULL_MEMORY -10003
80 #define G_BAD_FULL_MEMORY_S "operation could not complete because of a memory error"
81 
82 #define G_BAD_LOST_DATA -10004
83 #define G_BAD_LOST_DATA_S "data was lost due to buffer or fifo limitations"
84 
85 #define G_BAD_FILE -10005
86 #define G_BAD_FILE_S "file was not found, contents are invalid, or write failed"
87 
88 #define G_BAD_ADDRESS -10006
89 #define G_BAD_ADDRESS_S "a bad address was specified in open"
90 
91 #define G_BAD_FIRMWARE_LOAD -10008
92 #define G_BAD_FIRMWARE_LOAD_S "Firmware upgrade failed"
93 
94 #define G_GCAPS_OPEN_ERROR -20000
95 #define G_GCAPS_OPEN_ERROR_S "gcaps connection could not be opened"
96 
97 #define G_GCAPS_SUBSCRIPTION_ERROR -20002
98 #define G_GCAPS_SUBSCRIPTION_ERROR_S "function requires subscription not specified in GOpen()"
99 
100 #endif //I_0DD3687F_47D0_454B_ADB2_CBAB0ED46FCE
101