background image

Cat. No. W235-E1-05

C200HS

SYSMAC
Programmable Controllers

Summary of Contents for SYSMAC C200HS

Page 1: ...Cat No W235 E1 05 C200HS SYSMAC Programmable Controllers...

Page 2: ...C200HS Programmable Controllers Operation Manual Revised February 2002...

Page 3: ...iv...

Page 4: ...ns word and is abbreviated Wd in documentation in this sense The abbreviation PC means Programmable Controller and is not used as an abbreviation for any thing else Visual Aids The following headings...

Page 5: ...vi...

Page 6: ...0 2 5 Installing Memory Cassettes 21 2 6 CPU DIP Switch 23 SECTION 3 Memory Areas 25 3 1 Introduction 26 3 2 Data Area Structure 27 3 3 IR Internal Relay Area 31 3 4 SR Special Relay Area 33 3 5 AR Au...

Page 7: ...19 BCD Calculations 205 5 20 Binary Calculations 220 5 21 Special Math Instructions 234 5 22 Logic Instructions 250 5 23 Subroutines and Interrupt Control 254 5 24 Step Instructions 267 5 25 Special...

Page 8: ...11 Host Link Commands 401 11 1 Communications Procedure 402 11 2 Command and Response Formats 404 11 3 Host Link Commands 407 11 4 Host Link Errors 431 Appendices A Standard Models 433 B Programming...

Page 9: ...explains the basics of ladder diagram programming looking at the elements that make up the parts of a ladder diagram program and explaining how execution of this program is controlled It also explains...

Page 10: ...n is important for the safe and reliable application of the PC You must read this section and understand the information contained before attempting to set up or operate a PC system 1 Intended Audienc...

Page 11: ...ng OMRON PCs Be sure to read this manual before attempting to use the software and keep this manual close at hand for reference during operation WARNING It is extremely important that a PC and all PC...

Page 12: ...her power supplies and voltages may damage the Units Take measures to stabilize the power supply to conform to the rated supply if it is not stable Provide circuit breakers and other safety measures t...

Page 13: ...21 EC that conform to the EC Directives Provide reinforced insulation or double insulation for the DC power source con nected to the DC I O Unit and for the Power Supply Unit Use a separate power sour...

Page 14: ...f the C200HS are also provided 1 1 Overview 2 1 2 The Origins of PC Logic 2 1 3 PC Terminology 3 1 4 OMRON Product Terminology 3 1 5 Overview of PC Operation 4 1 6 Peripheral Devices 5 1 7 Available M...

Page 15: ...control the C200HS uses a form of PC logic called ladder dia gram programming This manual is written to explain ladder diagram program ming and to prepare the reader to program and operate the C200HS...

Page 16: ...s are used when describing different aspects of PC operation When programming one is concerned with what information is held in memory and so I O bits are referred to When talking about the Units that...

Page 17: ...O Units or Link Systems refer to the individual Operation Manuals or System Manuals for details on I O bit allocation Section 3 Memory Areas 4 Using relay ladder symbols write a program that represent...

Page 18: ...entire Control System has been designed the task of programming debugging and operation as described in the remaining sections of this manual can begin 1 6 Peripheral Devices The following peripheral...

Page 19: ...W137 NC112 W128 NC211 W166 Information on Position Control Unit Analog I O Units Operation Guide W127 Information on the C200H AD001 C200H DA001 Analog I O Units Analog Input Unit Operation Manual W2...

Page 20: ...to 255 Additional areas IR Area 2 IR 300 to 511 SR Area 2 SR 256 to 299 The number of operands and instruction execution time will be increased when SR 256 to SR 511 are used in basic instructions In...

Page 21: ...capability DMPX 77 256 to 8 encoder capability ADB 50 Signed binary data can be added SBB 51 Signed binary data can be subtracted INT 89 Can be used to set scheduled interrupts in 1 ms units and cont...

Page 22: ...Interrupt Functions Scheduled Interrupts The C200HS s scheduled interrupt function has been improved so that the inter rupt interval can be set in 1 ms units rather than the 10 ms units in the C200H W...

Page 23: ...LSS The operator can detect OFF to ON or ON to OFF transition in a specified bit Error Log Area The C200HS supports all of the C200H CPU31 E error history area functions and also records the time and...

Page 24: ...es of the words being accessed must be changed to DM 6000 to DM 6030 which is the error log area for the C200HS Any programs that rely on the execution cycle time i e on the time require to execute an...

Page 25: ...0H in the offline mode and read data from the Memory Unit into the LSS work area 2 Go offline if the LSS is not already offline 3 Change the PC setting for the LSS to the C200HS 4 If you want to trans...

Page 26: ...3 10 Turn the C200HS off and then back on to reset it and transfer data from the Memory Cassette to the CPU 11 Test program execution before attempting actual operation New C200HS Features Section 1 8...

Page 27: ...include CPU Components basic PC configuration CPU capabilities and Memory Cassettes This information is covered in detail in the C200HS Installation Guide 2 1 CPU Components 16 2 1 1 CPU Indicators 17...

Page 28: ...The CPU31 E and CPU33 E CPUs support the SYSMAC NET Link Unit and SYSMAC LINK Unit Caution Be sure to check the power supply used by the CPU Absolutely do not provide an AC power sup ply to a DC type...

Page 29: ...ata areas of memory these indicators provide ready confirmation of proper operation CPU Indicators CPU indicators are shown and described below CPU01 E 03 E shown below COMM COMM1 orange Lights when a...

Page 30: ...PC AT 2 2 PC Configuration The basic PC configuration consists of two types of Rack a CPU Rack and Ex pansion I O Racks The Expansion I O Racks are not a required part of the basic system They are us...

Page 31: ...o C200H BCjj1 V2 Backplanes Refer to the C200HS Installation Guide for details about which slots can be used for which Units and other details about PC configuration The way in which I O points on Uni...

Page 32: ...ling a Memory Cassette An op tional Memory Cassette however can be used There are two types of Memory Cassette available each with a capacity of 16K words For instructions on instal ling Memory Casset...

Page 33: ...CPU to malfunction or cause damage to the memory 1 2 3 1 Set the DIP switch For an EEPROM Memory Cassette set pin no 1 write protect to either ON or OFF Setting it to ON will protect the program in t...

Page 34: ...connector side goes in first and that the Cassette s circuit components face right and then insert the Cassette into the CPU The Cas sette slides in along a track in the CPU 5 Replace the Memory Casse...

Page 35: ...ollowing serial communications ports Built in RS 232C port Peripheral port only when a CQM1 CIF01 CIF02 Cable is connected Does not apply to Programming Console Note 1 Standard communications paramete...

Page 36: ...15 Special Unit Error Flag 44 3 4 16 Instruction Execution Error Flag ER 44 3 4 17 Arithmetic Flags 44 3 4 18 Interrupt Subroutine Areas 45 3 4 19 RS 232C Port Communications Areas 45 3 4 20 Periphera...

Page 37: ...program Temporary Relay Area 8 bits TR 00 to TR 07 Used to temporarily store and retrieve execution conditions when programming certain types of branching ladder diagrams Holding Relay Area 1 600 bits...

Page 38: ...C area consists of TC numbers each of which is used for a specific timer or counter defined in the program Refer to 3 8 TC Area for more details on TC numbers and to 5 14 Timer and Counter Instruction...

Page 39: ...when a particular form of data is re quired for an instruction Binary and hexadecimal can be easily converted back and forth because each four bits of a binary number is numerically equivalent to one...

Page 40: ...0 0000 to 4 294 967 295 FFFF FFFF Bit number Contents 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Digit value 163 162 161 160 Signed Binary Signed binary data can h...

Page 41: ...ing BIN 100 The following procedure converts nega tive decimal values between 32 768 and 1 to signed binary In this example 12345 is converted to CFC7 Bit number Contents 0 0 1 1 0 0 0 0 0 0 1 1 1 0 0...

Page 42: ...ycle i e once each time the program is executed any output bit can be used in only one instruction that controls its status including OUT KEEP 11 DIFU 13 DIFD 14 and SFT 10 If an output bit is used in...

Page 43: ...Optical I O Units and I O Terminals by unit number The I O word allocated to each Unit is IR 200 n where n is the unit number set on the Unit Remote Master I O Units and Host Link Units do not use I...

Page 44: ...2 High density I O Units and B7A Interface Units are not considered Spe cial I O Units and do not affect the limit to the number of Special I O Units allowed in the System regardless of the number use...

Page 45: ...r data link status for operating level 0 251 00 Remote I O Error Read Bit Writeable 01 and 02 Not used Writeable 03 Remote I O Error Flag 04 to 06 Unit number of Remote I O Unit Optical I O Unit or I...

Page 46: ...to 261 00 to 15 Reserved by system 262 00 to 15 Longest interrupt subroutine action execution time 0 1 ms 263 00 to 15 Number of interrupt subroutine action with longest execution time 8000 to 8512 80...

Page 47: ...fer Error Flag Transferring SYSMAC NET data link table on UM during active data link Data will not be transferred from UM to the Memory Cassette if an error occurs except for Board Checksum Error Deta...

Page 48: ...nit 9 Restart Flag 10 to 15 Reserved by system not accessible by user 275 00 PC Setup Startup Error DM 6600 to DM 6614 01 PC Setup RUN Error DM 6615 to DM 6644 02 PC Setup Communications Error Setting...

Page 49: ...ication instruction is not within acceptable ranges 02 Routing error There is a mistake in the routing tables for connection to a remote network 03 Busy error The destination node is processing data a...

Page 50: ...it 03 turns ON when an error has occurred in a Remote I O Unit Bits 04 to 15 The content of bits 04 to 06 is a 3 digit binary number 04 20 05 21 06 22 and the content of bits 08 to 15 is a 2 digit BCD...

Page 51: ...Subsystem in operating level 1 The actual bit assign ments depend on whether the PC is in a Single level PC Link System or a Multi level PC Link System Refer to the PC Link System Manual for details...

Page 52: ...5 Unit 15 level 1 Unit 7 level 1 Unit 15 level 0 Unit 7 level 0 Application Example If the PC is in a Multilevel PC Link System and the content of word 248 is 02FF then PC Link Units 0 through 7 of in...

Page 53: ...etup If the I O Status Hold Bit is enabled the status of SR 25212 will be preserved when power is turned off and on If this is done and SR 25212 is ON then the status of IR and LR area bits will also...

Page 54: ...en PC operation begins and then turns OFF after one cycle of the program The First Cycle Flag is useful in initializing counter values and other operations An example of this is provided in 5 14 Timer...

Page 55: ...emote I O Master Unit Although the PC will continue operation if SR 25415 turns ON the Units causing the error will stop operation and the ALM indicator will flash Check the status of AR 0000 to AR 00...

Page 56: ...R bits 26200 to 26215 are used to set the maximum processing time of the in terrupt subroutine Processing times are determined to within 0 1 ms incre ments SR bits 26300 to 26315 contain the maximum p...

Page 57: ...eas Memory Cassette Contents SR areas 26900 to 26907 indicate memory type contained on the Memory Cas sette Memory Type Code Nothing 00 UM 01 IOM 02 Memory Cassette Capacity SR areas 26908 to 26910 in...

Page 58: ...4 4 KW 88 8 KW 92 12 KW E4 64 KW 00 No ladder program or no file Data updated at data transfer from CPU at startup The file must begin in segment 0 SR areas 27108 to 27115 indicate the CPU s ladder pr...

Page 59: ...to AR 2715 Most AR area words and bits are dedicated to specific uses such as transmission counters flags and control bits and words AR 00 through AR 07 and AR 23 through AR 27 cannot be used for any...

Page 60: ...Bit 09 Expansion TERMINAL Mode Changeover Flag 10 and 11 Reserved by system 12 Terminal Mode Flag ON Expansion OFF Normal Same as status of pin 6 on CPU s DIP switch 13 Error History Overwrite Bit 14...

Page 61: ...ck Error Flags AR bits 0200 to AR 0204 correspond to the unit numbers of Remote I O Slave Units 0 to 4 and AR bits 0710 to AR 0712 correspond to the unit numbers of Remote I O Slave Units 5 to 7 These...

Page 62: ...ch node is also designated These settings are shown below Operating level 0 Operating level 1 Setting AR 0700 AR 0701 AR 0704 AR 0705 0 0 0 0 Words set externally FIT 1 0 1 0 Automatic LR area only 0...

Page 63: ...ice Time AR 16 provides the time allocated to servicing operating level 0 of the SYSMAC LINK System and or SYSMAC NET Link System during each cycle when a SYS MAC LINK Unit and or SYSMAC NET Link Unit...

Page 64: ...t The Calendar clock will automatically start operating with the designated settings and AR 2114 and AR 2115 will both be turned OFF The Calendar clock Area and Bits are refreshed each cycle while ope...

Page 65: ...k mounting Host Link Unit Level 0 AR 2414 Rack mounting Host Link Unit in operating level 0 3 5 14 CPU mounting Device Mounted Flag AR 2415 turns ON when any device is mounted directly to the CPU This...

Page 66: ...st computer with LSS The DM area retains status during power interruptions Indirect Addressing Normally when the content of a data area word is specified for an instruction the instruction is performe...

Page 67: ...ns and cannot be used for indirect addressing The UM area can be allocated as expansion DM area in increments of 1K words Once expansion DM area has been created it is saved and transferred as part of...

Page 68: ...or records occupy three words each stored between DM 6001 and DM 6030 The last record that was stored can be obtained via the content of DM 6000 Er ror Record Pointer The record number DM words and po...

Page 69: ...contents of record 10 will be moved to record 9 and so on until the contents of record 1 is moved off the end and lost i e the area functions like a shift register The Record Pointer will remain set t...

Page 70: ...e PC will wait until the minimum time has expired before starting program execution again The entire program will be executed even if the minimum time is exceeded This setting can be used to reduce va...

