Manuel D’UtilisationTable des matièresFront1C200HX/C200HG/C200HE Programmable Controllers Operation Manual2Notice:3TABLE OF CONTENTS4About this Manual:7PRECAUTIONS81 Intended Audience92 General Precautions93 Safety Precautions94 Operating Environment Precautions105 Application Precautions106 Conformance to EC Directives12SECTION 1 Introduction131-1 Overview141-2 The Origins of PC Logic141-3 PC Terminology151-4 OMRON Product Terminology161-5 Overview of PC Operation161-6 Peripheral Devices171-7 Available Manuals181-8 C200HX/HG/HE Features191-8-1 C200HS and C200HX/HG/HE Capabilities191-8-2 Program Compatibility20SECTION 2 Hardware Considerations232-1 CPU Unit Components242-1-1 CPU Unit Indicators252-1-2 Peripheral Device Connection252-2 PC Configuration272-3 CPU Unit Capabilities272-4 Memory Cassettes282-4-1 Hardware and Software Settings292-4-2 Writing/Reading UM Data292-4-3 Writing/Reading IOM Data302-5 CPU Unit DIP Switch322-6 Operating without a Backup Battery33SECTION 3 Memory Areas353-1 Introduction363-1-1 Data Area Overview363-1-2 IR/SR Area Overview373-2 Data Area Structure373-3 IR (Internal Relay) Area413-4 SR (Special Relay) Area453-4-1 SYSMAC NET/SYSMAC LINK System503-4-2 Remote I/O Systems513-4-3 Link System Flags and Control Bits523-4-4 Forced Status Hold Bit533-4-5 I/O Status Hold Bit543-4-6 Output OFF Bit543-4-7 FAL (Failure Alarm) Area543-4-8 Low Battery Flag543-4-9 Cycle Time Error Flag553-4-10 I/O Verification Error Flag553-4-11 First Cycle Flag553-4-12 Clock Pulse Bits553-4-13 Step Flag563-4-14 Group-2 Error Flag563-4-15 Special Unit Error Flag563-4-16 Instruction Execution Error Flag, ER563-4-17 Arithmetic Flags563-4-18 Interrupt Subroutine Areas573-4-19 RS-232C Port Communications Areas573-4-20 Peripheral Port Communications Areas583-4-21 Memory Cassette Areas583-4-22 Data Transfer Error Bits593-4-23 Ladder Diagram Memory Areas593-4-24 Memory Error Flags593-4-25 Data Save Flags603-4-26 Transfer Error Flags603-4-27 PC Setup Error Flags603-4-28 Clock and Keyboard Mapping603-4-29 Group-2 Error Flags603-4-30 Special I/O Unit Restart Bits and Error Flags603-5 AR (Auxiliary Relay) Area603-5-1 Restarting Special I/O Units623-5-2 Slave Rack Error Flags633-5-3 Group-2 Error Flags633-5-4 Optical I/O Unit and I/O Terminal Error Flags633-5-5 SYSMAC LINK System Data Link Settings643-5-6 Error History Bits643-5-7 Active Node Flags643-5-8 SYSMAC LINK/SYSMAC NET Link System Service Time653-5-9 Calendar/Clock Area and Bits653-5-10 TERMINAL Mode Key Bits663-5-11 Power OFF Counter663-5-12 SYSMAC LINK – Peripheral Device Flags663-5-13 Cycle Time Flag673-5-14 Link Unit Mounted Flags673-5-15 CPU Unit-mounting Device Mounted Flag673-5-16 FPD Trigger Bit673-5-17 Data Tracing Flags and Control Bits673-5-18 Cycle Time Indicators673-6 DM (Data Memory) Area683-6-1 Expansion DM Area693-6-2 Special I/O Unit Data703-6-3 Error History Area703-6-4 PC Setup723-6-5 Communications Board Settings773-6-6 Special I/O Unit Area Settings793-7 HR (Holding Relay) Area803-8 TC (Timer/Counter) Area803-9 LR (Link Relay) Area813-10 UM Area823-11 TR (Temporary Relay) Area833-12 EM (Extended Data Memory) Area833-12-1 Using the EM Area833-12-2 The Current EM Bank84SECTION 4 Writing and Inputting the Program854-1 Basic Procedure864-2 Instruction Terminology864-3 Program Capacity874-4 Basic Ladder Diagrams874-4-1 Basic Terms884-4-2 Mnemonic Code884-4-3 Ladder Instructions894-4-4 OUTPUT and OUTPUT NOT924-4-5 The END Instruction924-4-6 Logic Block Instructions934-4-7 Coding Multiple Right-hand Instructions1004-5 The Programming Console1004-5-1 The Keyboard1004-5-2 PC Modes1034-5-3 The Display Message Switch1034-6 Preparation for Operation1034-6-1 Entering the Password1044-6-2 Buzzer1044-6-3 Clearing Memory1054-6-4 Registering the I/O Table1084-6-5 Clearing Error Messages1094-6-6 Verifying the I/O Table1094-6-7 Reading the I/O Table1114-6-8 Clearing the I/O Table1134-6-9 SYSMAC NET Link Table Transfer1144-7 Inputting, Modifying, and Checking the Program1164-7-1 Setting and Reading from Program Memory Address1164-7-2 Entering and Editing Programs1174-7-3 Checking the Program1204-7-4 Displaying the Cycle Time1224-7-5 Program Searches1234-7-6 Inserting and Deleting Instructions1244-7-7 Branching Instruction Lines1274-7-8 Jumps1314-8 Controlling Bit Status1324-8-1 DIFFERENTIATE UP and DIFFERENTIATE DOWN1334-8-2 KEEP1334-8-3 Self-maintaining Bits (Seal)1334-9 Work Bits (Internal Relays)1344-10 Programming Precautions1364-11 Program Execution1384-12 Special I/O Unit Interface Programs1384-12-1 Restarting Special I/O Units1384-12-2 Special I/O Unit Error Processing Program1394-12-3 Changing the Special I/O Unit Settings1394-12-4 Special I/O Unit I/O Refreshing Interval1404-12-5 Reducing the Cycle Time1414-13 Analog Timer Unit Programming1424-13-1 Operation1424-13-2 Bit Allocation and DIP Switch Settings1434-13-3 Example Program144SECTION 5 Instruction Set1475-1 Notation1505-2 Instruction Format1505-3 Data Areas, Definer Values, and Flags1505-4 Differentiated Instructions1525-5 Expansion Instructions1535-6 Coding Right-hand Instructions1545-7 Instruction Set Lists1575-7-1 Function Codes1575-8 Ladder Diagram Instructions1615-8-1 LOAD, LOAD NOT, AND, AND NOT, OR, and OR NOT1615-8-2 AND LOAD and OR LOAD1625-9 Bit Control Instructions1625-9-1 OUTPUT and OUTPUT NOT – OUT and OUT NOT1625-9-2 DIFFERENTIATE UP and DOWN – DIFU(13) and DIFD(14)1635-9-3 SET and RESET – SET and RSET1655-9-4 KEEP – KEEP(11)1665-10 INTERLOCK and INTERLOCK CLEAR – IL(02) and ILC(03)1675-11 JUMP and JUMP END – JMP(04) and JME(05)1695-12 END – END(01)1705-13 NO OPERATION – NOP(00)1705-14 Timer and Counter Instructions1705-14-1 TIMER – TIM1715-14-2 HIGH-SPEED TIMER – TIMH(15)1765-14-3 TOTALIZING TIMER – TTIM(87)1775-14-4 COUNTER – CNT1785-14-5 REVERSIBLE COUNTER – CNTR(12)1815-15 Data Shifting1835-15-1 SHIFT REGISTER – SFT(10)1835-15-2 REVERSIBLE SHIFT REGISTER – SFTR(84)1855-15-3 ARITHMETIC SHIFT LEFT – ASL(25)1875-15-4 ARITHMETIC SHIFT RIGHT – ASR(26)1875-15-5 ROTATE LEFT – ROL(27)1885-15-6 ROTATE RIGHT – ROR(28)1885-15-7 ONE DIGIT SHIFT LEFT – SLD(74)1895-15-8 ONE DIGIT SHIFT RIGHT – SRD(75)1895-15-9 WORD SHIFT – WSFT(16)1905-15-10 ASYNCHRONOUS SHIFT REGISTER – ASFT(17)1905-16 Data Movement1925-16-1 MOVE – MOV(21)1925-16-2 MOVE NOT – MVN(22)1925-16-3 BLOCK SET – BSET(71)1935-16-4 BLOCK TRANSFER – XFER(70)1945-16-5 DATA EXCHANGE – XCHG(73)1955-16-6 SINGLE WORD DISTRIBUTE – DIST(80)1955-16-7 DATA COLLECT – COLL(81)1975-16-8 MOVE BIT – MOVB(82)1995-16-9 MOVE DIGIT – MOVD(83)2005-16-10 TRANSFER BITS – XFRB(62)2015-16-11 EM BLOCK TRANSFER – XFR2(––)2025-16-12 EM BANK TRANSFER – BXF2(––)2035-17 Data Comparison2045-17-1 MULTI-WORD COMPARE – MCMP(19)2045-17-2 COMPARE – CMP(20)2055-17-3 DOUBLE COMPARE – CMPL(60)2085-17-4 BLOCK COMPARE – BCMP(68)2095-17-5 TABLE COMPARE – TCMP(85)2115-17-6 AREA RANGE COMPARE – ZCP(88)2125-17-7 DOUBLE AREA RANGE COMPARE – ZCPL(––)2135-17-8 SIGNED BINARY COMPARE – CPS(––)2145-17-9 DOUBLE SIGNED BINARY COMPARE – CPSL(––)2155-18 Data Conversion2165-18-1 BCD-TO-BINARY – BIN(23)2165-18-2 DOUBLE BCD-TO-DOUBLE BINARY – BINL(58)2175-18-3 BINARY-TO-BCD – BCD(24)2175-18-4 DOUBLE BINARY-TO-DOUBLE BCD – BCDL(59)2185-18-5 HOURS-TO-SECONDS – SEC(65)2195-18-6 SECONDS-TO-HOURS – HMS(66)2205-18-7 4-TO-16/8-TO-256 DECODER – MLPX(76)2215-18-8 16-TO-4/256-TO-8 ENCODER – DMPX(77)2245-18-9 7-SEGMENT DECODER – SDEC(78)2275-18-10 ASCII CONVERT – ASC(86)2305-18-11 ASCII-TO-HEXADECIMAL – HEX(––)2315-18-12 SCALING – SCL(––)2345-18-13 COLUMN TO LINE – LINE(63)2365-18-14 LINE TO COLUMN – COLM(64)2375-18-15 2’S COMPLEMENT – NEG(––)2385-18-16 DOUBLE 2’S COMPLEMENT – NEGL(––)2395-19 BCD Calculations2405-19-1 INCREMENT – INC(38)2405-19-2 DECREMENT – DEC(39)2405-19-3 SET CARRY – STC(40)2415-19-4 CLEAR CARRY – CLC(41)2415-19-5 BCD ADD – ADD(30)2415-19-6 DOUBLE BCD ADD – ADDL(54)2425-19-7 BCD SUBTRACT – SUB(31)2435-19-8 DOUBLE BCD SUBTRACT – SUBL(55)2455-19-9 BCD MULTIPLY – MUL(32)2475-19-10 DOUBLE BCD MULTIPLY – MULL(56)2485-19-11 BCD DIVIDE – DIV(33)2485-19-12 DOUBLE BCD DIVIDE – DIVL(57)2495-19-13 FLOATING POINT DIVIDE – FDIV(79)2505-19-14 SQUARE ROOT – ROOT(72)2535-20 Binary Calculations2555-20-1 BINARY ADD – ADB(50)2555-20-2 BINARY SUBTRACT – SBB(51)2575-20-3 BINARY MULTIPLY – MLB(52)2605-20-4 BINARY DIVIDE – DVB(53)2605-20-5 DOUBLE BINARY ADD – ADBL(––)2615-20-6 DOUBLE BINARY SUBTRACT – SBBL(––)2635-20-7 SIGNED BINARY MULTIPLY – MBS(––)2655-20-8 DOUBLE SIGNED BINARY MULTIPLY – MBSL(––)2665-20-9 SIGNED BINARY DIVIDE – DBS(––)2675-20-10 DOUBLE SIGNED BINARY DIVIDE – DBSL(––)2685-21 Special Math Instructions2695-21-1 FIND MAXIMUM – MAX(––)2695-21-2 FIND MINIMUM – MIN(––)2705-21-3 AVERAGE VALUE – AVG(––)2715-21-4 SUM – SUM(––)2735-21-5 ARITHMETIC PROCESS – APR(69)2755-21-6 PID CONTROL – PID(––)2785-22 Logic Instructions2875-22-1 COMPLEMENT – COM(29)2875-22-2 LOGICAL AND – ANDW(34)2885-22-3 LOGICAL OR – ORW(35)2895-22-4 EXCLUSIVE OR – XORW(36)2905-22-5 EXCLUSIVE NOR – XNRW(37)2915-23 Subroutines and Interrupt Control2915-23-1 Subroutines2915-23-2 Interrupts2925-23-3 SUBROUTINE ENTER – SBS(91)2955-23-4 SUBROUTINE DEFINE and RETURN – SBN(92)/RET(93)2965-23-5 MACRO – MCRO(99)2975-23-6 INTERRUPT CONTROL – INT(89)2995-24 Step Instructions3035-24-1 STEP DEFINE and STEP START–STEP(08)/SNXT(09)3035-25 Special Instructions3125-25-1 FAILURE ALARM – FAL(06) and SEVERE FAILURE ALARM – FALS(07)3125-25-2 CYCLE TIME – SCAN(18)3135-25-3 TRACE MEMORY SAMPLING – TRSM(45)3145-25-4 MESSAGE DISPLAY – MSG(46)3155-25-5 LONG MESSAGE – LMSG(47)3165-25-6 TERMINAL MODE – TERM(48)3175-25-7 WATCHDOG TIMER REFRESH – WDT(94)3185-25-8 I/O REFRESH – IORF(97)3185-25-9 GROUP-2 HIGH-DENSITY I/O REFRESH – MPRF(61)3195-25-10 BIT COUNTER – BCNT(67)3205-25-11 FRAME CHECKSUM – FCS(––)3205-25-12 FAILURE POINT DETECTION – FPD(––)3225-25-13 DATA SEARCH – SRCH(––)3265-25-14 EXPANSION DM READ – XDMR(––)3275-25-15 INDIRECT EM ADDRESSING – IEMS(––)3285-25-16 SELECT EM BANK – EMBC(––)3295-26 Network Instructions3305-26-1 NETWORK SEND – SEND(90)3305-26-2 NETWORK RECEIVE – RECV(98)3355-26-3 About Network Communications3395-27 Serial Communications Instructions3415-27-1 RECEIVE – RXD(––)3415-27-2 TRANSMIT – TXD(––)3435-27-3 CHANGE RS-232C SETUP – STUP(––)3455-27-4 PROTOCOL MACRO – PMCR(––)3475-28 Advanced I/O Instructions3485-28-1 7-SEGMENT DISPLAY OUTPUT – 7SEG(––)3485-28-2 DIGITAL SWITCH INPUT – DSW(––)3515-28-3 HEXADECIMAL KEY INPUT – HKY(––)3555-28-4 TEN KEY INPUT – TKY(––)3585-28-5 MATRIX INPUT – MTR(––)3605-29 Special I/O Unit Instructions3625-29-1 SPECIAL I/O UNIT READ – IORD(––)3625-29-2 SPECIAL I/O UNIT WRITE – IOWR(––)3635-29-3 PCMCIA CARD MACRO – CMCR(––)365SECTION 6 Program Execution Timing3706-1 Cycle Time3716-2 Calculating Cycle Time3756-2-1 PC with I/O Units Only3766-2-2 PC with Host Link and Remote I/O Master Units3766-3 Instruction Execution Times3786-4 I/O Response Time3876-4-1 Basic Systems3876-4-2 Remote I/O Systems3886-4-3 Host Link Systems3916-4-4 PC Link Systems3916-4-5 One-to-one Link I/O Response Time3946-4-6 Interrupt Response Times396SECTION 7 Program Monitoring and Execution3997-1 Monitoring Operation and Modifying Data4007-2 Programming Console Operations4007-2-1 Bit/Word Monitor4007-2-2 Forced Set/Reset4037-2-3 Forced Set/Reset Cancel4057-2-4 Hexadecimal/BCD Data Modification4067-2-5 Hex/ASCII Display Change4087-2-6 4-digit Hex/Decimal Display Change4097-2-7 8-digit Hex/Decimal Display Change4107-2-8 Differentiation Monitor4117-2-9 3-word Monitor4127-2-10 3-word Data Modification4127-2-11 Binary Monitor4137-2-12 Binary Data Modification4157-2-13 Changing Timer/Counter SV4167-2-14 Expansion Instruction Function Code Assignments4197-2-15 UM Area Allocation4207-2-16 Reading and Setting the Clock4217-2-17 Expansion Keyboard Mapping4217-2-18 Keyboard Mapping422SECTION 8 Serial Communications4268-1 Introduction4278-2 Host Link Communications4288-2-1 Host Link Command Summary4288-2-2 Host Link Communications4318-2-3 Example Programs4348-3 RS-232C Communications4358-3-1 Communications Frame Structure4368-3-2 Communications Procedure4368-3-3 Application Example4388-4 One-to-one PC Links4398-5 NT Links4418-6 The Protocol Macro Function4428-6-1 Introduction4428-6-2 Communications Board Settings4458-6-3 Communications Procedure4468-6-4 Application Example449SECTION 9 Troubleshooting4519-1 Alarm Indicators4529-2 Programmed Alarms and Error Messages4529-3 Reading and Clearing Errors and Messages4529-4 Error Messages4539-5 Error Flags4579-6 Host Link Errors458SECTION 10 Host Link Commands46010-1 Host Link Command Summary46110-2 Host Link End Codes46210-2-1 End Code Summary46210-2-2 Command/End Code Table46410-3 Host Link Commands46510-3-1 IR/SR AREA READ –– RR46510-3-2 LR AREA READ –– RL46610-3-3 HR AREA READ –– RH46710-3-4 PV READ –– RC46810-3-5 TC STATUS READ –– RG46910-3-6 DM AREA READ –– RD47010-3-7 AR AREA READ –– RJ47110-3-8 EM AREA READ –– RE47110-3-9 IR/SR AREA WRITE –– WR47210-3-10 LR AREA WRITE –– WL47310-3-11 HR AREA WRITE –– WH47410-3-12 PV WRITE –– WC47510-3-13 TC STATUS WRITE –– WG47610-3-14 DM AREA WRITE –– WD47710-3-15 AR AREA WRITE –– WJ47810-3-16 EM AREA WRITE –– WE47910-3-17 SV READ 1 –– R#48010-3-18 SV READ 2 –– R$48110-3-19 SV READ 3 –– R%48310-3-20 SV CHANGE 1 –– W#48410-3-21 SV CHANGE 2 –– W$48510-3-22 SV CHANGE 3 –– W%48710-3-23 STATUS READ –– MS48810-3-24 STATUS WRITE –– SC49010-3-25 ERROR READ –– MF49110-3-26 FORCED SET –– KS49210-3-27 FORCED RESET –– KR49310-3-28 MULTIPLE FORCED SET/RESET –– FK49510-3-29 FORCED SET/RESET CANCEL –– KC49610-3-30 PC MODEL READ –– MM49710-3-31 TEST–– TS49810-3-32 PROGRAM READ –– RP49910-3-33 PROGRAM WRITE –– WP50010-3-34 I/O TABLE GENERATE –– MI50110-3-35 COMPOUND COMMAND –– QQMR50210-3-36 COMPOUND COMMAND DATA READ –– QQIR50310-3-37 ABORT –– XZ50410-3-38 INITIALIZE ––50510-3-39 TXD RESPONSE –– EX50510-3-40 Undefined Command –– IC506Appendix507Appendix A Standard Models507Appendix B Programming Instructions522Appendix C Error and Arithmetic Flag Operation528Appendix D Word Assignment Recording Sheets532Appendix E Program Coding Sheet537Appendix F Data Conversion Tables539Appendix G Extended ASCII541Glossary542Index558Revision History564Taille: 3,1 MoPages: 564Language: EnglishOuvrir le manuel