7
FX3G/FX3U/FX3GC/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
Table of Contents
12. Data Operation – FNC 40 to FNC 49 309
12.1 FNC 40 – ZRST / Zone Reset............................................................................................................ 310
12.2 FNC 41 – DECO / Decode ................................................................................................................. 313
12.3 FNC 42 – ENCO / Encode ................................................................................................................. 316
12.4 FNC 43 – SUM / Sum of Active Bits................................................................................................... 318
12.5 FNC 44 – BON / Check Specified Bit Status...................................................................................... 321
12.6 FNC 45 – MEAN / Mean .................................................................................................................... 323
12.7 FNC 46 – ANS / Timed Annunciator Set............................................................................................ 325
12.8 FNC 47 – ANR / Annunciator Reset................................................................................................... 327
12.9 FNC 48 – SQR / Square Root............................................................................................................ 328
12.10 FNC 49 – FLT / Conversion to Floating Point .................................................................................. 329
13. High-Speed Processing – FNC 50 to FNC 59 331
13.1 FNC 50 – REF / Refresh .................................................................................................................... 332
13.1.1 What should be understood before using the REF instruction............................................................ 335
13.2 FNC 51 – REFF / Refresh and Filter Adjust....................................................................................... 336
13.2.1 What should be understood before using REFF instruction................................................................ 338
13.3 FNC 52 – MTR / Input Matrix ............................................................................................................. 339
13.3.1 Operation and cautions for the MTR instruction.................................................................................. 342
13.4 FNC 53 – HSCS / High-Speed Counter Set....................................................................................... 343
13.4.1 Common cautions on using instructions for high-speed counter ........................................................ 346
13.5 FNC 54 – HSCR / High-Speed Counter Reset ..................................................................................349
13.6 FNC 55 – HSZ / High-Speed Counter Zone Compare....................................................................... 352
13.6.1 Program in which comparison result is set to ON when power is turned ON
[ZCP (FNC 11) instruction].................................................................................................................. 356
13.6.2 Table high-speed comparison mode (M8130) .................................................................................... 358
13.6.3 Frequency control mode (HSZ and PLSY instructions) (M8132)........................................................ 361
13.7 FNC 56 – SPD / Speed Detection...................................................................................................... 364
13.8 FNC 57 – PLSY / Pulse Y Output ...................................................................................................... 368
13.9 FNC 58 – PWM / Pulse Width Modulation ......................................................................................... 373
13.10 FNC 59 – PLSR / Acceleration/Deceleration Setup ......................................................................... 376
14. Handy Instruction – FNC 60 to FNC 69 381
14.1 FNC 60 – IST / Initial State ................................................................................................................ 382
14.1.1 IST instruction equivalent circuit ......................................................................................................... 384
14.1.2 Example of IST instruction introduction (example of workpiece transfer mechanism)........................ 385
14.2 FNC 61 – SER / Search a Data Stack ............................................................................................... 392
14.3 FNC 62 – ABSD / Absolute Drum Sequencer.................................................................................... 395
14.4 FNC 63 – INCD / Incremental Drum Sequencer ................................................................................398
14.5 FNC 64 – TTMR / Teaching Timer..................................................................................................... 400
14.6 FNC 65 – STMR / Special Timer........................................................................................................ 402
14.7 FNC 66 – ALT / Alternate State ......................................................................................................... 404
14.8 FNC 67 – RAMP / Ramp Variable Value ........................................................................................... 406
14.9 FNC 68 – ROTC / Rotary Table Control ............................................................................................ 408
14.10 FNC 69 – SORT / SORT Tabulated Data ........................................................................................ 411
15. External FX I/O Device – FNC 70 to FNC 79 414
15.1 FNC 70 – TKY / Ten Key Input .......................................................................................................... 415
15.2 FNC 71 – HKY / Hexadecimal Input................................................................................................... 418
15.3 FNC 72 – DSW / Digital Switch (Thumbwheel Input)......................................................................... 422
15.4 FNC 73 – SEGD / Seven Segment Decoder .....................................................................................425
15.5 FNC 74 – SEGL / Seven Segment With Latch................................................................................... 427
15.5.1 How to select a seven-segment display unit ....................................................................................... 430
15.5.2 How to select parameter "n" based on seven-segment display specifications ................................... 430
15.6 FNC 75 – ARWS / Arrow Switch ........................................................................................................ 432
15.7 FNC 76 – ASC / ASCII Code Data Input............................................................................................ 436
15.8 FNC 77 – PR / Print (ASCII Code) ..................................................................................................... 438