I CAN NOT WRITE EPOS2 [closed]

asked 2019-11-21 01:00:25 -0600

ufukv gravatar image

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...

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by ufukv
close date 2019-12-09 00:28:33.867846

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.

gvdhoorn gravatar image gvdhoorn  ( 2019-11-21 09:19:40 -0600 )edit

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

duck-development gravatar image duck-development  ( 2019-11-21 10:52:40 -0600 )edit