• twitter
  • facebook
  • mail

Products

Print Page

 

MELSEC-F series

Program Flow

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
00 CJ Conditional Jump
01 CALL Call Subroutine
02 SRET Subroutine Return
03 IRET Interrupt Return
04 EI Enable Interrupt
05 DI Disable Interrupt
06 FEND Main Routine Program End
07 WDT Watchdog Timer Refresh
08 FOR Start a FOR/NEXT Loop
09 NEXT End a FOR/NEXT Loop

Move and Compare

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
10 CMP Compare
11 ZCP Zone Compare
12 MOV Move
13 SMOV Shift Move
14 CML Complement
15 BMOV Block Move
16 FMOV Fill Move
17 XCH Exchange - - -
18 BCD Conversion to Binary Coded Decimal
19 BIN Conversion to Binary

Arithmetic and Logical Operation

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
20 ADD Addition
21 SUB Subtraction
22 MUL Multiplication
23 DIV Division
24 INC Increment
25 DEC Decrement
26 WAND Logical Word AND
27 WOR Logical Word OR
28 WXOR Logical Exclusive OR
29 NEG Negation - - -

Rotation and Shift Operation

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
30 ROR Rotation Right
31 ROL Rotation Left
32 RCR Rotation Right with Carry - - -
33 RCL Rotation Left with Carry - - -
34 SFTR Bit Shift Right
35 SFTL Bit Shift Left
36 WSFR Word Shift Right
37 WSFL Word Shift Left
38 SFWR Shift write
[FIFO/FILO control]
39 SFRD Shift read
[FIFO control]

Data Operation

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
40 ZRST Zone Reset
41 DECO Decode
42 ENCO Encode
43 SUM Sum of Active Bits
44 BON Check Specified Bit Status
45 MEAN Mean
46 ANS Timed Annunciator Set -
47 ANR Annunciator Reset -
48 SQR Square Root - - -
49 FLT Conversion to Floating Point *

*: Supported in FX3G series ver.1.10 and later

High-Speed Processing

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
50 REF Refresh
51 REFF Refresh and filter adjust - - -
52 MTR Input Matrix
53 HSCS High-speed counter set
54 HSCR High-speed counter reset
55 HSZ High-speed counter zone compare
56 SPD Speed Detection
57 PLSY Pulse Y Output
58 PWM Pulse Width Modulation
59 PLSR Acceleration/deceleration setup

Handy Instruction

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
60 IST Initial State
61 SER Search a Data Stack
62 ABSD Absolute drum sequencer
63 INCD Incremental drum sequencer
64 TTMR Teaching Timer - - -
65 STMR Special Timer - - -
66 ALT Alternate State
67 RAMP Ramp Variable Value
68 ROTC Rotary Table Control - - -
69 SORT SORT Tabulated Data - - -

External FX Device

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
70 TKY Ten Key Input - - -
71 HKY Hexadecimal Input - - -
72 DSW Digital switch (thumbwheel input)
73 SEGD Seven Segment Decoder - - -
74 SEGL Seven Segment With Latch
75 ARWS Arrow Switch - - -
76 ASC ASCII code data input - - -
77 PR Print (ASCII Code) - - -
78 FROM Read From A Special Function Block -
79 TO Write To A Special Function Block -

External FX Device

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
80 RS Serial Communication
81 PRUN Parallel Run (Octal Mode)
82 ASCI Hexadecimal to ASCII Conversion
83 HEX ASCII to Hexadecimal Conversion
84 CCD Check Code
85 VRRD Volume Read *1 *2 - *2
86 VRSC Volume Scale *1 *2 - *2
87 RS2 Serial Communication 2
88 PID PID Control Loop
89~99 -            

*1: Supported in FX3G series ver.1.10 and later
*2: Supported in FX3U/FX3UC series ver.2.70 and later

Data Transfer 2

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
100,101 -            
102 ZPUSH Batch Store of Index Register - - - *
103 ZPOP Batch POP of Index Register - - - *
104~109 -            

*:Supported in FX3UC series ver.2.20 and later

