CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

CANOpen Slave
https://forum.codesys.com/viewtopic.php?f=26&t=7501
Page 1 of 1

Author:  rickyc8888 [ Tue Jan 10, 2017 9:18 am ]
Post subject:  CANOpen Slave

Hi,

I was trying to set up BBB as a CANOpen device. I added one TPDO and one RPDO. But I couldn't seem to get the device running("Not Running" is shown in status). I have started CAN0 using the command "ip link set up can0 type can bitrate 250000". What am I missing?

Thanks!

Ricky

Author:  rickyc8888 [ Tue Jan 10, 2017 10:04 am ]
Post subject:  Re: CANOpen Slave

Hi,

I restarted the board and I got a bus failure. The diag message read "EMCY: Error Passive".

After that I brought CAN0 down and up, and made some minor changes to the program(just to make sure it recompiled), downloaded it again. And when the program started I got the same "Not Running" message on the device(the CANBUS says "Running") as before.

I hope this would help with the problem solving.

Ricky

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/