分類 |
FNC NO. |
指令助記符 |
功能說明 |
對(duì)應(yīng)不同型號(hào)的PLC | ||||
FX0S |
FX0N |
FX1S |
FX1N |
FX2N
FX2NC | ||||
程
序
流
程 |
00 |
CJ |
條件跳轉(zhuǎn) |
P |
P |
P |
P |
P |
01 |
CALL |
子程序調(diào)用 |
Î |
Î |
P |
P |
P | |
02 |
SRET |
子程序返回 |
Î |
Î |
P |
P |
P | |
03 |
IRET |
中斷返回 |
P |
P |
P |
P |
P | |
04 |
EI |
開中斷 |
P |
P |
P |
P |
P | |
05 |
DI |
關(guān)中斷 |
P |
P |
P |
P |
P | |
06 |
FEND |
主程序結(jié)束 |
P |
P |
P |
P |
P | |
07 |
WDT |
監(jiān)視定時(shí)器刷新 |
P |
P |
P |
P |
P | |
08 |
FOR |
循環(huán)的起點(diǎn)與次數(shù) |
P |
P |
P |
P |
P | |
09 |
NEXT |
循環(huán)的終點(diǎn) |
P |
P |
P |
P |
P | |
傳
送
與
比
較 |
10 |
CMP |
比較 |
P |
P |
P |
P |
P |
11 |
ZCP |
區(qū)間比較 |
P |
P |
P |
P |
P | |
12 |
MOV |
傳送 |
P |
P |
P |
P |
P | |
13 |
SMOV |
位傳送 |
Î |
Î |
Î |
Î |
P | |
14 |
CML |
取反傳送 |
Î |
Î |
Î |
Î |
P | |
15 |
BMOV |
成批傳送 |
Î |
P |
P |
P |
P | |
16 |
FMOV |
多點(diǎn)傳送 |
Î |
Î |
Î |
Î |
P | |
17 |
XCH |
交換 |
Î |
Î |
Î |
Î |
P | |
18 |
BCD |
二進(jìn)制轉(zhuǎn)換成BCD碼 |
P |
P |
P |
P |
P | |
19 |
BIN |
BCD碼轉(zhuǎn)換成二進(jìn)制 |
P |
P |
P |
P |
P | |
算
術(shù)
與
邏
輯
運(yùn)
算 |
20 |
ADD |
二進(jìn)制加法運(yùn)算 |
P |
P |
P |
P |
P |
21 |
SUB |
二進(jìn)制減法運(yùn)算 |
P |
P |
P |
P |
P | |
22 |
MUL |
二進(jìn)制乘法運(yùn)算 |
P |
P |
P |
P |
P | |
23 |
DIV |
二進(jìn)制除法運(yùn)算 |
P |
P |
P |
P |
P | |
24 |
INC |
二進(jìn)制加1運(yùn)算 |
P |
P |
P |
P |
P | |
25 |
DEC |
二進(jìn)制減1運(yùn)算 |
P |
P |
P |
P |
P | |
26 |
WAND |
字邏輯與 |
P |
P |
P |
P |
P | |
27 |
WOR |
字邏輯或 |
P |
P |
P |
P |
P | |
28 |
WXOR |
字邏輯異或 |
P |
P |
P |
P |
P | |
29 |
NEG |
求二進(jìn)制補(bǔ)碼 |
Î |
Î |
Î |
Î |
P | |
循
環(huán)
與
移
位 |
30 |
ROR |
循環(huán)右移 |
Î |
Î |
Î |
Î |
P |
31 |
ROL |
循環(huán)左移 |
Î |
Î |
Î |
Î |
P | |
32 |
RCR |
帶進(jìn)位右移 |
Î |
Î |
Î |
Î |
P | |
33 |
RCL |
帶進(jìn)位左移 |
Î |
Î |
Î |
Î |
P | |
34 |
SFTR |
位右移 |
P |
P |
P |
P |
P | |
35 |
SFTL |
位左移 |
P |
P |
P |
P |
P | |
36 |
WSFR |
字右移 |
Î |
Î |
Î |
Î |
P | |
37 |
WSFL |
字左移 |
Î |
Î |
Î |
Î |
P | |
38 |
SFWR |
FIFO(先入先出)寫入 |
Î |
Î |
P |
P |
P | |
39 |
SFRD |
FIFO(先入先出)讀出 |
Î |
Î |
P |
P |
P | |
數(shù)
據(jù)
處
理 |
40 |
ZRST |
區(qū)間復(fù)位 |
P |
P |
P |
P |
P |
41 |
DECO |
解碼 |
P |
P |
P |
P |
P | |
42 |
ENCO |
編碼 |
P |
P |
P |
P |
P | |
43 |
SUM |
統(tǒng)計(jì)ON位數(shù) |
Î |
Î |
Î |
Î |
P | |
44 |
BON |
查詢位某狀態(tài) |
Î |
Î |
Î |
Î |
P | |
45 |
MEAN |
求平均值 |
Î |
Î |
Î |
Î |
P | |
46 |
ANS |
報(bào)警器置位 |
Î |
Î |
Î |
Î |
P | |
47 |
ANR |
報(bào)警器復(fù)位 |
Î |
Î |
Î |
Î |
P | |
48 |
SQR |
求平方根 |
Î |
Î |
Î |
Î |
P | |
49 |
FLT |
整數(shù)與浮點(diǎn)數(shù)轉(zhuǎn)換 |
Î |
Î |
Î |
Î |
P | |
高
速
處
理 |
50 |
REF |
輸入輸出刷新 |
P |
P |
P |
P |
P |
51 |
REFF |
輸入濾波時(shí)間調(diào)整 |
Î |
Î |
Î |
Î |
P | |
52 |
MTR |
矩陣輸入 |
Î |
Î |
P |
P |
P | |
53 |
HSCS |
比較置位(高速計(jì)數(shù)用) |
Î |
P |
P |
P |
P | |
54 |
HSCR |
比較復(fù)位(高速計(jì)數(shù)用) |
Î |
P |
P |
P |
P | |
55 |
HSZ |
區(qū)間比較(高速計(jì)數(shù)用) |
Î |
Î |
Î |
Î |
P | |
56 |
SPD |
脈沖密度 |
Î |
Î |
P |
P |
P | |
57 |
PLSY |
指定頻率脈沖輸出 |
P |
P |
P |
P |
P | |
58 |
PWM |
脈寬調(diào)制輸出 |
P |
P |
P |
P |
P | |
59 |
PLSR |
帶加減速脈沖輸出 |
Î |
Î |
P |
P |
P | |
方
便
指
令 |
60 |
IST |
狀態(tài)初始化 |
P |
P |
P |
P |
P |
61 |
SER |
數(shù)據(jù)查找 |
Î |
Î |
Î |
Î |
P | |
62 |
ABSD |
凸輪控制(絕對(duì)式) |
Î |
Î |
P |
P |
P | |
63 |
INCD |
凸輪控制(增量式) |
Î |
Î |
P |
P |
P | |
64 |
TTMR |
示教定時(shí)器 |
Î |
Î |
Î |
Î |
P | |
65 |
STMR |
特殊定時(shí)器 |
Î |
Î |
Î |
Î |
P | |
66 |
ALT |
交替輸出 |
P |
P |
P |
P |
P | |
67 |
RAMP |
斜波信號(hào) |
P |
P |
P |
P |
P | |
68 |
ROTC |
旋轉(zhuǎn)工作臺(tái)控制 |
Î |
Î |
Î |
Î |
P | |
69 |
SORT |
列表數(shù)據(jù)排序 |
Î |
Î |
Î |
Î |
P | |
外
部
I/O
設(shè)
備 |
70 |
TKY |
10鍵輸入 |
Î |
Î |
Î |
Î |
P |
71 |
HKY |
16鍵輸入 |
Î |
Î |
Î |
Î |
P | |
72 |
DSW |
BCD數(shù)字開關(guān)輸入 |
Î |
Î |
P |
P |
P | |
73 |
SEGD |
七段碼譯碼 |
Î |
Î |
Î |
Î |
P | |
74 |
SEGL |
七段碼分時(shí)顯示 |
Î |
Î |
P |
P |
P | |
75 |
ARWS |
方向開關(guān) |
Î |
Î |
Î |
Î |
P | |
76 |
ASC |
ASCI碼轉(zhuǎn)換 |
Î |
Î |
Î |
Î |
P | |
77 |
PR |
ASCI碼打印輸出 |
Î |
Î |
Î |
Î |
P | |
78 |
FROM |
BFM讀出 |
Î |
P |
Î |
P |
P | |
79 |
TO |
BFM寫入 |
Î |
P |
Î |
P |
P | |
外
圍
設(shè)
備 |
80 |
RS |
串行數(shù)據(jù)傳送 |
Î |
P |
P |
P |
P |
81 |
PRUN |
八進(jìn)制位傳送(#) |
Î |
Î |
P |
P |
P | |
82 |
ASCI |
16進(jìn)制數(shù)轉(zhuǎn)換成ASCI碼 |
Î |
P |
P |
P |
P | |
83 |
HEX |
ASCI碼轉(zhuǎn)換成16進(jìn)制數(shù) |
Î |
P |
P |
P |
P | |
84 |
CCD |
校驗(yàn) |
Î |
P |
P |
P |
P | |
85 |
VRRD |
電位器變量輸入 |
Î |
Î |
P |
P |
P | |
86 |
VRSC |
電位器變量區(qū)間 |
Î |
Î |
P |
P |
P | |
87 |
- |
- |
||||||
88 |
PID |
PID運(yùn)算 |
Î |
Î |
P |
P |
P | |
89 |
- |
- |
||||||
浮
點(diǎn)
數(shù)
運(yùn)
算 |
110 |
ECMP |
二進(jìn)制浮點(diǎn)數(shù)比較 |
Î |
Î |
Î |
Î |
P |
111 |
EZCP |
二進(jìn)制浮點(diǎn)數(shù)區(qū)間比較 |
Î |
Î |
Î |
Î |
P | |
118 |
EBCD |
二進(jìn)制浮點(diǎn)數(shù)→十進(jìn)制浮點(diǎn)數(shù) |
Î |
Î |
Î |
Î |
P | |
119 |
EBIN |
十進(jìn)制浮點(diǎn)數(shù)→二進(jìn)制浮點(diǎn)數(shù) |
Î |
Î |
Î |
Î |
P | |
120 |
EADD |
二進(jìn)制浮點(diǎn)數(shù)加法 |
Î |
Î |
Î |
Î |
P | |
121 |
EUSB |
二進(jìn)制浮點(diǎn)數(shù)減法 |
Î |
Î |
Î |
Î |
P | |
122 |
EMUL |
二進(jìn)制浮點(diǎn)數(shù)乘法 |
Î |
Î |
Î |
Î |
P | |
123 |
EDIV |
二進(jìn)制浮點(diǎn)數(shù)除法 |
Î |
Î |
Î |
Î |
P | |
127 |
ESQR |
二進(jìn)制浮點(diǎn)數(shù)開平方 |
Î |
Î |
Î |
Î |
P | |
129 |
INT |
二進(jìn)制浮點(diǎn)數(shù)→二進(jìn)制整數(shù) |
Î |
Î |
Î |
Î |
P | |
130 |
SIN |
二進(jìn)制浮點(diǎn)數(shù)Sin運(yùn)算 |
Î |
Î |
Î |
Î |
P | |
131 |
COS |
二進(jìn)制浮點(diǎn)數(shù)Cos運(yùn)算 |
Î |
Î |
Î |
Î |
P | |
132 |
TAN |
二進(jìn)制浮點(diǎn)數(shù)Tan運(yùn)算 |
Î |
Î |
Î |
Î |
P | |
147 |
SWAP |
高低字節(jié)交換 |
Î |
Î |
Î |
Î |
P | |
定
位 |
155 |
ABS |
ABS當(dāng)前值讀取 |
Î |
Î |
P |
P |
Î |
156 |
ZRN |
原點(diǎn)回歸 |
Î |
Î |
P |
P |
Î | |
157 |
PLSY |
可變速的脈沖輸出 |
Î |
Î |
P |
P |
Î | |
158 |
DRVI |
相對(duì)位置控制 |
Î |
Î |
P |
P |
Î | |
159 |
DRVA |
絕對(duì)位置控制 |
Î |
Î |
P |
P |
Î | |
時(shí)
鐘
運(yùn)
算 |
160 |
TCMP |
時(shí)鐘數(shù)據(jù)比較 |
Î |
Î |
P |
P |
P |
161 |
TZCP |
時(shí)鐘數(shù)據(jù)區(qū)間比較 |
Î |
Î |
P |
P |
P | |
162 |
TADD |
時(shí)鐘數(shù)據(jù)加法 |
Î |
Î |
P |
P |
P | |
163 |
TSUB |
時(shí)鐘數(shù)據(jù)減法 |
Î |
Î |
P |
P |
P | |
166 |
TRD |
時(shí)鐘數(shù)據(jù)讀出 |
Î |
Î |
P |
P |
P | |
167 |
TWR |
時(shí)鐘數(shù)據(jù)寫入 |
Î |
Î |
P |
P |
P | |
169 |
HOUR |
計(jì)時(shí)儀 |
Î |
Î |
P |
P |
||
外
圍
設(shè)
備 |
170 |
GRY |
二進(jìn)制數(shù)→格雷碼 |
Î |
Î |
Î |
Î |
P |
171 |
GBIN |
格雷碼→二進(jìn)制數(shù) |
Î |
Î |
Î |
Î |
P | |
176 |
RD3A |
模擬量模塊(FX0N-3A)讀出 |
Î |
P |
Î |
P |
Î | |
177 |
WR3A |
模擬量模塊(FX0N-3A)寫入 |
Î |
P |
Î |
P |
Î | |
觸
點(diǎn)
比
較 |
224 |
LD= |
(S1)= (S2)時(shí)起始觸點(diǎn)接通 |
Î |
Î |
P |
P |
P |
225 |
LD> |
(S1)> (S2)時(shí)起始觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
226 |
LD< |
(S1)< (S2)時(shí)起始觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
228 |
LD<> |
(S1)<> (S2)時(shí)起始觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
229 |
LD≦ |
(S1)≦ (S2)時(shí)起始觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
230 |
LD≧ |
(S1)≧ (S2)時(shí)起始觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
232 |
AND= |
(S1)= (S2)時(shí)串聯(lián)觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
233 |
AND> |
(S1)> (S2)時(shí)串聯(lián)觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
234 |
AND< |
(S1)< (S2)時(shí)串聯(lián)觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
236 |
AND<> |
(S1)<> (S2)時(shí)串聯(lián)觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
237 |
AND≦ |
(S1)≦ (S2)時(shí)串聯(lián)觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
238 |
AND≧ |
(S1)≧ (S2)時(shí)串聯(lián)觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
240 |
OR= |
(S1)= (S2)時(shí)并聯(lián)觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
241 |
OR> |
(S1)> (S2)時(shí)并聯(lián)觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
242 |
OR< |
(S1)< (S2)時(shí)并聯(lián)觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
244 |
OR<> |
(S1)<> (S2)時(shí)并聯(lián)觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
245 |
OR≦ |
(S1)≦ (S2)時(shí)并聯(lián)觸點(diǎn)接通 |
Î |
Î |
P |
P |
P | |
246 |
OR≧ |
(S1)≧ (S2)時(shí)并聯(lián)觸點(diǎn)接通 |
Î |
Î |
P |
P |
P |
說明:P表示支持 Î表示不支持