In previous courses, we shared with you a series of courses on the VPLC series machine vision motion control all-in-one machine, including quick start guides and application cases.
Today, we will explain how to use the ZDevelop programming software to set up the ZVision software environment for the VPLC series controllers with positive motion technology.
01VPLC Controller
(I) VPLC516E Architecture Diagram
(II) Pre-class Preparation
1. A computer with ZDevelop version 3.10 or later installed.
2. One VPLC516E
One 3.24V DC power supply
4. One network cable
5. Several electrical wires
(III) Controller Wiring Video
02. Software Introduction
(I) Advantages of ZDevelop
ZDevelop is a debugging software independently developed by Zheng Motion Technology. It allows users to easily configure the controller, quickly develop applications, and perform real-time debugging of the program running on the motion controller. ZDevelop software can connect to the controller via serial port or network port. When downloading the program to the controller, users can choose between ROM power-off save download or RAM power-off non-save download. The program saved by power-off can be run directly offline.
It supports four programming methods: Zvision, ZBasic, ZPLC ladder diagram, and ZHMI configuration interface. Programs written using ZDevelop software can be downloaded to the positive motion controller or simulated on a PC platform.
ZBasic, ZPLC, and ZHMI can run in multiple tasks. ZBasic can run in multiple tasks and can be programmed in combination with ZPLC and ZHMI.
(II) ZVision Basic Visual Commands
ZVision Basic is a vision programming language independently developed by Zheng Motion Technology. Vision programs are developed in ZDevelop software using vision commands. After the project program is written, it can be directly downloaded to the VPLC series controller for operation.
ZVision Basic language has a standard naming convention, is simple and easy to understand, and can complete the implementation of vision functions with short vision instructions. It internally supports a variety of vision operators such as vision positioning, vision scanning, data code recognition, blob block detection, and size measurement.
ZDevelop software main interface combined with ZVision operator programming
2. Help with using ZVision.
A. Click "Help" to directly open the following document, where you can view the descriptions of ZVision related commands, usage examples, and application scenarios.
Click Help
Visual instruction function module
B. In ZVision program editing, you can select the target instruction, press the F1 key or double-click the instruction to quickly open the instruction's help in the help view.
C.ZDevelop combines ZVision vision operators for vision program development and application. You can follow the WeChat official account "Zheng Motion Assistant" to view past articles of the "VPLC Series Machine Vision Motion Control All-in-One Machine Quick Start" course or contact our sales department to obtain the "Zmotion Vision Machine Vision Quick Start" manual for learning.
03. Create a new ZVision project and download the application.
(I) Creating a new Basic project file
Create a new folder on your computer to save the project you are about to create. Open the ZDevelop programming software. The current version of ZDevelop software for the example code is V3.10.04. To update the software version, please download it from the official website of Zhengdong.
1. Create a new project: Menu bar "File" → "New Project".
2. After clicking "New Project", the "Save As" interface will pop up. Select a folder to open, enter a file name and save the project with the extension ".zpj".
3. Create a new file: Menu bar "File" → "New File".
After clicking "New File", a pop-up window as shown in the image below will appear. It supports mixed programming of Basic/PLC/HMI. Here, select Basic as the new file type and confirm.
4. Set the file to run automatically: As shown in the image below, double-click the "Run automatically" option on the right side of the file and enter the task number "0".
5. Edit the program: Write the program according to your own needs. After you finish writing, click Save File. The newly created Basic file will be automatically saved to the same folder as the project zpj.
(II) Program Download 1. Download the program to the controller
A. First, ensure that the controller and computer are successfully connected by a network cable and that the power supply is normal. After confirming that everything is correct, edit the program in the program input window and click "Controller" → "Connect".
B. Click "Connect" to bring up the "Connect to Controller" window. You can choose serial port connection or network port connection. After selecting the matching serial port parameters or network port IP address, click Connect. A successful connection will be indicated by the following command and output window: Connected to Controller: VPLC516E-Simu Version: 4.99-20180511.
C. Download Program: Click the "Download to RAM" button or the "Download to ROM" button in the menu bar. A successful download will be indicated in the command and output window. At the same time, the program will be downloaded to the controller and run automatically.
Note: Programs downloaded to RAM are not saved after power failure, while programs downloaded to ROM are saved. Programs downloaded to ROM will automatically run according to the task number the next time the controller is connected.
2. Download the program to the emulator
A. Edit the program in the program input window, then click "Controller" → "Connect to Emulator".
Successfully connected to the emulator and printed the information.
B. Download program: Click the "Download to RAM" button or the "Download to ROM" button in the menu bar. A successful download will be indicated in the command and output window, and a message will pop up indicating that the emulator is successfully connected.
(III) ZDevelop Operation Demonstration
Full code download address
▼
That concludes today's lesson on setting up a machine vision development environment in three minutes using ZhengMotion Technology's "Vision and Motion Control All-in-One Machine Mini-Lesson".
For more exciting content, please follow the "Zheng Motion Assistant" WeChat official account. For related development environment and example code, please contact Zheng Motion's technical sales engineer: 400-089-8936.
This article is original content from Zheng Motion Technology. We welcome everyone to reprint it for mutual learning and to jointly improve China's intelligent manufacturing level. Copyright belongs to Zheng Motion Technology. Please indicate the source if you reprint this article.