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 =0x23; // Command to write 4 bytes
dta_tx1 =0x00; // object dictionary index of the data to be accessed - byte2+byte1 - 2000
dta_tx1 =0x20; // object dictionary index of the data to be accessed - byte2+byte1 - 2000
dta_tx1 =0x01; // Sub index
dta_tx1 =0xFF; // Data written to be sent
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.