西门子培训讲义9_位指令

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

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

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

资源描述

Date:2019/9/18File:Binary.1SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives位指令I0.0I0.1Q4.0Q4.1SRSQRI1.2I1.3M0.0Q5.3I1.0I1.1P=&M1.0M8.0I1.0I1.1N=&M1.1M8.1Date:2019/9/18File:Binary.2SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives目标学习了本章之后,你将......懂得“实际”连接NC开关和NO开关与程序符号之间的差别...能够解释术语逻辑操作结果(RLO),状态(STAT)和首次检查...能够编程基本的开关量逻辑操作...能够使用和编程解决问题的边沿检测Date:2019/9/18File:Binary.3SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives基本逻辑指令:与,或L1(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:Binary.4SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives基本逻辑指令:异或(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:Binary.5SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives常开和常闭触点,传感器和符号输入端的信号状态检查信号状态“1”符号/指令检查结果检查信号状态“0”符号/指令检查结果有输入端有电压吗?无有无101Yes1LAD:常开触点0&FBD:AIx.ySTL:ANIx.ySTL:&FBD:LAD:常闭触点No0Yes1No0No0Yes1Yes1No0过程PLC程序中的解释动作不动作传感器是...动作不动作常开触点传感器是...常闭触点Date:2019/9/18File:Binary.6SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives练习:常开点与常闭点任务:当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:Binary.7SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives逻辑操作结果,首次检查,举例AI1.0ANI1.1AM4.0=Q4.0=Q4.1AI2.0例1信号状态0000检查结果逻辑操作结果首次检查信号状态检查结果逻辑操作结果首次检查1例2111信号状态检查结果逻辑操作结果首次检查1例3010::=M3.4Date:2019/9/18File:Binary.8SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives赋值,置位,复位(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:Binary.9SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives触发器的置位/复位SRRQSI1.2I1.3M5.7=Q5.3复位优先SRSQRI1.2I1.3M5.7Q5.3AI1.2SM5.7AI1.3RM5.7AM5.7=Q5.3RSSQRI1.3I1.2M5.7=Q5.3置位优先RSRQSI1.3I1.2M5.7Q5.3AI1.3RM5.7AI1.2SM5.7AM5.7=Q5.3LADFBDSTLDate:2019/9/18File:Binary.10SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives中线输出线圈LADI1.0I1.1()M5.7I2.0I2.1()M1.1NOT()Q4.0AI1.0AI1.1=M5.7AM5.7AI2.0AI2.1NOT=M1.1AM1.1=Q4.0STLI1.0I1.1&&I2.0I2.1M5.7M1.1Q4.0=FBDDate:2019/9/18File:Binary.11SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives影响RLO的指令=Q4.0&I0.0I0.1AI0.0AI0.1NOT=Q4.0()Q4.0NOTI0.0I0.1LADFBDSTLNOTSTAT0-标志不存在不存在CLRCLR=M0.0举例:不存在不存在SETSET=M0.1STAT1-标志Date:2019/9/18File:Binary.12SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives练习:基本逻辑操作指令Date:2019/9/18File:Binary.13SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives练习:传送带的模式选择V0815AI1AI2AO1AO2AI2AI1-15V...+15V-15V...+15VAI1AI2AO1AO2VDII0.0I0.1I0.2I0.3I0.4I0.5I0.6I0.7DO.0.1.2.3.4.5.6.7S_M/A_Mode_SelectT_System_ONT_M/A_AcceptL_SYSTEML_MANL_AUTOT_System_OFFQ4.T_Jog_RTT_Jog_LTWeightDate:2019/9/18File:Binary.14SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives练习:模式部分(FC15),答案提示SRSROUTNetwork1:LEDforSystemONON-conditionOFF-conditionQ4.1SRSROUTNetwork2:LEDforMANUALmodeON-conditionsOFF-conditionsQ4.2SRSROUTNetwork3:LEDforAUTOmodeON-conditionsOFF-conditionsQ4.3Date:2019/9/18File:Binary.15SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives练习:自动模式下传送带运行(1)M.C.Sw.Bay1I8.1Prox.Sens.Bay1I8.5RunConveyorRIGHTQ8.5LightbarrierI8.0Conv.StartConv.StopTransportPhaseM.C.Sw.Bay2I8.2Prox.Sens.Bay2I8.6Date:2019/9/18File:Binary.16SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives练习:自动模式下传送带运行(1),答案提示=手动模式下点动向右的条件自动模式下点动向右的条件M16.3M16.2手动模式下点动向右的标志位自动模式下点动向右的标志位=NetworkxJogRIGHTinMANUALmodeNetworkyRunConveyorRIGHTinAUTOmodeNetworkzControlRunConveyorRIGHTQ8.5传送带向右运行=1M16.2M16.3SRDate:2019/9/18File:Binary.17SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrivesRLO-边沿检测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:Binary.18SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives信号-边沿检测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:Binary.19SIMATIC®S7SiemensAG2003.Allrightsreserved.SITRAINTrainingforAutomationandDrives练习:自动模式下传送带运行(2)RunConveyorRIGHTQ8.5LightbarrierI8.0Conv.StartConv.StopTransportPhaseStartconditionin

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

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

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

×
保存成功