Open winding machine CNC system based on PC and TRIO motion controller

Publisher:CoboroLatest update time:2011-04-08 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Introduction
The winding machine developed in this paper is horizontal, and the core mold is placed horizontally. During winding, the core mold rotates at a constant speed around its main axis, and the trolley motor drags the trolley to reciprocate along the axis of the core mold, driving the winding nozzle to complete the winding and placement of the fiber on the core mold at a certain winding angle to meet the technical requirements of the product.
Modular open CNC system has become the development direction of CNC technology today. The winding control system in this paper uses an embedded multi-task motion controller to realize the synchronous motion control of the main axis and the trolley and the winding logic control.

The development of an open winding machine numerical control system based on PC and TRIO motion controller is discussed. The control system structure of the FRP pipe winding machine is composed of a main shaft that drives the FRP pipe core mold to rotate, a trolley that arranges glass fiber on the core mold, and a resin and curing agent supply system. When the horizontal winding machine is winding, the core mold rotates at a constant speed around its main shaft, and the trolley motor drags the trolley to reciprocate longitudinally on the workbench, driving the winding nozzle to complete the winding and laying of the fiber layer on the core mold at a certain winding angle. The trolley motor should be accelerated and decelerated continuously according to the process requirements during reciprocating operation, and the load of the trolley and the main shaft changes with the change of the winding glue amount, which is easy to cause the relative position of the wire guide head and the core mold to change, resulting in linear abnormality and poor yarn overlap. The winding machine system is a nonlinear time-varying position synchronous follow-up control system with a large inertia change. Therefore, the position tracking control method based on electronic gears is adopted to ensure good yarn overlap. The electronic gear mode is actually a multi-axis linkage mode, and its motion effect is similar to the meshing motion of two mechanical gears. When the current axis works in the electronic gear mode, the electronic gear ratio needs to be set. The current axis will follow the active axis according to this speed ratio. The active axis can be in any motion mode. The displacement increment of the current axis is equal to the displacement increment of the active axis associated with it multiplied by the electronic gear ratio.

