精品视频区I国产区av在线I不卡的av中文字幕I精品国产乱码一区二I免费观看mv大片高清Iaaaaaa毛片I97精品欧美91久久久久久I中国精品少妇

Motion control card application development tutorial laser galvanometer control

2020-12-30

Today, Positive Motion Technology will share with you the application of C++ to develop a motion control routine for laser galvanometer.

We mainly start with creating a new MFC project, adding a function library, and finally explain the actual project-laser galvanometer marking routines to familiarize everyone with its project development.

Before the formal study, we first understand the motion controller ZMC420SCAN of positive motion technology. This product is a 20-axis motion controller.

ZMC420SCAN bus controller supports ECAT/RTEX bus connection, supports up to 20 axis motion control, supports linear interpolation, arbitrary arc interpolation, spatial arc, spiral interpolation, electronic cam, electronic gear, synchronous follow, virtual axis setting Etc.; Real-time motion control can be realized by using optimized network communication protocol.

ZMC420SCAN bus controller supports mixed interpolation of pulse axis/bus axis/galvanometer axis.

ZMC420SCAN supports 10 channels of pulse output and encoder feedback and supports 4 channels of galvanometer axis, onboard 24 input, 12 output, 2AD, 2DA, all output ports support high-speed PWM control.

The wiring method is shown in Figure 1 below:


圖片


圖1
ZMC420SCAN uses a set of API functions, supports C, C++, C#, LabVIEW, Python, Delphi and other development languages, supports VC6.0, VB6.0, Qt, .Net and other platforms, supports Windows, Linux, WinCE, iMac and other operating systems .



圖2

圖片


The PWM output of ZMC420SCAN is controlled by the normal output function. The PWM output can only be performed when the output port is "ON", which is convenient for controlling laser energy.

The output 0-7 of ZMC420SCAN has the function of precise output. The precise output function of each output is independent of each other. Through MOVEOP_DELAY and AXIS_ZSET, you can set whether each MOVE_OP instruction uses precise output and the delay of precise output, so as to realize the laser PSO control.

The output 0-7 of ZMC420SCAN supports precise output and is independent of each other. Through commands: MOVE_OP, AXIS_ZSET, MOVEOP_DELAY to control the laser switch, precise output switch and delay, so as to realize the laser PSO control.

Galvanometer axis:

ZMC420SCAN supports XY2-100 galvanometer protocol, supports motion control and galvanometer joint interpolation movement.

The host computer is connected with the controller through the network port, and obtains the handle of the corresponding controller, controls the galvanometer axis through the XY2-100 protocol, and controls the servo or stepping axis through the bus protocol or pulse mode.


圖片

圖片


The local axis number 4/5 can be configured as the first galvanometer with ATYPE=21, and the local axis number 6/7 can be configured as the second galvanometer with ATYPE=21, and the axis number can be configured through AXIS_ADDRESS.

The following is the development process of laser galvanometer control



New MFC project Add function library


1. In the VS2017 menu "File" → "New" → "Project", start the project creation wizard.

圖片

2. Select the development language as "Visual C++" and "MFC Application" in the program type "MFC/ATL".

圖片

3. Select the type as "Dialog-based", next or finish. The next step is to continue the configuration, and just complete it directly. Select the type, and the others can be edited in the project.

圖片

4. Find the CD-ROM data provided by the manufacturer, the path is as follows (64-bit library as an example):


A. Enter the CD data to find the PC function folder.


B. Select function library 2.1.


C. Windows platform.


圖片

D. Select the corresponding function library according to your needs. Here, select the 64-bit library.


E. Decompress the C++ compressed package, which contains the C++ corresponding function library.


F. The specific path of the function library is as follows.


圖片

5. Copy the C++ library files and related header files provided by the manufacturer to the newly created project.


6. Add static libraries and related header files to the project.


Static libraries: zauxdll.lib, zmotion.lib


Related header files: zauxdll2.h, zmotion.h


A. First right-click the header file, and then select: "Add" → "Existing Item".


圖片

