Robotics StackExchange | Archived questions

I CAN NOT WRITE EPOS2

Hi everybody, I am try to comminicate TI C2000 MCU using epos2 via RS232. I can only read register but can not write. I try to making according to EPOS Firmware Application 3.2 Device Control Flow Chart. My example:

enter code here
int main(void)
{
    .
    .
    .
    Controlword_write(0x80); // Fault Reset = 0x80
    delay(100); // delay 100ms
    Controlword_write(0x06);  // Shutdown = 0x06
    delay(100); // delay 100ms
    Controlword_write(0x07);  // Switch On = 0x07
    delay(100); // delay 100ms
    Controlword_write(0x0F);  // Enable Operation = 0x0F
    delay(100); // delay 100ms

    while(1)
    {
        .
        .
        .
        .
    }
}

I can write these codes but when I read with Statusword_read() function, I see no change. What is this reason ? I can write other code if necessary. Thank you...

Asked by ufukv on 2019-11-21 02:00:25 UTC

Comments

Can you please clarify what the relation to ROS is here?

I know there are packages for EPOS2 and ROS, but it's unclear to me whether you are using them here.

Asked by gvdhoorn on 2019-11-21 10:19:40 UTC

It is an c2000 problem not ROS relevant so please close it. You say you write the register and uses rs232 but I do not see a boudrate or some uart TX

Asked by duck-development on 2019-11-21 11:52:40 UTC

Answers