The structure of the winding machine control system
is shown in Figure 1. The host computer uses Taiwan Advantech 1PC610 chassis and PCA-6179 motherboard. It communicates with the MC206 motion controller of the British Wo Motion Technology Company through RS-232 serial port to form a powerful open motion control system. The industrial PC is responsible for the human-machine interface management, motion status display, remote monitoring and process file storage, and the motion controller is responsible for real-time motion control and logic control. The structure supports software upgrades and function expansions, and has upper and lower levels of openness. The
winding machine spindle motor is a 7.5 kW three-phase AC asynchronous motor driven by a Japanese Yaskawa ICI MR-G7A47P5 inverter. For the speed of the spindle motor, this system adopts a closed-loop control method with greater load resistance. The analog output of the motion controller axis 3 interface is used as the input signal of the inverter speed control. The analog voltage output value is set in the open-loop control state of the motion controller to realize the inverter speed control. A CWZ1X rotary encoder installed on the input shaft of the gearbox completes the detection of the spindle angle and speed. The inverter adopts the PG vector control mode. The PG-X2 speed card uses the encoder sampling signal as the inverter input to realize the speed closed-loop control, and as the speed and position signal input to the encoder interface 4 of the controller, realizing the function of completing the speed closed-loop control and the spindle angle position sampling by one encoder. The trolley adopts the Yaskawa SGMGH-44ACA61 servo motor to complete the precise positioning. It reciprocates along the axial direction of the glass fiber reinforced plastic tube and tracks the spindle movement with a certain response speed and accuracy according to the winding law. The axis 0 interface works in the servo mode to complete the closed-loop control of the trolley servo motor. The spindle encoder feedback is connected to the MC206 axis 4 interface as the input axis of the reference encoder, providing an encoder input for the synchronous movement of the trolley.
Software design
of winding machine control system The upper computer program of the winding machine control system is developed based on the Windows 2000 platform using Microsoft's VC++6.0 to complete the process file setting and management, remote monitoring and machine tool operation status display and other functions. The industrial computer and MC206 complete the process parameter download and machine tool status parameter upload and display through the serial port based on the MODBUS protocol.
The communication adopts a master-slave query mechanism. The system sets the industrial computer as the master station and MC206 as the slave station. Only when the master station issues a query can the slave station 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 by the slave station, 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 processing of the current pipeline. Thereby improving the stability of the system and the real-time control.
The motion control program is compiled in Trio BASIC multi-tasking language. The motion control program can be downloaded to MC206 by running the MotionPerfect software on the PC and can be run offline. Trio BASIC language has three different types of storage variables: named variables, VR () variables and TABLE area variables. Named variables are local variables, which are only valid in the task in which they are defined.
Variables are global variables that can be shared by multiple tasks and can be used for communication between tasks; TABLE area is usually used to store CAM/command curves. This program is used to store process files for winding pipe models. The running user program is called a thread or task.
For complex multi-task programs, threads should be assigned priorities. The default servo cycle of the controller is 1ms, which is divided into three time slices internally. Each time slice is 1/3 ms. They are used to process servo functions, communications and common "housekeep" tasks internally. The remaining time in each time slice is used to run user programs. MC206 can run up to 7 user threads. Each thread is numbered from 1 to 7. The highest-numbered threads (threads 7 and 6) are assigned fixed time slices. They are called "fast tasks" and are mainly used for tasks with the following requirements: tasks that must be processed in each servo cycle; tasks with a large amount of calculations and processing; tasks whose 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 number of tasks increases. Users can use instructions to start tasks to run at the specified priority.
In the host computer software Motion Performance, open a "Terminal" window to set a "C The control software of the winding machine has four tasks, among which task 7 is used for the motor motion control of the winding machine 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, task 2 completes the serial communication function, and task 1 realizes the glue feeding control. The task functions and execution time allocation of the control program are shown in Figure 2. Among them, tasks 7 and 6 have the highest priority, and each servo cycle (1 Ins) is allocated a time slice. Tasks 1, 2 and L have the same priority, and are allocated a time slice in turn in each servo cycle. The task functions and execution time allocation of the winding program are shown in Figure 2.

The working state of the winding machine processing control is divided into three states: manual, semi-automatic and automatic. The manual state is used to control the movement of the core mold and the trolley separately. In the semi-automatic state, the core mold and the trolley coordinate the movement for circumferential winding, and the winding length is controlled by the worker. In the automatic working state, the parameters can be set according to the process file to realize circumferential and spiral automatic winding. In addition, the control program also has the functions of zero point correction, automatic zero point, breakpoint winding and manual intervention in the winding process.
Conclusion
The CNC system of the winding machine combines the advantages of industrial PC and embedded motion controller, and makes full use of the electronic gear function of TRIO motion controller. The system can automatically wind according to the process requirements, and has the functions of system operation status display, remote communication, fault diagnosis and alarm, and reverse gap compensation. The yarn width of the winding machine can be adjusted arbitrarily between 80 and 220 mm, which can meet the winding requirements of pipes with different diameters. The maximum yarn output speed can reach mm/min, and the core mold rotation angle resolution is 0.018. The trolley trajectory control error is less than 0 mm, the whole machine has fast response speed, stable performance and simple operation. The system has been applied to Daqing Zhutian Composite Materials Co., Ltd. Practice has proved that the system plays a very important role in improving the technical level, automation level and pipeline quality of FRP pipe winding molding process, shortening the pipeline development cycle, reducing the labor intensity of staff, improving production efficiency and reducing production costs.
Reference address:Open winding machine CNC system based on PC and TRIO motion controller

Previous article:Analysis of remote control technology of oscilloscope using computer labview
Next article:Application of Motor Soft Starter in Mining Engineering

Latest Industrial Control Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号