今天海蓝机電(diàn)的孙XX工程师為(wèi)你撰写关于三菱三菱plc实用(yòng)指令,。包含FX0N的指令、FX1S的指令、FX1N的指令、FX2N的指令、FX3NC指令。
类
|
FNC NO.
|
指令助记符
|
功能(néng)说明
|
对应不同型号的√LC
|
FX0S
|
FX0N
|
FX1S
|
FX1N
|
FX2N
FX2NC
|
程
序
流
程
|
00
|
CJ
|
条件跳转
|
√
|
√
|
√
|
√
|
√
|
01
|
CALL
|
子程序调用(yòng)
|
×
|
×
|
√
|
√
|
√
|
02
|
SRET
|
子程序返回
|
×
|
×
|
√
|
√
|
√
|
03
|
IRET
|
中断返回
|
√
|
√
|
√
|
√
|
√
|
04
|
EI
|
开中断
|
√
|
√
|
√
|
√
|
√
|
05
|
DI
|
关中断
|
√
|
√
|
√
|
√
|
√
|
06
|
FEND
|
主程序结束
|
√
|
√
|
√
|
√
|
√
|
07
|
WDT
|
监视定时器刷新(xīn)
|
√
|
√
|
√
|
√
|
√
|
08
|
FOR
|
循环的起点与次数
|
√
|
√
|
√
|
√
|
√
|
09
|
NEXT
|
循环的终点
|
√
|
√
|
√
|
√
|
√
|
传
送
与
比
较
|
10
|
CM√
|
比较
|
√
|
√
|
√
|
√
|
√
|
11
|
ZC√
|
區(qū)间比较
|
√
|
√
|
√
|
√
|
√
|
12
|
MOV
|
传送
|
√
|
√
|
√
|
√
|
√
|
13
|
SMOV
|
位传送
|
×
|
×
|
×
|
×
|
√
|
14
|
CML
|
取反传送
|
×
|
×
|
×
|
×
|
√
|
15
|
BMOV
|
成批传送
|
×
|
√
|
√
|
√
|
√
|
16
|
FMOV
|
多(duō)点传送
|
×
|
×
|
×
|
×
|
√
|
17
|
XCH
|
交换
|
×
|
×
|
×
|
×
|
√
|
18
|
BCD
|
二进制转换成BCD码
|
√
|
√
|
√
|
√
|
√
|
19
|
BIN
|
BCD码转换成二进制
|
√
|
√
|
√
|
√
|
√
|
算
术
与
逻
辑
运
算
|
20
|
ADD
|
二进制加法运算
|
√
|
√
|
√
|
√
|
√
|
21
|
SUB
|
二进制减法运算
|
√
|
√
|
√
|
√
|
√
|
22
|
MUL
|
二进制乘法运算
|
√
|
√
|
√
|
√
|
√
|
23
|
DIV
|
二进制除法运算
|
√
|
√
|
√
|
√
|
√
|
24
|
INC
|
二进制加1运算
|
√
|
√
|
√
|
√
|
√
|
25
|
DEC
|
二进制减1运算
|
√
|
√
|
√
|
√
|
√
|
26
|
WAND
|
字逻辑与
|
√
|
√
|
√
|
√
|
√
|
27
|
WOR
|
字逻辑或
|
√
|
√
|
√
|
√
|
√
|
28
|
WXOR
|
字逻辑异或
|
√
|
√
|
√
|
√
|
√
|
29
|
NEG
|
求二进制补码
|
×
|
×
|
×
|
×
|
√
|
循
环
与
移
位
|
30
|
ROR
|
循环右移
|
×
|
×
|
×
|
×
|
√
|
31
|
ROL
|
循环左移
|
×
|
×
|
×
|
×
|
√
|
32
|
RCR
|
带进位右移
|
×
|
×
|
×
|
×
|
√
|
33
|
RCL
|
带进位左移
|
×
|
×
|
×
|
×
|
√
|
34
|
SFTR
|
位右移
|
√
|
√
|
√
|
√
|
√
|
35
|
SFTL
|
位左移
|
√
|
√
|
√
|
√
|
√
|
36
|
WSFR
|
字右移
|
×
|
×
|
×
|
×
|
√
|
37
|
WSFL
|
字左移
|
×
|
×
|
×
|
×
|
√
|
38
|
SFWR
|
FIFO(先入先出)写入
|
×
|
×
|
√
|
√
|
√
|
39
|
SFRD
|
FIFO(先入先出)读出
|
×
|
×
|
√
|
√
|
√
|
数
据
处
理(lǐ)
|
40
|
ZRST
|
區(qū)间复位 三菱plc指令
|
√
|
√
|
√
|
√
|
√
|
41
|
DECO
|
解码
|
√
|
√
|
√
|
√
|
√
|
42
|
ENCO
|
编码
|
√
|
√
|
√
|
√
|
√
|
43
|
SUM
|
统计ON位数
|
×
|
×
|
×
|
×
|
√
|
44
|
BON
|
查询位某状态
|
×
|
×
|
×
|
×
|
√
|
45
|
MEAN
|
求平均值
|
×
|
×
|
×
|
×
|
√
|
46
|
ANS
|
报警器置位
|
×
|
×
|
×
|
×
|
√
|
47
|
ANR
|
报警器复位
|
×
|
×
|
×
|
×
|
√
|
48
| |
评论信息