Bring Values and Sucesses To Our Customers

Home / Support and services / Technical Support

Technical support

Technical Support

EtherCAT motion control card -- Custom Curve

"Today ZMotion shares customized motion curve application of EtherCAT motion control card, exactly, ZMotion will introduce how to encapsulate Basic instructions that you want to use into upper computer interface through online command. "




I: Hardware introduction of ECI2828 motion control card

ECI2828 series cards support 16 axes at most for linear interpolation, any circular interpolation, space arc, helical interpolation, electronic cam, electronic gear, synchronous follow, virtual axis, robotic arm instructions, etc., and real time motion control can be achieved through optimized communication protocol.


ECI2828 series cards support Ethernet, 232 communication interface connection with computer, then receive instructions from computer. In addition, each expansion module can be connected through EtherCAT bus and CAN bus for expanding inputs, outputs or motion axes.

ECI2828 series cards' application programs can be developed through VC, VB, VS, C++ and several kinds of advanced languages. And there needs the dynamic library "zmotion.dll" for program running. While debugging, ZDevelop software (add internal link) can be developed connected to controller at the same time, then it is more convenient to debug and observe.

ECI2828 ying.png

There are rich hardware interfaces on ECI2828.It has 8 local pulse axes, virtual axis can reach 16, and each axis is with independent encoder. What's more, there are 24 general inputs (4 high-speed inputs can be used as high-speed latch), 16 general outputs (4 high-speed outputs can be used to achieve PSO of 4 channels), 2 ADs and 2DAs on this motion control card board.


   And:

  • One RS232 serial port

  • One Ethernet interface

  • One CAN bus interface: connect to expansion module through ZCAN protocol

  • One CANOPEN interface (valid with software version support)

  • One EtherCAT bus interface: expand digital IOs, analog IOs, pulse positioning module, etc.

  • One handwheel interface


ECI2828.png



II. Qt development of motion control card

1. Build new Qt project

image 1.png

image 2.png


image 3.pngimage 4.png

(1) Copy files that relate to function library to new built project.

image 5.png

(2) Add static library of function library into new built project. (zmotion.lib)

image 6.png

image 7.png  

image 8.png

3) Add head files that relate to function library to project (zmcaux.cpp zmcaux.h Zmotion.h)

image 9.png

(4) Declare relevant head files, and define link handle.

image 10.png



2. PC function introduction

(1) PC function library manual can be got from ZMotion Manuals (or zlm@zmotion.com.cn)

(2) For PC programming, there needs to build the connection between upper computer and controller. Like motion control card connection, use net port, details as follow:

image 6 (指令7).png

(3) If you want to encapsulate Basic instruction as upper computer, the interface that can be directly called must use "online command" interface to do function encapsulation. Below is online command interface description.

image form.png

image instruction 16 & 17.png

(4) Encapsulation example: SPEED of Basic instruction.

image 11.png



3.Qt does encapsulation of Move_Pt instruction to achieve motion of custom curve

(1)Qt interface of customized curve as follow:

image 12.png

(2)Bind one channel function with Click Event of [connect] connect button through Qt to do controller connection.

image 13.png


(3)Update position and speed message of each axis through timer.

image 14.png

(4)Introduction: Basic -- Move_Pt

MOVE_PT.png

(5)Move_Pt interface encapsulation

image 15.png


A.Encapsulate interface through "ZAux_DirectCommand()"

image 15.png

B.Qt routine calls the interface encapsulated just now. -- MyApi::ZAux_Direct_MovePt()
image 16.png
image 17.png
C. Oscilloscope capture

image 18.png

(6)One API is encapsulated through sending several move_ptabs commands to process.

A.Send encapsulations of several move_ptabs commands.

image 19.png

B.Qt routine calls the interface encapsulated just now -- MyApi::ZAux_Direct_MovePtAbsS()

image 20.png

C.Qt collects position data of axis motion, and generate position wavaform.

image 21.png

D.Capture waveform to check effects.

a.Y=((-sin(PI*2*i/T)/(PI*2))+i/T)*500 speed and position curve

image 22.png

b.Qt captures Y=((-sin(PI*2*i/T)/(PI*2))+i/T)*position curve of 500

image 23.png



That's all, thank you for your reading -- EtherCAT motion control card -- Custom Curve

For more information, please pay close attention to "Support" and "Download" , and there are other platforms about ZMOTION -- Youtube & LinkedIn & Twitter & Tiktok & Facebook , including technical information (development environment, routine code), product showing, company development, etc.

Hope to meet you, talk with you and be friends with you.
Welcome!

This article is edited by ZMOTION, here, share with you, let's learn together. ZMOTION: DO THE BEST TO USE MOTION CONTROL.
Note: Copyright belongs to ZMotion Technology, if there is reproduction, please indicate article source. Thank you
.

ZMOTION Technology  has attracted experienced talents from famous companies or institutions, such as Huawei, ZET, Huazhong University of Science and Technology etc. ZMOTION insists self- innovating and collaborating with comprehensive universities, to research basic knowledge of motion control. Due to its concentration and hard work in motion control technology, ZMOTION already become one of the fastest growing industrial motion control companies in China, and is also the rare company who has managed core technologies of motion control and real time industrial control software completely.            

 

ZMotion Technologyprovides motion control card, motion controller, vision motion controller, expansion module and HMI. (more keywords for ZMOTION: EtherCAT motion control card, EtherCAT motion controller, motion control system, vision controller, motion control PLC, robot controller, vision positioning...)

Copyright © 2013-2024 Shenzhen Zmotion Technology Co.,Ltd Design by Zmotion    粤ICP备13037187号 Motion Controller-Motion Control Card

Contact Us-Youtube