西门子PLC培训资料08C

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

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

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

资源描述

Date:2019/9/18File:SSP1_08C.1SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation位指令I0.0I0.1Q8.0Q8.1SRSQRI1.2I1.3M0.0Q9.3I1.0(MCR)(MCRA)Q8.0I0.0I1.1()Date:2019/9/18File:SSP1_08C.2SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomationL1(Q4.0)S1(I0.0)S2(I0.1)L2(Q4.1)电路图基本逻辑指令:与,或I0.2I0.3=1=Q4.2OI0.2OI0.3=Q4.2I0.0I0.1Q4.0Q4.1LAD=Q4.0&I0.0I0.1=Q4.1FBDAI0.0AI0.1=Q4.0=Q4.1STLI0.2I0.3Q4.2L3(Q4.2)S3(I0.2)S4(I0.3)ORANDDate:2019/9/18File:SSP1_08C.3SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation基本逻辑指令:异或(XOR)XI0.4XI0.5=Q4.0I0.4I0.5XOR=Q4.0I0.4I0.5I0.4I0.5Q4.0LAD=1=Q4.0&I0.4I0.5&I0.4I0.5FBDSTLAI0.4ANI0.5OANI0.4AI0.5=Q4.0Date:2019/9/18File:SSP1_08C.4SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation逻辑操作结果,首次检查,举例AI1.0ANI1.1AM4.0=Q4.0=Q4.1AI2.0例1信号状态0000检查结果逻辑操作结果首次检查信号状态检查结果逻辑操作结果首次检查1例2111信号状态检查结果逻辑操作结果首次检查1例3010Date:2019/9/18File:SSP1_08C.5SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation常开和常闭触点,传感器和符号输入端的信号状态检查信号状态“1”符号/指令检查结果检查信号状态“0”符号/指令检查结果有输入端有电压吗?无有无101Yes1LAD:常开触点0&FBD:AIx.ySTL:ANIx.ySTL:&FBD:LAD:常闭触点No0Yes1No0No0Yes1Yes1No0过程PLC程序中的解释动作不动作传感器是...动作不动作常开触点传感器是...常闭触点Date:2019/9/18File:SSP1_08C.6SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation练习8.1:常开点与常闭点任务:当S1动作和S2不动作时,在所有三个例子中灯应该点亮!I1.0I1.1Q4.0I1.0I1.1Q4.0.......I1.0.......I1.1.......Q4.0Q4.0I1.0I1.1&Q4.0I1.0I1.1&Q4.0I1.0I1.1&.......I1.0.......I1.1.......Q4.0.......I1.0.......I1.1.......Q4.0软件I1.0S1I1.1S2I1.0S1I1.1S2I1.0S1I1.1S2Q4.0可编程控制器LightLightLightQ4.0可编程控制器Q4.0可编程控制器FDBSTLLAD硬件I1.0I1.1Q4.0I1.0I1.1I1.0I1.1I1.0I1.1Date:2019/9/18File:SSP1_08C.7SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation赋值,置位,复位(S)Q4.1I1.2I1.3I1.2&SQ4.1I1.3AI1.2AI1.3SQ4.1置位(R)Q4.1I1.4I1.4=1RQ4.1I1.5OI1.4OI1.5RQ4.1复位I1.5()Q4.0I1.0I1.1I1.0&=Q4.0I1.1AI1.0AI1.1=Q4.0赋值LADFBDSTLDate:2019/9/18File:SSP1_08C.8SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation触发器的置位/复位SRRQSI1.2I1.3M0.0=Q5.3复位优先SRSQRI1.2I1.3M0.0Q5.3AI1.2SM0.0AI1.3RM0.0AM0.0=Q5.3RSSQRI1.3I1.2M0.0=Q5.3置位优先RSRQSI1.3I1.2M0.0Q5.3AI1.3RM0.0AI1.2SM0.0AM0.0=Q5.3LADFBDSTLDate:2019/9/18File:SSP1_08C.9SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation连接器LADI1.0I1.1()M0.0I2.0I2.1()M1.1NOT()Q4.0AI1.0AI1.1=M0.0AM0.0AI2.0AI2.1NOT=M1.1AM1.1=Q4.0STLI1.0I1.1&&I2.0I2.1M0.0M1.1Q4.0=FBDDate:2019/9/18File:SSP1_08C.10SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation练习8.2:基本逻辑操作指令Date:2019/9/18File:SSP1_08C.11SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation影响RLO的指令LADFBDSTLAI0.0AI0.1NOT=Q4.0=Q4.0&I0.0I0.1()Q4.0NOTI0.0I0.1NOTStatusword1581BRRLO不存在不存在CLRCLR不存在不存在SETSETI1.6(SAVE)SAVE&I1.6SAVEAI1.6SAVE=Q4.1BRBR()Q4.1BRABR=Q4.1Date:2019/9/18File:SSP1_08C.12SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation主控继电器功能MCR&A0.0MCRAS&A0.4Q8.0MCR&=M5.5M69.0I2.7MCRD&=A0.7Q4.5M0.6=FBDMCRA//激活AI0.0//允许MCRMCR(//打开MCRAI0.7//NO触点=Q4.5//输出线圈=M0.6//输出线圈AI0.4//NO触点SQ8.0//置位输出)MCR//关闭MCRANM5.5//紧急触点ANI2.7//紧急触点=M69.0//输出线圈MCRD//取消STLLAD(MCRA)I0.7()Q4.5()M0.6I0.4(S)Q8.0()M69.0I2.7M5.5(MCR)(MCRD)(MCR)I0.0Date:2019/9/18File:SSP1_08C.13SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation无条件跳转(不依赖于RLO)(JMP)NEW1Network1Network2::::NetworkxNEW1()M69.0I2.7M5.5LADNEW1JMP....NEW1&M5.5I2.7=M69.0Network1Network2::::NetworkxFBDNetwork1JUNEW1Network2::::NetworkxNEW1:ANM5.5ANI2.7=M69.0STLDate:2019/9/18File:SSP1_08C.14SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation条件跳转(依赖于RLO)AI0.0AI0.1JCNEW1NEW1I0.0I0.1&I0.0I0.1JMPNEW1(JMP)如果RLO=1就跳转AI0.2AI0.3JCNNEW2JMPNI0.2I0.3NEW2NEW2I0.2I0.3如果RLO=0就跳转(JMPN)&LADFBDSTLDate:2019/9/18File:SSP1_08C.15SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomationRLO-边沿检测PI1.0I1.1M1.0M8.0NI1.0I1.1M1.1M8.1LADI1.0I1.1P=&M1.0M8.0I1.0I1.1N=&M1.1M8.1FBDAI1.0AI1.1FPM1.0=M8.0AI1.0AI1.1FNM1.1=M8.1STLI1.0I1.1RLOM1.0M8.0M8.1M1.1OB1-循环例如Date:2019/9/18File:SSP1_08C.16SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation信号-边沿检测I1.1=M8.0POSM_BITM1.0&I1.0I1.1=M8.1NEGM_BITM1.1&I1.0FBDAI1.0A(AI1.1FPM1.0)=M8.0AI1.0A(AI1.1FNM1.1)=M8.1STLI1.1M8.0POSM_BITM1.0QI1.0I1.1M8.1NEGM_BITM1.1QI1.0LAD例如I1.0I1.1M1.0M8.0M8.1M1.1OB1-周期Date:2019/9/18File:SSP1_08C.17SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation练习8.3:灌装线编程(模式选择)Q8.5传送带向前Q8.6传送带向后瓶子传感器I8.6I0.0=I0.1=启动(瞬态常开触点开关)停止(瞬态常闭触点开关)设备ON/OFF:I0.4=手动/自动(开关)接受模式(瞬态常开触点开关)手动/自动模式:I0.5=I0.2=向前点动(瞬态常开触点开关)向后点动(瞬态常开触点开关)I0.3=M

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

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

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

×
保存成功