Page 71: ...here are no restrictions on the order in which TC numbers can be used Once defined a TC number can be designated as an operand in one or more of certain set of instructions other than those listed abo...

Page 72: ...IL 02 and ILC 03 for details on interlocks 3 10 UM Area With the C200HS the UM area is defined as the part of memory that can be con verted and transferred to ROM The UM area is 16 KW of RAM which is...

Page 73: ...4 5 1 The Keyboard 78 4 5 2 PC Modes 80 4 5 3 The Display Message Switch 80 4 6 Preparation for Operation 80 4 6 1 Entering the Password 81 4 6 2 Buzzer 81 4 6 3 Clearing Memory 82 4 6 4 Registering...

Page 74: ...agram programming and conversion to mnemonic code are described in 4 4 Basic Ladder Diagrams Preparing for and inputting the pro gram via the Programming Console are described in 4 5 The Programming C...

Page 75: ...15 21001 21002 00405 21005 21007 As shown in the diagram above instruction lines can branch apart and they can join back together The vertical pairs of lines are called conditions Conditions without d...

Page 76: ...ther to create a logic result is called a logic block Although ladder diagrams can be written without actually analyzing individual logic blocks understanding logic blocks is necessary for efficient p...

Page 77: ...DM 0500 00011 DIFU 13 00502 00012 AND 00005 00013 OUT 00503 The address and instruction columns of the mnemonic code table are filled in for the instruction word only For all other lines the left two...

Page 78: ...nstruction and the rest of the condi tions correspond to AND or AND NOT instructions The following example shows three conditions which correspond in order from the left to a LOAD an AND NOT and an AN...

Page 79: ...d diagrams they can sometimes be considered individually with each instruction performing a logic operation on the execution condition and the status of the operand bit The following is one example St...

Page 80: ...ut points assigned IR 00000 and IR 00001 are controlling the output points assigned IR 00200 and IR 00201 respectively The length of time that a bit is ON or OFF can be controlled by combining the OUT...

Page 81: ...gic block is ON i e when either IR 00000 or IR 00001 is ON and when either of the conditions in the right logic block is ON i e when either IR 00002 is ON or IR 00003 is OFF The above ladder diagram c...

Page 82: ...or an AND LOAD instruction except that the current execution condition is ORed with the last un used execution condition Instruction 00000 00001 00002 00003 Address Instruction Operands 00000 LD 00000...

Page 83: ...02 00003 00040 00005 00501 The first of each pair of conditions is converted to LOAD with the assigned bit operand and then ANDed with the other condition The first two blocks can be coded first follo...

Page 84: ...first followed by the one to combine the execution condition resulting from the first logic block in struction and the execution condition of the logic block third from the end and on back to the firs...

Page 85: ...a1 and a2 Blocks b1 and b2 Blocks a and b Address Instruction Operands 00000 LD 00000 00001 AND NOT 00001 00002 LD NOT 00002 00003 AND 00003 00004 OR LD 00005 LD 00004 00006 AND 00005 00007 LD 00006 0...

Page 86: ...01 AND NOT 00003 00002 OR 00001 00003 AND 00000 00004 LD NOT 00004 00005 AND 00005 00006 OR LD 00007 LD NOT 00006 00008 AND 00007 00009 OR LD 00010 OUT LR 0000 The following diagram requires five bloc...

Page 87: ...ed to combine the execution conditions re sulting from blocks a and b and the second one is to combine the execution con dition of block c with the execution condition resulting from the normally clos...

Page 88: ...I O bit status 3 Monitoring I O status force setting resetting bits 4 The Programming Console can be connected to or disconnected from the PC with the power on 5 The Programming Console can be used wi...

Page 89: ...o enter OR the OR instruction or used with NOT to enter OR NOT Pressed to enter CNT the Counter instruction or to designate a TC number that has already been defined as a counter Pressed to enter LD t...

Page 90: ...g Console connected to the PC by an extension cable when in RUN mode Noise picked up by the extension cable can enter the PC affecting the program and thus the controlled system 4 5 3 The Display Mess...

Page 91: ...is connected to the PC when PC power is already on the first display below will indicate the mode the PC was in before the Pro gramming Console was connected Ensure that the PC is in PROGRAM mode bef...

Page 92: ...the keystrokes given in the top line of the following key sequence The branch lines shown in the se quence are used only when performing a partial memory clear which is de scribed below Memory can be...

Page 93: ...that HR is to be retained will ensure that AR is retained also If not specified for retention both areas will be cleared CNT is used for the entire TC area The display will show those areas that will...

Page 94: ...END HR CNT DM Note When the write protect switch pin 1 of the CPU s DIP switch is set to ON the UM area from DM 6144 through the ladder program will not be cleared Other data areas such as HR AR CNT...

Page 95: ...9713 00000IOTBL WRIT OK 4 6 5 Clearing Error Messages After the I O table has been registered any error messages recorded in memory should be cleared It is assumed here that the causes of any of the e...

Page 96: ...the I O table has been registered Key Sequence Example No errors An error occurred Actual I O words Registered I O table words I O slot number Rack number 00000 00000 FUN 00000IOTBL U 00000IOTBL CHK...

Page 97: ...e 0 to 2 0 to 9 Rack number Unit number Press the EXT key to select Remote I O Slave Racks or Optical I O Units 00000 00000 FUN 00000IOTBL U Main Rack 00000IOTBL 0 U 00000IOTBL 0 5U 00000IOTBL READ 0...

Page 98: ...O type i input o output Unit number 0 to 9 Rack number 0 to 2 00000IOTBL READ U 00000IOTBL READ U INT0 Mounted to CPU Rack IN Mounted to Expansion I O Rack Treated as an 8 point Input Unit Unit number...

Page 99: ...tmost 8 bits 00000IOTBL READ 2 HU R 4 6 8 Clearing the I O Table The I O Table Clear operation is used to delete the contents of the I O table that is currently registered in the CPU memory The PC wil...

Page 100: ...Link table stored in its program memory the SYSMAC NET Link table of the CPU will be overwritten Changes made in the SYSMAC NET Link table do not affect the copy of the SYSMAC NET Link table in progra...

Page 101: ...TBL UM SYSMAC NET 00000LINK TBL UM OK 00000LINK TBL UM SYSMAC NET 9713 00000LINK TBL UM DISABLED The following indicates that the I O table cannot be transferred 00000 00000 FUN Example Preparation f...

Page 102: ...t it as required Further debugging methods are provided in Section 7 Program Monitoring and Execution 4 7 1 Setting and Reading from Program Memory Address When inputting a program for the first time...

Page 103: ...is pressed at the end of each line of the mnemonic code When WRITE is pressed at the end of each line the designated instruction or operand is entered and the next display will appear If the instruct...

Page 104: ...always written after the instruction s mnemonic If no function code is given there should be a Programming Console key for that instruction To designate the differentiated form of an instruction press...

Page 105: ...00 00200 LD 00002 00201READ NOP 00 00201 TIM 000 00201 TIM DATA 0000 00201 TIM 0123 00202READ NOP 00 00202 FUN 00202 TIMH 15 001 00202 TIMH DATA 0000 00202 TIMH 0500 00203READ NOP 00 Address Instructi...

Page 106: ...the program has been changed in any way that might create a syntax error To check the program input the key sequence shown below The numbers indi cate the desired check level see below When the check...

Page 107: ...rrectly Check STEP 08 programming requirements and correct the program Type B IL ILC ERR IL 02 and ILC 03 are not used in pairs Correct the program so that each IL 02 has a unique ILC 03 Although this...

Page 108: ...Cycle Time Once the program has been cleared of syntax errors the cycle time should be checked This is possible only in RUN or MONITOR mode while the program is being executed See Section 6 Program Ex...

Page 109: ...when inputting the program and press SRCH Once an occurrence of an instruction or bit address has been found any additional occurrences of the same instruction or bit can be found by pressing SRCH aga...

Page 110: ...inserted before it These operations are possible only in PROGRAM mode with the write protect switch pin 1 of the CPU s DIP switch set to OFF OFF WRITE To insert an instruction display the instruction...

Page 111: ...nk ad dresses or no unaddressed instructions Example The following mnemonic code shows the changes that are achieved in a pro gram through the key sequences and displays shown below Original Program A...

Page 112: ...00005 AND 00103 00006 AND 00105 00007 AND NOT 00104 00008 OUT 00201 00009 END 01 Find the instruction that requires deletion Confirm that this is the instruction to be deleted Program After Deletion...

Page 113: ...tion 1 00003 AND 00002 00004 Instruction 2 If as shown in diagram A the execution condition that existed at the branching point cannot be changed before returning to the branch line instructions at th...

Page 114: ...with the status of IR 00002 and instruction 2 is executed accordingly The following example shows an application using two TR bits Instruction 1 00003 00000 00002 TR 1 00005 TR 0 00001 00004 Instructi...

Page 115: ...a in the required operand word Be sure that you have considered execution order before reorganizing a program to simplify it Instruction 1 00000 Instruction 2 00001 TR 0 Instruction 2 00000 Instructio...

Page 116: ...Instruction 2 00001 ILC 03 IL 02 Address Instruction Operands 00000 LD 00000 00001 IL 02 00002 LD 00001 00003 Instruction 1 00004 LD 00002 00005 Instruction 2 00006 ILC 03 If IR 00000 is ON in the rev...

Page 117: ...d normally as if the jump did not exist If the execution condition for the JUMP instruction is OFF program execution moves immediately to a JUMP END instruction without changing the status of anything...

Page 118: ...ram interlocks would reset certain parts of the interlocked section however jumps do not affect the status of any bit between the JUMP and JUMP END instructions Instruction 1 00000 Instruction 2 00001...

Page 119: ...operand bit based on two execution conditions To do this the KEEP instruction is connected to two instruction lines When the execution condition at the end of the first instruction line is ON the ope...

Page 120: ...ork bits are not transferred to or from the PC They are bits selected by the programmer to facilitate programming as described above I O bits and other dedicated bits cannot be used as works bits All...

Page 121: ...perands 00000 LD 00000 00001 AND NOT 00001 00002 OR 00002 00003 OR NOT 00003 00004 OUT 24600 00005 LD 24600 00006 AND 00004 00007 AND NOT 00005 00008 OUT 00100 00009 LD 24600 00010 OR NOT 00004 00011...

Page 122: ...as many conditions as required to draw a clear diagram Although very complicated dia grams can be drawn with instruction lines there must not be any conditions on lines running vertically between two...

Page 123: ...ions and is controlled by the execution condition of the first of the pair Conditions should not be placed on the instruction lines leading to these instructions Refer to Section 5 Instruction Set for...

Page 124: ...the desired data is moved to a word before that word is used as the operand for an instruction Remember that an instruction line is completed to the terminal instruction at the right before executing...

Page 125: ...of other instructions as well The Output instructions used in examples in this manual can therefore generally be replaced by other instructions to modify the program for specific applications other t...

Page 126: ...TO HOURS HMS 66 185 5 18 7 4 TO 16 DECODER MLPX 76 186 5 18 8 16 TO 4 ENCODER DMPX 77 189 5 18 9 7 SEGMENT DECODER SDEC 78 192 5 18 10 ASCII CONVERT ASC 86 195 5 18 11 ASCII TO HEXADECIMAL HEX 196 5...

Page 127: ...DEFINE and STEP START STEP 08 SNXT 09 267 5 25 Special Instructions 276 5 25 1 FAILURE ALARM FAL 06 and SEVERE FAILURE ALARM FALS 07 276 5 25 2 CYCLE TIME SCAN 18 277 5 25 3 TRACE MEMORY SAMPLING TRSM...

Page 128: ...cifies the instruction and contains any definers described below or operand bits required by the instruction Other operands required by the instruction are contained in following words one operand per...

Page 129: ...ified for an operand an indirect address can be used Indirect DM addressing is specified by placing an asterisk before the DM DM When an indirect DM address is specified the designated DM word will co...

Page 130: ...on whether MOV 21 or MOV 21 was used All operands ladder diagram symbols and other specifications for instructions are the same regardless of whether the differentiated or non differentiated form of...

Page 131: ...UTPUT 301 ADBL DOUBLE BINARY ADD 225 AVG AVERAGE VALUE 235 CPS SIGNED BINARY COMPARE 178 CPSL DOUBLE SIGNED BINARY COMPARE 179 DBS SIGNED BINARY DIVIDE 231 DBSL DOUBLE SIGNED BINARY DIVIDE 232 DSW DIG...

Page 132: ...r or bit operand the data column is left blank for first line It is a good idea to cross through any blank data column spaces for all instruction words that do not require data so that the data column...

Page 133: ...00006 LD 01001 00007 AND NOT 01002 00008 AND NOT LR 6300 00009 OR LD 00010 AND 22500 00011 BCNT 67 0001 004 HR 00 00012 LD 00005 00013 TIM 000 0150 00014 LD TIM 000 00015 MOV 21 HR 00 LR 00 00016 LD H...

Page 134: ...An example of this for SFT 10 is shown below I P R SFT 10 HR 00 HR 00 Address Instruction Data 00000 LD 00000 00001 AND 00001 00002 LD 00002 00003 LD 00100 00004 AND NOT 00200 00005 LD 01001 00006 AND...

Page 135: ...CLUSIVE OR XNRW EXCLUSIVE NOR INC INCREMENT DEC DECRE MENT 4 STC SET CARRY CLC CLEAR CARRY TRSM TRACE MEMORY SAMPLE MSG MESSAGE DISPLAY LMSG LONG MES SAGE TERM TERMINAL MODE 5 ADB BINARY ADD SBB BINAR...

