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