50#define NUM_OF_SLAVES 1
55#define MEASURE_TIMING 1
56#define DISTRIBUTED_CLOCK 0
59#define ENCODER_RESOLUTION 1000
60#define INC_PER_ROTATION GEAR_RATIO*ENCODER_RESOLUTION*4
61#define FIVE_DEGREE_CCW int(INC_PER_ROTATION/72)
62#define THIRTY_DEGREE_CCW int(INC_PER_ROTATION/12)
63#define PERIOD_NS (g_kNsPerSec/FREQUENCY)
64#define PERIOD_US (PERIOD_NS / 1000)
65#define PERIOD_MS (PERIOD_US / 1000)
67 #define FINAL_SLAVE (NUM_OF_SLAVES-1)
Writes desired operational mode, to slave in specified index via SDO.
@ kProfileVelocity
Definition: ecat_definitions.hpp:147
const struct timespec g_cycle_time
Definition: ecat_globals.hpp:69
const struct timespec g_half_cycle_time
Definition: ecat_globals.hpp:71
static int8_t g_kOperationMode
Select operation mode for motors, default: Profile Velocity.
Definition: ecat_globals.hpp:49
const uint32_t g_kNumberOfServoDrivers
Number of connected servo drives.
Definition: ecat_globals.hpp:47
#define PERIOD_NS
Definition: ecat_globals.hpp:63