Справочник ПользователяСодержаниеSAFETY PRECAUTIONS3CONDITIONS OF USE FOR THE PRODUCT3INTRODUCTION4CONTENTS5MANUALS14TERMS161 GENERAL DESCRIPTION181.1 Related Programming Manuals182 INSTRUCTION TABLES232.1 Types of Instructions232.2 How to Read Instruction Tables252.3 Sequence Instructions27Contact instructions27Association instructions28Output instructions29Shift instructions29Master control instructions29Termination instructions30Other instructions302.4 Basic Instructions31Comparison operation instructions31Arithmetic operation instruction39Data conversion instructions44Data transfer instruction47Program branch instructions49Program execution control instructions49I/O refresh instructions49Other convenient instructions502.5 Application Instructions51Logical operation instructions51Rotation instructions54Shift instructions55Bit processing instructions57Data processing instructions58Structure creation instructions61Data table operation instructions63Buffer memory access instructions63Display instructions64Debugging and failure diagnosis instructions64Character string processing instructions65Special function instructions68Data control instructions71Switching instructions72Clock instructions73Expansion clock instructions76Program control instructions77PID instruction77Other instructions782.6 Instructions for Data Link80Instructions for network refresh80Instructions for reading/writing routing information80Refresh device write/read instruction802.7 Multiple CPU Dedicated Instruction81Instructions for writing to the CPU shared memory of host CPU81Instructions for reading from the CPU shared memory of another CPU812.8 Multiple CPU High-speed Transmission Dedicated Instruction82Instructions for multiple CPU high-speed transmission822.9 Redundant System Instructions (For Redundant CPU)82Instructions for redundant system (for Redundant CPU)823 CONFIGURATION OF INSTRUCTIONS833.1 Configuration of Instructions833.2 Designating Data84Using bit data85Using word (16 bits) data86Using double word (32 bits) data88Using single/double-precision real number data90Using character string data943.3 Indexing953.4 Indirect Specification1083.5 Reducing Instruction Processing Time111Subset processing111Operation processing with standard device registers (Z) (Universal model QCPU and LCPU only)1123.6 Cautions on Programming (Operation Errors)1133.7 Conditions for Execution of Instructions1203.8 Counting Step Number1213.9 Operation When the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device1253.10 Precautions for Use of File Registers1294 HOW TO READ INSTRUCTIONS1325 SEQUENCE INSTRUCTIONS1345.1 Contact Instructions134Operation start, series connection, parallel connection134Pulse operation start, pulse series connection, pulse parallel connection137Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection1395.2 Association Instructions141Ladder block series connection, ladder block parallel connection141Operation results push, operation results read, operation results pop143Operation results inversion146Operation results conversion148Pulse conversion of edge relay operation results1495.3 Output Instructions151Out (excluding timers, counters, and annunciators)151Low-speed timer, high-speed timer, low-speed retentive timer, high-speed retentive timer153Counter157Annunciator output159Setting devices (excluding annunciators)161Resetting devices (excluding annunciators)163Setting annunciators, resetting annunciators165Leading edge output, trailing edge output167Bit device output inversion170Pulse conversion of direct output1725.4 Shift Instructions174Bit device shift1745.5 Master Control Instructions176Setting the master control, resetting the master control1765.6 Termination Instructions180Main routine program end180Sequence program end1825.7 Other Instructions184Sequence program stop184No operations1866 BASIC INSTRUCTIONS1906.1 Comparison Operation Instructions190BIN 16-bit data comparisons190BIN 32-bit data comparisons192Floating-point data comparisons (single precision)194Floating-point data comparisons (double precision)196Character string data comparisons199BIN 16-bit block data comparisons202BIN 32-bit block data comparisons205BIN 16-bit data comparisons (small, match, large)208BIN 32-bit data comparisons (small, match, large)209BIN 16-bit data band comparisons210BIN 32-bit data band comparisons212Floating point comparisons (single precision)214Floating point comparisons (double precision)216Floating point band comparisons (single precision)218Floating point band comparisons (double precision)2206.2 Arithmetic Operation Instructions222BIN 16-bit addition and subtraction operations222BIN 32-bit addition and subtraction operations226BIN 16-bit multiplication and division operations230BIN 32-bit multiplication and division operations232BCD 4-digit addition and subtraction operations234BCD 8-digit addition and subtraction operations238BCD 4-digit multiplication and division operations242BCD 8-digit multiplication and division operations244Addition and subtraction of floating-point data (single precision)246Addition and subtraction of floating-point data (double precision)250Multiplication and division of floating-point data (single precision)254Multiplication and division of floating-point data (double precision)256BIN 16-bit data block addition and subtraction operations258BIN 32-bit data block addition and subtraction operations261Linking character strings26416-bit BIN data increment, 16-bit BIN data decrement26732-bit BIN data increment, 32-bit BIN data decrement2696.3 Data Conversion Instructions271Conversion from BIN data to BCD 4-digit data, conversion from BIN data to BCD 8-digit data271Conversion from BCD 4-digit data to BIN data, conversion from BCD 8-digit data to BIN data273Conversion from BIN 16-bit data to floating-point data (single precision), conversion from BIN 32-bit data to floating-point data (single precision)275Conversion from BIN 16-bit data to floating-point data (double precision), conversion from BIN 32-bit data to floating-point data (double precision)277Conversion from floating-point data to BIN 16-bit data (single precision), conversion from floating-point data to BIN 32-bit data (single precision)279Conversion from floating-point data to BIN 16-bit data (double precision), conversion from floating-point data to BIN 32-bit data (double precision)281Conversion from BIN 16-bit to BIN 32-bit data283Conversion from BIN 32-bit to BIN 16-bit data284Conversion from BIN 16-bit data to Gray code, conversion from BIN 32-bit data to Gray code285Conversion from Gray code to BIN 16-bit data, conversion from Gray code to BIN 32-bit data287Complement of 2 of BIN 16-bit data (sign inversion), complement of 2 of BIN 32-bit data (sign inversion)289Floating-point sign inversion (single precision)291Floating-point sign inversion (double precision)292Conversion from block BIN 16-bit data to BCD 4-digit data293Conversion from block BCD 4-digit data to block BIN 16-bit data295Conversion from single precision to double precision297Conversion from double precision to single precision2986.4 Data Transfer Instructions29916-bit data transfer, 32-bit data transfer299Floating-point data transfer (single precision)301Floating-point data transfer (double precision)303Character string transfer30416-bit data negation transfer, 32-bit data negation transfer306Block 16-bit data transfer309Identical 16-bit data block transfer312Identical 32-bit data block transfer31416-bit data exchanges, 32-bit data exchanges316Block 16-bit data exchanges318Upper and lower byte exchanges320Shift3216.5 Program Branch Instructions323Pointer branch323Jump to END3266.6 Program Execution Control Instructions327Interrupt disable, interrupt enable, interrupt program mask327Recovery from interrupt programs3336.7 I/O Refresh Instructions334I/O refresh3346.8 Other Convenient Instructions336Counter 1-phase input up or down336Counter 2-phase input up or down338Teaching timer340Special function timer342Rotary table shortest direction control345Ramp signal347Pulse density measurement349Fixed cycle pulse output351Pulse width modulation353Matrix input3557 APPLICATION INSTRUCTIONS3577.1 Logical Operation Instructions357Logical products with 16-bit data, logical products with 32-bit data358Block logical products363Logical sums of 16-bit data, logical sums of 32-bit data365Block logical sum operations36916-bit exclusive OR operations, 32-bit exclusive OR operations371Block exclusive OR operations37516-bit data exclusive NOR operations, 32-bit data exclusive NOR operations377Block exclusive NOR operations3817.2 Rotation Instructions383Right rotation of 16-bit data383Left rotation of 16-bit data386Right rotation of 32-bit data389Left rotation of 32-bit data3917.3 Shift Instructions393n-bit shift to right of 16-bit data, n-bit shift to left of 16-bit data3931-bit shift to right of n-bit data, 1-bit shift to left of n-bit data396n-bit shift to right of n-bit data, n-bit shift to left of n-bit data3981-word shift to right of n-word data, 1-word shift to left of n-word data401n-word shift to right of n-word data, n-word shift to left of n-word data403Bit shift right406Bit shift left408Word shift right410Word shift left4127.4 Bit Processing Instructions414Bit set for word devices, bit reset for word devices414Bit tests416Batch reset of bit devices4187.5 Data Processing Instructions42016-bit data search, 32-bit data search42016-bit data bit check, 32-bit data check423Decoding from 8 to 256 bits425Encoding from 256 to 8 bits4277-segment decode4294-bit dissociation of 16-bit data4314-bit linking of 16-bit data433Dissociation of random data, linking of random data435Data dissociation in byte units, data linking in byte units439Maximum value search for 16-bit data, maximum value search for 32-bit data442Minimum value search for 16-bit data, minimum value search for 32-bit data444BIN 16-bit data sort operations, BIN 32-bit data sort operations446Calculation of totals for 16-bit data450Calculation of totals for 32-bit data451Calculation of averages for 16-bit data, calculation of averages for 32-bit data452Check code454CRC operation4577.6 Structure Creation Instructions459FOR to NEXT instruction loop459Forced end of FOR to NEXT instruction loop462Subroutine program calls464Return from subroutine programs469Subroutine program output OFF calls470Subroutine calls between program files474Subroutine output OFF calls between program files479Subroutine program calls483Refresh489Select refresh (COM)491Select refresh (CCOM(P))494Index modification of entire ladder495Designation of modification values in index modification of entire ladders4987.7 Data Table Operation Instructions500Writing data to the data table500Reading oldest data from tables502Reading newest data from data tables504Deletion of data from data tables, insertion of data in data tables5067.8 Buffer Memory Access Instructions508Reading 1-word data from the intelligent function module, reading 2-word data from the intelligent function module508Writing 1-word data to the intelligent function module, writing 2- word data to the intelligent function module5117.9 Display Instructions514Print ASCII code514Print comment517Error display and annunciator reset5207.10 Debugging and Failure Diagnosis Instructions522Special format failure check522Changing check format of CHK5267.11 Character String Processing Instructions530Conversion from BIN 16-bit data to decimal ASCII, conversion from BIN 32-bit data to decimal ASCII530Conversion from BIN 16-bit data to hexadecimal ASCII, conversion from BIN 32-bit data to hexadecimal ASCII533Conversion from BCD 4-digit data to decimal ASCII data, conversion from BCD 8-digit data to decimal ASCII data536Conversion from decimal ASCII to BIN 16-bit data, conversion from decimal ASCII to BIN 32-bit data539Conversion from hexadecimal ASCII to BIN 16-bit data, conversion from hexadecimal ASCII to BIN 32-bit data542Conversion from decimal ASCII to BCD 4-digit data, conversion from decimal ASCII to BCD 8-digit data545Reading device comment data548Character string length detection551Conversion from BIN 16-bit data to character string, conversion from BIN 32-bit data to character string553Conversion from character string to BIN 16-bit data, conversion from character string to BIN 32-bit data559Conversion from floating-point data to character string data564Conversion from character string to floating-point data571Conversion from hexadecimal BIN to ASCII575Conversion from ASCII to hexadecimal BIN577Extracting character string data from the right, extracting character string data from the left579Random selection from character strings, random replacement in character strings582Character string search587Insertion of character string589Deletion of character string591Floating-point data to BCD593From BCD format data to floating-point data5957.12 Special Function Instructions597SIN operation on floating-point data (single precision)597SIN operation on floating-point data (double precision)599COS operation on floating-point data (single precision)601COS operation on floating-point data (double precision)603TAN operation on floating-point data (single precision)605TAN operation on floating-point data (double precision)607Arc sine operation on floating-point data (single precision)609Arc sine operation on floating-point data (double precision)611Arc cosine operation on floating-point data (single precision)613Arc cosine operation on floating-point data (double precision)615Arc tangent operation on floating-point data (single precision)617Arc tangent operation on floating-point data (double precision)619Conversion from floating-point angle to radian (single precision)621Conversion from floating-point angle to radian (double precision)623Conversion from floating-point radian to angle (single precision)625Conversion from floating-point radian to angle (double precision)627Exponentiation operation on floating-point data (single precision)629Exponentiation operation on floating-point data (double precision)631Square root operation for floating-point data (single precision)633Square root operation for floating-point data (double precision)635Exponent operation on floating-point data (single precision)637Exponent operation on floating-point data (double precision)639Natural logarithm operation on floating-point data (single precision)641Natural logarithm operation on floating-point data (double precision)643Common logarithm operation on floating-point data (single precision)645Common logarithm operation on floating-point data (double precision)647Random number generation, series updates649BCD 4-digit square roots, BCD 8-digit square roots650BCD type SIN operation653BCD type COS operations655BCD type TAN operation657BCD type arc sine operations659BCD type arc cosine operation661BCD type arc tangent operations6637.13 Data Control Instructions665Upper and lower limit controls for BIN 16-bit data, upper and lower limit controls for BIN 32-bit data665BIN 16-bit dead band controls, BIN 32-bit dead band controls668Zone control for BIN 16-bit data, zone control for BIN 32-bit data671Scaling (coordinate data by point)673Scaling (coordinate data by X and Y)6777.14 File Register Switching Instructions680Switching file register block numbers680File setting for file register682File setting for comments6847.15 Clock Instructions686Reading clock data686Writing clock data688Clock data addition operation690Clock data subtraction operation692Time data conversion (from hour/minute/second to second)694Time data conversion (from second to hour/minute/second)696Hour meter698Hour meter699Date comparison700Time comparison704Clock data comparison708Clock data band comparison7107.16 Expansion Clock Instructions712Reading expansion clock data712Expansion clock data addition operation715Expansion clock data subtraction operation7187.17 Program Control Instructions721Program standby722Program output OFF standby723Program scan execution registration725Program low speed execution registration727Program execution status check7287.18 PID Instruction730Overview730PID control732Parameters736Auto tuning746Example of practical program (step response method)750Troubleshooting7537.19 Other Instructions754Watchdog timer reset754Timing pulse generation756Time check758Direct 1-byte read from file register759File register direct 1-byte write761Indirect address read operations763Numerical key input using keyboard764Batch save of index register, batch recovery of index register768Reading module information770Reading module model name774Trace set, trace reset778Writing data to designated file780Reading data from designated file789Writing data to standard ROM801Reading data from standard ROM803Loading program from memory card805Unloading program from program memory808Loading and unloading810High-speed block transfer of file register812User message8178 INSTRUCTIONS FOR DATA LINK8218.1 Network Refresh Instructions821Refresh for the designated module8218.2 Reading/Writing Routing Information826Reading routing information826Registering routing information8288.3 Refresh Device Write/Read Instructions830Refresh device write (in 1-bit units)830Refresh device write (in 16-bit units)834Refresh device read (in 1-bit units)839Refresh device read (in 16-bit units)8439 MULTIPLE CPU DEDICATED INSTRUCTIONS8479.1 Writing to the CPU Shared Memory of Host CPU847Writing to host CPU shared memory849Writing to host CPU shared memory8529.2 Reading from the CPU Shared Memory of Another CPU856Reading from other CPU shared memory85710 MULTIPLE CPU HIGH-SPEED TRANSMISSION DEDICATED INSTRUCTIONS86310.1 Overview86310.2 Writing Devices to Another CPU87410.3 Reading Devices from Another CPU87811 REDUNDANT SYSTEM INSTRUCTIONS (FOR REDUNDANT CPU)88211.1 System Switching882APPENDICES885Appendix 1 Operation Processing Time885Definition885Operation processing time of Basic model QCPU886Operation processing time of High Performance model QCPU/ Process CPU/Redundant CPU902Operation processing time of Universal model QCPU926Operation processing time of LCPU1029Appendix 2 CPU Performance Comparison1067Comparison of Q, LCPU with AnNCPU, AnACPU, and AnUCPU1067Appendix 3 Application Program Examples1073Concept of programs which perform operations of a nth power of X, a nth root X1073INDEX1075INSTRUCTION INDEX1077REVISIONS1082WARRANTY1083TRADEMARKS1084Размер: 24,3 МБСтраницы: 1086Язык: EnglishПросмотреть