Selectron LD-007 Manual de Instruções

Consulte online ou descarregue Manual de Instruções para TVs LCD Selectron LD-007. Selectron LD-007 Programming instructions Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir

Resumo do Conteúdo

Página 1 - (CPU01-E/03-E/11-E)

C200H Programmable Controllers(CPU01-E/03-E/11-E)Operation ManualRevised June 2003

Página 2 - Visual Aids

!5Application PrecautionsxviCaution Failure to abide by the following precautions could lead to faulty operation of thePC or the system, or could dama

Página 3 - TABLE OF CONTENTS

90one instruction line, the instruction lines are coded first before the instructionthat they control.00002000040000300005R: reset inputS: set input K

Página 4

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

Página 5

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

Página 6 - About this Manual:

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

Página 7 - PRECAUTIONS

944-10 Program ExecutionWhen program execution is started, the CPU cycles the program from top tobottom, checking all conditions and executing all ins

Página 8 - 3 Safety Precautions

95SECTION 5Instruction SetThe C200H PC has a large programming instruction set that allows for easy programming of complicated control proc-esses. Thi

Página 9 - 5 Application Precautions

965-16 Data Conversion 149. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 10 - 5Application Precautions

975-1 NotationIn the remainder of this manual, all instructions will be referred to by theirmnemonics. For example, the Output instruction will be cal

Página 11

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

Página 12 - Introduction

995-4 Differentiated InstructionsMost instructions are provided in both differentiated and non-differentiatedforms. Differentiated instructions are di

Página 13 - 1-2 The Origins of PC Logic

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

Página 14 - 1-3 PC Terminology

1005-5 Coding Right-hand InstructionsWriting mnemonic code for ladder instructions is described in Section 4 Writ-ing and Inputting the Program. Conve

Página 15 - 1-5 Overview of PC Operation

101The following diagram and corresponding mnemonic code illustrates thepoints described above.Address Instruction Data00000 LD 0000000001 AND 00001

Página 16 - 1-6 Peripheral Devices

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

Página 17

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

Página 18 - 1-7 Available Manuals

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

Página 19 - 1-8 LSS Capabilities

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

Página 20 - 1-8-2 Online Operations

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

Página 21 - LSS Capabilities Section 1-8

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

Página 22 - Hardware Considerations

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

Página 23 - 2-2 PC Configuration

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

Página 24 - PC Configuration Section 2-2

1SECTION 1IntroductionThis section gives a brief overview of the history of Programmable Controllers and explains terms commonly used inladder-diagram

Página 25 - Memory Areas

110The following diagram shows IL(02) being used twice with one ILC(03).0000000001ILC(03)IL(02)00004000050000300002IL(02)00502TIM 511CPRCNT001IR 01000

Página 26 - 3-2 Data Area Structure

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

Página 27 - IR word 001 0000000000000000

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

Página 28 - 3-3 IR (Internal Relay) Area

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

Página 29 - IR Area Section 3-3

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.

Página 30 - 3-4 SR (Special Relay) Area