Page 136: ...ED BINARY COMPARE 179 DBS 4 SIGNED BINARY DIVIDE 231 DBSL 4 DOUBLE SIGNED BINARY DIVIDE 232 DEC 39 2 BCD DECREMENT 204 DIFD 14 2 DIFFERENTIATE DOWN 131 DIFU 13 2 DIFFERENTIATE UP 131 DIST 80 4 SINGLE...

Page 137: ...OVE NOT 159 NEG 4 2 S COMPLEMENT 202 NEGL 4 DOUBLE 2 S COMPLEMENT 203 NOP 00 1 NO OPERATION 138 OR None 1 OR 129 OR LD None 1 OR LOAD 130 OR NOT None 1 OR NOT 129 ORW 35 4 LOGICAL OR 251 OUT None 2 OU...

Page 138: ...37 TCMP 85 4 TABLE COMPARE 175 TERM 48 4 TERMINAL MODE 280 TIM None 2 TIMER 139 TIMH 15 3 HIGH SPEED TIMER 143 TKY 4 TEN KEY INPUT 311 TRSM 45 1 TRACE MEMORY SAMPLE 277 TTIM 87 4 TOTALIZING TIMER 144...

Page 139: ...described in Section 4 Writing and Inputting the Program the status of the bits assigned to each instruction determines the execution conditions for all other instructions Each of these instructions a...

Page 140: ...7 Inputting Modifying and Checking the Program In order to reduce the number of programming instructions required a basic un derstanding of logic block instructions is required For an introduction to...

Page 141: ...turn the designated bit ON for one cycle only Whenever executed DIFU 13 compares its current execution with the previous execution condition If the previous execution condition was OFF and the cur ren...

Page 142: ...sired execution condition goes ON 00000 CMP 20 HR 10 DM 0000 Diagram A 22500 CMP 20 HR 10 DM 0000 Diagram B DIFU 13 22500 00000 Address Instruction Operands 00000 LD 00000 00001 CMP 20 HR 10 DM 0000 A...

Page 143: ...JME 05 will not change when the interlock or jump con dition is met i e when IL 02 or JMP 04 is executed with an OFF execution condition Flags There are no flags affected by these instructions Exampl...

Page 144: ...P 11 requires one less instruction to program and would maintain status even in an interlocked program section 00002 00003 00500 00002 00003 00500 S R KEEP 11 B Address Instruction Operands Address In...

Page 145: ...Refer to 5 14 1 TIMER TIM for details 5 10 INTERLOCK and INTERLOCK CLEAR IL 02 and ILC 03 Ladder Symbol IL 02 Ladder Symbol ILC 03 Description IL 02 is always used in conjunction with ILC 03 to create...

Page 146: ...s are shown below The interlock is in effect while 00000 is OFF Notice that 01000 is not turned ON at the point labeled A even though 00001 has turned OFF and then back ON 00000 IL 02 DIFU 13 01000 IL...

Page 147: ...9 may be used only once in JMP 04 and once in JME 05 i e each can be used to define one jump only Jump number 00 can be used as many times as desired Description JMP 04 is always used in conjunction w...

Page 148: ...gram check is performed Although this message also appears if JMP 04 00 and JME 05 00 are not used in pairs the program will execute prop erly as written Flags There are no flags affected by these ins...

Page 149: ...is allowed This is done by designating the TC number used to define that timer or counter to access the memory location that holds the PV Note that TIM 000 is used to designate the TIMER instruction d...

Page 150: ...ompletion Flag may turn ON as soon as the timer input goes from OFF to ON With other values also allow for a timer accuracy of 0 to 0 1 s when setting the SV Flags ER SV is not in BCD Indirectly addre...

Page 151: ...te delays the Completion Flags for two TIM are used to determine the execution conditions for setting and reset the bit designated for KEEP 11 The bit whose manipulation is to be delayed is used in KE...

Page 152: ...IM 001 i e TIM 001 will turn ON which as an inverse con dition creates an OFF execution condition for OUT 00204 01000 TIM 001 00000 01000 01000 TIM 001 01000 00204 001 5 s 00000 00204 1 5 s 1 5 s TIM...

Page 153: ...ON when the flicker bit is operating Although this method does not use TIM it is included here for comparison This method is more limited because the ON and OFF times must be the same and they depend...

Page 154: ...TC 000 to TC 003 are used If the SV is set to 0001 because the timer accuracy is 0 to 0 1 s the actual time will be a value between 0 and 0 1 s and the Completion Flag may turn ON as soon as the timer...

Page 155: ...mpletion Flag will turn ON If the SV is set to 0001 because the timer accuracy is 0 to 0 1 s the actual time will be a value between 0 and 0 1 s and the Completion Flag may turn ON as soon as the time...

Page 156: ...lag and the PV are illus trated below PV line height is meant only to indicate changes in the PV Execution condition on count pulse CP Execution condition on reset R ON OFF ON OFF Completion Flag ON O...

Page 157: ...CNT 002 has been reached until the entire extended counter is reset via 00002 Because in this example the SV for CNT 001 is 100 and the SV for CNT 002 is 200 the Completion Flag for CNT 002 turns ON w...

Page 158: ...lowing example CNT 001 counts the number of times the 1 second clock pulse bit 25502 goes from OFF to ON Here again 00000 is used to con trol the times when CNT is operating Because in this example th...

Page 159: ...Flag is turned ON until the PV is decremented again When incremented past the SV the PV is set to 0000 and the Completion Flag is turned ON until the PV is incremented again CNTR 12 is reset with a r...

Page 160: ...ted and 1 execution condition P is ON and was OFF the last execution and 2 R is OFF then execution condition I is shifted into the rightmost bit of a shift register defined between St and E i e if I i...

Page 161: ...2800 Address Instruction Operands 00000 LD 00200 00001 AND 00201 00002 LD 00202 00003 LD 00203 00004 SFT 10 AR 00 AR 01 00005 LD 00004 00006 DIFU 13 12800 00007 LD 12800 00008 JMP 04 00 00009 LD 12800...

Page 162: ...her Sensor 00002 I P SFT 10 HR 00 HR 01 R 00001 00000 00003 00500 HR 0003 00500 HR 0003 00002 Address Instruction Operands 00000 LD 00001 00001 LD 00000 00002 LD 00003 00003 SFT 10 HR 00 HR 01 00004 L...

Page 163: ...FTR 84 is executed with bit 14 OFF the shift register will remain unchanged If SFTR 84 is executed with an ON execution condition and the re set bit bit 15 is OFF the entire shift register and CY will...

Page 164: ...eded CY Receives the status of bit 15 EQ ON when the content of Wd is zero otherwise OFF 5 15 4 ARITHMETIC SHIFT RIGHT ASR 26 Wd Shift word IR SR AR DM HR LR Ladder Symbols Operand Data Areas ASR 26 W...

Page 165: ...eeded CY Receives the data of bit 15 EQ ON when the content of Wd is zero otherwise OFF 5 15 6 ROTATE RIGHT ROR 28 Wd Rotate word IR SR AR DM HR LR Ladder Symbols Operand Data Areas ROR 28 Wd ROR 28 W...

Page 166: ...ross more than 50 words the shift operation might not be completed Flags ER The St and E words are in different areas or St is greater than E Indirectly addressed DM word is non existent Content of DM...

Page 167: ...al to E Description When the execution condition is OFF WSFT 16 is not executed When the exe cution condition is ON WSFT 16 shifts data between St and E in word units Zeros are written into St and the...

Page 168: ...xecuted with bit 15 ON Turn bit 15 OFF for normal operation Flags ER The St and E words are in different areas or St is greater than E Indirectly addressed DM word is non existent Content of DM word i...

Page 169: ...to D 5 16 2 MOVE NOT MVN 22 S Source word IR SR AR DM HR TC LR D Destination word IR SR AR DM HR LR Ladder Symbols Operand Data Areas MVN 22 S D MVN 22 S D Description When the execution condition is...

Page 170: ...exe cution condition is ON BSET 71 copies the content of S to all words from St through E 2 S 3 4 5 2 St 3 4 5 2 St 1 3 4 5 2 St 2 3 4 5 2 E 3 4 5 BSET 71 can be used to change timer counter PV This c...

Page 171: ...00003 00007 OR 00004 00008 TIM 010 9999 5 16 4 BLOCK TRANSFER XFER 70 N Number of words BCD IR SR AR DM HR TC LR S Starting source word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas D Startin...

Page 172: ...ion base word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas C Control word BCD IR SR AR DM HR TC LR DIST 80 S DBs C DIST 80 S DBs C Limitations C must be a BCD If C 6655 DBs must be in the sa...

Page 173: ...20 to HR 29 During the first cycle when IR 00001 is ON the data is written to DBs 1 HR 21 and the stack pointer is incremented by 1 In the second cycle the data is written to DBs 2 HR 22 and the stac...

Page 174: ...th stack operations use a stack beginning at SBs with a length specified in the rightmost 3 digits of C Precautions Stack operation will be unreliable if the specified stack length is different from t...

Page 175: ...B C D LR 20 Stack pointer decremented Stack pointer Stack area When the execution condition is OFF COLL 81 is not executed When the exe cution condition is ON COLL 81 copies the data most recently rec...

Page 176: ...ter Stack area Flags ER The content of C is not BCD or 6655 C 8000 When C 6655 DBs and DBs C are not in the same data area When C 8000 the beginning and end of the stack are not in the same data area...

Page 177: ...LR Di Digit designator BCD IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas D Destination word IR SR AR DM HR TC LR MOVD 83 S Di D MOVD 83 S Di D Limitations The rightmost three digits of Di mu...

Page 178: ...er Symbols Operand Data Areas D First destination word IR SR AR DM HR LR XFRB 62 C S D XFRB 62 C S D Limitations The specified source bits must be in the same data area The specified destination bits...

Page 179: ...word of table 1 IR SR AR DM HR TC LR TB2 First word of table 2 IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas R Result word IR AR DM HR TC LR MCMP 19 TB1 TB2 R MCMP 19 TB1 TB2 R Limitations T...

Page 180: ...CMP 19 100 DM 0200 DM 0300 00000 TB1 IR 100 TB2 DM 0200 R DM 0300 Address Instruction Operands 00000 LD 00000 00001 MCMP 19 100 DM 0200 DM 0300 5 17 2 COMPARE CMP 20 Cp1 First compare word IR SR AR DM...

Page 181: ...changed only when CMP 20 is executed CMP 20 010 HR 09 00000 25505 00200 25507 00202 TR 0 25506 00201 Greater Than Equal Less Than Address Instruction Operands Address Instruction Operands 00000 LD 000...

Page 182: ...s Output at 200 s Output at 300 s Output at 500 s TIM 010 5000 Address Instruction Operands Address Instruction Operands 00000 LD 00000 00001 TIM 010 5000 00002 CMP 20 TIM 010 4000 00003 AND 25507 000...

Page 183: ...ntent of DM word is not BCD or the DM area boundary has been exceeded GR ON if Cp1 1 Cp1 is greater than Cp2 1 Cp2 EQ ON if Cp1 1 Cp1 equals Cp2 1 Cp2 LE ON if Cp1 1 Cp1 is less than Cp2 1 Cp2 The fol...

Page 184: ...If CD is found to be within any of these ranges inclusive of the upper and lower limits the corresponding bit in R is set The comparisons that are made and the corresponding bit in R that is set for e...

Page 185: ...with the given ranges Address Instruction Operands 00000 LD 00000 00001 BCMP 68 001 HR 10 HR 05 5 17 5 TABLE COMPARE TCMP 85 CD Compare data IR SR AR DM HR TC LR TB First comparison table word IR AR...

Page 186: ...th the given ranges Address Instruction Operands 00000 LD 00000 00001 TCMP 85 001 HR 10 HR 05 5 17 6 AREA RANGE COMPARE ZCP 88 CD Compare data IR SR AR DM HR TC LR LL Lower limit of range IR SR AR DM...

Page 187: ...8 0010 IR 100 00000 25505 00200 25507 00202 TR 0 25506 00201 Greater Than above range Equal within range Less Than below range Address Instruction Operands Address Instruction Operands 00000 LD 00000...

Page 188: ...than UL 1 UL EQ ON if LL 1 LL CD CD 1 UL 1 UL LE ON if CD CD 1 LL 1 LL GR ON if CD CD 1 UL 1 UL Example Refer to 5 17 6 AREA RANGE COMPARE ZCP 88 for an example The only difference between ZCP 88 and...

Page 189: ...he 32 bit 8 digit signed binary contents in Cp1 1 Cp1 and Cp2 1 Cp2 and outputs the result to the GR EQ and LE flags in the SR area Note 1 Refer to page 29 for details on 32 bit signed binary data 2 R...

Page 190: ...IN 23 S R BIN 23 S R Description When the execution condition is OFF BIN 23 is not executed When the execu tion condition is ON BIN 23 converts the BCD content of S into the numerically equivalent bin...

Page 191: ...word binary IR SR AR DM HR TC LR R Result word IR SR AR DM HR LR Ladder Symbols Operand Data Areas BCD 24 S R BCD 24 S R Description BCD 24 converts the binary hexadecimal content of S into the numeri...

Page 192: ...E0FF the converted result would exceed 99999999 and BCDL 59 will not be executed When the instruction is not exe cuted the content of R and R 1 remain unchanged S and S 1 must be in the same data area...

Page 193: ...hours 59 minutes and 59 seconds The result is output to R and R 1 The maximum obtainable value is 35 999 999 seconds Flags ER S and S 1 or R and R 1 are not in the same data area S and or S 1 do not...

Page 194: ...placed in bits 08 through 15 of R The hours is placed in R 1 The maximum will be 9 999 hours 59 minutes and 59 seconds Flags ER S and S 1 or R and R 1 are not in the same data area S and or S 1 do no...

Page 195: ...result words The specified bit in each result word is turned on and the other 15 bits in each word are turned off When the execution condition is OFF MLPX 76 is not executed When the exe cution condi...

