CAN communication with Plecs on TI C2000: (apparently) undeterministic behavior

Hi there,

I am programming a TMS320F2837xD with Plecs. I am sending/receiving CAN messages using the CAN Tx/Rx blocks.

I have implemented some logic in order to propagate an emergency stop state across the three devices we have. See code attached.

The problem is the following:

  • My three devices are idle (in an ok state)
  • My code raises EStop (which is wrong)
  • I connect a PC with PCAN-View on the bus ==> EStop drops
  • I disconnect PCAN-View ==> EStop raises

It gets weirder:

  • I remove any CAN block in II Grid CAN and restart ==> problem is gone (i.e: EStop is down)

Any idea ?
Main_II_Grid_GFMI.plecs (523.4 KB)

Hi Xavier, Just commenting on this post for future visitors to the forum. We have one of our developers who has proposed a fix for this issue and believe it is related to your previous forum post. We’ll incorporate our findings into the next bugfix release.

Hi Bryan, the fix proposed by your developer seems good :+1:

I’ve sent my detailed feedback directly to her.

2 Likes

Awesome, thanks for the update Xavier and for bringing this to our attention!