Sideway Posted July 9, 2023 Report Share Posted July 9, 2023 Hi all, I have been investigating on NMT commands and how to deal with them in my CANopen project. I have created a project in which i bootup my PLC, then I send NMT Reset and Preoperationnal commands to my VFD drive (node 1). Once i am in Preoperational state, i can use my SDO commands. SDO commands are working fine. I can even ask for a NMT Stop command to disable them, then switch back to NMT Start. Problem is : i don't follow what's going on with the NMT commands. I would like to retrieve the NMT current status, but nothing is refreshed in my MI 2004 variable as shown below... Here is my function NMT Nodeguard, activating every second : May you help me solving this problem ? Sincerely yours, Sideway. Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted July 9, 2023 MVP 2023 Report Share Posted July 9, 2023 Please find how to check NMT status via Visilogic Example project V570_CANOPEN_Encoder.vlp - Check_Communication subroutine Link to comment Share on other sites More sharing options...
Sideway Posted July 9, 2023 Author Report Share Posted July 9, 2023 Hi kratmel, Thank you for your fast response ! Having a look at the example, i have been able to confirm that i configured it right on the PLC side. However i realized my slave device was not configured to handle NMT node guard (100Ch and 100Dh objects). By modifying them, i have been able to retrieve NMT Status on the PLC and the NMT toggle bit is working just fine. One last question about the Visilogic software in itself : How come the communication trial is RED with the CANbus test tool, yet i can communicate with my slave device correctly ? Have a nice evening, Cheers, Sideway. Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted July 9, 2023 MVP 2023 Report Share Posted July 9, 2023 27 minutes ago, Sideway said: How come the communication trial is RED with the CANbus test tool, yet i can communicate with my slave device correctly ? I think it is not CANopen tool. It may be usable on the Unitronics Unican network. You can use one of the PLC as CAN Gateway and connect Visilogic to any PLC in CAN network. Maybe this window can be used for find ID of all PLC present in Unican nenwork. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now