Page 196: ...onverted must be in the same data area as R e g if two digits are converted the last word address in a data area cannot be designated if three digits are con verted the last two words in a data area c...

Page 197: ...of a one byte decode operation from the rightmost byte of S C would be 1000 in this case R Bit 15 Bit 00 0 0 0 0 0 0 R 1 Bit 15 Bit 00 0 0 0 0 0 0 R 2 Bit 15 Bit 00 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 R 1...

Page 198: ...HR 1209 0 DM 10 1 22 HR 1010 0 HR 1110 0 HR 1210 0 DM 11 0 23 HR 1011 0 HR 1111 0 HR 1211 0 DM 12 0 20 HR 1012 0 HR 1112 0 HR 1212 0 DM 13 0 21 3 HR 1013 0 HR 1113 0 HR 1213 0 DM 14 0 22 HR 1014 0 HR...

Page 199: ...ot used Set to 0 A value of 0 specifies 16 bit to 4 bit encoding Digit number 3 2 1 0 Some example C values and the word to digit conversions that they produce are shown below 0 1 2 3 R C 0011 S S 1 0...

Page 200: ...of bytes to be encoded 0 or 1 0 1 byte 1 2 bytes Not used Set to 0 A value of 1 specifies 256 bit to 8 bit encoding Digit number 3 2 1 0 Three possible C values and the conversions that they produce a...

Page 201: ...20 DMPX 77 Address Instruction Operands 00000 LD 00000 00001 DMPX 77 010 HR 20 0010 00002 DMPX 77 LR 10 HR 20 0012 5 18 9 7 SEGMENT DECODER SDEC 78 S Source word binary IR SR AR DM HR TC LR Di Digit...

Page 202: ...g of S Digit Designator The digits of Di are set as shown below Specifies the first digit to receive converted data 0 to 3 Number of digits to be converted 0 to 3 0 1 digit 1 2 digits 2 3 digits 3 4 d...

Page 203: ...it 08 Bit 07 or bit 15 8 Original data Converted code segments Display Digit Bits g f e d c b a 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 1 0 0 0 0 0 1 1 0 2 0 0 1 0 0 1 0 1 1 0 1 1 3 0 0 1 1 0 1 0 0 1 1 1 1...

Page 204: ...igit The first digit the number of digits to be converted and the half of D to re ceive the first ASCII code rightmost or leftmost 8 bits are designated in Di If multiple digits are designated they wi...

Page 205: ...sted for even parity ASCII 31 00110001 will be B1 10110001 parity bit turned ON to create an even num ber of ON bits ASCII 36 00110110 will be 36 00110110 parity bit turned OFF because the number of O...

Page 206: ...tmost or leftmost 8 bits the number of bytes to be converted and the digit of D to receive the first hexadecimal value are designated in Di If multiple bytes are designated they will be converted in o...

Page 207: ...1 1 3 0 0 1 1 34 0 1 1 0 1 0 0 4 0 1 0 0 35 0 1 1 0 1 0 1 5 0 1 0 1 36 0 1 1 0 1 1 0 6 0 1 1 0 37 0 1 1 0 1 1 1 7 0 1 1 1 38 0 1 1 1 0 0 0 8 1 0 0 0 39 0 1 1 1 0 0 1 9 1 0 0 1 41 1 0 1 0 0 0 1 A 1 0...

Page 208: ...SCL S P1 R Limitations P1 and P1 2 must be BCD P1 through P1 3 must be in the same data area P1 1 and P1 3 must not be set to the same value Description SCL is used to linearly convert a 4 digit hexad...

Page 209: ...en using the following formula Results BY BY AY BX AX X BX S Flags ER The value in P1 1 equals that in P1 3 Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area bo...

Page 210: ...0 0 0 0 1 Bit 15 Bit 00 S C 1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1 S 1 0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 1 S 2 0 1 1 1 0 0 0 1 1 0 0 0 1 0 1 0 S 15 1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 S 3 0 1 1 D 1 Bit 15 Bit 00 Fla...

Page 211: ...Bit 00 D C 1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1 D 1 0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 1 D 2 0 1 1 1 0 0 0 1 1 0 0 0 1 0 1 0 D 15 1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 D 3 0 1 1 S 1 Bit 15 Bit 00 Flags ER The bit de...

Page 212: ...on If the content of S is 8000 the content of R will also be 8000 after execution and UF SR 25405 will be turned on Note Refer to page 29 for details on 16 bit signed binary data Flags ER Indirectly...

Page 213: ...ion and EQ SR 25506 will be turned on If the content of S is 8000 0000 the content of R will also be 8000 0000 after execution and UF SR 25405 will be turned on Note Refer to page 29 for details on 32...

Page 214: ...ation and to use the result placed in CY if required before it is changed by exe cution of any other instruction 5 19 1 INCREMENT INC 38 Wd Increment word BCD IR SR AR DM HR LR Ladder Symbols Operand...

Page 215: ...cle Note Refer to Appendix C Error and Arithmetic Flag Operation for a table listing the instructions that affect CY 5 19 5 BCD ADD ADD 30 Au Augend word BCD IR SR AR DM HR TC LR Ad Addend word BCD IR...

Page 216: ...ND NOT 25504 00008 MOV 21 0000 DM 0101 Although two ADD 30 can be used together to perform eight digit BCD addition ADDL 54 is designed specifically for this purpose 5 19 6 DOUBLE BCD ADD ADDL 54 Au F...

Page 217: ...R 12 ADB 50 0000 0000 HR 13 Address Instruction Operands 00000 LD 00000 00001 CLC 41 00002 ADDL 54 LR 20 DM 0010 HR 10 00003 ADD 30 LR 22 DM 0012 HR 12 00004 ADB 50 0000 0000 HR 13 5 19 7 BCD SUBTRACT...

Page 218: ...back in HR 20 and HR 2100 is turned ON to indicate a negative result If CY is not set by executing SUB 31 the result is positive the second subtrac tion is not performed and HR 2100 is not turned ON...

Page 219: ...rst result word IR SR AR DM HR LR SUBL 55 Mi Su R SUBL 55 Mi Su R Limitations Each of the following pairs must be in the same data area Mi and Mi 1 Su and Su 1 and R and R 1 Description When the execu...

Page 220: ...sult can be subtracted from 0 inputting an 8 digit constant is not possible Example CLC 41 SUBL 55 HR 20 120 DM 0100 CLC 41 SUBL 55 DM 0000 DM 0100 DM 0100 TR 0 25504 HR 2100 00003 25504 HR 2100 First...

Page 221: ...Md Mr R 1 R X Example When IR 00000 is ON with the following program the contents of IR 013 and DM 0005 are multiplied and the result is placed in HR 07 and HR 08 Example data and calculations are sho...

Page 222: ...ON MULL 56 multiplies the eight digit content of Md and Md 1 by the content of Mr and Mr 1 and places the result in R to R 3 Md 1 Md Mr 1 Mr R 1 R R 3 R 2 x Flags ER Md Md 1 Mr or Mr 1 is not BCD Ind...

Page 223: ...t of IR 020 is divided by the content of HR 09 and the result is placed in DM 0017 and DM 0018 Exam ple data and calculations are shown below the program DIV 33 020 HR 09 DM 0017 00000 R DM 0017 R 1 D...

Page 224: ...NG POINT DIVIDE FDIV 79 Dd First dividend word BCD IR SR AR DM HR TC LR Dr First divisor word BCD IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas R First result word IR SR AR DM HR LR FDIV 79 D...

Page 225: ...107 Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded EQ ON when the result is 0 Example The following example shows how to divide tw...

Page 226: ...0 0 DM 0000 3 4 5 2 HR 01 HR 00 4 3 4 5 2 0 0 0 HR 01 HR 00 4 3 4 5 2 0 0 0 HR 03 HR 02 4 0 0 7 9 0 0 0 DM 0003 DM 0002 2 4 3 6 9 6 2 0 0 4369620 x 102 00000 LD 00000 00001 MOV 21 0000 HR 00 00002 MOV...

Page 227: ...area boundary has been exceeded EQ ON when the result is 0 Example The following example shows how to take the square root of a four digit number and then round the result First the words to be used a...

Page 228: ...0 0 7 7 5 6 0 0 BSET 71 0000 DM 0100 DM 0101 MOV 21 0000 DM 0103 0000 60170000 7756 932 DM 0103 IR 011 0 0 0 0 0 0 0 0 0000 0000 25505 5600 4900 IR 011 0 0 7 8 Address Instruction Operands Address Ins...

Page 229: ...t or 32 bit signed binary data Refer to page 29 for details on signed binary data 5 20 1 BINARY ADD ADB 50 Au Augend word binary IR SR AR DM HR TC LR Ad Addend word binary IR SR AR DM HR TC LR Ladder...

Page 230: ...010 A 6 E 2 Ad DM 0100 8 0 C 5 Note The UF and OF flags would also be turned ON during this addition but they can be ignored since they are relevant only in the addition of signed binary data In the...

Page 231: ...ion is ON SBB 51 subtracts the contents of Su and CY from Mi and places the result in R If the result is negative CY is set and the 2 s comple ment of the actual result is placed in R Mi Su CY CY R SB...

Page 232: ...08 MOV 21 0001 HR 22 00009 NEG HR 21 HR 21 NEG HR21 HR 21 In the case below the content of LR 20 7A03 and CY are subtracted from IR 001 F8C5 The result is stored in HR 21 and the content of HR 22 0000...

Page 233: ...6 bit signed binary data range In other words the result is a positive value that exceeds 32 767 7FFF not a negative number expressed as signed binary data Mi LR 20 7 5 4 4 Su DM 0010 C 4 7 A R DM 002...

Page 234: ...be used to multiply signed binary data Use MBS instead Refer to 5 20 7 SIGNED BINARY MULTIPLY MBS for details Flags ER Indirectly addressed DM word is non existent Content of DM word is not BCD or the...

Page 235: ...2 Remainder 2 Quotient 1447 5 20 5 DOUBLE BINARY ADD ADBL Au First augend word binary IR SR AR DM HR LR Ad First addend word binary IR SR AR DM HR LR Ladder Symbols Operand Data Areas R First result...

Page 236: ...41 00002 ADBL 000 DM 0020 LR 21 14020187 00A3F8C5 14A5FA4C Au 1 001 Au 000 Ad 1 DM 0021 Ad DM 0020 1 4 0 2 0 1 8 7 0 0 A 3 F 8 C 5 0 R 1 LR 22 R LR 21 F A 4 C 1 4 A 5 0 CY Cleared with CLC 41 CY No c...

Page 237: ...L Mi Su R Limitations Mi and Mi 1 must be in the same data area as must Su and Su 1 and R and R 1 Description When the execution condition is OFF SBBL is not executed When the ex ecution condition is...

Page 238: ...3F8C5 14A5FA4C Au 1 002 Au 001 Ad 1 DM 0021 Ad DM 0020 1 4 0 2 0 1 8 7 0 0 A 3 F 8 C 5 0 R 1 LR 22 R LR 21 0 8 C 2 1 3 5 E 0 CY Cleared with CLC 41 CY No carry Note The status of the UF and OF flags c...

Page 239: ...AR DM HR TC LR Mr Multiplier word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas R First result word IR SR AR DM HR LR MBS Md Mr R MBS Md Mr R Limitations R and R 1 must be in the same data a...

Page 240: ...C LR Ladder Symbols Operand Data Areas R First result word IR SR AR DM HR LR MBSL Md Mr R MBSL Md Mr R Limitations Md and Md 1 must be in the same data area as must Mr and Mr 1 and R and R 3 Descripti...

Page 241: ...word IR SR AR DM HR TC LR Dr Divisor word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas R First result word IR SR AR DM HR LR DBS Dd Dr R DBS Dd Dr R Limitations R and R 1 must be in the same...

Page 242: ...rst result word IR SR AR DM HR LR DBSL Dd Dr R DBSL Dd Dr R Limitations Dd and Dd 1 must be in the same data area as must Dr and Dr 1 and R and R 3 Description DBS divides the 32 bit 8 digit signed bi...

Page 243: ...in C must be BCD between 001 to 999 R1 and R1 N 1 must be in the same data area Description When the execution condition is OFF MAX is not executed When the exe cution condition is ON MAX searches the...

Page 244: ...e maximum value is 0000 5 21 2 FIND MINIMUM MIN R1 First word in range IR SR AR DM HR TC LR C Control data IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas MIN C R1 D D Destination word IR SR AR...

Page 245: ...ent Content of DM word is not BCD or the DM area boundary has been exceeded The number of words specified in C is not BCD 000 to 999 R1 and R1 N 1 are not in the same data area EQ ON when the minimum...

Page 246: ...ts in D 1 are shown in the following diagram and explained in more detail below 15 14 08 07 00 Previous value pointer 2 digit hexadecimal from 0 to N 1 D 1 Not used Set to zero Cycle indicator 0 OFF c...

Page 247: ...00003 CLC 41 00004 ADB 50 040 0001 040 AVG 0003 040 DM 1000 CLC 41 ADB 50 0001 040 040 1st cycle 2nd cycle 3rd cycle 4th cycle DM 1000 0000 0001 0001 0002 Average DM 1001 0001 0002 8000 8000 Pointer D...

Page 248: ...e num ber of words or the number of bytes depending the items being summed Addition Units Words will be added if bit 13 is OFF and bytes will be added if bit 13 is ON If bytes are specified the range...

Page 249: ...BCD from 0000 to 0900 0 q 90 Description When the execution condition is OFF APR 69 is not executed When the exe cution condition is ON the operation of APR 69 depends on the control word C If C is 00...

Page 250: ...4 0 3 0 0 8 6 6 0 APR 69 0001 DM 0010 DM 0110 00000 Enter input data not exceeding 0900 in BCD Result data has four significant digits fifth and higher digits are ignored The result for cos 0 will be...

