Specifications

16 Softing
16-20
initialization phase - Enable global interrupts to enable asynchronous
mode (object 6423) - Put device from pre-operational mode into operational
mode (transmission of PDO’s starts).
simulation phase - CAN-AC2 receive driver block outputs the latest
received A/D-values.
termination phase - Put device from operational mode into pre-operational
mode (transmission of PDO’s stops)
The node id of the AIC711 device is set over DIP-switches and in this example
it is assumed that the node id is set to 11 (decimal) and the device is connected
to CAN-port 1 of the CAN-AC2-board.
Then the CANAC2_setup.c file could look as follows
////////////////////////////////////////////////////////////////
// Number of initialization and termination messages
////////////////////////////////////////////////////////////////
#define CANAC2_init_number2
#define CANAC2_term_number1
//#define DEBUG_CANAC2
// do not change the following four lines
#define CANAC2_setup_present
CANAC2_type CANAC2_init[CANAC2_init_number+1];
CANAC2_type CANAC2_term[CANAC2_term_number+1];
int CANAC2_counter;
//
////////////////////////////////////////////////////////////////
// Identifier and constant section
////////////////////////////////////////////////////////////////
#define AIC711_node_111
#define AIC711_sdo_base1536
#define MAS_boot 0
////////////////////////////////////////////////////////////////
// Initialization section
////////////////////////////////////////////////////////////////