Omron C200HX - Manuals
Omron C200HX – Manual in PDF format online.
Manuals:
Manual Omron C200HX
Summary
C200HX/C200HG/C200HE Programmable Controllers Operation Manual Revised June 2000
! ! ! v Notice: OMRON products are manufactured for use according to proper procedures by a qualified operatorand only for the purposes described in this manual. The following conventions are used to indicate and classify precautions in this manual. Always heedthe information provided with them. Fai...
TABLE OF CONTENTS vii PRECAUTIONS xiii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Intended Audience xiv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 General Precautions xiv . . . . . . . . . . . . . ....
TABLE OF CONTENTS viii 4-8 Controlling Bit Status 120 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9 Work Bits (Internal Relays) 122 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10 Pro...
TABLE OF CONTENTS ix SECTION 8Serial Communications 417 . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1 Introduction 418 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2 Host Link Communications 419 . . . . . . . . ...
xi About this Manual: This manual describes the operation of the C200HX/HG/HE Programmable Controllers, and it includesthe sections described below. Installation information is provided in the C200HX/HG/HE ProgrammableController Installation Guide. A table of other manuals that can be used in conjun...
xiii PRECAUTIONS This section provides general precautions for using the Programmable Controller (PC) and related devices. The information contained in this section is important for the safe and reliable application of the PC. You must readthis section and understand the information contained before...
! ! ! ! xiv 1 Intended Audience This manual is intended for the following personnel, who must also have knowl-edge of electrical systems (an electrical engineer or the equivalent). • Personnel in charge of installing FA systems. • Personnel in charge of designing FA systems. • Personnel in charge of...
! ! ! ! ! xv such problems, external safety measures must be provided to ensure safety inthe system. • When the 24-VDC output (service power supply to the PC) is overloaded orshort-circuited, the voltage may drop and result in the outputs being turnedOFF. As a countermeasure for such problems, exter...
! ! xvi • Connecting or disconnecting any cables or wiring. Caution Failure to abide by the following precautions could lead to faulty operation of thePC or the system or could damage the PC or PC Units. Always heed these pre-cautions. • Use the Units only with the power supplies and voltages specif...
xvii 6 Conformance to EC Directives Observe the following precautions when installing the C200HX/HG/HE PCs thatconform to the EC Directives. Provide reinforced insulation or double insulation for the DC power source con-nected to the DC I/O Unit and for the Power Supply Unit.Use a separate power sou...
2 1-1 Overview A PC (Programmable Controller) is basically a CPU (Central Processing Unit)containing a program and connected to input and output (I/O) devices. The pro-gram controls the PC so that when an input signal from an input device turns ON,the appropriate response is made. The response norma...
3 Actually there is not a total equivalence between these terms. The term condi-tion is only used to describe ladder diagram programs in general and is specifi-cally equivalent to one of a certain set of basic instructions. The terms input andoutput are not used in programming per se, except in refe...
4 1-4 OMRON Product Terminology OMRON products are divided into several functional groups that have genericnames. Appendix A Standard Models list products according to these groups.The term Unit is used to refer to all of the OMRON PC products. Although a Unitis any one of the building blocks that g...
5 7. Wire the PC to the controlled system. This step can actually be started as soon as step 3 has been completed. Refer to the C200HX/HG/HE PC Instal-lation Guide and to Operation Manuals and System Manuals for details onindividual Units. 8. Test the program in an actual control situation and carry...
6 PC programs can be written on-screen in ladder-diagram form as well as in mne-monic form. As the program is written, it is displayed on a display, making con-firmation and modification quick and easy. Syntax checks may also be per-formed on the programs before they are downloaded to the PC.The SSS...
8 Function Capability Function C200HS C200HX/HG/HE CPU Unitfunctions RS-232C port Available in theC200HX/HG/HE-CPU4 -E/6 -E Available in theC200HS-CPU2 -E /3 -E Clock function Available in all except the C200HE-CPU11-E Available in all models SYSMAC NET Link andSYSMAC LINK functions Communications B...
9 • If the C200H program accesses the C200H’s error log in DM 0969 to DM 0999,the addresses of the words being accessed must be changed to DM 6000 toDM 6030, which is the error log area for the C200HX/HG/HE. • Any programs that rely on the execution cycle time (i.e., on the time required toexecute a...
12 2-1 CPU Unit Components The following diagram shows the main CPU Unit components. Communications Board(The C200HW-COM06-Eis mounted to this CPUUnit.) Indicators Memory Cassette DIP switch Peripheral port RS-232C port Memory Cassette The CPU Unit has a compartment to connect the Memory Cassette to...
15 2-2 PC Configuration The basic PC configuration consists of two types of Rack: a CPU Rack and Ex-pansion I/O Racks. The Expansion I/O Racks are not a required part of the basicsystem. They are used to increase the number of I/O points. An illustration ofthese Racks is provided in 3-3 IR Area. A t...
16 2-4 Memory Cassettes The C200HX/HG/HE comes equipped with a built-in RAM for the user’s pro-gram, so a normal program be created even without installing a Memory Cas-sette. An optional Memory Cassette can be used to store the program, PC Set-up, I/O comments, DM area and other data area contents....
17 2-4-1 Hardware and Software Settings The hardware and software settings related to Memory Cassette operations aredescribed below. Switch Settings Switch 1 on the Memory Cassette is turned OFF when the Memory Cassette isshipped. Check the setting on switch 1 before installation. Memory Cassette Sw...
18 Use the following procedure to the UM data on an Memory Cassette to the UMdata in the PC. 1, 2, 3... 1. Switch the C200HX/HG/HE to PROGRAM mode. 2. Use a host computer running SSS or a Programming Console to turn ON SR 27002 (the Compare UM to Cassette Bit). The data will be compared be-tween the...
20 2-5 CPU Unit DIP Switch The 6 pins on the DIP switch control 6 of the CPU Unit’s operating parameters. Pin Item Setting Function 1 Memory protect ON The UM area 1 cannot be overwritten from a Peripheral Device. OFF The UM area 1 can be overwritten from a Peripheral Device. 2 Automatic transfer of...
21 2-6 Operating without a Backup Battery An EEPROM or EPROM Memory Cassette can be used together with variousmemory settings to enable operation without a backup battery. The followingconditions must be met. 1, 2, 3... 1. The user program must be written to an EPROM or EEPROM Memory Cas- sette. 2. ...
22 1, 2, 3... 1. Allocate UM area using the SYSMAC Support Software (SSS) if you want to use Expansion DM for Special I/O Units or if you want to store I/O commentsin the PC. 2. Write and transfer the user program, including a line using the Always OFF Flag (SR 25314) to ensure that the Output OFF B...
24 3-1 Introduction 3-1-1 Data Area Overview Details, including the name, size, and range of each area are summarized in thefollowing table. Data and memory areas are normally referred to by their acro-nyms, e.g., the IR Area, the SR Area, etc. Area Size Range Comments Internal Relay Area 1 3,776 bi...
25 some flags can be turned ON and OFF by the user, most flags are read only; theycannot be controlled directly. Control bits are bits turned ON and OFF by the user to control specific aspects ofoperation. Any bit given a name using the word bit rather than the word flag is acontrol bit, e.g., Resta...
26 An actual data location within any data area but the TC area is designated by itsaddress. The address designates the bit or word within the area where the de-sired data is located. The TC area consists of TC numbers, each of which is usedfor a specific timer or counter defined in the program. Ref...
27 When inputting data into data areas, it must be input in the proper form for theintended purpose. This is no problem when designating individual bits, whichare merely turned ON (equivalent to a binary value of 1) or OFF (a binary value of0). When inputting word data, however, it is important to i...
28 Signed Binary Signed binary data can have either a positive and negative value. The sign is indicated by the status of bit 15. If bit 15 is OFF, the number is positive and if bit 15 is ON, the number is negative. Positive signed binary values range from 0 ($0000) to 32,767 ($7FFF), and negative s...
29 Bit number Contents 0 0 1 1 0 0 0 0 0 0 1 1 1 0 0 1 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 1. First take the absolute value (12345) and convert to unsigned binary: Bit number Contents 1 1 0 0 1 1 1 1 1 1 0 0 0 1 1 0 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 2. Next take the complem...
30 instructions that control bit status, e.g., the OUTPUT, DIFFERENTIATION UP,and KEEP instructions. Output Bit Usage Output bits are used to output program execution results and can be used in anyorder in programming. Because outputs are refreshed only once during eachcycle (i.e., once each time th...
31 Unit number PC Restrictions I/O words A IR 400 to IR 409 Not available in C200HE-CPU -E and B IR 410 to IR 419 C200HG/HX-CPU3 -E/4 -E PCs. C IR 420 to IR 429 D IR 430 to IR 439 E IR 440 to IR 449 F IR 450 to IR 459 Note I/O words that aren’t allocated to Special I/O Units can be used as work word...
32 Group-2 High-density I/O Units and B7A Interface Units are allocated words be-tween IR 030 and IR 049 according to I/O number settings made on them and donot use the words allocated to the slots in which they are mounted. For 32-pointUnits, each Unit is allocated two words; for 64-point Units, ea...
34 Word(s) Function Bit(s) 252 00 SEND(90)/RECV(98) Error Flag for operating level 0 of SYSMAC LINK or SYSMAC NETLink System or CMCR(––) Error Flag for PC Card 01 SEND(90)/RECV(98) Enable Flag for operating level 0 of SYSMAC LINK or SYSMAC NETLink System or CMCR(––) Enable Flag for PC Card 02 Operat...
39 Data Link Status Flags SR 238 to SR 245 contain the data link status for SYSMAC LINK/SYSMAC NETSystems. The data structure depends on the system used to create the data link. SYSMAC LINK Operating Operating Bit level 0 level 1 12 to 15 11 to 08 04 to 07 00 to 03 SR 238 SR 242 Node 4 Node 3 Node 2...
40 3-4-3 Link System Flags and Control Bits Use of the following SR bits depends on the configuration of any Link Systems towhich your PC belongs. These flags and control bits are used when Link Units,such as PC Link Units, Remote I/O Units, or Host Link Units, are mounted to thePC Racks or to the C...
41 Flag type Bit no. SR 247 SR 248 SR 249 SR 250 Run flags 00 Unit #8,level 1 Unit #0,level 1 Unit #8,level 0 Unit #0,level 0 01 Unit #9,level 1 Unit #1,level 1 Unit #9,level 0 Unit #1,level 0 02 Unit #10,level 1 Unit #2,level 1 Unit #10,level 0 Unit #2,level 0 03 Unit #11,level 1 Unit #3,level 1 Un...
45 Negative Flag, N SR bit 25402 turns ON when the result of a calculation is negative. Overflow Flag, OF SR bit 25404 turns ON when the result of a binary addition or subtraction ex-ceeds 7FFF or 7FFFFFFF. Underflow Flag, UF SR bit 25405 turns ON when the result of a signed binary addition or subtr...
46 SR bit 26705 turns ON when the PC is ready to transmit to the Host Link Unit. SR bit 26713 turns ON when the PC is ready to transmit to the Host Link. 3-4-20 Peripheral Port Communications Areas Peripheral Port Error Code SR bits 26408 to 26411 are set when there is a peripheral port error in the...
47 Memory Cassette Flag SR bit 26915 turns ON when a Memory Cassette is mounted. Save UM to Cassette Flag SR bit 27000 turns ON when UM data is read to a Memory Cassette in ProgramMode. Bit will automatically turn OFF. An error will be produced if turned ON inany other mode. SR bit 27001 turns ON wh...
49 uses, such as transmission counters, flags, and control bits, and words AR 00through AR 07 and AR 23 through AR 27 cannot be used for any other purpose.Words and bits from AR 08 to AR 17 are available as work words and work bits ifnot used for the following assigned purposes. Word Use AR 08 to AR...
51 3-5-2 Slave Rack Error Flags AR bits 0200 to AR 0204 correspond to the unit numbers of Remote I/O SlaveUnits #0 to #4. These flags will turn ON if the same number is allocated to morethen one Slave or if a transmission error occurs when starting the System. Referto SR 251 for errors that occur af...
52 3-5-5 SYSMAC LINK System Data Link Settings AR 0700 to AR 0703 and AR 0704 to AR 0707 are used to designate word alloca-tions for operating levels 0 and 1 of the SYSMAC LINK System. Allocation canbe set to occur either according to settings from the SSS or automatically in theLR and/or DM areas. ...
53 3-5-8 SYSMAC LINK/SYSMAC NET Link System Service Time AR 16 provides the time allocated to servicing operating level 0 of the SYSMACLINK System and/or SYSMAC NET Link System during each cycle when a SYS-MAC LINK Unit and/or SYSMAC NET Link Unit is mounted to a Rack. AR 17 provides the time alloca...
54 3-5-10 TERMINAL Mode Key Bits If the Programming Console is mounted to the PC and is in TERMINAL mode,any inputs on keys 0 through 9 (including characters A through F, i.e., keys 0through 5 with SHIFT) will turn on a corresponding bit in AR 22. TERMINALmode is entered by a Programming Console ope...
55 3-5-13 Cycle Time Flag AR 2405 turns ON when the cycle time set with SCAN(18) is shorter than theactual cycle time. AR 2405 is refreshed every cycle while the PC is in RUN or MONITOR mode. 3-5-14 Link Unit Mounted Flags The following flags indicate when the specified Link Units are mounted to the...
57 be used as the operand in the instruction, and the content of DM 0324 will bemoved to LR 00. MOV(21) DM 0100 LR 00 Word Content DM 0099 4C59 DM 0100 0324 DM 0101 F35A DM 0324 5555 DM 0325 2506 DM 0326 D541 5555 moved to LR 00. Indicates DM 0324 Indirect address 3-6-1 Expansion DM Area The expansi...
58 3-6-2 Special I/O Unit Data Special I/O Units are allocated 1000 or 1600 words in the DM Area depending onthe value set in word DM 6602 of the PC Setup. The DM 6602 setting determineswhether the Special I/O Unit Data area is setup for 10 or 16 Units and whetherthe data is stored in read/write DM ...
59 Although each of them contains a different record, the structure of each record isthe same: the first word contains the error code; the second and third words, theday and time. The error code will be either one generated by the system or byFAL(06)/FALS(07); the time and date will be the date and ...
68 Setting Function Mode 11 C200H-compatibleROM Mode 2 The contents of DM 7000 through DM 8599 are transferred to DM 1000 through DM 2599at startup and DM 1000 through DM 2599 are used for the Special I/O Unit Area. • The UM Area Allocation operation must be performed beforehand. • ROM conversion is...
69 Once defined, a TC number can be designated as an operand in one or more ofcertain set of instructions other than those listed above. When defined as a timer,a TC number designated as an operand takes a TIM prefix. The TIM prefix isused regardless of the timer instruction that was used to define ...
70 3-10 UM Area With the C200HX/HG/HE PCs, the UM area contains the ladder program. Part ofthe UM area can be allocated for use as expansion DM or the I/O comment area.The usable size of the UM area ranges from 3.2 KW in the C200HE-CPU11-E to31.2 KW in the C200HX-CPU 4-E. A Programming Console or SY...
71 3-11 TR (Temporary Relay) Area The TR area provides eight bits that are used only with the LD and OUT instruc-tions to enable certain types of branching ladder diagram programming. The useof TR bits is described in Section 4 Writing and Inputting the Program. TR addresses range from TR 0 though T...
74 4-1 Basic Procedure There are several basic steps involved in writing a program. Sheets that can becopied to aid in programming are provided in Appendix F Word Assignment Re-cording Sheets and Appendix G Program Coding Sheet. 1, 2, 3... 1. Obtain a list of all I/O devices and the I/O points that ...
75 4-3 Program Capacity The maximum user program size varies with the amount of UM allocated to ex-pansion DM and the I/O Comment Area. Approximately 10.1 KW are availablefor the ladder program when 3 KW are allocated to expansion DM and 2 KW areallocated to I/O comments as shown below. Refer to the...
76 4-4-1 Basic Terms Each condition in a ladder diagram is either ON or OFF depending on the statusof the operand bit that has been assigned to it. A normally open condition is ON ifthe operand bit is ON; OFF if the operand bit is OFF. A normally closed conditionis ON if the operand bit is OFF; OFF ...
78 LOAD and LOAD NOT The first condition that starts any logic block within a ladder diagram corre-sponds to a LOAD or LOAD NOT instruction. Each of these instruction requiresone line of mnemonic code. “Instruction” is used as a dummy instruction in thefollowing examples and could be any of the righ...
79 OR and OR NOT When two or more conditions lie on separate instruction lines which run in paral-lel and then join together, the first condition corresponds to a LOAD or LOADNOT instruction; the other conditions correspond to OR or OR NOT instructions.The following example shows three conditions wh...
81 Now you have all of the instructions required to write simple input-output pro-grams. Before we finish with ladder diagram basic and go onto inputting the pro-gram into the PC, let’s look at logic block instruction (AND LOAD and OR LOAD),which are sometimes necessary even with simple diagrams. 4-...
82 Analyzing the above ladder diagram in terms of mnemonic instructions, thecondition for IR 00000 is a LOAD instruction and the condition below it is an ORinstruction between the status of IR 00000 and that of IR 00001. The condition atIR 00002 is another LOAD instruction and the condition below is...
85 Complicated Diagrams When determining what logic block instructions will be required to code a dia-gram, it is sometimes necessary to break the diagram into large blocks and thencontinue breaking the large blocks down until logic blocks that can be codedwithout logic block instructions have been ...
88 4-4-7 Coding Multiple Right-hand Instructions If there is more than one right-hand instruction executed with the same execu-tion condition, they are coded consecutively following the last condition on theinstruction line. In the following example, the last instruction line contains onemore condit...
89 Yellow: Operation Keys The yellow keys are used for writing and correcting programs. Detailed explana-tions of their functions are given later in this section. Except for the SHIFT key on the upper right, the gray keys are used to inputinstructions and designate data area prefixes when inputting ...
! ! 91 4-5-2 PC Modes The Programming Console is equipped with a switch to control the PC mode. Toselect one of the three operating modes—RUN, MONITOR, or PROGRAM—use the mode switch. The mode that you select will determine PC operation aswell as the procedures that are possible from the Programming...
93 4-6-3 Clearing Memory Using the Memory Clear operation it is possible to clear all or part of the UM area(RAM or EEPROM), and the IR, HR, AR, DM, EM and TC areas. Unless other-wise specified, the clear operation will clear all of the above memory areas. TheUM area will not be cleared if the write...
94 The following procedure is used to clear memory completely. Continue pressingthe CLR key once foreach error messageuntil “00000” appearson the display All clear MEMORY ERR I/O VER ERR 00000 00000MEMORY CLR? HR CNT DM EM~ 00000MEM ALLCLR? 00000 00000MEM ALLCLREND Partial Clear It is possible to re...
95 To leave the TC area uncleared and retain Program Memory addresses 00000through 00122, input as follows: 00000 00000 00000 00000MEMORY CLR? HR CNT DM EM~ 00000MEMORY CLR? HR DM EM~ 00123MEMORY CLR? HR DM EM~ 00000MEMORY CLR END HR DM EM Clearing Selected EM Banks When a partial memory clear opera...
96 Memory Clear The memory clear operation clears all memory areas except the I/O commentsand UM Allocation information. The Programming Console will display the following screens: 00000 00000 00000 00000MEMORY CLR? HR CNT DM EM~ 00000MEMORY CLR END Note When the write-protect switch (pin 1 of the C...
98 Example (No errors) (A verification error occurred) Actual I/O words Registered I/O table words I/O slot number Rack number 00000 00000FUN (??) 00000IOTBL ? ?Ć?U= 00000IOTBL CHK OK 00000IOTBL CHK 0Ć1U=O*** I*** Meaning of Displays The following display indicates a C500, C1000H, or C2000H and C200...
100 Meaning of Displays I/O Unit Designations for Displays(see I/O Units Mounted in Remote Slave Racks, page 101) No. of points 16 32 64 Input Unit Output Unit C500, 1000H/C2000H I/O Units No. of points 8 16 Input Unit Output Unit O O O O O O * * O * * * I * * *I I * *I I I I i(*)* *i i * * o o * * ...
101 I/O word number I/O type: I, O i, o (see tables on previous page) Unit number (0 to 9) Remote I/O Slave Unit number (0 to 4) Remote I/O Master Unit number (0 or 1) Indicates a Remote I/O Rack 00000IOTBL READR**Ć*U=**** *** Unit number (0 to F) Indicates Group-2 HIgh-density I/O Unit 00000IOTBL R...
102 Key Sequence 00000 00000FUN (??) 00000IOTBL ?Ć?U= 00000IOTBL CANC ???? 00000IOTBL CANC 9713 00000IOTBL CANCOK 00000IOTBL WRIT ???? 4-6-9 SYSMAC NET Link Table Transfer The SYSMAC NET Link Table Transfer operation transfers a copy of the SYS-MAC NET Link Data Link table to the UM Area program mem...
104 4-7 Inputting, Modifying, and Checking the Program Once a program is written in mnemonic code, it can be input directly into the PCfrom a Programming Console. Mnemonic code is keyed into Program Memoryaddresses from the Programming Console. Checking the program involves asyntax check to see that...
105 If the following mnemonic code has already been input into Program Memory,the key inputs below would produce the displays shown. 00000 00200 00200READ OFF LD 00000 00201READ ON AND 00001 00202READ OFF TIM 000 00202 TIM #0123 00203READ ON LD 00100 Address Instruction Operands 00200 LD 00000 00201...
108 Error Messages The following error messages may appear when inputting a program. Correctthe error as indicated and continue with the input operation. The asterisks in thedisplays shown below will be replaced with numeric data, normally an address,in the actual display. Message Cause and correcti...
110 Example The following example shows some of the displays that can appear as a result ofa program check. Display #2 Display #3 Halts program check Check continues until END(01) When errors are found Display #1 00699CHK ABORTD 02000PROG CHK END (01)(02.7KW) 00178CIRCUIT ERR OUT 00200 00200ILĆILC E...
112 00000 00000 LD 00000 00200SRCH LD 00000 00202SRCH LD 00000 02000SRCH END (01)(02.7KW) 00000 00100 00100 TIM 001 00203SRCH TIM 001 00203 TIM DATA #0123 00000 00000CNT CONT 00005 00200CONT SRCH LD 00005 00203CONT SRCH AND 00005 02000 END (01)(02.7K) 4-7-6 Inserting and Deleting Instructions In PRO...
! 113 To delete an instruction, display the instruction word of the instruction to bedeleted and then press DEL and the up key. All the words for the designatedinstruction will be deleted. Caution Be careful not to inadvertently delete instructions; there is no way to recoverthem without re-inputtin...
114 Find the addressprior to the inser-tion point Insert theinstruction Program After Insertion Inserting an Instruction 00000 00000 OUT 00000 00000 OUT 00201 00207SRCH OUT 00201 00206READ AND NOT 00104 00206 AND 00000 00206 AND 00105 00206INSERT? AND 00105 00207INSERT END AND NOT 00104 00206READ AN...
115 4-7-7 Branching Instruction Lines When an instruction line branches into two or more lines, it is sometimes neces-sary to use either interlocks or TR bits to maintain the execution condition thatexisted at a branching point. This is because instruction lines are executedacross to a right-hand in...
116 The previous diagram B can be written as shown below to ensure correct execu-tion. In mnemonic code, the execution condition is stored at the branching pointusing the TR bit as the operand of the OUTPUT instruction. This executioncondition is then restored after executing the right-hand instruct...
117 When drawing a ladder diagram, be careful not to use TR bits unless necessary.Often the number of instructions required for a program can be reduced andease of understanding a program increased by redrawing a diagram that wouldotherwise required TR bits. In both of the following pairs of diagram...
119 If IR 00000 in the above diagram is OFF (i.e., if the execution condition for thefirst INTERLOCK instruction is OFF), instructions 1 through 4 would beexecuted with OFF execution conditions and execution would move to theinstruction following the INTERLOCK CLEAR instruction. If IR 00000 is ON, t...
120 The other type of jump is created with a jump number of 00. As many jumps asdesired can be created using jump number 00 and JUMP instructions using 00can be used consecutively without a JUMP END using 00 between them. It iseven possible for all JUMP 00 instructions to move program execution to t...
121 4-8-1 DIFFERENTIATE UP and DIFFERENTIATE DOWN DIFFERENTIATE UP and DIFFERENTIATE DOWN instructions are used toturn the operand bit ON for one cycle at a time. The DIFFERENTIATE UPinstruction turns ON the operand bit for one cycle after the execution conditionfor it goes from OFF to ON; the DIFFE...
122 To create a self-maintaining bit, the operand bit of an OUTPUT instruction isused as a condition for the same OUTPUT instruction in an OR setup so that theoperand bit of the OUTPUT instruction will remain ON or OFF until changesoccur in other bits. At least one other condition is used just befor...
123 Work bits can be used to simplify programming when a certain combination ofconditions is repeatedly used in combination with other conditions. In the follow-ing example, IR 00000, IR 00001, IR 00002, and IR 00003 are combined in alogic block that stores the resulting execution condition as the s...
124 This action is easily programmed by using IR 22500 as a work bit as the operandof the DIFFERENTIATE UP instruction (DIFU(13)). When IR 00000 turns ON, IR22500 will be turned ON for one cycle and then be turned OFF the next cycle byDIFU(13). Assuming the other conditions controlling IR 00100 are ...
126 4-11 Program Execution When program execution is started, the CPU Unit cycles the program from top tobottom, checking all conditions and executing all instructions accordingly as itmoves down the bus bar. It is important that instructions be placed in the properorder so that, for example, the de...
127 4-12-2 Special I/O Unit Error Processing Program Use a program like the one shown below to restart a Special I/O Unit in which anerror has occurred. This example program restarts Unit 1. Disablescalculationsduring Ini-tialization. DIFU(13) AR0101 JMP(04) 00 JME(05) 00 AR 0001(Unit #0 Error Flag)...
130 The following program example is relevant for Special I/O Units mounted to theCPU Rack or Expansion I/O Racks only, because END refreshing is always per-formed on Special I/O Units mounted to Slave Racks regardless of the PC Setupsettings. 30000 30001 30002 30003 30000 30001 30000 30001 30002 30...
131 Refer to the Analog Timer Unit’s Operation Manual for details on switchingbetween internal and external timer SV settings, connecting a variable resistor,and switch settings. Bits 08 to 11 of n Timer Start Input Completion Flags Timer SetBits(Bits 00 to03 of n) Time-upOutput Timer Start Input Ti...
132 4-13-3 Example Program The following table shows the word allocations for the Units in this example. Item Word IR word allocated to the Analog Timer Unit IR 002 IR word allocated to the Input Unit IR 000 IR word allocated to the Output Unit IR 005 The Analog Timer Unit’s SV settings and external...
133 The following diagram shows the switch settings and wiring connectionsrequired to achieve the Unit configuration shown above. The settings on these two variable resistor controls are validbecause timers 0 and 1 are set for internal SV settings.Use the screwdriver included with the Unit to set th...
134 The following diagram shows the example ladder program. 1, 2, 3... 1. Output IR 00500 will go ON about 0.6 s (T0) after input IR 00002 goes ON. 2. Output IR 00501 will go ON about 3 s (T1) after input IR 00003 goes ON. 3. Output IR 00502 will go ON about 20 s (T2) after input IR 00004 goes ON an...
! 139 Caution The IR and SR areas are considered as separate data areas. If an operand hasaccess to one area, it doesn’t necessarily mean that the same operand will haveaccess to the other area. The border between the IR and SR areas can, howev-er, be crossed for a single operand, i.e., the last bit...
140 5-4 Differentiated Instructions Most instructions are provided in both differentiated and non-differentiatedforms. Differentiated instructions are distinguished by an @ in front of theinstruction mnemonic. A non-differentiated instruction is executed each time it is cycled as long as itsexecutio...
141 5-5 Expansion Instructions The C200HX/HG/HE PCs have more instructions that require function codes(121) than function codes (100), so some instructions do not have fixed functioncodes. These instructions, called expansion instructions, are listed in the follow-ing table. Default function codes a...
142 Code Page Name Mnemonic --- (@)MIN FIND MINIMUM 258 --- MTR MATRIX INPUT 348 --- (@)NEG 2’S COMPLEMENT 226 --- (@)NEGL DOUBLE 2’S COMPLEMENT 227 --- PID PID CONTROL 266 --- (@)PMCR PROTOCOL MACRO 335 --- (@)RXD RECEIVE 329 --- (@)SBBL DOUBLE BINARY SUBTRACT 251 --- (@)SCL SCALING 222 --- (@)SRCH...
144 Multiple Instruction Lines If a right-hand instruction requires multiple instruction lines (such as KEEP(11)),all of the lines for the instruction are entered before the right-hand instruction.Each of the lines for the instruction is coded, starting with LD or LD NOT, to form‘logic blocks’ that ...
Instruction Set Lists Section 5-7 145 5-7 Instruction Set Lists This section provides tables of the instructions available in the C200HX/HG/HE.The first table can be used to find instructions by function code. The second tablecan be used to find instruction by mnemonic. In both tables, the @ symbol ...
149 5-8 Ladder Diagram Instructions Ladder Diagram instructions include Ladder instructions and Logic Blockinstructions and correspond to the conditions on the ladder diagram. Logic blockinstructions are used to relate more complex parts. 5-8-1 LOAD, LOAD NOT, AND, AND NOT, OR, and OR NOT B: Bit IR,...
150 5-8-2 AND LOAD and OR LOAD Ladder Symbol AND LOAD – AND LD 00002 00003 00000 00001 Ladder Symbol OR LOAD – OR LD 00000 00001 00002 00003 Description When instructions are combined into blocks that cannot be logically combinedusing only OR and AND operations, AND LD and OR LD are used. WhereasAND...
154 5-9-4 KEEP – KEEP(11) B: Bit IR, AR, HR, LR Ladder Symbol Operand Data Areas S R KEEP(11) B Limitations Any output bit can generally be used in only one instruction that controls its sta-tus. Refer to 3-3 IR Area for details. Description KEEP(11) is used to maintain the status of the designated ...
155 the input device) can cause the designated bit of KEEP(11) to be reset. This situ-ation is shown below. A Input Unit A NEVER S R KEEP(11) B Bits used in KEEP are not reset in interlocks. Refer to the 5-10 INTERLOCK –and INTERLOCK CLEAR IL(02) and ILC(03) for details. Example If a HR bit or an AR...
157 Example The following diagram shows IL(02) being used twice with one ILC(03). Address Instruction Operands 00000 LD 00000 00001 IL(02) 00002 LD 00001 00003 TIM 511 # 0015 00004 LD 00002 00005 IL(02) 00006 LD 00003 00007 AND NOT 00004 00008 LD 00100 00009 CNT 001 010 00010 LD 00005 00011 OUT 0050...
158 If the jump number for JMP(04) is 00, the CPU Unit will look for the next JME(05)with a jump number of 00. To do so, it must search through the program, causinga longer cycle time (when the execution condition is OFF) than for other jumps.The status of timers, counters, bits used in OUT, bits us...
159 Any one TC number cannot be defined twice, i.e., once it has been used as thedefiner in any of the timer or counter instructions, it cannot be used again. Oncedefined, TC numbers can be used as many times as required as operands ininstructions other than timer and counter instructions. TC number...
160 If the execution condition remains ON long enough for TIM to time down to zero,the Completion Flag for the TC number used will turn ON and will remain ONuntil TIM is reset (i.e., until its execution condition is goes OFF). The following figure illustrates the relationship between the execution c...
163 The following one-shot timer may be used to save memory. 00000 TIM 001 00100 00100 001.5 s TIM 001 #0015 Address Instruction Operands 00000 LD 00000 00001 OR 00100 00002 TIM 001 # 0015 00003 AND NOT TIM 001 00004 OUT 00100 Bits can be programmed to turn ON and OFF at regular intervals while a de...
165 5-14-3 TOTALIZING TIMER – TTIM(87) SV: Set value (word, BCD) IR, AR, DM, HR, LR RB: Reset bit IR, SR, AR, HR, LR Ladder Symbol Operand Data Areas TTIM(87) N SV RB N: TC number # (000 through 511) Definer Values Limitations SV is between 0000 and 9999 (000.0 and 999.9 s) and must be in BCD. The d...
171 5-15 Data Shifting All of the instructions described in this section are used to shift data, but in differ-ing amounts and directions. The first shift instruction, SFT(10), shifts an execu-tion condition into a shift register; the rest of the instructions shift data that is al-ready in memory. 5...
174 Description SFTR(84) is used to create a single- or multiple-word shift register that can shiftdata to either the right or the left. To create a single-word register, designate thesame word for St and E. The control word provides the shift direction, the statusto be put into the register, the sh...
177 5-15-7 ONE DIGIT SHIFT LEFT – SLD(74) Ladder Symbols Operand Data Areas SLD(74) St E @SLD(74) St E St: Starting word IR, SR, AR, DM, HR, LR E: End word IR, SR, AR, DM, HR, LR Limitations St and E must be in the same data area, and St must be less than or equal to E. Description When the executio...
179 Description When the execution condition is OFF, ASFT(17) does nothing and the programmoves to the next instruction. When the execution condition is ON, ASFT(17) isused to create and control a reversible asynchronous word shift register be-tween St and E. This register only shifts words when the...
180 5-16 Data Movement This section describes the instructions used for moving data between differentaddresses in data areas. These movements can be programmed to be withinthe same data area or between different data areas. Data movement is essentialfor utilizing all of the data areas of the PC. Eff...
181 Precautions TC numbers cannot be designated as D to change the PV of the timer or counter.However, these can be easily changed using BSET(71). Flags ER: Indirectly addressed DM word is non-existent. (Content of DM word is not BCD, or the DM area boundary has been exceeded.) EQ: ON when all zeros...
182 Example The following example shows how to use BSET(71) to change the PV of a timerdepending on the status of IR 00003 and IR 00004. When IR 00003 is ON, TIM010 will operate as a 50-second timer; when IR 00004 is ON, TIM 010 will oper-ate as a 30-second timer. TIM 010 #9999 @BSET(71) #0500 TIM 0...
183 Flags ER: N is not BCD between 0000 and 2000. S and S+N or D and D+N are not in the same data area. Indirectly addressed DM word is non-existent. (Content of DM word is not BCD, or the DM area boundary has been exceeded.) 5-16-5 DATA EXCHANGE – XCHG(73) E1: Exchange word 1 IR, SR, AR, DM, HR, TC...
184 When the execution condition is OFF, DIST(80) is not executed. When theexecution condition is ON, DIST(80) operates a stack from DBs toDBs+C–9000. DBs is the stack pointer, so S is copied to the word indicated byDBs and DBs is incremented by 1. The Negative Flag also changes. Specifies the stack...
185 5-16-7 DATA COLLECT – COLL(81) SBs: Source base word IR, SR, AR, DM, HR, TC, LR C: Offset data (BCD) IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas D: Destination word IR, SR, AR, DM, HR, TC, LR COLL(81) SBs C D @COLL(81) SBs C D Limitations C must be a BCD. If C ≤ 6655, SBs mus...
188 Description When the execution condition is OFF, MOVB(82) is not executed. When theexecution condition is ON, MOVB(82) copies the specified bit of S to the speci-fied bit in D. The bits in S and D are specified by Bi. The rightmost two digits of Bidesignate the source bit; the leftmost two bits ...
189 Digit Designator The following show examples of the data movements for various values of Di. 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 S Di: 0031 Di: 0023 Di: 0030 Di: 0010 S S S 0 1 2 3 D 0 1 2 3 D 0 1 2 3 D 0 1 2 3 D Flags ER: At least one of the rightmost three digits of Di is not between 0 and 3. Indi...
190 Example In the following example, XFRB(62) is used to transfer 5 bits from IR 020 toLR 21 when IR 00001 is ON. The starting bit in IR 020 is 0, and the starting bit inLR 21 is 4, so IR 02000 to IR 02004 are copied to LR 2104 to LR 2108. XFRB(62) #0540 IR 020 LR 21 00001 Address Instruction Opera...
191 Example The following example copies the contents of the 300 words from DM 0000through DM 0299 to EM 2000 through EM 2299 in the current EM bank. XFR2(––) #0300 DM 0000 #2000 00000 Address Instruction Operands 00200 LD 00000 00201 XFR2(––) # 0300 DM 0000 # 2000 5-16-12 EM BANK TRANSFER – BXF2(––...
192 Example The following example copies the contents of the 300 words from DM 0000through DM 0299 to EM 2000 through EM 2299 in the EM bank 01.(EM bank 00 isn’t used as the source because S isn’t a constant.) BXF2(––) DM 1000 DM 0000 #2000 00000 Address Instruction Operands 00200 LD 00000 00201 BXF...
193 Example The following example shows the comparisons made and the results providedfor MCMP(19). Here, the comparison is made during each cycle when 00000 isON. IR 100 0100 DM 0200 0100 DM 030000 0 IR 101 0200 DM 0201 0200 DM 030001 0 IR 102 0210 DM 0202 0210 DM 030002 0 IR 103 ABCD DM 0203 0400 D...
194 Flags ER: Indirectly addressed DM word is non-existent. (Content of DM word is not BCD, or the DM area boundary has been exceeded.) EQ: ON if Cp1 equals Cp2. LE: ON if Cp1 is less than Cp2. GR: ON if Cp1 is greater than Cp2. Flag Address C1 < C2 C1 = C2 C1 > C2 GR 25505 OFF OFF ON EQ 25506...
197 The following example shows how to save the comparison result immediately. Ifthe content of HR 10, HR 09 is greater than that of 011, 010, then 00200 is turnedON; if the two contents are equal, 00201 is turned ON; if content of HR 10, HR 09is less than that of 011, 010, then 00202 is turned ON. ...
199 Example The following example shows the comparisons made and the results providedfor BCMP(68). Here, the comparison is made during each cycle when 00000 isON. CD 001 Lower limits Upper limits R: HR 05 001 0210 HR 10 0000 HR 11 0100 HR 0500 0 HR 12 0101 HR 13 0200 HR 0501 0 HR 14 0201 HR 15 0300 ...
200 Example The following example shows the comparisons made and the results providedfor TCMP(85). Here, the comparison is made during each cycle when 00000 isON. CD: 001 Upper limits R: HR 05 001 0210 HR 10 0100 HR 0500 0 HR 11 0200 HR 0501 0 HR 12 0210 HR 0502 1 HR 13 0400 HR 0503 0 HR 14 0500 HR ...
204 5-18 Data Conversion The conversion instructions convert word data that is in one format into anotherformat and output the converted data to specified result word(s). Conversionsare available to convert between binary (hexadecimal) and BCD, to 7-segmentdisplay data, to ASCII, and between multipl...
209 5-18-7 4-TO-16/8-TO-256 DECODER – MLPX(76) S: Source word IR, SR, AR, DM, HR, TC, LR C: Control word IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas R: First result word IR, SR, AR, DM, HR, LR MLPX(76) S C R @MLPX(76) S C R Limitations When the leftmost digit of C is 0, the right...
210 Some example C values and the digit-to-word conversions that they produceare shown below. 0 1 2 3 R R + 1 R R + 1 R + 2 0 1 2 3 0 1 2 3 0 1 2 3 R R + 1 R + 2 R + 3 R R + 1 R + 2 R + 3 S C: 0031 C: 0023 C: 0030 C: 0010 S S S The following is an example of a one-digit decode operation from digit n...
211 The 4 possible C values and the conversions that they produce are shown be-low. (In S, 0 indicates the rightmost byte and 1 indicates the leftmost byte.) 0 1 R to R+15 R+16 to R+31 S C: 1000 0 1 R to R+15 R+16 to R+31 S C: 1010 0 1 R to R+15 R+16 to R+31 S C: 1011 0 1 R to R+15 R+16 to R+31 S C:...
212 The following program converts three digits of data from LR 20 to bit positionsand turns ON the corresponding bits in three consecutive words starting withHR 10. 00000 MLPX(76) DM 0020 #0021 HR 10 Address Instruction Operands 00000 LD 00000 00001 MLPX(76) LR 20 # 0021 HR 10 S: LR 20 R: HR 10 R+1...
215 When 00000 is ON, the following diagram encodes IR words 010 and 011 to thefirst two digits of HR 20 and then encodes LR 10 and 11 to the last two digits ofHR 20. Although the status of each source word bit is not shown, it is assumedthat the bit with status 1 (ON) shown is the highest bit that ...
216 Any or all of the digits in S may be converted in sequence from the designatedfirst digit. The first digit, the number of digits to be converted, and the half of D toreceive the first 7-segment display code (rightmost or leftmost 8 bits) are desig-nated in Di. If multiple digits are designated, ...
218 5-18-10 ASCII CONVERT – ASC(86) S: Source word IR, SR, AR, DM, HR, TC, LR Di: Digit designator IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas D: First destination word IR, SR, AR, DM, HR, LR ASC(86) S Di D @ASC(86) S Di D Limitations Di must be within the values given below All ...
220 Limitations Di must be within the values given below. All source words must be in the same data area. Bytes in the source words must contain the ASCII code equivalent of hexadeci-mal values, i.e., 30 to 39 (0 to 9), 41 to 46 (A to F), or 61 to 66 (a to f). Description When the execution conditio...
221 Some examples of Di values and the 8-bit ASCII to 4-bit hexadecimal conver-sions that they produce are shown below. 0 1 2 3 D Di: 0011 S Di: 0030 Di: 0133 Di: 0023 1 st byte 2 nd byte S 1 st byte 2 nd byte S+1 1 st byte 2 nd byte 0 1 2 3 D S 1 st byte 2 nd byte S+1 1 st byte 2 nd byte 0 1 2 3 D ...
222 Flags ER: Incorrect digit designator, or data area for destination exceeded. Indirectly addressed DM word is non-existent. (Content of DM word is not BCD, or the DM area boundary has been exceeded.) Example In the following example, the 2 nd byte of LR 10 and the 1 st byte of LR 11 are con- vert...
224 5-18-13 COLUMN TO LINE – LINE(63) S: First word of 16 word source set IR, SR, AR, DM, HR, TC, LR C: Column bit designator (BCD) IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas D: Destination word IR, SR, AR, DM, HR, TC, LR LINE(63) S C D @LINE(63) S C D Limitations S and S+15 mus...
225 5-18-14 LINE TO COLUMN – COLM(64) S: Source word IR, SR, AR, DM, HR, TC, LR C: Column bit designator (BCD) IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas D: First word of the destination set IR, AR, DM, HR, TC, LR COLM(64) S D C @COLM(64) S D C Limitations D and D+15 must be in ...
228 5-19 BCD Calculations The BCD calculation instructions – INC(38), DEC(39), ADD(30), ADDL(54),SUB(31), SUBL(55), MUL(32), MULL(56), DIV(33), DIVL(57), FDIV(79), andROOT(72) – all perform arithmetic operations on BCD data. For INC(38) and DEC(39) the source and result words are the same. That is, ...
231 Flags ER: Au and/or Ad is not BCD. Indirectly addressed DM word is non-existent. (Content of DM word is not BCD, or the DM area boundary has been exceeded.) CY: ON when there is a carry in the result. EQ: ON when the result is 0. Example When 00000 is ON, the following program adds two 12-digit ...
233 Note The actual SUB(31) operation involves subtracting Su and CY from 10,000 plus Mi. For positive results the leftmost digit is truncated. For negative results the10s complement is obtained. The procedure for establishing the correct answeris given below. First SubtractionIR 010 1029DM 0100 – 3...
236 5-19-10 DOUBLE BCD MULTIPLY – MULL(56) Md: First multiplicand word (BCD) IR, SR, AR, DM, HR, TC, LR Mr: First multiplier word (BCD) IR, SR, AR, DM, HR, TC, LR Ladder Symbols Operand Data Areas R: First result word IR, SR, AR, DM, HR LR MULL(56) Md Mr R @MULL(56) Md Mr R Limitations Md and Md+1 m...
238 5-19-13 FLOATING POINT DIVIDE – FDIV(79) Dd: First dividend word (BCD) IR, SR, AR, DM, HR, TC, LR Dr: First divisor word (BCD) IR, SR, AR, DM, HR, TC, LR Ladder Symbols Operand Data Areas R: First result word IR, SR, AR, DM, HR, LR FDIV(79) Dd Dr R @FDIV(79) Dd Dr R Limitations Dr and Dr+1 canno...
241 5-19-14 SQUARE ROOT – ROOT(72) Sq: First source word (BCD) IR, SR, AR, DM, HR, TC, LR R: Result word IR, SR, AR, DM, HR, LR, Ladder Symbols Operand Data Areas ROOT(72) Sq R @ROOT(72) Sq R Limitations Sq and Sq+1 must be in the same data area. Description When the execution condition is OFF, ROOT...
243 5-20 Binary Calculations Binary calculation instructions — ADB(50), SBB(51), MLB(52), DVB(53),ADBL(––), SBBL(––), MBS(––), MBSL(––), DBS(––), and DBSL(––) — performarithmetic operations on hexadecimal data. Four of these instructions (ADB(50), SBB(51), ADBL(––), and SBBL(––)) canact on both norm...
245 In the case below, 25,321 +(–13,253) = 12,068 (62E9 + CC3B = 2F24). NeitherOF nor UF are turned ON. Au: LR 20 6 2 E 9 Ad: DM 0010 C C 3 B + Ad: DM 0010 2 F 2 4 Note The status of the CY flag can be ignored when adding signed binary data since it is relevant only in the addition of normal hexadec...
246 Example 1: Normal Data The following example shows a four-digit subtraction with CY used to place ei-ther #0000 or #0001 into R+1 to ensure that any carry is preserved. CLC(41) 00001 SBB(51) 001 LR20 HR 21 MOV(21) #0000 HR 22 MOV(21) #0001 HR 22 TR 1 25504 25504 = R = R+1 = R+1 Address Instructi...
250 ADBL(––) can also be used to add signed binary data. The overflow and under-flow flags (SR 25404 and SR 25405) indicate whether the result has exceededthe lower or upper limits of the 32-bit signed binary data range. Refer to page 27for details on signed binary data. Flags ER: Indirectly address...
253 In the case below, 1,799,100,099 – (–282,751,929) = 2,081,851,958(6B3C 167D – {EF25 8C47 – 1 0000 0000} = 7C16 8A36). Neither OF nor UFare turned ON. Au + 1 : 001 Au : 000 Ad + 1 : DM 0021 Ad : DM 0020 6 B 3 C 1 6 7 D E F 2 5 8 C 4 7 0 – R + 1 : LR 22 R : LR 21 8 A 3 6 7 C 1 6 0 CY (Cleared with...
254 Example In the following example, MBS(––) is used to multiply the signed binary contentsof IR 001 with the signed binary contents of DM 0020 and output the result toLR 21 and LR 22. MBS(––) 001 DM 0020 LR 21 Address Instruction Operands 00000 LD 00000 00001 MBS(––) 001 DM 0020 LR 21 00000 Md: 00...
257 Example In the following example, DBSL(––) is used to divide the signed binary contentsof IR 002 and IR 001 with the signed binary contents of DM 0021 and DM 0020and output the result to LR 24 through LR 21. DBSL(––) 001 DM 0020 LR 21 Address Instruction Operands 00000 LD 00000 00001 DBSL(––) 00...
! 259 2. For an address in another data area, the number of addresses from the be- ginning of the search is written to D+1. For example, if the address contain-ing the minimum value is IR 114 and the first word in the search range isIR 014, then #0100 is written in D+1. If bit 14 of C is ON and more...
260 For the first N–1 cycles when the execution condition is ON, AVG(––) writes thevalue of S to D. Each time that AVG(––) is executed, the previous value of S isstored in words D+2 to D+N+1. The first 2 digits of D+1 are incremented witheach execution and act as a pointer to indicate where the prev...
261 Example In the following example, the content of IR 040 is set to #0000 and then increm-ented by 1 each cycle. For the first two cycles, AVG(––) moves the content ofIR 040 to DM 1002 and DM 1003. The contents of DM 1001 will also change(which can be used to confirm that the results of AVG(––) ha...
262 Description When the execution condition is OFF, SUM(––) is not executed. When theexecution condition is ON, SUM(––) adds either the contents of words R 1 to R 1 +N–1 or the bytes in words R 1 to R 1 +N/2–1 and outputs that value to the des- tination words (D and D+1). The data can be summed as ...
264 Examples Sine Function The following example demonstrates the use of the APR(69) sine function to cal-culate the sine of 30 ° . The sine function is specified when C is #0000. Input data, x Result data S: DM 0000 D: DM 0100 0 10 1 10 0 10 –1 10 –1 10 –2 10 –3 10 –4 0 3 0 0 5 0 0 0 APR(69) #0000 ...
Y 0 X 0 X 1 X 2 X 3 X 4 X m X Y Y m Y 4 Y 3 Y 1 Y 2 265 Enter the coordinates of the m+1 end-points, which define the m line segments,as shown in the following table. Enter all coordinates in BIN form. Always enterthe coordinates from the lowest X value (X 1 ) to the highest (X m ). X 0 is 0000, and...
266 In this case, the input data word, IR 010, contains #0014, and f(0014) = #0726 isoutput to R, IR 011. X Y $1F20 $0F00 $0726 $0402 (0,0) $0005 $0014 $001A $05F0 (x,y) 5-21-6 PID CONTROL – PID(––) S: Input word IR, SR, AR, DM, HR, LR C: First parameter word IR, SR, DM, HR, LR Operand Data Areas D:...
267 Note 1. The actual integral and derivative times are calculated using the values set in C+2 and C+3 and the time unit set in C+6. 2. Setting the 2-PID parameter ( α ) to 000 yields 0.65, the normal value. 3. The only CQM1 model that can use PID(––) is the CQM1-CPU4 -EV1. Performance Specificatio...
268 Parameter Settings Item Contents Setting range Set value (SV) This is the target value of the process beingcontrolled. Binary data (of the same number of bits asspecified for the input range) Proportional band This is the parameter for P control expressing theproportional control range/total con...
269 Execution Condition ONThe PID operation is executed at the intervals based on the sampling period,according to the PID parameters that have been set. Sampling Period and PID Execution TimingThe sampling period is the time interval to retrieve the measurement data forcarrying out a PID operation....
271 PID OperationPID operation combines proportional operation (P), integral operation (I), andderivative operation (D). It produces superior control results even for control ob-jects with dead time. It employs proportional operation to provide smooth controlwithout hunting, integral operation to au...
273 Example This example shows a PID control program using PID(––). Amplifier (See note below.) Fan (Output word IR 111) Heater (Output word IR110) Temperature sensing element(Output word IR 100) Amplifier (See note below.) #0 #1 AD001 DA001 CPUUnit Note Motors and heaters cannot be directly connect...
274 Program Target value Parameter leading word for firstPID(––) instruction Parameter leading word for secondPID(––) instruction PV of temperature sensing element Heater operation amount Fan operation amount PV of temperature sensing element (binary) Leading word of converted parameter Present temp...
275 Note When using PID(––) or SCL(––), make the data settings in advance with a Pe- ripheral Device such as the Programming Console or SSS. Target value HR Proportional band Integral time/sampling period Derivative time/sampling period Sampling period Forward/reverse designation/PID parametersI/O r...
279 5-22-5 EXCLUSIVE NOR – XNRW(37) I1: Input 1 IR, SR, AR, DM, HR, TC, LR, # I2: Input 2 IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas R: Result word IR, SR, AR, DM, HR, LR XNRW(37) I1 I2 R @XNRW(37) I1 I2 R Description When the execution condition is OFF, XNRW(37) is not executed...
281 started. The program must be designed to allow for this when required by theapplication. (See the section on data concurrence for further details.) Input Interrupts Input interrupts are executed when external inputs are received via an InterruptInput Unit. Up to two Interrupt Input Units can be ...
282 Note Disabling special I/O refreshing in the normal cycle to refresh special I/O in an interrupt subroutine is necessary only in the high-speed mode. Disabling normalcycle refreshing of special I/O during normal interrupt mode will be ignored andthe special I/O will be refreshed both in the norm...
! 284 The following diagram illustrates program execution flow for various executionconditions for two SBS(91). SBS(91) 000 SBS(91) 001 SBN(92) 000 RET(93) SBN(92) 001 RET(93) END(001) Main program Subroutines A B C D E A A A A B B B B C C C C D D E E OFF execution conditions for subroutines 000 and...
285 All subroutines must be programmed at the end of the main program. When oneor more subroutines have been programmed, the main program will beexecuted up to the first SBN(92) before returning to address 00000 for the nextcycle. Subroutines will not be executed unless called by SBS(91). END(01) mu...
288 Description INT(89) is used to control interrupts and performs one of 11 functions dependingon the values of C and N. As shown in the following tables, six of the functions acton input interrupts, three act on the scheduled interrupt, and the other two maskor unmask all interrupts. Interrupt C I...
289 This function is used to write the current setting for the scheduled interrupt inter-val to word D. This function is used to mask or unmask all interrupt processing. Masked inputsare recorded, but ignored. The masked inputs will be serviced as soon as theyare unmasked. This function masks or unm...
291 5-24 Step Instructions The step instructions STEP(08) and SNXT(09) are used in conjunction to set upbreakpoints between sections in a large program so that the sections can beexecuted as units and reset upon completion. A section of program will usuallybe defined to correspond to an actual proce...
293 Flags 25407: Step Start Flag; turns ON for one cycle when STEP(08) is executed and can be used to reset counters in steps as shown below if necessary. SNXT(09) 01000 CP R CNT 01 #0003 00000 00100 25407 STEP(08) 01000 1 cycle 25407 01000 Start Address Instruction Operands Address Instruction Oper...
300 00000 LD 00001 00001 SNXT(09) LR 0000 00002 SNXT(09) LR 0002 00003 STEP(08) LR 0000 Process A 00100 LD 00002 00101 SNXT(09) LR 0001 00102 STEP(08) LR 0001 Process B 00200 LD LR 0003 00201 OUT LR 0003 00202 AND 00004 00203 SNXT(09) LR 0004 00204 STEP(08) LR 0002 Process C 00300 LD 00003 00301 SNX...
301 FAL(06) produces a non-fatal error and FAL(07) produces a fatal error. WhenFAL(06) is executed with an ON execution condition, the ALARM/ERROR indi-cator on the front of the CPU Unit will flash, but PC operation will continue. WhenFALS(07) is executed with an ON execution condition, the ALARM/ER...
303 The sampled data is written to trace memory, jumping to the beginning of thememory area once the end has been reached and continuing up to the startmarker. This might mean that previously recorded data (i.e., data from this sam-ple that falls before the start marker) is overwritten (this is espe...
MSGABCDEFGHIJKLMNOP 304 In handling indirectly addressed messages (i.e. DM), those with thelowest DM address values have higher priority. Clearing Messages To clear a message, execute FAL(06) 00 or clear it via a Programming Consoleusing the procedure in 4-6-5 Clearing Error Messages. If the message...
305 Description LMSG(47) is used to output a 32-character message to a Programming Con-sole. The message to be output must be in ASCII beginning in word S and end-ing in S+15, unless a shorter message is desired. A shorter message can be pro-duced by placing a null character (0D) into the string; no...
306 Example In the following example, TERM(48) is used to switch the Programming Consoleto TERMINAL mode when 00000 is ON. Be sure that pin 6 of the CPU Unit’s DIPswitch is OFF. TERM(48) 000 000 000 00000 Address Instruction Operands 00000 LD 00000 00001 TERM(48) 000 000 000 5-25-7 WATCHDOG TIMER RE...
307 It cannot be used for other I/O words, such as I/O Units on Slave Racks orGroup-2 High-density I/O Units. St must be less than or equal to E. Description To refresh I/O words allocated to CPU or Expansion I/O Racks (IR 000 to IR 029or IR 300 to IR 309), simply specify the first (St) and last (E)...
308 Refer to 6-1 Cycle Time for a table showing I/O refresh times for Group-2High-density I/O Units. Flags ER: St or E is not BCD between #0000 and #000F. St is greater than E. 5-25-10 BIT COUNTER – BCNT(67) N: Number of words (BCD) IR, SR, AR, DM, HR, TC, LR, # SB: Source beginning word IR, SR, AR,...
309 The function of bits in C are shown in the following diagram and explained inmore detail below. 15 14 13 12 11 00 Number of items in range (N, BCD)001 to 999 words or bytes First byte (when bit 13 is ON)1 (ON): Rightmost 0 (OFF): Leftmost Calculation units1 (ON): Bytes 0 (OFF): Words C: Not used...
310 Example When IR 00000 is ON in the following example, the frame checksum (0008) iscalculated for the 8 words from DM 0000 to DM 0007 and the ASCII equivalent(30 30 30 38) is written to DM 0011 and DM 0010. @FCS(––) DM 0000 #0008 00000 DM 0010 Address Instruction Operands 00000 LD 00000 00001 @FC...
311 When the execution condition is OFF, FPD(––) is not executed. When theexecution condition is ON, FPD(––) monitors the time until the logic diagnosticscondition goes ON, turning ON the diagnostic output. If this time exceeds T, thefollowing will occur: 1, 2, 3... 1. An FAL(06) error is generated ...
315 Example In the following example, the 10 word range from DM 0010 to DM 0019 issearched for addresses that contain the same data as DM 0000 (#FFFF). SinceDM 0012 contains the same data, the EQ Flag (SR 25506) is turned ON and#0012 is written to DM 0001. @SRCH(––) DM 0010 #0010 00001 DM 0000 Addre...
316 Example In the following example, the 100 word range from DM 7000 through DM 7099 iscopied to DM 0010 through DM 0109 when IR 00001 is ON. @XDMR(––) #7000 #0100 00001 DM 0010 Address Instruction Operands 00000 LD 00001 00001 @XDMR(––) # 0100 # 7000 DM 0010 DM 7000 DM 9999 DM 7000 to DM 7099 DM 0...
318 5-26 Network Instructions The network instructions are used for communicating with other PCs, BASICUnits, or host computers linked through the SYSMAC NET Link System, SYS-MAC LINK System, Ethernet System, or Controller Link System. 5-26-1 NETWORK SEND – SEND(90) S: Source beginning word IR, SR, ...
319 SYSMAC NET Link Systems The destination port number is always set to 0. Set the destination node numberto 0 to send the data to all nodes. Set the network number to 0 to send data to anode on the same Subsystem (i.e., network). Refer to the SYSMAC NET LinkSystem Manual for details. Word Bits 00 ...
321 Indirect Destination Beginning Word Designations D is used to specify the destination beginning word as follows when indirectspecification is designated: 12 to 15 08 to 11 04 to 07 00 to 03 D Area type 0 Word no. (5thdigit) D+1 Word no. (4thdigit) Word no. (3rddigit) Word no. (2nddigit) Word no....
323 Examples This example is for a SYSMAC NET Link System. When 00000 is ON, the follow-ing program transfers the content of IR 001 through IR 005 to LR 20 through LR24 on node 10. 0 0 0 5 0 0 0 0 0 0 0 A IR 001 IR 002 IR 003 IR 004 IR 005 LR 20 LR 21 LR 22 LR 23 LR 24 DM 0010 DM 0011 DM 0012 15 0 S...
324 Control Data Ethernet Systems Refer to the PC Card Unit Operation Manual for details. Word Bits 00 to 07 Bits 08 to 15 C Number of words (0 to 1000 in 4-digit hexadecimal, i.e., 0000 hex to 03E8 hex) C+1 Response time limit (0.1 and 25.4seconds in 0.1 s increments in2-digit hexadecimal withoutde...
326 2. With the message service, there is no guarantee that a message to a des- tination node will reach its destination. It is always possible that the mes-sage may be lost in transit due to noise or some other condition. When usingthe message service, it is advisable to prevent this situation from...
327 5-26-3 About Network Communications SEND(90) and RECV(98) are based on command/response processing. Thatis, the transmission is not complete until the sending node receives and ac-knowledges a response from the destination node. Note that theSEND(90)/RECV(98) Enable Flag is not turned ON until t...
329 Address Instruction Operands Address Instruction Operands 00000 LD 00000 00001 AND 25204 00002 AND NOT 12802 00003 LD 12801 00004 KEEP(11) 12800 00005 LD 12800 00006 @MOV(21) # 000A DM 0000 00007 @MOV(21) # 0000 DM 0001 00008 @MOV(21) # 0003 DM 00002 00009 @XFER(70) # 0010 000 DM 0002 00010 @SEN...
! 330 Note RXD(––) is required to receive data via the peripheral port or RS-232C port only. Transmission sent from a host computer to a Host Link Unit are processed auto-matically and do not need to be programmed. Caution The PC will be incapable of receiving more data once 256 bytes have been re-c...
331 26406: SR 26406 will be turned ON when data has been received normally at the peripheral port and will be reset when the data is read usingRXD(––) is executed. 265: SR 265 contains the number of bytes received at the RS-232C port andis reset to 0000 when RXD(––) is executed. Note Communications ...
332 Note Data is not output when the CTS and DSR signals are monitored. The specified number of bytes will be read from S through S+(N/2)–1, convertedto ASCII, and transmitted through the specified port. The bytes of source datashown below will be transmitted in this order: 12345678... MSB LSB S 1 2...
333 When digit 0 of C is 0, the bytes of source data shown above will be transmitted inthis order: 12345678... When digit 0 of C is 1, the bytes of source data shown above will be transmitted inthis order: 21436587... Note When start and end codes are specified the total data length should be 256 by...
336 Example When IR 00000 is ON and SR 28908 (the Communications Board Port A Instruc-tion Execution Flag) is OFF, communications sequence 100 is called in the Com-munications Board and data is transferred through Communications Boardport A. Send data is read from the range of words beginning at DM ...
337 Do not set C to values other than 000 to 007. Overview When the execution condition is OFF, 7SEG(––) is not executed. When theexecution condition is ON, 7SEG(––) reads the source data (either 4 or 8-digit),converts it to 7-segment display data, and outputs that data to the 7-segmentdisplay conne...
338 play) will be turned ON when one round of data is displayed, but there is no needto connect them unless required by the application. 1 3 5 7 9 11 13 15 COM 0 2 4 6 8 10 12 14 DC OD212 D 0 D 1 D 2 D 3 V DD (+)V SS (0) LE3 LE2 LE1 LE0 D 0 D 1 D 2 D 3 V DD (+)V SS (0) LE3 LE2 LE1 LE0 The outputs mu...
340 Overview DSW(––) is used to read the value set on a digital switch connected to I/O Units.When the execution condition is OFF, DSW(––) is not executed. When theexecution condition is ON, DSW(––) reads the 8-digit value set on the digitalswitch from IW and places the result in R. The 8-digit valu...
341 The following example illustrates connections for an A7B Thumbwheel Switch. 1 3 5 7 9 11 13 15 COM 0 2 4 6 8 10 12 14 COM ID212 Input Unit Switch no. 8 1 3 5 7 9 11 13 15 COM 0 2 4 6 8 10 12 14 DC OD212 1 2 4 8 7 6 5 4 3 2 1 C Output Unit A7BThumbwheelSwitch Note The data read signal is not requ...
342 Using the Instruction If the input word for connecting the digital switch is specified at for word A, andthe output word is specified for word B, then operation will proceed as shownbelow when the program is executed. 00 01 02 03 04 05 Wd 0 10 0 10 1 10 2 10 3 D+1 D Four digits: 00 to 03 Eight d...
343 5-28-3 HEXADECIMAL KEY INPUT – HKY(––) OW: Control signal output word IR, SR, AR, DM, HR, LR IW: Input word IR, SR, AR, DM, HR, LR Ladder Symbols Operand Data Areas HKY(––) IW OW D D: First register word IR, SR, AR, DM, HR, LR Limitations D and D+2 must be in the same data area. Overview When th...
344 Hardware This instruction inputs 8 digits in hexadecimal from a hexadecimal keyboard. Itutilizes 5 output bits and 4 input bits. Prepare the hexadecimal keyboard, andconnect the 0 to F numeric key switches, as shown below, to input points 0through 3 and output points 0 through 3. Output point 4 ...
348 5-28-5 MATRIX INPUT – MTR(––) OW: Output word IR, SR, AR, DM, HR, LR IW: Input word IR, SR, AR, DM, HR, LR Ladder Symbols Operand Data Areas MTR(––) IW OW D D: First destination word IR, SR, AR, DM, HR, LR Limitations D and D+3 must be in the same data area. Overview When the execution condition...
350 Example The following examples shows programming MTR(––) in a scheduled subrou-tine, where IORF(97) is programmed to ensure that the I/O words used byMTR(––) are refreshed each time MTR(––) is executed. INT(89) 001 004 # 0002 INT(89) 000 004 # 0002 SBN(92) 99 MTR(––) S D1 D2 IORF(97) D1 D2 RET(9...
351 When the execution condition is OFF, IORD(––) is not executed. When theexecution condition is ON, IORD(––) transfers data from the specified SpecialI/O Unit’s memory to words beginning at D. The source information provides thenode number of the Special I/O Unit and the number of words to be read...
354 Process Number The process number (1 through 4) determines what function CMCR(––) will per-form. Process number Process name Function 1 Write file Writes data from the PC’s memory to the specified filein the Card in the PC Card Unit. 2 Read file Reads data from the specified file in the Card in ...
356 The instruction’s termination code is output to SR 237 after CMCR(––) isexecuted. Also, SR 252 contains flags that indicate the instruction’s completionstatus (normal/error) and the execution status for operating levels 0 and 1. Thefollowing table shows the function of these bits. Word Bit(s) Fu...
360 6-1 Cycle Time To aid in PC operation, the average, maximum, and minimum cycle times can bedisplayed on the Programming Console or any other Programming Device andthe maximum cycle time and current cycle time values are held in AR 26 andAR 27. Understanding the operations that occur during the c...
361 Flowchart of CPU Unit Operation Services CommunicationsBoard YES NO NO Power application Clears IR area andresets all timers Checks I/O Unit connections Resets watchdog timer Checks hardware andProgram Memory Check OK? Services Host Link ALARM/ERROR Sets error flags and turnsON or flashes indica...
363 I/O pts to refresh Time required (ms) 512 7.4 256 4.1 128 2.7 64 1.7 Unit Time required per Unit C200H-ID501/215 0.6 ms C200H-OD501/215 0.6 ms when set for 32 I/O pts. C200H-MD501/215 1.6 ms when set for dynamic I/O C200H-CT001-V1/CT002 2.0 ms C200H-CT021 0.7 ms C200H-NC111/NC112 2.1 ms C200HW-N...
! 364 Within the PC, the watchdog timer measures the cycle time and compares it to aset value. If the cycle time exceeds the set value of the watchdog timer, a FALS9F error is generated and the CPU Unit stops. WDT(94) can be used to extendthe set value for the watchdog timer. Even if the cycle time ...
365 6-2-1 PC with I/O Units Only Here, we’ll compute the cycle time for a simple PC. The CPU Unit controls onlyI/O Units, eight on the CPU Rack and five on a 5-slot Expansion I/O Rack. ThePC configuration for this would be as shown below. It is assumed that the pro-gram contains 5,000 instructions r...
366 It is assumed that the program contains 5,000 instructions requiring an averageof 0.156 µ s each to execute, and that nothing is connected to the RS-232C port and no SYSMAC NET/SYSMAC LINK Unit is mounted. Computer Slave Rack Host Link Unit Remote I/OMaster Unit CPU Rack 8-pointInput Units 8-poi...
367 6-3 Instruction Execution Times The following table lists the execution times for all instructions that are availablefor the C200HX/HG/HE. The maximum and minimum execution times and theconditions which cause them are given where relevant. When “word” is referredto in the Conditions column, it i...
375 Instruction OFF execution time ( µ s) ON execution time ( µ s) Conditions Instruction C200HE C200HG C200HX C200HE C200HG C200HX Conditions IEMS(––) Constant designation (Switch to DM.) 19.25 18.15 0.313 0.469 0.938 Word designation (Switch to EM bank.) 24.95 23.85 IORD(––) --- --- (seenote 1) (s...
376 6-4 I/O Response Time The I/O response time is the time it takes for the PC to output a control signalafter it has received an input signal. The time it takes to respond depends on thecycle time and when the CPU Unit receives the input signal relative to the inputrefresh period. The minimum and ...
377 The PC takes longest to respond when it receives the input signal just after theI/O refresh phase of the cycle. In this case the CPU Unit does not recognize theinput signal until the end of the next cycle. The maximum response time is thusone cycle longer than the minimum I/O response time, exce...
379 The maximum response time occurs when the input just misses the programexecution portion of the scan, meaning that processing must wait for the nexttransmission and then the next (i.e., the fourth) scan. Time = Input ON delay + cycle time × 4 + output ON delay Cycle time > Remote I/O transmis...
381 In looking at the following timing charts, it is important to remember the se-quence processing occurs during the PC scan, particular that inputs will not pro-duce programmed-actions until the program has been execution. X PC Link Unit PC PC Link Unit PC X X Unit 0 Unit 7 Input on PCof Unit 0 LR...
382 Output ON delay: 15 ms Cycle time for PC of Unit 0: 20 ms Cycle time for PC of Unit 7: 50 ms Minimum transmission time: 2.8 ms+10 ms=12.8 ms The following diagram illustrates the data flow that will produce the maximumresponse time. Delays occur because signals or data is received just after the...
383 I/O refresh bits for Unit 0 256 I/O refresh bits for Unit 7 256 Reducing Response Time IORF(97) can be used in programming to shorten the I/O response time greaterthan is possible by setting a high number of refresh bits. (Remember, increasingthe number of refresh bits set on the back-panel LED ...
385 3. Communications are completed just after the slave executes communica- tions servicing. I/O refresh Overseeing, communica-tions, etc. Input ON delay Master Inputpoint Inputbit CPU Unitprocessing Cycle time Instructionexecution Instructionexecution Instructionexecution Instructionexecution Inst...
386 Scheduled Interrupts Hardware time clock Scheduled interruptsubroutine execution t3 Scheduled in-terrupt interval t3 t3 t3 t3 = Software interrupt response time Total interrupt response time = t3 (software interrupt response time) The software interrupt response time depends on the interrupt res...
390 7-1 Monitoring Operation and Modifying Data The simplest form of operation monitoring is to display the address whose oper-and bit status is to be monitored using the Program Read or one of the searchoperations. As long as the operation is performed in RUN or MONITOR mode,the status of any bit d...
393 Multiple Address Monitoring 00000 00000TIM 000 T000 0100 00000 T000 0100 00001 T000 0100 00001 T000 OFF 0100 D000000001 T000 ^OFF 0100 D000000001 T000 10FF^ OFF 0100 T000D000000001 0100 10FF^ OFF D000000001 10FF^ OFF 00001^ OFF 00000CONT 00001 00000CHANNEL DM 0000 0000000001S ONR OFF Indicates F...
395 The following displays show what happens when TIM 000 is set with 00100 OFF(i.e., 00500 is turned ON) and what happens when TIM 000 is reset with 00100ON (i.e., timer starts operation, turning OFF 00500, which is turned back ONwhen the timer has finished counting down the SV). (This example is p...
396 Example The following example shows the displays that appear when Restore Status iscarried out normally. 00000 00000 00000FORCE RELE? 00000FORCE RELEEND 7-2-4 Hexadecimal/BCD Data Modification When the Bit/Digit Monitor operation is being performed and a BCD or hexadeci-mal value is leftmost on ...
398 7-2-5 Hex/ASCII Display Change This operation converts DM data displays from 4-digit hexadecimal data toASCII and vice versa. Key Sequence Word currently displayed. 00000 00000CH DM 0000 D0000 4412 D0000"AB" D0000 4142 Press TR to change the displayto ASCII code. Press TR again to return...
401 7-2-8 Differentiation Monitor This operation can be used to monitor the up or down differentiation status of bitsin the IR, SR, AR, LR, HR, and TC areas. To monitor up or down differentiationstatus, display the desired bit leftmost on the bit monitor display, and then pressSHIFT and the Up or Do...
402 7-2-9 3-word Monitor To monitor three consecutive words together, specify the lowest numberedword, press MONTR, and then press EXT to display the data contents of thespecified word and the two words that follow it. A CLR entry changes the Three-word Monitor operation to a single-word display. Ke...
403 Example 3-word Monitor in progress. Stops in the middleof monitoring. Resumes previousmonitoring. D0002D0001D0000 0123 4567 89AB D0002 3CH CHG? 0123 4567 89AB D0002 3CH CHG? 0001 4567 89AB D0002 3CH CHG? 0001 4567 89AB D0002 3CH CHG? 0001 2345 89AB D0002D0001D0000 0001 2345 89AB D0002D0001D0000 ...
405 7-2-12 Binary Data Modification This operation assigns a new 16-digit binary value to an IR, HR, AR, DM, EM, orLR word. The cursor, which can be shifted to the left with the up key and to the right with thedown key, indicates the position of the bit that can be changed. After positioningto the d...
406 IR bit 00115 IR bit 00100 00000 00000CHANNEL 000 00000CHANNEL 001 c001 MONTR0000010101010101 c001 CHG? 000010101010101 c001 CHG?1 00010101010101 c001 CHG?10 0010101010101 c001 CHG?100 010101010101 c001 CHG?100S 10101010101 c001 CHG?100 010101010101 c001 CHG?10 S010101010101 c001 MONTR10RS0101010...
409 7-2-14 Expansion Instruction Function Code Assignments This operation is used to read or change the function codes assigned to expan-sion instructions. There are 18 function codes that can be assigned to expansioninstructions: 17, 18, 19, 47, 48, 60 to 69, and 87 to 89. More than one functioncod...
410 7-2-15 UM Area Allocation This operation is used to allocate part of the UM Area for use as expansion DM. Itcan be performed in PROGRAM mode only. Memory allocated to expansion DMis deducted from the ladder program area. The amount of memory available for the ladder program depends on the amount...
411 7-2-16 Reading and Setting the Clock This operation is used to read or set the CPU Unit’s clock. The clock can be readin any mode, but it can be set in MONITOR or PROGRAM mode only. The CPU Unit will reject entries outside of the acceptable range, i.e., 01 to 12 forthe month, 01 to 31 for the da...
412 To enable expansion keyboard mapping, pin 6 of the CPU Unit’s DIP switch andAR 0709 must be ON and AR 0708 must be OFF. Bits turned ON with this operation can be turned OFF by toggling AR 0708. TurnAR 0709 OFF to stop expansion keyboard mapping and switch the Program-ming Console from Expansion ...
413 With keyboard mapping, bits 00 to 15 of AR 22 will be turned ON when keys 0 toF are pressed on the Programming Console’s keyboard. A bit will remain ONafter the Programming Console’s key is released. All bits in AR 22 will be turned OFF when AR 0708 is turned ON. Keyboard map-ping inputs are dis...
418 8-1 Introduction The RS-232C port and peripheral port built into the C200HX/HG/HE PC’s CPUUnit support the following communications functions: • Communications with Programming Devices (e.g., Programming Console orSSS.) • Host Link communications with personal computers and other external de-vic...
419 8-2 Host Link Communications 8-2-1 Host Link Command Summary Host Link communications are used to transfer data between the PC and a hostcomputer (a personal computer or PT). It is possible to monitor the PC’s operat-ing status and the contents of PC data areas from the host computer using HostL...
420 The connections between the C200HX/HG/HE and a personal computer are il-lustrated below as an example. 1 2 3 4 5 6 FG SD RD RS CS – – – SG 7 8 9 1 2 3 4 5 6 7 8 9 SD RD RS CS DSR SG – 9 DTR C200HX/HG/HE Personal computer Signal PinNo. Signal PinNo. Shielded cable – Applicable ConnectorsThe follo...
422 Note If pin 5 of the CPU Unit’s DIP switch is ON, the standard communications set- tings will be used regardless of the settings in the PC Setup. The standard set-tings are as follows: Item Setting Node number 00 Start bits 1 Data length 7 Stop bits 2 Parity Even Baud rate 9,600 bps Transmission...
423 Response Frame Format The response from the PC is returned in the format shown below. Prepare a pro-gram so that the response data can be interpreted and processed. @ x 10 1 x 10 0 x 16 1 x 16 0 FCS ↵ Node no. Headercode End code Text Terminator The header code and text depend on the Host Link c...
424 Communications Sequence The right to send a frame is called the “transmission right.” The Unit that has thetransmission right is the one that can send a frame at any given time. The trans-mission right is traded back and forth between the host computer and the PCeach time a frame is transmitted....
425 8-2-3 Example Programs Command Transmission The following type of program must be prepared in the host computer to receivethe data. This program allows the computer to read and display the data re-ceived from the PC while a host link read command is being executed to readdata from the PC. 10 ’C2...
426 The default values are assumed for all of the PC Setup (i.e., the RS-232C port isused in Host Link mode, the node number is 00, and the standard communica-tions parameters are used.) @TXD DM 0000 #0000 #0010 00100 SR 26405 If SR 26405 (the Transmit Ready Flag) is ONwhen IR 00100 turns ON, the te...
427 Specify whether or not a start code is to be set at the beginning of the data, andwhether or not an end code is to be set at the end. Instead of setting the endcode, it is possible to specify the number of bytes to be received before the re-ception operation is completed. Both the codes and the ...
429 3. When RXD(––) is executed, the received data is transferred to the specified words (without the start and end codes) and the Reception Completed Flagis turned OFF. The start and end of reception are as follows: Start: Continuous reception status if the start code is not enabled.Reception start...
431 PC Setup To use a 1:1 link, the only settings necessary are the communications mode andthe link words. Set the communications mode for one of the PCs to one-to-one link master andthe other PC to one-to-one link slave, and then set the link words in the PC desig-nated as the master. Bits 08 to 11...
432 8-5 NT Links A one-to-one NT link that uses NT link commands can be established by con-necting the RS-232C port of the PC to the RS-232C port of a Programmable Ter-minal (PT). A one-to-N NT link that uses NT link commands can be established by connect-ing the PC and Programmable Terminal (PT) wi...
433 Restrictions on Use If the C200H-OV001 Voice Unit is being used, the 1:N mode cannot be used withthe RS-232 port. In that case, either use the NT Link in 1:1 mode or use the 1:Nmode with the port on the communications board. Applications Refer to the documentation provided for the NT Link Interf...
434 An RS-422/485 connection allows 2 or more devices to be connected (one-to-Nconnection) with a maximum cable length of 500 m. The RS-422/485 connectionis also useful for distant one-to-one connections. (RS-232C) Port B (RS-422/485) Port A RS-232C 500 m max. 15 m RS-232C ↔ RS-422/485 Adapter NT-AL...
435 General Device/Computer Connections (RS/CS Flow, Cross Connection) C200HX/HG/HE Host computer Modem Connection (Straight Connection) C200HX/HG/HE Modem Note Ground the FG terminals on the PC and at the other device to 100 Ω or less. Refer to the C200HX/HG/HE Installation Manual and the documenta...
441 Set the wild card ( ) in the reception message so that all data will be received. In the next process, set “End” in both the transmission step and the reception step.In error processing, set “Abort” in both the transmission step and the receptionstep. The Protocol Macro Function Section 8-6
! 444 9-1 Alarm Indicators The ALM/ERR indicator on the front of the CPU Unit provides visual indication ofan abnormality in the PC. When the indicator is ON (ERROR), a fatal error (i.e.,ones that will stop PC operation) has occurred; when the indicator is flashing(ALARM), a nonfatal error has occur...
445 9-4 Error Messages There are basically three types of errors for which messages are displayed: ini-tialization errors, non-fatal operating errors, and fatal operating errors. Most ofthese are also indicated by FAL number being transferred to the FAL area of theSR area. The type of error can be q...
447 Error and message Possible correction Probable cause FAL no. SIOU ERR Special I/O Unit error D0 Error has occurred in PCLink Unit, Remote I/OMaster Unit, between aHost Link, SYSMAC LINK,or SYSMAC NET Link Unitand the CPU Unit, or inrefresh between Special I/OUnit and the CPU Unit. Determine the ...
448 Error and message Possible correction Probable cause FAL no. Too many Units I/O UNIT OVER E1 Two or more Special I/OUnits or Group-2High-density I/O Unitsare set to the same unitnumber. Perform the I/O Table Readoperation to check unitnumbers, and eliminateduplications. The unit number of aSpeci...
449 9-5 Error Flags The following table lists the flags and other information provided in the SR andAR areas that can be used in troubleshooting. Details are provided in 3-4 SRArea and 3-5 AR Area. SR Area Address(es) Function 23600 to 23615 Node loop status for SYSMAC NET Link system 23700 to 23715...
450 Address(es) Function 28000 to 28015 Group-2 High-density I/O Unit Error Flags for Units 0 to F 28200 to 28215 Special I/O Unit Error Flags for Units 0 to F 28300 to 28303 Communications Board Port A Error Code 28308 to 28311 Communications Board Port B Error Code AR Area Address(es) Function 000...
451 End code Corrective measures Probable cause Contents 16 Command not supported The operand specified in an SVRead or SV Change command doesnot exist in the program. Check the command and program. 18 Frame length error The maximum frame length of 132bytes was exceeded.(If the frame exceeds 280 byt...
453 SECTION 10 Host Link Commands This section describes the host link commands which can be used for host link communications via the C200HX/HG/HEports. Refer to 8-2 Host Link Communications for information on the procedures for using host link commands and errorsassociated with host link commands....
454 10-1 Host Link Command Summary Command Chart The commands listed in the chart below can be used for host link communica-tions with the C200HX/HG/HE. Header code PC mode Name Page RUN MON PRG RR Valid Valid Valid IR/SR AREA READ 458 RL Valid Valid Valid LR AREA READ 459 RH Valid Valid Valid HR AR...
455 10-2 Host Link End Codes 10-2-1 End Code Summary These are the response (end) codes that are returned in the response frame.When two or more errors occur, the end code for the first error will be returned. End code Contents Probable cause Corrective measures 00 Normal completion --- --- 01 Not e...
456 Errors without Responses A response won’t be received with some errors, regardless of the command.These errors are listed in the following table. Error PC operation Parity overrun or framing error duringcommand reception The Communications Error Flag will be turned ON, an error code willbe regis...
458 10-3 Host Link Commands This section explains the various Host Link commands that can be issued fromthe host computer to the PC. Refer to 8-2 Host Link Communications for in-formation on the procedures for using host link commands and errorsassociated with host link commands. 10-3-1 IR/SR AREA R...
465 Response Format @ R E x 10 1 x 10 0 x 16 1 x 16 0 ↵ x 16 3 x 16 2 x 16 1 x 16 0 FCS Node no. End code Headercode Read data (1 word) Read data (for number of words read) Terminator Limitations The text portion of the response’s first frame can contain up to 30 words. If morethan 30 words are read...
466 Response Format @ W R x 10 1 x 10 0 x 16 1 x 16 0 ↵ FCS Node no. End code Headercode Terminator Limitations Data cannot be written to words 253 to 255. If there is an attempt to write to thesewords, no error will result, but nothing will be written to these words. Except for the first word of th...
467 Response Format @ W L x 10 1 x 10 0 x 16 1 x 16 0 ↵ FCS Node no. End code Headercode Terminator Limitations Except for the first word of the write data, the write data can be divided into multi-ple frames. PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write-protected Read-protected --- OK OK O...
468 Limitations Except for the first word of the write data, the write data can be divided into multi-ple frames. PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write-protected Read-protected --- OK OK OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK OK OK --- End Co...
469 Execution Conditions Commands Responses Single Multiple Single Multiple OK OK OK --- End Codes An end code of 14 (format error) will be returned if the length of the command isincorrect or the first word of write data isn’t in the first frame. An end code of 15 (entry number data error) will be ...
470 End Codes An end code of 14 (format error) will be returned if the length of the command isincorrect or the first word of write data isn’t in the first frame. An end code of 15 (entry number data error) will be returned if the digits of writedata aren’t 0 or 1, the specified write data exceeds t...
471 End Codes An end code of 14 (format error) will be returned if the length of the command isincorrect or the first word of write data isn’t in the first frame. An end code of 15 (entry number data error) will be returned if the specified writedata exceeds the data area boundary, the beginning wor...
472 An end code of 15 (entry number data error) will be returned if the specified writedata exceeds the data area boundary, the beginning word isn’t specified in BCD,or the write data isn’t hexadecimal. (An end code of A5 will be returned instead of15 for non-hexadecimal write data in multiple comma...
473 An end code of 15 (entry number data error) will be returned if the specified writedata exceeds the data area boundary, the beginning word isn’t specified in BCD,or the write data isn’t hexadecimal. (An end code of A5 will be returned instead of15 for non-hexadecimal write data in multiple comma...
475 The “Operand” parameter indicates the data area where the SV is stored or aconstant. The “SV” parameter indicates the word address or the SV itself if it is aconstant. Operand Classification Constant or OP1 OP2 OP3 OP4 word address C I O (Space) IR or SR 0000 to 0511 L R (Space) (Space) LR 0000 ...
479 Use all four characters to specify the timer or counter instruction’s mnemonic.Add a space to the end of a TIM or CNT mnemonic to make it 4 characters long. Instruction name Mnemonic TC number OP1 OP2 OP3 OP4 range TIMER T I M (Space) 0000 to 0511 HIGH-SPEED TIMER T I M H COUNTER C N T (Space) R...
480 End code Contents 04 Address over 13 FCS error 14 Format error 15 Entry number data error 16 Command not supported 18 Frame length error 23 User memory protected 10-3-22 SV CHANGE 3 –– W% Changes the contents of the second word of the TIM, TIMH(15), CNT,CNTR(12), or TTIM(87) at the specified pro...
481 Response Format @ W % x 16 0 x 10 0 x 10 1 x 16 1 ↵ Node no. Headercode Terminator FCS End code Limitations The command is valid only when the UM setting is ladder only. SR 253 through SR 255 can’t be specified. The command can’t be executed if the UM area is write-protected. PC Settings PC Mode...
483 10-3-24 STATUS WRITE –– SC Changes the PC operating mode. Command Format @ S C x 10 0 x 10 1 x 16 1 x 16 0 ↵ Node no. Headercode Terminator FCS Mode data Response Format @ S C x 10 0 x 10 1 x 16 1 x 16 0 ↵ Terminator FCS Node no. Headercode End code “Mode data” consists of two digits (one byte) ...
484 10-3-25 ERROR READ –– MF Reads and clears errors in the PC. Also checks whether previous errors havebeen cleared. Command Format @ M F x 10 0 x 10 1 x 10 1 x 10 0 ↵ Node no. Headercode Terminator FCS Error clear For the “error clear” parameter, specify 01 to clear errors and 00 to not clear er-r...
485 Limitations When errors are being cleared (error clear = 01), the errors are read after theerror clear function is executed. PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write-protected Read-protected OK OK OK OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK --...
486 Response Format @ K S x 10 0 x 10 1 x 16 1 x 16 0 ↵ Node no. Headercode Terminator FCS End code Limitations Bits in SR 253 through SR 255 can’t be specified. PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write-protected Read-protected --- OK OK OK OK Execution Conditions Commands Responses Sin...
488 10-3-28 MULTIPLE FORCED SET/RESET –– FK Force sets, force resets, or cancels the forced status of the bits in one word in theIR, SR, LR, HR, or AR, or a timer/counter Completion Flag. Command Format @ F K x 10 0 x 10 1 x 10 3 x 10 2 x 10 1 x 10 0 OP1 OP2 OP3 OP4 ↵ 15 14 13 12 11 10 1 0 Node no. ...
489 Limitations Bits in SR 253 through SR 255 can’t be specified. Only 15 timers/counters or 15 Transition Flags can be set/reset. The UM settings are not checked when Transition Flags are specified, i.e., aslong as the Transition Flag address does not exceed 1023, the command will beexecuted normal...
490 PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write-protected Read-protected --- OK OK OK OK Execution Conditions Commands Responses Single Multiple Single Multiple OK --- OK --- End Codes An end code of 14 (format error) will be returned if the length of the command isincorrect. End code Cont...
491 Execution Conditions Commands Responses Single Multiple Single Multiple OK --- OK --- End Codes An end code of 14 (format error) will be returned if the length of the command isincorrect. End code Contents 00 Normal completion 13 FCS error 14 Format error 18 Frame length error 10-3-31 TEST–– TS ...
492 10-3-32 PROGRAM READ –– RP Reads the contents of the PC user’s program area in machine language (objectcode). The contents are read as a block, from the beginning to the end. Command Format @ R P x 10 0 x 10 1 ↵ Node no. Headercode Terminator FCS Response Format @ R P x 10 0 x 10 1 x 16 1 x 16 0...
493 10-3-33 PROGRAM WRITE –– WP Writes to the PC user’s program area the machine language (object code) pro-gram transmitted from the host computer. The contents are written as a block,from the beginning. Command Format @ W P x 10 0 x 10 1 x 16 1 x 16 0 ↵ Node no. Headercode 1 byte Program (Up to ma...
494 End code Contents 14 Format error 15 Entry number data error 18 Frame length error 19 Not executable 23 User memory protected A3 Aborted due to FCS error in transmit data A4 Aborted due to format error in transmit data A5 Aborted due to entry number data error in transmit data A8 Aborted due to ...
495 10-3-35 COMPOUND COMMAND –– QQMR Registers at the PC all of the bits, words, and timers/counters that are to be read,and reads the status of all of them as a batch. The registered information is re-tained in the PC until it is overwritten by the COMPOUND COMMAND or thePC’s power is turned off. C...
496 Limitations The registered data is checked from the beginning and the data will be regis-tered up to any errors. For example, if a command attempts to register 129items, a frame length error (end code 18) will occur but the first 128 items will beregistered. DM 6656 to DM 6999 do not exist, but ...
497 Response Format , @ Q Q x 10 0 x 10 1 x 16 1 x 16 0 I R x 16 3 x 16 2 x 16 1 x 16 0 ↵ ON/OFF x 10 3 x 10 2 x 10 1 x 10 0 ON/OFF Node no. Headercode Sub-headercode End code Timer/CounterIf PV is specified the sta-tus of the Completion Flagis also returned. Data break Bit dataON/OFF Word dataIR, S...
498 Limitations Multiple responses to a command can be cancelled with this command. This command is valid even without the FCS code and terminator. PC Settings PC Mode UM Area RUN MONITOR PROGRAM Write-protected Read-protected OK OK OK OK OK Execution Conditions Commands Responses Single Multiple Si...
499 Execution Conditions Commands Responses Single Multiple Single Multiple --- --- OK --- End Codes There are no end codes with this command. 10-3-40 Undefined Command –– IC This response is returned if the header code of a command cannot be decoded.Check the header code. Response Format @ I C x 10...
501 Appendix A Standard Models CPU Rack Name Specifications Model number CPU Units (All models are pro- UM DM I/O points RS-232C --- vided with clock function and slots 3.2K words 4K words 640 No C200HE-CPU11-E for communications exceptCPU11-E.) 7.2K words 6K words 880 No C200HE-CPU32-E CPU11-E.) Ye...
Standard Models Appendix A 502 Expansion I/O Racks Name Specifications Model number Power Supply Units 100 to 120/200 to 240 VAC C200HW-PA204 100 to 120/200 to 240 VAC (with 24-VDC output terminals) C200HW-PA204S 24 VDC C200HW-PD024 Expansion I/O Backplanes 3 slots C200HW-BI031 5 slots C200HW-BI051 ...
Standard Models Appendix A 506 Name Model number Specifications Position Control Units 1 axis Pulse output; speeds: 1 to 100,000 pps C200H-NC111 1 axis Pulse output; directly connects toservomotor driver; compatible with linedriver; speeds: 1 to 250,000 pps C200H-NC112 1 axis Pulse output; directly ...
Appendix A Standard Models 507 Name Model number Specifications SYSMAC LINK Unit(optical fiber cable) Connect with H-PCF cable. A BusConnection Unit must be ordered Data link table: 918 words C200HW-SLK13 separately. Data link table: 2,966 words C200HW-SLK14 Power SupplyAdapter Required when supplyi...
Standard Models Appendix A 508 Link Adapters Name Specifications Model number Link Adapters 3 RS-422 connectors 3G2A9-AL001 3 optical connectors (APF/PCF) 3G2A9-AL002-PE 3 optical connectors (PCF) 3G2A9-AL002-E 1 connector for RS-232C; 2 for RS-422 3G2A9-AL003 1 connector each for APF/PCF, RS-422, a...
Appendix A Standard Models 509 Model Numbers The above cable model numbers specify the type of cable, the length, and the type of connectors attached. S3200-CN -20-25 1. 2. 3. 1. S3200-CN specifies H-PCF optical fiber cable. 2. The boxes ( ) are replaced by codes indicating the standard model length...
Standard Models Appendix A 510 Plastic Clad Optical Fiber Cable for SYSMAC BUS Name Specifications Model number Standards Plastic Clad Optical Fiber 0.1 m, w/connectors Ambient temp: ° ° 3G5A2-OF011 --- Cables (indoor) 1 m, w/connectors –10 ° to 70 ° C 3G5A2-OF101 2 m, w/connectors 3G5A2-OF201 3 m, ...
Appendix A Standard Models 511 Name Stan- dards Model number Specifications Optical Fiber Cable Connector SYSMAC NET: S3200-LSU03-01EB700-AL001C500-SNT31-V4 Full-lock con-nector for NSU,NSB, and C500SYSMAC NETLink Unit S3200-COCH62M --- SYSMAC BUS: C200H-RM001-PV1C200H-RT001/RT002-PC500-RM001-(P)V1C...
Standard Models Appendix A 512 Optical Power Tester Name Specifications Head Unit Model number Stan- dards Optical Power Tester (see note)(provided with a connectoradapter, light source unit, small SYSMAC NET: CV500-SNT31C200HS-SNT32 S3200-CAT2002 (provided withthe Tester) S3200-CAT2000 --- single-h...
Appendix A Standard Models 513 Programming Devices Name Specifications Model number Stan- dards Programming Consoles Hand-Held, w/backlight C200H-PRO27-E U, C 2-m Connecting Cable included CQM1-PRO01-E U, C Programming ConsoleMounting Bracket Used to attach Hand-held Programming Console to apanel. C...
Standard Models Appendix A 514 Name Standards Model number Specifications Relay 24 VDC G6B-1174P-FD-US --- Backplane Insula- For C200HW-BC031 (3-slot CPU Backplane) C200H-ATT31 --- tion Plates For C200HW-BC051 (5-slot CPU Backplane) C200H-ATT51 For C200HW-BC081 (8-slot CPU Backplane) C200H-ATT81 For...
Appendix A Standard Models 515 Protocol Support Software Name Specifications Model number Stan- dards Protocol Support Software 3.5”, 2HD for IBM PC/AT compatible C200HW-ZW3AT1-E --- Training Materials Name Specifications Model number Stan- dards SYSMAC Training System Includes text book, cassette t...
517 Appendix B Programming Instructions A PC instruction is input either by pressing the corresponding Programming Console key(s) (e.g., LD, AND, OR,NOT) or by using function codes. To input an instruction with its function code, press FUN, the function code, andthen WRITE. Refer to the pages listed...
523 Appendix C Error and Arithmetic Flag Operation The following table shows the instructions that affect the N, OF, UF, ER, CY, GR, LE and EQ flags. In general, N indicates a negative result, OF indicates that the result of a 16-bit calculation is greater than 32,767(7FFF) or the result of a 32-bit...
527 Appendix D Word Assignment Recording Sheets This appendix contains sheets that can be copied by the programmer to record I/O bit allocations and terminalassignments, as well as details of work bits, data storage areas, timers, and counters.
529 Programmer: Program: Date: Page: Area: Word: Bit Usage Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Area: Word: Bit Usage Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Area: Word: Bit Usage Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Area: Word: Bit Usage Notes 00 01 0...
530 Programmer: Program: Date: Page: Word Contents Notes Word Contents Notes Data Storage
531 Programmer: Program: Date: Page: TC address T or C Set value Notes TC address T or C Set value Notes Timers and Counters
533 Appendix E Program Coding Sheet The following page can be copied for use in coding ladder diagram programs. It is designed for flexibility, allowingthe user to input all required addresses and instructions. When coding programs, be sure to specify all function codes for instructions and data are...
535 Appendix F Data Conversion Tables Normal Data Decimal BCD Hex Binary 00 00000000 00 00000000 01 00000001 01 00000001 02 00000010 02 00000010 03 00000011 03 00000011 04 00000100 04 00000100 05 00000101 05 00000101 06 00000110 06 00000110 07 00000111 07 00000111 08 00001000 08 00001000 09 00001001...
Standard Models Appendix F 536 Signed Binary Data Decimal 16-bit Hex 32-bit Hex 21474836472147483646 ... 327683276732766 ... 543210 –1–2–3–4–5 ... –32767–32768–32769 ... –2147483647–2147483648 ------ ... --- 7FFF 7FFE ... 000500040003000200010000 FFFF FFFE FFFDFFFC FFFB ... 80018000 --- ... ------ 7...
537 Appendix G Extended ASCII Programming Console Displays Bits 0 to 3 Bits 4 to 7 BIN 0000 0001 0010 0011 0100 0101 0110 0111 1010 1011 1100 1101 1110 1111 HEX 0 1 2 3 4 5 6 7 A B C D E F 0000 0 NUL DLE Space 0 @ P ` p 0 @ P ` p 0001 1 SOH DC 1 ! 1 A Q a q ! 1 A Q a q 0010 2 STX DC 2 " 2 B R b ...
539 Glossary address The location in memory where data is stored. For data areas, an address con-sists of a two-letter data area designation and a number that designates theword and/or bit location. For the UM area, an address designates the instructionlocation (UM area). In the FM area, the address...
Glossary 540 bit designator An operand that is used to designate the bit or bits of a word to be used by aninstruction. bit number A number that indicates the location of a bit within a word. Bit 00 is the rightmost(least-significant) bit; bit 15 is the leftmost (most-significant) bit. building-bloc...
Glossary 541 counter A dedicated group of digits or words in memory used to count the number oftimes a specific process has occurred, or a location in memory accessedthrough a TC bit and used to count the number of times the status of a bit or anexecution condition has changed from OFF to ON. CPU An...
Glossary 542 differentiated instruction An instruction that is executed only once each time its execution condition goesfrom OFF to ON. Non-differentiated instructions are executed each cycle as longas the execution condition stays ON. differentiation instruction An instruction used to ensure that t...
Glossary 543 extended counter A counter created in a program by using two or more count instructions in suc-cession. Such a counter is capable of counting higher than any of the standardcounters provided by the individual instructions. extended timer A timer created in a program by using two or more...
Glossary 544 increment Increasing a numeric value. indirect address An address whose contents indicates another address. The contents of the se-cond address will be used as the operand. Indirect addressing is possible in theDM area only. initialization error An error that occurs either in hardware o...
Glossary 545 inverse condition A condition that produces an ON execution condition when the bit assigned to itis OFF, and an OFF execution condition when the bit assigned to it is ON. I/O capacity The number of inputs and outputs that a PC is able to handle. This numberranges from around one hundred...
Glossary 546 ladder diagram (program) A form of program arising out of relay-based control systems that uses circuit-type diagrams to represent the logic flow of programming instructions. The ap-pearance of the program is similar to a ladder, and thus the name. ladder diagram symbol A symbol used in...
Glossary 547 LR area A data area that is used in a PC Link System so that data can be transferred be-tween two or more PCs. If a PC Link System is not used, the LR area is availablefor use as work bits. main program All of a program except for the subroutines. masking ‘Covering’ an interrupt signal ...
Glossary 548 normal condition A condition that produces an ON execution condition when the bit assigned to itis ON, and an OFF execution condition when the bit assigned to it is OFF. NOT A logic operation which inverts the status of the operand. For example, ANDNOT indicates an AND operation with th...
Glossary 549 output device An external device that receives signals from the PC System. output point The point at which an output leaves the PC System. Output points correspondphysically to terminals or connector pins. output signal A signal being sent to an external device. Generally an output sign...
Glossary 550 Programmable Controller A computerized device that can accept inputs from external devices and gener-ate outputs to external devices according to a program held in memory. Pro-grammable Controllers are used to automate control of external devices. Al-though single-component Programmable...
Glossary 551 Remote I/O System A system in which remote I/O points are controlled through a Master mounted toa CPU Rack or an Expansion I/O Rack connected to the CPU Rack. Remote I/O Unit Any of the Units in a Remote I/O System. Remote I/O Units include Masters,Slaves, Optical I/O Units, I/O Link Un...
Glossary 552 Slave Short for Remote I/O Slave Unit. Slave Rack A Rack containing a Remote I/O Slave Unit and controlled through a Remote I/OMaster Unit. Slave Racks are generally located away from the CPU Rack. slot A position on a Rack (Backplane) to which a Unit can be mounted. software error An e...
Glossary 553 terminal instruction An instruction placed on the right side of a ladder diagram that uses the finalexecution conditions of an instruction line. terminator The code comprising an asterisk and a carriage return (* CR) which indicates theend of a block of data, whether it is a single-fram...
Glossary 554 word setting made on the Unit is added to 32 times the word multiplier to arrive atthe actual word to be allocated. work bit A bit in a work word. work word A word that can be used for data calculation or other manipulation in program-ming, i.e., a ‘work space’ in memory. A large portio...
555 Index A address tracing. See tracing, data tracing.addresses, in data area, 26advanced I/O instructions 7-SEGMENT DISPLAY OUTPUT, 337DIGITAL SWITCH INPUT, 340functions, 336HEXADECIMAL KEY INPUT, 344MATRIX INPUT, 349TEN-KEY INPUT, 346 Analog Timer Unit, programming examples, 130application exampl...
Index 559 instructions combining, AND LD and OR LD, 84controlling bit status using KEEP(11), 121 using OUT and OUT NOT, 150 format, 138 notation, 138structure, 75using logic blocks, 81 ladder diagram instructions, 149–150 LEDs. See CPU Unit indicators leftmost, definition, 26 Link System, flags and ...
561 Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual. Cat. No. W303-E1-4 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to theprevious version. Revision code Date Rev...
Omron Manuals
-
Omron VIBRATING MESH NEBULIZER NE-U22V
User Manual
- Omron ZS-MDC User Manual
- Omron ZS-MDC Manual
- Omron W343-E1-07 User Manual
- Omron W343-E1-07 Manual
-
Omron V720-SERIES V720-HS04
User Manual
-
Omron V600-HA
User Manual
-
Omron V600-HA
Manual
-
Omron V530-R160E
User Manual
-
Omron V530-R160E
Manual
-
Omron SYSMAC CP CP1E-N@@D@-@
User Manual
- Omron SYSMAC CJ1W-EIP21 User Manual
-
Omron Sysmac CJ1 CPU6 HR
User Manual
-
Omron V400-H111
User Manual
-
Omron V400-H111
Manual
-
Omron STRAPLESS HR-210
User Manual
-
Omron sc100
User Manual
-
Omron sc100
Manual
-
Omron RX-3
User Manual
-
Omron RX-3
Manual