中文字幕一区二区三区四区-手机在线一区二区-大肉大捧一进一出好爽视频动漫-欧美日韩综合在线观看-国产成人av片-成人精品视频一区二区三区尤物-成人性视频网-久久欧美与黑人双交男男-日韩婷婷-亚洲最大成人综合网720p-久久国产剧情-性欧美老妇另类xxxx-日本熟妇大屁股人妻-永久精品动漫网站入口大全-奇米综合

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.

圖片


 



主站蜘蛛池模板: 国产成人综合久久免费导航 | 色五月五月丁香亚洲综合网 | 天天躁夜夜躁 | 97精品久久人人爽人人爽 | 日日射日日操 | 亚洲人免费视频 | 久久乐av | 亚洲精品白浆高清久久久久久 | 久热这里只精品99国产6-99re视… | 超碰997 | 亚洲黄色在线观看 | 国产在线视频一区二区三区98 | 亚洲国产一区二区三区四区电影网 | 在线观看视频色 | 日本另类αv欧美另类aⅴ | 亚洲资源av | 亚洲午夜久久久久久久国产 | 中文字幕奈奈美被公侵犯 | 亚洲综合激情七月婷婷 | 国产小视频在线免费观看 | 自拍色图| 福利片在线看 | 色国产精品一区在线观看 | 国产美女视频免费的 | 蜜桃麻豆www久久囤产精品 | 99自拍| 国产精品特级毛片一区二区 | 国产日本精品视频 | 亚洲精品沙发午睡系列 | 久色在线 | 97无码人妻福利免费公开在线视频 | 久久av一区二区三区亚洲 | www.99re7.com | 午夜成人片在线观看免费播放 | 性刺激视频免费观看 | 依人在线观看 | 国产精品国产一区二区三区四区 | 亚洲欧美综合成人五月天网站 | 性色欲网站人妻丰满中文久久不卡 | 亚洲精品自拍偷拍视频 | 日韩黄网 | 久草视频在线资源 | 亚洲精品一二区 | 久久久婷| 亚洲专区第一页 | 国产在线观看精品一区二区三区 | 欧美一级爱爱 | 亚洲精品午夜一区二区电影院 | 又大又粗又黄的网站不卡无码 | 91蜜桃网 | 在线综合亚洲欧洲综合网站 | 亚洲专区在线 | 成年片色大黄全免费网站久久高潮 | 国产精品一区二区在线观看99 | 日本伊人精品一区二区三区 | 亚洲美女性生活视频 | a√在线观看 | 国产99久久久国产精品~~牛 | 老熟妻内射精品一区 | 亚洲婷婷在线观看 | 国产偷国产偷亚洲清高动态图 | 337p日本欧洲亚洲大胆艺术图 | 91av久久久 | 中文无遮挡h肉视频在线观看 | 在线观看www. | 中文成人久久久久影院免费观看 | 97爱爱爱| 色综合天天综合高清网 | 特级黄色大片 | 黄网在线播放 | 亚洲日韩一区二区一无码 | 一本到在线观看视频 | 最爽的乱婬视频a毛片 | 亚洲第一页在线 | 色翁荡息又大又硬又粗又视频软件 | 亚洲熟女av综合网五月 | 国产精品福利一区二区三区 | 国产精品久久久久人妻无码 | 女人张开双腿让男人猛桶 | 久久99久久99 | 俄罗斯一级片 | 国产精品久久久久网站 | 麻豆av网址 | 国产精品国三级国产av | 国产又a又黄又潮娇喘视频 中文字幕亚洲中文字幕无码码 | 超碰.com| 色香欲天天天影视综合网 | 精品久久网| 国产999精品成人网站 | 精品九九人人做人人爱 | 亚洲免费高清视频 | 91免费国产视频 | 日本丰满岳乱妇在线观看 | 欧美另类与牲交zozozo | 国产高潮刺激叫喊视频 | 毛片少妇 | 影音先锋国产精品 | 中文字幕无人区二 | 欧美疯狂性受xxxxx喷水 |