11-04-2018 09:03 AM
Hi all,
I am using an NI 9045 CompactRio to communicate with a motor drive via EtherCAT.
Is there a way (not using SoftMotion) to clear device errors (if there are any) and then switch to operational mode programatically?
I am currently doing that using the Online Slave Device State window (see image). Are there any VIs or such that I can use to perform this task?
Regards,
Omar
Solved! Go to Solution.
11-04-2018 07:06 PM
Hey O.Alahmad,
There are Clear Errors.vi you can use to clean the device errors in your code. However, NI-EtherCAT doesn't support switching to operational mode programmatically.
11-05-2018 02:28 AM
Hey O.Alahmad,
NI provides Invoke Node which can apply to switch the slave mode in the program.
11-05-2018 10:24 AM
Hi zhengchen,
Yes! That did the trick. It completely passed my mind that I can use an invoke node. Thanks!
Regards,
Omar