I have to develop a SW for CompactRIO to communicate with a PLC on CAN.
My question: Which protocol, CanOpen, or J1939 is easier and faster to implement from example? I am in big hurry and need to set up the communication for my prototype as soon as possible. What is your recommendations? I am using CompactRIO.
Thank you in advance for quick reactions!
Solved! Go to Solution.
We have a reference example for j1939 but no official driver. That said there is a veristand custom device that might make it easier if you are familiar with veristand.
If you have canopen hardware, the canopen API and examples will probably be faster and are supported. However, we only have one piece of canopen hardware for the cRIO, the 9881.
thanks for support.
So I will try to go in the way of CAN Open.
We are using the CAN card NI 9853 in our CompactRIO for development.
To clarify, the canopen driver will not work with the 9853 and only works with the 9881.
We do have a reference example for canopen on the 9853 however. This document should summarize canopen support: http://digital.ni.com/public.nsf/allkb/13C3CB1148A2AEA4862579DB0066E66B
I have used that example before and it works fine. However, if you need to do more than simple commands do recognize it insn't feature complete.
I did not know this, I thought the CAN is just physical layer and I can use whatever protocol also with my card NI9853.
So if the Can Open is not possible here, is possible to use the J1939 with NI9853?
Thanks a lot for support.