基于Visual C#.NET绗缝机智能控制软件系统的研发
2018-07-10赵福英倪俊芳
赵福英 倪俊芳



摘 要:目前国内纺织行业对绗缝机控制系统的操作多数在DOS平台下进行,针对其操作界面不直观、软件升级困难、频繁死机等缺点,提出一种以WinCE系统为核心,采用C#开发应用软件,实现加工模拟的设计方法。该软件采用模块化设计,通过对花样文件进行解析获取花样相关信息,并基于平面力系求矩原理的新算法绘制花样矢量图,调用MACRO宏程序,将DAT文件编译成G代码,利用网络传输线将G代码传输给控制器,从而实现了软件系统的花樣预览、仿真加工、文件编译等功能。结果表明,该软件界面友好、运行稳定、实时性强、操作简便、便于升级与维护。
关键词:C#;绗缝机;花样文件;G代码;仿真加工
中图分类号:TS17;TH39
文献标志码:A
文章编号:1009-265X(2018)02-0085-05
Research on Intelligent Software System of QuiltingMachine Based on Visual C#.NET
ZHAO Fuying, NI Junfang
(School of Mechanical and Electrical Engineering, Soochow University, Suzhou 215021, China)
Abstract:At present, the domestic textile industries operate the quilting machine control system most in the DOS platform. Aiming at the shortcomings of the system, such as boring interfaces, upgrading difficultly and frequent shutdown, a design method is proposed, which takes the WinCE system as the core, uses Visual C#.NET to develop the application software and thus realizes the processing simulation. The software adopts modular design and gains pattern-related information through analyzing the pattern file. Besides, pattern vector diagram is drawn by the new algorithm based on the principles of plane moment, which can call the MACRO program to compile DAT files into G codes transmitted to the controller by using the network line, so as to realize the pattern preview, simulation processing, files compilation and other functions of software system. The application results show that it has friendly interface, stable operation, strong real-time performance, convenient operation, easy upgrade and maintenance.
Key words:C#; quilting machine; pattern file; G code; simulation processing
绗缝机是用于缝制被褥、窗帘、毛毯等线形图案的纺织设备,其核心是X、Y、Z、C四轴运动控制系统[1],X、Y轴控制机头前后、左右的相对运动,Z、C轴控制机针与旋梭的耦合运动[2]。目前国外的绗缝智能控制系统多采取PC与DSP组合的方式,其对花样文件处理、识别能力强、精度高,但设备价格昂贵[3]。国内郭鑫[4]在缝纫机的花型CAD系统方面作了相关研究,蔡立挺等[5]对电脑横机的花样数据编译作了细致地分析,都取得了一定进展。而基于WIN系统研发的绗缝机控制系统尚不成熟、应用少,而现时DOS开发的人机交互界面可读性差、软件升级困难,不能实现多机联网监控、累积总产量等,已无法满足企业更高的要求。因此,本绗缝机智能控制软件系统将划分功能模块,采用C#开发,基于平面力系求矩原理的新算法处理DAT文件,准确编译DAT文件,实现绗缝机的仿真加工。……
