摘要
以西门子S7-200 smart PLC为控制器,通过对基于步进电机的分种器的控制,实现了小麦小区播种机控制系统的设计。采用北斗定位辅助取代了以往误差较大的编码器测距,实现了对作业小区的精准控制,控制精度达到厘米级。目前,PLC内部浮点数存储格式为8位单精度浮点数,而接收到的北斗GPGGA数据有效数值为16位双精度浮点数,直接转化误差非常大。为确保计算精度,提出了一种基于三角恒等式的数值分段法来解决双精度浮点数转单精度浮点数的问题。经测试,精度到达微米级。
In this paper,the Siemens S7-200 smart PLC is used as the controller to control the control system of the wheat plotter by using the control of the stepper based on the stepping motor. The Beidou positioning aid replaces the encoder distance measurement with large error in the past,and realizes precise control of the working area,and the control precision reaches centimeter level. Considering that the PLC internal floating point number storage format is 8-bit single-precision floating-point number,the received Beidou GPGGA data valid value is 16-bit double-precision floating-point number,if the direct conversion error is very large. In order to ensure the accuracy of calculation,this paper proposes a numerical segmentation method based on trigonometric identity to solve the problem of double-precision floating-point number to single-precision floating-point number. After testing,the precision reaches the micron level.
引文
[1]佚名.《国民经济和社会发展第十三个五年规划纲要(草案)》(摘编)[J].石油和化工节能,2016(2):82-93.
[2]杨暘.导航卫星电源系统智能管理系统设计与实现[D].天津:南开大学,2015.
[3]方书山,章传银,秘金钟. NMEA-0183格式数据流解析的一种实用方法[J].测绘通报,2013(11):114-116.
[4]熊伟.谈谈地球的形状[J].地球,2004(5):5.
[5]黄承波.地球表面两点间距离的计算[J].地理教育,2004(4):14.
[6]熊宙实,周铁健,杨健,等.一种估算基站间干扰概率的方法和装置:中国,CN 102036253 B[P]. 2011-04-27.