Mitsubishi Electronics FX3G User Manual
6
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
Series
Programming Manual - Basic & Applied Instruction Edition
Table of Contents
8.1.1 CJ instruction and operations of contact and coil.................................................................................. 225
8.1.2 Relationship between master control instruction and jump instruction ................................................. 227
8.1.2 Relationship between master control instruction and jump instruction ................................................. 227
8.3 FNC 02 – SRET / Subroutine Return ................................................................................................... 232
8.4 FNC 03 – IRET / Interrupt Return ........................................................................................................ 233
8.5 FNC 04 – EI / Enable Interrupt............................................................................................................. 235
8.6 FNC 05 – DI / Disable Interrupt............................................................................................................ 236
8.7 FNC 06 – FEND / Main Routine Program End..................................................................................... 237
8.8 FNC 07 – WDT / Watchdog Timer Refresh.......................................................................................... 239
8.9 FNC 08 – FOR / Start a FOR/NEXT Loop ........................................................................................... 241
8.10 FNC 09 – NEXT / End a FOR/NEXT Loop......................................................................................... 242
8.4 FNC 03 – IRET / Interrupt Return ........................................................................................................ 233
8.5 FNC 04 – EI / Enable Interrupt............................................................................................................. 235
8.6 FNC 05 – DI / Disable Interrupt............................................................................................................ 236
8.7 FNC 06 – FEND / Main Routine Program End..................................................................................... 237
8.8 FNC 07 – WDT / Watchdog Timer Refresh.......................................................................................... 239
8.9 FNC 08 – FOR / Start a FOR/NEXT Loop ........................................................................................... 241
8.10 FNC 09 – NEXT / End a FOR/NEXT Loop......................................................................................... 242
9.1 FNC 10 – CMP / Compare ................................................................................................................... 245
9.2 FNC 11 – ZCP / Zone Compare........................................................................................................... 247
9.3 FNC 12 – MOV / Move......................................................................................................................... 249
9.4 FNC 13 – SMOV / Shift Move .............................................................................................................. 252
9.5 FNC 14 – CML / Complement.............................................................................................................. 254
9.6 FNC 15 – BMOV / Block Move............................................................................................................. 256
9.2 FNC 11 – ZCP / Zone Compare........................................................................................................... 247
9.3 FNC 12 – MOV / Move......................................................................................................................... 249
9.4 FNC 13 – SMOV / Shift Move .............................................................................................................. 252
9.5 FNC 14 – CML / Complement.............................................................................................................. 254
9.6 FNC 15 – BMOV / Block Move............................................................................................................. 256
9.7 FNC 16 – FMOV / Fill Move ................................................................................................................. 260
9.8 FNC 17 – XCH / Exchange .................................................................................................................. 262
9.9 FNC 18 – BCD / Conversion to Binary Coded Decimal ....................................................................... 264
9.10 FNC 19 – BIN / Conversion to Binary ................................................................................................ 267
9.8 FNC 17 – XCH / Exchange .................................................................................................................. 262
9.9 FNC 18 – BCD / Conversion to Binary Coded Decimal ....................................................................... 264
9.10 FNC 19 – BIN / Conversion to Binary ................................................................................................ 267
10.1 FNC 20 – ADD / Addition ................................................................................................................... 271
10.2 FNC 21 – SUB / Subtraction .............................................................................................................. 273
10.3 FNC 22 – MUL / Multiplication ........................................................................................................... 275
10.4 FNC 23 – DIV / Division ..................................................................................................................... 278
10.5 FNC 24 – INC / Increment.................................................................................................................. 281
10.6 FNC 25 – DEC / Decrement............................................................................................................... 283
10.7 FNC 26 – WAND / Logical Word AND ............................................................................................... 284
10.8 FNC 27 – WOR / Logical Word OR.................................................................................................... 286
10.9 FNC 28 – WXOR / Logical Exclusive OR........................................................................................... 288
10.10 FNC 29 – NEG / Negation................................................................................................................ 290
10.2 FNC 21 – SUB / Subtraction .............................................................................................................. 273
10.3 FNC 22 – MUL / Multiplication ........................................................................................................... 275
10.4 FNC 23 – DIV / Division ..................................................................................................................... 278
10.5 FNC 24 – INC / Increment.................................................................................................................. 281
10.6 FNC 25 – DEC / Decrement............................................................................................................... 283
10.7 FNC 26 – WAND / Logical Word AND ............................................................................................... 284
10.8 FNC 27 – WOR / Logical Word OR.................................................................................................... 286
10.9 FNC 28 – WXOR / Logical Exclusive OR........................................................................................... 288
10.10 FNC 29 – NEG / Negation................................................................................................................ 290
11.1 FNC 30 – ROR / Rotation Right ......................................................................................................... 293
11.2 FNC 31 – ROL / Rotation Left ............................................................................................................ 295
11.3 FNC 32 – RCR / Rotation Right with Carry ........................................................................................ 297
11.4 FNC 33 – RCL / Rotation Left with Carry ........................................................................................... 299
11.5 FNC 34 – SFTR / Bit Shift Right......................................................................................................... 301
11.6 FNC 35 – SFTL / Bit Shift Left............................................................................................................ 303
11.2 FNC 31 – ROL / Rotation Left ............................................................................................................ 295
11.3 FNC 32 – RCR / Rotation Right with Carry ........................................................................................ 297
11.4 FNC 33 – RCL / Rotation Left with Carry ........................................................................................... 299
11.5 FNC 34 – SFTR / Bit Shift Right......................................................................................................... 301
11.6 FNC 35 – SFTL / Bit Shift Left............................................................................................................ 303
11.7 FNC 36 – WSFR / Word Shift Right ................................................................................................... 306
11.8 FNC 37 – WSFL / Word Shift Left ...................................................................................................... 308
11.9 FNC 38 – SFWR / Shift Write [FIFO/FILO Control]............................................................................ 310
11.10 FNC 39 – SFRD / Shift Read [FIFO Control] ................................................................................... 313
11.8 FNC 37 – WSFL / Word Shift Left ...................................................................................................... 308
11.9 FNC 38 – SFWR / Shift Write [FIFO/FILO Control]............................................................................ 310
11.10 FNC 39 – SFRD / Shift Read [FIFO Control] ................................................................................... 313