B. In the pop-up window, add static libraries and related header files in turn.

圖片

7. Declare the header file used and define the controller connection handle.

圖片

At this point, the new project is completed.

 




Check the PC function manual to understand its usage


1. The PC function manual is also in the CD-ROM, the specific path is as follows:

圖片

2. PC programming, generally first select the corresponding connection function to connect to the controller according to the controller connection mode, and return the controller handle. Then use the returned controller handle to control the controller.


3. For example, to connect the controller through the network port, first use ZAux_OpenEth() to link the controller to obtain the controller handle.




4. Set the laser galvanometer axis type to the controller through the acquired controller handle.

圖片

The value of the third parameter has the following mode selections. To use the galvanometer axis, you need to select the axis type 21 mode. Set the axis to the galvanometer axis type. The system cycle and refresh cycle of the galvanometer axis type are much faster than the ordinary axis.

圖片

5. Through the acquired controller handle, the galvo axis of the controller is controlled to perform multi-axis motion control, and the galvanometer axis can be matched with the ordinary axis for mixed interpolation motion.

圖片


 



主站蜘蛛池模板: 欧美另类人妖 | 国产经典三级 | 99精品欧美一区二区三区黑人哦 | 久草爱| 四虎永久精品在线 | 又黄又爽又湿又无遮挡的在线视频 | 二区视频在线观看 | 国产1区2区3区精品美女 | 天天狠狠操 | 国产日韩精品在线观看 | 色91av | 亚洲国产偷 | 又粗又长又大又爽又黄少妇毛片 | 日韩在线免费播放 | 国产伦理久久精品久久久久_ | 久久精品老司机 | 麻豆91网站 | 久久国产香蕉视频 | 99久久www免费 | 日日日干| 97精品在线| 久久精品2 | 特级西西444www大胆高清无视频 | 麻花豆传媒一二三产区 | 色婷婷激婷婷情综天天 | 西西大胆免费视频 | 成人av资源网 | 亚洲精品国产综合99久久夜夜嗨 | 91在线porny国产在线看 | 久久一级片 | 中文字幕在线观看第一区 | 91av资源在线 | 欧美日韩69 | 久久久伦理 | 国产亚洲精品精品精品 | 国产我不卡| 国产一区二区免费看 | 日韩69av| 视频直播国产精品 | 黄色www| 国产一区二区久久久久 | 国精产品一二三线999 | 91精品推荐 | 丁香电影小说免费视频观看 | 九九九九精品 | 九九九九九精品 | 在线观看av中文字幕 | 国产精品video爽爽爽爽 | 欧美欧美 | 麻豆成人小视频 | 麻豆91在线观看 | 日韩在线视频线视频免费网站 | 免费在线观看不卡av | 成年人免费看片 | 国产探花视频在线播放 | 亚洲一级免费观看 | 狠狠gao| 91色欧美| 欧美日韩网址 | 成人午夜黄色 | 国产精品免费在线播放 | 国产综合福利在线 | 亚洲激情综合 | av片中文字幕 | 免费黄色在线网址 | 国产视频2区 | 日日夜夜操操操操 | 在线观看免费av片 | www免费 | 国产小视频在线免费观看 | 国产精品大片 | 国产精品美女免费视频 | 欧美激情视频一区 | 91av视频网| 九九热视频在线免费观看 | 国产精品高清在线 | 欧美精品v国产精品 | 日韩在线免费高清视频 | 中国一级片在线播放 | 91麻豆看国产在线紧急地址 | 色综合久久综合 | 久久性生活片 | 成人av网站在线 | 91九色蝌蚪国产 | 久久精品91视频 | 在线国产小视频 | 亚洲高清色综合 | 久久伊人91| 亚洲视频综合在线 | 国产中的精品av小宝探花 | 亚洲免费一级电影 | 一性一交视频 | 最近中文国产在线视频 | 麻豆手机在线 | 在线观看日韩视频 | 久久在线 | 区一区二区三区中文字幕 | 国产色视频网站2 | 国产精品久久久久久久久免费 |