Page 251: ...owing diagram X0 Xm X Y Xm X0 X Y The following example demonstrates the construction of a linear approximation with 12 line segments The block of data is continuous as it must be from DM 0000 to DM 0...

Page 252: ...range of binary data from the contents of input word S and carries out the PID operation according to the parameters that are set The re sults are then stored as the operation output amount in output...

Page 253: ...s 1 9 bits 5 13 bits 6 14 bits Output range This is the number of output data bits The number of output bits is automatically the same as the number of input bits 1 9 bits 2 10 bits 3 11 bits 4 12 bit...

Page 254: ...ro portional to the deviation and gradually decreased until the SV and PV match i e until the deviation is 0 the operation amount will return to the previous val ue forward operation The proportional...

Page 255: ...ne derivative coefficient caused by the deviation The strength of the derivative operation is indicated by the derivative time which is the time required for the derivative operation amount to reach t...

Page 256: ...is larger than the SV Reverse operation Control amount is increased when the PV is smaller than the SV Adjusting PID Parameters The general relationship between PID parameters and control status is sh...

Page 257: ...DM area boundary has been exceeded A PID parameter SV is out of range The PID operation was executed but the cycle time was two times the sampling period PID will be executed for this error only even...

Page 258: ...ruction in the following program 5 Convert the PV of the temperature sensing element binary 000 to FFF to temperature data 0000 C to 0200 C by means of SCL and output it to DM 0200 Program Target valu...

Page 259: ...000 0000 0200 0FFF 5 22 Logic Instructions The logic instructions COM 29 ANDW 34 ORW 35 XORW 36 and XNRW 37 perform logic operations on word data 5 22 1 COMPLEMENT COM 29 Wd Complement word IR SR AR D...

Page 260: ...not executed When the ex ecution condition is ON ANDW 34 logically AND s the contents of I1 and I2 bit by bit and places the result in R 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 15 00 0 1 0 1 0 1 0 1 0 1 0 1 0...

Page 261: ...ot executed When the ex ecution condition is ON ORW 35 logically OR s the contents of I1 and I2 bit by bit and places the result in R 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 15 00 0 1 0 1 0 1 0 1 0 1 0 1 0 1...

Page 262: ...not executed When the ex ecution condition is ON XORW 36 exclusively OR s the contents of I1 and I2 bit by bit and places the result in R 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 15 00 0 1 0 1 0 1 0 1 0 1 0 1...

Page 263: ...a subroutine are written in the same way as main program code When all the subroutine instructions have been executed control returns to the main program to the point just after the point from which...

Page 264: ...hen external inputs are received via a C200HS INT01 Interrupt Input Unit The Interrupt Input Unit provides at total of 8 inputs numbered IN 0 through IN7 that can be used to generate interrupts 00 to...

Page 265: ...cause Host Link servicing remote I O servicing Special I O Unit servicing and individual instruction execution will not necessarily be com pleted when started The program must be designed to allow for...

Page 266: ...t execution time is out put to SR 262 and the number of the subroutine with the longest execution time is output to SR 263 SR 262 SR 263 0 1 2 3 8 0 Maximum interrupt subroutine execution time in 0 1...

Page 267: ...down to byte units Use one of the following methods to preserve data concurrence in the above sit uations The second methods applies to Special I O Units only Mask interrupts in the main program whil...

Page 268: ...es as desired in the program i e the same subroutine may be called from different places in the program SBS 91 may also be placed into a subroutine to shift program execution from one subroutine to an...

Page 269: ...fied subroutine number A subroutine has called itself An active subroutine has been called Caution SBS 91 will not be executed and the subroutine will not be called when ER is ON 5 23 4 SUBROUTINE DEF...

Page 270: ...5 MACRO MCRO 99 I1 First input word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas O1 First output word IR SR AR DM HR LR MCRO 99 N I1 O1 MCRO 99 N I1 O1 N Subroutine number 00 to 99 Limitati...

Page 271: ...can be used for I1 and O1 3 SR 290 to SR 297 can be used as work bits when not used for macro pro grams Precautions MCRO 99 can be used only for program sections that can be written using four or few...

Page 272: ...15001 01001 01002 29400 29000 29401 29400 29401 29001 29002 RET 93 MCRO 99 090 000 100 25313 MCRO 99 090 002 105 MCRO 99 090 005 120 MCRO 99 090 010 150 Always ON Flag 5 23 6 INTERRUPT CONTROL INT 89...

Page 273: ...to 07 This function is used to set the interval between scheduled interrupts The con tent of D BCD 0001 to 9999 is multiplied by the scheduled interrupt time unit 1 ms or 10 ms to obtain the scheduled...

Page 274: ...subroutine would be executed if there were an input from input interrupt 00 when that interrupt input was unmasked LD 25315 INT 89 000 000 00FE SBN 92 00 RET 93 END 01 Main program Subroutine Main pr...

Page 275: ...15 INT 89 001 004 0002 INT 89 000 004 0002 SBN 92 00 RET 93 END 01 Main program Subroutine Main program Sets the time to first interrupt to 20 ms Sets the scheduled in terrupt interval to 20 ms Return...

Page 276: ...of a section of the program called a step STEP 08 does not require an execution condition i e its execution is controlled through the control bit To start execu tion of the step SNXT 09 is used with...

Page 277: ...1 Step controlled by 20201 00200 LD 00002 00201 SNXT 09 LR 2002 00202 STEP 08 Steps can be programmed in consecutively Each step must start with STEP 08 and generally ends with SNXT 09 see example 3 b...

Page 278: ...ree examples demonstrate the three types of execution control possible with step programming Example 1 demonstrates sequential execu tion example 2 branching execution and example 3 parallel execution...

Page 279: ...iagram demonstrates the flow of processing and the switches that are used for execution control Process A Process B Process C Loading Part Installation Inspection discharge SW1 SW2 SW3 SW4 Step Instru...

Page 280: ...02 STEP 08 12802 SNXT 09 12803 STEP 08 Process A Process B Process C 00002 SW2 00003 SW3 00004 SW4 Process A started Process A reset Process B started Process B reset Process C started Process C reset...

Page 281: ...signal when processes are to start and end SW A1 SW A2 SW B1 SW B2 Process C Weight scale Process B Process A Printer SW D The following diagram demonstrates the flow of processing and the switches t...

Page 282: ...R 0003 STEP 08 Process A Process B Process C 00003 SW A2 00004 SW B2 00005 SW D Process A started Process A reset Process C started Process B reset Process C started Process C reset 00001 SW A1 SNXT 0...

Page 283: ...operation shown below starts with two SNXT 09 instruc tions that start processes A and C These instructions branch from the same in struction line and are always executed together starting steps for...

Page 284: ...ed Process A reset Process B started Process E reset 00001 SW1 and SW2 SNXT 09 LR 0000 SNXT 09 LR 0002 Process C started 01101 SNXT 09 LR 0004 00004 SW5 and SW6 LR 0003 STEP 08 LR 0002 Process E start...

Page 285: ...e watch dog timer and refreshing I O during program execution 5 25 1 FAILURE ALARM FAL 06 and SEVERE FAILURE ALARM FALS 07 N FAL number 00 to 99 Ladder Symbols Definer Data Areas FAL 06 N FAL 06 N N F...

Page 286: ...ea cannot be cleared as is generally the case when FALS 07 is executed first remove the cause of the error and then clear the FAL area through the Programming Console see 4 6 5 Clearing Error Messages...

Page 287: ...specified data is to be traced If TRSM 45 is not used the specified data will be traced when END 01 is executed The third method involves setting a timer interval from the peripheral devices so that...

Page 288: ...ed with an ON execution condition MSG 46 reads eight words of extended ASCII code from FM to FM 7 and displays the message on the Pro gramming Console The displayed message can be up to 16 characters...

Page 289: ...ata given when 00000 was ON If 00001 goes ON a message will be cleared MSG 46 DM 0010 FAL 06 00 00000 00001 Address Instruction Operands 00000 LD 00000 00001 MSG 46 DM 0010 00002 LD 00001 00003 FAL 06...

Page 290: ...or the DM area boundary has been exceeded Example Although the display is longer and there is a choice of output devices the coding for LMSG 47 is the same as that for MSG 46 Refer to Example under t...

Page 291: ...e exceeds 100 ms When using WDT 94 the same timer should be repeated in the program at intervals that are less than 100 ms apart TIMH 15 should be used only in a scheduled interrupt routine executed a...

Page 292: ...8 pt Units no of 12 16 pt Units 2 When Special I O Units are specified the execution time for IORF 97 is com puted as follows TIORF instruction execution time Special I O Unit I O refresh times The in...

Page 293: ...1 are not in the same area The resulting count value exceeds 9999 Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded EQ ON when the r...

Page 294: ...the leftmost or rightmost byte of R1 The leftmost byte of R1 will not be included if bit 12 is ON MSB LSB R1 1 2 R1 1 3 4 R1 2 5 6 R1 3 7 8 When bit 12 is OFF the bytes will be ORed in this order 1 2...

Page 295: ...be in the same data area when bit 15 of C is ON C must be input as a constant Description FPD can be used in the program as many times as desired but each must use a different D It is used to monitor...

Page 296: ...digit BCD 00 to 99 C Not used Set to zero Diagnostics output 0 OFF Bit address output binary 1 ON Bit address and message output ASCII Logic Diagnostic Instructions If the time until the logic diagno...

Page 297: ...l Device along with the bit address when FPD is executed Words D 5 to D 8 contain the message preset by the user as shown in the following table Word Bits 15 to 08 Bits 07 to 00 D 1 20 space First ASC...

Page 298: ...IR 10003 are all ON IR 10002 will be selected as the cause of the error an FAL 06 error will be gen erated with an FAL number of 10 and the bit address and preset message 10002 1ABC will be displayed...

Page 299: ...e ad dress is identified differently for the DM area 1 2 3 1 For an address in the DM area the word address is written to C 1 For ex ample if the lowest address containing the comparison data is DM 01...

Page 300: ...D between 0001 and 3000 S must be BCD between 7000 and 9999 S and S N 1 must be in the same data area as must D and D N 1 Description When the execution condition is OFF XDMR is not executed When the...

Page 301: ...LR Operand Data Areas C First control data word IR AR DM HR TC LR Ladder Symbols SEND 90 S D C SEND 90 S D C Limitations Can be performed with the CPU31 E 33 E only C through C 2 must be within the sa...

Page 302: ...Manual for details Word Bits 00 to 07 Bits 08 to 15 C Number of words 0 to 256 in 4 digit hexadecimal i e 0000hex to 0100hex C 1 Response time limit 0 1 and 25 4 seconds in 2 digit hexadecimal withou...

Page 303: ...FF RECV 98 is not executed When the exe cution condition is ON RECV 98 transfers data beginning at S from a node on the SYSMAC NET Link SYSMAC LINK System to words beginning at D The control words beg...

Page 304: ...exadecimal i e 00hex to 3Ehex Set to 0 Examples This example is for a SYSMAC NET Link System When 00000 is ON the follow ing program transfers the content of IR 001 through IR 005 to LR 20 through LR...

Page 305: ...98 Error Flags SR 25200 SR 25203 OFF following normal completion of SEND RECV i e after reception of response signal ON after an unsuccessful SEND 90 RECV 98 attempt Error status is maintained until t...

Page 306: ...ds to specify the 10 words to be transmitted to node 3 in operating level 1 of network 00 NSB Turns ON to indicate transmission error Transmitted data moved into words beginning at DM 0030 for storage...

Page 307: ...0005 00030 RECV 98 HR 10 LR 10 DM 0003 00031 LD 12802 00032 AND 25203 00033 OUT 00201 00034 LD 12802 00035 AND 25204 00036 DIFU 13 12803 5 27 Serial Communications Instructions 5 27 1 RECEIVE RXD D F...

Page 308: ...1 D 1 4 3 D 2 6 5 D 3 8 7 Digit 0 1 Flags ER The CPU is not equipped with an RS 232C port Another device is not connected to the specified port There is an error in the communications settings PC Set...

Page 309: ...through the various ports Be sure the corresponding flag is ON before executing TXD SR 26405 RS 232C port SR 26413 Peripheral port SR 26705 Host Link Unit 0 SR 26713 Host Link Unit 1 Host Link Mode N...

Page 310: ...number of bytes will be read from S through S NP2 1 and trans mitted through the specified port MSB LSB S 1 2 S 1 3 4 S 2 5 6 S 3 7 8 When digit 0 of C is 0 the bytes of source data shown above will...

Page 311: ...to Slave Racks where Special I O Units must be used 5 28 1 7 SEGMENT DISPLAY OUTPUT 7SEG S First source word IR SR AR DM HR TC LR Ladder Symbols Operand Data Areas 7SEG S O C C Control data 000 to 00...

Page 312: ...ower interruptions Do not use 7SEG more than once in the program 7SEG cannot be used for I O Units mounted to Slave Racks Hardware This instruction outputs word data to a 7 segment display It utilizes...

Page 313: ...t 06 07 08 05 04 00 to 03 10 11 12 09 08 00 to 03 04 to 07 100 101 102 103 0 1 2 3 4 5 6 7 8 9 10 11 12 Note 0 to 3 Data output for word S 4 to 7 Data output for word S 1 12 cycles required to complet...

Page 314: ...data The digital switch must provide four data lines and one latch signal line and read signal line for each digit being input Precautions I O refreshing must be performed for all I O points used by...

Page 315: ...less required for the application 1 3 5 7 9 11 13 15 COM 0 2 4 6 8 10 12 14 COM ID212 1 3 5 7 9 11 13 15 COM 0 2 4 6 8 10 12 14 COM OD212 D0 D1 D2 D3 D0 D1 D2 D3 CS0 CS1 CS2 CS3 RD D0 D1 D2 D3 D0 D1 D...

