类 | FNC NO. | 指令助记符 | 功能说明 | 对应不同型号的PLC | ||||
FX0S | FX0N | FX1S | FX1N | FX2N | ||||
FX2NC | ||||||||
程序流程 | 0 | CJ | 条件跳转 | √ | √ | √ | √ | √ |
1 | CALL | 子程序调用 | × | × | √ | √ | √ | |
2 | SRET | 子程序返回 | × | × | √ | √ | √ | |
3 | IRET | 中断返回 | √ | √ | √ | √ | √ | |
4 | EI | 开中断 | √ | √ | √ | √ | √ | |
5 | DI | 关中断 | √ | √ | √ | √ | √ | |
6 | FEND | 主程序结束 | √ | √ | √ | √ | √ | |
7 | WDT | 监视定时器刷新 | √ | √ | √ | √ | √ | |
8 | FOR | 循环的起点与次数 | √ | √ | √ | √ | √ | |
9 | NEXT | 循环的终点 | √ | √ | √ | √ | √ | |
传送与比较 | 10 | CMP | 比较 | √ | √ | √ | √ | √ |
11 | ZCP | 区间比较 | √ | √ | √ | √ | √ | |
12 | MOV | 传送 | √ | √ | √ | √ | √ | |
13 | SMOV | 位传送 | × | × | × | × | √ | |
14 | CML | 取反传送 | × | × | × | × | √ | |
15 | BMOV | 成批传送 | × | √ | √ | √ | √ | |
16 | FMOV | 多点传送 | × | × | × | × | √ | |
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(先入先出)读出 | × | × | √ | √ | √ | |
数据处理 | 40 | ZRST | 区间复位 | √ | √ | √ | √ | √ |
41 | DECO | 解码 | √ | √ | √ | √ | √ | |
42 | ENCO | 编码 | √ | √ | √ | √ | √ | |
43 | SUM | 统计ON位数 | × | × | × | × | √ | |
44 | BON | 查询位某状态 | × | × | × | × | √ | |
45 | MEAN | 求平均值 | × | × | × | × | √ | |
46 | ANS | 报警器置位 | × | × | × | × | √ | |
47 | ANR | 报警器复位 | × | × | × | × | √ | |
48 | SQR | 求平方根 | × | × | × | × | √ | |
49 | FLT | 整数与浮点数转换 | × | × | × | × | √ | |
高速处理 | 50 | REF | 输入输出刷新 | √ | √ | √ | √ | √ |
51 | REFF | 输入滤波时间调整 | × | × | × | × | √ | |
52 | MTR | 矩阵输入 | × | × | √ | √ | √ | |
53 | HSCS | 比较置位(高速计数用) | × | √ | √ | √ | √ | |
54 | HSCR | 比较复位(高速计数用) | × | √ | √ | √ | √ | |
55 | HSZ | 区间比较(高速计数用) | × | × | × | × | √ | |
56 | SPD | 脉冲密度 | × | × | √ | √ | √ | |
57 | PLSY | 指定频率脉冲输出 | √ | √ | √ | √ | √ | |
58 | PWM | 脉宽调制输出 | √ | √ | √ | √ | √ | |
59 | PLSR | 带加减速脉冲输出 | × | × | √ | √ | √ | |
方便指令 | 60 | IST | 状态初始化 | √ | √ | 82 | ASCI | 16进制数转换成ASCI码 |
83 | HEX | ASCI码转换成16进制数 | × | √ | √ | √ | √ | |
84 | CCD | 校验 | × | √ | √ | √ | √ | |
85 | VRRD | 电位器变量输入 | × | × | √ | √ | √ | |
86 | VRSC | 电位器变量区间 | × | × | √ | √ | √ | |
87 | - | - | ||||||
88 | PID | PID运算 | × | × | √ | √ | √ | |
89 | - | - | ||||||
浮点数运算 | 110 | ECMP | 二进制浮点数比较 | × | × | × | × | × |
111 | EZCP | 二进制浮点数区间比较 | × | × | × | × | × | |
118 | EBCD | 二进制浮点数→十进制浮点数 | × | × | × | × | √ | |
119 | EBIN | 十进制浮点数→二进制浮点数 | × | × | × | × | √ | |
120 | EADD | 二进制浮点数加法 | × | × | × | × | √ | |
121 | EUSB | 二进制浮点数减法 | × | × | × | × | √ | |
122 | EMUL | 二进制浮点数乘法 | × | × | × | × | √ | |
123 | EDIV | 二进制浮点数除法 | × | × | × | × | √ | |
127 | ESQR | 二进制浮点数开平方 | × | × | × | × | √ | |
129 | INT | 二进制浮点数→二进制整数 | × | × | × | × | √ | |
130 | SIN | 二进制浮点数Sin运算 | × | × | × | × | √ | |
131 | COS | 二进制浮点数Cos运算 | × | × | × | × | √ | |
132 | TAN | 二进制浮点数Tan运算 | × | × | × | × | √ | |
147 | SWAP | 高低字节交换 | × | × | × | × | √ | |
定位 | 155 | ABS | ABS当前值读取 | × | × | √ | √ | × |
156 | ZRN | 原点回归 | × | × | √ | √ | × | |
157 | PLSY | 可变速的脉冲输出 | × | × | √ | √ | × | |
158 | DRVI | 相对位置控制 | × | × | √ | √ | × | |
159 | DRVA | 绝对位置控制 | × | × | √ | √ | × | |
时钟运算 | 160 | TCMP | 时钟数据比较 | × | × | √ | √ | √ |
161 | TZCP | 时钟数据区间比较 | × | × | √ | √ | √ | |
162 | TADD | 时钟数据加法 | × | × | √ | √ | √ | |
163 | TSUB | 时钟数据减法 | × | × | √ | √ | √ | |
166 | TRD | 时钟数据读出 | × | × | √ | √ | √ | |
167 | TWR | 时钟数据写入 | × | × | √ | √ | √ | |
169 | HOUR | 计时仪 | × | × | √ | √ | ||
外围设备 | 170 | GRY | 二进制数→格雷码 | × | × | × | × | √ |
171 | GBIN | 格雷码→二进制数 | × | × | × | × | √ | |
176 | RD3A | 模拟量模块(FX0N-3A)读出 | × | √ | × | √ | × | |
177 | WR3A | 模拟量模块(FX0N-3A)写入 | × | √ | × | √ | × | |
触点比较 | 224 | LD= | (S1)= (S2)时起始触点接通 | × | × | √ | √ | √ |
225 | LD> | (S1)> (S2)时起始触点接通 | × | × | √ | √ | √ | |
226 | LD< | (S1)< (S2)时起始触点接通 | × | × | √ | √ | √ | |
228 | LD<> | (S1)<> (S2)时起始触点接通 | × | × | √ | √ | √ | |
229 | LD≦ | (S1)≦ (S2)时起始触点接通 | × | × | √ | √ | √ | |
230 | LD≧ | (S1)≧ (S2)时起始触点接通 | × | × | √ | √ | √ | |
232 | AND= | (S1)= (S2)时串联触点接通 | × | × | √ | √ | √ | |
233 | AND> | (S1)> (S2)时串联触点接通 | × | × | √ | √ | √ | |
234 | AND< | (S1)< (S2)时串联触点接通 | × | × | √ | √ | √ | |
236 | AND<> | (S1)<> (S2)时串联触点接通 | × | × | √ | √ | √ | |
237 | AND≦ | (S1)≦ (S2)时串联触点接通 | × | × | √ | √ | √ | |
238 | AND≧ | (S1)≧ (S2)时串联触点接通 | × | × | √ | √ | √ | |
240 | OR= | (S1)= (S2)时并联触点接通 | × | × | √ | √ | √ | |
241 | OR> | (S1)> (S2)时并联触点接通 | × | × | √ | √ | √ | |
242 | OR< | (S1)< (S2)时并联触点接通 | × | × | √ | √ | √ | |
244 | OR<> | (S1)<> (S2)时并联触点接通 | × | × | √ | √ | √ | |
245 | OR≦ | (S1)≦ (S2)时并联触点接通 | × | × | √ | √ | √ | |
246 | OR≧ | (S1)≧ (S2)时并联触点接通 | × | × | √ | √ | √ |