資源描述:
《三菱PLC指令詳解.doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、一?順控指令1?觸點(diǎn)指令00?LD???邏輯操作開始01?LDI???邏輯非操作開始02?AND??邏輯乘03?ANI???邏輯乘非04?OR???邏輯加05?ORI???邏輯加非2?連接指令06?ANB??AND邏輯塊與07?ORB??OR邏輯塊或08?MPS???存儲(chǔ)操作結(jié)果09?MRD??從MPS讀取操作結(jié)果10?MPP???從MPS讀取操作結(jié)果并清除結(jié)果3?輸出指令11?OUT??軟元件輸出12?SET???軟元件置位13?RST???軟元件復(fù)位14?PLS???在輸入信號(hào)的上升沿15?PLF???在輸入信號(hào)的下降沿16?CHK??軟元件
2、輸出翻轉(zhuǎn)4?移位指令17?SFT???元件移1位18?SFTP??元件移1位5?主控指令19?MC???主控開始20?MCR??主控復(fù)位6?結(jié)束指令21?FEND??結(jié)束主程序22?END??總的程序末尾,返回第0步7?其它指令23?STOP??停止24?NOP???空操作二?基本指令1?比較指令16位數(shù)據(jù)比較25?LD=???當(dāng)S1=S2,?接通,當(dāng)S1≠S2,?斷開26?AND=??27?OR=???28?LD<>??當(dāng)S1≠S2,?接通,當(dāng)S1=S2,?斷開29?AND<>??30?OR<>??31?LD>???當(dāng)S1>S2,?接通,當(dāng)S1
3、≤S2,?斷開32?AND>??33?OR>???34?LD<=??當(dāng)S1≤S2,?接通,當(dāng)S1>S2,?斷開35?AND<=??36?OR<=??37?LD??當(dāng)S1=??當(dāng)S1≥S2,?接通,當(dāng)S1=??42?OR>=??32位數(shù)據(jù)比較43?LDD=?當(dāng)(S1+1,S1)=(S2+1,S2),?接通44?ANDD=??45?ORD=??46?LDD<>?當(dāng)(S1+1,S1)≠(S2+1,S2),接通47?ANDD<>??48?O
4、RD<>??49?LDD>?當(dāng)(S1+1,S1)>(S2+1,S2),?接通50?ANDD>??51?ORD>??52?LDD<=?當(dāng)(S1+1,S1)≤(S2+1,S2),接通53?ANDD<=??54?ORD<=??55?LDD=?當(dāng)(S1+1,S1)≥(S2+1,S2),接通59?ANDD>=??60?ORD>=??2?算術(shù)運(yùn)算指令二進(jìn)制16位加/減61?+???(D)+(S)→(D)62?+P???63?+???(S1)+(S2)→(D
5、)64?+P???65?-???(D)-(S)→(D)66?-P???67?-???(S1)-(S2)→(D)68?-P???二進(jìn)制32位加/減69?D+??(D+1,D)+(S+1,S)→(D+1,D)70?D+P??71?D+??(S1+1,S1)+(S2+1,S2)→(D+1,D)72?D+P??73?D-??(D+1,D)-(S+1,S)→(D+1,D)74?D-P??75?D-??(S1+1,S1)-(S2+1,S2)→(D+1,D)76?D-P??77?*??(S1)×(S2)→(D+1,D)78?*P??79?/??(S1)/(S2
6、)→商(D),?余數(shù)(D+1)80?/P??81?D*??(S1+1,S1)×(S2+1,S2)→(D+3,D+2,D+1,D)82?D*P??83?D/??(S1+1,S1)/(S2+1,S2)→???商(D+1,D),余數(shù)(D+3,D+2)84?D/P??85?B+??(D)+(S)→(D)86?B+P??87?B+??(S1)+(S2)→(D)88?B+P??89?B-??(D)-(S)→(D)90?B-P??91?B-??(S1)-(S2)→(D)92?B-P??93?DB+??(D+1,D)+(S+1,S)?→(D+1,D)94?DB+
7、P?95?DB+??(S1+1,S1)+(S2+1,S2)→(D+1,D)96?DB+P?97?DB-??(D+1,D)-(S+1,S)→(D+1,D)98?DB-P?99?DB-??(S1+1,S1)-(S2+1,S2)→(D+1,D)100?DB-P?101?B*??(S1)×(S2)→(D+1,D)102?B*P??103?B/??(S1)/(S2)→商(D),余數(shù)(D+1)104?B/P??105?DB*??(S1+1,S1)×(S2+1,S2)→(D+3,D+2,D+1,D)106?DB*P?107?DB/??(S1+1,S1)/(S2
8、+1,S2)→???商(D+1,D),余數(shù)(D+3,D+2)108?DB/P?109?INC??(D)+1→(D)110?INCP?11