Page 316: ...11 13 15 COM 0 2 4 6 8 10 12 14 DC OD212 1 2 4 8 7 6 5 4 3 2 1 C Output Unit A7B Thumbwheel Switch Note The data read signal is not required in the example The inputs must be connected to a DC Input U...

Page 317: ...ogram for reading 8 digits in BCD from the digital switch Assume that the digital switch is connected to IR 000 input and IR 100 output MOV 21 HR51 DM0000 DSW 000 100 HR51 05000 00015 10005 05000 0500...

Page 318: ...2 00 to 15 and bit 4 of OW are turned ON Note 1 When one of the keypad keys is being pressed input from the other keys is disabled 2 Input and output bits not used here can be used as ordinary input...

Page 319: ...ON while any key is being pressed but there is no need to connect it unless required by the application 1 3 5 7 9 11 13 15 COM 0 2 4 6 8 10 12 14 COM ID212 1 3 5 7 9 11 13 15 COM 0 2 4 6 8 10 12 14 C...

Page 320: ...Flags ER Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded D and D 2 are not in the same data area SR 25408 ON while HKY is being exe...

Page 321: ...digits of D1 D1 1 are shifted left and the most significant digit of D1 1 is lost 2 The first ten bits of D2 indicate key input When one of the keys on the key pad 0 to 9 is being pressed the corresp...

Page 322: ...ey input Flags ER Indirectly addressed DM word is non existent Content of DM word is not BCD or the DM area boundary has been exceeded D1 and D1 1 are not in the same data area Example In this example...

Page 323: ...for Input Unit inputs 00 to 07 Bit 08 is turned ON to indi cate that the entire matrix has been read Key input data is written to D through D 3 see table below 00 01 02 03 04 05 06 07 08 A selection s...

Page 324: ...64 keys can be divided into 8 rows including a row for OW bit 08 which are scanned consecutively Since each row is scanned for 3 cycles a delay of up to 25 cycles can occur before a given row of keys...

Page 325: ...MTR are refreshed each time MTR is executed INT 89 001 004 0002 INT 89 000 004 0002 SBN 92 99 MTR S D1 D2 IORF 97 D1 D2 RET 93 END 01 Flags ER Indirectly addressed DM word is non existent Content of...

Page 326: ...the desired control action at the right time This section explains the cycle and shows how to calculate the cycle time and I O response times 6 1 Cycle Time 318 6 2 Calculating Cycle Time 322 6 2 1 P...

Page 327: ...the operations that occur during the cycle and the ele ments that affect cycle time is however essential to effective programming and PC operations The major factors in determining program timing are...

Page 328: ...Resets watchdog timer and program address counter End of program YES Minimum cycle time NO YES Resets watchdog timer and waits until the set cycle time has elapsed Calculates cycle time Services SYSMA...

Page 329: ...d and then resets the watchdog timer 4 I O refreshing Total of following times 20 s per input byte 8 points 20 s per output byte 12 point Output Units calcu lated as 16 points PC Link Unit I O refresh...

Page 330: ...D216 0 18 ms C200H OD218 0 14 ms C200H ID217 0 31 ms C200H OD219 0 23 ms NT Links If the PC is connected to a Programmable Terminal PT via a C200H Interface Unit the times shown in the following table...

Page 331: ...g given from the system for the long cycle time produced by editing online Before editing online make sure that delays in I O responses will not create a dangerous situation in the controlled system 6...

Page 332: ...PC 8 pts 16 pts x 2 8 pts x 4 x 20 s 0 34 ms x 20 s 8 pts 16 pts x 2 8 pts x 5 6 2 2 PC with Link Units Here the cycle time is computed for a PC with a CPU21 E or CPU23 E CPU that has a Memory Unit w...

Page 333: ...DM words which create longer execution times when used are indicated by DM Execution times for most instructions depend on whether they are executed with an ON or an OFF execution condition Exception...

Page 334: ...JMP 1 125 CNT Constant for SV 1 125 R 1 125 IL 1 125 JMP 1 125 DM for SV R 39 0875 IL 1 125 JMP 1 125 For designated words 256 to 511 R 22 0875 IL 1 125 JMP 1 125 SET For IR and SR 23600 to SR 25515...

Page 335: ...0 40 IL 20 20 JMP 17 80 TIMH 15 Interrupt Constant for SV 32 20 R 40 40 IL 39 20 JMP 24 90 Normal cycle 29 40 R 36 30 IL 35 20 JMP 20 80 Interrupt DM for SV 29 80 R 59 80 IL 58 60 JMP 24 90 Normal cyc...

Page 336: ...word 40 10 1 5 Word word word 42 50 DM DM DM 94 10 MUL 32 Constant x word word 56 90 1 5 Word x word word 59 30 DM x DM DM 110 90 DIV 33 Word constant word 56 90 1 5 Word word word 59 10 DM DM DM 110...

Page 337: ...0 1 125 When converting DM to DM 82 20 XFER 70 When transferring 1 word 54 80 1 5 When transferring 1 024 words using DM 2 40 ms When transferring 6 143 words using DM 13 99 ms BSET 71 When setting a...

Page 338: ...When shifting 1 024 DM using DM 1 92 ms When shifting 6 144 DM using DM 11 8 ms TCMP 85 Comparing to words in a designated table 69 10 1 5 Comparing to words in a designated table 71 50 Comparing DM...

Page 339: ...ode 66 DM to DM 114 50 BCNT Constant for SV 69 56 1 5 Default code 67 DM for SV 37 52 ms BCMP Default code 68 Comparing constant to word designated table 105 00 1 5 To a word after comparing with a wo...

Page 340: ...90 AVG Average of an operation 61 40 19 7 Average of 64 operations 223 70 PID When designating a word 83 00 1 5 When designating DM 138 00 XDMR Constant for SV 74 20 1 5 Word for SV 2 32 ms DM for SV...

Page 341: ...g a word to a word 47 00 1 5 When converting DM to DM 81 90 ZCPL When comparing two words 71 90 1 5 When comparing two DM 123 10 SCL Word for SV 98 20 1 5 DM for SV 150 00 HKY When designating a word...

Page 342: ...the I O refresh period in the cycle Once the input bit corresponding to the signal has been turned ON the program will have to be executed once to turn ON the out put bit for the desired output signa...

Page 343: ...I O response time 1 5 20 15 36 5 ms Maximum I O response time 1 5 20 x 2 15 56 5 ms Note In this example the I O refresh time is negligible has not been included in the minimum I O response time 6 4...

Page 344: ...Where m number of Optical I O Units I O Terminals The minimum response time occurs when all signals are processed as soon as they are received Here three scans are required so that the program is exec...

Page 345: ...other PC Refer to Host Link System documentation for further details X Input on 0 Output on 32 Cycle time Input signal Output signal I O refresh I O refresh I O response time CPU reads input signal CP...

Page 346: ...tput Caution Noise may increase I O delays PC Link Conditions The PC Link System used in this example consists of the following No of PCs linked 8 No of LR points linked 128 per PC Maximum PC 8 LR poi...

Page 347: ...7 PC with Unit 0 Buffer in Unit 0 PC Link Unit transmissions Buffer in Unit 7 PC with Unit 7 Input Output PC Link polling time Cycle time Cycle time I O refresh Induction sequence processing time Max...

Page 348: ...f Unit 7 PC Link polling time cycle time of PC of Unit 7 If cycle time of PC of Unit 7 PC Link polling time PC Link polling time The required data from the example System configuration is as follows I...

Page 349: ...immediately 3 The slave executes communications servicing immediately after comple tion of communications Master Input point Input bit CPU processing I O refresh Overseeing communica tions etc Cycle...

Page 350: ...cution has been completed is described next Input Interrupts External interrupt input signal Internal interrupt signal Interrupt subroutine execution t1 t2 t1 ON delay of Interrupt Input Unit t2 Softw...

Page 351: ...lations assume that only one interrupt requires executed at any one time If multiple interrupts are generated at the same time execu tion of all but the first interrupt will go on standby increasing t...

Page 352: ...This will cause the cycle monitoring time to be exceeded and an FALS 9F error will be generated stopping PC operation 2 The maximum interrupt program execution time is contained in SR 262 and SR 263...

Page 353: ...Cancel 351 7 1 4 Hexadecimal BCD Data Modification 352 7 1 5 Hex ASCII Display Change 354 7 1 6 4 digit Hex Decimal Display Change 355 7 1 7 8 digit Hex Decimal Display Change 356 7 1 8 Differentiatio...

Page 354: ...unter num ber is designated the PV of the timer will be displayed and a small box will ap pear if the completion flag of a timer or counter is ON When multiple words are monitored a caret will appear...

Page 355: ...The following examples show various applications of this monitor operation Program Read then Monitor Indicates Completion flag is ON Monitor operation is cancelled 00100 00100READ TIM 000 T000 1234 T...

Page 356: ...1 Note The status of TR bits SR flags SR 25503 to 25507 e g the arithmetic flags cleared when END 01 is executed cannot be monitored Word Monitor 00000 00000 CHANNEL 000 00000 CHANNEL LR 01 cL01 FFFF...

Page 357: ...Set in operation Cancels monitoring of leftmost address Monitor operation is cancelled 7 1 2 Forced Set Reset When the Bit Digit Monitor operation is being performed and a bit timer or counter address...

Page 358: ...I O Table Registration operation is performed This operation can be used in MONITOR mode to check wiring of outputs from the PC prior to actual program execution This operation cannot be used in RUN m...

Page 359: ...goes ON again Timing not done in PROGRAM mode 0010000500 OFF OFF T0000010000500 OFF OFF T0000010000500 0123 OFF OFF T0000010000500 0000 OFF ON T0000010000500 0123 OFF OFF T0000010000500 o0000 ON ON T0...

Page 360: ...be input to change the value SR words cannot be changed If a timer or counter is leftmost on the display the PV will be displayed and will be the value changed See 7 1 13 Changing Timer Counter SV fo...

Page 361: ...Timing Timing PV decrementing Timing Timing 00000 00000 TIM 000 T000 0122 PRES VAL T000 0119 PRES VAL T000 0100 0200 T000 0199 Monitor status of timer PV that will be changed PV changed Timer counter...

Page 362: ...a to AS CII and vice versa Key Sequence Word currently displayed 00000 00000 CH DM 0000 D0000 4412 D0000 AB D0000 4142 Press TR to change the display to ASCII code Press TR again to return the display...

Page 363: ...positive signed data Specifies negative signed data TR cL01D000000001 CFC7 1234R OFF cL01 12345 cL01 53191 cL01 12345 PRES VAL cL01 12345 Monitor the desired word Leftmost word in 3 word monitor TR P...

Page 364: ...94868992 cL02 cL01 0000098304 PRES VAL cL02 0000098304 Monitor the first of the desired words Leftmost word in 3 word monitor TR Press SHIFT and TR to change the display to signed decimal Press NOT to...

Page 365: ...ce Bit monitor in progress L000000108H2315 OFF OFF ON L000000108H2315 U OFF OFF ON L000000108H2315 OFF OFF ON D0002 0123 Monitor the desired bit so that it is leftmost on the screen Press SHIFT and Up...

Page 366: ...he first of the 3 words you want to monitor Press the Up and Down Arrow keys to change word addresses 7 1 10 3 word Data Modification This operation changes the contents of a word during the 3 Word Mo...

Page 367: ...D0002D0001D0000 0001 4567 89AB Input new data 7 1 11 Binary Monitor You can specify that the contents of a monitored word be displayed in binary by pressing SHIFT and MONTR after the word address has...

Page 368: ...010101010100 00000 CHANNEL 001 00000 00000 CHANNEL DM 0000 D0000 FFFF D0000 MONTR 1111111111111111 D0000 FFFF 00000 CHANNEL DM 0000 0000S0100R0110SR Indicates Force Reset in effect Indicates Force Set...

Page 369: ...a 1 can then be entered as the new bit value The bit can also be Force Set or Force Reset by pressing SHIFT and either PLAY SET or REC RESET An S or R will then appear at that bit position Pressing t...

Page 370: ...ncre menting and decrementing the SV is possible only when the SV has been en tered as a constant To use either method first display the address of the timer or counter whose SV is to be changed press...

Page 371: ...o a new constant 00000 00000 TIM 000 00201SRCH TIM 000 00201 TIM DATA 0123 00201 TIM DATA T000 0123 00201 TIM DATA T000 0123 0124 00201 TIM DATA 0124 00201 DATA T000 0123 c 00201 DATA T000 0123 c010 0...

Page 372: ...0 00000 TIM 000 00201SRCH TIM 000 00201 TIM DATA 0123 00201 TIM DATA T000 0123 00201DATA U D T000 0123 0123 00201DATA T000 0123 0122 00201DATA T000 0123 0123 00201DATA T000 0123 0124 00201DATA T000 01...

Page 373: ...laying function code assignments Press CLR to bring up the initial display Press the Up and Down Arrow keys to scroll through the function code assignments The Up Arrow key displays function codes in...

Page 374: ...higher Key Sequence Clear memory when changing allocation CLR FUN CHG 9 7 B 1 D 3 WRITE VER New data PLAY SET 00000 DM CM LAD 00 00 15 2 UMAREA CHG INI DM SIZ 00KW UMAREA SET CHG UMAREA SET CHG 9713...

Page 375: ...e a 0 was input to replace the 8 FUN 7 1 17 Expansion Keyboard Mapping This operation is used to control the ON OFF status of bits SR 27700 through SR 27909 by pressing keys on the Programming Console...

Page 376: ...program Pin 6 of the CPU s DIP switch must be OFF Press the CHG key again to return to CONSOLE mode When the Programming Console is in TERMINAL mode it can perform normal keyboard mapping and display...