Floating Point

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
110 ECMP Floating Point Compare *
111 EZCP Floating Point Zone Compare - - -
112 EMOV Floating Point Move *
113~115 -            
116 ESTR Floating Point to Character String Conversion - - -
117 EVAL Character String to Floating Point Conversion - - -
118 EBCD Floating Point to Scientific Notation Conversion - - -
119 EBIN Scientific Notation to Floating Point Conversion - - -
120 EADD Floating Point Addition *
121 ESUB Floating Point Subtraction *
122 EMUL Floating Point Multiplication *
123 EDIV Floating Point Division *
124 EXP Floating Point Exponent - - -
125 LOGE Floating Point Natural Logarithm - - -
126 LOG10 Floating Point Common Logarithm - - -
127 ESQR Floating Point Square Root *
128 ENEG Floating Point Negation - - -
129 INT Floating Point to Integer Conversion *
130 SIN Floating Point Sine - - -
131 COS Floating Point Cosine - - -
132 TAN Floating Point Tangent - - -
133 ASIN Floating Point Arc Sine-1 - - -
134 ACOS Floating Point Arc Cosine-1 - - -
135 ATAN Floating Point Arc Tangent-1 - - -
136 RAD Floating Point Degrees to Radians Conversion - - -
137 DEG Floating Point Radians to Degrees Conversion - - -
138,139 -            

*: Supported in FX3G series ver.1.10 and later

Data Operation 2

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
140 WSUM Sum of Word Data - - - *
141 WTOB WORD to BYTE - - - *
142 BTOW BYTE to WORD - - - *
143 UNI 4-bit Linking of Word Data - - - *
144 DIS 4-bit Grouping of Word Data - - - *
145,146 -            
147 SWAP Byte Swap - - -
148 -            
149 SORT2 Sort Tabulated Data 2 - - - *

*: Supported in FX3UC series ver.2.20 and later

Positioning Control

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
150 DSZR DOG Search Zero Return
151 DVIT Interrupt Positioning - - -
152 TBL Batch Data Positioning Mode - *
153,154 -            
155 ABS Absolute Current Value Read
156 ZRN Zero Return
157 PLSV Variable Speed Pulse Output
158 DRVI Drive to Increment
159 DRVA Drive to Absolute

*: Supported in FX3UC series ver.2.20 and later

Real Time Clock Control

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
160 TCMP RTC data compare
161 TZCP RTC data zone compare
162 TADD RTC data addition
163 TSUB RTC data subtraction
164 HTOS Hour to second conversion - - -
165 STOH Second to hour conversion - - -
166 TRD Read RTC data
167 TWR Set RTC data
168 -            
169 HOUR Hour Meter

External Device

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
170 GRY Decimal to Gray Code Conversion
171 GBIN Gray Code to Decimal Conversion
172~175 -            
176 RD3A Read form Dedicated Analog Block - - -
177 WR3A Write to Dedicated Analog Block - - -
178,179 -            

Extension Function

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
180 -            

Others

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
181 -            
182 COMRD Read device comment data - - - *
183 -            
184 RND Random Number Generation - - -
185 -            
186 DUTY Timing pulse generation - - - *
187 -            
188 CRC Cyclic Redundancy Check - - -
189 HCMOV High-speed counter move - - -

*: Supported in FX3UC series ver.2.20 and later

Block Data Operation

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
190,191 -            
192 BK+ Block Data Addition - - - *
193 BK- Block Data Subtraction - - - *
194 BKCMP= Block Data Compare (S1) = (S2) - - - *
195 BKCMP> Block Data Compare (S1) > (S2) - - - *
196 BKCMP< Block Data Compare (S1) < (S2) - - - *
197 BKCMP<> Block Data Compare (S1) ≠ (S2) - - - *
198 BKCMP<= Block Data Compare (S1) ≦ (S2) - - - *
199 BKCMP>= Block Data Compare (S1) ≧ (S2) - - - *

*: Supported in FX3UC series ver.2.20 and later

Character String Control

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
200 STR BIN to Character String Conversion - - - *
201 VAL Character String to BIN Conversion - - - *
202 $+ Link Character Strings - - -
203 LEN Character String Length Detection - - -
204 RIGHT Extracting Character String Data from the Right - - -
205 LEFT Extracting Character String Data from the Left - - -
206 MIDR Random Selection of Character Strings - - -
207 MIDW Random Replacement of Character Strings - - -
208 INSTR Character string search - - - *
209 $MOV Character String Transfer - - -

