I want to find...

Search

Libraries

Table of Content

[Start Guides] 86HMI Editor and ArduBlock: Simple HMI Stepper Motor Control Example

This example shows how to quickly implement stepper motor control on the 86Duino platform, covering HMI button design with 86HMI Editor and drag-and-drop programming with ArduBlock.

Stepper Motor Control Example tips

For users who are new to the platform, a step-by-step guide is also available to help you set up the development environment and get started with your first project: Getting started with the 86Duino

1. Hardware Setup

The hardware setup uses the QEC-M-070T as the EtherCAT MDevice controller and the QEC-R11MP3S-N as the SubDevice stepper motor driver:

  • QEC-M-070T – EtherCAT MDevice HMI solutions used for interface design and control logic execution
  • QEC-R11MP3S-N – EtherCAT motion control with 3-axis Stepper Motor Controller
  • 24V power supply
  • Ethernet cable (for EtherCAT communication)

2. Implementation Steps

The implementation process can be divided into three main steps.

  1. First, use 86EVA to scan and configure the EtherCAT devices. This step ensures that all connected EtherCAT slaves are correctly detected and properly configured.
  2. Next, design the HMI interface using 86HMI Editor. The interface can include buttons, text, and other visual elements required for motion control.
  3. Finally, create the control logic using ArduBlock. By combining the EtherCAT configuration and HMI interface, the function can be completed and operated through the HMI.

2.1 Step 1 – 86EVA Configurator

  1. Set up the development board and port to be used in tool option
    Stepper Motor Control Example tips_pic
  2. Click the 86EVA Configuration Tool
    Stepper Motor Control Example tips_pic
  3. Click to Connect to scan the device
    Stepper Motor Control Example tips_pic
  4. Scanning Device
    Stepper Motor Control Example tips_pic
  5. Configure QEC-M-070T and QEC-R11MP3S-N devices in 86EVA network
    Stepper Motor Control Example tips_pic
  6. Set up the QEC-M-070T Parameters (As shown in the illustration)
    Stepper Motor Control Example tips_pic
  7. Set up the QEC-R11MP3S-N M1 in the servo mapping
    Stepper Motor Control Example tips_pic
  8. Set up the servo 1 parameters (As shown in the illustration)
    Stepper Motor Control Example tips_pic
  9. Back to 86EVA to click Code Generation
    Stepper Motor Control Example tips_pic
  10. Scanning is complete and click OK to confirm
    Stepper Motor Control Example tips_pic

2.2 Step 2 – 86HMI Editor UI Design

  1. Click the 86HMI Editor Tool
    Stepper Motor Control Example tips_pic
  2. Select the board and Click OK
    Stepper Motor Control Example tips_pic
  3. Edit Text: Label > Text (Type the text inside the field)
    Stepper Motor Control Example tips_pic
  4. Add control button: Button (p1b1) > Edit the button text (Type the text inside the field)
    Stepper Motor Control Example tips_pic
  5. Add control button: Button (p1b2) > Edit the button text (Type the text inside the field)
    Stepper Motor Control Example tips_pic
  6. Upload to Generate Example Content
    Stepper Motor Control Example tips_pic

2.3 Step 3 – ArduBlock Programming

  1. Click the ArduBlock Tool
    Stepper Motor Control Example tips_pic
  2. ArduBlock Work Area
    Stepper Motor Control Example tips_pic
  3. EtheCAT Motion Setup: EtherCAT.Motion > servo setup
    Stepper Motor Control Example tips_pic
  4. Setting the parameter (As shown in the illustration)
    Stepper Motor Control Example tips_pic
  5. Add HMI Visual Block: HMI.Visual > HMI Event Section
    Stepper Motor Control Example tips_pic
  6. Add Control Button: HMI.Control > if Button is clicked
    Stepper Motor Control Example tips_pic
  7. EtheCAT Motion Setup: add move to block
    Stepper Motor Control Example tips_pic
  8. Add Condition Block: while block
    Stepper Motor Control Example tips_pic
  9. EtheCAT Motion Setup: add is moving
    Stepper Motor Control Example tips_pic
  10. Right-click to clone the whole control block (As shown in the illustration)
    Stepper Motor Control Example tips_pic
  11. Set up the parameters, and upload to Generate Example Content
    Stepper Motor Control Example tips_pic
  12. Save draft (Please select the folder where you want to save it)
    Stepper Motor Control Example tips_pic
  13. Upload and compile the sketch
    Stepper Motor Control Example tips_pic

3. Demonstration Result

  1. Results Presentation
    Stepper Motor Control Example tips_pic

For more info and sample requests, please write to info@icop.com.tw, call your nearest ICOP Branch, or contact our Worldwide Official Distributor.

Scroll to Top