Jump to content

how to program multiple instructions openCAN bus


CFBFP

Recommended Posts

Hi

 

I have to program 5 openCAN Bus Commands in the right order and fast after each other.

The baudrate is already on 1000Mb/s but still i have the impression the commands are coming through very slow: it takes to long for 5 simple SDO commands.  How is this possible?

 

Maybe my method of programming is wrong.  The openCAN commands I programmed in Unilogic software are working cause my servomotor controller is doing what I sent as instructions using the openCAN bus.

 

How do I know when my first commands is sent so I can start to send already the next command?  If i program SDO instructions one after each other without a software delay between the SDO commands it doesn't work anymore.

 

My SDO commands are sent as follow:

 

1)send first command SDO openCAN

2)wait 50ms

3)send second command SDO openCAN

4)wait 50ms

5)send third command SDO openCAN

6)wait 50ms

7)...

 

until all commands have been sent.

The method above works but is much to slow for me.

 

When I lower the timer 50ms, the commands are not coming through anymore cause the motor doesn't execute the actions what they were programmed for.

 

Knowing i use 1000Mb/s on the openCAN bus, why do I need still delays between the instructions?

 

Thank you in advance for your support

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...