Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated

Why Do I Receive Warning 66030 When Trying to Access I/O in My EtherCAT Chassis Operating in FPGA Mode?

Primary Software: LabVIEW Modules>>LabVIEW FPGA Module
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Modules>>LabVIEW Real-Time Module
Hardware: CompactRIO>>Chassis (Backplanes)>>NI-9144

I have successfully compiled and downloaded an FPGA bitfile to my NI 9144/9145 EtherCAT chassis. However, when trying to access the I/O on my EtherCAT master, I am receiving Warning -66030: The operation cannot be completed because one of the scanned I/O buses is not in the required I/O mode.

Moreover, the user-defined variables are not updating with the most recent I/O values. How do I resolve this issue?

This warning is thrown when trying to access the FPGA when the Scan Engine Startup Mode is set to Configuration Mode. To note, Configuration Mode is necessary to download the FPGA bitfile to the target, however, once the bitfile has been downloaded, you need to switch the Startup Mode to Active Mode in order to run the bitfile and access the I/O.

The simplest way to accomplish this is to call Set Scan Engine, which sets the operating mode of the NI Scan Engine on the target, from a VI running on the EtherCAT master, such as a CompactRIO. The following example code implements this functionality:

Figure 1: VI Snippet of Set Scan Mode VI from calling VI running on the EtherCAT master

You can run this VI interactively and select Configuration Mode when you want to download an FPGA bitfile and Active Mode when you want to actually run the FPGA for I/O access.

As such, a common procedure for accessing I/O in an NI 9144/9145 when operating in FPGA mode is as follows:
  1. Develop and compile an FPGA bitfile using LabVIEW FPGA and the appropriate compile tools.
  2. Set the Scan Engine to Configuration Mode.
  3. Download the bitfile to the FPGA target.
  4. Set the Scan Engine to Active Mode.
  5. Run your application software to access the I/O on the NI 9144/9145.

Related Links:
White Paper: Setting Up EtherCAT on NI Programmable Automation Controllers
White Paper: Programming EtherCAT I/O With FPGA Intelligence
White Paper: NI EtherCAT RIO: Deterministic Expansion for LabVIEW RIO Systems


Report Date: 04/10/2017
Last Updated: 09/29/2017
Document ID: 7K9D9OY7

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit