Why does ZMotion Technology’s XPLC516E motion controller embed the Linux OS? What are its benefits?
Before we talk about the advantages of the XPLC516E embedded Linux platform, let me introduce the advantages of the Linux OS itself.
Linux systems have become one of the most popular systems currently, as it is completely free open source, and supports multi-user, multi-task, multi-thread and multiple CPUs based on POSIX and Unix. Also supports operating systems.
The Linux platform OS series inherits the properties of Unix. It has extremely powerful network function and complete tool-link. In addition, the required development environment can be configured through simple operations. Then, the Linux platform can simplify the development process, and create systems with strong portability.
And XPLC516E, this motion controller with open Linux system on board, supports users to add application software freely under Linux platform. And it is convenient to install Qt and other software for XPLC516E. In addition, the human-machine interaction user interface through Qt development is valid for the XPLC516E Linux controller, and files can be directly uploaded and loaded by the U disk (typically, for reading and writing U disk on a bare computer). The code needs to be edited after embedding the system, it can be used like plugging a U disk into a computer).
XPLC516E achieves 16-axis motion control, supports linear interpolation, any spherical interpolation, space arc, helical interpolation, electronic cam, electronic gear, synchronous follow, virtual-axis setting, etc., and optimized real-time motion control Can be accessed via network communication protocol. Again, these advantages of the ZMotion XPLC516E combine well with the Linux platform OS. Details will be shown below.
At the same time, XPLC516E has multiple camera hardware interfaces, and the third party vision is valid. XPLC516E Linux controller is widely used in 3C electronics, laser processing, printing and packaging, automatic assembly line, electronic semiconductor, textile and apparel, robot, special machine, stage and entertainment, medical equipment, etc.
Helps you learn effective, there are videos, pictures and word descriptions.
lets start !
01. Hardware Configuration
(1) an XPLC516E Linux motion controller
(2) a 24 V DC power supply
(3) a network cable
(4) A display screen with HDMI interface
(5) One HDMI connecting line
(6) a keyboard
(7) a mouse
02. Development Software and Platforms
A. Development Software
ZDevelop software: ZMotion provides powerful ZDevelop development environment, it supports ZBasic, ZPlc Ladder of Diagram and ZHmi configuration development, and hybrid program is valid. At the same time, there is a simulator for offline operation. What’s more, ZDevelop can obtain the real-time clock and debug to program the motion controller running.
Qt software: XPLC516E controller is compatible with Linux system, which means XPLC516E supports human-machine interaction interface through Qt development. Qt development is valid through virtual Ubuntu system, it is also useful by installing Qt software in controller to develop.
WinSCP software: It is used to transfer files between PC and controller. If using virtual Ubuntu system’s Qt to develop the project, we can download the developed Qt project to XPLC516E controller.
B development platform
Controller Linux Desktop, XPLC516E Motion Controller supports Linux OS, and provides Qt software (version 5.5.1), plus, embedded Qt development is validated. In ZMotion Technology, there are Qt dynamic link libraries with powerful and complete functions and easy to understand function library manual of motion control, which includes strong portability of code, then, motion control development becomes easy, and intelligent equipment development. Duration can be greatly reduced.
03. How to wire?
For the controller hardware interface, please see above, connect the mouse and keyboard with the HDMI interface to the displayer, then install the Qt software to develop the project.
04. How to develop the project through Qt software?
–Windows Qt Development and Linux Qt Development– both ok.
(1) Build a Qt project using Qt software.
(2) Copy the dynamic library and related files (libzmotion.so, zaux.cpp, zaux.h, zmotion.h) to the newly created Qt project.
(3) Add dynamic libraries (libzmotion.so) to the Qt project.
One. Right click on the project, then click “Add Library”.
b. Second select “External Libraries”, and click “Next”.
C. Click “Browse” to view the library files, select the dynamic library you just copied, then click “Next.”
D. Click “Finish”, the dynamic library has been added successfully.
Note: The name of the dynamic library must start with “lib”, then it can be recognized
(4) Add the head files (zmotion.h, zaux.h) to the Qt project.
One. Right click on “Headers”, click “Add Existing Files…”.
b. Find the zmotion.h file that is just copied and entered into the project, double click on zmotion.h, then, the head file “zmotion.h” can be added to the project.
C. Repeat above two steps, also add zaux.h file to the project.
(5) Add the cpp source file (zaux.cpp) to the Qt project.
One. Right click on “Sources”, click “Add Existing Files…”.
b. Find the “zaux.cpp” file that has just been copied and entered into the project, double click on “zaux.cpp”, then, the source file “zaux.cpp” can be added to the project.
(6) Add #include “zmotion.h”, #include “zaux.h” to the widget and define the controller’s link handle.
(7) Use the slot function of the button, connect the controller via Ethernet.
One. Add a button to Qt’s UI design interface, and name it as “Link”. Then, right click on “Link” — Go to Slot… to jump to the slot function of this button…
b. Refer to the ZMotion PC program manual to learn how to use the Ethernet for connecting function.
C. Edit code in slot function as per PC manual — ZAux_OpenEth.
(8) The controller receives the interpolation speed — the code achievement process.
One. Add a button to Qt’s UI design interface, and name it as “move”. Then, right click on “Move” — go to Slot… to jump to the slot function of this button.
b. Check the ZMotion PC program manual to learn how to use the Multi-Axis Interpolation Motion Interface function.
C. Next, edit the code in the slot function according to the PC manual — ZAux_Direct_Move to achieve multi-axis interpolation.
(9) Compile Qt program, then test task achievement effect.
One. Compile Qt project.
b. Click “Link” button, connect to controller, at the same time, use ZDevelop software to connect to controller to view axis parameter.
Note: When the upper computer uses Ethernet to connect to the controller, the controller and PC must be in the same net segment.
(10) Download to the controller to run the Qt program developed by the PC. Qt project on PC can be downloaded to controller via U disk or WICSCP software.
That’s all, thanks for your reading — How to use the ZMotion XPLC516E motion controller (1) on the Open Linux platform? – Detailed steps through Qt development.
For more details, 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, regular code), product showing , company development, etc.
Hope to meet you, hope to talk to you and make friends with you. Welcome!
This article is edited by ZMOTION, here, share with you, let’s learn together. ZMOTION: Try your best to use the motion controls.
Note: Copyright belongs to ZMotion technology, if reproduced, please indicate the article source. Thanks .
ZMOTION Technology has attracted experienced talents from well-known companies or institutions, such as Huawei, ZET, Huazhong University of Science and Technology, etc. ZMOTION insists on self-innovating and cooperating with comprehensive universities, to research the basic knowledge of motion control. Due to its concentration and hard work in motion control technology, ZMOTION has already become one of the fastest growing industrial motion control companies in China, and is also the rare company that has developed the core of motion control and real-time industrial control software. Techniques are fully managed.
ZMotion Technology provides motion control cards, motion controllers, sight motion controllers, expansion modules and HMIs. (More keywords for ZMOTION: EtherCAT motion control card, EtherCAT motion controller, motion control system, vision controller, motion control PLC, robot controller, vision positioning…)
Linux OS: https://en.wikipedia.org/wiki/Linux
ZMotion PC Program Manual: http://www.zmotionglobal.com/index.html
Application: Applications, ZMOTION Technology (zmotionglobal.com)
Video Description: https://youtu.be/68n4_4Hyufc
More Articles: Technical Support, ZMOTION Technology (zmotionglobal.com)