tel:+49 (0)170 8333519 


  Shandong STO & Jiuyuan Machinery Co., Ltd

News
Software Design of Winding Machine Control System
Source: | Author:佚名 | Published time: 2022-09-18 | 359 Views | Share:
The upper computer program of the winding machine control system is developed based on the Windows2000 platform using Microsoft's VC++6.0, and completes the functions of process file setting and management, remote monitoring and machine tool running status display. The industrial computer and MC206 complete the download of process parameters and the upload and display of machine state parameters through the serial port based on the MODBUS protocol.

The upper computer program of the winding machine control system is developed based on the Windows2000 platform using Microsoft's VC++6.0, and completes the functions of process file setting and management, remote monitoring and machine tool running status display. The industrial computer and MC206 complete the download of process parameters and the upload and display of machine state parameters through the serial port based on the MODBUS protocol. The communication adopts the query mechanism of master-slave mode. The system sets the industrial computer as the master station and the MC206 as the slave station. Only when the master station sends a query, the slave station can respond, and the slave station cannot actively send data. When working, the worker selects the model of the pipe to be wound and downloads the process file, and then enters the winding processing state. At this time, all motion and logic control are completed, and the slave station only responds to the query of the master station and uploads the status data. Even if the industrial computer fails or crashes for some reason, it will not affect the winding process of the current pipeline. Thereby, the stability of the system and the real-time performance of the control are improved. The motion control program is compiled with TrioBASIC multitasking language. Download the prepared motion control program to the MC206 through the MotionPerfect software running on the PC to run offline. The TrioBASIC language has three different types of storage variables: named variables, VR() variables, and TABLE area variables. A named variable is a local variable, valid only within the task in which it is defined. A variable is a global variable that can be shared by multiple tasks, and it can be used for communication between tasks; the TABLE area is usually a storage area for storing CAM/command curves, and this program is used to store process files for winding pipe models. Running user programs are called threads or tasks. For complex multitasking programs, threads should be assigned priorities. The default servo cycle of the controller is lms, and this cycle is internally divided into three time slices, each time slice is 1/3ms, which are used internally. Handles servo functions, communications and the usual 'housekee-' tasks. The time remaining in each time slice is used to run user programs. The MC206 can run up to 7 user threads, each numbered from 1 to 7 , the highest numbered threads (threads 7 and 6) are allocated fixed time slices, they are called "fast tasks", and are mainly used for tasks that have the following requirements: tasks to be processed every servo cycle; tasks that have A large number of computing and processing tasks; tasks for which the program execution speed cannot be changed after the task is started. 5g-threads are called "slow tasks", they have a common priority, and the program execution speed will decrease as the task increases. User You can use directives to start tasks to run at a specified priority. Open a "Terminal" window in the host computer software MotionPerfect to set a "CommandLine" port, which always uses the "0" task, which is used to input commands from the host computer and run immediately. The winding machine control software has established four tasks in total, of which task 7 is used for the motion control of the winding machine motor and the logic control of the machine tool, task 6 is used to manage the I/O signals and spindle speed control related to the machine tool and winding, and task 2 is used to complete the serial port. Communication function, task 1 realizes glue feeding control. The task function and execution time distribution of the control program are shown in Figure 2. Among them, tasks 7 and 6 have the highest priority, and each servo cycle (1Ins) is allocated time slices. Tasks 1, 2 and /L) have the same priority, and time slices are allocated to them in turn in each servo cycle. The assignment of function and execution time of winding program tasks.


+49 (0)170 8333519