Error -2147138483 When Changing EtherCAT Slave State Programmatically

Updated Jun 21, 2023

Reported In

Software

  • LabVIEW

Driver

  • NI-Industrial Communications for EtherCAT

Issue Details

I am trying to change the EtherCAT slave device state programmatically when the Scane Engine is already in Active Mode.
Unfortunately, I am receiving a Timeout error which is shown in the picture below:
 
image (1).png
 
I want to realize an automatic EtherCAT device state change to an Operational state without changing the Scan Engine mode by using LabVIEW.

Solution

In order to change the EtherCAT slave state we need to change the Scan Engine mode to Configuration and then proceed with the slave states. When the scan engine is already in Active Mode, it is not possible to change the EtherCAT slave state.
The screenshot below represents a VI that programmatically changes the EtherCAT slave states.
Image_2022-12-20_21-31-18.png
  
In addition to the VI above, we need to change the Scan Engine state programmatically as shown in the screenshot below: 
 
image.png