![]() |
gclib 2.4.0
Galil Communications Library
|
Used to get values from a data record handle. More...
Topics | |
| Amp | |
| Amp error statuses. | |
| Axis | |
| Axis-specific values, such as position or torque. | |
| Coordinated Move | |
| Coordinated move values, relevant for LM and CM modes of motion. | |
Typedefs | |
| typedef enum gclib_mode_of_motion_t | gclib_mode_of_motion_t |
| The controller's current mode of motion, given by gclib_data_record_mode_of_motion(). | |
| typedef enum gclib_ethernet_status_t | gclib_ethernet_status_t |
| The current status of an ethernet handle, given by gclib_data_record_ethernet_status(). | |
Enumerations | |
| enum | gclib_mode_of_motion_t { GCLIB_NO_MOTION , GCLIB_CONTOUR , GCLIB_POSITION_ABSOLUTE , GCLIB_POSITION_RELATIVE , GCLIB_FIND_EDGE , GCLIB_FIND_INDEX , GCLIB_HOME , GCLIB_VECTOR_MOVE , GCLIB_LINEAR_MOVE = GCLIB_VECTOR_MOVE } |
| The controller's current mode of motion, given by gclib_data_record_mode_of_motion(). More... | |
| enum | gclib_ethernet_status_t { HANDLE_FREE = 0 , UDP_SLAVE = 1 , TCP_SLAVE = 2 , UDP_MASTER = -1 , TCP_MASTER = -2 , ESTABLISHING_UDP = -5 , ESTABLISHING_TCP = -6 } |
| The current status of an ethernet handle, given by gclib_data_record_ethernet_status(). More... | |
Used to get values from a data record handle.
For obtaining data records, see gclib_subscribe_data_records().
| typedef enum gclib_mode_of_motion_t gclib_mode_of_motion_t |
The controller's current mode of motion, given by gclib_data_record_mode_of_motion().
| typedef enum gclib_ethernet_status_t gclib_ethernet_status_t |
The current status of an ethernet handle, given by gclib_data_record_ethernet_status().
The controller's current mode of motion, given by gclib_data_record_mode_of_motion().
| Enumerator | |
|---|---|
| GCLIB_NO_MOTION | |
| GCLIB_CONTOUR | |
| GCLIB_POSITION_ABSOLUTE | |
| GCLIB_POSITION_RELATIVE | |
| GCLIB_FIND_EDGE | |
| GCLIB_FIND_INDEX | |
| GCLIB_HOME | |
| GCLIB_VECTOR_MOVE | |
| GCLIB_LINEAR_MOVE | |
The current status of an ethernet handle, given by gclib_data_record_ethernet_status().
| Enumerator | |
|---|---|
| HANDLE_FREE | |
| UDP_SLAVE | |
| TCP_SLAVE | |
| UDP_MASTER | |
| TCP_MASTER | |
| ESTABLISHING_UDP | |
| ESTABLISHING_TCP | |
| uint16_t gclib_data_record_sample | ( | gclib_data_record_handle | h | ) |
The sample in which this data record was generated.
| bool gclib_data_record_input | ( | gclib_data_record_handle | h, |
| size_t | index ) |
Get an input.
Generally, controllers have 8 inputs and outputs per axis bank.
| h | A data record handle. |
| index | The index of the input to check. Starts at 1. |
| bool gclib_data_record_output | ( | gclib_data_record_handle | h, |
| size_t | index ) |
Get an output.
| uint8_t gclib_data_record_input_bank | ( | gclib_data_record_handle | h, |
| size_t | index ) |
Get a bank of inputs.
| uint8_t gclib_data_record_output_bank | ( | gclib_data_record_handle | h, |
| size_t | index ) |
Get a bank of outputs.
| uint8_t gclib_data_record_error_code | ( | gclib_data_record_handle | h | ) |
Get the error code.
| uint32_t gclib_data_record_contour_segment_count | ( | gclib_data_record_handle | h | ) |
Get the contour segment count.
| uint16_t gclib_data_record_contour_buffer_available | ( | gclib_data_record_handle | h | ) |
Get remaining contour buffer.
| bool gclib_data_record_thread_running | ( | gclib_data_record_handle | h, |
| size_t | thread ) |
Returns true if a given thread is running.
| gclib_ethernet_status_t gclib_data_record_ethernet_status | ( | gclib_data_record_handle | h, |
| char | handle ) |
Get ethernet handle status.
| h | data record handle. |
| handle | The ethernet handle to check, A - H. |
| gclib_result gclib_data_record_bytes | ( | gclib_data_record_handle | h, |
| char * | data_record, | ||
| size_t | len ) |
Copy data record to user buffer.
Useful if your device has a nonstandard data record.
| h | data record handle. |
| data_record | pointer to user buffer. |
| len | size of user buffer. |