摘要
为快速建立数控机床工作台运动监测系统,缩短开发周期,使用西门子S7-1214 PLC的高速计数器对编码器计数,并通过PROFINET接口将计数值发送给上位机;上位机在VC++开发环境中采用Winsock控件实现与PLC间的的TCP通信,获取各编码器的计数值,并换算成数控机床X、Y轴丝杠的位移,从而拟合其实际运动轨迹,通过实际运动轨迹与理想运动轨迹的比较即可实现机床运动的在线监测。
To shorten the duration of developing CNC machine movement monitoring system,this paper use the high-speed counter of Siemens S7-1214 PLC to count the encoder,and the count value is sent to PC through the PROFINET interface of PLC.In VC++ development environment of PC,Winsock controls-based programs are designed to realize the TCP com- munication protocol between PLC and PC.After getting the count value of encoder,the lead screws" displacement of.the CNC machine worktable can be determined.So the actual trajectory of CNC machine worktable is fitted.By the comparison of the actual trajectory and the ideal one,the on-line movement monitoring of the CNC machine is realized.
出处
《工业控制计算机》
2012年第7期15-17,共3页
Industrial Control Computer
基金
国家自然科学基金(51105215
51075220)
教育部博士点基金(20113721120003)资助