115To create delays, the Completion Flags for two TIM are used to determinethe execution conditions for setting and reset the bit designated forKEEP(1

Página 31 - SR Area Section 3-4

11601000 TIM 001000000100001000 TIM 0010100000204001.5 s00000002041.5 s 1.5 sTIM 001#0015Address Instruction Operands00000 LD 0100000001 AND NOT TIM 0

Página 32 - 3-4-1 Remote I/O Systems

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

Página 33 - Host Link Systems

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

Página 34

119Execution condition on count pulse (CP)Execution condition on reset (R)ONOFFONOFFCompletion FlagONOFFPVSVSV – 1SV – 2000200010000SVProgram executio

Página 35 - PC Link Systems

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

Página 36

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

Página 37

12100000 TIM 001 CNT 002TIM 00100001CNT 00200201CPR005.0 sCNT002#0100TIM 001#0050Address Instruction Operands00000 LD 0000000001 AND NOT TIM 00100002

Página 38 - 3-4-4 I/O Status Hold Bit

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

Página 39 - 3-4-5 Output OFF Bit

1235-13 Data ShiftingAll of the instructions described in this section are used to shift data, but indiffering amounts and directions. The first shift

Página 40

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

Página 41 - 3-4-14 Arithmetic Flags

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(

Página 42 - AR Area Section 3-5

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

Página 43

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

Página 44

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

Página 45 - (CPU11-E only)

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

Página 46 - 3-5-8 Power-OFF Counter

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

Página 47

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

Página 48 - 3-6 DM (Data Memory) Area

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

Página 49 - DM Area Section 3-6

132be set to 0000. The data changes that would occur for the given register andcontrol word contents are also shown.1234000000002345345600004567567867

Página 50 - 3-8 TC (Timer/Counter) Area

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

Página 51 - 3-9 LR (Link Relay) Area

13400 0 0 0 111000100001Bit 15Bit 00SC1101001001110001S+10001101100100111S+2 . . . . . . . . . . . .0111000110001010S+151000001100000111S+

Página 52 - 3-10 Program Memory

13500 0 0 0 111000100001Bit 15Bit 00DC1101001001110001D+10001101100100111D+2 . . . . . . . . . .0111000110001010D+151000001100000111D+30 1 1

Página 53 - SECTION 4

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

Página 54 - 4-2 Instruction Terminology

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

Página 55 - 4-3 Basic Ladder Diagrams

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

Página 56 - 4-3-2 Mnemonic Code

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

Página 57 - 4-3-3 Ladder Instructions

41-4 OMRON Product TerminologyOMRON products are divided into several functional groups that have ge-neric names. Appendix A Standard Models list prod

Página 58 - A LOAD NOT instruction

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

Página 59

1415-15 Data ComparisonThis section describes the instructions used for comparing data. CMP(20) isused to compare the contents of two words; BCMP(68)

Página 60 - 4-3-5 The END Instruction

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

Página 61 - Program execution

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

Página 62 - 00002 00003

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

Página 63

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

Página 64

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

Página 65

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

Página 66

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

Página 67

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

Página 68 - 4-4 The Programming Console

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

Página 69 - 4-4-1 The Keyboard

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

Página 70 - 4-4-2 PC Modes

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

Página 71

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

Página 72 - 4-5 Preparation for Operation

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

Página 73 - 4-5-3 Clearing Memory

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

Página 74

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

Página 75

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

Página 76 - 4-5-6 Verifying the I/O Table

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

Página 77 - 4-5-7 Reading the I/O Table

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

Página 78

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

Página 79 - 4-5-8 Clearing the I/O Table

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

Página 80 - 4-5-9 NET Link Table Transfer

160The table underneath shows the original data and converted code for all hex-adecimal digits.2021222320212223202122232021222301000001011110110123111

Página 81

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

Página 82

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

Página 83

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

Página 84

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

Página 85

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

Página 86 - 4-6-3 Checking the Program

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

Página 87

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

Página 88

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

Página 89 - 4-6-5 Program Searches

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

Página 90

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

Página 91 - Original Program

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

Página 92

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

Página 93 - Diagram A: Correct Operation

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,

Página 94

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

Página 95

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

Página 96

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

Página 97 - 4-6-8 Jumps

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

Página 98

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

Página 99 - 4-7 Controlling Bit Status

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

Página 100 - Work Bits Section 4-8

1795-18 Binary CalculationsThe binary calculation instructions - ADB(50), SBB(51), MLB(52) andDVB(53) - all perform arithmetic operations on hexadecim

Página 101

8Name ContentsCat. No.Heat/Cool Temperature Control Unit OperationManualW240 Information on Heating and Cooling TemperatureControl UnitPID Control Uni

Página 102 - 4-9 Programming Precautions

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

Página 103 - Diagram A

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

Página 104 - 4-10 Program Execution

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)#

Página 105 - SECTION 5

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

Página 106

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

Página 107 - 5-2 Instruction Format

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

Página 108 - *DM 0001

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

Página 109

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

Página 110

188Whereas subroutine calls are controlled from within the main program, sub-routines activated by interrupts are triggered when the interrupt signal

Página 111

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

Página 112

!!!vNotice:OMRON products are manufactured for use according to proper procedures by a qualified operatorand only for the purposes described in this m

Página 113 - 5-6-2 AND LOAD and OR LOAD

9Group DescriptionDM (data memory) DM operations are used to edit DM data in hexadecimal or ASCII form. There are also featuresfor copying, filling an

Página 114 - 5-7 Bit Control Instructions

190Although subroutines 00 through 31 can be called by using SBS(91), theyare also activated by interrupt signals from Interrupt Input Units. Subrouti

Página 115 - IR, AR, HR, LR

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

Página 116 - 5-7-3 KEEP – KEEP(11)

192The following program shows the overall structure and operation of thescheduled interrupt.Here, the scheduled subroutine is started and will be rep

Página 117 - Status of B

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

Página 118

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

Página 119

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

Página 120 - # (00 to 99)

196The following diagram demonstrates the flow of processing and the switchesthat are used for execution control.Process AProcess BProcess CLoadingPar

Página 121 - 5-10 END – END(01)

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

Página 122 - 5-11 NO OPERATION – NOP(00)

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

Página 123 - 5-12-1 TIMER – TIM

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

Página 124

101-8-3 Offline and Online OperationsGroup DescriptionSYSTEM SETUP The SYSTEM SETUP provides settings for the operating environment of the LSS, includ

Página 125

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

Página 126

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

Página 127 - IR, AR, DM, HR, LR, #

202Address Instruction Operands Address Instruction Operands00000 LD 0000100001 SNXT(09) LR 000000002 SNXT(09) LR 000200003 STEP(08) LR 0000Process A0

Página 128 - 5-12-3 COUNTER – CNT

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

Página 129

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

Página 130

MSGABCDEFGHIJKLMNOP205The following example shows the display that would be produced for the in-struction and data given when 00000 was ON. If 00001 g

Página 131 - # (000 through 511)

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

Página 132

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

Página 133 - 5-13 Data Shifting

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

Página 134 - Data Shifting Section 5-13

Y0Y2Y1Y3Y4YmX0X1X2X3X4XmXY209VCAL(69) linear approximation is specified when C is a memory address.Word C is the first word of the continuous block of

Página 135

11SECTION 2Hardware ConsiderationsThis section provides information on hardware aspects of the C200H that are relevant to programming and software op-

Página 136

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

Página 137

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

Página 138 - 5-13-6 ROTATE RIGHT – ROR(28)

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

Página 139

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

Página 140 - 5-13-9 WORD SHIFT – WSFT(16)

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

Página 141

215If multiple SEND(90)/RECV(98) operations are used, the following flags mustbe used to ensure that any previous operation has completed before attem

Página 142 - 5-14 Data Movement

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

Página 143 - 5-14-2 MOVE NOT – MVN(22)

217Address Instruction Operands Address Instruction Operands00000 LD 0000000001 AND 2520400002 AND NOT 1280200003 LD 1280100004 KEEP(11) 1280000005 LD

Página 144 - Data Movement Section 5-14

219SECTION 6Program Execution TimingThe timing of various operations must be considered both when writing and debugging a program. The time required t

Página 145 - 5-14-5 BLOCK SET – BSET(71)

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

Página 146

122-1 IndicatorsCPU indicators provide visual information on the general operation of the PC.Although not substitutes for proper error programming usi

Página 147

2216-1-1 CPU01-E, 03-E Cycle Time PCcycletimeEnd of program? YESNOYESNOPower applicationClears IR area andresets all timersChecks I/O UnitconnectionsR

Página 148

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.

Página 149 - 5-14-10 MOVE BIT – MOVB(82)

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

Página 150 - 5-14-11 MOVE DIGIT – MOVD(83)

2246-1-2 CPU11-E Cycle Time YESNONOPower applicationClears IR area andresets all timersChecks I/O Unit connectionsResets watchdog timerChecks hardwar

Página 151 - 5-15 Data Comparison

225The first three operations immediately after power application are performedonly once each time the PC is turned on. The rest of the operations are

Página 152 - 5-15-2 COMPARE – CMP(20)

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

Página 153 - Data Comparison Section 5-15

227The equation for the cycle time from above is as follows:Cycle time = overseeing time + Link Unit servicing time+ peripheral device servicing time

Página 154

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

Página 155

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

Página 156

230InstructionOFF execution time (µs)ON execution time (µs)ConditionsSCAN(18) Constant for SV 311 3.75*DM for SV412MCMP(19) Comparing 2 words, result

Página 157

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

Página 158

231InstructionOFF execution time (µs)ON execution time (µs)ConditionsDEC(39) When decrementing a word 82 2.25When decrementing *DM167STC(40) --- 27 1.

Página 159 - 5-16 Data Conversion

232InstructionOFF execution time (µs)ON execution time (µs)ConditionsBCMP(68) Comparing constant to word-designatedtable674 3.75Comparing *DM b *DM-de

Página 160 - Data Conversion Section 5-16

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

Página 161

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

Página 162

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

Página 163

237SECTION 7Program Monitoring and ExecutionThis section provides the procedures for monitoring and controlling the PC through a Programming Console.

Página 164

2387-1 Monitoring Operation and Modifying DataThe simplest form of operation monitoring is to display the address whoseoperand bit status is to be mon

Página 165

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

Página 166

240Bit Monitor0000000000LD 0000100001^ ON00000CONT 00001Word Monitor0000000000CHANNEL 00000000CHANNEL LR 01 cL01 FFFF cL00 0000

Página 167

241Multiple Address Monitoring0000000000TIM 000 T000 010000000 T000 010000001 T000 010000001 T000 OFF 0100D000000001 T000 ^OFF

Página 168

15SECTION 3Memory AreasVarious types of data are required to achieve effective and correct control. To facilitate managing this data, the PC is pro-vi

Página 169

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

Página 170

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

Página 171

244The following example shows the displays that appear when Restore Statusis carried out normally.000000000000000FORCE RELE?00000FORCE RELEEND7-1-4 H

Página 172 - 5-17 BCD Calculations

245The following example shows the effects of changing the PV of a timer.This example is in MONITOR modeTimingTimingPV changedTimingTiming0000000000TI

Página 173 - 5-17-3 SET CARRY – STC(40)

2460000000000CH DM 0000D0000 4412D0000 ABD0000 41427-1-6 3-word MonitorTo monitor three consecutive words together, specify the lowest numberedw

Página 174 - 5-17-5 BCD ADD – ADD(30)

2470000000000CHANNEL DM 0000D0000 89ABD0002D0001D0000 0123 4567 89ABD0003D0002D0001 ABCD 0123 4567D0004D0003D0002 EF00 ABCD 0123D0005D0004D0003 1111

Página 175 - BCD Calculations Section 5-17

248Example3-word Monitor in progress.Stops in the middleof monitoring.Resumes previousmonitoring.D0002D0001D0000 0123 4567 89ABD0002 3CHCHANG?~0123 45

Página 176 - 5-17-7 BCD SUBTRACT – SUB(31)

2490000000000CHANNEL 000 c000 MONTR0000000000001111 c001 MONTR000001010101010000000CHANNEL 0010000000000CHANNEL DM 0000D0000 FFFF

Página 177

250Key SequenceWord currently displayed in binary.(Force Status Clear)Monitoring Operation and Modifying Data Section 7-1

Página 178

251IR bit 00115 IR bit 001000000000000CHANNEL 00000000CHANNEL 001 c001 MONTR0000010101010101 c001 CHG? 000010101010101 c001 CH

Página 179

163-1 IntroductionDetails, including the name, acronym, range, and function of each area aresummarized in the following table. All but the last three

Página 180

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

Página 181 - 5-17-9 BCD MULTIPLY – MUL(32)

253Returns to original displaywith new SVCurrent SV (during change operation)SV before the change0000000000TIM 00000201SRCHTIM 00000

Página 182 - 5-17-11 BCD DIVIDE – DIV(33)

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

Página 183

255Key SequenceEXTA0WRITECLRWRITEStart recording with thetape recorder.SHIFTRECRESET[File no.][Start address][Stop address]After about 5 seconds**(Can

Página 184

256Selecting ProgramMemoryStarting address ofdata to be recordedLast addressStop addressspecifiedBlinkingContinue within 5 secondsRecording in progres

Página 185

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

Página 186

258Restoring in progressEND reachedRestored up to ENDStop restoring using CLRComparison in progressEND reachedStop comparison using CLRCompared up to

Página 187

259the preceding sections for details. An example for each operation is givenbelow.Key SequenceSavingRestoringComparingEXTCLR[File no.]VERB1Start tape

Página 188

260Selecting theDM areaStart tape playbackWithin 5 secondsRestoring in progressRestoring stopped using CLR key.Restoring stopped at the end.0000000000

Página 189 - 5-18 Binary Calculations

261Selecting theDM areaStart tape playbackWithin 5 secondsComparison in progressStopped verification using CLR KeyVerification stopped at the end.0000

Página 190

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

Página 191 - Mi – Su – CY CY R

263SECTION 8TroubleshootingThe C200H provides self-diagnostic functions to identify many types of abnormal system conditions. These functionsminimize

Página 192

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

Página 193

2658-4 Error MessagesThere are basically three types of errors for which messages are displayed:initialization errors, non-fatal operating errors, and

Página 194 - 5-19 Logic Instructions

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

Página 195 - 5-19-3 LOGICAL OR – ORW(35)

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

Página 196

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

Página 197 - 5-20-1 Overview

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

Página 198 - N: Subroutine number

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

Página 199

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

Página 200

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

Página 201

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

Página 202

Appendix AStandard Models274Name Model numberSpecificationsPosition Control Units 1 axis Pulse output; speeds: 1 to 99,990 pps C200H-NC1111 axis Direc

Página 203 - 5-21 Step Instructions

Appendix AStandard Models275Optional ProductsName Specifications Model numberI/O Unit Cover Cover for 10-pin terminal block C200H-COV11Terminal Block

Página 204 - Step controlled by LR 2001

Appendix AStandard Models276Optical UnitsName Specifications Model no.Optical I/O Unit No-voltage Input Unit 8 pts.100 to 120 VAClAPF/PCF 3G5A2-ID001-

Página 205 - Examples

Appendix AStandard Models277Optical Fiber CablePlastic Optical Fiber Cable (APF) APF stands for “All-Plastic Fiber”. Thiscable can be used to connect

Página 206

Appendix AStandard Models278Peripheral DevicesProduct Description Model no.Programming Console Vertical, w/backlight 3G2A5-PRO13-EHorizontal, w/backli

Página 207

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

Página 208

281Appendix BProgramming InstructionsThis appendix provides tables listing the programming instructions used with C200H PCs. The first table sum-mariz

Página 209

Programming Instructions Appendix B282Function Code PageMnemonicName20 COMPARE CMP 14221 MOVE MOV 13222 MOVE NOT MVN 13323 BCD-TO-BINARY BIN 14924 BIN

Página 210

Appendix BProgramming Instructions283Function Code PageMnemonicName71 BLOCK SET BSET 13572 SQUARE ROOT ROOT 17773 DATA EXCHANGE XCHG 13774 ONE DIGIT S

Página 211

Programming Instructions Appendix B284Instruction Execution TimesThe following table lists the execution times for all instructions that are available

Página 212 - 5-22 Special Instructions

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

Página 213 - 5-22-2 CYCLE TIME – SCAN(18)

Appendix BProgramming Instructions285InstructionOFF execution time (µs)ON execution time (µs)ConditionsSNXT(09) --- 34 2.25SFT(10) With 1-word shift r

Página 214

Programming Instructions Appendix B286InstructionOFF execution time (µs)ON execution time (µs)ConditionsASR(26) When shifting a word 72 2.25When shift

Página 215 - FAL(06) 00

Appendix BProgramming Instructions287InstructionOFF execution time (µs)ON execution time (µs)ConditionsDVB(53)Word ÷ constant b word476 3.75*DM ÷ *DM

Página 216 - 5-22-6 SET SYSTEM – SYS(49)

Programming Instructions Appendix B288InstructionOFF execution time (µs)ON execution time (µs)ConditionsSLD(74) When shifting 1 word 193 3When shiftin

Página 217 - 5-22-7 BIT COUNTER – BCNT(67)

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

Página 218 - Input data, x Result data

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

Página 219

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

Página 220

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

Página 221 - Control Data

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

Página 222 - SEND(90)

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

Página 223

TABLE OF CONTENTSviiPRECAUTIONS xiii. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Intended Audience xiv. . . . . . . . . . . . .

Página 224 - RECV(98)

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

Página 225

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

Página 226

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

Página 227

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

Página 228 - Program Execution Timing

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

Página 229 - 6-1 Cycle Time

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

Página 230 - Cycle Time Section 6-1

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

Página 231

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

Página 232

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

Página 233 - 6-1-2 CPU11-E Cycle Time

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

Página 234

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

Página 235 - 6-2 Calculating Cycle Time

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

Página 236 - 6-2-2 PC with Link Units

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

Página 237

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

Página 238

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

Página 239 - ÷ *DM b *DM

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

Página 240 - ÷ word b word

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

Página 241 - ÷ word b word (equals 0)

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

Página 242

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

Página 243 - 6-4 I/O Response Time

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

Página 244 - I/O Response Time Section 6-4

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

Página 245 - SECTION 7

315Appendix CProgramming Console OperationsThe table below lists the Programming Console operations, a brief description, and the page on which theyap

Página 246 - 7-1-1 Bit/Digit Monitor

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

Página 247

Programming Console Operations Appendix C316System OperationsOperation/Description Modes* Key sequencePassword InputControls access to the PC’s progra

Página 248

Appendix CProgramming Console Operations317Operation/Description Modes* Key sequenceI/O Table ReadUsed to read the I/O Table. The dis-play gives the U

Página 249 - 7-1-2 Forced Set/Reset

Programming Console Operations Appendix C318Programming OperationsOperation/Description Modes* Key sequenceAddress DesignationDisplays the specified a

Página 250

Appendix CProgramming Console Operations319Operation/Description Modes* Key sequenceInstruction Insert andInstruction DeleteThe displayed instruction

Página 251

Programming Console Operations Appendix C320Monitoring and Data Changing OperationsOperation/Description Modes* Key sequenceBit/Word MonitorUp to six

Página 252 - [ Data ]

Appendix CProgramming Console Operations321Operation/Description Modes* Key sequenceHex/BCD Data ChangeUsed to edit the leftmost BCD or hex-adecimal v

Página 253

Programming Console Operations Appendix C322Operation/Description Modes* Key sequence3-word ChangeThis operation changes the value ofa word displayed

Página 254 - 7-1-6 3-word Monitor

Appendix CProgramming Console Operations323Cassette Tape OperationsOperation/Description Modes* Key sequenceProgram Memory SaveCopies data from the Pr

Página 255 - 3 words currently

Programming Console Operations Appendix C324Operation/Description Modes* Key sequenceProgram Memory CompareThe procedure to compare ProgramMemory data

Página 256 - 7-1-8 Binary Monitor

325Appendix DError and Arithmetic Flag OperationThe following table shows the instructions that affect the ER, CY, GT, LT and EQ flags. In general, ER

Página 257 - Indicates Force Set

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

Página 258 - Key Sequence

Error and Arithmetic Flag Operation Appendix D326Instructions 25507 (LE)25506 (EQ)25505 (GR)25504 (CY)25503 (ER)MUL(32) Unaffected Unaffected Unaffect

Página 259 - IR bit 00115 IR bit 00100

Appendix DError and Arithmetic Flag Operation327Instructions 25507 (LE)25506 (EQ)25505 (GR)25504 (CY)25503 (ER)XCHG(73) Unaffected Unaffected Unaffect

Página 260

329Appendix EData AreasThe data areas in the C200H are summarized below. Prefixes are included with bit and word addresses wheninputting them is requi

Página 261 - SV before the change

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

Página 262

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

Página 263

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

Página 264

333Appendix FWord Assignment Recording SheetsThis appendix contains sheets that can be copied by the programmer to record I/O bit allocations and term

Página 265

334Programmer: Program: Date: Page:Word: Unit:Bit Field device Notes00010203040506070809101112131415Word: Unit:Bit Field device Notes00010203040506070

Página 266

335Programmer: Program: Date: Page:Area: Word:Bit Usage Notes00010203040506070809101112131415Area: Word:Bit Usage Notes0001020304050607080910111213141

Página 267

336Programmer: Program: Date: Page:Word Contents Notes Word Contents NotesData Storage

Página 268

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

Página 269

337Programmer: Program: Date: Page:TC addressT or CSet value Notes TC addressT or CSet value NotesTimers and Counters

Página 270 - Troubleshooting

339Appendix GProgram Coding SheetThe following page can be copied for use in coding ladder diagram programs. It is designed for flexibility, al-lowing

Página 271 - 8-1 Alarm Indicators

340Programmer: Program: Date: Page:Address Instruction Operand(s) Address Instruction Operand(s) Address Instruction Operand(s)Program Coding Sheet

Página 272 - 8-4 Error Messages

341Appendix HData Conversion TableDecimal BCD Hex Binary00 00000000 00 0000000001 00000001 01 0000000102 00000010 02 0000001003 00000011 03 0000001104

Página 273 - Error Messages Section 8-4

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

Página 274

345Glossaryaddress The location in memory where data is stored. For data areas, an addressconsists of a two-letter data area designation and a number

Página 275 - 8-5 Error Flags

Glossary346cial purposes, such as holding the status input from external devices, whileother bits are available for general use in programming.bit add

Página 276 - Error Flags Section 8-5

Glossary347Control System All of the hardware and software components used to control other devices.A Control System includes the PC System, the PC pr

Página 277 - Appendix A

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

Página 278 - C200H I/O Units

Glossary349are usually the ON/OFF states of bits, or the logical combination of suchstates, called execution conditions.exection condition The ON or O

Página 279 - C200H Special I/O Units

25SYSMAC NET Link SystemsCompletioncodeName Meaning00 Normal end Data transfer was completed successfully.01 Parameter error SEND(90)/RECV(98) instruc

Página 280 - C200H Link Units

Glossary350A programming device with advanced programming and debugging capabili-ties to facilitate PC operation. A Graphic Programming Console is pro

Página 281 - Optional Products

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

Página 282 - DIN Products

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

Página 283 - Cable Length

Glossary353Link Adapter A Unit used to connect communications lines, either to branch the lines or toconvert between different types of cable. There a

Página 284 - Ladder Support Software (LSS)

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

Página 285 - Appendix AStandard Models

Glossary355NOT A logic operation which inverts the status of the operand. For example, ANDNOT indicates an AND operation with the opposite of the actu

Página 286 - Appendix B

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

Página 287

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

Página 288

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

Página 289 - Instruction Execution Times

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

Página 290

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

Página 291

Glossary360system error An error generated by the system, as opposed to one resulting from execu-tion of an instruction designed to generate an error.

Página 292

Glossary361watchdog timer A timer within the system that ensures that the cycle time stays within speci-fied limits. When limits are reached, either w

Página 293

363IndexAaddresses, in data area, 17applications, precautions, xvAR area, 32–37arithmetic flags, 98arithmetic operations, flags, 31ASCII, converting d

Página 294 - Basic Instructions

Index364displaysconverting between hex and ASCII, 245I/O Unit designations, 68Programming Console, English/Japanese switch, 62DM area, saving, restori

Página 295 - Data Areas

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

Página 296 - Special Instructions

Index366J–Ljump numbers, 110jumps, 110–111ladder diagrambranching, 83IL(02) and ILC(03), 85using TR bits, 83controlling bit statususing DIFU(13) and D

Página 297

Index367PROM Writer, 6servicing, 222power supply, Power-OFF Counter, 36precautions, xiiiapplications, xvgeneral, xivoperating environment, xvsafety, x

Página 298

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

Página 299

Revision History370RevisioncodeDate Revised content05 June 2003 Page xiv: Precautions added.Pages 21, 28, and 330: ”Data Retention Control Bit” unifie

Página 300

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

Página 301

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

Página 302

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

Página 303

TABLE OF CONTENTSviiiSECTION 5Instruction Set 95. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 Notation 97. . . . . . . . . .

Página 304

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

Página 305

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

Página 306

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

Página 307

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

Página 308 - ≤ S ≤ Upper limit 1

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

Página 309

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

Página 310

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

Página 311

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

Página 312

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

Página 313 - (SBs+Of) (D)

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

Página 314

TABLE OF CONTENTSixGlossary 345. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Index 363. . . . . . . . . . . . . . . .

Página 315

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

Página 316

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

Página 317

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

Página 318

43SECTION 4Writing and Inputting the ProgramThis section explains the basic steps and concepts involved in writing a basic ladder diagram program, inp

Página 319 - Appendix C

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

Página 320 - System Operations

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

Página 321

46something to happen when a bit is ON, and a normally closed condition whenyou want something to happen when a bit is OFF.InstructionInstruction00000

Página 322 - Programming Operations

47structions require no operands, while others require up to three operands,Program Memory addresses can be from one to four words long.Program Memory

Página 323

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

Página 324

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

Página 325

xiAbout this Manual:The OMRON C200H PCs offer a simple but effective way to automate processing. Manufacturing,assembly, packaging, and many other pro

Página 326

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

Página 327 - Cassette Tape Operations

51described later. The END instruction requires no operands and no conditionscan be placed on the same instruction line with it.Instruction00000 00001

Página 328

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

Página 329 - Appendix D

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

Página 330

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

Página 331

55lowed by the one to combine the execution condition resulting from the firstlogic block instruction and the execution condition of the logic block t

Página 332 - Appendix E

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

Página 333 - Dedicated Bits

57last two blocks and working backward. The OR LOAD at program address00008 combines blocks blocks d and e, the following AND LOAD combinesthe resulti

Página 334 - AR Bit Allocations

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

Página 335 - Data Areas Appendix E

59gramming Console and the operation necessary to prepare for program in-put. 4-6 Inputting, Modifying, and Checking the Program describes actualproce

Página 336 - Appendix F

xiiiPRECAUTIONSThis section provides general precautions for using the Programmable Controller (PC) and related devices.The information contained in t

Página 337 - I/O Bits

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

Página 338 - Work Bits

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

Página 339 - Data Storage

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

Página 340 - Timers and Counters

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

Página 341 - Appendix G

64Key SequenceBoth AR and HR areasTC areaDM areaProgram Memory clearedfrom designated address.Retained if pressedThe following procedure is used to cl

Página 342 - Program Coding Sheet

65To leave the TC area uncleared and retaining Program Memory addresses00000 through 00122, input as follows:00000000000000000000MEM CLR ? HR CNT

Página 343 - Appendix H

66Initial I/O Table RegistrationRegister I/O tableMemory cleared completely0000000000FUN (??)00000I/OTBL? ?Ć?U=00000I/OTBL WRIT ????00000I

Página 344 - Appendix I

67Example(No errors)(An error occurred)Actual I/O wordsRegistered I/O table wordsI/O slot numberRack number0000000000FUN (??)00000I/OTBL? ?Ć?U=00000I

Página 345 - Glossary

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

Página 346

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

Página 347

!!!!!3Safety Precautionsxiv1 Intended AudienceThis manual is intended for the following personnel, who must also have knowl-edge of electrical systems

Página 348

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

Página 349

71Key Sequence00000LINK TBL~UM(SYSMACĆNET)????00000LINK TBL~UMOK00000LINK TBL~UM(SYSMACĆNET)971300000LINK TBL~UMDISABLEDThe following indicates that t

Página 350

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

Página 351

73If the following mnemonic code has already been input into Program Memory,the key inputs below would produce the displays shown.000000020000200READ

Página 352

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

Página 353

75The following program can be entered using the key inputs shown below.Displays will appear as indicated.000000020000200LD 0000200201READNOP

Página 354

76the displays shown below will be replaced with numeric data, normally anaddress, in the actual display.Message Cause and correction****REPL ROMAn at

Página 355

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

Página 356

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

Página 357

79Example0000000000CYCLE TIME 054.1MS00000CYCLE TIME 053.9MS4-6-5 Program SearchesThe program can be searched for occurrences of any d

Página 358

!!!!5Application Precautionsxv• The PC outputs may remain ON or OFF due to deposition or burning of theoutput relays or destruction of the output tran

Página 359

800000000000LD 0000000200SRCHLD 0000000202LD 0000006000SRCHEND (01)(06.4KW)000000010000100TIM 00100203SRCHTIM

Página 360

81words are required for the instruction, input these in the same way as wheninputting the program initially.To delete an instruction, display the ins

Página 361

82Find the addressprior to the inser-tion pointInsert theinstructionProgram After InsertionInserting an Instruction0000000000OUT 0000000000OUT

Página 362

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

Página 363

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

Página 364

85and ease of understanding a program increased by redrawing a diagram thatwould otherwise required TR bits. In both of the following pairs of diagram

Página 365

86(ILC(03)) instructions to eliminate the branching point completely while allow-ing a specific execution condition to control a group of instructions

Página 366

87As shown in the following diagram, more than one INTERLOCK instructioncan be used within one instruction block; each is effective through the nextIN

Página 367 - Revision History

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

Página 368

894-7 Controlling Bit StatusThere are five instructions that can be used generally to control individual bitstatus. These are the OUTPUT, OUTPUT NOT,

Comentários a estes Manuais

Sem comentários