欢迎来到天天文库
浏览记录
ID:50583122
大小:745.50 KB
页数:17页
时间:2020-03-12
《西门子PLC培训系列8.ppt》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、位指令I0.0I0.1Q8.0Q8.1SRSQRI1.2I1.3M0.0Q9.3I1.0(MCR<)(MCRA)Q8.0I0.0I1.1()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)ORAND基本逻
2、辑指令:异或(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.0逻辑操作结果,首次检查,举例AI1.0ANI1.1AM4.0=Q4.0=Q4.1AI2.0例1信号状态0000检查结果逻辑操作结果首次检查信号状态检查结果逻辑操作结果首次检查1例2111信号状态检查结果逻辑操作结果首次检查1例3010常开和常闭触点,传感器和
3、符号输入端的信号状态检查信号状态“1”符号/指令检查结果检查信号状态“0”符号/指令检查结果有输入端有电压吗?无有无101Yes1LAD:常开触点0&FBD:AIx.ySTL:ANIx.ySTL:&FBD:LAD:常闭触点No0Yes1No0No0Yes1Yes1No0过程PLC程序中的解释动作不动作传感器是...动作不动作常开触点传感器是...常闭触点练习8.1:常开点与常闭点任务:当S1动作和S2不动作时,在所有三个例子中灯应该点亮!I1.0I1.1Q4.0I1.0I1.1Q4.0
4、.......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
5、.0I1.1I1.0I1.1赋值,置位,复位(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赋值LADFBDSTL触发器的置位/复位SRRQSI1.2I1.3M0.0=Q5.3复位优先SRSQRI1.2I1.3M0.0Q5.3AI1.2SM0.0AI1.3RM0
6、.0AM0.0=Q5.3RSSQRI1.3I1.2M0.0=Q5.3置位优先RSRQSI1.3I1.2M0.0Q5.3AI1.3RM0.0AI1.2SM0.0AM0.0=Q5.3LADFBDSTL连接器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=FBD练习8.2:基本逻辑操作指令影响RLO的
7、指令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.1主控继电器功能MCR<&A0.0MCRAS&A0.4Q8.0MCR>&=M5.5M69.0I2.7MCRD&=A0.7Q4.5M0.6=FBDMCRA//激活AI0.0//允许MCR
8、MCR(//打开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.0无条件跳转(不依赖于RLO)(JMP)NEW1Ne
此文档下载收益归作者所有