Page 377: ...n of Pro gramming Console keys and bits in the SR Area Each key corresponds 1 to 1 with a bit Shifted inputs are not recognized Keys 0 to 15 correspond to bits SR 27700 to SR 27715 keys 16 to 31 corre...

Page 378: ...370 SR word Corresponding key s Bit 277 12 13 14 15 278 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 279 00 01 02 Monitoring Operation and Modifying Data Section 7 1...

Page 379: ...371 SR word Corresponding key s Bit 279 03 04 05 3 06 07 VER 08 09 Monitoring Operation and Modifying Data Section 7 1...

Page 380: ...1 Introduction 374 8 2 Parameters for Host Link and RS 232C Communications 374 8 2 1 Standard Communications Parameters 375 8 2 2 Specific Communications Parameters 376 8 2 3 Wiring Ports 377 8 2 4 Ho...

Page 381: ...on NT link communications 3 One to one link communications and NT link communications are not pos sible through the peripheral port 8 2 Parameters for Host Link and RS 232C Communications The paramete...

Page 382: ...DM 6650 Peripheral port Link words for one to one link 0 LR 00 to LR 63 1 LR 00 to LR 31 2 LR 00 to LR 16 Port settings 00 Standard communication parameters 01 According to setting in DM 6646 and DM...

Page 383: ...en 01 1 7 1 Odd 02 1 7 1 None 03 1 7 2 Even 04 1 7 2 Odd 05 1 7 2 None 06 1 8 1 Even 07 1 8 1 Odd 08 1 8 1 None 09 1 8 2 Even 10 1 8 2 Odd 11 1 8 2 None Setting Baud rate 00 1 200 bps 01 2 400 bps 02...

Page 384: ...more host computers by RS 232C cable and to control PCs through commu nications from the host computer Normally the host computer issues a com mand to a PC and the PC automatically sends back a respo...

Page 385: ...ta to be sent 4 digits BCD 0000 to 0061 3 From the time this instruction is executed until the data transmission is com plete SR 26405 SR 26413 SR 26705 or SR 26713 will remain OFF The bits for the RS...

Page 386: ...20 CLOSE 1 30 CLS 40 OPEN COM E73 AS 1 50 KEYIN 60 INPUT DATA S 70 IF S THEN GOTO 190 80 PRINT SEND DATA S 90 ST S 100 INPUT SEND OK Y or N B 110 IF B Y THEN GOTO 130 ELSE GOTO KEYIN 120 S ST 130 PRI...

Page 387: ...ata to be received are set in DM 6649 or DM 6654 Setting the Start Code End Code and Amount of Reception Data 15 0 Bit End code or number of bytes to be received For end code 00 to FF For amount of re...

Page 388: ...om reading the data received will be stored in the SR Area Check to see that the operation was successfully completed The con tents of these bits will be reset each time RXD is executed RS 232C Periph...

Page 389: ...C200HSs or one C200HS and one CQM1 are linked one to one by con necting them together through their RS 232C ports they can share common LR areas When two PCs are linked one to one one of them will ser...

Page 390: ...R 31 2 LR 00 to LR 16 Port settings 00 Standard communication parameters Communications Procedure If the settings for the master and the slave are made correctly then the one to one link will be autom...

Page 391: ...onnecting the RS 232C port of the C200HS to the NT Link Interface Unit of a Programmable Terminal Note The peripheral port cannot be used for NT links NT Links NT link allow high speed communications...

Page 392: ...te Operations This section describes how to manage both UM Area and IOM data via Memory Cassettes mounted in the CPU 9 1 Memory Cassettes 386 9 2 Memory Cassette Settings and Flags 386 9 3 UM Area Dat...

Page 393: ...n be used for both UM Area data and IOM Area data A memory backup battery is not re quired EPROM 16K words C200HS MP16K Can be written with a commercially available PROM writer Can be used for only UM...

Page 394: ...n Change Vector Area Checksum Error 14 Memory Error Flag Memory Cassette Online Disconnection 15 Memory Error Flag Autoboot Error SR273 00 Save IOM to Cassette Bit Data transferred to Memory Cassette...

Page 395: ...ry Cas sette to the UM Area data in the CPU 1 2 3 1 Make sure that power to the C200HS CPU is turned OFF 2 Mount the Memory Cassette containing the data to be compared 3 Turn on the CPU 4 Switch the C...

Page 396: ...S or a Programming Console The IOM data will be written to the Memory Card and SR 27300 will be turned OFF auto matically Reading Data The following procedures are used to read IOM data from a Memory...

Page 397: ...ware errors that occur during PC operation Program input errors are described in 4 7 Inputting Modifying and Checking the Program Although described in Section 3 Memory Areas flags and other error inf...

Page 398: ...to the same location in the SR area when FALS 07 is executed Executing FALS 07 will stop PC op eration and will cause all outputs from the PC to be turned OFF When FAL 06 is executed with a function n...

Page 399: ...r all peripheral devices CPU WAIT G Waiting for Remote I O None Power to Remote I O Unit is off or terminator cannot be found Check power supply to Remote I O Units connections between Remote I O Unit...

Page 400: ...time is longer than recommended Reduce cycle time if possible I O table verification error I O VER ERR E7 Unit has been removed or replaced by a different kind of Unit making I O table incorrect Use I...

Page 401: ...onger time required Consider effects of longer cycle time before resetting Memory error MEMORY ERR F1 SR 27211 ON A checksum error has occurred in the PC Setup DM 6600 to DM 6655 Check the PC Setup SR...

Page 402: ...lly mounted Check the I O table with I O Table Verification operation and check all Units to see that they are in correct configuration When the system has been confirmed register the I O table again...

Page 403: ...l I O PC Link Host Link Remote I O Master SYSMAC NET Link or SYSMAC Link Unit Error Flag 25503 Instruction Execution Error ER Flag 26400 to 26403 RS 232C Port Error Code 26404 RS 232C Port Communicati...

Page 404: ...15 Group 2 High density I O Unit Error Flags AR 0205 to AR 0214 correspond to I O numbers 0 to 9 0215 Group 2 High density I O Unit was not recognized 0300 to 0315 Optical I O Units 0 to 7 Error Flags...

Page 405: ...g are wrong Correct the areas and transfer the command again 16 Command not supported The specified command does not exist Check the command code 18 Frame length error The maximum frame length was exc...

Page 406: ...ITE WL 411 11 3 10 HR AREA WRITE WH 411 11 3 11 PV WRITE WC 412 11 3 12 TC STATUS WRITE WG 412 11 3 13 DM AREA WRITE WD 413 11 3 14 AR AREA WRITE WJ 413 11 3 15 SV READ 1 R 414 11 3 16 SV READ 2 R 415...

Page 407: ...Not valid Valid Valid AR AREA WRITE 413 R Valid Valid Valid SV READ 1 414 R Valid Valid Valid SV READ 2 415 R Valid Valid Valid SV READ 3 416 W Not valid Valid Valid SV CHANGE 1 417 W Not valid Valid...

Page 408: ...me a frame is transmitted The transmission right is passed from the transmitting Unit to the receiving Unit when either a terminator the code that marks the end of a command or response or a delimiter...

Page 409: ...Node No Identifies the PC communicating with the host computer Specify the node number set for the PC in the PC Setup DM 6648 DM 6653 Header Code Set the 2 character command code Text Set the command...

Page 410: ...sponse Delimiter Text FCS Terminator Frame3 command Host computer PC Precautions for Long Transmissions When dividing commands such as WR WL WC or WD that execute write op erations be careful not to d...

Page 411: ...NEXT I 500 FCSD HEX Q 510 IF LEN FCSD 1 THEN FCSD 0 FCSD FCS result 520 IF FCSD FCSP THEN FCSCK ERR 530 PRINT FCSD FCSD FCSP FCSP FCSCK FCSCK 540 RETURN Note 1 Normal reception data includes the FCS...

Page 412: ...This section explains the commands that can be issued from the host computer to the PC 11 3 1 IR SR AREA READ RR Reads the contents of the specified number of IR and SR words starting from the specif...

Page 413: ...Read data 1 word Header code Node no End code Terminator Read data for number of words read Parameters Read Data Response The contents of the number of words specified by the command are returned in h...

Page 414: ...Completion Flag is ON 11 3 6 DM AREA READ RD Reads the contents of the specified number of DM words starting from the spe cified word Command Format R D FCS x 101 x 100 x 103 x 102 x 101 x 100 x 103...

Page 415: ...x 100 x 103 x 102 x 101 x 100 x 163 x 162 x 161 x 160 Node no Header code Beginning word 0000 to 0511 Write data 1 word Write data for number of words to write Terminator Note Data cannot be written t...

Page 416: ...iting data and the command will not be executed because LR 64 is beyond area boundary 11 3 10 HR AREA WRITE WH Writes data to the HR area starting from the specified word Writing is done word by word...

Page 417: ...the writing operation will not be executed If for exam ple 510 is specified as the beginning word for writing and three words of data are specified then 512 will become the last word for writing data...

Page 418: ...arameters Write Data Command Specify in order the contents of the number of words to be written to the DM area in hexadecimal starting with the specified beginning word Note 1 If data is specified for...

Page 419: ...ay there fore take approximately 10 seconds to produce a response Command Format R FCS x 101 x 100 OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100 Node no Header code Terminator Name TC number 0000 to 0511 Re...

Page 420: ...reading the SV in Name Make this set ting in 4 characters In TC number specify the timer counter number used by the instruction Instruction name Classification TC number OP1 OP2 OP3 OP4 range T I M S...

Page 421: ...of the instruction for reading the SV in Name Make this set ting in 4 characters In TC number specify the timer counter number used by the instruction Instruction name Classification TC number OP1 OP...

Page 422: ...instruction in four characters for changing the SV In TC number specify the timer counter number used for the instruc tion Instruction name Classification TC number OP1 OP2 OP3 OP4 range T I M S TIME...

Page 423: ...OP2 OP3 OP4 word address C I O S IR or SR 0000 to 0511 L R S S LR 0000 to 0063 H R S S HR 0000 to 0099 A R S S AR 0000 to 0027 D M S S DM 0000 to 6655 D M S DM indirect 0000 to 6655 C O N S Constant...

Page 424: ...cify the name in four characters In SV specify either the word address where the SV is stored or the constant SV Operand Classification Constant or d dd OP1 OP2 OP3 OP4 word address C I O S IR or SR 0...

Page 425: ...de 1 Remote I O waiting for power application 7 6 5 4 3 2 1 0 1 0 0 0 x 161 x 160 6 5 1 0 4 0 Bit Bit 32 Kbytes Program area write enable 0 Disabled DIP switch pin 1 is ON 1 Enabled DIP switch pin 1 i...

Page 426: ...D MF Reads and clears errors in the PC Also checks whether previous errors have been cleared Command Format M F x 100 x 101 x 101 x 100 Node no Header code Terminator FCS Error clear Response Format M...

Page 427: ...e 15 14 13 12 11 10 9 8 0 0 0 x 163 x 162 7 6 5 4 x 161 3 2 1 0 x 160 FAL FALS No B CD00 to 99 ON I O verify error Error code F7 ON Cycle time overrun Error code F8 ON I O Unit overflow Error code E1...

Page 428: ...sets a bit in an IR SR LR HR AR or TC area Once a bit has been forced set or reset that status will be retained until FORCED SET RESET CAN CEL KC is transmitted Command Format K R x 100 x 101 x 103 x...

Page 429: ...x 160 Node no Header code Terminator FCS End code Parameters Name Word address Command In Name specify the area i e IR SR LR HR AR or TC that is to be forced set or reset Specify the name in four cha...

Page 430: ...Forced set 08 Forced set reset status cancel Note The item specified under Name must be in four characters Fill any gaps with spaces to make a total of four characters 11 3 27 FORCED SET RESET CANCEL...

Page 431: ...racters 122 characters max Terminator FCS Parameters Characters Command Response For the command this setting specifies any characters other than the carriage return CHR 13 For the response the same c...

Page 432: ...x 101 x 161 x 160 Node no Header code End code Terminator FCS Parameters Program Command Program data up to the maximum memory size 11 3 32 I O TABLE GENERATE MI Corrects the registered I O table to...

Page 433: ...read the information to be read is as shown in the following table The read data is specified in four digits BCD and the data format is specified in two digits BCD Area classification Read data Read a...

Page 434: ...r Counter If PV is specified the sta tus of the Completion Flag is also returned Data break Bit data ON OFF Word data IR SR LR HR AR DM Terminator FCS Parameters Read Data Response Read data is return...

Page 435: ...ITIALIZE command does not use node numbers or FCS and does not receive a response Command Format 11 3 36 Undefined Command IC This response is returned if the header code of a command cannot be decode...

Page 436: ...e wrong Correct the areas and transfer the command again 16 Command not supported The specified command does not exist Check the command code 18 Frame length error The maximum frame length was exceede...

Page 437: ...YSMAC LINK supported C200HS CPU33 E Memory Cassette EPROM Chip 27256 150 ns ROM JD B EPROM Chip 27512 150 ns ROM KD B EEPROM 16K words C200HS ME16K EPROM 16K words C200HS MP16K Expansion I O R k I O P...

Page 438: ...0 5 A 250 VAC C200H OA224 Transistor Output U i 8 pts 1 A 12 to 48 VDC C200H OD411 p Unit 12 pts 0 3 A 24 VDC C200H OD211 16 pts 0 3 A 24 VDC C200H OD2122 8 pts 2 1 A 24 VDC C200H OD213 8 pts 0 8 A 2...

Page 439: ...as 128 point dy namic output unit C200H OD501 DC Input Transistor Output Unit 16 input 16 output pts 12 VDC inputs with high speed input function 0 1 A 12 VDC outputs usable as 128 point dynamic in pu...

