AN 961: IO Module Design Example for OPC UA: for Intel® MAX® 10 Devices

ID 691266
Date 10/30/2021
Public

Running the IO Module Design Example

  1. Connect an Ethernet cable to the Intel MAX 10 port A (bottom port) to the same router the windows PC is connected to, and a USB cable between the Intel MAX 10 device and the PC.
  2. Program the Intel MAX 10 with ".sof" hardware output file generated during compilation:
    1. Open the Intel Quartus Programmer.
    2. Select USB blaster.
    3. Select Auto Detect and mark 10M50.
    4. Select Change File and navigate to the .sof within /output_files/ in your Quartus project directory.
    5. Turn on Program and Configure.
    6. Click Start to configure the FPGA on the development board using the .sof. The programmer shows Successful in the top-right corner.
  3. Run the FreeRTOS project in Nios II Eclipse:
    1. Right-click the project.
    2. Click Run as > Nios II Hardware > ..
      Figure 13. Running a project in Eclipse
      Figure 14. Nios II Eclipse terminal expected printout
  4. Open UAExpert on the Windows PC:
    1. Add server.
    2. Set custom discovery: opc.tcp://<device IP>.
      Figure 15. Adding the IO module in UA Expert.
  5. Connect to the server and add nodes from the left pane (drag and drop).
    Figure 16. UAExpert client with example data
  6. In the Value column try to modify values for the LEDs and press the push buttons, move the potentiometer, and observe the changes in the board and in the UAExpert GUI.
  7. Turn off the design:
    1. Close UAexpert connection.
    2. Stop the program in Nios II Eclipse.
    3. Turn off and disconnect the Intel MAX 10 Development Board.