Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
6
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instructions Edition
Table of Contents
8.2 FNC 01 – CALL / Call Subroutine ........................................................................................................ 224
8.2.1 Cautions on subroutines and interrupt routines ....................................................................................226
8.3 FNC 02 – SRET / Subroutine Return................................................................................................... 228
8.4 FNC 03 – IRET / Interrupt Return ........................................................................................................ 229
8.5 FNC 04 – EI / Enable Interrupt............................................................................................................. 231
8.6 FNC 05 – DI / Disable Interrupt............................................................................................................232
8.7 FNC 06 – Main Routine Program End ................................................................................................. 233
8.8 FNC 07 – WDT / Watchdog Timer Refresh.......................................................................................... 235
8.9 FNC 08 – FOR / Start a FOR/NEXT Loop ........................................................................................... 237
8.10 FNC 09 – NEXT / End a FOR/NEXT Loop.........................................................................................238
9. Move and Compare – FNC 10 to FNC 19 240
9.1 FNC 10 – CMP / Compare................................................................................................................... 241
9.2 FNC 11 – ZCP / Zone Compare...........................................................................................................243
9.3 FNC 12 – MOV / Move......................................................................................................................... 245
9.4 FNC 13 – SMOV / Shift Move .............................................................................................................. 248
9.5 FNC 14 – CML / Complement.............................................................................................................. 250
9.6 FNC 15 – BMOV / Block Move............................................................................................................. 252
9.6.1 Function of transfer between file registers and data registers ..............................................................254
9.7 FNC 16 – FMOV / Fill Move................................................................................................................. 256
9.8 FNC 17 – XCH / Exchange .................................................................................................................. 258
9.9 FNC 18 – BCD / Conversion to Binary Coded Decimal ....................................................................... 260
9.10 FNC 19 – BIN / Conversion to Binary ................................................................................................ 263
10. Arithmetic and Logical Operation (+, , ×, ÷) – FNC 20 to FNC 29 266
10.1 FNC 20 – ADD / Addition ................................................................................................................... 267
10.2 FNC 21 – SUB / Subtraction .............................................................................................................. 270
10.3 FNC 22 – MUL / Multiplication ........................................................................................................... 273
10.4 FNC 23 – DIV / Division .....................................................................................................................276
10.5 FNC 24 – INC / Increment..................................................................................................................279
10.6 FNC 25 – DEC / Decrement............................................................................................................... 281
10.7 FNC 26 – WAND / Logical Word AND ...............................................................................................282
10.8 FNC 27 – WOR / Logical Word OR.................................................................................................... 284
10.9 FNC 28 – WXOR / Logical Exclusive OR........................................................................................... 286
10.10 FNC 29 – NEG / Negation................................................................................................................ 288
11. Rotation and Shift Operation – FNC 30 to FNC 39 290
11.1 FNC 30 – ROR / Rotation Right......................................................................................................... 291
11.2 FNC 31 – ROL / Rotation Left............................................................................................................ 293
11.3 FNC 32 – RCR / Rotation Right with Carry........................................................................................ 295
11.4 FNC 33 – RCL / Rotation Left with Carry........................................................................................... 297
11.5 FNC 34 – SFTR / Bit Shift Right......................................................................................................... 299
11.6 FNC 35 – SFTL / Bit Shift Left............................................................................................................ 301
11.6.1 Replacement of SFT instruction in F1 and F2 Series..........................................................................303
11.7 FNC 36 – WSFR / Word Shift Right................................................................................................... 304
11.8 FNC 37 – WSFL / Word Shift Left...................................................................................................... 306
11.9 FNC 38 – SFWR / Shift Write [FIFO/FILO Control]............................................................................308
11.10 FNC 39 – SFRD / Shift Read [FIFO Control] ................................................................................... 311
12. Data Operation – FNC 40 to FNC 49 313
12.1 FNC 40 – ZRST / Zone Reset............................................................................................................ 314
12.2 FNC 41 – DECO / Decode................................................................................................................. 317
12.3 FNC 42 – ENCO / Encode ................................................................................................................. 320
12.4 FNC 43 – SUM / Sum of Active Bits................................................................................................... 322
12.5 FNC 44 – BON / Check Specified Bit Status...................................................................................... 325
12.6 FNC 45 – MEAN / Mean .................................................................................................................... 327
12.7 FNC 46 – ANS / Timed Annunciator Set............................................................................................ 329