Page 440: ...422 line driver C200H CT002 ASCII Unit EEPROM C200H ASC02 I D Sensor Unit Local application electromagnetic coupling C200H IDS01 V1 Remote application microwave transmissions C200H IDS21 Read Write H...

Page 441: ...upply Adapt Required when supplying power from Central P S l For 1 Unit C200H APS01 pp y p er q pp y g p Power Supply For 2 Units C200H APS02 Power Cable Connects Power Supply Adapter and SYS MAC NET...

Page 442: ...sed for on line removal of SYSMAC NET Link Units from the SYSMAC NET Link System SYSMAC NET Optical Link Adapter 3 connectors for APF PCF B700 AL001 SYSMAC BUS SYSMAC WAY Optical Fiber Products Plasti...

Page 443: ...RM001 PV1 C200H RT001 RT002 P C500 RM001 P V1 C500 RT001 RT002 P V1 B500 jjj P Half lock connector for Remote I O Mas ter Remote I O Slave Host Link Unit and Link Adapter S3200 COCH82 Note 1 Optical...

Page 444: ...CAT2002 CAT2702 SYSMAC NET SYSMAC LINK S3200 CAT2001H S3200 CAT2822 SYSMAC BUS S3200 CAT2821 Note 1 The Master Fiber Set is used in combination with the Optical Power Tester to check the optical leve...

Page 445: ...ing Console to a panel C200H ATT01 Programming Console Con ti C bl For Hand held Programming Console 2 m C200H CN222 g g necting Cables 4 m C200H CN422 Data Setting Console Used for data input and pro...

Page 446: ...n the execution condition is OFF 133 SET SET Turns the operand bit ON when the execution condition is ON and does not affect the status of the operand bit when the execution condition is OFF 133 TIM T...

Page 447: ...t to specified result word 205 31 SUB BCD SUBTRACT Subtracts a four digit BCD value and CY from another four digit BCD value and outputs result to the result word 207 32 MUL BCD MULTIPLY Multiplies tw...

Page 448: ...ntents of two different words 162 74 SLD ONE DIGIT SHIFT LEFT Left shifts data between starting and ending words by one digit four bits 156 75 SRD ONE DIGIT SHIFT RIGHT Right shifts data between start...

Page 449: ...is zero and the other is not 157 18 SCAN CYCLE TIME Sets the minimum cycle time 0 to 999 0 s 276 19 MCMP MULTI WORD COMPARE Compares a block of 16 consecutive words to another block of 16 consecutive...

Page 450: ...MUM Finds the maximum value in specified data area and outputs that value to another word 233 MBS SIGNED BINARY MULTIPLY Multiplies the signed binary content of two words and outputs the 8 digit signe...

Page 451: ...The contents of the designated number of words of the fixed expansion DM data are read and output to the destination word on the PC side 290 ZCPL DOUBLE AREA RANGE COMPARE Compares an 8 digit value to...

Page 452: ...form of each instruction is shown differentiated instructions affect flags in exactly the same way The ER CY GR LE and EQ Flags are turned OFF when END 01 is executed so their status cannot be monitor...

Page 453: ...84 Unaffected Unaffected Unaffected 152 TCMP 85 Unaffected Unaffected Unaffected 175 ASC 86 Unaffected Unaffected Unaffected Unaffected 194 SEND 90 291 SBS 91 257 RECV 98 293 MCRO 99 260 Note END 01...

Page 454: ...9 XFRB 62 168 XDMR 290 ZCP 88 Unaffected 176 ZCPL 177 Note 1 SR 25409 will be ON when 7SEG is being executed 2 ADBL NEG NEGL and SBBL also affect the signed binary arithmetic flags Refer to page 451 f...

Page 455: ...452 Instructions SR 25404 OF SR 25405 UF Page END 01 OFF OFF 138 ADB 50 219 SBB 51 221 ADBL 225 SBBL 227 NEG Unaffected 202 NEGL 203 These instructions also affect the ER CY and EQ Flags Refer to the...

Page 456: ...600 bits HR 00 to HR 99 Auxiliary Relay Area 448 buts AR 00 to AR 27 Link Relay Area 1 024 bits LR 00 to LR 63 Timer Counter Area 512 counters timers TC 000 to TC 511 TIM 000 through TIM 015 can be r...

Page 457: ...g level 0 251 00 Remote I O Error Read Bit Writeable 01 and 02 Not used Writeable 03 Remote I O Error Flag 04 to 06 Unit number of Remote I O Unit or Optical I O Unit with error 07 Not used 08 to 15 W...

Page 458: ...stem used for TR bits 256 to 261 00 to 15 Reserved by system 262 00 to 15 Longest interrupt subroutine action execution time 0 1 ms 263 00 to 15 Number of interrupt subroutine action with longest exec...

Page 459: ...ssible by user 11 Transfer Error Flag Transferring SYSMAC NET data link table on UM during active data link Data will not be transferred from UM to the Memory Cassette if an error occurs except for Bo...

Page 460: ...pecial I O Unit 1 Restart Flag g g p g These flags will not turn ON for Units on Slave Racks 02 Special I O Unit 2 Restart Flag 03 Special I O Unit 3 Restart Flag 04 Special I O Unit 4 Restart Flag 05...

Page 461: ...3 06 00 to 15 Error Flags for Optical I O Units 24 to 31 07 00 to 03 Data Link setting for operating level 0 of SYSMAC LINK System 04 to 07 Data Link setting for operating level 1 of SYSMAC LINK Syste...

Page 462: ...15 CPU mounting Device Mounted Flag 25 00 to 11 Reserved by system 12 Trace End Flag 13 Tracing Flag 14 Trace Trigger Bit writeable 15 Trace Start Bit writeable 26 00 to 15 Maximum Cycle Time 0 1 ms...

Page 463: ...the PC the next time operation is started DM 6615 00 to 15 Reserved DM 6616 00 to 07 Servicing time for RS 232C port effective when bits 08 to 15 are set to 01 00 to 99 BCD Percentage of cycle time u...

Page 464: ...Scheduled interrupt time unit enable 00 Disable 10 ms 01 Enable DM 6623 to DM 6644 00 to 15 Reserved RS 232C Port Settings DM 6645 to DM 6649 The following settings are effective after transfer to the...

Page 465: ...p bits 9 600 bps 01 Settings in DM 6651 Standard 08 to 11 Reserved 12 to 15 Communications mode 0 Host link 1 RS 232C Host Link DM 6651 00 to 07 Baud rate 00 1 2K 01 2 4K 02 4 8K 03 9 6K 04 19 2K 1 2...

Page 466: ...e following settings are effective after transfer to the PC DM 6655 00 to 03 Interrupt programming error enable 0 Detect interrupt programming errors 1 Do not detect Detect 04 to 07 Multiple action ex...

Page 467: ...Assignment Recording Sheets This appendix contains sheets that can be copied by the programmer to record I O bit allocations and terminal assignments as well as details of work bits data storage areas...

Page 468: ...06 07 08 09 10 11 12 13 14 15 Word Unit Bit Field device Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Word Unit Bit Field device Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Word Un...

Page 469: ...3 04 05 06 07 08 09 10 11 12 13 14 15 Area Word Bit Usage Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Area Word Bit Usage Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Area Word Bit...

Page 470: ...468 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage...

Page 471: ...469 Programmer Program Date Page TC address T or C Set value Notes TC address T or C Set value Notes Timers and Counters...

Page 472: ...designed for flexibility allowing the user to input all required addresses and instructions When coding programs be sure to specify all function codes for instructions and data areas or for constant...

Page 473: ...472 Programmer Program Date Page Address Instruction Operand s Address Instruction Operand s Address Instruction Operand s Program Coding Sheet...

Page 474: ...1010 11 00010001 0B 00001011 12 00010010 0C 00001100 13 00010011 0D 00001101 14 00010100 0E 00001110 15 00010101 0F 00001111 16 00010110 10 00010000 17 00010111 11 00010001 18 00011000 12 00010010 19...

Page 475: ...5 4 3 2 1 0 1 2 3 4 5 32767 32768 32769 2147483647 2147483648 7FFF 7FFE 0005 0004 0003 0002 0001 0000 FFFF FFFE FFFD FFFC FFFB 8001 8000 7FFFFFFF 7FFFFFFE 00008000 00007FFF 00007FFE 00000005 00000004...

Page 476: ...1 A Q a q 1 A Q a q 0010 2 STX DC2 2 B R b r 2 B R b r 0011 3 ETX DC3 3 C S c s 3 C S c s 0100 4 EOT DC4 4 D T d t 4 D T d t 0101 5 ENQ NAK 5 E U e u 5 E U e u 0110 6 ACK SYN 6 F V f v 6 F V f v 0111...

Page 477: ...unted to form a Rack Backplanes provide a se ries of connectors for these Units along with wiring to connect them to the CPU Backplanes also provide connectors used to connect them to other Backplanes...

Page 478: ...i ous clock pulse bits are available with different pulse widths and therefore differ ent frequencies common data Data that is stored in the LR Area of a PC and which is shared by other PCs in the sam...

Page 479: ...at the highest address in the data area is not exceeded data sharing An aspect of PC Link Systems and of Data Links in Net Link Systems in which common data areas or common data words are created betw...

Page 480: ...c code generated to indicate that an error exists and something about the nature of the error Some error codes are generated by the system others are defined in the program by the operator exclusive O...

Page 481: ...programming device Bits are usu ally turned ON as a result of program execution function code A two digit number used to input an instruction into the PC hardware error An error originating in the har...

Page 482: ...y used to refer to blocks of instructions called logic blocks that require logic block instructions to relate them to other instructions or logic blocks instruction execution time The time required to...

Page 483: ...located to each Unit in the PC System The I O table can be created by or modified from a Programming Device I O Unit The most basic type of Unit mounted to a backplane to create a Rack I O Units inclu...

Page 484: ...Link Units load The processes of copying data either from an external device or from a storage area to an active portion of the system such as a display buffer Also an output device connected to the P...

Page 485: ...facing computers and other periph eral devices PCs in the Net Link System can pass data back and forth receive commands from any interfaced computer and share any interfaced peripheral device Net Link...

Page 486: ...e on line removal Removing a Rack mounted Unit for replacement or maintenance during PC op eration operand Bit s or word s designated as the data to be used for an instruction An operand can be input...

Page 487: ...he PCs writes to certain words in the LR area and receives the data of the words written by all other PC Link Units con nected in series with it PC Link Unit The Unit used to connect PCs in a PC Link...

Page 488: ...M mode A mode of operation that allows inputting and debugging of programs to be car ried out but that does not permit normal execution of the program PROM Writer A peripheral device used to write pro...

Page 489: ...at a specific time or program location specified by the operator Scheduled interrupts result in the ex ecution of specific subroutines that can be used for instructions that must be ex ecuted repeated...

Page 490: ...in which a program is written Syntax errors can include spelling mistakes i e a function code that does not exist mistakes in specify ing operands within acceptable parameters e g specifying reserved...

Page 491: ...products end with the word Unit not all do e g a Remote Terminal is referred to in a collective sense as a Unit Context generally makes any limitations of this word clear unit number A number assigne...

Page 492: ...Glossary 492 served for work words Parts of other areas not required for special purposes may also be used as work words e g LR words not used in a PC Link or Net Link System...

Page 493: ...controlled system definition 3 counters bits in TC area 60 changing SV 362 conditions when reset 146 149 creating extended timers 147 extended 147 inputting SV 94 Power OFF 54 reversible counters 148...

Page 494: ...operating errors 395 flag AR and SR area error flags 397 arithmetic 44 programming example 171 174 178 CPU mounting Device Mounted 54 CY clearing 206 setting 206 Cycle Time Error 43 definition 27 Firs...

Page 495: ...3 input point definition 3 input signal definition 3 instruction set 443 7SEG 302 ADB 50 220 ADD 30 206 ADDL 54 207 AND 68 129 combining with OR 69 AND LD 71 130 combining with OR LD 73 use in logic b...

Page 496: ...09 267 SRCH 290 291 SRD 75 156 STC 40 206 STEP 08 267 SUB 31 208 SUBL 55 210 SUM 238 TCMP 85 176 TERM 48 78 281 terminology 64 TIM 139 TIMH 15 143 TKY 312 TRSM 45 278 TTIM 87 144 TXD 300 WDT 94 282 WS...

Page 497: ...n definition 66 NOT definition 66 O one to one link wiring 382 one to one link communications I O response timing 339 operand bit 66 operands 118 allowable designations 118 requirements 118 operating...

Page 498: ...tep flag 44 step instructions 267 276 subroutine number 260 subroutines 254 266 SV accessing via TC area 60 changing 362 CNTR 12 149 timers and counters 139 switches DIP See DIP switch SYSMAC LINK loo...

Page 499: ...SR 265 Page 34 New information added to SR Area table Page 48 First table under 3 5 AR Auxiliary Relay Area replaced AR Area Flags and Control Bits table corrected Page 51 3 5 4 SYSMAC LINK System Dat...

Page 500: ...m graph Page 242 Step response corrected to Ramp response for the top graph Second graph corrected Page 249 DM 6618 corrected to DM 6622 in the diagram for Scheduled Interrupts Page 250 SYSMAC LINK SY...

Page 501: ...corrected in application example Page 405 Top graphic corrected and frame 2 changed to frame 3 in second graphic Page 461 Default added for DM 6610 and DM 6618 Page 462 Settings for DM 6620 bits 00 to...

Page 502: ...the U S A OMRON ELECTRONICS LLC 1 Commerce Drive Schaumburg IL 60173 847 843 7900 For US technical support or other inquiries 800 556 6766 OMRON CANADA INC 885 Milner Avenue Toronto Ontario M1B 5V8 41...

Page 503: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Omron C200H ATTA3...

Reviews: