Cat. No. W235-E1-5Programmable ControllersSYSMACC200HS
Table of contentsx5-28 Advanced I/O Instructions 301 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-28-1 7-SEGM
874-6-7 Reading the I/O TableThe I/O Table Read operation is used to access the I/O table that is currentlyregistered in the CPU memory. This operatio
88Meaning of DisplaysI/O Unit Designations for Displays(see I/O Units Mounted in Remote Slave Racks, page 89)No. of points163264Input Unit Output Unit
89I/O word numberI/O type: I, Oi, o (see tables on previous page)Unit number (0 to 9)Remote I/O Slave Unit number (0 to 4)Remote I/O Master Unit numbe
90Key Sequence0000000000FUN (??)00000IOTBL ?-?U=00000IOTBL CANC ????00000IOTBL CANC 971300000IOTBL CANCOK00000IOTBL WRIT
91Key Sequence00000LINK TBL~UM(SYSMAC-NET)????00000LINK TBL~UMOK00000LINK TBL~UM(SYSMAC-NET)971300000LINK TBL~UMDISABLEDThe following indicates that t
924-7 Inputting, Modifying, and Checking the ProgramOnce a program is written in mnemonic code, it can be input directly into the PCfrom a Programming
93If the following mnemonic code has already been input into Program Memory,the key inputs below would produce the displays shown.000000020000200READ
!94The SV (set value) for a timer or counter is generally entered as a constant, al-though inputting the address of a word that holds the SV is also p
95Example The following program can be entered using the key inputs shown below. Dis-plays will appear as indicated.000000020000200LD 00002002
96Error Messages The following error messages may appear when inputting a program. Correctthe error as indicated and continue with the input operation
Table of contentsxiSECTION 10 – Troubleshooting 391 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-1 Alarm Indicators 392 . .
97Many of the following errors are for instructions that have not yet been describedyet. Refer to 4-8 Controlling Bit Status or to Section 5 Instructi
98Example The following example shows some of the displays that can appear as a result ofa program check.Display #2Display #3Halts program checkCheck
994-7-5 Program SearchesThe program can be searched for occurrences of any designated instruction ordata area address used in an instruction. Searches
1000000000000LD 0000000200SRCHLD 0000000202LD 0000002000SRCHEND (01)(02.7KW)000000010000100TIM 00100203SRCHTIM
!101To delete an instruction, display the instruction word of the instruction to be de-leted and then press DEL and the up key. All the words for the
102Find the addressprior to the inser-tion pointInsert theinstructionProgram After InsertionInserting an Instruction0000000000OUT 0000000000OUT
1034-7-7 Branching Instruction LinesWhen an instruction line branches into two or more lines, it is sometimes neces-sary to use either interlocks or T
104The previous diagram B can be written as shown below to ensure correct execu-tion. In mnemonic code, the execution condition is stored at the branc
105When drawing a ladder diagram, be careful not to use TR bits unless necessary.Often the number of instructions required for a program can be reduce
106When an INTERLOCK instruction is placed before a section of a ladder pro-gram, the execution condition for the INTERLOCK instruction will control t
Table of contentsxiiAppendix 433 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A – Stand
107If IR 00000 in the above diagram is OFF (i.e., if the execution condition for thefirst INTERLOCK instruction is OFF), instructions 1 through 4 woul
108The other type of jump is created with a jump number of 00. As many jumps asdesired can be created using jump number 00 and JUMP instructions using
1094-8-1 DIFFERENTIATE UP and DIFFERENTIATE DOWNDIFFERENTIATE UP and DIFFERENTIATE DOWN instructions are used toturn the operand bit ON for one cycle
110To create a self-maintaining bit, the operand bit of an OUTPUT instruction isused as a condition for the same OUTPUT instruction in an OR setup so
111Work bits can be used to simplify programming when a certain combination ofconditions is repeatedly used in combination with other conditions. In t
112This action is easily programmed by using IR 22500 as a work bit as the operandof the DIFFERENTIATE UP instruction (DIFU(13)). When IR 00000 turns
113Except for instructions for which conditions are not allowed (e.g., INTERLOCKCLEAR and JUMP END, see below), every instruction line must also have
1144-11 Program ExecutionWhen program execution is started, the CPU cycles the program from top to bot-tom, checking all conditions and executing all
115SECTION 5Instruction SetThe C200HS PC has a large programming instruction set that allows for easy programming of complicated control processes.Thi
1165-16-2 MOVE NOT – MVN(22) 159 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16-3 BLOCK SET – BSET(71) 160 . . . . . . . .
xiiiPRECAUTIONSThis section provides general precautions for using the Programmable Controller (PC) and related devices.The information contained in t
1175-20-9 SIGNED BINARY DIVIDE – DBS(––) 231 . . . . . . . . . . . . . . . . . . . . . . . . 5-20-10 DOUBLE SIGNED BINARY DIVIDE – DBSL(––) 232 . . .
1185-1 NotationIn the remainder of this manual, all instructions will be referred to by their mne-monics. For example, the Output instruction will be
!119Caution The IR and SR areas are considered as separate data areas. If an operand has access to onearea, it doesn’t necessarily mean that the same
!120A non-differentiated instruction is executed each time it is cycled as long as itsexecution condition is ON. A differentiated instruction is execu
121Code Mnemonic Name Page17 (@)ASFT ASYNCHRONOUS SHIFT REGISTER 15718 (@)SCAN CYCLE TIME 27619 (@)MCMP MULTI-WORD COMPARE 16947 (@)LMSG 32-CHARACTER
1225-6 Coding Right-hand InstructionsWriting mnemonic code for ladder instructions is described in Section 4 Writingand Inputting the Program. Convert
123The following diagram and corresponding mnemonic code illustrates the pointsdescribed above.Address Instruction Data00000 LD 0000000001 AND 00001
124Multiple Instruction Lines If a right-hand instruction requires multiple instruction lines (such as KEEP(11)),all of the lines for the instruction
Instruction Set Lists Section 5-71255-7 Instruction Set ListsThis section provides tables of the instructions available in the C200HS. The firsttable
Instruction Set Lists Section 5-7126Mnemonic PageNameWordsCodeASL (@) 25 2 ARITHMETIC SHIFT LEFT 154ASR (@) 26 2 ARITHMETIC SHIFT RIGHT 154AVG (@) ––
!!!xiv1 Intended AudienceThis manual is intended for the following personnel, who must also have knowl-edge of electrical systems (an electrical engin
Instruction Set Lists Section 5-7127Mnemonic PageNameWordsCodeLD NOT None 1 LOAD NOT 129LINE (@) 63 4 COLUMN TO LINE 200LMSG (@) 47 4 32-CHARACTER MES
Instruction Set Lists Section 5-7128Mnemonic PageNameWordsCodeSLD (@) 74 3 ONE DIGIT SHIFT LEFT 156SNXT 09 2 STEP START 266SRCH (@) –– 4 DATA SEARCH 2
1295-8 Ladder Diagram InstructionsLadder Diagram instructions include Ladder instructions and Logic Blockinstructions and correspond to the conditions
1305-8-2 AND LOAD and OR LOADLadder SymbolAND LOAD – AND LD00002000030000000001Ladder SymbolOR LOAD – OR LD00000 0000100002 00003Description When inst
131OUT turns ON the designated bit for an ON execution condition, and turns OFFthe designated bit for an OFF execution condition. With a TR bit, OUT a
132Precautions DIFU(13) and DIFD(14) operation can be uncertain when the instructions areprogrammed between IL and ILC, between JMP and JME, or in sub
1335-9-3 SET and RESET – SET and RSETB: BitIR, SR, AR, HR, LRLadder Symbols Operand Data AreasSET BB: BitIR, SR, AR, HR, LRRSET BDescription SET turns
134Description KEEP(11) is used to maintain the status of the designated bit based on two exe-cution conditions. These execution conditions are labele
135Example If a HR bit or an AR bit is used, bit status will be retained even during a powerinterruption. KEEP(11) can thus be used to program bits th
136IL(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
!!!!xvCaution The operating environment of the PC System can have a large effect on the lon-gevity and reliability of the system. Improper operating e
137Example The following diagram shows IL(02) being used twice with one ILC(03).0000000001ILC(03)IL(02)00004000050000300002IL(02)00502TIM 511CPRCNT001
138If the jump number for JMP(04) is 00, the CPU will look for the next JME(05) witha jump number of 00. To do so, it must search through the program,
139Any one TC number cannot be defined twice, i.e., once it has been used as thedefiner in any of the timer or counter instructions, it cannot be used
140If the execution condition remains ON long enough for TIM to time down to zero,the Completion Flag for the TC number used will turn ON and will rem
141There are two ways to achieve timers that operate for longer than 999.9 sec-onds. One method is to program consecutive timers, with the Completion
142The length of time that a bit is kept ON or OFF can be controlled by combiningTIM with OUT or OUT NO. The following diagram demonstrates how this i
143Bits can be programmed to turn ON and OFF at regular intervals while a desig-nated execution condition is ON by using TIM twice. One TIM functions
144Each TC number can be used as the definer in only one TIMER or COUNTERinstruction.If the cycle time is greater than 10 ms, use TC 000 through TC 01
145Precautions The PVs of totalizing timers in interlocked program sections are maintainedwhen the execution condition for IL(02) is OFF. Unlike timer
146Limitations Each TC number can be used as the definer in only one TIMER or COUNTERinstruction.Description CNT is used to count down from SV when th
xvi6 Conformance to EC DirectivesObserve the following precautions when installing the C200HS-CPU01-EC andC200HS-CPU21-EC that conform to the EC Direc
147The above CNT can be modified to restart from SV each time power is turned ONto the PC. This is done by using the First Cycle Flag in the SR area (
!148tween when the Completion Flag for TIM 001 goes ON and TIM 001 is reset byits Completion Flag). TIM 001 is also reset by the Completion Flag for C
149Limitations Each TC number can be used as the definer in only one TIMER or COUNTERinstruction.Description The CNTR(12) is a reversible, up/down cir
1505-15 Data ShiftingAll of the instructions described in this section are used to shift data, but in differ-ing amounts and directions. The first shi
151The following example uses the 1-second clock pulse bit (25502) so that theexecution condition produced by 00005 is shifted into a 3-word register
152The program is set up so that a rotary encoder (00000) controls execution ofSFT(10) through a DIFU(13), the rotary encoder is set up to turn ON and
153Description SFTR(84) is used to create a single- or multiple-word shift register that can shiftdata to either the right or the left. To create a si
1545-15-3 ARITHMETIC SHIFT LEFT – ASL(25)Wd: Shift wordIR, SR, AR, DM, HR, LRLadder Symbols Operand Data AreasASL(25)Wd@ASL(25)WdDescription When the
1555-15-5 ROTATE LEFT – ROL(27)Wd: Rotate wordIR, SR, AR, DM, HR, LRLadder Symbols Operand Data AreasROL(27)Wd@ROL(27)WdDescription When the execution
1565-15-7 ONE DIGIT SHIFT LEFT – SLD(74)Ladder Symbols Operand Data AreasSLD(74)StE@SLD(74)StESt: Starting wordIR, SR, AR, DM, HR, LRE: End wordIR, SR
1SECTION 1IntroductionThis section gives a brief overview of the history of Programmable Controllers and explains terms commonly used in ladder-diagra
157Precautions If a power failure occurs during a shift operation across more than 50 words, theshift operation might not be completed. Set the range
158Description When the execution condition is OFF, ASFT(17) does nothing and the programmoves to the next instruction. When the execution condition i
1595-16-1 MOVE – MOV(21)S: Source wordIR, SR, AR, DM, HR, TC, LR, #D: Destination wordIR, SR, AR, DM, HR, LRLadder Symbols Operand Data AreasMOV(21)SD
1605-16-3 BLOCK SET – BSET(71)S: Source dataIR, SR, AR, DM, HR, TC, LR, #St: Starting wordIR, SR, AR, DM, HR, TC, LRLadder SymbolsOperand Data AreasE:
161Example The following example shows how to use BSET(71) to change the PV of a timerdepending on the status of IR 00003 and IR 00004. When IR 00003
162Flags ER: N is not BCD between 0000 and 2000.S and S+N or D and D+N are not in the same data area.Indirectly addressed DM word is non-existent. (Co
163When the execution condition is OFF, DIST(80) is not executed. When the exe-cution condition is ON, DIST(80) operates a stack from DBs to DBs+C–900
1645-16-7 DATA COLLECT – COLL(81)SBs: Source base wordIR, SR, AR, DM, HR, TC, LRC: Offset data (BCD)IR, SR, AR, DM, HR, TC, LR, #Ladder SymbolsOperand
165Example In the following example, the content of C (HR 00) is 9010, and COLL(81) is usedto copy the oldest entries from a10-word stack (IR 001 to I
166Example In the following example, the content of C (HR 00) is 8010, and COLL(81) is usedto copy the most recent entries from a 10-word stack (IR 00
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
167Description When the execution condition is OFF, MOVB(82) is not executed. When the exe-cution condition is ON, MOVB(82) copies the specified bit o
168Digit Designator The following show examples of the data movements for various values of Di.0123012301230123SDi: 0031 Di: 0023Di: 0030Di: 0010SSS01
169Example In the following example, XFRB(62) is used to transfer 5 bits from IR 020 toLR 21 when IR 00001 is ON. The starting bit in IR 020 is 0, and
170Example The following example shows the comparisons made and the results providedfor MCMP(19). Here, the comparison is made during each cycle when
171Flags ER: Indirectly addressed DM word is non-existent. (Content of ∗DM word isnot BCD, or the DM area boundary has been exceeded.)EQ: ON if Cp1 eq
172The branching structure of this diagram is important in order to ensure that00200, 00201, and 00202 are controlled properly as the timer counts dow
173Limitations Cp1 and Cp1+1 must be in the same data area, as must Cp2 and Cp2+1.Description When the execution condition is OFF, CMPL(60) is not exe
1745-17-4 BLOCK COMPARE – BCMP(68)CD: Compare dataIR, SR, AR, DM, HR, TC, LR, #CB: First comparison block wordIR, DM, HR, TC, LRLadder SymbolsOperand
175Example The following example shows the comparisons made and the results providedfor BCMP(68). Here, the comparison is made during each cycle when
176Example The following example shows the comparisons made and the results providedfor TCMP(85). Here, the comparison is made during each cycle when
31-3 PC TerminologyAlthough also provided in the Glossary at the back of this manual, the followingterms are crucial to understanding PC operation and
177Precautions Placing other instructions between ZCP(88) and the operation which accessesthe EQ, LE, and GR flags may change the status of these flag
178Description When the execution condition is OFF, ZCPL(––) is not executed. When the exe-cution condition is ON, ZCPL(––) compares the 8-digit value
179Flags ER: Indirectly addressed DM word is non-existent. (Content of ∗DM word isnot BCD, or the DM area boundary has been exceeded.)EQ: ON if Cp1 eq
1805-18 Data ConversionThe conversion instructions convert word data that is in one format into anotherformat and output the converted data to specifi
1815-18-2 DOUBLE BCD-TO-DOUBLE BINARY – BINL(58)S: First source word (BCD)IR, SR, AR, DM, HR, TC, LRR: First result wordIR, SR, AR, DM, HR, LRLadder S
182Signed Binary Data BCD(24) cannot be used to convert signed binary data directly to BCD. To con-vert signed binary data, first determine whether th
1835-18-5 HOURS-TO-SECONDS – SEC(65)S: Beginning source word (BCD)IR, SR, AR, DM, HR, TC, LRR: Beginning result word (BCD)IR, SR, AR, DM, HR, TC, LRLa
1845-18-6 SECONDS-TO-HOURS – HMS(66)S: Beginning source word (BCD)IR, SR, AR, DM, HR, TC, LRR: Beginning result word (BCD)IR, SR, AR, DM, HR, TC, LRLa
1855-18-7 4-TO-16 DECODER – MLPX(76)S: Source wordIR, SR, AR, DM, HR, TC, LRC: Control wordIR, SR, AR, DM, HR, TC, LR, #Ladder SymbolsOperand Data Are
186Some example C values and the digit-to-word conversions that they produceare shown below.0123 RR + 1 RR + 1R + 2012301230123 RR + 1R + 2R + 3 RR +
C200HS Programmable ControllersOperation ManualRevised February 2002
4High-density I/O Units are designed to provide high-density I/O capability andinclude Group 2 High-density I/O Units and Special I/O High-density I/O
187The 4 possible C values and the conversions that they produce are shown be-low. (In S, 0 indicates the rightmost byte and 1 indicates the leftmost
188The following program converts three digits of data from LR 20 to bit positionsand turns ON the corresponding bits in three consecutive words start
18916-bit to 4-bit encoder DMPX(77) operates as a 16-bit to 4-bit encoder when the leftmost digit of C is 0.When the execution condition is OFF, DMPX(
190256-bit to 8-bit Encoder DMPX(77) operates as a 256-bit to 8-bit encoder when the leftmost digit of C isset to 1.When the execution condition is OF
191When 00000 is ON, the following diagram encodes IR words 010 and 011 to thefirst two digits of HR 20 and then encodes LR 10 and 11 to the last two
192Any or all of the digits in S may be converted in sequence from the designatedfirst digit. The first digit, the number of digits to be converted, a
193Example The following example shows the data to produce an 8. The lower case lettersshow which bits correspond to which segments of the 7-segment d
1945-18-10 ASCII CONVERT – ASC(86)S: Source wordIR, SR, AR, DM, HR, TC, LRDi: Digit designatorIR, SR, AR, DM, HR, TC, LR, #Ladder SymbolsOperand Data
195Some examples of Di values and the 4-bit binary to 8-bit ASCII conversions thatthey produce are shown below.0123SDi: 0011 D0123Di: 0030S0123Di: 013
196Limitations Di must be within the values given below.All source words must be in the same data area.Bytes in the source words must contain the ASCI
5Input/Output Requirements The first thing that must be assessed is the number of input and output pointsthat the controlled system will require. This
197Some examples of Di values and the 8-bit ASCII to 4-bit hexadecimal conver-sions that they produce are shown below.0123DDi: 0011 SDi: 0030Di: 0133D
198Flags ER: Incorrect digit designator, or data area for destination exceeded.Indirectly addressed DM word is non-existent. (Content of ∗DM word isno
199The following table shows the functions and ranges of the parameter words:Parameter Function Range CommentsP1 BCD point #1 (AY) 0000 to 9999 ---P1+
2005-18-13 COLUMN TO LINE – LINE(63)S: First word of 16 word source setIR, SR, AR, DM, HR, TC, LRC: Column bit designator (BCD)IR, SR, AR, DM, HR, TC,
2015-18-14 LINE TO COLUMN – COLM(64)S: Source wordIR, SR, AR, DM, HR, TC, LRC: Column bit designator (BCD)IR, SR, AR, DM, HR, TC, LR, #Ladder SymbolsO
2025-18-15 2’S COMPLEMENT – NEG(––)S: Source wordIR, SR, AR, DM, HR, TC, LR, #Ladder SymbolsOperand Data AreasR: Result wordIR, SR, AR, DM, HR, LRNEG(
2035-18-16 DOUBLE 2’S COMPLEMENT – NEGL(––)S: First source wordIR, SR, AR, DM, HR, TC, LRLadder SymbolsOperand Data AreasR: First result wordIR, SR, A
2045-19 BCD CalculationsThe BCD calculation instructions – INC(38), DEC(39), ADD(30), ADDL(54),SUB(31), SUBL(55), MUL(32), MULL(56), DIV(33), DIVL(57)
2055-19-3 SET CARRY – STC(40)Ladder SymbolsSTC(40) @STC(40)When the execution condition is OFF, STC(40) is not executed.When the execu-tion condition
206Example If 00002 is ON, the program represented by the following diagram clears CY withCLC(41), adds the content of LR 25 to a constant (6103), pla
6Name ContentsCat. No.SYSMAC Support Software Operation Manuals W247/W248 Programming procedures for using the SSSData Access Console Operation Guide
207Flags ER: Au and/or Ad is not BCD.Indirectly addressed DM word is non-existent. (Content of ∗DM word isnot BCD, or the DM area boundary has been ex
!208Flags ER: Mi and/or Su is not BCD.Indirectly addressed DM word is non-existent. (Content of ∗DM word isnot BCD, or the DM area boundary has been e
209Note The actual SUB(31) operation involves subtracting Su and CY from 10,000 plusMi. For positive results the leftmost digit is truncated. For nega
210Flags ER: Mi, M+1,Su, or Su+1 are not BCD.Indirectly addressed DM word is non-existent. (Content of ∗DM word isnot BCD, or the DM area boundary has
2115-19-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
2125-19-10 DOUBLE BCD MULTIPLY – MULL(56)Md: First multiplicand word (BCD)IR, SR, AR, DM, HR, TC, LRMr: First multiplier word (BCD)IR, SR, AR, DM, HR,
213Description When the execution condition is OFF, DIV(33) is not executed and the programmoves to the next instruction. When the execution condition
214Description When the execution condition is OFF, DIVL(57) is not executed. When the exe-cution condition is ON, DIVL(57) the eight-digit content of
215To represent the floating point values, the rightmost seven digits are used for themantissa and the leftmost digit is used for the exponent, as sho
216DM 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
71-8-1 Improved Memory CapabilitiesInternal Memory (UM) The C200HS CPUs come equipped with 16 KW of RAM in the PC itself, so a verylarge memory capaci
2175-19-14 SQUARE ROOT – ROOT(72)Sq: First source word (BCD)IR, SR, AR, DM, HR, TC, LRR: Result wordIR, SR, AR, DM, HR, LR,Ladder Symbols Operand Data
218In this example, √6017 = 77.56, and 77.56 is rounded off to 78.010601700000@MOV(21)010DM 0101@ROOT(72)DM 0100DM 0102@MOV(21)#0000011@MOVD(83)DM 010
2195-20 Binary CalculationsBinary calculation instructions — ADB(50), SBB(51), MLB(52), DVB(53),ADBL(––), SBBL(––), MBS(––), MBSL(––), DBS(––), and DB
220The following example shows a four-digit addition with CY used to place either#0000 or #0001 into R+1 to ensure that any carry is preserved.CLC(41)
221In the case below, 25,321 +(–13,253) = 12,068 (62E9 + CC3B = 2F24). NeitherOF nor UF are turned ON.Au: LR 2062E9Ad: DM 0010CC3 B+Ad: DM 00102F24Not
222Example 1: Normal Data The following example shows a four-digit subtraction with CY used to place ei-ther #0000 or #0001 into R+1 to ensure that an
223In the following example, SBB(51) is used to subtract one 16-bit signed binaryvalue from another. (The 2’s complement is used to express negative v
2245-20-3 BINARY MULTIPLY – MLB(52)Md: Multiplicand word (binary)IR, SR, AR, DM, HR, TC, LR, #Mr: Multiplier word (binary)IR, SR, AR, DM, HR, TC, LR,
225Precautions DVB(53) cannot be used to divide signed binary data. Use DBS(––) instead. Re-fer to 5-20-9 SIGNED BINARY DIVIDE – DBS(––) for details.F
226ADBL(––) can also be used to add signed binary data. The underflow and over-flow flags (SR 25404 and SR 25405) indicate whether the result has exce
8I/O Refreshing Time The I/O refreshing time has been reduced for all units, as shown in the followingtable.I/O Unit Time Required for RefreshingStand
227In the case below, 1,799,100,099 + (–282,751,929) = 1,516,348,100(6B3C167D + EF258C47 = 5A61A2C4). Neither OF nor UF are turned ON.Au + 1 : LR 21Au
228Flags ER: Indirectly addressed DM word is non-existent. (Content of :DM word isnot BCD, or the DM area boundary has been exceeded.)CY: ON when the
229In the case below, 1,799,100,099 – (–282,751,929) = 2,081,851,958(6B3C 167D – {EF25 8C47 – 1 0000 0000} = 7C16 8A36). Neither OF nor UFare turned O
230Example In the following example, MBS(––) is used to multiply the signed binary contentsof IR 001 with the signed binary contents of DM 0020 and ou
231Example In the following example, MBSL(––) is used to multiply the signed binary con-tents of IR 101 and IR 100 with the signed binary contents of
232Example In the following example, DBS(––) is used to divide the signed binary contents ofIR 001 with the signed binary contents of DM 0020 and outp
233Example In the following example, DBSL(––) is used to divide the signed binary contentsof IR 002 and IR 001 with the signed binary contents of DM 0
!234If bit 15 of C is ON and more than one address contains the same maximum val-ue, the position of the lowest of the addresses will be output to D+1
!235If bit 14 of C is ON and more than one address contains the same minimum val-ue, the position of the lowest of the addresses will be output to D+1
236On the Nth cycle, the previous value of S is written to last word in the range D+2 toD+N+1. The average value of the previous values stored in D+2
9TRSM(45) TRACE MEMORY SAMPLEMCRO(99) MACROMAX(--) FIND MAXIMUMMIN(--) FIND MINIMUMSUM(--) SUM SRCH(--) DATA SEARCHFPD(--) FAILURE POINT DETECTIONPID(
237Example In the following example, the content of IR 040 is set to #0000 and then increm-ented by 1 each cycle. For the first two cycles, AVG(––) mo
238Description When the execution condition is OFF, SUM(––) is not executed. When the ex-ecution condition is ON, SUM(––) adds either the contents of
239Example In the following example, the BCD contents of the 8 words from DM 0000 toDM 0007 are added when IR 00001 is ON and the result is written to
240ExamplesSine Function The following example demonstrates the use of the APR(69) sine function to cal-culate the sine of 30°. The sine function is s
Y0X0X1X2X3X4XmXYYmY4Y3Y1Y2241Enter the coordinates of the m+1 end-points, which define the m line segments,as shown in the following table. Enter all
!242In this case, the input data word, IR 010, contains #0014, and f(0014) = #0726 isoutput to R, IR 011. XY$1F20$0F00$0726$0402(0,0)$0005 $0014 $001A
243Parameter SettingsItem Contents Setting rangeSet value (SV) This is the target value of the process beingcontrolled.Binary data (of the samenumber
244When overshooting is prevented with simple PID control, stabilization of distur-bances is slowed (1). If stabilization of disturbances is speeded u
245integral time is too short, the correction will be too strong and will cause huntingto occur.Integral OperationPI Operation and Integral TimeDeviat
246without hunting, integral operation to automatically correct any offset, and deriv-ative operation to speed up the response to disturbances.PID Ope
101-8-7 Built-in RS-232C ConnectorHost link communications are possible using the RS-232C connector built intothe C200HS-CPU21-E/CPU23-E/CPU31-E/CPU33
247hunting will be reduced if the integral time is increased or the proportional bandis enlarged.Control by measured PID (when loose hunting occurs)En
248Creating the Program Follow the procedure outlined below in creating the program.1, 2, 3...1. Set the target value (binary 0000 to 0FFF) in DM 0000
249Note When using PID(––) or SCL(––), make the data settings in advance with a Pe-ripheral Device such as the Programming Console or LSS.Target value
2505-22-2 LOGICAL AND – ANDW(34)I1: Input 1IR, SR, AR, DM, HR, TC, LR, #I2: Input 2IR, SR, AR, DM, HR, TC, LR, #Ladder SymbolsOperand Data AreasR: Res
2515-22-3 LOGICAL OR – ORW(35)I1: Input 1IR, SR, AR, DM, HR, TC, LR, #I2: Input 2IR, SR, AR, DM, HR, TC, LR, #Ladder SymbolsOperand Data AreasR: Resul
2525-22-4 EXCLUSIVE OR – XORW(36)I1: Input 1IR, SR, AR, DM, HR, TC, LR, #I2: Input 2IR, SR, AR, DM, HR, TC, LR, #Ladder SymbolsOperand Data AreasR: Re
2535-22-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
254INT(89) is used to control the interrupt signals received from the Interrupt InputUnit, and also to control the scheduling of the scheduled interru
255The following setting is used for normal interrupt mode.DM 66200000In normal interrupt mode, the following processing will be completed oncestarted
256The PC Setup for the C200HS contains settings in DM 6620 that disable refresh-ing in the normal cycle for specific Special I/O Units. This settings
11I/O Comments Stored in PC By allocating a part of UM as the I/O Comment area, it is no longer necessary toread I/O Comments from a Peripheral Device
257If you must handle the same data both in the main program and in an interruptsubroutine, use programming such as that shown below to be sure that d
258Description A subroutine can be executed by placing SBS(91) in the main program at thepoint where the subroutine is desired. The subroutine number
!259The following diagram illustrates program execution flow for various executionconditions for two SBS(91).SBS(91) 00 SBS(91) 01SBN(92) 00RET(93)SBN
260All subroutines must be programmed at the end of the main program. When oneor more subroutines have been programmed, the main program will be ex-ec
261In the following example, the contents of DM 0010 through DM 0013 are copiedto SR 290 through SR 293, the contents of DM 0020 through DM 0023 are c
262Example The following examples shows the use of four MCRO(99) instructions that ac-cess the same subroutine. The program section on the left shows
263Description INT(89) is used to control interrupts and performs one of 8 functions dependingon the values of C and N. As shown in the following tabl
264Flags ER: Indirectly addressed DM word is non-existent. (Content of :DM word isnot BCD, or the DM area boundary has been exceeded.)C, and/or N are
265The scheduled interrupt is disabled at the start of operation (the scheduled inter-rupt interval is 0), so the time to the first interrupt and sche
2665-24 Step InstructionsThe step instructions STEP(08) and SNXT(09) are used in conjunction to set upbreakpoints between sections in a large program
127. Transfer the program and and any other require data to the C200HS. Youwill probably want to transfer DM data and the I/O table, if you have creat
267Execution of a step is completed either by execution of the next SNXT(09) or byturning OFF the control bit for the step (see example 3 below). When
268Flags 25407: Step Start Flag; turns ON for one cycle when STEP(08) is executed andcan be used to reset counters in steps as shown below if necessar
269The following diagram demonstrates the flow of processing and the switchesthat are used for execution control.Process AProcess BProcess CLoadingPar
270The program for this process, shown below, utilizes the most basic type of stepprogramming: each step is completed by a unique SNXT(09) that starts
271The following process requires that a product is processed in one of two ways,depending on its weight, before it is printed. The printing process i
272The program for this process, shown below, starts with two SNXT(09) instruc-tions that start processes A and B. Because of the way 00001 (SW A1) an
273The following process requires that two parts of a product pass simultaneouslythrough two processes each before they are joined together in a fifth
274STEP(08) LR 0000SNXT(09) LR 0001STEP(08) LR 0001STEP(08) LR 0004SNXT(09) LR 0005STEP(08)Process AProcess BProcess C00002 (SW3)00005 (SW7)Process A
275Address Instruction Operands Address Instruction Operands00000 LD 0000100001 SNXT(09) LR 000000002 SNXT(09) LR 000200003 STEP(08) LR 0000Process A0
276FAL(06) produces a non-fatal error and FAL(07) produces a fatal error. WhenFAL(06) is executed with an ON execution condition, the ALARM/ERROR indi
1310. Turn the C200HS off and then back on to reset it and transfer data from theMemory Cassette to the CPU.11. Test program execution before attempti
2775-25-3 TRACE MEMORY SAMPLING – TRSM(45)Data tracing can be used to facilitate debugging programs. To set up and usedata tracing it is necessary to
278The sampled data is written to trace memory, jumping to the beginning of thememory area once the end has been reached and continuing up to the star
MSGABCDEFGHIJKLMNOP279In handling indirectly addressed messages (i.e. :DM), those with thelowest DM address values have higher priority.Clearing Messa
280Description LMSG(47) is used to output a 32-character message to a Programming Con-sole. The message to be output must be in ASCII beginning in wor
281Example In the following example, TERM(48) is used to switch the Programming Consoleto TERMINAL mode when 00000 is ON. Be sure that pin 6 of the CP
282To refresh I/O words allocated to Special I/O Units (IR 100 to IR 199), indicate theunit numbers of the Units by designating IR 040 to IR 049 (see
283Refer to 6-1 Cycle Time for a table showing I/O refresh times for Group-2High-density I/O Units.Flags ER: St or E is not BCD between #0000 and #000
284The function of bits in C are shown in the following diagram and explained inmore detail below.15 14 13 12 11 00Number of items in range (N, BCD)00
285Example When IR 00000 is ON in the following example, the frame checksum (0008) iscalculated for the 8 words from DM 0000 to DM 0007 and the ASCII
286When the execution condition is OFF, FPD(––) is not executed. When the exe-cution condition is ON, FPD(––) monitors the time until the logic diagno
!!!iiNotice:OMRON products are manufactured for use according to proper procedures by a qualified operatorand only for the purposes described in this
15SECTION 2Hardware ConsiderationsThis section provides information on hardware aspects of the C200HS that are relevant to programming and software op
287D+1 contains the bit address code of the input condition, as shown below.The word addresses, bit numbers, and TC numbers are in binary.DataAD+1 bit
288Example In the following example, the FPD(––) is set to display the bit address and mes-sage (“ABC”) when a monitoring time of 123.4 s is exceeded.
2895-25-13 DATA SEARCH – SRCH(––)R1: First word in rangeIR, SR, AR, DM, HR, TC, LRN: Number of wordsIR, SR, AR, DM, HR, TC, LR, #Ladder Symbols Operan
290Example In the following example, the 10 word range from DM 0010 to DM 0019 issearched for addresses that contain the same data as DM 0000 (#FFFF).
291Example In the following example, the 100 word range from DM 7000 through DM 7099 iscopied to DM 0010 through DM 0109 when IR 00001 is ON.@XDMR(––)
292The status of bit 15 of C+1 determines whether the instruction is for a SYSMACNET Link System or a SYSMAC LINK System.Control DataSYSMAC NET Link S
293Flags ER: The specified node number is greater than 126 in a SYSMAC NET LinkSystem or greater than 62 in a SYSMAC LINK System.The sent data overrun
294SYSMAC 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
2955-26-3 About Network CommunicationsSEND(90) and RECV(98) are based on command/response processing. Thatis, the transmission is not complete until t
296SR KEEP(11)12802DIFU(13) 12801@MOV(21)#000ADM 00001280000000 252041280212801@MOV(21)#0000DM 0001@MOV(21)#0003DM 0002XFER(70)#0010000 DM 0010@SEND(9
!162-1 CPU ComponentsThere are two groups of CPUs available, one that uses an AC power supply, andone that uses a DC power supply. Select one of the m
297Address Instruction Operands Address Instruction Operands00000 LD 0000000001 AND 2520400002 AND NOT 1280200003 LD 1280100004 KEEP(11) 1280000005 LD
!298Note RXD(––) is required to receive data via the peripheral port or RS-232C port only.Transmission sent from a host computer to a Host Link Unit a
2995-27-2 TRANSMIT – TXD(––)S: First source wordIR, SR, AR, DM, HR, TC, LRC: Control wordIR, SR, AR, DM, HR, TC, LR, #Ladder SymbolsOperand Data Areas
300The following diagram shows the format for host link command (TXD) sent fromthe C200HS. The C200HS automatically attaches the prefixes and suffixes
3015-28 Advanced I/O InstructionsAdvanced I/O instructions enable control, with a single instruction, of previouslycomplex operations involving extern
302If there are 8 digits of source data, they are placed in S and S+1, with the mostsignificant digits placed in S+1. If there are 4 digits of source
3032. The 7-segment display may require either positive or negative logic, de-pending on the model.3. The 7-segment display must have 4 data signal li
3045-28-2 DIGITAL SWITCH INPUT – DSW(––)IW: Input wordIR, SR, AR, HR, LRLadder Symbols Operand Data AreasDSW(––)IWOWRR: First result wordIR, SR, AR, D
305Hardware With this instruction, 8-digit BCD set values are read from a digital switch.DSW(––) utilizes 5 output bits and 8 input bits. Connect the
306The following example illustrates connections for an A7B Thumbwheel Switch.13579111315COM02468101214COMID212Input UnitSwitch no. 813579111315COM024
17C200HS-CPU21-E/CPU23-E/CPU31-E/CPU33-EMemory Casette compartmentBus connector: Available only with the CPU31-Eand CPU33-E. Use this connectorwhen SY
307Using the Instruction If the input word for connecting the digital switch is specified at for word A, andthe output word is specified for word B, t
3085-28-3 HEXADECIMAL KEY INPUT – HKY(––)OW: Control signal output wordIR, SR, AR, HR, LRIW: Input wordIR, SR, AR, HR, LRLadder Symbols Operand Data A
309Hardware This instruction inputs 8 digits in hexadecimal from a hexadecimal keyboard. Itutilizes 5 output bits and 4 input bits. Prepare the hexad
310Using the Instruction If the input word for connecting the hexadecimal keyboard is specified at word A,and the output word is specified at word B,
3115-28-4 TEN KEY INPUT – TKY(––)D1: First register wordIR, SR, AR, DM, HR, LRIW: Input wordIR, SR, AR, HR, LRLadder Symbols Operand Data AreasTKY(––)
312Using the Instruction If the input word for connecting the 10-key keypad is specified for IW, then opera-tion will proceed as shown below when the
3135-28-5 MATRIX INPUT – MTR(––)OW: Output wordIR, SR, AR, HR, LRIW: Input wordIR, SR, AR, HR, LRLadder Symbols Operand Data AreasMTR(––)IWOWDD: First
314Hardware This instruction inputs up to 64 signals from an 8 x 8 matrix using 8 input pointsand 8 output points. Any 8 x 8 matrix can be used. The i
315Example The following examples shows programming MTR(––) in a scheduled subrou-tine, where IORF(97) is programmed to ensure that the I/O words used
317SECTION 6Program Execution TimingThe timing of various operations must be considered both when writing and debugging a program. The time required t
182-1-2 Peripheral Device ConnectionA Programming Console or IBM PC/AT running LSS can be used to programand monitor the C200HS PCs.Programming Consol
3186-1 Cycle TimeTo aid in PC operation, the average, maximum, and minimum cycle times can bedisplayed on the Programming Console or any other Program
319Flowchart of CPU Operation YESNONOPower applicationClears IR area andresets all timersChecks I/O Unit connectionsResets watchdog timerChecks hardw
320The first three operations immediately after power application are performedonly once each time the PC is turned on. The rest of the operations are
321I/O pts to refresh Time required(ms)512 7.4256 4.1128 2.764 1.7Unit Time required per UnitC200H-ID501/215 0.6 msC200H-OD501/215 0.6 ms when set for
!322Even if the cycle time does not exceed the set value of the watchdog timer, a longcycle time can adversely affect the accuracy of system operation
323Calculations The equation for the cycle time from above is as follows:Cycle time = Overseeing time + Program execution time + I/O refresh time +Pe
324Calculations The equation for the cycle time is as follows:Cycle time = Overseeing time + Program execution time+ I/O refreshing time + Host Link
325InstructionOFF execution time (µs)ON execution time (µs)ConditionsAND LD --- 0.375 0.375OR LD --- 0.375 0.375OUT For IR and SR 23600 to SR 25515 0.
326InstructionOFF execution time (µs)ON execution time (µs)ConditionsSFT(10) With 1-word shift register 47.06 R: 35.80IL: 15.70JMP: 15.60With 100-word
327InstructionOFF execution time (µs)ON execution time (µs)ConditionsBIN(23) When converting a word to a word 40.40 1.125When converting :DM to :DM 74
19Expansion I/O Racks An Expansion I/O Rack can be thought of as an extension of the PC because itprovides additional slots to which other Units can b
328InstructionOFF execution time (µs)ON execution time (µs)ConditionsADB(50) Constant + word → word 43.20 1.5Word + word → word 45.80:DM + :DM → :DM 9
329InstructionOFF execution time (µs)ON execution time (µs)ConditionsDMPX(77) When encoding a word to a word 48.90 1.5When encoding :DM to :DM 185.90S
330InstructionOFF execution time (µs)ON execution time (µs)ConditionsTERM(––)Default code: (48)--- 16.40 1.5CMPL(––) When comparing words to words 51.
331InstructionOFF execution time (µs)ON execution time (µs)Conditions:DM-designated 4 digits 66.60 to 72.80Word-designated 8 digits 56.70 to 64.80:DM-
332InstructionOFF execution time (µs)ON execution time (µs)ConditionsNEG(––) When converting a constant to a word 34.90 1.5When converting a word to a
3336-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
334The PC takes longest to respond when it receives the input signal just after theI/O refresh phase of the cycle. In this case the CPU does not recog
!335In looking at the following timing charts, it is important to remember the se-quence in which processing occurs during the PC scan, particular tha
336Example Calculations Calculations would be as shown below for an input ON delay of 1.5 ms, an out-put ON delay of 15 ms, and a cycle time of 20 ms.
!3376-4-4 PC Link SystemsThe processing that determines and the methods for calculating maximum andminimum response times from input to output are pro
20C200HSFunction C200HSCPU01-E CPU21-E CPU31-E CPU03-E CPU23-E CPU33-EBuilt-in clock/calendar YesError log Yes1Data Trace YesDifferential Monitor YesE
338Inserting the following values into this equation produces a minimum I/O re-sponse time of 149.3 ms.Input ON delay: 1.5 msOutput ON delay: 15 msCyc
339Induction sequence processing: 15 ms x (8 PCs – 8 PCs) = 0 msI/O refresh bits for Unit 0 256I/O refresh bits for Unit 7 256Reducing Response Time I
340The minimum and maximum I/O response times are shown here, using as anexample the following instructions executed at the master and the slave. In t
3413. Communications are completed just after the slave executes communica-tions servicing.I/O refreshOverseeing, communica-tions, etc.Input ON delayM
342Scheduled InterruptsHardware time clockScheduled interruptsubroutine executiont3Scheduled in-terrupt intervalt3 t3t3t3 = Software interrupt respons
343Note 1. If there are several elements that can cause interrupts or if the interrupt peri-od is shorted than the average interrupt processing time,
345SECTION 7Program Monitoring and ExecutionThis section provides the procedures for monitoring and controlling the PC through a Programming Console.
3467-1 Monitoring Operation and Modifying DataThe simplest form of operation monitoring is to display the address whose oper-and bit status is to be m
347Key SequenceCancels monitoroperationClears leftmost addressExamples The following examples show various applications of this monitor operation.Prog
348Bit Monitor0000000000LD 0000100001^ ON00000CONT 00001Note The status of TR bits SR flags SR 25503 to 25507 (e.g., the arithmetic fla
!21C200HS-MPj16K (EPROM) The program is written using a PROM Writer. The ROM is mounted to theMemory Casette and then installed in the CPU. I/O data c
349+Multiple Address Monitoring0000000000TIM 000 T000 010000000 T000 010000001 T000 010000001 T000 OFF 0100D000000001 T000 ^OF
350Bit status will remain ON or OFF only as long as the key is held down; the originalstatus will return as soon as the key is released. If a timer is
351The following displays show what happens when TIM 000 is set with 00100 OFF(i.e., 00500 is turned ON) and what happens when TIM 000 is reset with 0
352Example The following example shows the displays that appear when Restore Status iscarried out normally.000000000000000FORCE RELE?00000FORCE RELEEN
353Example The following example shows the effects of changing the PV of a timer.This example is in MONITOR modeTimingTimingPV decrementingTimingTimin
3547-1-5 Hex/ASCII Display ChangeThis operation converts DM data displays from 4-digit hexadecimal data to AS-CII and vice versa.Key SequenceWord curr
3557-1-6 4-digit Hex/Decimal Display ChangeThis operation converts data displays from normal or signed 4-digit hexadecimaldata to decimal and vice ver
3567-1-7 8-digit Hex/Decimal Display ChangeThis operation converts data displays from normal or signed, 4 or 8-digit hexa-decimal data to decimal and
3577-1-8 Differentiation MonitorThis operation can be used to monitor the up or down differentiation status of bitsin the IR, SR, AR, LR, HR, and TC a
3587-1-9 3-word MonitorTo monitor three consecutive words together, specify the lowest numberedword, press MONTR, and then press EXT to display the da
223. Remove the bracket from the Memory Cassette, as shown in the illustrationbelow.Metal bracket4. Check that the connector side goes in first and th
359Example3-word Monitor in progress.Stops in the middleof monitoring.Resumes previousmonitoring.D0002D0001D0000 0123 4567 89ABD0002 3CH CHG? =0123 4
3600000000000CHANNEL 000 c000 MONTR0000000000001111 c001 MONTR000001010101010000000CHANNEL 0010000000000CHANNEL DM 0000D0000 FFFF
3617-1-12 Binary Data ModificationThis operation assigns a new 16-digit binary value to an IR, HR, AR, LR, or DMword.The cursor, which can be shifted
362IR bit 00115 IR bit 001000000000000CHANNEL 00000000CHANNEL 001 c001 MONTR0000010101010101 c001 CHG?=000010101010101 c001 CH
363Key SequenceThe following examples show inputting a new constant, changing from a con-stant to an address, and incrementing to a new constant.00000
364Returns to original display with new SVCurrent SV (during change operation)SV before the change0000000000TIM 00000201SRCHTIM 0000
3657-1-14 Expansion Instruction Function Code AssignmentsThis operation is used to read or change the function codes assigned to expan-sion instructio
3667-1-15 UM Area AllocationThis operation is used to allocate part of the UM Area for use as expansion DM. Itcan be performed in PROGRAM mode only. M
3677-1-16 Reading and Setting the ClockThis operation is used to read or set the CPU’s clock. The clock can be read inany mode, but it can be set in M
368Expansion TERMINAL Mode The Programming Console can be put into Expansion TERMINAL mode by turn-ing ON AR 0709. Pin 6 of the CPU’s DIP switch must
232-6 CPU DIP SwitchThe DIP switch on C200HS CPUs is located between the Memory Cassettecompartment and battery.The 6 pins on the DIP switch control 6
369All bits from SR 27700 through SR 27909 will be turned OFF when AR 0708 isturned ON. Expansion keyboard mapping inputs are disabled when AR 0708 is
370SR word Corresponding key(s)Bit277 12131415278 00010203040506070809101112131415279 000102Monitoring Operation and Modifying Data Section 7-1
371SR word Corresponding key(s)Bit279 030405 *30607VER0809Monitoring Operation and Modifying Data Section 7-1
373SECTION 8CommunicationsThis section provides an overview of the communications features provided by the C200HS.8-1 Introduction 374 . . . . . . . .
3748-1 IntroductionThe C200HS supports the following types of communications.• Communications with Programming Devices (e.g., Programming Console,LSS,
3758-2-1 Standard Communications ParametersThe settings in DM 6645 and DM 6650 determine the main communications pa-rameters, as shown in the followin
3768-2-2 Specific Communications ParametersThe following settings are valid only when pin 5 on the CPU’s DIP switch isturned OFF and DM 6645 and DM 66
3778-2-3 Wiring PortsUse the wiring diagram shown below as a guide in wiring the port to the externaldevice. Refer to documentation provided with the
378PC Setup The following parameter in the PC Setup is used only when the Host Link com-munications mode is being used.Host Link Node NumberA node num
379TXD(––) instruction. In all other cases, data transmission based on aTXD(––) instruction will be given first priority.Application Example This exam
25SECTION 3Memory AreasVarious types of data are required to achieve effective and correct control. To facilitate managing this data, the PC is provid
380PC Setup Start and end codes or the amount of data to be received can be set as shown inthe following diagrams if required for RS-232C communicatio
381Start and end codes are not included when the number of bytes to be transmittedis specified. The largest transmission that can be sent with or with
382Application Example This example shows a program for using the RS-232C port in the RS-232Cmode to transmit 10 bytes of data (DM 0100 to DM 0104) to
383Plug: XM2A-0901 (OMRON) or equivalentHood: XM2S-0901 (OMRON) or equivalent123456FGSDRDRSCS–––SG789123456789FGSDRDRSCS––SG9C200HS C200HSSignalAbb.Pi
384When the program is executed at both the master and the slave, the status ofIR 001 of each Unit will be reflected in IR 100 of the other Unit. IR 0
385SECTION 9Memory Cassette OperationsThis section describes how to manage both UM Area and IOM data via Memory Cassettes. mounted in the CPU.9-1 Memo
!!3869-1 Memory CassettesThe C200HS comes equipped with a built-in RAM for the user’s program so pro-grams can be created even without installing a Me
387Word FunctionBit(s)SR 27000 Save UM to Cassette BitData transferred to Memory Cassette when Bit is turnedON in PROGRAM mode. Bit will automatically
3884. Turn on the CPU.5. If the desired program or UM Area data is not already in the CPU, write thedata or transfer it to the CPU.6. Switch the C200H
389Note The data inside the Memory Cassette should be protected by turning on thewrite-protect switch whenever you are not planning to write to the Ca
iiiAbout this Manual:This manual describes the operation of the C200HS C-series Programmable Controllers, and it includesthe sections described below.
263-1 IntroductionDetails, including the name, size, and range of each area are summarized in thefollowing table. Data and memory areas are normally r
391SECTION 10TroubleshootingThe C200HS provides self-diagnostic functions to identify many types of abnormal system conditions. These functions mini-m
!39210-1 Alarm IndicatorsThe ALM/ERR indicator on the front of the CPU provides visual indication of anabnormality in the PC. When the indicator is ON
393The type of error can be quickly determined from the indicators on the CPU, asdescribed below for the three types of errors. If the status of an in
394Error and message Possible correctionProbable causeFAL no.High-density I/O Unit errorSYS FAIL FAL9A9A An error occurred in datatransfer between aHi
395Fatal Operating Errors The following error messages appear for errors that occur after program execu-tion has been started. PC operation and progra
396Error and message Possible correctionProbable causeFAL no.Too many UnitsI/O UNIT OVERE1 Two or more Special I/OUnits are set to thesame unit number
39710-5 Error FlagsThe following table lists the flags and other information provided in the SR andAR areas that can be used in troubleshooting. Detai
398AR AreaAddress(es) Function0000 to 0009 Special I/O or PC Link Unit Error Flags0010 SYSMAC LINK/SYSMAC NET Link Level 1 System Error Flags0011 SYSM
39910-6 Host Link ErrorsThese error codes are received as the response code (end code) when a com-mand received by the C200HS from a host computer can
401SECTION 11Host Link CommandsThis section explains the methods and procedures for using host link commands, which can be used for host link communic
27Work Bits and Words When some bits and words in certain data areas are not being used for their in-tended purpose, they can be used in programming a
40211-1 Communications ProcedureCommand Chart The commands listed in the chart below can be used for host link communica-tions with the C200HS. These
403Host link communications are executed by means an exchange of commandsand responses between the host computer and the PC. With the C200HS, thereare
404When commands are issued to the host computer, the data is transmitted in onedirection from the PC to the host computer. If a response to a command
405Long Transmissions The largest block of data that can be transmitted as a single frame is 131 charac-ters. A command or response of 132 characters
406time a frame is received and checking the result against the FCS that is includedin the frame makes it possible to check for data errors in the fra
407Reception Format When TXD(––) is executed, the data stored in the words beginning with the firstsend word is converted to ASCII and output to the h
408Response Format@ RLx 101x 100x 161x 160: ↵x 163x 162x 161x 160FCSNode no. HeadercodeEnd codeRead data (1 word)Read data (for number of words read)T
409cimal as a response. The PVs are returned in order, starting with the specifiedbeginning timer/counter.11-3-5 TC STATUS READ –– RGReads the status
41011-3-7 AR AREA READ –– RJReads the contents of the specified number of AR words, starting from the speci-fied word.Command Format@ RJFCSx 101x 100x
41111-3-9 LR AREA WRITE –– WLWrites data to the LR area, starting from the specified word. Writing is done wordby word.Command Format@ WLFCSx 101x 100
28The same TC number can be used to designate either the present value (PV) ofthe timer or counter, or a bit that functions as the Completion Flag for
41211-3-11 PV WRITE –– WCWrites the PVs (present values) of timers/counters starting from the specifiedtimer/counter.Command Format@ WCFCSx 101x 100x
413Note If data is specified for writing which exceeds the allowable range, an error will begenerated and the writing operation will not be executed.
414Parameters Write Data (Command)Specify in order the contents of the number of words to be written to the AR areain hexadecimal, starting with the s
41511-3-16 SV READ 2 –– R$Reads the constant SV or the word address where the SV is stored. The SV thatis read is a 4-digit decimal number (BCD) writt
41611-3-17 SV READ 3 –– R%Reads the constant SV or the word address where the SV is stored. The SV thatis read is a 4-digit decimal number (BCD) writt
41711-3-18 SV CHANGE 1 –– W#Searches for the first instance of the specified TIM, TIMH(15), CNT, CNTR(12),or TTIM(87) instruction in the user’s progra
418Parameters Name, TC Number (Command)In “Name”, specify the name of the instruction, in four characters, for changingthe SV. In “TC number”, specify
419Parameters Name, TC Number (Command)In “Name”, specify the name of the instruction, in four characters, for changingthe SV. In “TC number”, specify
420Parameters Status Data, Message (Response)“Status data” consists of four digits (two bytes) hexadecimal. The leftmost byteindicates CPU operation m
421Parameters Mode Data (Command)“Mode data” consists of two digits (one byte) hexadecimal. With the leftmost twobits, specify the PC operating mode.
29Decimal Points Decimal points are used in timers only. The least significant digit representstenths of a second. All arithmetic instructions operate
422Error Information (Response)The error information comes in two words.1514 13 12 11 10 9 800x 163x 1627654x 1613210x 160ON: Battery error (Error cod
423Parameters Name, Word address, Bit (Command)In “Name”, specify the area (i.e., IR, SR, LR, HR, AR, or TC) that is to be forcedset. Specify the name
424Note 1. The area specified under “Name” must be in four characters. Fill any gapswith spaces to make a total of four characters.2. Words 253 to 255
425Forced set/reset/cancel Data (Command)A separate hexadecimal digit is used to specify the desired process for each bitin the specified word, bits 0
426Parameters Model Code“Model code” indicates the PC model in two digits hexadecimal.Model code Model01 C25002 C50003 C1200E C200010 C1000H11 C2000H/
427Parameters Program (Response)The program is read from the entire program area.Note To stop this operation in progress, execute the ABORT (XZ) comma
428Command Format@ QQx 100x 101x 103x 102x 101x 100OP1 OP2 OP3 OP4M OP1 OP2x 103x 102x 101x 100OP1 OP2 OP3 OP4 OP1 OP2↵:Node no. HeadercodeTerminatorF
429Data Break (Command)The read information is specified one item at a time separated by a break code(,). The maximum number of items that can be spec
43011-3-35 INITIALIZE –– ::Initializes the transmission control procedure of all the PCs connected to thehost computer. The INITIALIZE command does no
43111-4 Host Link ErrorsThese error codes are received as the response code (end code) when a com-mand received by the C200HS from a host computer can
30The following table shows the corresponding decimal, 16-bit hexadecimal, and32-bit hexadecimal values.Decimal 16-bit Hex 32-bit Hex21474836472147483
433Appendix AStandard ModelsC200HS RacksName Specifications Model numberBackplane (same for all Racks)10 slots C200H-BC101-V2()8 slots C200H-BC081-V25
Standard Models Appendix A434C200H Standard I/O UnitsName Specifications Model numberInput Units AC Input Unit 8 pts 100 to 120 VAC C200H-IA12116 pts
Appendix AStandard Models435C200H Group-2 High-density I/O UnitsName Specifications Model numberDC Input Unit 32 pts. 24 VDCC200H-ID216C200H-ID21864 p
Standard Models Appendix A436Name Model numberSpecificationsHeat/Cool TemperatureControl UnitThermocou-pleTransistor output C200H-TV001Voltage output
Appendix AStandard Models437SYSMAC LINK Unit/SYSMAC NET Link UnitThe SYSMAC LINK Units and SYSMAC NET Link Unit can only be used with the C200HS-CPU31
Standard Models Appendix A438Mounting Rails and AccessoriesName Specifications Model numberDIN Track Mounting Bracket 1 set (2 included) C200H-DIN01DI
Appendix AStandard Models439Name Model numberSpecificationsAll Plastic Optical Fiber Cable Set 1-m cable with an Optical Connector A connected to each
Standard Models Appendix A440Optical Power TesterName Specifications Head Unit Model numberOptical Power Tester (see note)(provided with a connector a
Appendix AStandard Models441An Optical Fiber Cable Bracket must be used to support an optical fiber cable connected to the C200HS-SNT32SYSMAC NET Link
443Appendix BProgramming InstructionsA PC instruction is input either by pressing the corresponding Programming Console key(s) (e.g., LD, AND, OR,NOT)
313-3 IR (Internal Relay) AreaThe IR area is used both as data to control I/O points, and as work bits to manipu-late and store data internally. It is
Appendix BProgramming Instructions444Code PageFunctionNameMnemonic13 DIFU DIFFERENTIATE UP Turns ON the designated bit for one cycle on the risingedge
Appendix BProgramming Instructions445Code PageFunctionNameMnemonic(@)52 MLB BINARY MULTIPLY Multiplies two four-digit hexadecimal values and outputsre
Appendix BProgramming Instructions446Code PageFunctionNameMnemonic(@)86 ASC ASCII CONVERT Converts hexadecimal values from the source word toeight-bit
Appendix BProgramming Instructions447Code PageFunctionNameMnemonic89 (@)INT INTERRUPT CONTROL Performs interrupt control, such as masking and un-maski
Appendix BProgramming Instructions448Code PageFunctionNameMnemonic--- (@)XDMR EXPANSION DM READ The contents of the designated number of words of thef
449Appendix CError and Arithmetic Flag OperationThe following table shows the instructions that affect the ER, CY, GR, LE and EQ flags. In general, ER
Appendix CError and Arithmetic Flag Operation450Instructions Page25507 (LE)25506 (EQ)25505 (GR)25504 (CY)25503 (ER)MLB(52) Unaffected Unaffected Unaff
Appendix CError and Arithmetic Flag Operation451Instructions Page25507 (LE)25506 (EQ)25505 (GR)25504 (CY)25503 (ER)FPD(––) Unaffected Unaffected Unaff
Appendix CError and Arithmetic Flag Operation452Instructions SR 25404 (OF ) SR 25405 (UF) PageEND(01) OFF OFF 138ADB(50) 219SBB(51)221ADBL(––) 225SBBL
453Appendix DMemory AreasOverviewThe following table shows the data areas in PC memory.Area Size Range CommentsI/O Area 480 bits IR 000 to IR 029Group
32Up to ten Special I/O Units may be mounted in any slot of the CPU Rack or Ex-pansion I/O Racks. Up to five Slave Racks may be used, whether one or t
Appendix DMemory Areas454SR AreaWord(s) Bit(s) Function236 00 to 07 Node loop status output area for operating level 0 of SYSMAC NET Link System08 to
Appendix DMemory Areas455Word(s) FunctionBit(s)254 00 1-minute clock pulse bit01 0.02-second clock pulse bit02 and 03 Reserved for function expansion.
Appendix DMemory Areas456Word(s) FunctionBit(s)26700 to 04 Reserved by system (not accessible by user)05 Host Link Level 0 Send Ready Flag06 to 12 Res
Appendix DMemory Areas457Word(s) FunctionBit(s)27300 Save IOM to Cassette BitData transferred to Memory Cassette when Bit is turnedON in PROGRAM mode.
Appendix DMemory Areas458AR AreaWord(s) Bit(s) Function00 00 to 09 Error Flags for Special I/O Units 0 to 9 (also function as Error Flags for PC Link
Appendix DMemory Areas459Word(s) FunctionBit(s)23 00 to 15 Power Off Counter (BCD)24 00 to 04 Reserved by system.05 Cycle Time Flag06 SYSMAC LINK Syst
461Appendix EPC SetupWord(s) Bit(s) Function DefaultStartup Processing (DM 6600 to DM 6614)The following settings are effective after transfer to the
Appendix EPC Setup462Word(s) Bit(s) Function DefaultInterrupt/Refresh Processing (DM 6620 to DM 6622)The following settings are effective after transf
Appendix EPC Setup463Word(s) DefaultFunctionBit(s)DM 6648 00 to 07 Node number (Host link)00 to 31 (BCD)008 to 11 Start code enable (RS-232C)0: Disabl
Appendix EPC Setup464Word(s) DefaultFunctionBit(s)DM 6654 00 to 07 Start code (RS-232C)00 to FF (binary)000008 to 15 12 to 15 of DM 6653 set to 0:Numb
33Group-2 High-density I/O Units and B7A Interface Units are allocated words be-tween IR 030 and IR 049 according to I/O number settings made on them
465Appendix FWord Assignment Recording SheetsThis appendix contains sheets that can be copied by the programmer to record I/O bit allocations and term
466Programmer: Program: Date: Page:Word: Unit:Bit Field device Notes00010203040506070809101112131415Word: Unit:Bit Field device Notes00010203040506070
467Programmer: Program: Date: Page:Area: Word:Bit Usage Notes00010203040506070809101112131415Area: Word:Bit Usage Notes0001020304050607080910111213141
468Programmer: Program: Date: Page:Word Contents Notes Word Contents NotesData Storage
469Programmer: Program: Date: Page:TC addressT or CSet value Notes TC addressT or CSet value NotesTimers and Counters
471Appendix GProgram Coding SheetThe following page can be copied for use in coding ladder diagram programs. It is designed for flexibility, allowingt
472Programmer: Program: Date: Page:Address Instruction Operand(s) Address Instruction Operand(s) Address Instruction Operand(s)Program Coding Sheet
473Appendix HData Conversion TablesNormal DataDecimal BCD Hex Binary00 00000000 00 0000000001 00000001 01 0000000102 00000010 02 0000001003 00000011 0
Data Conversion Tables Appendix H474Signed Binary DataDecimal 16-bit Hex 32-bit Hex21474836472147483646...327683276732766...543210–1–2–3–4–5...–32767–
475Appendix IExtended ASCIIProgramming Console DisplaysBits 0 to 3 Bits 4 to 7BIN 0000 0001 0010 0011 0100 0101 0110 0111 1010 1011 1100 1101 1110 111
34Note all SR words and bits are writeable by the user. Be sure to check the func-tion of a bit or word before attempting to use it in programming.Wor
477Glossaryaddress The location in memory where data is stored. For data areas, an address con-sists of a two-letter data area designation and a numbe
Glossary478bit designator An operand that is used to designate the bit or bits of a word to be used by aninstruction.bit number A number that indicate
Glossary479through a TC bit and used to count the number of times the status of a bit or anexecution condition has changed from OFF to ON.CPU An acron
Glossary480differentiated instruction An instruction that is executed only once each time its execution condition goesfrom OFF to ON. Nondifferentiate
Glossary481extended timer A timer created in a program by using two or more timers in succession. Such atimer is capable of timing longer than any of
Glossary482initialization error An error that occurs either in hardware or software during the PC System star-tup, i.e., during initialization.initial
Glossary483I/O Control Unit A Unit mounted to the CPU Rack in certain PCs to monitor and control I/O pointson Expansion I/O Units.I/O devices The devi
Glossary484Ladder Support Software A software package that provides most of the functions of the Factory IntelligentTerminal on an IBM AT, IBM XT, or
Glossary485main program All of a program except for the subroutines.masking ‘Covering’ an interrupt signal so that the interrupt is not effective unti
Glossary486NOT A logic operation which inverts the status of the operand. For example, ANDNOT indicates an AND operation with the opposite of the actu
35Word(s) FunctionBit(s)254 00 1-minute clock pulse bit01 0.02-second clock pulse bit02 and 03 Reserved for function expansion. Do not use.04 Overflow
Glossary487output point The point at which an output leaves the PC System. Output points correspondphysically to terminals or connector pins.output si
Glossary488grammable Controllers are used to automate control of external devices. Al-though single-component Programmable Controllers are available,
Glossary489Remote I/O Unit Any of the Units in a Remote I/O System. Remote I/O Units include Masters,Slaves, Optical I/O Units, I/O Link Units, and Re
Glossary490slot A position on a Rack (Backplane) to which a Unit can be mounted.software error An error that originates in a software program.software
Glossary491timer A location in memory accessed through a TC bit and used to time down from thetimer’s set value. Timers are turned ON and reset accord
Glossary492served for work words. Parts of other areas not required for special purposesmay also be used as work words, e.g., LR words not used in a P
493Revision HistoryA manual revision code appears as a suffix to the catalog number on the front cover of the manual.Cat. No. W235-E1-05Revision codeT
Revision History494RevisioncodeRevised contentDate2A April 1995 The following instructions have been corrected: ASFT(––) to ASFT(17), XFRB(––) to XFRB
Revision History495RevisioncodeRevised contentDate2B July 1995 The following corrections and additions were made.Page 6: SYSMAC Support Software added
497IndexAaddress tracing. See tracing, data tracing.addresses, in data area: sec3 27 advanced I/O instructions7-SEGMENT DISPLAY OUTPUT: 5–24 on 305
vTABLE OF CONTENTSPRECAUTIONS xiii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Intended Audience
36Word(s) FunctionBit(s)26700 to 04 Reserved by system (not accessible by user)05 Host Link Level 0 Send Ready Flag06 to 12 Reserved by system (not ac
Index498converting between hex and ASCII: sec7 354 I/O Unit designations: 4–1 to 4–6 88 Programming Console, English/Japanese switch: 4–1 to4–6 80
Index499WC: sec11 412 WD: sec11 413 WG: sec11 412 WH: sec11 411 WJ: sec11 413 WL: sec11 411 WP: sec11 427 WR: sec11 410 XZ: sec11 429 host li
Index500OR: 4–1 to 4–6 69 ; 5–1 to 5–14 129 combining with AND: 4−1 to 4−6 69 OR LD: 4–1 to 4–6 72 ; 5–1 to 5–14 130 combining with AND LD: 4−1
Index501memory areas: appD 453 clearing: 4–1 to 4–6 82 definition: sec3 25 Memory Cassette, installing: sec2 21 Memory Cassettestransferring C200H
Index502Special I/O Units. See UnitsSR area: sec3 33–48 stack operationCOLL(81): 5–15 to 5–17 164 DIST(80): 5–15 to 5–17 162 STARTUP MODE, PC Setup
37Word(s) FunctionBit(s)27300 Save IOM to Cassette BitData transferred to Memory Cassette when Bit is turnedON in PROGRAM mode. Bit will automatically
38SYSMAC LINKCode Item Meaning00 Normal end Processing ended normally.01 Parameter error Parameters for network communication instruction isnot within
39SYSMAC NETOperatingll0Operatingll1Bit (Node numbers below)pglevel 0pglevel 115 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00SR 238 SR 242 8 7 6 5 4 3
40Host Link SystemsBoth Error flags and Restart bits are provided for Host Link Systems. Error flagsturn ON to indicate errors in Host Link Units. Res
41Flag 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 Unit #9,level 1Unit #1,leve
42The status of SR 25211 and thus the status of force-set and force-reset bits canbe maintained when power is turned off and on by enabling the Forced
43This bit can be programmed to activate an external warning for a low battery volt-age.The operation of the battery alarm can be disabled in the PC S
!443-4-13 Step FlagSR bit 25407 turns ON for one cycle when step execution is started with theSTEP(08) instruction.3-4-14 Group-2 Error FlagSR bit 254
45Overflow Flag, OF SR bit 25404 turns ON when the result of a binary addition or subtraction ex-ceeds 7FFF or 7FFFFFFF.Underflow Flag, UF SR bit 2540
Table of contentsvi3-4-10 I/O Verification Error Flag 43 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4-11 First Cycle Flag 43
463-4-20 Peripheral Port Communications AreasPeripheral Port Error Code SR bits 26408 to 26411 are set when there is a peripheral port error in the Ge
47SR bit 27002 turns ON when data is verified between DM and a Memory Cas-sette. SR bit 27003 turns OFF when the contents of the verification coincide
48Save IOM to Cassette Bit SR bit 27300 turns ON when IOM is saved to a Memory Cassette.Load IOM from Cassette Bit SR bit 27301 turns ON when loading
49Word(s) FunctionBit(s)01 00 to 09 Restart Bits for Special I/O Units 0 to 9 (also function as Restart Bits for PC Link Units)10 Restart Bit for oper
50Word(s) FunctionBit(s)24 00 to 04 Reserved by system.05 Cycle Time Flag06 SYSMAC LINK System Network Parameter Flag for operating level 107 SYSMAC L
51number, 0 through 31, and a letter, L or H. Bits are allocated as shown in the fol-lowing table.Bits AR03 allocationAR04 allocationAR05 allocationAR
52AR 0714 (Error History Reset Bit) is turned ON and then OFF by the user to resetthe Error Record Pointer (DM 0969) and thus restart recording error
5330-second Compensation Bit AR 2113 is turned ON to round the seconds of the Calendar/clock Area to zero,i.e., if the seconds is 29 or less, it is me
543-5-11 Power OFF CounterAR 23 provides in 4-digit BCD the number of times that the PC power has beenturned off. This counter can be reset as necessa
553-6 DM (Data Memory) AreaThe DM area is divided into various parts as described in the following table. Aportion of UM (up to 3,000 words in 1,000-w
Table of contentsvii4-5-1 The Keyboard 78 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5-2 PC Modes 80 . .
563-6-1 Expansion DM AreaThe expansion DM area is designed to provide memory space for storing oper-ating parameters and other operating data for Link
57whether DM 1000 to DM 1999 or DM 7000 to 7999 will be used. Refer to 3-6-4PC Setup for details.Unit Addresses0 DM 1000 to DM 1099 or DM 7000 to DM 7
58The following table lists the possible error codes and corresponding errors.Error severity Error code ErrorFatal errors 00 Power Interruption01 to 9
59The PC Setup is allocated to DM 6600 through DM 6655.Parameter Default Settings RemarksSTARTUP MODESTARTUPMODEProgrammingConsolemode selectorProgram
603-7 HR (Holding Relay) AreaThe HR area is used to store/manipulate various kinds of data and can be ac-cessed either by word or by bit. Word address
613-9 LR (Link Relay) Area The LR area is used as a common data area to transfer information betweenPCs. This data transfer is achieved through a PC L
63SECTION 4Writing and Inputting the ProgramThis section explains the basic steps and concepts involved in writing a basic ladder diagram program, inp
644-1 Basic ProcedureThere are several basic steps involved in writing a program. Sheets that can becopied to aid in programming are provided in Appen
654-3 Program CapacityThe maximum user program size varies with the amount of UM allocated to ex-pansion DM and the I/O Comment Area. Approximately 10
664-4-1 Basic TermsEach condition in a ladder diagram is either ON or OFF depending on the statusof the operand bit that has been assigned to it. A no
Table of contentsviii5-15 Data Shifting 150 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
67Program Memory addresses start at 00000 and run until the capacity of ProgramMemory has been exhausted. The first word at each address defines the i
68LOAD and LOAD NOT The first condition that starts any logic block within a ladder diagram corre-sponds to a LOAD or LOAD NOT instruction. Each of th
69OR and OR NOT When two or more conditions lie on separate instruction lines which run in paral-lel and then join together, the first condition corre
704-4-4 OUTPUT and OUTPUT NOTThe simplest way to output the results of combining execution conditions is tooutput it directly with the OUTPUT and OUTP
71Now you have all of the instructions required to write simple input-output pro-grams. Before we finish with ladder diagram basic and go onto inputti
72Analyzing the above ladder diagram in terms of mnemonic instructions, the con-dition for IR 00000 is a LOAD instruction and the condition below it i
73The following diagram requires AND LOAD to be converted to mnemonic codebecause three pairs of parallel conditions lie in series. The two options fo
74The following diagram contains only two logic blocks as shown. It is not neces-sary to further separate block b components, because it can be coded
75When working with complicated diagrams, blocks will ultimately be coded start-ing at the top left and moving down before moving across. This will ge
76The following diagram requires an OR LOAD followed by an AND LOAD to codethe top of the three blocks, and then two more OR LOADs to complete the mne
Table of contentsix5-19-11 BCD DIVIDE – DIV(33) 212 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19-12 DOUBLE BCD DIVIDE –
77Again, this diagram can be redrawn as follows to simplify program structure andcoding and to save memory space.00006 00007LR 00000000500001 00002000
784-4-7 Coding Multiple Right-hand InstructionsIf there is more than one right-hand instruction executed with the same execu-tion condition, they are
79Except for the SHIFT key on the upper right, the gray keys are used to input in-structions and designate data area prefixes when inputting or changi
!!804-5-2 PC ModesThe Programming Console is equipped with a switch to control the PC mode. Toselect one of the three operating modes—RUN, MONITOR, or
814. Confirm that the CPU’s POWER LED is lit and the following display appearson the Programming Console screen. (If the ALM/ERR LED is lit or flashin
824-6-3 Clearing MemoryUsing the Memory Clear operation it is possible to clear all or part of the UM area(RAM or EEPROM), and the IR, HR, AR, DM and
83The following procedure is used to clear memory completely.Continue pressingthe CLR key once foreach error messageuntil “00000” appearson the displa
84To leave the TC area uncleared and retain Program Memory addresses 00000through 00122, input as follows:00000000000000000000MEMORY CLR? HR CNT D
85It is necessary to register the I/O table if I/O Units are changed, otherwise an I/Overification error message, “I/O VER ERR” or “I/O SET ERROR”, wi
864-6-6 Verifying the I/O TableThe I/O Table Verification operation is used to check the I/O table registered inmemory to see if it matches the actual
Komentáře k této Příručce