山东交通学院电控与PLC课程设计报告书院(部)别信息科学与电气工程学院姓名Donald George指导教师王长顺课程设计任务书题目基于PLC的机械手控制(天煌)基于PLC的多通道温湿度监控装置(天煌)基于步进电机控制的PLC实现(东疆教仪)院 (部) 信息科学与电气工程学院学生姓名Donald George5 月 27 日至6 月 7日共2 周指导教师(签字)院长(签字)成绩评定表目录摘要 (1)第一章基于PLC 的机械手控制(天煌) (3)1.1总体设计要求 (3)1.2设计目的 (3)1.3 I/O分配 (4)1.4梯形图及STL语句 (4)1.5实验照片 (12)1.6实验心得 (12)第二章基于S7-200 PLC的多通道温湿度监控装置(天煌) (13)2.1总体设计要求 (13)2.2设计目的 (13)2.3 EM235的使用 (13)2.4 I/O分配 (20)2.5主程序及子程序结构框图 (20)2.6梯形图 (22)2.7 实验照片 (26)2.8实验心得 (26)第三章基于PLC的步进电机的控制(东疆教仪) (27)3.1总体设计要求 (27)3.2设计目的 (27)3.3 I/O分配 (27)3.4工作及设计原理 (28)3.6实验照片 (36)3.7实验心得 (36)第四章设计总结 (37)参考文献 (38)摘要电控与PLC课程设计主要基于PLC的控制实验,结合理论知识从而对其有更好的认识,以至于在工作中更好的运用。
可编程控制器(PLC)把计算机的功能完备、通用性和灵活性好等优点和继电器控制系统的操作方便、简单易懂、价格低廉等优点结合起来,因此它是一种适应与工业环境的通用控制装置。
现在的可编程序控制器和原来的控制系统相比,增加了算术运算、数据转换、过程控制、数据通讯等功能,已可以完成大型而复杂的控制任务。
可编程序控制器作为工业自动化的技术支柱之一,在工业自动控制领域占有十分重要的地位。
S7-200 PLC 属于小型PLC,其主机的基本结构是整体式,其主机有一定数量的输入/输出(I/O)点,一个主机就是一个系统。
它还可以灵活的扩展,如果I/O点不够,则可增加I/O扩展模块。
S7-200 PLC强大的功能使其无论在独立运行中,或相连成网络皆能实现复杂的控制功能。
由于其具有紧凑的设计、良好的扩展性、低廉的价格、丰富的功能模块以及强大的指令系统,使得s7-200 PLC可以近乎完美的满足小规模的控制要求。
本次课程设计是要实现三个设计,他们是基于S7-200 PLC的机械手控制,基于EM235的温湿度监控系统,基于PLC的步进电机的控制。
关键词:PLC EM235 机械手四相八拍步进电机AbstractElectrical control and PLC curriculum design is mainly based on the control experiment of PLC, combined with theoretical knowledge so as to have a better understanding of it, so that better use at work. Programmable logic controller (PLC) the advantages of computer functions, universality and good flexibility and relay control system simple and easy to understand, easy to operate, low price etc. together, so it is a kind of adaptation and general control device for industrial environment. Now the programmable controller and the original control system, increased the arithmetic operations, data conversion, process control, data communication and other functions, can complete large and complex control tasks. The programmable controller is one of the pillars of industrial automation technology, in industrial automatic control field occupies a very important position. S7-200 PLC is a small PLC, the basic structure of the host is integral, the host has a certain number of input / output (I/O), a host is a system. It also can be extended, if not I/O points, you can increase the I/O extension module. S7-200 PLC powerful feature that allows it to operate independently, or connected into a network can realize complex control functions. Because of its compact design, good scalability, low price, abundant function module and powerful instruction system, makes the S7-200 PLC can be almost perfect to meet the control requirements of small scale.This course is designed to achieve three design, they are S7-200 manipulator control based on PLC, temperature and humidity monitoring system based on EM235, the control of stepping motor based on PLC.Key words: PLC EM235 Manipulator stepper motor第一章基于PLC 的机械手控制(天煌)1.1总体设计要求机械手工作示意图如下:控制过程如下:开始时,机械手处于原始位置,且为放松状态,则Y0亮,Y7亮。
按下启动按钮后,机械手开始顺序动作:1、机械手下降:延时1秒后,Y0灭,Y9亮,到下限位时,按S3,则Y9灭,Y1亮。
2、机械手夹紧:延时3秒后,Y7灭,Y6亮,3、机械手上升:Y1灭,Y8亮,到上限位后,按S4,则Y8灭,Y2亮,4、机械手右行:Y2灭,Y10亮,到右限位后,按S5,则Y10灭,Y3亮,5、机械手下降:Y3灭,Y9亮,到下限位后,按S3,则Y9灭,Y4亮,6、机械手放松:延时3秒后,Y6灭,Y7亮,7、机械手上升:Y4灭,Y8亮,到上限位后,按S4,则Y8灭,Y5亮,8、机械手左移:Y5灭,Y11亮,到左限位后,按S6,则Y11灭,Y0亮,回到原始位置。
1.2设计目的(1)了解PLC控制系统设计以及软件程序设计加深对PLC的认识。
(2)了解机械手的构成以及工作原理(3)学习PLC的硬件连接与机械手的接线(4)熟悉PLC编程的工作原理、规则、技巧和方法等1.3 I/O分配1.4梯形图及STL语句Network 1 // 启动、停止// 网络注释LD I0.0O M0.1AN I0.1AN C20= M0.1Network 2 // 转换开关(拨动)LD I1.0O M1.4AN C20= M1.4Network 3 // 一次循环按钮LD I0.6A M1.4LD C20CTU C20, 1Network 4 // 启动,置位Y3亮LD M0.1LPSAN T37= Q0.2LPPTON T37, 20Network 5 // 两秒后,变为放松状态,Y1,Y7亮LD T37LPSAN M0.2= Q0.0LPPLDN Q0.2O T43ALD= Q0.6Network 6LD T38TON T39, 10Network 7 // 机械手下降:延时1秒后,Y1灭,按SQ1,表示到下限位的检测信号,则Y2亮。
LD T39A I0.2LDN M1.1A M0.2OLD= M0.2Network 8LD M0.2= M0.3AN M0.4= Q0.1Network 9 // 机械手夹紧:延时3秒后, Y3亮,表示夹紧。
LD M0.3LPSAN T43A T50= Q0.2LPPTON T50, 30Network 10 // 机械手上升:延时1秒后,Y2灭,按SQ2,表示到上限位的检测信号,则Y4亮,LD T50TON T40, 10Network 11LD T40A I0.3O M0.4AN M1.1LPSAN M0.5= Q0.3LPP= M0.4Network 12 // 机械手右行:延时1秒后,Y4灭,按SQ3,表示到右限位的检测信号,则Y5亮,LD M0.4TON T41, 10Network 13 // M0.5:Y5标志位LD T41A I0.4LD M0.5AN M1.1OLDLPSAN M0.6= Q0.4LPP= M0.5Network 14 // 机械手下降:延时1秒后,Y5灭,按SQ1,到下限位后,则Y6亮,LD T41TON T42, 10Network 15LD T42A I0.2LDN M1.1A M0.6OLDLPSAN M1.0= Q0.5LPP= M0.6Network 16 // 机械手放松:延时2秒后,Y3灭,Y7亮,LD M0.6AN M1.1TON T43, 20Network 17 // 机械手上升:Y6灭,按SQ2,到上限位后,则Y8亮,延时1秒,Y8灭,LD M1.0AN M1.1O I0.3LPSAN T44AN Q0.3= Q0.7LPP= M1.0Network 18LD M1.0TON T44, 10Network 19LD M1.1A I0.5O I0.6O I0.1O C20= M1.11.5实验照片1.6实验心得这个实验,接线简单,只是逻辑较为复杂,容易写乱,而且前后控制较为复杂,但也使我熟悉,熟练的掌握了各种指令,使我充分理解了课本内容。