<

Bring Values and Sucesses To Our Customers

Home / Support and services / Technical Support

Technical support

Technical Support

ZMotion Motion Control Development Tutorial in LabVIEW (5) -- Small Segment Continuous Interpolation | Look Ahead

Today, ZMotion shares how to do hardware wiring for EtherCAT motion control card ECI2828 and how to use LabVIEW to process motion development of continuous interpolation for small segments.


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

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

④ Operate link handle "g_handle" through instructions that are relative to axis parameters configuration, set axis parameters for controller, and look-ahead modes are below.

image 6.png

set corner deceleration:

image 7.png

set corner deceleration angle:

image 8.png

set small-round speed limit radius:

image 9.png

read global variables:

image 10.png



(3) Look ahead motion of small-segment continuous interpolation through LabVIEW.

① new build Vi, in the front board, right click mouse to select widget to do UI design. Please see image, the left is connection interface, the right is the position of point corresponding to multiple segments.

image 11.jpg

② right-click in the program edit box, select "Programming" - "Structure" - "Tile Sequence Structure", and select "Add Frame in Behind", then add "while" loop in added frame, add "event structure" in "while" loop.

Through "timeout" processing in event structure, watch controller's motion status, motion speed, motion position, remain buffers and current mark running line No..

image 12.jpg

③ select event structure, right click to select "add event branch", then select "connect" value changing. In this event branch, use "Z Aux Open Eth.vi" function to do connection with controller for achieving "connect to controller" button function.

image 13.jpg

④ select event structure, right click to select "add 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 14.jpg

⑤ select event structure, right click to select "add event branch", and select "coordinate clearing" value changing. Then, use "Z Aux Direct Set Dpos.vi" function to set axis position of controller as 0, which means controller coordinate clearing button function can be achieved.

image 16.jpg

⑥ select event structure, right click to select "add event branch", and select "stop" value changing. Then, use "Z Aux Direct Single Cancel.vi" function to achieve axis motion stop function.

image 16.jpg

⑦ select event structure, right click to select timeout event, and select "start" 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 and open continuous interpolation function.

image 17.jpg

B. call frame 1 of "cascade sequence structure "in the event branch to set relative look-ahead mode and other parameters that correspond to Vi function, such as, acceleration and deceleration, initial speed, deceleration angle, stop angle, etc., motion process becomes smoother.

image 18.jpg

C. call "action" small-segment continuous interpolation motion in frame 2 of "cascade sequence structure "in the event branch, and judge whether remain buffer is enough for keeping loading and entering, also read the current motion mark No. and show in the interface.

image 19.jpg






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) "CornerMode" function -- look-ahead configuration description

The speed look-ahead function of the system can carry out overall planning for instructions, namely, the overall planning of the speed of each segment, and then cooperate with the acceleration and deceleration control in the command segment, then the machine tool can maintain high-speed operation, improve efficiency, and make the load movement smoother, the system is realized through the Merge speed fusion function.

On the other hand, on the basis of ensuring high-speed operation, in order to limit mechanical impact and overcut, etc., it is necessary to perform deceleration identification, and identify trajectory changes in advance.

Thereby decelerating in advance according to the safe deceleration rate, and the system realizes it through the deceleration/stop fusion function and the shock suppression function. On the whole, the speed forward function can not only improve the efficiency of the whole machine, but also reduce the impact and increase flexibility, reduce the wear and tear of parts, and increase the service life of equipment.

Corner deceleration function can solve problems, when the angle between the commands is too large, if it is still running at a high speed, a large mechanical impact will be generated at the angle, and the trajectory will deviate.

Then the controller will identify the included angle of trajectory changes between commands in advance, compare its relationship with the deceleration/stop angle, and decide whether to decelerate in advance to ensure a smooth transition at the command connection.

image 20.jpg


(2) Watch axis motion through oscilloscope

As shown in the figure below, when OA transitions to position AB, the angle is smaller than the deceleration angle, and S1-S2 does not decelerate. When AB transitions to BC, the angle is greater than the deceleration angle, and the deceleration process is performed. For example, S2-S3, BC transitions to CD If the angle is greater than the stop angle, the speed needs to be reduced to 0, as in S3-S4 section position processing.

Connect the ZDevelop software to monitor the controller status through the axis parameters on the right side of the software, or click "View" → "Scope" to open the oscilloscope to watch the axis movement.

image 21.jpg

A. After opening chamfer mode, image running effect will process chamfer in the corner, please see below.

image 22.jpg

B. After opening corner deceleration mode, corner position will process when the angle of corner achieved one certain deceleration angle or stop angle.

image 23.jpg

C. Video Description: zmotionglobal@7322

image 24.jpg








That's all, thank you for your reading -- Application Development Tutorial in LabVIEW (5) | Small Segment Continuous Interpolation & Look Ahead Function

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