Справочник ПользователяСодержаниеFX SERIES OF PROGRAMMABLE CONTROLLER1Programming Manual31. Introduction191.1 Overview191.2 What is a Programmable Controller?201.3 What do You Need to Program a PLC?201.4 CPU version numbers211.4.1 FX0N CPU versions211.4.2 FX and FX2C CPU versions211.5 Special considerations for programming equipment221.5.1 FX CPU version 3.07 or later and FX2C221.5.2 FX2N(C) CPU all versions232. Basic Program Instructions272.1 What is a Program?272.2 Outline of Basic Devices Used in Programming272.3 How to Read Ladder Logic282.4 Load, Load Inverse292.5 Out302.5.1 Timer and Counter Variations302.5.2 Double Coil Designation312.6 And, And Inverse322.7 Or, Or Inverse332.8 Load Pulse, Load Trailing Pulse342.9 And Pulse, And Trailing Pulse352.10 Or Pulse, Or Trailing Pulse362.11 Or Block372.12 And Block382.13 MPS, MRD and MPP392.14 Master Control and Reset412.15 Set and Reset432.16 Timer, Counter (Out & Reset)442.16.1 Basic Timers, Retentive Timers And Counters442.16.2 Normal 32 bit Counters452.16.3 High Speed Counters452.17 Leading and Trailing Pulse462.18 Inverse472.19 No Operation482.20 End493. STL Programming533.1 What is STL, SFC And IEC1131 Part 3?533.2 How STL Operates543.2.1 Each step is a program543.3 How To Start And End An STL Program553.3.1 Embedded STL programs553.3.2 Activating new states553.3.3 Terminating an STL Program563.4 Moving Between STL Steps573.4.1 Using SET to drive an STL coil573.4.2 Using OUT to drive an STL coil583.5 Rules and Techniques For STL programs593.5.1 Basic Notes On The Behavior Of STL programs593.5.2 Single Signal Step Control613.6 Restrictions Of Some Instructions When Used With STL623.7 Using STL To Select The Most Appropriate Program633.8 Using STL To Activate Multiple Flows Simultaneously643.9 General Rules For Successful STL Branching663.10 General Precautions When Using The FX-PCS/AT-EE Software673.11 Programming Examples683.11.1 A Simple STL Flow683.11.2 A Selective Branch/ First State Merge Example Program703.12 Advanced STL Use724. Devices in Detail754.1 Inputs754.2 Outputs764.3 Auxiliary Relays774.3.1 General Stable State Auxiliary Relays774.3.2 Battery Backed/ Latched Auxiliary Relays784.3.3 Special Diagnostic Auxiliary Relays794.3.4 Special Single Operation Pulse Relays794.4 State Relays804.4.1 General Stable State - State Relays804.4.2 Battery Backed/ Latched State Relays814.4.3 STL Step Relays824.4.4 Annunciator Flags834.5 Pointers844.6 Interrupt Pointers854.6.1 Input Interrupts864.6.2 Timer Interrupts864.6.3 Disabling Individual Interrupts874.6.4 Counter Interrupts874.7 Constant K884.8 Constant H884.9 Timers894.9.1 General timer operation904.9.2 Selectable Timers904.9.3 Retentive Timers914.9.4 Timers Used in Interrupt and ‘CALL’ Subroutines924.9.5 Timer Accuracy924.10 Counters934.10.1 General/ Latched 16bit UP Counters944.10.2 General/ Latched 32bit Bi-directional Counters954.11 High Speed Counters964.11.1 Basic High Speed Counter Operation974.11.2 Availability of High Speed Counters on FX0, FX0S and FX0N PLC’s984.11.3 Availability of High Speed Counters on FX, FX2C PLC’s994.11.4 Availability of High Speed Counters on FX2N(C) PLC’s1024.11.5 1 Phase Counters - User Start and Reset (C235 - C240)1034.11.6 1 Phase Counters - Assigned Start and Reset (C241 to C245)1044.11.7 2 Phase Bi-directional Counters (C246 to C250)1054.11.8 A/B Phase Counters (C252 to C255)1064.12 Data Registers1074.12.1 General Use Registers1084.12.2 Battery Backed/ Latched Registers1094.12.3 Special Diagnostic Registers1094.12.4 File Registers1104.12.5 Externally Adjusted Registers1114.13 Index Registers1124.13.1 Modifying a Constant1134.13.2 Misuse of the Modifiers1134.13.3 Using Multiple Index Registers1134.14 Bits, Words, BCD and Hexadecimal1144.14.1 Bit Devices, Individual and Grouped1144.14.2 Word Devices1164.14.3 Interpreting Word Data1164.14.4 Two’s Compliment1194.15 Floating Point And Scientific Notation1204.15.1 Scientific Notation1214.15.2 Floating Point Format1224.15.3 Summary Of The Scientific Notation and Floating Point Numbers1235. Applied Instructions1275.1 Program Flow-Functions00 to 091305.1.1 CJ (FNC 00)1315.1.2 CALL (FNC 01)1335.1.3 SRET (FNC 02)1345.1.4 IRET, EI, DI (FNC 03, 04, 05)1355.1.5 FEND (FNC 06)1375.1.6 WDT (FNC 07)1385.1.7 FOR, NEXT (FNC 08, 09)1395.2 Move And Compare - Functions 10 to 191425.2.1 CMP (FNC 10)1435.2.2 ZCP (FNC 11)1435.2.3 MOV (FNC 12)1445.2.4 SMOV (FNC 13)1445.2.5 CML (FNC 14)1455.2.6 BMOV (FNC 15)1465.2.7 FMOV (FNC 16)1475.2.8 XCH (FNC 17)1475.2.9 BCD (FNC18)1485.2.10 BIN (FNC 19)1485.3 Arithmetic And Logical Operations - Functions 20 to 291505.3.1 ADD (FNC 20)1515.3.2 SUB (FNC 21)1525.3.3 MUL (FNC 22)1535.3.4 DIV (FNC 23)1545.3.5 INC (FNC 24)1555.3.6 DEC (FNC 24)1555.3.7 WAND (FNC 26)1565.3.8 WOR (FNC 27)1565.3.9 WXOR (FNC 28)1575.3.10 NEG (FNC 29)1575.4 Rotation And Shift - Functions 30 to 391605.4.1 ROR (FNC 30)1615.4.2 ROL (FNC 31)1615.4.3 RCR (FNC 32)1625.4.4 RCL (FNC 33)1625.4.5 SFTR (FNC 34)1635.4.6 SFTL (FNC 35)1635.4.7 WSFR (FNC 36)1645.4.8 WSFL (FNC 37)1645.4.9 SFWR (FNC 38)1655.4.10 SFRD (FNC 39)1665.5 Data Operation - Functions 40 to 491685.5.1 ZRST (FNC 40)1695.5.2 DECO (FNC 41)1695.5.3 ENCO (FNC 42)1705.5.4 SUM (FNC 43)1715.5.5 BON (FNC 44)1715.5.6 MEAN (FNC 45)1725.5.7 ANS (FNC 46)1735.5.8 ANR (FNC 47)1735.5.9 SQR (FNC 48)1745.5.10 FLT (FNC 49)1755.6 High Speed Processing - Functions 50 to 591785.6.1 REF (FNC 50)1795.6.2 REFF (FNC 51)1795.6.3 MTR (FNC 52)1805.6.4 HSCS (FNC 53)1815.6.5 HSCR (FNC 54)1825.6.6 HSZ (FNC 55)1835.6.7 SPD (FNC 56)1865.6.8 PLSY (FNC 57)1875.6.9 PWM (FNC 58)1885.6.10 PLSR (FNC 59)1895.7 Handy Instructions - Functions 60 to 691925.7.1 IST (FNC 60)1935.7.2 SER (FNC 61)1955.7.3 ABSD (FNC 62)1965.7.4 INCD (FNC 63)1975.7.5 TTMR (FNC 64)1985.7.6 STMR (FNC 65)1985.7.7 ALT (FNC 66)1995.7.8 RAMP (FNC 67)1995.7.9 ROTC (FNC 68)2015.7.10 SORT (FNC 69)2035.8 External FX I/O Devices - Functions 70 to 792065.8.1 TKY (FNC 70)2075.8.2 HKY (FNC 71)2085.8.3 DSW (FNC 72)2095.8.4 SEGD (FNC 73)2105.8.5 SEGL (FNC 74)2115.8.6 ARWS (FNC 75)2135.8.7 ASC (FNC 76)2145.8.8 PR (FNC 77)2155.8.9 FROM (FNC 78)2165.8.10 TO (FNC 77)2175.9 External FX Serial Devices - Functions 80 to 892205.9.1 RS (FNC 80)2215.9.2 RUN (FNC 81)2225.9.3 ASCI (FNC 82)2245.9.4 HEX (FNC 83)2255.9.5 CCD (FNC 84)2265.9.6 VRRD (FNC 85)2275.9.7 VRSD (FNC 86)2275.9.8 PID (FNC 88)2285.10 External F2 Units - Functions 90 to 992365.10.1 MNET (FNC 90)2375.10.2 ANRD (FNC 91)2375.10.3 ANWR (FNC 92)2385.10.4 RMST (FNC 93)2385.10.5 RMMR (FNC 94)2395.10.6 RMRD (FNC 95)2405.10.7 RMMN (FNC 96)2405.10.8 BLK (FNC 97)2415.10.9 MCDE (FNC 98)2425.11 Floating Point 1 & 2 - Functions 110 to 1292445.11.1 ECMP (FNC 110)2455.11.2 EZCP (FNC 111)2455.11.3 EBCD (FNC 118)2465.11.4 EBIN (FNC 119)2465.11.5 EADD (FNC 120)2475.11.6 EAUB (FNC 121)2485.11.7 EMUL (FNC 122)2485.11.8 EDIV (FNC 123)2495.11.9 ESQR (FNC 127)2495.11.10 INT (FNC 129)2505.12 Trigonometry - FNC 130 to FNC 1392525.12.1 SIN (FNC 130)2535.12.2 COS (FNC 131)2545.12.3 TAN (FNC 132)2545.13 Data Operations 2 - FNC 140 to FNC 1492565.13.1 SWAP (FNC 147)2575.14 Real Time Clock Control - FNC 160 to FNC 1692605.14.1 TCMP (FNC 160)2615.14.2 TZCP (FNC 161)2625.14.3 TADD (FNC 162)2635.14.4 TSUB (FNC 163)2645.14.5 TRD (FNC 166)2655.14.6 TWR (FNC 167)2665.15 Gray Codes - FNC 170 to FNC 1792685.15.1 GRY (FNC 170)2695.15.2 GBIN (FNC 171)2695.16 Inline Comparisons - FNC 220 to FNC 2492725.16.1 LD compare (FNC 224 to 230)2735.16.2 AND compare (FNC 232 to 238)2745.16.3 OR compare (FNC 240 to 246)2756. Diagnostic Devices2796.1 PLC Status (M8000 to M8009 and D8000 to D8009)2806.2 Clock Devices (M8010 to M8019 and D8010 to D8019)2816.3 Operation Flags2826.4 PLC Operation Mode (M8030 to M8039 and D8030 to D8039)2836.5 Step Ladder (STL) Flags (M8040 to M8049 and D8040 to D8049)2846.6 Interrupt Control Flags (M8050 to M8059 and D8050 to D8059)2856.7 Error Detection Devices (M8060 to M8069 and D8060 to D6069)2866.8 Link And Special Operation Devices (M8070 to M8099 and D8070 to D8099)2876.9 Miscellaneous Devices (M8100 to M8119 and D8100 to D8119)2886.10 Communication Adapter Devices, i.e. 232ADP, 485ADP (M8120 to M8129 and D8120 to D8129)2886.11 High Speed Zone Compare Table Comparison Flags (M8130 to M8139 and D8130 to D8139)2896.12 Miscellaneous Devices (M8160 to M8199)2906.13 Index Registers (D8180 to D8199)2916.14 Up/Down Counter Control (M8200 to M8234 and M8200 to D8234)2926.15 High Speed Counter Control (M8235 to M8255 and D8235 to D8255)2926.16 Error Code Tables2937. Execution Times and Instructional Hierarchy3017.1 Basic Instructions3017.2 Applied Instructions3037.3 Hierarchical Relationships Of Basic Program Instructions3127.4 Batch Processing3147.5 Summary of Device Memory Allocations3147.6 Limits Of Instruction Usage3167.6.1 Instructions Which Can Only Be Used Once In The Main Program Area3167.6.2 Instructions Which Are Not Suitable For Use With 110V AC Input Units3168. PLC Device Tables3198.1 Performance Specification Of The FX0 And FX0S3198.2 Performance Specification Of The FX0N3208.3 Performance Specification Of The FX (CPU versions 2.0 to 3.06)3228.4 Performance Specification Of The FX (CPU versions from 3.07) And FX2C (all versions)3248.5 Performance Specification Of The FX2N(C)3269. Assigning System Devices3319.1 Addressing Extension Modules3319.2 Using The FX2-24EI With F Series Special Function Blocks3329.2.1 Using the FX2-24EI With A F-16NP/NT3339.2.2 Using the FX2-24EI With A F2-6A3349.2.3 Using the FX2-24EI With A F2-32RM3349.2.4 Using the FX2-24EI With A F2-30GM3359.3 Parallel Link Adapters3369.4 Real Time Clock Function3379.4.1 Setting the real time clock33810. Points of Technique34110.1 Advanced Programming Points34110.2 Users of DC Powered FX Units34110.3 Using The Forced RUN/STOP Flags34210.3.1 A RUN/STOP push button configuration34210.3.2 Remote RUN/STOP control34310.4 Constant Scan Mode34410.5 Alternating ON/OFF States34410.6 Using Battery Backed Devices For Maximum Advantage34510.7 Indexing Through Multiple Display Data Values34510.8 Reading And Manipulating Thumbwheel Data34610.9 Measuring a High Speed Pulse Input34610.9.1 A 1 msec timer pulse measurement34610.9.2 A 0.1 msec timer pulse measurement34710.10 Using The Execution Complete Flag, M802934710.11 Creating a User Defined MTR Instruction34810.12 An Example System Application Using STL And IST Program Control34810.13 Using The PWM Instruction For Motor Control35510.14 Communication Format35810.14.1 Specification of the communication parameters:35810.14.2 Header and Terminator Characters35910.14.3 Timing diagrams for communications:36010.14.4 8 bit or 16 bit communications.36310.15 PID Programming Techniques36410.15.1 Keeping MV within a set range36410.15.2 Manual/Automatic change over36410.15.3 Using the PID alarm signals36510.15.4 Other tips for PID programming36510.16 Additional PID functions36610.16.1 Output Value range control (S3+1 b5)36610.17 Pre-tuning operation36710.17.1 Variable Constants36710.18 Example Autotuning Program36811. Index37111.1 Index37111.2 ASCII Character Codes37911.3 Applied Instruction List380Размер: 6,8 МБСтраницы: 382Язык: EnglishПросмотреть