今天海藍機電的孫XX工程師為你撰寫關(guān)于三菱三菱plc實用指令,。包含F(xiàn)X0N的指令、FX1S的指令、FX1N的指令、FX2N的指令、FX3NC指令。
類
|
FNC NO.
|
指令助記符
|
功能說明
|
對應(yīng)不同型號的√LC
|
FX0S
|
FX0N
|
FX1S
|
FX1N
|
FX2N
FX2NC
|
程
序
流
程
|
00
|
CJ
|
條件跳轉(zhuǎn)
|
√
|
√
|
√
|
√
|
√
|
01
|
CALL
|
子程序調(diào)用
|
×
|
×
|
√
|
√
|
√
|
02
|
SRET
|
子程序返回
|
×
|
×
|
√
|
√
|
√
|
03
|
IRET
|
中斷返回
|
√
|
√
|
√
|
√
|
√
|
04
|
EI
|
開中斷
|
√
|
√
|
√
|
√
|
√
|
05
|
DI
|
關(guān)中斷
|
√
|
√
|
√
|
√
|
√
|
06
|
FEND
|
主程序結(jié)束
|
√
|
√
|
√
|
√
|
√
|
07
|
WDT
|
監(jiān)視定時器刷新
|
√
|
√
|
√
|
√
|
√
|
08
|
FOR
|
循環(huán)的起點與次數(shù)
|
√
|
√
|
√
|
√
|
√
|
09
|
NEXT
|
循環(huán)的終點
|
√
|
√
|
√
|
√
|
√
|
傳
送
與
比
較
|
10
|
CM√
|
比較
|
√
|
√
|
√
|
√
|
√
|
11
|
ZC√
|
區(qū)間比較
|
√
|
√
|
√
|
√
|
√
|
12
|
MOV
|
傳送
|
√
|
√
|
√
|
√
|
√
|
13
|
SMOV
|
位傳送
|
×
|
×
|
×
|
×
|
√
|
14
|
CML
|
取反傳送
|
×
|
×
|
×
|
×
|
√
|
15
|
BMOV
|
成批傳送
|
×
|
√
|
√
|
√
|
√
|
16
|
FMOV
|
多點傳送
|
×
|
×
|
×
|
×
|
√
|
17
|
XCH
|
交換
|
×
|
×
|
×
|
×
|
√
|
18
|
BCD
|
二進制轉(zhuǎn)換成BCD碼
|
√
|
√
|
√
|
√
|
√
|
19
|
BIN
|
BCD碼轉(zhuǎn)換成二進制
|
√
|
√
|
√
|
√
|
√
|
算
術(shù)
與
邏
輯
運
算
|
20
|
ADD
|
二進制加法運算
|
√
|
√
|
√
|
√
|
√
|
21
|
SUB
|
二進制減法運算
|
√
|
√
|
√
|
√
|
√
|
22
|
MUL
|
二進制乘法運算
|
√
|
√
|
√
|
√
|
√
|
23
|
DIV
|
二進制除法運算
|
√
|
√
|
√
|
√
|
√
|
24
|
INC
|
二進制加1運算
|
√
|
√
|
√
|
√
|
√
|
25
|
DEC
|
二進制減1運算
|
√
|
√
|
√
|
√
|
√
|
26
|
WAND
|
字邏輯與
|
√
|
√
|
√
|
√
|
√
|
27
|
WOR
|
字邏輯或
|
√
|
√
|
√
|
√
|
√
|
28
|
WXOR
|
字邏輯異或
|
√
|
√
|
√
|
√
|
√
|
29
|
NEG
|
求二進制補碼
|
×
|
×
|
×
|
×
|
√
|
循
環(huán)
與
移
位
|
30
|
ROR
|
循環(huán)右移
|
×
|
×
|
×
|
×
|
√
|
31
|
ROL
|
循環(huán)左移
|
×
|
×
|
×
|
×
|
√
|
32
|
RCR
|
帶進位右移
|
×
|
×
|
×
|
×
|
√
|
33
|
RCL
|
帶進位左移
|
×
|
×
|
×
|
×
|
√
|
34
|
SFTR
|
位右移
|
√
|
√
|
√
|
√
|
√
|
35
|
SFTL
|
位左移
|
√
|
√
|
√
|
√
|
√
|
36
|
WSFR
|
字右移
|
×
|
×
|
×
|
×
|
√
|
37
|
WSFL
|
字左移
|
×
|
×
|
×
|
×
|
√
|
38
|
SFWR
|
FIFO(先入先出)寫入
|
×
|
×
|
√
|
√
|
√
|
39
|
SFRD
|
FIFO(先入先出)讀出
|
×
|
×
|
√
|
√
|
√
|
數(shù)
據(jù)
處
理
|
40
|
ZRST
|
區(qū)間復(fù)位 三菱plc指令
|
√
|
√
|
√
|
√
|
√
|
41
|
DECO
|
解碼
|
√
|
√
|
√
|
√
|
√
|
42
|
ENCO
|
編碼
|
√
|
√
|
√
|
√
|
√
|
43
|
SUM
|
統(tǒng)計ON位數(shù)
|
×
|
×
|
×
|
×
|
√
|
44
|
BON
|
查詢位某狀態(tài)
|
×
|
×
|
×
|
×
|
√
|
45
|
MEAN
|
求平均值
|
×
|
×
|
×
|
×
|
√
|
46
|
ANS
|
報警器置位
|
×
|
×
|
×
|
×
|
√
|
47
|
ANR
|
報警器復(fù)位
|
×
|
×
|
×
|
×
|
√
|
48
| |
評論信息