Using CANOpen to change the speed and torque of the motors.

3 weeks 21 hours ago #29535953 by dc01
I am using a GLB2660 with 2 BLDCs. I want to use an arduino to change the speed of the motors using CANOpen. 
The first thing I am doing is setting the motors using the frame:
    dta_tx1[0] =0x23; // Command to write 4 bytes
    dta_tx1[1] =0x00; // object dictionary index of the data to be accessed - byte2+byte1 - 2000
    dta_tx1[2] =0x20; // object dictionary index of the data to be accessed - byte2+byte1 - 2000
    dta_tx1[3] =0x01; // Sub index
    dta_tx1[4] =0xFF; // Data written to be sent 
    dta_tx1[5] =0x00;
    dta_tx1[6] =0x00;
    dta_tx1[7] =0x00;
I have a few questions:
1. In the CAN frame above, how do I know what data to write in the data bytes 4-7. I got the FF from an example somewhere but I do not know how to get these values.
2. What object dictionary index can I use to set the speed or torque amps of the motors and what values would I have to give in the data bytes. Where do I find the range of the data values?
An example code would be very helpful.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.071 seconds