基于组态王的模拟时钟设计  

Analog Clock Design Based on Kingview

在线阅读下载全文

作  者:张洪宝[1] 华晓峰[1] 田晓龙 Zhang Hongbao;Hua Xiaofeng;Tian Xiaolong(Dezhou Vocational and Technical College,Dezhou,Shandong 253000,China)

机构地区:[1]德州职业技术学院,山东德州253000

出  处:《机电工程技术》2021年第9期159-161,共3页Mechanical & Electrical Engineering Technology

摘  要:利用组态王设计的模拟时钟,解决了模拟时钟在运行时时针不能连续匀速旋转、时针的位置不能和分针相互对应的问题。在设计过程中,在表盘上的特殊位置做出辅助线,确定12个整点刻度线的位置,并画出刻度线;通过计算设置坐标,将指针对齐到表盘的中心;完成动画连接后,经过对命令语言的反复精心设计,模拟时钟的时针能够缓慢的匀速旋转。运行时,能够通过画面上的数字显示运行时间并能随意手动更改,指针能随着更改的时间同步旋转;能通过启停开关进行控制,并能将时钟复位。通过设置画面命令语言中的程序循环时间为600 ms,设计的模拟时钟运行快慢能和实际的时钟相吻合,运行模拟时钟可以当作钟表使用。该设计在组态王软件教学中起到了很好的作用。The analog clock designed by Kingview solves the problem that the hour hand cannot rotate continuously and uniformly and the position of the hour hand cannot correspond to the minute hand when the analog clock is running.In the process of design,the auxiliary lines were made at a special position on the dial,the positions of the twelve hour scale lines were determined on the dial,and the scale lines were drawn.By calculating the set coordinates,the pointer was aligned to the center of the dial.Through the design of animation connection and command language,the hour hand of the analog clock can rotate at a slow and uniform speed.At runtime,the run time was digitally displayed and changed manually at will,the pointer can rotate synchronously with the changed time,it was control with the start-stop switch,and the clock was reset.By setting the program cycle time in the screen command language to 600 ms,the speed of the designed analog clock can be consistent with the actual clock,and the analog clock can be used as a clock.The design plays a very good role in the teaching of Kingview software.

关 键 词:组态王 模拟时钟 刻度线 指针 

分 类 号:TP271[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象