Contents
1. Operating Environment ............................................................................................................ 4
2. Preparation of CN032 AC Servo Solution Kit ........................................................................... 5
2.1 Connecting the Logic and Motor Power .................................................................................................. 5
2.2 Connecting the Motor Windings .............................................................................................................. 5
2.3 Connecting the Encoder .......................................................................................................................... 5
2.4 Connecting the UART communication cable .......................................................................................... 6
2.5 Connecting the JTAG interface ............................................................................................................... 6
2.6 Connecting the Ethernet Interface........................................................................................................... 7
2.7 Overall connection configuration ............................................................................................................. 7
2.8 Power supply to the board ....................................................................................................................... 7
3. Preparing EtherCAT Communication ....................................................................................... 9
3.1 TwinCAT
®
3 Installation ............................................................................................................................ 9
3.2 Copying the ESI File .............................................................................................................................. 13
4. Confirm Communication with TwinCAT
®
3 .............................................................................. 13
4.1 Starting TwinCAT
®
3 ............................................................................................................................... 13
4.2 Checking the Communication Status .................................................................................................... 17
4.3 Sending Data to CN032 AC Servo Solution .......................................................................................... 20
5. CiA402 Drive Profile .............................................................................................................. 23
5.1 Operation Moes ..................................................................................................................................... 23
5.2 State Transition ..................................................................................................................................... 24
5.3 Object Dictionary ................................................................................................................................... 24
5.4 Implementing the Motor Control Program ............................................................................................. 26
6. Appendix ............................................................................................................................... 33
6.1 Preparation in advance ......................................................................................................................... 33
6.1.1 Power Supply ...................................................................................................................................... 33
6.1.2 Generating the Slave Stack Code ....................................................................................................... 34
6.2 Program Writing Procedure ................................................................................................................... 37
6.2.1 Program writing by IAR EWARM ......................................................................................................... 37
6.2.2 Program writing by Renesas e2studio ................................................................................................ 39
6.3 Debugging the Sample Project .............................................................................................................. 42
6.3.1 Debugging the Sample Project in IAR EWARM .................................................................................. 42
6.3.2 Debugging the Sample Project in Renesas e2studio .......................................................................... 45
6.4 EEPROM Data Update on CN032 AC Servo Solution .......................................................................... 51
Revision History ............................................................................................................................ 55