資源描述:
《歐姆龍PLC指令》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、4指令助記符:定時(shí)器TIM5編輯指令:數(shù)據(jù)移位指令,遞增/遞減指令,四則運(yùn)算指令,轉(zhuǎn)換指令,邏輯指令,特殊算術(shù)指令,表格數(shù)據(jù)處理指令,數(shù)據(jù)控制指令。6指令助記符移位寄存器SFT可逆移位寄存器SFTR字移位WSFT算術(shù)左移ASL算術(shù)右移ASR循環(huán)左移ROL循環(huán)右移ROR一個(gè)數(shù)字左移SLD一個(gè)數(shù)字右移SRD左移N位NASL雙字左移N位NSLL右移N位NASR雙字右移N位NSRL7指令助記符二進(jìn)制遞增++雙字二進(jìn)制遞增++L二進(jìn)制遞減--雙字二進(jìn)制遞減--LBCD遞增++B,雙字BCD遞增++BL,BCD遞減--B,雙字BCD遞減--BL8指令助記符無(wú)進(jìn)位帶符號(hào)二進(jìn)制加
2、法+,無(wú)進(jìn)位帶符號(hào)雙字二進(jìn)制加法+L,有進(jìn)位帶符號(hào)二進(jìn)制加法+C,有進(jìn)位帶符號(hào)雙字二進(jìn)制加法+CL,無(wú)進(jìn)位BCD加法+B,無(wú)進(jìn)位雙字BCD加法+BL,有進(jìn)位BCD加法+BC,有進(jìn)位雙字BCD加法+BCL,無(wú)進(jìn)位帶符號(hào)二進(jìn)制減法-無(wú)進(jìn)位帶符號(hào)雙字二進(jìn)制減法-L,有進(jìn)位帶符號(hào)二進(jìn)制減法-C,有進(jìn)位帶符號(hào)雙字二進(jìn)制減法-CL,無(wú)進(jìn)位BCD減法-B,無(wú)進(jìn)位雙字BCD減法-BL,有進(jìn)位BCD減法-BC有進(jìn)位雙字BCD減法-BCL,帶符號(hào)二進(jìn)制乘法*,帶符號(hào)雙字二進(jìn)制乘法*L,BCD乘法*B,雙字BCD乘法*BL,帶符號(hào)二進(jìn)制除法/,帶符號(hào)雙字二進(jìn)制除法/L,BCD除法/B雙
3、字BCD除法/BL9指令助記符BCD→二進(jìn)制BIN,雙字BCD→雙字二進(jìn)制BINL,二進(jìn)制→BCDBCD雙字二進(jìn)制→雙字BCDBCDL二進(jìn)制求補(bǔ)NEG,數(shù)據(jù)譯碼MLPX,數(shù)據(jù)編碼DMPX,ASCⅡ轉(zhuǎn)換碼ASC,ASCⅡ→HEXHEX10指令助記符邏輯與ANDW,雙字邏輯與ANDL,邏輯或ORW,雙字邏輯或ORWL,異或XORW雙字異或XORL,求補(bǔ)COM,雙字求補(bǔ)COML11指令助記符算術(shù)處理APR,位計(jì)數(shù)器BCNT12指令助記符浮點(diǎn)數(shù)→16位FIX,浮點(diǎn)數(shù)→32位FIXL,16位→浮點(diǎn)數(shù)FLT,32位→浮點(diǎn)數(shù)FLTL浮點(diǎn)數(shù)加法+F,浮點(diǎn)數(shù)減法-F,浮點(diǎn)數(shù)除法/F
4、,浮點(diǎn)數(shù)乘法*F浮點(diǎn)符號(hào)比較LD,AND,OR+=FLD,AND,OR+<>FLD,AND,OR+FLD,AND,OR+>=F浮點(diǎn)數(shù)→ASCⅡFSTRASCⅡ→浮點(diǎn)數(shù)FVAL12指令助記符交換字節(jié)SWAP,幀校驗(yàn)和FCS13指令助記符帶自調(diào)整的PID控制PIDAT,時(shí)間比例輸出TPO,標(biāo)度SCL,標(biāo)度2SCL2,標(biāo)度3SCL3平均值A(chǔ)VG14指令助記符子程序調(diào)用SBS,子程序進(jìn)入SBN,子程序返回RET,設(shè)置中斷屏蔽MSKS,清除中斷CLI,禁止中斷DI,允許中斷EI,模式控制INI,高速計(jì)數(shù)器當(dāng)前值讀取PRV比
5、較表載入CTBL,速度輸出SPED,設(shè)置脈沖PULS,脈沖輸出PLS2,加速度模式ACC原點(diǎn)搜索ORG,可變占空比系數(shù)脈沖PWM15指令助記符步定義STEP,步啟動(dòng)SNXT,I/O刷新IORF,7段譯碼SDEC,數(shù)字開(kāi)關(guān)輸入DSW矩陣輸入MTR,7段顯示輸出7SEG發(fā)送TXD,接收RXD,日歷加法CADD,日歷減法CSUB,時(shí)鐘調(diào)整DATE,故障報(bào)警FAL嚴(yán)重故障報(bào)警FALS,設(shè)置進(jìn)位STC,清除進(jìn)位CLC,延長(zhǎng)最大循環(huán)時(shí)間WDTTIMX計(jì)數(shù)器:CNT,CNTX高速定時(shí)器:TIMH,TIMHX1MS定時(shí)器:TMHH,TMHHX累計(jì)定時(shí)器:TTIM,TTIMX長(zhǎng)時(shí)間
6、定時(shí)器:TIML,TIMLX可逆計(jì)數(shù)器:CNTR,CNTRX定時(shí)器/計(jì)數(shù)器復(fù)位:CNR,CNRX16指令助記符輸入比較指令(無(wú)符號(hào))LD,AND,OR+=LD,AND,OR+<>LD,AND,OR+LD,AND,OR+>=輸入比較指令(雙字長(zhǎng),無(wú)符號(hào))LD,AND,OR+=+LLD,AND,OR+<>+LLD,AND,OR+<+LLD,AND,OR+<=+LLD,AND,OR+>+LLD,AND,OR+>=+L輸入比較指令(帶符號(hào))LD,AND,OR+=+SLD,AND,OR+<>+SLD,AND,OR+<+SLD,
7、AND,OR+<=+SLD,AND,OR+>+SLD,AND,OR+>=+S輸入比較指令(雙字長(zhǎng),帶符號(hào))LD,AND,OR+=+SLLD,AND,OR+<>+SLLD,AND,OR+<+SLLD,AND,OR+<=+SLLD,AND,OR+>+SLLD,AND,OR+>=+SL時(shí)間比較指令=DT<>DT
DT>=DT比較CMP,雙字比較CMPL,帶符號(hào)二進(jìn)制比較CPS,雙字長(zhǎng)帶符號(hào)二進(jìn)制比較CPSL表格比較TCMP,無(wú)符號(hào)塊比較BCMP,區(qū)域范圍比較ZCP,雙區(qū)域范圍比較ZCPL17指令助記符傳送MOV,雙字長(zhǎng)傳送MOVL,傳送非MVN,傳送位MO8、VB,數(shù)字