资源描述:
《欧姆龙应用指令》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、欧姆龙应用指令EmptyoperationcommandNOP(0,0)Thisinstructiondoesnotdoanylogicaloperation,soitiscalledemptyoperationandnorelay,nooperationnumber・Theinstructionisappliedintheprogramtoallowanaddresstobeinsertedinordertodebugtheprogram,butalsotofine-tunetheseantime・ENDinstructionEND(01)Thi
2、sinstructionisusedalone,nooperandsarerequired,thefinalinstructionoftheprogram,indicatingthattheprogramisover・ThePLCexecutestheuserprogram,stopstheexecutionphasewhenitexecutestheENDinstruction,andturnstotheoutputrefreshphase・IftheENDinstructionisomittedfromtheprogram,theprogram
3、merisexecutedbydisplayinganerrormessage:"NOENDINSET":whentheENDcommandisadded,thePLCwillnotrunproperly.Thisinstruct!oncanalsobeusedtodebugtheprogram.TheinterlockinstructionIL(02)andtheinterlockclearinginstructionILC(0,3)Thetwoinstructionsdon'tcount,andtheILcommandisinterlockin
4、g,formingabranchcircuit,whichisthenewbustobeusedwiththeLDcommand,indicatingthebeginningoftheinterlocksegment・TheILCinstructionindicatesthattheinterlockingsegmentisover・TheinterlockingorderILandtheinterlockclearinginstructionILCisusedtoformanewbusinthebranchofthetrapezoiddiagra
5、m,allowingacertainpartofthetrapezoiddiagramtobecontrolledbycertainconditions・TheILandILCinstructionsshouldbeusedinpairs,otherwisetheywillfai1.ThefunctionoftheIL/ILCinstructionisthatiftheconditionofthecontrolofILisestablished(thatis,ON),thentheinterlockinginstructionisexecuted.
6、IfthecontrolconditionsofIL(OFF),ILandILCdoesnotperformtheinterlockbetweentheproceduressection,namelyallrelaybetweenIL/ILCareOFF,allthetimerwillberesetatthistime,butallthecounters,shiftregisterandkeeptherelayaretokeepthecurrentvalue・JumpstartinstructionJMP(04)andjumpendinstruct
7、ionJME(05)Thesetwoinstructionsdon,tcount,theJMPcommandindicatesthebeginningoftheprogramtransfer,andtheJMEinstructionindicatestheendoftheprogramtransfer・TheJMP/JMEinstructiongroupisusedtocontroltheprogrambranch・WhentheJMPconditionisOFF,theprogrammovestoexecutethefirstinstructio
8、nbehindJME:WhenJMP'sconditionisON,theentireladderdiagramisexe