当前位置:首页 > 用MCGS实现霓虹灯显示设计论文 - 图文
西北民族大学电气工程学院2010-2011学年第二学期组态软件课程设计
字灯3=0 字灯4=0 字灯5=0 字灯6=0 endif
time1=time1 + 1 IF time1=1 THEN 字灯0=1 endif
IF time1=2 THEN 字灯1=1 endif
IF time1=3 THEN 字灯2=1 endif
IF time1=4 THEN 字灯3=1 endif
IF time1=5 THEN 字灯4=1 endif
IF time1=6 THEN 字灯5=1 endif
IF time1=7 THEN 字灯6=1 endif
IF time1=8 THEN 字灯0=0 字灯1=0 字灯2=0 字灯3=0 字灯4=0 字灯5=0 字灯6=0 endif
IF time1=9 THEN 字灯0=1 字灯1=1 字灯2=1 字灯3=1 字灯4=1 字灯5=1 字灯6=1
共49页 第33页
西北民族大学电气工程学院2010-2011学年第二学期组态软件课程设计
endif
IF time1=10 THEN 字灯0=0 字灯1=0 字灯2=0 字灯3=0 字灯4=0 字灯5=0 字灯6=0 endif
IF time1=11 THEN 字灯0=1 字灯1=1 字灯2=1 字灯3=1 字灯4=1 字灯5=1 字灯6=1 endif
IF time1=12 THEN 字灯0=0 字灯1=0 字灯2=0 字灯3=0 字灯4=0 字灯5=0 字灯6=0 endif
IF time1=13 THEN 字灯0=1 字灯1=1 字灯2=1 字灯3=1 字灯4=1 字灯5=1 字灯6=1 endif
IF time1=14 THEN 字灯6=0 endif
IF time1=15 THEN 字灯5=0 endif
IF time1=16 THEN
共49页 第34页
西北民族大学电气工程学院2010-2011学年第二学期组态软件课程设计
字灯4=0 endif
IF time1=17 THEN 字灯3=0 endif
IF time1=18 THEN 字灯2=0 endif
IF time1=19 THEN 字灯1=0 endif
IF time1=20 THEN 字灯0=0 endif
IF time1=21 THEN time1=0 endif
控制字段灯控制开与关 目的 IF 第十组2=0 THEN 字灯0=0 字灯1=0 程序 字灯2=0 字灯3=0 字灯4=0 字灯5=0 字灯6=0 endif IF 字灯6=0 THEN time1=0 endif 显示当前时间 脚本年=$year 月=$month 日=$day 时=$hour 分=$minute 秒=$second 星期数=$week 日期=!str(年)+\年\月)+\月\日)+\日\时间=!str(时)+\时\分)+\分\秒)+\秒\星期=\星期\星期数) 时间显示模块如图3.17所示
共49页 第35页
西北民族大学电气工程学院2010-2011学年第二学期组态软件课程设计
图3.17 时间显示模块
控制星星循环闪亮的程序及其控制开关的程序和烟花的循环程序及其控制开关的程序和流水灯的循环及控制开关程序如下: 控制对象 控制开与关的程序 IF 李玲=0 THEN 星星1=0 星星2=0 星星3=0 星星4=0 星星5=0 星星6=0 星星7=0 星星8=0 星星9=0 星星10=0 星星11=0 星星12=0 星星13=0 星星14=0 星星15=0 星星16=0 星星17=0 星星18=0 星星19=0 星星20=0 星星21=0 星星22=0 星星灯 两侧的烟花 烟花 中间的烟花 流水灯 IF 李瑞杰=0 THEN 红烟花可见度=0 红烟花3=0 绿烟花可见度=0 绿烟花3=0 烟花字体=0 红烟花1=0 红烟花2=0 绿烟花1=0 绿烟花2=0 endif IF 烟花字体=0 THEN 谢正福2=0 endif IF 岑忠富=0 THEN IF 第十组1=0 烟花1=0 THEN 烟花11=0 流水灯1=2 烟花2=0 流水灯3=2 烟花3=0 烟花4=0 流水灯5=2 流水灯7=2 endif 流水灯9=2 IF 烟花4=0 THEN 流水灯11=2 谢正福1=0 流水灯13=2 endif 流水灯15=2 流水灯17=2 流水灯19=2 流水灯21=2 流水灯23=2 流水灯25=2 流水灯27=2 流水灯29=2 流水灯31=2 流水灯33=2 流水灯35=2 流水灯37=2 流水灯39=2 流水灯41=2 共49页 第36页
共分享92篇相关文档