C200H Programmable Controllers(CPU01-E/03-E/11-E)Operation ManualRevised June 2003
!5Application PrecautionsxviCaution Failure to abide by the following precautions could lead to faulty operation of thePC or the system, or could dama
90one instruction line, the instruction lines are coded first before the instructionthat they control.00002000040000300005R: reset inputS: set input K
91Work Bit Applications Examples given later in this subsection show two of the most common waysto employ work bits. These should act as a guide to th
92ple, IR 00100 must be left ON continuously as long as IR 00001 is ON andboth IR 00002 and IR 00003 are OFF, or as long as IR 00004 is ON and IR00005
93The number of times any particular bit can be assigned to conditions is notlimited, so use them as many times as required to simplify your program.O
944-10 Program ExecutionWhen program execution is started, the CPU cycles the program from top tobottom, checking all conditions and executing all ins
95SECTION 5Instruction SetThe C200H PC has a large programming instruction set that allows for easy programming of complicated control proc-esses. Thi
965-16 Data Conversion 149. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
975-1 NotationIn the remainder of this manual, all instructions will be referred to by theirmnemonics. For example, the Output instruction will be cal
98will have access to the other area. The border between the IR and SR areascan, however, be crossed for a single operand, i.e., the last bit in the I
995-4 Differentiated InstructionsMost instructions are provided in both differentiated and non-differentiatedforms. Differentiated instructions are di
5Application Precautionsxvii• When replacing parts, be sure to confirm that the rating of a new part is correct.Not doing so may result in malfunction
1005-5 Coding Right-hand InstructionsWriting mnemonic code for ladder instructions is described in Section 4 Writ-ing and Inputting the Program. Conve
101The following diagram and corresponding mnemonic code illustrates thepoints described above.Address Instruction Data00000 LD 0000000001 AND 00001
102LD or LD NOT, to form ‘logic blocks’ that are combined by the right-hand in-struction. An example of this for SFT(10) is shown below.IPRSFT(10)HR 0
103B: BitIR, SR, AR, HR, TC, LROR – ORBB: BitIR, SR, AR, HR, TC, LROR NOT – OR NOTBThere is no limit to the number of any of these instructions, or re
104In order to draw ladder diagrams, it is not necessary to use AND LD and ORLD instructions, nor are they necessary when inputting ladder diagrams di
105Flags There are no flags affected by these instructions.5-7-2 DIFFERENTIATE UP and DOWN – DIFU(13) and DIFD(14)B: BitIR, AR, HR, LRLadder Symbols O
106ample of how DIFU(13) can be used to ensure that CMP(20) is executed onlyonce each time the desired execution condition goes ON.00000CMP(20)HR 10DM
107the set input; R, the reset input. KEEP(11) operates like a latching relay thatis set by S and reset by R.When S turns ON, the designated bit will
108If a HR bit or an AR bit is used, bit status will be retained even during apower interruption. KEEP(11) can thus be used to program bits that will
109IL(02) and ILC(03) do not necessarily have to be used in pairs. IL(02) can beused several times in a row, with each IL(02) creating an interlocked
1SECTION 1IntroductionThis section gives a brief overview of the history of Programmable Controllers and explains terms commonly used inladder-diagram
110The following diagram shows IL(02) being used twice with one ILC(03).0000000001ILC(03)IL(02)00004000050000300002IL(02)00502TIM 511CPRCNT001IR 01000
111any instructions in between. The status of timers, counters, bits used in OUT,bits used in OUT NOT, and all other status bits controlled by the ins
1125-11 NO OPERATION – NOP(00)NOP(00) is not generally required in programming and there is no laddersymbol for it. When NOP(00) is found in a program
1135-12-1 TIMER – TIMN: TC number# (000 through 511)Ladder SymbolDefiner ValuesSV: Set value (word, BCD)IR, AR, DM, HR, LR, #Operand Data AreasTIM NSV
114Flags ER: SV is not in BCD.Indirectly addressed DM word is non-existent. (Content of *DM wordis not BCD, or the DM area boundary has been exceeded.
115To create delays, the Completion Flags for two TIM are used to determinethe execution conditions for setting and reset the bit designated forKEEP(1
11601000 TIM 001000000100001000 TIM 0010100000204001.5 s00000002041.5 s 1.5 sTIM 001#0015Address Instruction Operands00000 LD 0100000001 AND NOT TIM 0
117A simpler but less flexible method of creating a flicker bit is to AND one of theSR area clock pulse bits with the execution condition that is to b
118The SV of the timers can be set in the range #0000 to #9999 (BCD). If theSV for a timer is set to #0000 or #0001, it will operate in the following
119Execution condition on count pulse (CP)Execution condition on reset (R)ONOFFONOFFCompletion FlagONOFFPVSVSV – 1SV – 2000200010000SVProgram executio
21-1 OverviewA PC (Programmable Controller) is basically a CPU (Central Processing Unit)containing a program and connected to input and output (I/O) d
120In the following example, 00000 is used to control when CNT 001 operates.CNT 001, when 00000 is ON, counts down the number of OFF to ONchanges in 0
12100000 TIM 001 CNT 002TIM 00100001CNT 00200201CPR005.0 sCNT002#0100TIM 001#0050Address Instruction Operands00000 LD 0000000001 AND NOT TIM 00100002
122The present value (PV) will be incremented by one whenever CNTR(12) isexecuted with an ON execution condition for II and the last execution condi-t
1235-13 Data ShiftingAll of the instructions described in this section are used to shift data, but indiffering amounts and directions. The first shift
124The following example uses the 1-second clock pulse bit (25502) so that theexecution condition produced by 00005 is shifted into a 3-word register
125used to detect faulty products in the shoot so that the pusher output and HR0003 of the shift register can be reset as required.Chute(00500)Sensor(
126tion, the status to be put into the register, the shift pulse, and the reset input.The control word is allocated as follows:15 14 13 12 Not used.Sh
1275-13-3 ARITHMETIC SHIFT LEFT – ASL(25)Wd: Shift wordIR, AR, DM, HR, LRLadder Symbols Operand Data AreasASL(25)Wd@ASL(25)WdWhen the execution condit
1285-13-5 ROTATE LEFT – ROL(27)Wd: Rotate wordIR, AR, DM, HR, LRLadder Symbols Operand Data AreasROL(27)Wd@ROL(27)WdWhen the execution condition is OF
129Flags ER: Indirectly addressed DM word is non-existent. (Content of *DM wordis not BCD, or the DM area boundary has been exceeded.)CY: Receives the
3Actually there is not a total equivalence between these terms. The term con-dition is only used to describe ladder diagram programs in general and is
130St and E must be in the same data area, and E must be less than or equal toSt.When the execution condition is OFF, SRD(75) is not executed. When th
131Indirectly addressed DM word is non-existent. (Content of *DM wordis not BCD, or the DM area boundary has been exceeded.)5-13-10 REVERSIBLE WORD SH
132be set to 0000. The data changes that would occur for the given register andcontrol word contents are also shown.1234000000002345345600004567567867
133EQ: ON when all zeros are transferred to D.5-14-2 MOVE NOT – MVN(22)S: Source wordIR, SR, AR, DM, HR, TC, LR, #D: Destination wordIR, AR, DM, HR, L
13400 0 0 0 111000100001Bit 15Bit 00SC1101001001110001S+10001101100100111S+2 . . . . . . . . . . . .0111000110001010S+151000001100000111S+
13500 0 0 0 111000100001Bit 15Bit 00DC1101001001110001D+10001101100100111D+2 . . . . . . . . . .0111000110001010D+151000001100000111D+30 1 1
1362S3 4 5 2St3452St+13452St+23452E345BSET(71) can be used to change timer/counter PV. (This cannot be donewith MOV(21) or MVN(22).) BSET(71) can also
1375-14-6 BLOCK TRANSFER – XFER(70)N: Number of words (BCD)IR, SR, AR, DM, HR, TC, LR, #S: Starting source wordIR, SR, AR, DM, HR, TC, LRLadder Symbol
138When the execution condition is OFF, XCHG(73) is not executed. When theexecution condition is ON, XCHG(73) exchanges the content of E1 and E2.E2E1I
139Of must be a BCD. SBs must be in the same data area as SBs+Of.When the execution condition is OFF, COLL(81) is not executed. When theexecution cond
41-4 OMRON Product TerminologyOMRON products are divided into several functional groups that have ge-neric names. Appendix A Standard Models list prod
1405-14-11 MOVE DIGIT – MOVD(83)S: Source wordIR, SR, AR, DM, HR, TC, LR, #Di: Digit designator (BCD)IR, AR, DM, HR, TC, LR, #Ladder SymbolsOperand Da
1415-15 Data ComparisonThis section describes the instructions used for comparing data. CMP(20) isused to compare the contents of two words; BCMP(68)
142The following example shows the comparisons made and the results pro-vided for MCMP(19). Here, the comparison is made during each cycle when00000 i
143Flags ER: Indirectly addressed DM word is non-existent. (Content of *DM wordis not BCD, or the DM area boundary has been exceeded.)EQ: ON if Cp1 eq
144Because all of the comparisons here use to the timer’s PV as reference, theother operand for each CMP(20) must be in 4-digit BCD.#2000CMP(20)TIM 01
145Limitations Can be performed with the CPU11-E only.When the execution condition is OFF, CMPL(60) is not executed. When theexecution condition is ON
1465-15-4 BLOCK COMPARE – BCMP(68)CD: Compare dataIR, SR, DM, HR, TC, LR, #CB: First comparison block wordIR, SR, DM, HR, TC, LRLadder SymbolsOperand
147The following example shows the comparisons made and the results pro-vided for BCMP(68). Here, the comparison is made during each cycle when00000 i
148The following example shows the comparisons made and the results pro-vided for TCMP(85). Here, the comparison is made during each cycle when00000 i
1495-16 Data ConversionThe conversion instructions convert word data that is in one format into an-other format and output the converted data to speci
5Guide and to Operation Manuals and System Manuals for details onindividual Units.8. Test the program in an actual control situation and carry out fin
150When the execution condition is OFF, BINL(58) is not executed. When theexecution condition is ON, BINL(58) converts an eight-digit number in S andS
1515-16-4 DOUBLE BINARY-TO-DOUBLE BCD – BCDL(59)S: First source word (binary)IR, SR, AR, DM, HR, LRR: First result wordIR, AR, DM, HR, LRLadder Symbol
152For the source data, the seconds is designated in bits 00 through 07 and theminutes is designated in bits 08 through 15 of S. The hours is designat
153For the results, the seconds is placed in bits 00 through 07 and the minutesis placed in bits 08 through 15 of R. The hours is placed in R+1. The m
154then one bit will be turned ON in each of consecutive words beginning with R.(See examples, below.)The following is an example of a one-digit decod
155Flags ER: Undefined digit designator, or R plus number of digits exceeds a dataarea.Indirectly addressed DM word is non-existent. (Content of *DM w
156All source words must be in the same data area.When the execution condition is OFF, DMPX(77) is not executed. When theexecution condition is ON, DM
157Some example Di values and the word-to-digit conversions that they produceare shown below.0123RDi: 0011 SS + 10123 SS + 1S + 2S + 3Di: 0030R SS + 1
158assumed that the bit with status 1 (ON) shown is the highest bit that is ON inthe word.00000DMPX(77)010HR 20#0010LR 10HR 20#0012 IR 01001000 :01011
159half of D to receive the first 7-segment display code (rightmost or leftmost 8bits) are designated in Di. If multiple digits are designated, they w
6A Programming Console is the simplest form of programming device for OM-RON PCs. Although a Programming Console Adapter is sometimes re-quired, all P
160The table underneath shows the original data and converted code for all hex-adecimal digits.2021222320212223202122232021222301000001011110110123111
1615-16-10 ASCII CONVERT – ASC(86)S: Source wordIR, SR, AR, DM, HR, TC, LRDi: Digit designatorIR, AR, DM, HR, TC, LR, #Ladder SymbolsOperand Data Area
162Some examples of Di values and the 4-bit binary to 8-bit ASCII conversionsthat they produce are shown below.0123SDi: 0011 D0123Di: 0030S0123Di: 013
163The addition and subtraction instructions include CY in the calculation as wellas in the result. Be sure to clear CY if its previous status is not
1645-17-4 CLEAR CARRY – CLC(41)Ladder SymbolsCLC(41) @CLC(41)When the execution condition is OFF, CLC(41) is not executed.When the ex-ecution conditio
165last digit is preserved in R+1 so that the entire result can be later handled aseight-digit data.TR 0MOV(21)#0001DM 010100002CLC(41)ADD(30) LR 25#6
166Flags ER: Au and/or Ad is not BCD.Indirectly addressed DM word is non-existent. (Content of *DM wordis not BCD, or the DM area boundary has been ex
167Flags ER: Mi and/or Su is not BCD.Indirectly addressed DM word is non-existent. (Content of *DM wordis not BCD, or the DM area boundary has been ex
168turned OFF for at least one cycle (resetting HR 2100) and then turned backON.CLC(41)@SUB(31)010DM 0100HR 20CLC(41)@SUB(31)#0000HR 20HR 21TR 025504H
169Second Subtraction0000HR 20 –7577CY –0HR 20 2423 (0000 + (10000 – 7577))CY 1 (negative result)In the above case, the program would turn ON HR 2100
71-7 Available ManualsThe following table lists other manuals that may be required to program and/or operate the C200H. Operation Manuals and/or Opera
170and DM 0001 so that a negative result can be subtracted from 0 (inputting an8-digit constant is not possible).CLC(41)@SUBL(55)HR 20120DM 0100CLC(41
1715-17-9 BCD MULTIPLY – MUL(32)Md: Multiplicand (BCD)IR, SR, AR, DM, HR, TC, LR, #Mr: Multiplier (BCD)IR, SR, AR, DM, HR, TC, LR, #Ladder SymbolsOper
1725-17-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,
173is divided by Dr and the result is placed in R and R + 1: the quotient in R andthe remainder in R + 1.R+1 RDdDrQuotientRemainderFlags ER: Dd or Dr
174divided by the content of Dr and Dr+1 and the result is placed in R to R+3:the quotient in R and R+1, the remainder in R+2 and R+3.R+1 RQuotientRem
175The mantissa is expressed as a value less than one, i.e., to seven decimalplaces.15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00First wordExponent
176DM 00003452@MOV(21)#0000HR 0000000@MOV(21)#0000HR 02@MOV(21)#4000HR 01@MOV(21)#4000HR 03@MOVD(83)DM 0000#0021HR 01@MOVD(83)DM 0000#0300HR 00@MOVD(8
1775-17-14 SQUARE ROOT – ROOT(72)Sq: First source word (BCD)IR, SR, AR, DM, HR, TC, LRR: Result wordIR, AR, DM, HR, LR,Ladder Symbols Operand Data Are
178010601700000@MOV(21)010DM 0101@ROOT(72)DM 0100DM 0102@MOV(21)#0000011@MOVD(83)DM 0102#0012011@MOVD(83)DM 0102#0210DM 0103@CMP(20)DM 0103#4900@INC(3
1795-18 Binary CalculationsThe binary calculation instructions - ADB(50), SBB(51), MLB(52) andDVB(53) - all perform arithmetic operations on hexadecim
8Name ContentsCat. No.Heat/Cool Temperature Control Unit OperationManualW240 Information on Heating and Cooling TemperatureControl UnitPID Control Uni
180In the case below, A6E2 + 80C5 = 127A7. The result is a 5-digit number, soCY (SR 25504) = 1, and the content of R + 1 becomes #0001.R+1: HR 11 R: H
181In the case below, 4F52A6E2 + EC3B80C5 = 13B8E27A7. The sum of thelower 4-digit addition is a 5-digit number, so CY (SR 25504) = 1, and the sumof t
182HR 11, and either #0000 or #0001 is placed in HR 12 (0001 indicates a nega-tive answer).CLC(41)00000SBB(51)010DM 0100HR 10MOV(21)#0000HR 12MOV(21)#
183#0000 – 6851 –1 (from CY = 1) = 0000 + (10000 – 6851 – 1) = 97AE.The content of HR 12, #0001, indicates a negative result.R: HR 10F92DMi: IR 0105A1
1845-18-4 BINARY DIVIDE – DVB(53)Dd: Dividend word (binary)IR, SR, AR, DM, HR, TC, LR, #Dr: Divisor word (binary)IR, SR, AR, DM, HR, TC, LR, #Ladder S
185Flags ER: Indirectly addressed DM word is non-existent. (Content of *DM wordis not BCD, or the DM area boundary has been exceeded.)EQ: ON when the
18610 0110 0110 0110 0115 0001 0101 0101 0101 0111 0111 0111 0111 0115 0015 00I1I2RFlags ER: Indirectly addressed DM word is non-existent. (Content of
1875-19-5 EXCLUSIVE NOR – XNRW(37)I1: Input 1IR, SR, AR, DM, HR, TC, LR, #I2: Input 2IR, SR, AR, DM, HR, TC, LR, #Ladder SymbolsOperand Data AreasR: R
188Whereas subroutine calls are controlled from within the main program, sub-routines activated by interrupts are triggered when the interrupt signal
1895-20-3 SUBROUTINE ENTER – SBS(91)N: Subroutine number# (00 to 99)Ladder Symbol Definer Data AreasSBS(91) NDescription A subroutine can be executed
!!!vNotice:OMRON products are manufactured for use according to proper procedures by a qualified operatorand only for the purposes described in this m
9Group DescriptionDM (data memory) DM operations are used to edit DM data in hexadecimal or ASCII form. There are also featuresfor copying, filling an
190Although subroutines 00 through 31 can be called by using SBS(91), theyare also activated by interrupt signals from Interrupt Input Units. Subrouti
191Limitations D may be a constant only when CC is 000 or 001. D must be a word addresswhen CC is 002. See below for details. INT(89) is used only to
192The following program shows the overall structure and operation of thescheduled interrupt.Here, the scheduled subroutine is started and will be rep
193 5-21 Step InstructionsThe step instructions STEP(08) and SNXT(09) are used in conjunction to setup breakpoints between sections in a large progra
194timers in the step are reset to their SVs. Counters, shift registers, and bitsused in KEEP(11) maintain status. Two simple steps are shown below.SN
195Flags 25407: Step Start Flag; turns ON for one cycle when STEP(08) is executedand can be used to reset counters in steps as shown below if neces-sa
196The following diagram demonstrates the flow of processing and the switchesthat are used for execution control.Process AProcess BProcess CLoadingPar
197the next step. Each step starts when the switch that indicates the previousstep has been completed turns ON.SNXT(09) 1280000001 (SW1)STEP(08) 12800
198The following process requires that a product is processed in one of twoways, depending on its weight, before it is printed. The printing process i
199start either process A or process B. Both of the steps for these processesend with a SNXT(09) that starts the step for process C.SNXT(09) HR 000100
101-8-3 Offline and Online OperationsGroup DescriptionSYSTEM SETUP The SYSTEM SETUP provides settings for the operating environment of the LSS, includ
200The following process requires that two parts of a product pass simultane-ously through two processes each before they are joined together in a fif
201Process B is thus reset directly and process D is reset indirectly before exe-cuting the step for process E.STEP(08) LR 0000SNXT(09) LR 0001STEP(08
202Address Instruction Operands Address Instruction Operands00000 LD 0000100001 SNXT(09) LR 000000002 SNXT(09) LR 000200003 STEP(08) LR 0000Process A0
203FAL(06) produces a non-fatal error and FAL(07) produces a fatal error. WhenFAL(06) is executed with an ON execution condition, the ALARM/ERRORindic
2045-22-3 MESSAGE DISPLAY – MSG(46)FM: First message wordIR, AR, DM, HR, LRLadder Symbols Operand Data AreasMSG(46)FM@MSG(46)FMWhen executed with an O
MSGABCDEFGHIJKLMNOP205The following example shows the display that would be produced for the in-struction and data given when 00000 was ON. If 00001 g
206Flags ER: S and S+15 are not in the same data area.Indirectly addressed DM word is non-existent. (Content of *DM wordis not BCD, or the DM area bou
207Bit Control If the leftmost 8 bits of P contain A3, SYS(49) is used to set set system oper-ating parameters. To be effective, it must be programmed
208Limitations Can be performed with the CPU11-E only. For trigonometric functions, x, thecontent of S, must be in BCD form and satisfy the condition
Y0Y2Y1Y3Y4YmX0X1X2X3X4XmXY209VCAL(69) linear approximation is specified when C is a memory address.Word C is the first word of the continuous block of
11SECTION 2Hardware ConsiderationsThis section provides information on hardware aspects of the C200H that are relevant to programming and software op-
210In this case, the input data word, IR 010, contains #0014, and f(0014) =#0726 is output to R, IR 011. XY$1F20$0F00$0726$0402(0,0)$0005 $0014 $001A
211IORF(97) can be used to refresh I/O words allocated to the CPU or an Ex-pansion I/O Rack only. It cannot be used for other I/O words.St must be les
212send data to a node on the same Subsystem (i.e., network). Refer to theSYSMAC NET Link System Manual for details.Word Bits 00 to 07 Bits 08 to 15C
213Indirectly addressed DM word is non-existent. (Content of *DM wordis not BCD, or the DM area boundary has been exceeded.)There is no SYSMAC NET Lin
214SYSMAC LINK Systems Refer to the SYSMAC LINK System Manual for details.Word Bits 00 to 07 Bits 08 to 15C Number of words (0 to 256 in 4-digit hexad
215If multiple SEND(90)/RECV(98) operations are used, the following flags mustbe used to ensure that any previous operation has completed before attem
216SR KEEP(11)12802DIFU(13) 12801@MOV(21)#000ADM 00001280000000 252041280212801@MOV(21)#0000DM 0001@MOV(21)#0003DM 0002XFER(70)#0010000 DM 0010@SEND(9
217Address Instruction Operands Address Instruction Operands00000 LD 0000000001 AND 2520400002 AND NOT 1280200003 LD 1280100004 KEEP(11) 1280000005 LD
219SECTION 6Program Execution TimingThe timing of various operations must be considered both when writing and debugging a program. The time required t
2206-1 Cycle TimeTo aid in PC operation, the average, maximum, and minimum cycle timescan be displayed on the Programming Console or any other Program
122-1 IndicatorsCPU indicators provide visual information on the general operation of the PC.Although not substitutes for proper error programming usi
2216-1-1 CPU01-E, 03-E Cycle Time PCcycletimeEnd of program? YESNOYESNOPower applicationClears IR area andresets all timersChecks I/O UnitconnectionsR
222formed in cyclic fashion, with each scan forming one cycle. The cycle time isthe time that is required for the CPU to complete one of these cycles.
223Special I/O Unit RefreshUnit Time requiredC200H-ID501/215 0.8 ms eachC200H-OD501/215 0.8 ms each when set for 32 I/O pts.C200H-MD501/2151.8 ms each
2246-1-2 CPU11-E Cycle Time YESNONOPower applicationClears IR area andresets all timersChecks I/O Unit connectionsResets watchdog timerChecks hardwar
225The first three operations immediately after power application are performedonly once each time the PC is turned on. The rest of the operations are
226Even if the cycle time does not exceed the set value of the watchdog timer, along cycle time can adversely affect the accuracy of system operations
227The equation for the cycle time from above is as follows:Cycle time = overseeing time + Link Unit servicing time+ peripheral device servicing time
228The overseeing time is fixed at 2.6 ms. A Link Unit is mounted, so the LinkUnit servicing time is 8.0 ms.The Programming Console is mounted to the
229InstructionOFF execution time (µs)ON execution time (µs)ConditionsCNT Constant for SV 2.25 R: 2.25IL: 2.25JMP: 2.25*DM for SV R: 160IL: 2.25JMP: 2
230InstructionOFF execution time (µs)ON execution time (µs)ConditionsSCAN(18) Constant for SV 311 3.75*DM for SV412MCMP(19) Comparing 2 words, result
13onto an Expansion I/O Backplane to which a Power Supply and up to eightother Units are mounted.An Expansion I/O Rack is always connected to the CPU
231InstructionOFF execution time (µs)ON execution time (µs)ConditionsDEC(39) When decrementing a word 82 2.25When decrementing *DM167STC(40) --- 27 1.
232InstructionOFF execution time (µs)ON execution time (µs)ConditionsBCMP(68) Comparing constant to word-designatedtable674 3.75Comparing *DM b *DM-de
233InstructionOFF execution time (µs)ON execution time (µs)ConditionsASC(86) Word b word 270 3.75*DM b *DM454INT(89) When reading interrupt mask 265 3
2346-4 I/O Response TimeThe I/O response time is the time it takes for the PC to output a control signalafter it has received an input signal. The tim
235The PC takes longest to respond when it receives the input signal just afterthe I/O refresh phase of the cycle. In this case the CPU does not recog
237SECTION 7Program Monitoring and ExecutionThis section provides the procedures for monitoring and controlling the PC through a Programming Console.
2387-1 Monitoring Operation and Modifying DataThe simplest form of operation monitoring is to display the address whoseoperand bit status is to be mon
239LD and OUT can be used only to designate the first address to be displayed;they cannot be used when an address is already being monitored.Key Seque
240Bit Monitor0000000000LD 0000100001^ ON00000CONT 00001Word Monitor0000000000CHANNEL 00000000CHANNEL LR 01 cL01 FFFF cL00 0000
241Multiple Address Monitoring0000000000TIM 000 T000 010000000 T000 010000001 T000 010000001 T000 OFF 0100D000000001 T000 ^OFF
15SECTION 3Memory AreasVarious types of data are required to achieve effective and correct control. To facilitate managing this data, the PC is pro-vi
242Bit status will remain ON or OFF only as long as the key is held down; theoriginal status will return as soon as the key is released. If a timer is
243The following displays show what happens when TIM 000 is set with 00100OFF (i.e., 00500 is turned ON) and what happens when TIM 000 is reset with00
244The following example shows the displays that appear when Restore Statusis carried out normally.000000000000000FORCE RELE?00000FORCE RELEEND7-1-4 H
245The following example shows the effects of changing the PV of a timer.This example is in MONITOR modeTimingTimingPV changedTimingTiming0000000000TI
2460000000000CH DM 0000D0000 4412D0000 ABD0000 41427-1-6 3-word MonitorTo monitor three consecutive words together, specify the lowest numberedw
2470000000000CHANNEL DM 0000D0000 89ABD0002D0001D0000 0123 4567 89ABD0003D0002D0001 ABCD 0123 4567D0004D0003D0002 EF00 ABCD 0123D0005D0004D0003 1111
248Example3-word Monitor in progress.Stops in the middleof monitoring.Resumes previousmonitoring.D0002D0001D0000 0123 4567 89ABD0002 3CHCHANG?~0123 45
2490000000000CHANNEL 000 c000 MONTR0000000000001111 c001 MONTR000001010101010000000CHANNEL 0010000000000CHANNEL DM 0000D0000 FFFF
250Key SequenceWord currently displayed in binary.(Force Status Clear)Monitoring Operation and Modifying Data Section 7-1
251IR bit 00115 IR bit 001000000000000CHANNEL 00000000CHANNEL 001 c001 MONTR0000010101010101 c001 CHG? 000010101010101 c001 CH
163-1 IntroductionDetails, including the name, acronym, range, and function of each area aresummarized in the following table. All but the last three
252This operation can be used to change a SV from designation as a constant toa word address designation and visa verse.Key SequenceThe following exam
253Returns to original displaywith new SVCurrent SV (during change operation)SV before the change0000000000TIM 00000201SRCHTIM 00000
2547-2 Program Backup and Restore OperationsBoth Program Memory (UM) and DM area data can be backed-up on a stan-dard, commercially available cassette
255Key SequenceEXTA0WRITECLRWRITEStart recording with thetape recorder.SHIFTRECRESET[File no.][Start address][Stop address]After about 5 seconds**(Can
256Selecting ProgramMemoryStarting address ofdata to be recordedLast addressStop addressspecifiedBlinkingContinue within 5 secondsRecording in progres
2573. Specify the start address for the data that is to be restored or compared.4. Start playing the cassette tape.5. Within 5 seconds, press SHIFT an
258Restoring in progressEND reachedRestored up to ENDStop restoring using CLRComparison in progressEND reachedStop comparison using CLRCompared up to
259the preceding sections for details. An example for each operation is givenbelow.Key SequenceSavingRestoringComparingEXTCLR[File no.]VERB1Start tape
260Selecting theDM areaStart tape playbackWithin 5 secondsRestoring in progressRestoring stopped using CLR key.Restoring stopped at the end.0000000000
261Selecting theDM areaStart tape playbackWithin 5 secondsComparison in progressStopped verification using CLR KeyVerification stopped at the end.0000
17and not entered, when programming. Any data area designation without anacronym is assumed to be in either the IR or SR area. Because IR and SRaddres
263SECTION 8TroubleshootingThe C200H provides self-diagnostic functions to identify many types of abnormal system conditions. These functionsminimize
2648-1 Alarm IndicatorsThe ALARM/ERROR indicator on the front of the CPU provides visual indica-tion of an abnormality in the PC. When the indicator i
2658-4 Error MessagesThere are basically three types of errors for which messages are displayed:initialization errors, non-fatal operating errors, and
266POWER and RUN indicators will be lit and the ALARM/ERROR indicator willbe flashing. The RUN output will be ON.Error and message FAL no. Probable ca
267other fatal operating errors, the POWER and ALARM/ERROR indicators willbe lit. The RUN output will be OFF.Error and message FAL no. Probable cause
268A number of other error messages are detailed within this manual. Errors inprogram input and debugging can be examined in Section 4 and errors inca
269AR AreaAddress(es) Function0000 to 0009 Special I/O or PC Link Unit Error Flags0010 SYSMAC LINK/SYSMAC NET Link Level 1 SystemError Flags0011 SYSMA
271Appendix AStandard ModelsThe C200H is a Rack-type PC that can be configured many different ways. Here is a series of tables listingthe Units availa
Appendix AStandard Models272C200H I/O UnitsName Specifications Model numberInput Units AC Input Unit 8 pts 100 to 120 VAC C200H-IA12116 pts 100 to 120
Appendix AStandard Models273C200H Special I/O UnitsAll of the following are classified as Special I/O Units except for the ASCII Unit, which is an Int
18tains four digits, which are numbered from right to left. These digit numbersand the corresponding bit numbers for one word are shown below.Bit numb
Appendix AStandard Models274Name Model numberSpecificationsPosition Control Units 1 axis Pulse output; speeds: 1 to 99,990 pps C200H-NC1111 axis Direc
Appendix AStandard Models275Optional ProductsName Specifications Model numberI/O Unit Cover Cover for 10-pin terminal block C200H-COV11Terminal Block
Appendix AStandard Models276Optical UnitsName Specifications Model no.Optical I/O Unit No-voltage Input Unit 8 pts.100 to 120 VAClAPF/PCF 3G5A2-ID001-
Appendix AStandard Models277Optical Fiber CablePlastic Optical Fiber Cable (APF) APF stands for “All-Plastic Fiber”. Thiscable can be used to connect
Appendix AStandard Models278Peripheral DevicesProduct Description Model no.Programming Console Vertical, w/backlight 3G2A5-PRO13-EHorizontal, w/backli
Appendix AStandard Models279SYSMAC LINK Unit/SYSMAC NET Link UnitIf you are using any of the Units listed in the table below, they must bemounted to a
281Appendix BProgramming InstructionsThis appendix provides tables listing the programming instructions used with C200H PCs. The first table sum-mariz
Programming Instructions Appendix B282Function Code PageMnemonicName20 COMPARE CMP 14221 MOVE MOV 13222 MOVE NOT MVN 13323 BCD-TO-BINARY BIN 14924 BIN
Appendix BProgramming Instructions283Function Code PageMnemonicName71 BLOCK SET BSET 13572 SQUARE ROOT ROOT 17773 DATA EXCHANGE XCHG 13774 ONE DIGIT S
Programming Instructions Appendix B284Instruction Execution TimesThe following table lists the execution times for all instructions that are available
19signed as I/O bits can be used as work bits. IR area work bits are reset whenpower is interrupted or PC operation is stopped.If a Unit brings inputs
Appendix BProgramming Instructions285InstructionOFF execution time (µs)ON execution time (µs)ConditionsSNXT(09) --- 34 2.25SFT(10) With 1-word shift r
Programming Instructions Appendix B286InstructionOFF execution time (µs)ON execution time (µs)ConditionsASR(26) When shifting a word 72 2.25When shift
Appendix BProgramming Instructions287InstructionOFF execution time (µs)ON execution time (µs)ConditionsDVB(53)Word ÷ constant b word476 3.75*DM ÷ *DM
Programming Instructions Appendix B288InstructionOFF execution time (µs)ON execution time (µs)ConditionsSLD(74) When shifting 1 word 193 3When shiftin
Appendix BProgramming Instructions289IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Programming Instructions Appendix B290IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Appendix BProgramming Instructions291IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Programming Instructions Appendix B292IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Appendix BProgramming Instructions293IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Programming Instructions Appendix B294IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
TABLE OF CONTENTSviiPRECAUTIONS xiii. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Intended Audience xiv. . . . . . . . . . . . .
20two Masters are used. IR area words are allocated to Special I/O Units andSlave Racks by the unit number on the unit, as shown in the following tabl
Appendix BProgramming Instructions295IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Programming Instructions Appendix B296IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Appendix BProgramming Instructions297IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Programming Instructions Appendix B298IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Appendix BProgramming Instructions299IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Programming Instructions Appendix B300IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Appendix BProgramming Instructions301IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Programming Instructions Appendix B302IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Appendix BProgramming Instructions303IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Programming Instructions Appendix B304IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
21turns one ON then OFF, the specified Link Unit will be restarted. Other con-trol bits are OFF until set by the user.Word(s) Bit(s) Function236 00 to
Appendix BProgramming Instructions305IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Programming Instructions Appendix B306IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Appendix BProgramming Instructions307IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Programming Instructions Appendix B308IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Appendix BProgramming Instructions309IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Programming Instructions Appendix B310IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Appendix BProgramming Instructions311IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Programming Instructions Appendix B312IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
Appendix BProgramming Instructions313IR SR HR TR AR LR TC DM #00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315
315Appendix CProgramming Console OperationsThe table below lists the Programming Console operations, a brief description, and the page on which theyap
22Word(s) FunctionBit(s)253 00 to 07 FAL number output area.08 Low Battery Flag09 Cycle Time Error Flag10 I/O Verification Error Flag11 Host Computer
Programming Console Operations Appendix C316System OperationsOperation/Description Modes* Key sequencePassword InputControls access to the PC’s progra
Appendix CProgramming Console Operations317Operation/Description Modes* Key sequenceI/O Table ReadUsed to read the I/O Table. The dis-play gives the U
Programming Console Operations Appendix C318Programming OperationsOperation/Description Modes* Key sequenceAddress DesignationDisplays the specified a
Appendix CProgramming Console Operations319Operation/Description Modes* Key sequenceInstruction Insert andInstruction DeleteThe displayed instruction
Programming Console Operations Appendix C320Monitoring and Data Changing OperationsOperation/Description Modes* Key sequenceBit/Word MonitorUp to six
Appendix CProgramming Console Operations321Operation/Description Modes* Key sequenceHex/BCD Data ChangeUsed to edit the leftmost BCD or hex-adecimal v
Programming Console Operations Appendix C322Operation/Description Modes* Key sequence3-word ChangeThis operation changes the value ofa word displayed
Appendix CProgramming Console Operations323Cassette Tape OperationsOperation/Description Modes* Key sequenceProgram Memory SaveCopies data from the Pr
Programming Console Operations Appendix C324Operation/Description Modes* Key sequenceProgram Memory CompareThe procedure to compare ProgramMemory data
325Appendix DError and Arithmetic Flag OperationThe following table shows the instructions that affect the ER, CY, GT, LT and EQ flags. In general, ER
23If the content of bits 12 through 15 is B, an error has occurred in a RemoteI/O Master or Slave Unit, and the content of bits 08 through 11 will ind
Error and Arithmetic Flag Operation Appendix D326Instructions 25507 (LE)25506 (EQ)25505 (GR)25504 (CY)25503 (ER)MUL(32) Unaffected Unaffected Unaffect
Appendix DError and Arithmetic Flag Operation327Instructions 25507 (LE)25506 (EQ)25505 (GR)25504 (CY)25503 (ER)XCHG(73) Unaffected Unaffected Unaffect
329Appendix EData AreasThe data areas in the C200H are summarized below. Prefixes are included with bit and word addresses wheninputting them is requi
Data Areas Appendix E330Dedicated BitsMost of the bits in the SR and AR area are dedicated for specific purposes. These are summarized in the fol-lowi
Appendix EData Areas331Word(s) FunctionBit(s)253 12 Remote I/O Error Flag13 Normally ON Flag14 Normally OFF Flag15 First cycle254 00 1-minute clock pu
Data Areas Appendix E332Word(s) FunctionBit(s)01 14/15 Remote I/O Master Unit 1/Unit 0 Restart Bits02 00 to 04 Error Flags for Slave Racks 0 to 405 to
333Appendix FWord Assignment Recording SheetsThis appendix contains sheets that can be copied by the programmer to record I/O bit allocations and term
334Programmer: Program: Date: Page:Word: Unit:Bit Field device Notes00010203040506070809101112131415Word: Unit:Bit Field device Notes00010203040506070
335Programmer: Program: Date: Page:Area: Word:Bit Usage Notes00010203040506070809101112131415Area: Word:Bit Usage Notes0001020304050607080910111213141
336Programmer: Program: Date: Page:Word Contents Notes Word Contents NotesData Storage
24SR 236 contains the SYSMAC NET Link Loop Status Flags. Bits 00 through07 are the Loop Status Flags for operating level 0, and bits 08 through 15 are
337Programmer: Program: Date: Page:TC addressT or CSet value Notes TC addressT or CSet value NotesTimers and Counters
339Appendix GProgram Coding SheetThe following page can be copied for use in coding ladder diagram programs. It is designed for flexibility, al-lowing
340Programmer: Program: Date: Page:Address Instruction Operand(s) Address Instruction Operand(s) Address Instruction Operand(s)Program Coding Sheet
341Appendix HData Conversion TableDecimal BCD Hex Binary00 00000000 00 0000000001 00000001 01 0000000102 00000010 02 0000001003 00000011 03 0000001104
343Appendix IExtended ASCIIProgramming Console and Data Access Console DisplaysBits 0 to 3 Bits 4 to 7BIN 0000 0001 0010 0011 0100 0101 0110 0111 1010
345Glossaryaddress The location in memory where data is stored. For data areas, an addressconsists of a two-letter data area designation and a number
Glossary346cial purposes, such as holding the status input from external devices, whileother bits are available for general use in programming.bit add
Glossary347Control System All of the hardware and software components used to control other devices.A Control System includes the PC System, the PC pr
Glossary348default A value automatically set by the PC when the user omits to set a specific val-ue. Many devices will assume such default conditions
Glossary349are usually the ON/OFF states of bits, or the logical combination of suchstates, called execution conditions.exection condition The ON or O
25SYSMAC NET Link SystemsCompletioncodeName Meaning00 Normal end Data transfer was completed successfully.01 Parameter error SEND(90)/RECV(98) instruc
Glossary350A programming device with advanced programming and debugging capabili-ties to facilitate PC operation. A Graphic Programming Console is pro
Glossary351instruction A direction given in the program that tells the PC of an action to be carriedout, and which data is to be used in carrying out
Glossary352PC controlling the Master and a PC connected to the Remote I/O Systemthrough an I/O Link Unit or an I/O Link Rack.I/O Link Unit A Unit used
Glossary353Link Adapter A Unit used to connect communications lines, either to branch the lines or toconvert between different types of cable. There a
Glossary354Master Short for Remote I/O Master Unit.memory area Any of the areas in the PC used to hold data or programs.mnemonic code A form of a ladd
Glossary355NOT A logic operation which inverts the status of the operand. For example, ANDNOT indicates an AND operation with the opposite of the actu
Glossary356output bit A bit in the IR area that is allocated to hold the status to be sent to an outputdevice.output device An external device that re
Glossary357Printer Interface Unit A Unit used to interface a printer so that ladder diagrams and other data canbe printed out.program The list of inst
Glossary358Remote I/O Master Unit The Unit in a Remote I/O System through which signals are sent to all otherRemote I/O Units. The Remote I/O Master U
Glossary359set The process of turning a bit or signal ON.set value The value from which a decrementing counter starts counting down or towhich an incr
26tem in operating level 0; the other half, in a Subsystem in operating level 1.The actual bit assignments depend on whether the PC is in a Single-lev
Glossary360system error An error generated by the system, as opposed to one resulting from execu-tion of an instruction designed to generate an error.
Glossary361watchdog timer A timer within the system that ensures that the cycle time stays within speci-fied limits. When limits are reached, either w
363IndexAaddresses, in data area, 17applications, precautions, xvAR area, 32–37arithmetic flags, 98arithmetic operations, flags, 31ASCII, converting d
Index364displaysconverting between hex and ASCII, 245I/O Unit designations, 68Programming Console, English/Japanese switch, 62DM area, saving, restori
Index365combining with OR, 49AND LD, 51, 103combining with OR LD, 54use in logic blocks, 52AND NOT, 48, 102ANDW(34), 185ASC(86), 161ASL(25), 127ASR(26
Index366J–Ljump numbers, 110jumps, 110–111ladder diagrambranching, 83IL(02) and ILC(03), 85using TR bits, 83controlling bit statususing DIFU(13) and D
Index367PROM Writer, 6servicing, 222power supply, Power-OFF Counter, 36precautions, xiiiapplications, xvgeneral, xivoperating environment, xvsafety, x
369Revision HistoryA manual revision code appears as a suffix to the catalog number on the front cover of the manual.Cat. No. W130-E1-05Revision codeT
Revision History370RevisioncodeDate Revised content05 June 2003 Page xiv: Precautions added.Pages 21, 28, and 330: ”Data Retention Control Bit” unifie
27Multilevel PC Link SystemsFlag type Bit no. SR 247 SR 248 SR 249 SR 250Run flags 00 Unit #8,level 1Unit #0,level 1Unit #8,level 0Unit #0,level 001 U
28SR 25211 is not effective when switching to RUN mode.SR 25211 should be manipulated from a Peripheral Device, e.g., a Program-ming Console or FIT.Th
29In the following cases, DM (DM 0000 to DM 0999), HR, AR, CNT, and SRarea data will not be retained in the CPU Unit’s internal RAM when the poweris t
TABLE OF CONTENTSviiiSECTION 5Instruction Set 95. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 Notation 97. . . . . . . . . .
303-4-6 FAL (Failure Alarm) AreaA 2-digit BCD FAL code is output to bits 25300 to 25307 when the FAL orFALS instruction is executed. These codes are u
31Bit 254001-min clock pulseBit 254010.02-s clock pulseBit 255000.1-s clock pulseBit 255010.2-s clock pulseBit 255021.0-s clock pulseCaution:Because t
323-5 AR (Auxiliary Relay) Area AR word addresses extend from AR 00 to AR 27; AR bit addresses extendfrom AR 0000 to AR 2715. Most AR area words and b
33Word(s) FunctionBit(s)12 to 15 00 to 15 Active Node Flags for SYSMAC LINK System nodes of operating level 116 00 to 15 SYSMAC LINK/SYSMAC NET Link S
343-5-2 SYSMAC LINK System Data Link SettingsAR 0700 to AR 0703 and AR 0704 to AR 0707 are used to designate wordallocations for operating levels 0 an
35 Level 0 Level 1 Bit (body of table shows node numbers)00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15AR 08 AR 12 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1
361, 2, 3... 1. Turn ON AR 2114 (Stop Bit).2. Set the desired date, day, and time, being careful not to turn OFF AR2114 (Stop Bit) when setting the da
373-5-9 CPU Low Battery Flag (CPU11-E Only)AR 2404 is the Battery Alarm Flag for the CPU11-E backup battery.AR 2404 is refreshed every cycle while the
383-6 DM (Data Memory) AreaThe DM area is divided into various parts as described in the following table.Addresses Userread/writeUsageDM 0000 to DM 09
39Area Structure Error records occupy three words each stored between DM 0970 and DM0999. The last record that was stored can be obtained via the cont
TABLE OF CONTENTSixGlossary 345. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Index 363. . . . . . . . . . . . . . . .
40to 0000, the Error History Area will be reset (i.e., cleared), and any furthererror codes will be recorded from the beginning of the Error History A
41Once defined, a TC number can be designated as an operand in one or moreof certain set of instructions other than those listed above. When defined a
423-10 Program Memory Program Memory is where the user program is stored. The amount of Pro-gram Memory available is either 4K or 8K words, depending
43SECTION 4Writing and Inputting the ProgramThis section explains the basic steps and concepts involved in writing a basic ladder diagram program, inp
444-1 Basic ProcedureThere are several basic steps involved in writing a program. Sheets that canbe copied to aid in programming are provided in Appen
45designated as an operand is called an operand word. If the actual value isentered as a constant, it is preceded by # to indicate that it is not an a
46something to happen when a bit is ON, and a normally closed condition whenyou want something to happen when a bit is OFF.InstructionInstruction00000
47structions require no operands, while others require up to three operands,Program Memory addresses can be from one to four words long.Program Memory
48quires one line of mnemonic code. “Instruction” is used as a dummy instruc-tion in the following examples and could be any of the right-hand instruc
49(in order from the top) to a LOAD NOT, an OR NOT, and an OR instruction.Again, each of these instructions requires one line of mnemonic code.Instruc
xiAbout this Manual:The OMRON C200H PCs offer a simple but effective way to automate processing. Manufacturing,assembly, packaging, and many other pro
50tion, and that’s where AND LOAD and OR LOAD instructions are used. Be-fore we consider more complicated diagrams, however, we’ll look at the in-stru
51described later. The END instruction requires no operands and no conditionscan be placed on the same instruction line with it.Instruction00000 00001
52OR NOT between just IR 00003 and the result of an AND between IR 00002and the first OR. What we need is a way to do the OR (NOT)’s independentlyand
53blocks to be combined, starting each block with LOAD or LOAD NOT, andthen to code the logic block instructions which combine them. In this case,the
54or the three blocks can be coded first followed by two OR LOADs. The mne-monic codes for both methods are shown below.00000 LD 0000000001 AND NOT 00
55lowed by the one to combine the execution condition resulting from the firstlogic block instruction and the execution condition of the logic block t
56blocks a and b would be combined using AND LOAD as shown above, andthen block c would be coded and a second AND LOAD would be used tocombined it wit
57last two blocks and working backward. The OR LOAD at program address00008 combines blocks blocks d and e, the following AND LOAD combinesthe resulti
58tion condition of block c with the execution condition resulting from the nor-mally closed condition assigned IR 00003. The rest of the diagram can
59gramming Console and the operation necessary to prepare for program in-put. 4-6 Inputting, Modifying, and Checking the Program describes actualproce
xiiiPRECAUTIONSThis section provides general precautions for using the Programmable Controller (PC) and related devices.The information contained in t
60The gray keys other than the SHIFT key have either the mnemonic name ofthe instruction or the abbreviation of the data area written on them. The fun
61operation as well as the procedures that are possible from the ProgrammingConsole.RUN mode is the mode used for normal program execution. When the s
62The mode will not change when a peripheral device is removed from the PCafter PC power is turned on.DANGER! Always confirm that the Programming Cons
63The PC prompts you for a password when PC power is turned on or, if PCpower is already on, after the Programming Console has been connected tothe PC
64Key SequenceBoth AR and HR areasTC areaDM areaProgram Memory clearedfrom designated address.Retained if pressedThe following procedure is used to cl
65To leave the TC area uncleared and retaining Program Memory addresses00000 through 00122, input as follows:00000000000000000000MEM CLR ? HR CNT
66Initial I/O Table RegistrationRegister I/O tableMemory cleared completely0000000000FUN (??)00000I/OTBL? ?Ć?U=00000I/OTBL WRIT ????00000I
67Example(No errors)(An error occurred)Actual I/O wordsRegistered I/O table wordsI/O slot numberRack number0000000000FUN (??)00000I/OTBL? ?Ć?U=00000I
680000000000FUN (??)00000I/OTBL ? ?Ć?U=00000I/OTBL ? 0Ć?U=00000I/OTBL ? 0Ć5U=00000I/OTBL READ 0Ć5U=i*** 00500000I/OTBL READ 0Ć4U=o*** 00400000I
69I/O word numberI/O type: i: (input), o: (output)Unit number (0 to 9)Rack number (0 to 2)00000I/OTBL READ *Ć*U=**** ***Unit number (0 to 9)Indicate
!!!!!3Safety Precautionsxiv1 Intended AudienceThis manual is intended for the following personnel, who must also have knowl-edge of electrical systems
70tion based on the I/O Units mounted when the I/O Table Clear operation isperformed.The I/O Table Clear operation will reset all Special I/O Units an
71Key Sequence00000LINK TBL~UM(SYSMACĆNET)????00000LINK TBL~UMOK00000LINK TBL~UM(SYSMACĆNET)971300000LINK TBL~UMDISABLEDThe following indicates that t
724-6 Inputting, Modifying, and Checking the ProgramOnce a program is written in mnemonic code, it can be input directly into thePC from a Programming
73If the following mnemonic code has already been input into Program Memory,the key inputs below would produce the displays shown.000000020000200READ
74The SV (set value) for a timer or counter is generally entered as a constant,although inputting the address of a word that holds the SV is also poss
75The following program can be entered using the key inputs shown below.Displays will appear as indicated.000000020000200LD 0000200201READNOP
76the displays shown below will be replaced with numeric data, normally anaddress, in the actual display.Message Cause and correction****REPL ROMAn at
77Many of the following errors are for instructions that have not yet been de-scribed yet. Refer to 4-7 Controlling Bit Status or to Section 5 Instruc
78The following example shows some of the displays that can appear as a re-sult of a program check.Display #2Display #3Halts program checkCheck contin
79Example0000000000CYCLE TIME 054.1MS00000CYCLE TIME 053.9MS4-6-5 Program SearchesThe program can be searched for occurrences of any d
!!!!5Application Precautionsxv• The PC outputs may remain ON or OFF due to deposition or burning of theoutput relays or destruction of the output tran
800000000000LD 0000000200SRCHLD 0000000202LD 0000006000SRCHEND (01)(06.4KW)000000010000100TIM 00100203SRCHTIM
81words are required for the instruction, input these in the same way as wheninputting the program initially.To delete an instruction, display the ins
82Find the addressprior to the inser-tion pointInsert theinstructionProgram After InsertionInserting an Instruction0000000000OUT 0000000000OUT
834-6-7 Branching Instruction LinesWhen an instruction line branches into two or more lines, it is sometimesnecessary to use either interlocks or TR b
84This execution condition is then restored after executing the right-hand in-struction by using the same TR bit as the operand of a LOAD instructionI
85and ease of understanding a program increased by redrawing a diagram thatwould otherwise required TR bits. In both of the following pairs of diagram
86(ILC(03)) instructions to eliminate the branching point completely while allow-ing a specific execution condition to control a group of instructions
87As shown in the following diagram, more than one INTERLOCK instructioncan be used within one instruction block; each is effective through the nextIN
88did not exist. Diagram B from the TR bit and interlock example could be re-drawn as shown below using a jump. Although 01 has been used as thejump n
894-7 Controlling Bit StatusThere are five instructions that can be used generally to control individual bitstatus. These are the OUTPUT, OUTPUT NOT,
Comentarios a estos manuales