<

Bring Values and Sucesses To Our Customers

Home / Support and services / Technical Support

Technical support

Technical Support

ZMotion Motion Control Development Tutorial in LabVIEW (2) -- Homing Routine Motion

Today, ZMotion shares how to do wiring for EtherCAT motion control card ECI2828 and how to use LabVIEW to do hardware external reading & writing and to do homing motion.


Let's begin, learn together !



PART
01
ECI2828 Motion Control Card Hard Introduction

ECI2828 series motion control card supports linear interpolation of up to 16 axes, including any circular interpolation, space arc, helical interpolation, electronic cam, electronic gear, synchronous follow, virtual axis, robot structure, etc. In addition, real-time motion control can be achieved through optimized network communication protocol.

Also it is valid for ECI2828 to connect Ethernet, 232 communication interface to computer, then it receives computer's instructions to run. What's more, each expansion module can be connected through EtherCAT bus and CAN bus to extend inputs, outputs or motion axes.

image 1.png

Application programs of ECI2828 series motion control card can be developed by VC, VB, VS, C++, C#, etc., and dynamic library "zmotion.dll"is needed when program is in motion. At the same time, ZDevelop and controller can be connected for debugging easily and watching conveniently

image 2.png






PART
02
Do Motion Control Development Through LabVIEW

(1) download "zauxdll" folder of LabVIEW Vi function library into the computer, then copy it into folder "labview/user.lib" under Labview install routine.

image 3.png

(2) Check PC Function Manual to Know Relative Function Interfaces.

① For ZPC Program Manual, please visit here, or contact me.

② For PC program, generally if net port is used to connect controller and IPC, then "ZAux_OpenEth()"is the function interface. If connected, this interface will return one link handle. And controller can be controlled by operating this link handle.

image 4.png

③ Operate link handle "g_handle" through relative instructions set by axis parameters, and do axis parameter configuration for controller. Please see below form.

image 5.png

image 6.png

axis type configuration

image 7.png

axis pulse amount configuration

-- For other axis parameter configuration, please check "ZMotion PC Function Library Program Manual" --

④ Operate link handle "g_handle" through instructions relat to single axis motion, and do single axis motion control for controller. Please see below form.

→ single axis homing motion

image 8.png

→ set positive position limit signal:

image 9.png

→ set negative position limit signal:

image 10.png

→ set signal invert:

image 11.png

→ set homing signal:

image 12.png

(3) LabVIEW Develops Homing Motion

new build Vi, in the front board, right click mouse to select widget to do UI design.

image 13.png

② after UI interface is designed, enter program block diagram, relative wiring terminals of each widget can be viewed.

image 14.png

③ right-click in the program edit box, select "Programming" - "Structure" - "Tile Sequence Structure", then select the tile sequence structure and right-click, and select "Add Frame in Front" to achieve the following effect, and initailize local variables.

image 15.png

in program edit box, select "Tile Sequence Structure" through mouse, then right click to select "Add Frame In Behind", next add "while loop" in added behind frame, add "event structure" into "while loop". Then, motion status, motion speed and position of controller can be real time watched through the "timeout processing" in event structure.

image 16.png

⑤ select event structure, right click to select event branch, and select "connect" value changing. Then, use "ZAux Open Eth.vi" function to connect to controller in this event branch, which means controller connection button function can be achieved.

image 17.png

⑥ select event structure, right click to select event branch, and select "disconnect" value changing. Then, use "ZAux Close.vi" function to disconnect to controller, which means controller disconnection button function can be achieved.

image 18.png

⑦ select event structure, right click to select event branch, and select "start homing" value changing. Then, use relative Vi functions in this event branch to set motion parameters of controller and to move, which means controller "move" button function can be achieved.

A. call the Vi function related to the axis parameter setting in the 0th frame of the "cascade sequence structure "in the event branch, and first set the controller axis parameters.

image 19.png

B. call frame 1 of "cascade sequence structure "in the event branch to configure signal position, homing position, position limit and analog.

image 20.png

C. call action homing motion in frame 2 of "cascade sequence structure "in the event branch.

image 21.png

⑧ select event structure, right click to select "add event branch", and select "stop" value changing. Then, use "ZAux Direct Single Cancel.vi" function to stop controller motion, which means controller stop button function can be achieved.

image 22.png

⑨ select event structure, right click to select "add event branch", and select "coordinate clearing" value changing. Then, use "ZAux Direct Set Dposl.vi"function to set controller axis position as 0, which means coordinates clearing button function can be achieved.

image 23.png






PART
03
Debug and Watch

-- Compile running routine, at the same time, connect to ZDevelop software to debug, then watch motion control axis parameters and motion situation --

(1) Connect to ZDevelop software, then watch controller status through axis parameters (in the right of ZDevelop). Also, open oscilloscope through "View" -- "Scope" to watch.

image 24.png

(2) Run upper computer software to debug and watch.

image 25.png

(3) " Video Description "

image 26.jpg





That's all, thank you for your reading -- Application Development Tutorial in LabVIEW.

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 Technology provides 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...)





Reference
  1. LabVIEW: https://en.wikipedia.org/wiki/LabVIEW

  2. Video Description: https://www.youtube.com/channel/UCUeMHePZfrfBYM4_KtH_Euw/featured

  3. ZMotion Technology: https://www.zmotionglobal.com

  4. Contact us: http://www.zmotionglobal.com/contactus.html

  5. ZMotion PC Program Manual: http://www.zmotionglobal.com/upload/Zmotion%20Program%20Manual%20V2.1.pdf

  6. ZDevelop Software: http://www.zmotionglobal.com/download_list_14.html

  7. ECI2828 Motion Control Card: ECI2828,PRODUCTS,ZMOTION TECHNOLOGY (zmotionglobal.com)

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

Contact Us-Youtube