Professional Documents
Culture Documents
Instruction List: 3.1 Basic Instructions
Instruction List: 3.1 Basic Instructions
com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.1 Basic Instructions
Introduction
3. Instruction List
This chapter introduces a list of instructions available in programming. 2
Overview
3.1 Basic Instructions
The basic instructions are provided in the following series. The table below shows differences in applicable devices.
Applicable PLC FX3S FX3G FX3GC FX3U FX3UC FX1S FX1N FX1NC FX2N FX2NC 3
List
Instruction
Basic instructions other than MEP and
MEF instructions
Ver. 2.30 Ver. 2.30
MEP and MEF instructions – – – – –
or later or later
Absence/presence of applicable devices
– – – – – – – –
(D . b)
4
Absence/presence of applicable
– – – – – –
in Detail
Devices
devices (R)
Contact Instruction
Initial logical operation
5
Applicable devices
Constant
Device &
Specified the
LD Load contact type NO X,Y,M,S,D .b,T,C Section 7.1
(normally open)
Initial logical operation
LDI Load Inverse Applicable devices contact type NC X,Y,M,S,D .b,T,C Section 7.1
(normally closed)
Programming
Before
Applicable devices Initial logical operation of
LDF Load Falling Pulse X,Y,M,S,D .b,T,C Section 7.5
Falling/trailing edge pulse
Instruction
Basic
Applicable devices Serial connection of NC
ANI AND Inverse X,Y,M,S,D .b,T,C Section 7.3
(normally closed) contacts
Parallel connection of NO
OR OR X,Y,M,S,D .b,T,C Section 7.4
Applicable devices (normally open) contacts
ORI OR Inverse
Parallel connection of NC
X,Y,M,S,D .b,T,C Section 7.4
9
Applicable devices (normally closed) contacts
Move & Compare
FNC10-FNC19
Parallel connection of
ORP OR Pulse X,Y,M,S,D .b,T,C Section 7.5
Applicable devices Rising edge pulse
71
Truy cập website https://plcmitsubishi.com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.1 Basic Instructions
Connection Instruction
Serial connection of
ANB AND Block – Section 7.7
multiple parallel circuits
Parallel connection of
ORB OR Block – Section 7.6
multiple contact circuits
Conversion of
MEP MEP operation result – Section 7.11
to leading edge pulse
Conversion of operation
MEF MEF – Section 7.11
result to trailing edge pulse
Out Instruction
SET SET SET Applicable devices SET Bit device latch ON Y,M,S,D .b Section 7.13
Y,M,S,D .b,T,C,
RST Reset RST Applicable devices RESET Bit device OFF Section 7.13
D,R,V,Z
PLS Pulse PLS Applicable devices Rising edge pulse Y,M Section 7.12
PLF Pulse Falling PLF Applicable devices Falling/trailing edge pulse Y,M Section 7.12
Other Instruction
End Instruction
72
Truy cập website https://plcmitsubishi.com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.2 Step Ladder Instructions
1
3.2 Step Ladder Instructions
Introduction
Mnemonic Name Symbol Function Applicable devices Reference
STL Step Ladder STL Applicable devices Starts step ladder S Chapter 35
2
Overview
RET Return RET Completes step ladder – Chapter 35
List
Instruction
numeric data is handled.
*1: The instruction is provided in the FX2N/FX2NC Series Ver. 3.00 or later. *7: The instruction is provided in the FX3U/FX3UC Series Ver. 2.61 or later.
*2: The function is changed in the FX3UC Series Ver. 1.30 or later. *8: The instruction is provided in the FX3G Series Ver. 1.40 or later.
*3: The instruction is provided in the FX3UC Series Ver. 1.30 or later. *9: The instruction is provided in the FX3U/FX3UC Series Ver. 2.70 or later.
*4: The function is changed in the FX3UC Series Ver. 2.20 or later. *10: The instruction is provided in the FX3G Series Ver. 1.30 or later.
*5: The instruction is provided in the FX3UC Series Ver. 2.20 or later *11: The instruction is provided in the FX3U/FX3UC Series Ver. 2.40 or later. 4
*6: The instruction is provided in the FX3G Series Ver. 1.10 or later..
in Detail
Devices
Applicable PLC
FX3GC
FX3UC
FNC
FX3G
FX3U
FX3S
Mnemonic Symbol Function Reference
FX1NC
FX2NC
FX1N
FX2N
FX1S
No.
Program Flow
5
00 CJ Conditional Jump Section 8.1
Constant
Device &
Specified the
CJ Pn
Programming
Before
03 IRET IRET Interrupt Return Section 8.4
7
05 DI DI Disable Interrupt Section 8.6
Instruction
Basic
06 FEND FEND Main Routine Program End Section 8.7
Section
09 NEXT NEXT End a FOR/NEXT Loop
8.10
9
Move and Compare
Move & Compare
FNC10-FNC19
MOV S D
73
Truy cập website https://plcmitsubishi.com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number
Applicable PLC
FX3GC
FX3UC
FNC
FX3G
FX3U
FX3S
Mnemonic Symbol Function Reference
FX1NC
FX2NC
FX1N
FX2N
FX1S
No.
Conversion to Binary
18 BCD BCD S D Section 9.9
Coded Decimal
Section
19 BIN BIN S D Conversion to Binary
9.10
Section
20 ADD ADD S1 S2 D Addition
10.1
Section
21 SUB SUB S1 S2 D Subtraction
10.2
Section
22 MUL MUL S1 S2 D Multiplication
10.3
Section
23 DIV DIV S1 S2 D Division
10.4
Section
24 INC INC D Increment
10.5
Section
25 DEC DEC D Decrement
10.6
Section
26 WAND WAND S1 S2 D Logical Word AND
10.7
Section
27 WOR WOR S1 S2 D Logical Word OR
10.8
Section
28 WXOR WXOR S1 S2 D Logical Exclusive OR
10.9
Section
29 NEG NEG D Negation – – – – – –
10.10
Section
30 ROR ROR D n Rotation Right – – –
11.1
Section
31 ROL ROL D n Rotation Left – – –
11.2
Section
32 RCR RCR D n Rotation Right with Carry – – – – – –
11.3
Section
33 RCL RCL D n Rotation Left with Carry – – – – – –
11.4
74
Truy cập website https://plcmitsubishi.com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number
1
Applicable PLC
Introduction
FX3GC
FX3UC
FNC
FX3G
FX3U
FX3S
Mnemonic Symbol Function Reference
FX1NC
FX2NC
FX1N
FX2N
FX1S
No.
Overview
Section
35 SFTL SFTL S D n1 n2 Bit Shift Left
11.6
Section
36 WSFR WSFR S D n1 n2 Word Shift Right – – –
11.7
3
Section
List
Instruction
37 WSFL WSFL S D n1 n2 Word Shift Left – – –
11.8
in Detail
Devices
Data Operation
Section
40 ZRST ZRST D1 D2 Zone Reset
12.1
Constant
Device &
Specified the
Section
42 ENCO ENCO S D n Encode
12.3
Section
43 SUM SUM S D Sum of Active Bits – – –
12.4
Section
6
44 BON BON S D n Check Specified Bit Status – – –
Programming
Before
12.5
Section
45 MEAN MEAN S D n Mean – – –
12.6
Section
46 ANS ANS S m D Timed Annunciator Set – – – –
12.7 7
Instruction
Basic
Section
47 ANR ANR Annunciator Reset – – – –
12.8
Section
48 SQR SQR S D Square Root – – – – – –
12.9
49 FLT
Conversion to Floating
*6 – – –
Section 8
FLT S D Point 12.10
Program Flow
FNC00-FNC09
High-speed Processing
Section
50 REF REF D n Refresh
13.1
Section
52 MTR MTR S D1 D2 n Input Matrix
13.3
Section
53 HSCS HSCS S1 S2 D High-speed Counter Set
13.4
10
Section
Operation
Arith. & Logic
FNC20-FNC29
75
Truy cập website https://plcmitsubishi.com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number
Applicable PLC
FX3GC
FX3UC
FNC
FX3G
FX3U
FX3S
Mnemonic Symbol Function Reference
FX1NC
FX2NC
FX1N
FX2N
FX1S
No.
High-speed Processing
Section
56 SPD SPD S1 S2 D Speed Detection
13.7
Section
57 PLSY PLSY S1 S2 D Pulse Y Output
13.8
Section
58 PWM PWM S1 S2 D Pulse Width Modulation
13.9
Acceleration/Deceleration Section
59 PLSR PLSR S1 S2 S3 D Setup 13.10
Handy Instruction
Section
60 IST IST S D1 D2 Initial State
14.1
Section
61 SER SER S1 S2 D n Search a Data Stack – – –
14.2
Section
62 ABSD ABSD S1 S2 D n Absolute Drum Sequencer
14.3
Section
64 TTMR TTMR D n Teaching Timer – – – – – –
14.5
Section
65 STMR STMR S m D Special Timer – – – – – –
14.6
Section
66 ALT ALT D Alternate State
14.7
Section
67 RAMP RAMP S1 S2 D n Ramp Variable Value
14.8
Section
68 ROTC ROTC S m1 m2 D Rotary Table Control – – – – – –
14.9
Section
69 SORT SORT S m1 m2 D n SORT Tabulated Data – – – – – –
14.10
Section
70 TKY TKY S D1 D2 Ten Key Input – – – – – –
15.1
Section
71 HKY HKY S D1 D2 D3 Hexadecimal Input – – – – – –
15.2
Section
73 SEGD SEGD S D Seven Segment Decoder – – – – – –
15.4
Section
74 SEGL SEGL S D n Seven Segment With Latch
15.5
76
Truy cập website https://plcmitsubishi.com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number
1
Applicable PLC
Introduction
FX3GC
FX3UC
FNC
FX3G
FX3U
FX3S
Mnemonic Symbol Function Reference
FX1NC
FX2NC
FX1N
FX2N
FX1S
No.
External FX Device
Overview
Section
76 ASC ASC S D ASCII Code Data Input – – – – – –
15.7
Section
77 PR PR S D Print (ASCII Code) – – – – – –
15.8
3
Read From A Special Section
List
Instruction
78 FROM FROM m1 m2 D n – –
Function Block 15.9
80 RS RS S m D n Serial Communication
Section
16.1
4
in Detail
Devices
Section
81 PRUN PRUN S D Parallel Run (Octal Mode)
16.2
Constant
Device &
Specified the
HEX S D n Conversion 16.4
Section
84 CCD CCD S D n Check Code
16.5
Programming
Before
Section
86 VRSC VRSC S D Volume Scale *6 – *9 *9 – –
16.7
Section
87 RS2 RS2 S m D n n1 Serial Communication 2 – – – – –
16.8
Section
7
88 PID PID S1 S2 S3 D PID Control Loop
Instruction
Basic
16.9
Data Transfer 2
Floating Point
Section
110 ECMP ECMP S1 S2 D Floating Point Compare *6 – – –
18.1
Section
112 EMOV EMOV S D Floating Point Move *6 – – – – –
18.3
77
Truy cập website https://plcmitsubishi.com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number
Applicable PLC
FX3GC
FX3UC
FNC
FX3G
FX3U
FX3S
Mnemonic Symbol Function Reference
FX1NC
FX2NC
FX1N
FX2N
FX1S
No.
Floating Point
Section
120 EADD EADD S1 S2 D Floating Point Addition *6 – – –
18.8
Section
121 ESUB ESUB S1 S2 D Floating Point Subtraction *6 – – –
18.9
Section
123 EDIV EDIV S1 S2 D Floating Point Division *6 – – –
18.11
Section
124 EXP EXP S D Floating Point Exponent – – – – – – – –
18.12
Section
127 ESQR ESQR S D Floating Point Square Root *6 – – –
18.15
Section
128 ENEG ENEG D Floating Point Negation – – – – – – – –
18.16
Section
130 SIN SIN S D Floating Point Sine – – – – – –
18.18
Section
131 COS COS S D Floating Point Cosine – – – – – –
18.19
Section
132 TAN TAN S D Floating Point Tangent – – – – – –
18.20
Section
133 ASIN ASIN S D Floating Point Arc Sine – – – – – – – –
18.21
Section
134 ACOS ACOS S D Floating Point Arc Cosine – – – – – – – –
18.22
Section
135 ATAN ATAN S D Floating Point Arc Tangent – – – – – – – –
18.23
Data Operation 2
Section
140 WSUM WSUM S D n Sum of Word Data – – – *5 – – – – –
19.1
Section
141 WTOB WTOB S D n WORD to BYTE – – – *5 – – – – –
19.2
78
Truy cập website https://plcmitsubishi.com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number
1
Applicable PLC
Introduction
FX3GC
FX3UC
FNC
FX3G
FX3U
FX3S
Mnemonic Symbol Function Reference
FX1NC
FX2NC
FX1N
FX2N
FX1S
No.
Data Operation 2
Overview
Section
143 UNI UNI S D n 4-bit Linking of Word Data – – – *5 – – – – –
19.4
List
Instruction
147 SWAP SWAP S Byte Swap – – – – – –
19.6
Section
149 SORT2 SORT2 S m1 m2 D n Sort Tabulated Data 2 – – – *5 – – – – –
19.7
Positioning Control
Section
4
150 DSZR DSZR S1 S2 D1 D2 DOG Search Zero Return *4 – – – – –
in Detail
Devices
20.1
*2, Section
151 DVIT DVIT S1 S2 D1 D2 Interrupt Positioning – – – – – – – –
4 20.2
Constant
Device &
Specified the
Absolute Current Value Section
155 ABS ABS S D1 D2 *1 *1
Read 20.4
Section
156 ZRN ZRN S1 S2 S3 D Zero Return *4 – –
20.5
Programming
Before
Output 20.6
Section
158 DRVI DRVI S1 S2 D1 D2 Drive to Increment – –
20.7
Section
159 DRVA DRVA S1 S2 D1 D2 Drive to Absolute – –
20.8 7
Instruction
Basic
Real Time Clock Control
Section
160 TCMP TCMP S1 S2 S3 S D RTC Data Compare
21.1
Section
161 TZCP TZCP S1 S2 S D RTC Data Zone Compare
21.2
8
Section
Program Flow
FNC00-FNC09
Section
163 TSUB TSUB S1 S2 D RTC Data Subtraction
21.4
Section
166 TRD TRD D Read RTC data
21.7
Section
169 HOUR HOUR S D1 D2 Hour Meter *1 *1
21.9
79
Truy cập website https://plcmitsubishi.com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number
Applicable PLC
FX3GC
FX3UC
FNC
FX3G
FX3U
FX3S
Mnemonic Symbol Function Reference
FX1NC
FX2NC
FX1N
FX2N
FX1S
No.
External Device
Extension Function
Others
Section
182 COMRD COMRD S D Read Device Comment Data – – – *5 – – – – –
24.1
Section
186 DUTY DUTY n1 n2 D Timing Pulse Generation – – – *5 – – – – –
24.3
Section
188 CRC CRC S D n Cyclic Redundancy Check – – – – – – – –
24.4
Section
189 HCMOV HCMOV S D n High-speed Counter Move – – – *4 – – – – –
24.5
Section
192 BK+ BK+ S1 S2 D n Block Data Addition – – – *5 – – – – –
25.1
Section
193 BK- BK- S1 S2 D n Block Data Subtraction – – – *5 – – – – –
25.2
80
Truy cập website https://plcmitsubishi.com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number
1
Applicable PLC
Introduction
FX3GC
FX3UC
FNC
FX3G
FX3U
FX3S
Mnemonic Symbol Function Reference
FX1NC
FX2NC
FX1N
FX2N
FX1S
No.
Overview
Character String Length Section
203 LEN LEN S D – – – – – – – –
Detection 26.4
List
Instruction
205 LEFT LEFT S D n – – – – – – – –
Data from the Left 26.6
in Detail
Devices
Section
208 INSTR INSTR S1 S2 D n Character string search – – – *5 – – – – –
26.9
Section
209 $MOV $MOV S D Character String Transfer – – – – – – – –
26.10
Data Operation 3
5
Constant
Device &
Specified the
Section
210 FDEL FDEL S D n Deleting Data from Tables – – – *5 – – – – –
27.1
Section
211 FINS FINS S D n Inserting Data to Tables – – – *5 – – – – –
27.2
Programming
Before
[FILO Control] 27.3
Section
213 SFR SFR D n Bit Shift Right with Carry – – – – – – – –
27.4
Section
214 SFL SFL D n Bit Shift Left with Carry – – – – – – – –
27.5 7
Instruction
Basic
Data Comparison
Load Compare Section
224 LD= LD= S1 S2 S1 = S2 28.1
Section
226 LD< LD< S1 S2 S1 < S2 28.1
81
Truy cập website https://plcmitsubishi.com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number
Applicable PLC
FX3GC
FX3UC
FNC
FX3G
FX3U
FX3S
Mnemonic Symbol Function Reference
FX1NC
FX2NC
FX1N
FX2N
FX1S
No.
Data Comparison
AND Compare Section
234 AND< AND< S1 S2 S1 < S2 28.2
OR Compare Section
240 OR=
S1 = S2 28.3
OR= S1 S2
OR Compare Section
241 OR>
S1 > S2 28.3
OR> S1 S2
OR Compare Section
242 OR<
S1 < S2 28.3
OR< S1 S2
OR Compare Section
244 OR<>
S1 ≠ S2 28.3
OR<> S1 S2
OR Compare Section
245 OR<=
S1 ≤ S2 28.3
OR<= S1 S2
OR Compare Section
246 OR>=
S1 ≥ S2 28.3
OR>= S1 S2
Section
256 LIMIT LIMIT S1 S2 S3 D Limit Control – – – – – – – –
29.1
Section
257 BAND BAND S1 S2 S3 D Dead Band Control – – – – – – – –
29.2
Section
258 ZONE ZONE S1 S2 S3 D Zone Control – – – – – – – –
29.3
Scaling Section
259 SCL SCL S1 S2 D – – – – – – – –
(Coordinate by Point Data) 29.4
Scaling 2 Section
269 SCL2 SCL2 S1 S2 D – – – *3 – – – – –
(Coordinate by X/Y Data) 29.7
Section
270 IVCK IVCK S1 S2 D n Inverter Status Check *6 – – – – –
30.1
82
Truy cập website https://plcmitsubishi.com để có thêm nhiều tài liệu và bài viết hướng dẫn kỹ thuật hay
FX3S/FX3G/FX3GC/FX3U/FX3UC Series 3 Instruction List
Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number
1
Applicable PLC
Introduction
FX3GC
FX3UC
FNC
FX3G
FX3U
FX3S
Mnemonic Symbol Function Reference
FX1NC
FX2NC
FX1N
FX2N
FX1S
No.
Overview
Section
272 IVRD IVRD S1 S2 D n Inverter Parameter Read *6 – – – – –
30.3
Section
273 IVWR IVWR S1 S2 S3 n Inverter Parameter Write *6 – – – – –
30.4
3
Inverter Parameter Block Section
List
Instruction
274 IVBWR IVBWR S1 S2 S3 n – – – – – – – –
Write 30.5
Section
275 IVMC IVMC S1 S2 S3 D n Inverter Multi Command *8 *9 *9 – – – – –
30.6
in Detail
Devices
Data Transfer 3
Section
278 RBFM RBFM m1 m2 D n1 n2 Divided BFM Read – – – *5 – – – – –
31.1
Constant
Device &
Specified the
High-speed Processing 2
Programming
Before
Section
291 SAVER SAVER S m D Save to ER – – – – – – – –
33.2
Section
292 INITR INITR S n Initialize R and ER – – – – – – – –
33.3
7
Instruction
Basic
Section
293 LOGR LOGR S m D1 n D2 Logging R and ER – – – – – – – –
33.4
Section
294 RWER RWER S n Rewrite to ER – *3 – – – – –
33.5
Section
300 FLCRT FLCRT S1 S2 S3 n File create / check – – – *7 *7 – – – – –
34.1
Section
302 FLWR FLWR S1 S2 S3 D n Data write – – – *7 *7 – – – – –
34.3
Section
303 FLRD FLRD S1 S2 D1 D2 n Data read – – – *7 *7 – – – – –
34.4
Section
305 FLSTRD FLSTRD S D n FX3U-CF-ADP status read – – – *7 *7 – – – – –
34.6
83