LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Clear errors and switch to operational mode in EtherCAT Industrial Communications

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(2,786 Views)

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.

0 Kudos
Message 2 of 4
(2,759 Views)
Solution
Accepted by topic author O.Alahmad

Hey O.Alahmad,

 

NI provides Invoke Node which can apply to switch the slave mode in the program.

image.png

Message 3 of 4
(2,745 Views)

Hi zhengchen,

 

Yes! That did the trick. It completely passed my mind that I can use an invoke node. Thanks!

 

Regards,

Omar

0 Kudos
Message 4 of 4
(2,736 Views)