av影音先锋-日本免费在线观看-亚洲成人精品在线-亚洲精品观看-天天综合91-国产乱来视频-影音先锋黄色网址-综合色网站-亚洲日本中文-欧美视频久久-免费一级淫片-黄视频在线免费看-亚州av片-亚洲专区在线播放-粗大黑人巨茎大战欧美成人

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.

圖片


 



主站蜘蛛池模板: 91在线色| 一级黄色裸体片 | 在线观看免费视频一区 | 99这里只有| 亚洲免费观看高清 | av全黄 | 91福利网站 | 亚洲春色在线 | 韩国黄色网址 | 久久久久久免费 | 午夜视频一区二区三区 | 亚洲精品鲁一鲁一区二区三区 | 欧美性极品xxxx做受 | 久久夜色精品国产欧美乱 | 欧美激情小视频 | 免费成人高清 | 欧美小视频在线观看 | h视频在线看 | 在线观看日本 | 欧美乱论视频 | 国产午夜激情视频 | 天天宗合网 | 中国免费黄色 | 在线免费观看av网址 | 精品无码久久久久久久久 | 中国一级特黄录像播放 | 狠狠热视频 | 午夜天堂在线观看 | 严厉高冷老师动漫播放 | 日本福利小视频 | 久久国产精品久久久 | 免费国产精品视频 | 亚洲高清在线视频 | 99这里都是精品 | 动漫女被黄漫免费视频 | 精品人妻一区二区三区四区在线 | 亚洲一区91 | 精品一区二区三区四区五区 | 九九热国产视频 | 在线观看污污网站 | 啪啪在线观看 | 中文字幕乱码在线观看 | 亚洲女人天堂色在线7777 | 免费一级黄 | av午夜在线观看 | 亚洲毛片在线播放 | 精品久久久久久久久久久国产字幕 | 国产黄色在线播放 | 99爱视频| 久久久久久久久免费 | 九九九视频在线观看 | 奇米网久久 | 欧美色视频在线 | 性一区 | 国产午夜视频 | 久草免费福利视频 | 国产黄色在线看 | 在线黄色网页 | 91丝袜一区在线观看 | 日韩av黄色片 | 黑人巨大精品欧美一区二区 | 欧美性猛交乱大交3 | 国产伦理久久精品久久久久 | 欧美日韩精品一区二区在线播放 | 99re在线视频 | 深夜福利视频在线观看 | 91少妇丨porny丨 | 亚洲国产精品视频一区 | 精品资源成人 | 亚洲av永久无码国产精品久久 | 日韩精品免费看 | 美女扒开粉嫩的尿囗给男生桶 | 黄色片一区二区三区 | 日日射射| 可以看黄色的网站 | 正在播放一区二区 | 一本一道人人妻人人妻αv 国产一区二区在线视频观看 | 日韩精品视 | 人操人人 | 久草免费在线 | 欧美天天干 | 亚洲女优在线观看 | 香蕉视频1024 | 国产sm在线 | 伊人www22综合色 | 喷水视频在线观看 | 亚洲天堂成人 | 天堂一区二区三区 | 欧美精品免费看 | 高清乱码免费看污 | 久久国产精品一区二区 | 神马午夜dy888 | ,一级淫片a看免费 | 国产片网站 | 国产成人精品一区 | 久久精品视频免费 | 成人免费播放 | 欧美成人三级伦在线观看 | 国产成人三级在线观看视频 |