*: Supported in FX3UC series ver.2.20 and later

Data Operation 3

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
210 FDEL Deleting Data from Tables - - - *
211 FINS Inserting Data to Tables - - - *
212 POP Shift Last Data Read [FILO Control] - - -
213 SFR 16-bit data n Bit Shift Right with Carry - - -
214 SFL 16-bit data n Bit Shift Left with Carry - - -
215~219 -            

*: Supported in FX3UC series ver.2.20 and later

Data Comparison

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
220~223 -            
224 LD= Load Compare (S1) = (S2)
225 LD> Load Compare (S1) > (S2)
226 LD< Load Compare (S1) < (S2)
227 -            
228 LD<> Load Compare (S1) ≠ (S2)
229 LD<= Load Compare (S1) ≦ (S2)
230 LD>= Load Compare (S1) ≧ (S2)
231 -            
232 AND= AND Compare (S1) = (S2)
233 AND> AND Compare (S1) > (S2)
234 AND< AND Compare (S1) < (S2)
235 -            
236 AND<> AND Compare (S1) ≠ (S2)
237 AND<= AND Compare (S1) ≦ (S2)
238 AND>= AND Compare (S1) ≧ (S2)
239 -            
240 OR= OR Compare (S1) = (S2)
241 OR> OR Compare (S1) > (S2)
242 OR< OR Compare (S1) < (S2)
243 -            
244 OR<> OR Compare (S1) ≠ (S2)
245 OR<= OR Compare (S1) ≦ (S2)
246 OR>= OR Compare (S1) ≧ (S2)
247~249 -            

Data Table Operation

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
250~255 -            
256 LIMIT Limit Control - - -
257 BAND Dead Band Control - - -
258 ZONE Zone Control - - -
259 SCL Scaling (Coordinate by Point Data) - - -
260 DABIN Decimal ASCII to BIN Conversion - - - *1
261 BINDA BIN to Decimal ASCII Conversion - - - *1
262~268 -            
269 SCL2 Scaling 2 (Coordinate by X/Y Data) - - - *2

*1: Supported in FX3UC series ver.2.20 and later
*2: Supported in FX3UC series ver.1.30 and later

External Device Communication

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
270 IVCK Inverter Status Check *1
271 IVDR Inverter Drive *1
272 IVRD Inverter Parameter Read *1
273 IVWR Inverter Parameter Write *1
274 IVBWR Inverter Parameter Block Write - - -
275 IVMC Inverter Multi Command *2 *3 *3
276 ADPRW MODBUS Read / Write *4 *5 *5
277 -            

*1: Supported in FX3G series ver.1.10 and later
*2: Supported in FX3G series ver.1.40 and later
*3: Supported in FX3U/FX3G series ver.2.70 and later
*4: Supported in FX3G series ver.1.30 and later
*5: Supported in FX3U/FX3UC series ver.2.40 and later

Data Transfer 3

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
278 RBFM Divided BFM Read - - - *
279 WBFM Divided BFM Write - - - *

*: Supported in FX3UC series ver.2.20 and later

High-Speed Processing 2

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
280 HSCT High-Speed Counter Compare With Data Table - - -
281~289 -            

Extension File Register Control

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
290 LOADR Load From ER -
291 SAVER Save to ER - - -
292 INITR Initialize R and ER - - -
293 LOGR Logging R and ER - - -
294 RWER Rewrite to ER - *
295 INITER Initialize ER - - - *
296~299 -            

*: Supported in FX3UC series ver.1.30 and later

FX3U-CF-ADP Applied Instructions

FNC No. Mnemonic Function Applicable FX PLC
FX3S FX3G FX3U FX3GC FX3UC
300 FLCRT File create / check - - * - *
301 FLDEL File delete / CF card format - - * - *
302 FLWR Data write - - * - *
303 FLRD Data read - - * - *
304 FLCMD FX3U-CF-ADP command - - * - *
305 FLSTRD FX3U-CF-ADP status read - - * - *

*: Supported in FX3U/FX3UC series ver.2.61 and later