电工PLC课件

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

可编程序控制器应用案例案例一、单台电动机两地控制1)控制要求按下地点1的控制按钮SB1或地点2控制按钮SB2均可起动电动机,;按下地点2按钮SB3或地点2按钮SB4均可停止电动机运行。2)输出、输入I/O分配SB1:X0SB2:X1SB3X2SB4:X3接触器:Y03)梯形图方案设计;方法一、X0X2X3Y0X1Y0END指令;1.LDX02.ORX12.ORY04ADIX25.ADIX36.OUTY07.END方法二、X0SETY0X1X2RSTY0X3END指令:1.LDX02.ORX13SETY04.LDX25.LDX36.RSTY07.END方法三、X2X3MCN0M0N0M0X0Y0X1Y0MCRN0END指令:1.LDIX22.ANIX33.MCN0M04.LDX05.ORX16.ORY0OUTY07.MCRN08.END案例二、单台电动机正反转控制。1.控制要求:按下正传按钮SB1电动机正转起动运行,按下反转按钮SB2,电动机反转起动运行,按下停止按钮SB,电动机停止运行,电动机正转运行时,反转起动按钮SB2不起作用,电动机正转运行时,正转按钮SB1不起作用。2.输入、输出I/O分配输入端子口SB1:X0SB2:X1SB:X2输出端子口Y0正转接触器YI反转接触器方法一、X0X2Y1Y0Y0X1X2Y0Y1Y1END指令:1.LDX02.ORY03.ANIX24.ANIY15.OUTY06.LDX17.ORY18.ANIX29.ANIY110.END方法二、X0Y1SETY0X1Y0SEY1X2RSTY0RSTY1END指令:1.LDX02.ANIY13.SETY04.LDX15.ANIY06.SETY17.LDX28.RSTY09.RSTY110.END案例三、三台电动机按照顺序起动1.控制要求:起动第一台后才能起动第二台,起动第二台后才能起动第三台。停止时停止第三台才能停止第二台,停止第二台才能停止第三台。2.输入、输出端子I/O分配输入端子第一台起动按钮SB1;X0第二台起动按钮SB2:X1第三台起动按钮SB3:X2第一台停止按钮SB4:X4第二台停止按钮SB5:X4第三台停止按钮SB6:X5输出端子第一台接触器Y0第二台接触器Y1第三台接触器Y2X4X0Y0Y1Y0Y2X1X5Y0Y11.Y1Y2X2Y0Y1X6Y2Y2END指令:1.LDIX42.ORY13.ORY24.ANIX05.ORY06.ANB7.OUTY08.LDX19.ORY110.ABDX511.ORY012.ANB13.ANIY014.OUTY115.LDX216.ORY217.ANIY018.ANIY119.ANDX620.OUTY221END方法二、用置位与复位指令X0SETY0X1Y0SERTY1X2Y0Y1SETY2X3Y1Y2RSTY0X4Y2RSTY1X5RSTY2指令:1.LDX02.SETY03.LDX24.ANIY05.SETY16.LDX27.ANIY08.ANIY19.SETY210.LDX311.ANDY112.ANDY213.RSTY014.X4ANDY215.RSTY116.LDRSTY216.END案例四、定时器的应用1.得电延时X0X1M0M0T0K20T0Y0ENDX0X1M0Y0指令:1.LDX02.ORM03.ANDX14..OUTM05.OUTT0K206.LDT0OUTY07.END2.失电延时X0T0Y0X0Y0X0T0K30Y0指令:1.LDX02.ORYO3.ANDT04.OUTY05.ANDX06.OUTT0K307.END案例五:计数器的应用X1RSTC0X1X2C0K2X2C0T0C0案例六、振荡电路X0T1T0K5X0T1T0K5T0T1K5T1K10X0T0Y0X0T0Y0X0Y0案例七、星三角起动控制要求:首先星形起动接触器KM0、KM1闭合,延时5S后,接触器KM0断开,接触器M3闭合。1.输入输出端子I/O分配输入端子停止按钮X0:起动按钮X1:热继电器X2输出端子KM0:Y0KM1:Y1KM2:Y2指示灯:Y3方法一、利用SET/RST指令X1Y2SETY1YISETY0T0K50T0RSTY1T0Y1SETY2Y0Y2MI013Y3X2RSTY0X0RSTY1RSTY2END指令:1.LDX12.ANIY23.SETY14.LDY15.SETY06.OUTT0K507.LDT08.RSTY19.RSTY110.LDT011.ANIY112.SETY213.LDY014.ANIY215.ANDM101316.OUTY317.LDX218.ORX019.RSTY020.RSTY121.RSTY222.END方法二、利用主控指令X2X0MCN0M0N0M0X1T0Y1Y1Y1Y0Y0T0K50T0Y1Y2Y0Y2M8013Y3MCRN0EMD指令:1.LDIX22.ANIX02.MCN0M03.LDX14.ORY15.ANIT06.OUTY17.LDY18.ORY09.OUTY010.OUTT0K3011.LDT012.ANDY113.OUTY214.LDY015.ANIY216.ANDM801317.MCRN018.END方法三、一般方法X1X2X0Y2T0Y1Y1Y1X2X0Y0Y0T0K30Y1Y2T3T2K5T2T3K5T2Y3T0Y1X0X2Y2END指令:1.LDX12.ORYI3.ANIX24.ANIX05.ANIY26.ANIT07.OUTY18.LDY19.ORY010.ANIX211.ANIX012.OUTY013.OUTT0K3014.LDY115.ANIY216.ANIT317.OUTT2K518.LDT219.OUTY320.LDT021.ANIY122.ANIX023.ANIX224OUTY225.END案例八、电动机正反转自动循环控制1.控制要求:电动机正转3S,停2S,反转3S,停2S,循环五个周期后自动停机。2.输入、输出端子I/O分配输入端子:停止按钮X0,起动按钮X1,热继电器X2。输出端子:电动机正转Y1,电动机反转Y2方法一、利用SET/RST指令X1C1SETY1T3Y1T0K30T0T1T1K50T0RSTY1X0X2T1SETY2Y2T2K30T2T3T3K30T2RSTY2X0X2C1RSTC1T3C1K5END指令:1.LDX12.ORT33.ANDC14.SETY15.LDY16.LDT07.ANDT18.ORB9.OUTT0K3010.OUTT1K5011.LDT012.ORX013.ORX214.RSTY115.LDT116.SETY217.LDY218.ORT219.ANDT320.ORBOUTT23021.OUTT3K5022.LDX223.ORX024.ORX225.RSTY226.LDC127.RSTC128.LDT329.OUTC1K530.END方法二、利用一般指令X1X0X2C0M0M0T3T0K30T1K50T2K80T3K100X1RSTC0M0T0Y2Y1M0T1T2Y1Y2T3C0K5END指令1.LDX12.ORM03.ANIX04.ANIX25.ANIC06.OUTM07.ANIT38.OUTT0K309.OUTT1K5010.OUTT2K8011.OUTT3K10012.LDX113.RSTC014.LDM015.ANIT016.ANIY217.OUTY118.LDM019.LDM020.ANDT121.ANIT222.ANIY123.OUTY224.LDT325.OUTK526.END案例九、彩灯循环控制,要求彩灯黄、绿、红循环控制按照规定组别亮12345红绿黄1灭灭亮2亮亮灭3灭亮灭4灭亮亮5灭灭灭端子分配X1起动按钮X2停止按钮黄灯Y0绿灯Y1红灯Y2X1X0X2C0M0M0T3T0K30T1K60T2K80T3K100M0T0T3Y1T2M0T2Y1Y2T1Y3C0SRTC0T4C0K2END指令:1.LDX12.ORM03.ANIX04.ANIX25.ANIC06.OUTM07.ANIT48.OUTT0K309.OUTT1K4010.OUTT2K6011.OUTT3K8012.OUTT4K10013.ANIM014.ANIT015.ORT216.ANIT317.OUTY018.LDM019.ANDT020.ANIT321.OUTY122.ANIT123.OUTY224.LDC025.RSTC026.LDT427.OUTC0K528.END案例十、我公司脱水机卸料控制控制要求;反冲10S进料150S虹吸进10S虹吸退10S脱水250S撇液进11S撇液退10S二次进料50S脱水150S二次撇液进11S二次撇液退10S二次虹吸进10S二次虹吸进10S二次脱水30S卸料30S复位10S反冲输入输出端子I/O分配输入端子:X0自动转换开关;X1液压系统;X2卸料螺旋;X3润滑油;X5卸料限位开关输入端子:Y0反冲;Y1进料;Y2虹吸进;Y3虹吸退;Y4撇液进;Y5撇液退;Y6二次进料;Y7二次撇液进;Y10二次撇液退;Y11二次虹吸进;Y12二次虹吸退Y13卸料进梯形图如下:方法一、用主控指令编程X0X1X2X3X4MCN0M0N0M0M8002T0Y0反冲M1T0K60Y0T0T1Y1一次进料Y1T1K150T1T2Y2一次虹吸进Y2T2K100T2T3Y3一次虹吸退Y3T3K100T3T4Y4一次撇液进Y4T4K110T4T5Y5一次撇液退Y5T5K30T5T6Y6二次进料Y5T6K50T6T7K150一次脱水T7T8Y7二次撇液进Y7T8K120T8T9Y10二次撇液退Y10T9K30T9T10Y11二次虹吸进Y11T10K100T10T11Y12二次虹吸退Y12T11K90T11T12K300脱水T12X5Y13卸料Y13T13K50T13M1复位MCRN0END方法二、用进步指令编程X0X1X2X3X4SETS0S0Y0反冲T0K60T0SETS11S11Y1一次进料T1K150T1SETS12S12Y2一次虹吸进T2K100T2SETS13S13Y3一次虹吸退T3K150T3SETS14S14Y4一次撇液进T4K100T4SETS15S15Y5一次撇液退T5K30T5SETS16S16T6Y6二次进料T6K50脱水T6T7K150T7SETS17S17Y7二次撇液进T8K120T8SETS18S18Y10二次撇液退T9K30T9SETS19S19Y11二次虹吸进T10K100T10SETS20S20T11Y12二次虹吸退T11K19二次T12K150脱水T12SETS21S21X5Y13卸料Y13T12K50复位T12SETS0RETEND彩灯循环控制M8002SETS0S0X1SETS10S10X2Y0黄灯T0K10T0SETS11S11Y1红灯Y2绿灯T1K10T1SETS12S12Y3绿灯T2K10T2SETS13S13Y4绿灯Y5黄灯T3K10T3SETS14S14T4K10T4SETS10RETEND

1 / 19
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功