Manuale d’uso / di manutenzione del prodotto C200HS del fabbricante Omron
Vai alla pagina of 504
Cat. No. W235-E1-5 Programmable Controllers SYSMAC C200HS.
C200HS Programmable Controllers Operation Manual Revised February 2002.
! ! ! ii Notice: OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual. The following conventions are used to indicate and classify precautions in this manual.
iii About this Manual: This manual describes the operation of the C200HS C-series Programmable Controllers, and it includes the sections described below . Installation information is provided in the C200HS Programmable Control- ler Installation Guide .
v T ABLE OF CONTENTS PRECAUTIONS xiii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Intended Audience xiv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
T able of contents vi 3-4-10 I/O V erification Error Flag 43 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4-1 1 First Cycle Flag 43 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4-12 Clock Pulse Bits 43 .
T able of contents vii 4-5-1 The Keyboard 78 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5-2 PC Modes 80 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5-3 The Display Message Switch 80 .
T able of contents viii 5-15 Data Shifting 150 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15-1 SHIFT REGISTER – SFT(10) 150 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
T able of contents ix 5-19-1 1 BCD DIVIDE – DIV(33) 212 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19-12 DOUBLE BCD DIVIDE – DIVL(57) 213 . . . . . . . . . . . . . . . . . . . . . . . . . 5-19-13 FLOA TING POINT DIVIDE – FDIV(79) 214 .
T able of contents x 5-28 Advanced I/O Instructions 301 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-28-1 7-SEGMENT DISPLA Y OUTPUT – 7SEG(––) 301 . . . . . . . . . . . . . . . . . 5-28-2 DIGIT AL SWITCH INPUT – DSW(––) 304 .
T able of contents xi SECTION 10 – T roubleshooting 391 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-1 Alarm Indicators 392 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
T able of contents xii Appendix 433 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A – Standard Models 433 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xiii PRECAUTIONS This section provides general precautions for using the Programmable Controller (PC) and related devices. The information contained in this section is important for the safe and reliable application of the PC. Y ou must r ead this section and understand the information contained before attempting to set up or operate a PC system.
! ! ! xiv 1 Intended Audience This manual is intended for the following personnel, who must also have knowl- edge of electrical systems (an electrical engineer or the equivalent). • Personnel in charge of installing F A systems. • Personnel in charge of designing F A systems.
! ! ! ! xv Caution Th e operating environment of the PC System can have a large effect on the lon- gevity and reliability of the system. Improper operating environments can lead to malfunction, failure, and other unforeseeable problems with the PC System.
xvi 6 Conformance to EC Directives Observe the following precautions when installing the C200HS-CPU01-EC and C200HS-CPU21-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.
1 SECTION 1 Intr oduction This section gives a brief overview of the history of Programmable Controllers and explains terms commonly used in ladder - diagram programming. It also provides an overview of the process of programming and operating a PC and explains basic terminology used with OMRON PCs.
2 1-1 Overview A PC (Programmable Controller) is basically a CPU (Central Processing Unit) containing a program and connected to input and output (I/O) devices. The pro- gram controls the PC so that when an input signal from an input device turns ON, the appropriate response is made.
3 1-3 PC T erminology Although also provided in the Glossary at the back of this manual, the following terms are crucial to understanding PC operation and are thus explained here. PC Because the C200HS is a Rack PC, there is no one product that is a C200HS PC.
4 High-density I/O Units are designed to provide high-density I/O capability and include Group 2 High-density I/O Units and Special I/O High-density I/O Units.
5 Input/Output Requirements The first thing that must be assessed is the number of input and output points that the controlled system will require. This is done by identifying each device that is to send an input signal to the PC or which is to receive an output signal from the PC.
6 Name Contents Cat. No. SYSMAC Support Software Operation Manuals W247/W248 Programming procedures for using the SSS Data Access Console Operation Guide W173 Data area monitoring and data modificatio.
7 1-8-1 Improved Memory Capabilities Internal Memory (UM) Th e C200HS CPUs come equipped with 16 KW of RAM in the PC itself, so a very large memory capacity is available without purchasing a separate Memory Unit. Furthermore, the Ladder Program Area has been increased to 15.
8 I/O Refreshing Time Th e I/O refreshing time has been reduced for all units, as shown in the following table. I/O Unit Time Required for Refreshing Standard I/O Units ! @ 3 of the C200H I/O refreshi.
9 TRSM(45) TRACE MEMOR Y SAMPLE MCRO(99) MACRO MAX(--) FIND MAXIMUM MIN(--) FIND MINIMUM SUM(--) SUM SRCH(--) DA T A SEARCH FPD(--) F AILURE POINT DETECTION PID(--) PID CONTROL HEX(--) ASCII T O HEX X.
10 1-8-7 Built-in RS-232C Connector Host link communications are possible using the RS-232C connector built into the C200HS-CPU21-E/CPU23-E/CPU31-E/CPU33-E CPU. By using the TXD and RXD instructions, RS-232C communications is possible without using time- consuming procedures.
11 I/O Comments Stored in PC By allocating a part of UM as the I/O Comment area, it is no longer necessary to read I/O Comments from a Peripheral Device’ s floppy disk. If the Peripheral De- vice is connected to the C200HS online, the ladder diagram can be viewed with I/O comments.
12 7. T ransfer the program and and any other require data to the C200HS. Y ou will probably want to transfer DM data and the I/O table, if you have created an I/O table for the C200H. 8. T urn the C200HS off and then back on to reset it. 9. T est program execution before attempting actual operation.
13 10. T urn the C200HS off and then back on to reset it and transfer data from the Memory Cassette to the CPU. 1 1. T est program execution before attempting actual operation.
15 SECTION 2 Hardware Considerations This section provides information on hardware aspects of the C200HS that are relevant to programming and software opera- tion. These include CPU Components, basic PC configuration, CPU capabilities, and Memory Cassettes.
! 16 2-1 CPU Components There are two groups of CPUs available, one that uses an AC power supply , and on e that uses a DC power supply . Select one of the models shown below accord- ing to requirements of your control system.
17 C200HS-CPU21-E/CPU23-E/CPU31-E/CPU33-E Memory Casette compartment Bus connector: Available only with the CPU31-E and CPU33-E. Use this connector when SYSMAC NET Link Unit or SYSMAC LINK Unit is used. RS-232C connector Cable connector for peripheral devices Battery/Switch compartment Power fuse (MF51NR, 5.
18 2-1-2 Peripheral Device Connection A Programming Console or IBM PC/A T running LSS can be used to program and monitor the C200HS PCs. Programming Console A C200H-PR027-E or CQM1-PRO01-E Programming Console can be con- nected as shown in the following diagram.
19 Expansion I/O Racks An Expansion I/O Rack can be thought of as an extension of the PC because it provides additional slots to which other Units can be mounted. It is built onto an Expansion I/O Backplane to which a Power Supply and up to ten other Units are mounted.
20 C200HS Function C200HS CPU01-E CPU21-E CPU31-E CPU03-E CPU23-E CPU33-E Built-in clock/calendar Ye s Error log Ye s 1 Data T race Ye s Differential Monitor Ye s Expansion DM 3K words max.
! 21 C200HS-MP j 16K (EPROM) The program is written using a PROM Writer . The ROM is mounted to the Memory Casette and then installed in the CPU. I/O data cannot be stored. Notch 2-5 Installing Memory Cassettes An optional Memory Cassette can be installed in the C200HS.
22 3. Remove the bracket from the Memory Cassette, as shown in the illustration below . Metal bracket 4. Check that the 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.
23 2 - 6 CPU DIP Switch The DIP switch on C200HS CPUs is located between the Memory Cassette compartment and battery . The 6 pins on the DIP switch control 6 of the CPU’s operating parameters. Pin no. Item Setting Function 1 Memory protect ON Program Memory and read-only DM (DM 6144 to DM 6655) data cannot be overwritten from a Peripheral Device.
25 SECTION 3 Memory Ar eas V arious types of data are required to achieve effective and correct control. T o facilitate managing this data, the PC is provided with various memory areas for data, each of which performs a dif ferent function. The areas generally accessible by the user for use in programming are classified as data areas .
26 3-1 Introduction Details, including the name, size, and range of each area are summarized in the following table. Data and memory areas are normally referred to by their acro- nyms, e.
27 Work Bits and W ords When some bits and words in certain data areas are not being used for their in - tended purpose, they can be used in programming as required to control other bits. Words and bits available for use in this fashion are called work words and work bits.
28 Th e same TC number can be used to designate either the present value (PV) of th e timer or counter , or a bit that functions as the Completion Flag for the timer or counter .
29 Decimal Points Decimal points are used in timers only . The least significant digit represents tenths of a second. All arithmetic instructions operate on integers only . Signed and Unsigned Binary Data This section explains signed and unsigned binary data formats.
30 The following table shows the corresponding decimal, 16-bit hexadecimal, and 32-bit hexadecimal values. Decimal 16-bit Hex 32-bit Hex 2147483647 2147483646 . . . 32768 32767 32766 . . . 2 1 0 –1 –2 . . . –32767 –32768 –32769 . . . –2147483647 –2147483648 ––– ––– .
31 3-3 IR (Internal Relay) Area T he IR area is used both as data to control I/O points, and as work bits to manipu- late and store data internally . It is accessible both by bit and by word. In the C200HS PC, the IR area is comprised of words 000 to 235 and 298 to 51 1.
32 Up to ten Special I/O Units may be mounted in any slot of the CPU Rack or Ex- pansion I/O Racks. Up to five Slave Racks may be used, whether one or two Masters are used. IR area words are allocated to Special I/O Units and Slave Racks by the unit number on the Unit, as shown in the following tables.
33 Group-2 High-density I/O Units and B7A Interface Units are allocated words be- tween IR 030 and IR 049 according to I/O number settings made on them and do no t use the words allocated to the slots in which they are mounted. For 32-point Units, each Unit is allocated two words; for 64-point Units, each Unit is allocated four words.
34 Note all SR words and bits are writeable by the user . Be sure to check the func- tion of a bit or word before attempting to use it in programming. Word(s) Bit(s) Function 236 00 to 07 Node loop st.
35 Word(s) Function Bit(s) 254 00 1-minute clock pulse bit 01 0.02-second clock pulse bit 02 and 03 Reserved for function expansion. Do not use. 04 Overflow Flag (for signed binary calculations) 05 Un.
36 Word(s) Function Bit(s) 267 00 to 04 Reserved by system (not accessible by user) 05 Host Link Level 0 Send Ready Flag 06 to 12 Reserved by system (not accessible by user) 13 Host Link Level 1 Send .
37 Word(s) Function Bit(s) 273 00 Save IOM to Cassette Bit Data transferred to Memory Cassette when Bit is turned ON in PROGRAM mode. Bit will automaticall y turn OFF . 01 Load IOM from Cassette Bit ON in PROGRAM mode . Bit will automatically turn OFF .
38 SYSMAC LINK Code Item Meaning 00 Normal end Processing ended normally . 01 Parameter error Parameters for network communication instruction is not within acceptable ranges. 02 Unable to send Unit reset during command processing or local node in not in network.
39 SYSMAC NET Operating ll 0 Operating ll 1 Bit (Node numbers below) pg level 0 pg level 1 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 S R 2 3 8 S R 2 4 2 8765432187654321 SR 239 SR 243 16 15 14 1.
40 Host Link Systems Both Error flags and Restart bits are provided for Host Link Systems. Error flags turn ON t o indicate errors in Host Link Units. Restart bits are turned ON and then OF F to restart a Host Link Unit. SR bits used with Host Link Systems are summa- rized in the following table.
41 Flag type Bit no. SR 247 SR 248 SR 249 SR 250 Run flags 00 Unit #8, level 1 Unit #0, level 1 Unit #8, level 0 Unit #0, level 0 01 Unit #9, level 1 Unit #1, level 1 Unit #9, level 0 Unit #1, level 0.
42 The status of SR 2521 1 and thus the status of force-set and force-reset bits can be maintained when power is turned off and on by enabling the Forced Status Hold Bit in the PC Setup. If the Forced Status Hold Bit is enabled, the status of SR 2521 1 will be preserved when power is turned off and on.
43 This bit can be programmed to activate an external warning for a low battery volt- age. The operation of the battery alarm can be disabled in the PC Setup if desired. Refer to 3-6-4 PC Setup for details. 3-4-9 Cycle Time Error Flag SR bit 25309 turns ON if the cycle time exceeds 100 ms.
! 44 3-4-13 Step Flag SR bit 25407 turns ON for one cycle when step execution is started with the STEP(08) instruction. 3-4-14 Group-2 Error Flag SR bit 25414 turns ON for any of the following errors .
45 Overflow Flag, OF SR bit 25404 turns ON when the result of a binary addition or subtraction ex- ceeds 7FFF or 7FFFFFFF . Underflow Flag, UF S R bit 25405 turns ON when the result of a signed binary addition or subtraction exceeds 8000 or 80000000.
46 3-4-20 Peripheral Port Communications Areas Peripheral Port Error Code SR bits 26408 to 2641 1 are set when there is a peripheral port error in the Gener- al I/O Mode.
47 SR bit 27002 turns ON when data is verified between DM and a Memory Cas- sette. SR bit 27003 turns OFF when the contents of the verification coincide and turns ON when the contents of the verification do not coincide.
48 Save IOM to Cassette Bit SR bit 27300 turns ON when IOM is saved to a Memory Cassette. Load IOM from Cassette Bit SR bit 27301 turns ON when loading to IOM from a Memory Cassette. 3-4-26 T ransfer Error Flags Data will not be transferred from IOM to the Memory Cassette if an error occurs (except for Read Only Error).
49 Word(s) Function Bit(s) 01 00 to 09 Restart Bits for Special I/O Units 0 to 9 (also function as Restart Bits for PC Link Units) 10 Restart Bit for operating level 1 of SYSMAC LINK or SYSMAC NET Link System 11 Restart Bit for operating level 0 of SYSMAC LINK or SYSMAC NET Link System 12, 13 Not used.
50 Word(s) Function Bit(s) 24 00 to 04 Reserved by system. 05 Cycle T ime Flag 06 SYSMAC LINK System Network Parameter Flag for operating level 1 07 SYSMAC LINK System Network Parameter Flag for operating level 0 08 SYSMAC/SYSMAC NET Link Unit Level 1 Mounted Flag 09 SYSMAC/SYSMAC NET Link Unit Level 0 Mounted Flag 10 Reserved by system.
51 number , 0 through 31, and a letter , L or H. Bits are allocated as shown in the fol- lowing table. Bits AR03 allocation AR04 allocation AR05 allocation AR06 allocation 00 0 L 8 L 16 L 24 L 01 0 H .
52 AR 0714 (Error History Reset Bit) is turned ON and then OFF by the user to reset the Error Record Pointer (DM 0969) and thus restart recording error records at the beginning of the history area. AR 0715 (Error History Enable Bit) is turned ON by the user to enable error histo- ry storage and turned OFF to disable error history storage.
53 30-second Compensation Bit AR 21 13 is turned ON to round the seconds of the Calendar/clock Area to zero, i.e., if the seconds is 29 or less, it is merely set to 00; if the seconds is 30 or great- er , the minutes is incremented by 1 and the seconds is set to 00.
54 3-5-1 1 Power OFF Counter AR 23 provides in 4-digit BCD the number of times that the PC power has been turned off. This counter can be reset as necessary using the PV Change 1 op- eration from the Programming Console. (Refer to 7-1-4 Hexadecimal/BCD Data Modification for details.
55 3-6 DM (Data Memory) Area The DM area is divided into various parts as described in the following table. A portion of U M (up to 3,000 words in 1,000-word increments) can be allocated as Expansion DM. Addresses User read/write Usage DM 0000 to DM 0999 Read/W rite Normal DM.
56 3-6-1 Expansion DM Area The expansion DM area is designed to provide memory space for storing oper- ating parameters and other operating data for Link Units and Special I/O Units. Up to 3,000 words of UM can be allocated as Expansion DM (in 1K-word incre- ments) using the UM ALLOCA TION operation in the Programming Console or LSS.
57 whether DM 1000 to DM 1999 or DM 7000 to 7999 will be used. Refer to 3-6-4 PC Setup for details. Unit Addresses 0 DM 1000 to DM 1099 or DM 7000 to DM 7099 1 DM 1 100 to DM 1 199 or DM 7100 to DM 71.
58 The following table lists the possible error codes and corresponding errors. Error severity Error code Error Fatal errors 00 Power Interruption 01 to 99 System error (F ALS) 9F Cycle time error C0 .
59 The PC Setup is allocated to DM 6600 through DM 6655. Parameter Default Settings Remarks ST ARTUP MODE ST ARTUP MODE Programming Console mode selector Programming Console mode selector , previous mode (i.
60 3-7 HR (Holding Relay) Area The HR area is used to store/manipulate various kinds of data and can be ac- cessed either by word or b y bit. W ord addresses range from HR 00 through HR 99; bit addresses, from HR 0000 through HR 9915. HR bits can be used in any order required and can be programmed as often as required.
61 3-9 LR (Link Relay) Area The LR area is used as a common data area to transfer information between PCs. This data transfer is achieved through a PC Link System. Certain words will be allocated as the write words of each PC. These words are written by the PC and automatically transferred to the same LR words in the other PCs in the System.
63 SECTION 4 W riting and Inputting the Pr ogram This section explains the basic steps and concepts involved in writing a basic ladder diagram program, inputting the program into memory , and executing it. It introduces the instructions that are used to build the basic structure of the ladder diagram and control its execution.
64 4-1 Basic Procedure There are several basic steps involved in writing a program. Sheets that can be copied to aid in programming are provided in Appendix F Word Assignment Re- cording Sheets and Appendix G Program Coding Sheet .
65 4-3 Program Capacity The maximum user program size varies with the amount of UM allocated to ex- pansion DM and the I/O Comment Area. Approximately 10.1 KW are available fo r the ladder program when 3 KW are allocated to expansion DM and 2 KW are allocated to I/O comments as shown below .
66 4-4-1 Basic T erms Each condition in a ladder diagram is either ON or OFF depending on the status of the operand bit that has been assigned to it. A normally open condition is ON if th e operand bit is ON; OFF if the operand bit is OFF . A normally closed condition is ON if the operand bit is OFF; OFF if the operand bit is ON.
67 Program Memory addresses start at 00000 and run until the capacity of Program Memory has been exhausted. The first word at each address defines the instruc- tion.
68 LOAD and LOAD NOT The first condition that starts any logic block within a ladder diagram corre- sponds to a LOAD or LOAD NOT instruction. Each of these instruction requires one line of mnemonic code.
69 OR and OR NOT When two or more conditions lie on separate instruction lines which run in paral- lel and then join together , the first condition corresponds to a LOAD or LOAD NO T instruction; the other conditions correspond to OR or OR NOT instructions.
70 4-4-4 OUTPUT and OUTPUT NOT The simplest way to output the results of combining execution conditions is to output it directly with the OUTPUT and OUTPUT NOT . These instructions are used to control the status of the designated operand bit according to the execu- tion condition.
71 Now you have all of the instructions required to write simple input-output pro- grams. Before we finish with ladder diagram basic and go onto inputting the pro- gram into the PC, let’ s look at logic block instruction (AND LOAD and OR LOAD), which are sometimes necessary even with simple diagrams.
72 Analyzing the above ladder diagram in terms of mnemonic instructions, the con- dition for IR 00000 is a LOAD instruction and the condition below it is an OR in- struction between the status of IR 00000 and that of IR 00001. The condition at IR 00002 is another LOAD instruction and the condition below is an OR NOT instruction, i.
73 The following diagram requires AND LOAD to be converted to mnemonic code because three pairs of parallel conditions lie in series. The two options for coding the programs are also shown.
74 The following diagram contains only two logic blocks as shown. It is not neces- sary to further separate block b components, because it can be coded directly using only AND and OR.
75 When working with complicated diagrams, blocks will ultimately be coded start- ing at the top left and moving down before moving across. This will generally mean that, when there might be a choice, OR LOAD will be coded before AND LOAD.
76 Th e following diagram requires an OR LOAD followed by an AND LOAD to code th e top of the three blocks, and then two more OR LOADs to complete the mne- monic code.
77 Again, this diagram can be redrawn as follows to simplify program structure and coding and to save memory space. 00006 00007 LR 0000 00005 00001 00002 00003 00004 00000 Address Instruction Operands.
78 4-4-7 Coding Multiple Right-hand Instructions If there is more than one right-hand instruction executed with the same execu- tion condition, they are coded consecutively following the last condition on the instruction line. In the following example, the last instruction line contains one more condition that corresponds to an AND with IR 00004.
79 Except for the SHIFT key on the upper right, the gray keys are used to input in- structions and designate data area prefixes when inputting or changing a pro- gram. The SHIFT key is similar to the shift key of a typewriter , and is used to alter the function of the next key pressed.
! ! 80 4-5-2 PC Modes T he Programming Console is equipped with a switch to control the PC mode. T o select one of the three operating modes—RUN, MONITOR, or PROGRAM— use the mode switch. The mode that you select will determine PC operation as well as the procedures that are possible from the Programming Console.
81 4. Confirm that the CPU’ s POWER LED is lit and the following display appears on the Programming Console screen. (If the ALM/ERR LED is lit or flashing or an error message is displayed, clear the error that has occurred.) <PROGRAM> P ASSWORD! 5.
82 4-6-3 Clearing Memory Using the Memory Clear operation it is possible to clear all or part of the UM area (RAM or EEPROM), and the IR, HR, AR, DM and TC areas. Unless otherwise specified, the clear operation will clear all of the above memory areas.
83 The following procedure is used to clear memory completely . Continue pressing the CLR key once for each error message until “00000” appears on the display All clear MEMOR Y ERR I/O VER ERR 000.
84 T o leave the TC area uncleared and retain Program Memory addresses 00000 through 00122, input as follows: 00000 00000 00000 00000MEMOR Y CLR? HR CNT DM 00000MEMOR Y CLR? HR DM 00123MEMOR Y CLR? HR DM 00000MEMOR Y CLR END HR DM Memory Clear The memory clear operation clears all memory areas except the I/O comments and UM Allocation information.
85 It is necessary to register the I/O table if I/O Units are changed, otherwise an I/O verification error message, “I/O VER ERR” or “I/O SET ERROR”, will appear when starting programming operations.
86 4-6-6 V erifying the I/O T able The I/O T able V erification operation is used to check the I/O table registered in memory to see if it matches the actual sequence of I/O Units mounted. The first inconsistency discovered will be displayed as shown below .
87 4-6-7 Reading the I/O T able The I/O T able Read operation is used to access the I/O table that is currently registered in the CPU memory . This operation can be performed in any PC mode. Key Sequence [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.
88 Meaning of Displays I/O Unit Designations for Displays (see I/O Units Mounted in Remote Slave Racks , page 89) No. of points 16 32 64 Input Unit Output Unit C500, 1000H/C2000H I/O Units No.
89 I/O word number I/O type: I, O i, o (see tables on previous page) Unit number (0 to 9) Remote I/O Slave Unit number (0 to 4) Remote I/O Master Unit number (0 or 1) Indicates a Remote I/O Rack 00000.
90 Key Sequence 00000 00000 FUN (??) 00000IOTBL ?-?U= 00000IOTBL CANC ???? 00000IOTBL CANC 9713 00000IOTBL CANC OK 00000IOTBL WRIT ???? 4-6-9 SYSMAC NET Link T able T ransfer (CPU31/33-E Only) The SYSMAC NET Link T able T ransfer operation transfers a copy of the SYS- MAC NET Link Data Link table to RAM or EEPROM program memory .
91 Key Sequence 00000LINK 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.
92 4-7 Inputting, Modifying, and Checking the Program Once a program is written in mnemonic code, it can be input directly into the PC from a Programming Console.
93 If the following mnemonic code has already been input into Program Memory , the key inputs below would produce the displays shown. 00000 00200 00200READ OFF LD 00000 00201READ ON AND 00001 00202REA.
! 94 The SV (set value) for a timer or counter is generally entered as a constant, al- though inputting the address of a word that holds the SV is also possible. When inputting an SV as a constant, CONT/# is not required; just input the numeric value and press WRITE.
95 Example The following program can be entered using the key inputs shown below . Dis- plays will appear as indicated. 00000 00200 00200 LD 00002 00201READ NOP (00) 00201 TIM 000 00201 TIM DA T A #00.
96 Error Messages The following error messages may appear when inputting a program. Correct th e error as indicated and continue with the input operation. The asterisks in the displays shown below will be replaced with numeric data, normally an address, in the actual display .
97 Many of the following errors are for instructions that have not yet been described yet. Refer to 4-8 Controlling Bit Status or to Section 5 Instruction Set for details on these. T ype Message Meaning and appropriate response T ype A ????? The program has been lost.
98 Example Th e following example shows some of the displays that can appear as a result of a program check. Display #2 Display #3 Halts program check Check continues until END(01) When errors are found Display #1 00699CHK ABOR TD 02000PROG CHK END (01)(02.
99 4-7-5 Program Searches The program can be searched for occurrences of any designated instruction or data area address used in an instruction. Searches can be performed from any currently displayed address or from a cleared display .
100 00000 00000 LD 00000 00200SRCH LD 00000 00202 LD 00000 02000SRCH END (01)(02.7KW) 00000 00100 00100 TIM 001 00203SRCH TIM 001 00203 TIM DA T A #0123 00000 00000CONT SRCH CONT 00005 00200CONT SRCH LD 00005 00203CONT SRCH AND 00005 02000 END (01)(02.
! 101 T o delete an instruction, display the instruction word of the instruction to be de- leted and then press DEL and the up key . All the words for the designated in- struction will be deleted. Caution Be careful not to inadvertently delete instructions; there is no way to recover them without reinput- ting them completely .
102 Find the address prior to the inser- tion point Insert the instruction Program After Insertion Inserting an Instruction 00000 00000 OUT 00000 00000 OUT 00201 00207SRCH OUT 00201 00206READ AND NOT .
103 4-7-7 Branching Instruction Lines When an instruction line branches into two or more lines, it is sometimes neces- sary to use either interlocks or TR bits to maintain the execution condition that existed at a branching point.
104 Th e previous diagram B can be written as shown below to ensure correct execu- tion. In mnemonic code, the execution condition is stored at the branching point using the TR bit as the operand of the OUTPUT instruction.
105 When drawing a ladder diagram, be careful not to use TR bits unless necessary . Often the number of instructions required for a program can be reduced and ease of understanding a program increased by redrawing a diagram that would otherwise required TR bits.
106 When an INTERLOCK instruction is placed before a section of a ladder pro- gram, th e execution condition for the INTERLOCK instruction will control the ex- ecution of all instruction up to the next INTERLOCK CLEAR instruction.
107 If IR 00000 in the above diagram is OFF (i.e., if the execution condition for the first INTERLOCK instruction is OFF), instructions 1 through 4 would be ex- ecuted with OFF execution conditions and execution would move to the instruc- tion following the INTERLOCK CLEAR instruction.
108 The other type of jump is created with a jump number of 00. As many jumps as desired can be created using jump number 00 and JUMP instructions using 00 can be used consecutively without a JUMP END using 00 between them. It is even possible for all JUMP 00 instructions to move program execution to the same JUMP END 00, i.
109 4-8-1 DIFFERENTIA TE UP and DIFFERENTIA TE DOWN DIFFERENTIA TE UP and DIFFERENTIA TE DOWN instructions are used to turn the operand bit ON for one cycle at a time.
11 0 T o create a self-maintaining bit, the operand bit of an OUTPUT instruction is used a s a condition for the same OUTPUT instruction in an OR setup so that the operand bit of the OUTPUT instruction will remain ON or OFF until changes o c - cur in other bits.
111 Work bits can be used to simplify programming when a certain combination of conditions is repeatedly used in combination with other conditions. In the follow- ing example, IR 00000, IR 00001, IR 00002, and IR 00003 are combined in a logic block that stores the resulting execution condition as the status of IR 24600.
11 2 This action is easily programmed by using IR 22500 as a work bit as the operand of the DIFFERENTIA TE UP instruction (DIFU(13)). When IR 00000 turns ON, IR 22500 will be turned ON for one cycle and then be turned OFF the next cycle by DIFU(13).
11 3 Except for instructions for which conditions are not allowed (e.g., INTERLOCK CLEAR and JUMP END, see below), every instruction line must also have at least one condition on it to determine the execution condition for the instruction at the right.
11 4 4-1 1 Program Execution When program execution is started, the CPU cycles the program from top to bot- tom, checking all conditions and executing all instructions accordingly as it moves down the bus bar .
11 5 SECTION 5 Instruction Set Th e C200HS PC has a large programming instruction set that allows for easy programming of complicated control processes. This section explains instructions individually and provides the ladder diagram symbol, data areas, and flags used with each.
11 6 5-16-2 MOVE NOT – MVN(22) 159 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16-3 BLOCK SET – BSET(71) 160 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16-4 BLOCK TRANSFER – XFER(70) 161 .
11 7 5-20-9 SIGNED BINAR Y DIVIDE – DBS(––) 231 . . . . . . . . . . . . . . . . . . . . . . . . 5-20-10 DOUBLE SIGNED BINAR Y DIVIDE – DBSL(––) 232 . . . . . . . . . . . . . . 5-21 Special Math Instructions 233 . . . . . . . . . . . . . . .
11 8 5-1 Notation In the remainder of this manual, all instructions will be referred to by their mne- monics. For example, the Output instruction will be called OUT ; the AND Load instruction, AND LD. If you’re not sure of the instruction a mnemonic is used for , refer to Appendix B Programming Instructions .
! 11 9 Caution The IR and SR areas are considered as separate data areas. If an operand has access to one area, it doesn’t necessarily mean that the same operand will have access to the other area. The border bet ween the IR and SR areas can, however , be crossed for a single operand, i.
! 120 A non-differentiated instruction is executed each time it is cycled as long as its execution condition is ON. A dif ferentiated instruction is executed only once af- ter its execution condition goes from OFF to ON.
121 Code Mnemonic Name Page 17 (@)ASFT ASYNCHRONOUS SHIFT REGISTER 157 18 (@)SCAN CYCLE TIME 276 19 (@)MCMP MUL TI-WORD COMP ARE 169 47 (@)LMSG 32-CHARACTER MESSAGE 279 48 (@)TERM TERMINAL MODE 280 60.
122 5-6 Coding Right-hand Instructions Writing mnemonic code for ladder instructions is described in Section 4 Writing and Inputting the Program . Converting the information in the ladder diagram symbol for all other instructions follows the same pattern, as described below , and is not specified for each instruction individually .
123 The following diagram and corresponding mnemonic code illustrates the points described above. Address Instruction Data 00000 LD 00000 00001 AND 00001 00002 OR 00002 00003 DIFU(13) 22500 00004 LD 0.
124 Multiple Instruction Lines If a right-hand instruction requires multiple instruction lines (such as KEEP(1 1)), all of the lines for the instruction are entered before the right-hand instruction.
Instruction Set Lists Section 5-7 125 5-7 Instruction Set Lists This section provides tables of the instructions available in the C200HS. The first table can be used to find instructions by function code. The second table can be used to find instruction by mnemonic.
Instruction Set Lists Section 5-7 126 Mnemonic Page Name Words Code ASL (@) 25 2 ARITHMETIC SHIFT LEFT 154 ASR (@) 26 2 ARITHMETIC SHIFT RIGHT 154 A VG (@) –– 4 A VERAGE V ALUE 235 BCD (@) 24 3 BI.
Instruction Set Lists Section 5-7 127 Mnemonic Page Name Words Code LD NOT None 1 LOAD NOT 129 LINE (@) 63 4 COLUMN TO LINE 200 LMSG (@) 47 4 32-CHARACTER MESSAGE 279 MAX (@) –– 4 FIND MAXIMUM 233.
Instruction Set Lists Section 5-7 128 Mnemonic Page Name Words Code SLD (@) 74 3 ONE DIGIT SHIFT LEFT 156 SNXT 09 2 STEP ST ART 266 SRCH (@) –– 4 DA T A SEARCH 289 SRD (@) 75 3 ONE DIGIT SHIFT RIG.
129 5-8 Ladder Diagram Instructions Ladder Diagram instructions include Ladder instructions and Logic Block instructions and correspond to the conditions on the ladder diagram.
130 5-8-2 AND LOAD and OR LOAD Ladder Symbol AND LOAD – AND LD 00002 00003 00000 00001 Ladder Symbol OR LOAD – OR LD 00000 00001 00002 00003 Description When instructions are combined into blocks that cannot be logically combined using only OR and AND operations, AND LD and OR LD are used.
131 OUT turns ON the designated bit for an ON execution condition, and turns OFF th e designated bit for an OFF execution condition. With a TR bit, OUT appears at a branching point rather than at the end of an instruction line. Refer to 4-7-7 Branching Instruction Lines for details.
132 Precautions DIFU(13) and DIFD(14) operation can be uncertain when the instructions are programmed between IL and ILC, between JMP and JME, or in subroutines. Re- fer to 5-10 INTERLOCK and INTERLOCK CLEAR – IL(02) and ILC(03) , 5-1 1 JUMP and JUMP END – JMP(04) and JME(05) , and 5-23 Subroutines and Inter- rupt Control for details.
133 5-9-3 SET and RESET – SET and RSET B : Bit IR, SR, AR, HR, LR Ladder Symbols Operand Data Areas SET B B : Bit IR, SR, AR, HR, LR RSET B Description SE T 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 .
134 Description KEEP(1 1) is used to maintain the status of the designated bit based on two exe- cution conditions. These execution conditions are labeled S and R. S is the set input; R, the reset input. KEEP(1 1) operates like a latching relay that is set by S and reset by R.
135 Example If a HR bit or an AR bit is used, bit status will be retained even during a power interruption. KEEP(1 1) can thus be used to program bits that will maintain status after restarting the PC following a power interruption.
136 IL(02) and ILC(03) do not necessarily have to be used in pairs. IL(02) can be used several times in a row , with each IL(02) creating an interlocked section through the next ILC(03). ILC(03) cannot be used unless there is at least one IL(02) between it and any previous ILC(03).
137 Example The following diagram shows IL(02) being used twice with one ILC(03). 00000 00001 ILC(03) IL(02) 00004 00005 00003 00002 IL(02) 00502 TIM 51 1 CP R CNT 001 IR 010 00100 001.
138 If the jump number for JMP(04) is 00, the CPU will look for the next JME(05) with a jump number of 00. T o do so, it must search through the program, causing a longer cycle time (when the execution condition is OFF) than for other jumps.
139 Any one TC number cannot be defined twice, i.e., once it has been used as the definer in any of the timer or counter instructions, it cannot be used again. Once defined, TC numbers can be used as many times as required as operands in instructions other than timer and counter instructions.
140 If the execution condition remains ON long enough for TIM to time down to zero, the Completion Flag for the TC number used will turn ON and will remain ON until TIM is reset (i.
141 There are two ways to achieve timers that operate for longer than 999.9 sec- onds. One method is to program consecutive timers, with the Completion Flag of each timer used to activate the next timer . A simple example with two 900.0-sec- ond (15-minute) timers combined to functionally form a 30-minute timer .
142 The length of time that a bit is kept ON or OFF can be controlled by combining TI M with OUT or OUT NO. The following diagram demonstrates how this is pos- sible. In this example, 00204 would remain ON for 1.5 seconds after 00000 goes ON regardless of the time 00000 stays ON.
143 Bits can be programmed to turn ON and OFF at regular intervals while a desig- nated execution condition is ON by using TIM twice. One TIM functions to turn ON and OFF a specified bit, i.e., the Completion Flag of this TIM turns the speci- fied bit ON and OFF .
144 Each TC number can be used as the definer in only one TIMER or COUNTER instruction. If the cycle time is greater than 10 ms, use TC 000 through TC 015. Description TIMH(15) operates in the same way as TIM except that TIMH measures in units of 0.01 second.
145 Precautions The PVs of totalizing timers in interlocked program sections are maintained when the execution condition for IL(02) is OFF . Unlike timers and high-speed timers, totalizing timers in jumped program sections do not continue timing, but maintain the PV .
146 Limitations Each TC number can be used as the definer in only one TIMER or COUNTER instruction. Description CNT is used to count down from SV when the execution condition on the count pulse, CP , goes from OFF to ON, i.
147 Th e above CNT can be modified to restart from SV each time power is turned ON to the PC. This is done by using the First Cycle Flag in the SR area (25315) to reset CNT as shown below .
! 148 tween when the Completion Flag for TIM 001 goes ON and TIM 001 is reset by its Completion Flag). TIM 001 is also reset by the Completion Flag for CNT 002 so that the extended timer would not start again until CNT 002 was reset by 00001, which serves as the reset for the entire extended timer .
149 Limitations Each TC number can be used as the definer in only one TIMER or COUNTER instruction. Description The CNTR(12) is a reversible, up/down circular counter , i.e., it is used to count between zero and SV according to changes in two execution conditions, those i n the increment input (II) and those in the decrement input (DI).
150 5-15 Data Shifting Al l of the instructions described in this section are used to shift data, but in diffe r- ing amounts and directions. The first shift instruction, SFT(10), shifts an execu- tion condition into a shift register; the rest of the instructions shift data that is al- ready in memory .
151 The following example uses the 1-second clock pulse bit (25502) so that the execution condition produced by 00005 is shifted into a 3-word register between IR 010 and IR 012 every second.
152 The program is set up so that a rotary encoder (00000) controls execution of SFT(10) through a DIFU(13), the rotary encoder is set up to turn ON and OFF each time a product passes the first sensor .
153 Description SFTR(84) is used to create a single- or multiple-word shift register that can shift data to either the right or the left. T o create a single-word register , designate the same word for St and E. The control word provides the shift direction, the status to be put into the register , the shift pulse, and the reset input.
154 5-15-3 ARITHMETIC SHIFT LEFT – ASL(25) Wd : Shift word IR, SR, AR, DM, HR, LR Ladder Symbols Operand Data Areas ASL(25) Wd @ASL(25) Wd Description When the execution condition is OFF , ASL(25) is not executed.
155 5-15-5 ROT A TE LEFT – ROL(27) Wd : Rotate word IR, SR, AR, DM, HR, LR Ladder Symbols Operand Data Areas ROL(27) Wd @ROL(27) Wd Description When the execution condition is OFF , ROL(27) is not executed.
156 5-15-7 ONE DIGIT SHIFT LEFT – SLD(74) Ladder Symbols Operand Data Areas SLD(74) St E @SLD(74) St E St : Starting word IR, SR, AR, DM, HR, LR E : End word IR, SR, AR, DM, HR, LR Limitations St and E must be in the same data area, and St must be less than or equal to E.
157 Precautions If a power failure occurs during a shift operation across more than 50 words, the shift operation might not be completed. Set the range between E and St to a maximum of 50 words. Flags ER: The St and E words are in different areas, or St is less than E.
158 Description When the execution condition is OFF , ASFT(17) does nothing and the program moves to the next instruction. When the execution condition is ON, ASFT(17) is used to create and control a reversible asynchronous word shift register be- tween St and E.
159 5-16-1 MOVE – MOV(21) S : Source word IR, SR, AR, DM, HR, TC, LR, # D : Destination word IR, SR, AR, DM, HR, LR Ladder Symbols Operand Data Areas MOV(21) S D @MOV(21) S D Description When the execution condition is OFF , MOV(21) is not executed.
160 5-16-3 BLOCK SET – BSET(71) S : Source data IR, SR, AR, DM, HR, TC, LR, # St : Starting word IR, SR, AR, DM, HR, TC, LR Ladder Symbols Operand Data Areas E : End Word IR, SR, AR, DM, HR, TC, LR BSET(71) S St E @BSET(71) S St E Limitations St must be less than or equal to E, and St and E must be in the same data area.
161 Example Th e following example shows how to use BSET(71) to change the PV of a timer depending on the status of IR 00003 and IR 00004. When IR 00003 is ON, TIM 01 0 will operate as a 50-second timer; when IR 00004 is ON, TIM 010 will oper- ate as a 30-second timer .
162 Flags ER: N is not BCD between 0000 and 2000. S and S+N or D and D+N are not in the same data area. Indirectly addressed DM word is non-existent. (Content of ∗ DM word is not BCD, or the DM area boundary has been exceeded.
163 When the execution condition is OFF , DIST(80) is not executed. When the exe- cution condition is ON, DIST(80) operates a stack from DBs to DBs+C–9000. DB s is the stack pointer , so S is copied to the word indicated by DBs and DBs is incremented by 1.
164 5-16-7 DA T A COLLECT – COLL(81) SBs : Source base word IR, SR, AR, DM, HR, TC, LR C : Offset data (BCD) IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas D : Destination word IR, SR, AR, DM, HR, TC, LR COLL(81) SBs C D @COLL(81) SBs C D Limitations C must be a BCD.
165 Example In the following example, the content of C (HR 00) is 9010, and COLL(81) is used to copy the oldest entries from a10-word stack (IR 001 to IR 010) to LR 20.
166 Example In the following example, the content of C (HR 00) is 8010, and COLL(81) is used to copy the most recent entries from a 10-word stack (IR 001 to IR 010) to LR 20.
167 Description When the execution condition is OFF , MOVB(82) is not executed. When the exe- cution condition is ON, MOVB(82) copies the specified bit of S to the specified bit in D. The bits in S and D are specified by Bi. The rightmost two digits of Bi desig- nate the source bit; the leftmost two bits designate the destination bit.
168 Digit Designator The following show examples of the data movements for various values of Di. 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 S Di: 0031 Di: 0023 Di: 0030 Di: 0010 S S S 0 1 2 3 D 0 1 2 3 D 0 1 2 3 D 0 1 2 3 D Flags ER: At least one of the rightmost three digits of Di is not between 0 and 3.
169 Example In the following example, XFRB(62) is used to transfer 5 bits from IR 020 to LR 2 1 when IR 00001 is ON. The starting bit in IR 020 is 0, and the starting bit in LR 21 is 4, so IR 02000 to IR 02004 are copied to LR 2104 to LR 2108.
170 Example The following example shows the comparisons made and the results provided for MCMP(19). Here, the comparison is made during each cycle when 00000 is ON.
171 Flags ER: Indirectly addressed DM word is non-existent. (Content of ∗ DM word is not BCD, or the DM area boundary has been exceeded.) EQ : ON if Cp1 equals Cp2.
172 The branching structure of this diagram is important in order to ensure that 00200, 00201, and 00202 are controlled properly as the timer counts down. Be- cause all of the comparisons here use to the timer ’s PV a s reference, the other operand for each CMP(20) must be in 4-digit BCD.
173 Limitations Cp1 and Cp1+1 must be in the same data area, as must Cp2 and Cp2+1. Description When the execution condition is OFF , CMPL(60) is not executed.
174 5-17-4 BLOCK COMP ARE – BCMP(68) CD : Compare data IR, SR, AR, DM, HR, TC, LR, # CB : First comparison block word IR, DM, HR, TC, LR Ladder Symbols Operand Data Areas R : Result word IR, SR, AR,.
175 Example The following example shows the comparisons made and the results provided for BCMP(68). Here, the comparison is made during each cycle when 00000 is ON.
176 Example The following example shows the comparisons made and the results provided for TCMP(85). Here, the comparison is made during each cycle when 00000 is ON.
177 Precautions Placing other instructions between ZCP(88) and the operation which accesses the EQ, LE, and GR flags may change the status of these flags. Be sure to ac- cess them before the desired status is changed. Flags ER: Indirectly addressed DM word is non-existent.
178 Description When the execution condition i s OF F , ZCPL(––) is not executed. When the exe- cution condition is ON, ZCPL(––) compares the 8-digit value in CD, CD+1 to the range defined by lower limit LL+1,LL and upper limit UL+1,UL and outputs the result to the GR, EQ, and LE flags in the SR area.
179 Flags ER: Indirectly addressed DM word is non-existent. (Content of ∗ DM word is not BCD, or the DM area boundary has been exceeded.) EQ : ON if Cp1 equals Cp2.
180 5-18 Data Conversion The conversion instructions convert word data that is in one format into another format and output the converted data to specified result word(s). Conversions are available to convert between binary (hexadecimal) and BCD, to 7-segment display data, to ASCII, and between multiplexed and non-multiplexed data.
181 5-18-2 DOUBLE BCD-T O-DOUBLE BINAR Y – BINL(58) S : First source word (BCD) IR, SR, AR, DM, HR, TC, LR R : First result word IR, SR, AR, DM, HR, LR Ladder Symbols Operand Data Areas BINL(58) S R @BINL(58) S R Description When the execution condition is OFF , BINL(58) is not executed.
182 Signed Binary Data BCD(24) cannot be used to convert signed binary data directly to BCD. T o con- vert signed binary data, first determine whether the data is positive or negative. If it is positive, BCD(24) can be used to convert the data to BCD.
183 5-18-5 HOURS-T O-SECONDS – SEC(65) S : Beginning source word (BCD) IR, SR, AR, DM, HR, TC, LR R : Beginning result word (BCD) IR, SR, AR, DM, HR, TC, LR Ladder Symbols Operand Data Areas --- : Not used. SEC(65) S R --- @SEC(65) S R --- Limitations S and S+1 must be within the same data area.
184 5-18-6 SECONDS-T O-HOURS – HMS(66) S : Beginning source word (BCD) IR, SR, AR, DM, HR, TC, LR R : Beginning result word (BCD) IR, SR, AR, DM, HR, TC, LR Ladder Symbols Operand Data Areas --- : Not used. HMS(66) S R --- @HMS(66) S R --- Limitations S and S+1 must be within the same data area.
185 5-18-7 4-T O-16 DECODER – MLPX(76) S : Source word IR, SR, AR, DM, HR, TC, LR C : Control word IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas R : First result word IR, SR, AR, DM, HR, LR MLPX(76) S C R @MLPX(76) S C R Limitations When the leftmost digit of C is 0, the rightmost two digits of C must each be be- tween 0 and 3.
186 Some example C values and the digit-to-word conversions that they produce are shown below . 0 1 2 3 R R + 1 R R + 1 R + 2 0 1 2 3 0 1 2 3 0 1 2 3 R R + 1 R + 2 R + 3 R R + 1 R + 2 R + 3 S C: 0031 C: 0023 C: 0030 C: 0010 S S S Th e following is an example of a one-digit decode operation from digit number 1 of S, i.
187 The 4 possible C values and the conversions that they produce are shown be- low . (In S, 0 indicates the rightmost byte and 1 indicates the leftmost byte.
188 The following program converts three digits of data from LR 20 to bit positions and turns ON the corresponding bits in three consecutive words starting with HR 10.
189 16-bit to 4-bit encoder DMPX(77) operates as a 16-bit to 4-bit encoder when the leftmost digit of C is 0. When the execution condition is OFF , DMPX(77) is not executed.
190 256-bit to 8-bit Encoder DMPX(77) operates as a 256-bit to 8-bit encoder when the leftmost digit of C is set to 1. When the execution condition is OFF , DMPX(77) is not executed.
191 When 00000 is ON, the following diagram encodes IR words 010 and 01 1 to the first two digits of HR 20 and then encodes LR 10 and 1 1 to the last two digits of HR 20. Although the status of each source word bit is not shown, it is assumed that the bit with status 1 (ON) shown is the highest bit that is ON in the word.
192 Any or all of the digits in S may be converted in sequence from the designated first digit. The first digit, the number of digits to be converted, and the half of D to receive the first 7-segment display code (rightmost or leftmost 8 bits) are desig- nated in Di.
193 Example The following example shows the data to produce an 8. The lower case letters show which bits correspond to which segments of the 7-segment display . The table underneath shows the original data and converted code for all hexadeci- mal digits.
194 5-18-10 ASCII CONVERT – ASC(86) S : Source word IR, SR, AR, DM, HR, TC, LR Di : Digit designator IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas D : First destination word IR, SR.
195 Some examples of Di values and the 4-bit binary to 8-bit ASCII conversions that they produce are shown below . 0 1 2 3 S Di: 001 1 D 0 1 2 3 Di: 0030 S 0 1 2 3 Di: 0130 S Di: 01 12 0 1 2 3 S 1st h.
196 Limitations Di must be within the values given below . All source words must be in the same data area. Bytes in the source words must contain the ASCII code equivalent of hexadeci- mal values, i.e., 30 to 39 (0 to 9), 41 to 46 (A to F), or 61 to 66 (a to f).
197 Some examples of Di values and the 8-bit ASCII to 4-bit hexadecimal conver- sions that they produce are shown below . 0 1 2 3 D Di: 001 1 S Di: 0030 Di: 0133 Di: 0023 1 st byte 2 nd byte S 1 st by.
198 Flags ER: Incorrect digit designator , or data area for destination exceeded. Indirectly addressed DM word is non-existent. (Content of ∗ DM word is not BCD, or the DM area boundary has been exceeded.
199 The following table shows the functions and ranges of the parameter words: Parameter Function Range Comments P1 BCD point #1 (A Y ) 0000 to 9999 --- P1+1 Hex. point #1 (A X ) 0000 to FFFF Do not set P1+1=P1+3. P1+2 BCD point #2 (B Y ) 0000 to 9999 --- P1+3 Hex.
200 5-18-13 COLUMN TO LINE – LINE(63) S : First word of 16 word source set IR, SR, AR, DM, HR, TC, LR C: Column bit designator (BCD) IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas D : Destination word IR, SR, AR, DM, HR, TC, LR LINE(63) S C D @LINE(63) S C D Limitations S and S+15 must be in the same data area.
201 5-18-14 LINE TO COLUMN – COLM(64) S : Source word IR, SR, AR, DM, HR, TC, LR C: Column bit designator (BCD) IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas D : First word of the destination set IR, AR, DM, HR, TC, LR COLM(64) S D C @COLM(64) S D C Limitations D and D+15 must be in the same data area.
202 5-18-15 2’S COMPLEMENT – NEG(––) S : Source word IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas R : Result word IR, SR, AR, DM, HR, LR NEG(––) S R --- @NEG(––) S R.
203 5-18-16 DOUBLE 2’S COMPLEMENT – NEGL(––) S : First source word IR, SR, AR, DM, HR, TC, LR Ladder Symbols Operand Data Areas R : First result word IR, SR, AR, DM, HR, LR NEGL(––) S R --- @NEGL(––) S R --- Limitations S and S+1 must be in the same data area, as must R and R+1.
204 5-19 BCD Calculations The BCD calculation instructions – INC(38), DEC(39), ADD(30), ADDL(54), SUB(31), SUBL(55), MUL(32), MULL(56), DIV(33), DIVL(57), FDIV(79), and ROOT(72) – all perform arithmetic operations on BCD data. Fo r INC(38) and DEC(39) the source and result words are the same.
205 5-19-3 SET CARR Y – STC(40) Ladder Symbols STC(40) @STC(40) When the execution condition is OFF , STC(40) is not executed.When the execu- tion condition is ON, STC(40) turns ON CY (SR 25504). Note Refer to Appendix C Error and Arithmetic Flag Operation for a table listing the instructions that affect CY .
206 Example If 00002 is ON, the program represented by the following diagram clears CY with CLC(41), adds the content of LR 25 to a constant (6103), places the result in DM 0100, and then moves either all zeros or 0001 into DM 0101 depending on the status of C Y (25504).
207 Flags ER: Au and/or Ad is not BCD. Indirectly addressed DM word is non-existent. (Content of ∗ DM word is not BCD, or the DM area boundary has been exceeded.
! 208 Flags ER: Mi and/or Su is not BCD. Indirectly addressed DM word is non-existent. (Content of ∗ DM word is not BCD, or the DM area boundary has been exceeded.) CY : ON when the result is negative, i.e., when Mi is less than Su plus CY . EQ : ON when the result is 0.
209 Note The actual SUB(31) operation involves subtracting Su and CY from 10,000 plus Mi. For positive results the leftmost digit is truncated. For negative results the 10s complement is obtained. The procedure for establishing the correct answer is given below .
210 Flags ER: Mi, M+1,Su, or Su+1 are not BCD. Indirectly addressed DM word is non-existent. (Content of ∗ DM word is not BCD, or the DM area boundary has been exceeded.) CY : ON when the result is negative, i.e., when Mi is less than Su. EQ : ON when the result is 0.
21 1 5-19-9 BCD MUL TIPL Y – MUL(32) Md : Multiplicand (BCD) IR, SR, AR, DM, HR, TC, LR, # Mr : Multiplier (BCD) IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas R : First result word IR, SR, AR, DM, HR LR MUL(32) Md Mr R @MUL(32) Md Mr R Limitations R and R+1 must be in the same data area.
212 5-19-10 DOUBLE BCD MUL TIPL Y – MULL(56) Md : First multiplicand word (BCD) IR, SR, AR, DM, HR, TC, LR Mr : First multiplier word (BCD) IR, SR, AR, DM, HR, TC, LR Ladder Symbols Operand Data Are.
213 Description When the execution condition is OFF , DIV(33) is not executed and the program moves to the next instruction. When the execution condition is ON, Dd is divided by Dr and the result is placed in R and R + 1: the quotient in R and the remainder in R + 1.
214 Description When the execution condition is OFF , DIVL(57) is not executed. When the exe- cution condition is ON, DIVL(57) the eight-digit content of Dd and D+1 is divided by the content of Dr and Dr+1 and the result is placed in R to R+3: the quotient in R and R+1, the remainder in R+2 and R+3.
215 T o represent the floating point values, the rightmost seven digits are used for the mantissa and the leftmost digit is used for the exponent, as shown below .
216 DM 0000 3 452 @MOV(21) #0000 HR 00 00000 @MOV(21) #0000 HR 02 @MOV(21) #4000 HR 01 @MOV(21) #4000 HR 03 @MOVD(83) DM 0000 #0021 HR 01 @MOVD(83) DM 0000 #0300 HR 00 @MOVD(83) DM 0001 #0021 HR 03 @M.
217 5-19-14 SQUARE ROOT – ROOT(72) Sq : First source word (BCD) IR, SR, AR, DM, HR, TC, LR R : Result word IR, SR, AR, DM, HR, LR, Ladder Symbols Operand Data Areas ROOT(72) Sq R @ROOT(72) Sq R Limitations Sq and Sq+1 must be in the same data area. Description When the execution condition is OFF , ROOT(72) is not executed.
218 In this example, √ 6017 = 77.56, and 77.56 is rounded off to 78. 010 6 017 00000 @MOV(21) 010 DM 0101 @ROOT(72) DM 0100 DM 0102 @MOV(21) #0000 01 1 @MOVD(83) DM 0102 #0012 01 1 @MOVD(83) DM 0102.
219 5-20 Binary Calculations Binary calculation instructions — ADB(50), SBB(51), MLB(52), DVB(53), ADBL(––), SBBL(––), MBS(––), MBSL(––), DBS(––), and DBSL(––) — perform arithmetic operations on hexadecimal data.
220 The following example shows a four-digit addition with CY used to place either #0000 or #0001 into R+1 to ensure that any carry is preserved. CLC(41) 00000 ADB(50) 010 DM 0100 HR 10 MOV(21) #0000 .
221 In the case below , 25,321 +(–13,253) = 12,068 (62E9 + CC3B = 2F24). Neither OF nor UF are turned ON. Au: LR 20 62E 9 Ad: DM 0010 CC3 B + Ad: DM 0010 2F 24 Note Th e status of the CY flag can be ignored when adding signed binary data since it is relevant only in the addition of normal hexadecimal values.
222 Example 1: Normal Data The following example shows a four-digit subtraction with CY used to place ei- ther #0000 or #0001 into R+1 to ensure that any carry is preserved.
223 In the following example, SBB(51) is used to subtract one 16-bit signed binary value from another . (The 2’s complement is used to express negative values). Th e ef fective range for 16-bit signed binary values is –32,768 (8000) to +32,767 (7FFF).
224 5-20-3 BINAR Y MUL TIPL Y – MLB(52) Md : Multiplicand word (binary) IR, SR, AR, DM, HR, TC, LR, # Mr : Multiplier word (binary) IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas R : First result word IR, SR, AR, DM, HR LR MLB(52) Md Mr R @MLB(52) Md Mr R Limitations R and R+1 must be in the same data area.
225 Precautions DVB(53) cannot be used to divide signed binary data. Use DBS(––) instead. Re- fer to 5-20-9 SIGNED BINAR Y DIVIDE – DBS(––) for details. Flags ER: Dr contains 0. Indirectly addressed DM word is non-existent. (Content of : DM word is not BCD, or the DM area boundary has been exceeded.
226 ADBL(––) can also be used to add signed binary data. The underflow and over- flow flags (SR 25404 and SR 25405) indicate whether the result has exceeded th e lower or upper limits of the 32-bit signed binary data range. Refer to page 2 9 for details on signed binary data.
227 In the case below , 1,799,100,099 + (–282,751,929) = 1,516,348,100 (6B3C167D + EF258C47 = 5A61A2C4). Neither OF nor UF are turned ON. Au + 1 : LR 21 Au : LR 20 Ad + 1 : DM 001 1 Ad : DM 0010 6 B.
228 Flags ER: Indirectly addressed DM word is non-existent. (Content of : DM word is not BCD, or the DM area boundary has been exceeded.) CY : ON when the result is negative, i.e., when Mi is less than Su plus CY . EQ : ON when the result is 0. OF : ON when the result exceeds +2,147,483,647 (7FFF FFFF).
229 In the case below , 1,799,100,099 – (–282,751,929) = 2,081,851,958 (6B3C 167D – {EF25 8C47 – 1 0000 0000} = 7C16 8A36). Neither OF nor UF are turned ON.
230 Example In the following example, MBS(––) is used to multiply the signed binary contents of IR 001 with the signed binary contents of DM 0020 and output the result to LR 21 and LR 22.
231 Example In the following example, MBSL(––) is used to multiply the signed binary con- tents of IR 101 and IR 100 with the signed binary contents of DM 0021 and DM 0020 and output the result to LR 24 through LR 21.
232 Example In the following example, DBS(––) is used to divide the signed binary contents of IR 001 with the signed binary contents of DM 0020 and output the result to LR 21 and LR 22.
233 Example In the following example, DBSL(––) is used to divide the signed binary contents of IR 002 and IR 001 with the signed binary contents of DM 0021 and DM 0020 and output the result to LR 24 through LR 21.
! 234 If bit 15 of C is ON and more than one address contains the same maximum val- ue, the position of the lowest of the addresses will be output to D+1. Th e number of words within the range (N) is contained in the 3 rightmost digits of C, which must be BCD between 001 and 999.
! 235 If bit 14 of C is ON and more than one address contains the same minimum val- ue, the position of the lowest of the addresses will be output to D+1. Th e number of words within the range (N) is contained in the 3 rightmost digits of C, which must be BCD between 001 and 999.
236 O n the N th cycle, the previous value of S is written to last word in the range D+2 to D+N+1. The average value of the previous values stored in D+2 to D+N+1 is cal- culated and written to D, bit 15 of D+1 is turned ON, and the previous value point- er (the first 2 digits of D+1) is reset to zero.
237 Example In the following example, the content of IR 040 is set to #0000 and then increm- ented by 1 each cycle. For the first two cycles, A VG(––) moves the content of IR 040 to DM 1002 and DM 1003. The contents of DM 1001 will also change (which can be used to confirm that the results of A VG(––) has changed).
238 Description When the execution condition is OFF , SUM(––) is not executed. When the ex- ecution condition is ON, SUM(––) adds either the contents of words R 1 to R 1 +N–1 o r the bytes in words R 1 to R 1 +N/2–1 and outputs that value to the desti- nation words (D and D+1).
239 Example In the following example, the BCD contents of the 8 words from DM 0000 to DM 0007 are added when IR 00001 is ON and the result is written to DM 0010 and DM 001 1.
240 Examples Sine Function T h e following example demonstrates the use of the APR(69) sine function to cal- culate the sine of 30 ° . The sine function is specified when C is #0000.
Y 0 X 0 X 1 X 2 X 3 X 4 X m X Y Y m Y 4 Y 3 Y 1 Y 2 241 Enter the coordinates of the m+1 end-points, which define the m line segments, as shown in the following table. Enter all coordinates in BIN form. Always enter th e coordinates from the lowest X value (X 1 ) to the highest (X m ).
! 242 In this case, the input data word, IR 010, contains #0014, and f(0014) = #0726 is output to R, IR 01 1. X Y $1F20 $0F00 $0726 $0402 (0,0) $0005 $0014 $001A $05F0 (x,y) 5-21-6 PID CONTROL – PID.
243 Parameter Settings Item Contents Setting range Set value (SV) This is the target value of the process being controlled. Binary data (of the same number of bits as specified for the input range) Proportional band This is the parameter for P control expressing the proportional control range/total control range.
244 When overshooting is prevented with simple PID control, stabilization of distur- bances is slowed (1). If stabilization of disturbances is speeded up, on the other hand, overshooting occurs and response toward the target value is slowed (2).
245 integral time is too short, the correction will be too strong and will cause hunting to occur . Integral Operation PI Operation and Integral Time Deviation Operation amount Step response PI operat.
246 without hunting, integral operation to automatically correct any o f fset, and deriv- ative operation to speed up the response to disturbances. PID Operation Output Step Response PID Operation Out.
247 hunting will be reduced if the integral time is increased or the proportional band is enlarged. Control by measured PID (when loose hunting occurs) Enlarge I or P . SV • If the period is short and hunting occurs, it may be that the control system re- sponse is quick and the derivative operation is too strong.
248 Creating the Program Follow the procedure outlined below in creating the program. 1, 2, 3... 1. Set the target value (binary 0000 to 0FFF) in DM 0000. 2. Input the PV of the temperature sensing element (binary 000 to 0FFF) in bits 0 to 1 1 of word 101.
249 Note When using PID(––) or SCL(––), make the data settings in advance with a Pe- ripheral Device such as the Programming Console or LSS. T arget value HR Proportional band Integral time/sa.
250 5-22-2 LOGICAL AND – ANDW(34) I1 : Input 1 IR, SR, AR, DM, HR, TC, LR, # I2 : Input 2 IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas R : Result word IR, SR, AR, DM, HR, LR ANDW(34) I1 I2 R @ANDW(34) I1 I2 R Description When the execution condition is OFF , ANDW(34) is not executed.
251 5-22-3 LOGICAL OR – ORW(35) I1 : Input 1 IR, SR, AR, DM, HR, TC, LR, # I2 : Input 2 IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas R : Result word IR, SR, AR, DM, HR, LR ORW(35) I1 I2 R @ORW(35) I1 I2 R Description When the execution condition is OFF , ORW(35) is not executed.
252 5-22-4 EXCLUSIVE OR – XORW(36) I1 : Input 1 IR, SR, AR, DM, HR, TC, LR, # I2 : Input 2 IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas R : Result word IR, SR, AR, DM, HR, LR XORW(36) I1 I2 R @XORW(36) I1 I2 R Description When the execution condition is OFF , XORW(36) is not executed.
253 5-22-5 EXCLUSIVE NOR – XNRW(37) I1 : Input 1 IR, SR, AR, DM, HR, TC, LR, # I2 : Input 2 IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas R : Result word IR, SR, AR, DM, HR, LR XNRW(37) I1 I2 R @XNRW(37) I1 I2 R Description When the execution condition is OFF , XNRW(37) is not executed.
254 INT(89) is used to control the interrupt signals received from the Interrupt Input Unit, and also to control the scheduling of the scheduled interrupt. INT(89) pro- vides such functions as masking of interrupts (so that they are recorded but ig- nored) and clearing of interrupts.
255 The following setting is used for normal interrupt mode. DM 6620 0000 In normal interrupt mode, the following processing will be completed once started even if an interrupt occurs The interrupt will be processed as soon as the current process is completed.
256 Th e PC Setup for the C200HS contains settings in DM 6620 that disable refresh- ing in the normal cycle for specific Special I/O Units. This settings are as shown below . Interrupt mode (1 = high-speed) Bit 15 00 1 0 0 ********** Unit #0 Unit #1 .
257 If you must handle the same data both in the main program and in an interrupt subroutine, use programming such as that shown below to be sure that data concurrence is preserved, i.e., mask interrupts while read/writing data that is also handled in an interrupt subroutine.
258 Description A subroutine can be executed by placing SBS(91) in the main program at the point where the subroutine is desired. The subroutine number used in SBS(91) indicates the desired subroutine.
! 259 The following diagram illustrates program execution flow for various execution conditions for two SBS(91). SBS(91) 00 SBS(91) 01 SBN(92) 00 RET(93) SBN(92) 01 RET(93) END(01) Main program Subrou.
260 Al l subroutines must be programmed at the end of the main program. When one or more subroutines have been programmed, the main program will be ex- ecuted up to the first SBN(92) before returning to address 00000 for the next cycle. Subroutines will not be executed unless called by SBS(91).
261 In the following example, the contents of DM 0010 through DM 0013 are copied to SR 290 through SR 293, the contents of DM 0020 through DM 0023 are co- pied to SR 294 through SR 297, and subroutine 10 is called and executed. When the subroutine is completed, the contents of SR 294 through SR 297 are copied back to DM 0020 to DM 0023.
262 Example The following examples shows the use of four MCRO(99) instructions that ac- cess the same subroutine. The program section on the left shows the same pro- gram without the use of MCRO(99).
263 Description INT(89) is used to control interrupts and performs one of 8 functions depending on the values of C and N. As shown in the following tables, three of the functions act on input interrupts, three act on the scheduled interrupt, and the other two mask or unmask all interrupts.
264 Flags ER: Indirectly addressed DM word is non-existent. (Content of : DM word is not BCD, or the DM area boundary has been exceeded.) C, and/or N are not within specified values. Example 1: Input Interrupt This example shows how to unmask a particular interrupt input.
265 Th e scheduled interrupt is disabled at the start of operation (the scheduled inter- rupt interval is 0), so the time to the first interrupt and scheduled interrupt interval must be set using INT(89) with N=004 and C=001/000.
266 5-24 Step Instructions Th e step instructions STEP(08) and SNXT(09) are used in conjunction to set up breakpoints between sections in a large program so that the sections can be ex- ecuted as units and reset upon completion. A section of program will usually be defined to correspond to an actual process in the application.
267 Execution of a step is completed either by execution of the next SNXT(09) or by turning OFF the control bit for the step (see example 3 below). When the step is completed, all of the IR and HR bits in the step are turned OFF . All timers in the step except TTIM(––) are reset to their SVs.
268 Flags 25407: Step Start Flag; turns ON for one cycle when STEP(08) is executed and can be used to reset counters in steps as shown below if necessary .
269 The following diagram 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.
270 The program for this process, shown below , utilizes the most basic type of step programming: each step is completed by a unique SNXT(09) that starts the next step. Each step starts when the switch that indicates the previous step has been completed turns ON.
271 The following process requires that a product is processed in one of two ways, depending on its weight, before it is printed. The printing process is the same regardless of which of the first processes is used. V arious sensors are posi- tioned to signal when processes are to start and end.
272 The program for this process, shown below , starts with two SNXT(09) instruc- tions that start processes A and B. Because of the way 00001 (SW A1) and 00002 (SB B1) are programmed, only one of these will be executed to start either process A or process B.
273 The following process requires that two parts of a product pass simultaneously through two processes each before they are joined together in a fifth process.
274 STEP(08) LR 0000 SNXT(09) LR 0001 STEP(08) LR 0001 STEP(08) LR 0004 SNXT(09) LR 0005 STEP(08) Process A Process B Process C 00002 (SW3) 00005 (SW7) Process A started. Process A reset. Process B started. Process E reset. 00001 (SW1 and SW2)) SNXT(09) LR 0000 SNXT(09) LR 0002 Process C started.
275 Address Instruction Operands Address Instruction Operands 00000 LD 00001 00001 SNXT(09) LR 0000 00002 SNXT(09) LR 0002 00003 STEP(08) LR 0000 Process A 00100 LD 00002 00101 SNXT(09) LR 0001 00102 .
276 F AL(06) produces a non-fatal error and F AL(07) produces a fatal error . When F AL(06) is executed with an ON execution condition, the ALARM/ERROR indi- cator on the front of the CPU will flash, but PC operation will continue.
277 5-25-3 TRACE MEMOR Y SAMPLING – TRSM(45) Data tracing can be used to facilitate debugging programs. T o set up and use data tracing it is necessary to have a host computer running LSS; no data tracing is possible from a Programming Console. Data tracing is described in detail in the LSS Operation Manual .
278 The sampled data is written to trace memory , jumping to the beginning of the memory area once the end has been reached and continuing up to the start marker . This might mean that previously recorded data (i.e., data from this sam- ple that falls before the start marker) is overwritten (this is especially true if the delay is positive).
MSG ABCDEFGHIJKLMNOP 279 In handling indirectly addressed messages (i.e. : DM), those with the lowest DM address values have higher priority . Clearing Messages T o clear a message, execute F AL(06) 00 or clear it via a Programming Console using the procedure in 4-6-5 Clearing Error Messages .
280 Description LMSG(47) is used to output a 32-character message to a Programming Con- sole. The message to be output must be in ASCII beginning in word S and end- in g i n S+15, unless a shorter message is desired.
281 Example In the following example, TERM(48) is used to switch the Programming Console to TERMINAL mode when 00000 is ON. Be sure that pin 6 of the CPU’s DIP switch is OFF .
282 T o refresh I/O words allocated to Special I/O Units (IR 100 to IR 199), indicate the unit numbers of the Units by designating IR 040 to IR 049 (see note). IR 040 to IR 049 correspond to Special I/O Units 0 to 9. For example, set St to IR 043 and E to IR 045 to refresh the I/O words allocated to Special I/O Units 3, 4, and 5.
283 Refer to 6-1 Cycle Time for a table showing I/O refresh times for Group-2 High-density I/O Units. Flags ER : St or E is not BCD between #0000 and #0009.
284 The function of bits in C are shown in the following diagram and explained in more detail below . 15 14 13 12 1 1 00 Number of items in range (N, BCD) 001 to 999 words or bytes First byte (when bit 13 is ON) 1 (ON): Rightmost 0 (OFF): Leftmost Calculation units 1 (ON): Bytes 0 (OFF): Words C: Not used.
285 Example When IR 00000 is ON in the following example, the frame checksum (0008) is calculated for the 8 words from DM 0000 to DM 0007 and the ASCII equivalent (30 30 30 38) is written to DM 001 1 and DM 0010.
286 When the execution condition is OFF , FPD(––) is not executed. When the exe- cution condition is ON, FPD(––) monitors the time until the logic diagnostics condition goes ON, turning ON the diagnostic output. If this time exceeds T , the following will occur: 1, 2, 3.
287 D+1 contains the bit address code of the input condition, as shown below . The word addresses, bit numbers, and TC numbers are in binary . Data A D+1 bit status aa Area 15 14 13 12 11 10 09 08 07 .
288 Example In the following example, the FPD(––) is set to display the bit address and mes- sage (“ABC”) when a monitoring time of 123.4 s is exceeded.
289 5-25-13 DA T A SEARCH – SRCH(––) R 1 : First word in range IR, SR, AR, DM, HR, TC, LR N : Number of words IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas @SRCH(––) N R 1 C C : Comparison data, result word IR, SR, AR, DM, HR, LR SRCH(––) N R 1 C Limitations N must be BCD between 0001 to 6656.
290 Example In the following example, the 10 word range from DM 0010 to DM 0019 is searched for addresses that contain the same data as DM 0000 (#FFFF). Since DM 0012 contains the same data, the EQ Flag (SR 25506) is turned ON and #0012 is written to DM 0001.
291 Example In the following example, the 100 word range from DM 7000 through DM 7099 is copied to DM 0010 through DM 0109 when IR 00001 is ON. @XDMR(––) #7000 #0100 00001 DM 0010 Address Instruct.
292 The status of bit 15 of C+1 determines whether the instruction is for a SYSMAC NET Link System or a SYSMAC LINK System. Control Data SYSMAC NET Link Systems T he destination port number is always set to 0. Set the destination node number to 0 to send the data to all nodes.
293 Flags ER : T he specified node number is greater than 126 in a SYSMAC NET Link System or greater than 62 in a SYSMAC LINK System. The sent data overruns the data area boundaries. Indirectly addressed DM word is non-existent. (Content of : DM word is not BCD, or the DM area boundary has been exceeded.
294 SYSMAC LINK Systems Refer to the SYSMAC LINK System 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., 0000 hex to 0100 hex ) C+1 Response time limit (0.1 and 25.4 seconds in 2-digit hexadecimal without decimal point, i.
295 5-26-3 About Network Communications SEND(90) and RECV(98) are based on command/response processing. That is, the transmission is not complete until the sending node receives and ac- knowledges a response from the destination node.
296 S R KEEP(1 1) 12802 DIFU(13) 12801 @MOV(21) #000A DM 0000 12800 00000 25204 12802 12801 @MOV(21) #0000 DM 0001 @MOV(21) #0003 DM 0002 XFER(70) #0010 000 DM 0010 @SEND(90) DM 0010 DM 0020 DM 0000 0.
297 Address Instruction Operands Address Instruction Operands 00000 LD 00000 00001 AND 25204 00002 AND NOT 12802 00003 LD 12801 00004 KEEP(1 1) 12800 00005 LD 12800 00006 @MOV(21) # 000A DM 0000 00007.
! 298 Note RXD(––) is required to receive data via the peripheral port or RS-232C port only . Transmission sent from a host computer to a Host Link Unit are processed auto- matically and do not need to be programmed.
299 5-27-2 TRANSMIT – TXD(––) S: First source word IR, SR, AR, DM, HR, TC, LR C : Control word IR, SR, AR, DM, HR, TC, LR, # Ladder Symbols Operand Data Areas N: Number of bytes IR, SR, AR, DM, HR, TC, LR, # TXD(––) S C N @TXD(––) S C N Limitations S and S+(N ÷ 2)–1 must be in the same data area.
300 The following diagram shows the format for host link command (TXD) sent from the C200HS. The C200HS automatically attaches the prefixes and suffixes, such as the node number , header , and FCS. @ X X X X X X ......... X X X ∗ CR Header code (EX) Data (122 ASCII characters max.
301 5-28 Advanced I/O Instructions Advanced I/O instructions enable control, with a single instruction, of previously complex operations involving external I/O devices (digital switches, 7-segment displays, etc.). There are five advanced I/O instructions, as shown in the following table.
302 If there are 8 digits of source data, they are placed in S and S+1, with the most significant digits placed in S+1. If there are 4 digits of source data, they are placed in S. 7SEG(––) displays the 4 or 8-digit data in 12 cycles, and then starts over and continues displaying the data.
303 2. The 7-segment display may require either positive or negative logic, de- pending on the model. 3. T he 7-segment display must have 4 data signal lines and 1 latch signal line for each digit.
304 5-28-2 DIGIT AL SWITCH INPUT – DSW(––) IW: Input word IR, SR, AR, HR, LR Ladder Symbols Operand Data Areas DSW(––) IW OW R R: First result word IR, SR, AR, DM, HR, LR OW: Output word IR, SR, AR, HR, LR Overview DSW(––) is used to read the value set on a digital switch connected to I/O Units.
305 Hardware With this instruction, 8-digit BCD set values are read from a digital switch. DSW(––) utilizes 5 output bits and 8 input bits. Connect the digital switch and the Input and Output Units as shown in the diagram below .
306 The following example illustrates connections for an A7B Thumbwheel Switch. 1 3 5 7 9 11 13 15 COM 0 2 4 6 8 10 12 14 COM ID212 Input Unit Switch no. 8 1 3 5 7 9 11 13 15 COM 0 2 4 6 8 10 12 14 DC OD212 1 2 4 8 76 5 4 3 2 1 C Output Unit A7B Thumbwheel Switch Note The data read signal is not required in the example.
307 Using the Instruction If the input word for connecting the digital switch is specified at for word A, and the output word is specified for word B, then operation will proceed as shown below when the program is executed.
308 5-28-3 HEXADECIMAL KEY INPUT – HKY(––) OW : Control signal output word IR, SR, AR, HR, LR IW : Input word IR, SR, AR, HR, LR Ladder Symbols Operand Data Areas HKY(––) IW OW D D : First register word IR, SR, AR, DM, HR, LR Limitations D and D+2 must be in the same data area.
309 Hardware This instruction inputs 8 digits in hexadecimal from a hexadecimal keyboard. I t utilizes 5 output bits and 4 input bits. Prepare the hexadecimal keyboard, and connect the 0 to F numeric key switches, as shown below , to input points 0 through 3 and output points 0 through 3.
310 Using the Instruction If the input word for connecting the hexadecimal keyboard is specified at word A, an d the output word is specified at word B, then operation will proceed as shown below when the program is executed.
31 1 5-28-4 TEN KEY INPUT – TKY(––) D 1 : First register word IR, SR, AR, DM, HR, LR IW : Input word IR, SR, AR, HR, LR Ladder Symbols Operand Data Areas TKY(––) IW D 1 D 2 D 2 : Key input word IR, SR, AR, DM, HR, LR Limitations D 1 and D 1 +1 must be in the same data area.
312 Using the Instruction If the input word for connecting the 10-key keypad is specified for IW , then opera- tion will proceed as shown below when the program is executed.
313 5-28-5 MA TRIX INPUT – MTR(––) OW : Output word IR, SR, AR, HR, LR IW : Input word IR, SR, AR, HR, LR Ladder Symbols Operand Data Areas MTR(––) IW OW D D : First destination word IR, SR, AR, DM, HR, LR Limitations D and D+3 must be in the same data area.
314 Hardware This instruction inputs up to 64 signals from an 8 x 8 matrix using 8 input points an d 8 output points. Any 8 x 8 matrix can be used. The inputs must be connected through a D C Input Unit with 8 or more points and the outputs must be connected through a T ransistor Output Unit with 8 or more points.
315 Example The following examples shows programming MTR(––) in a scheduled subrou- tine, where IORF(97) is programmed to ensure that the I/O words used by MTR(––) are refreshed each time MTR(––) is executed.
317 SECTION 6 Pr ogram Execution T iming The timing of various operations must be considered both when writing and debugging a program. The time required to ex- ecute the program and perform other CPU.
318 6-1 Cycle Time T o aid in PC operation, the average, maximum, and minimum cycle times can be displayed on the Programming Console or any other Programming Device and the maximum cycle time and current cycle time values are held in AR 26 and AR 27.
319 Flowchart of CPU Operation YES NO NO Power application Clears IR area and resets all timers Checks I/O Unit connections Resets watchdog timer Checks hardware and Program Memory Check OK? Services .
320 The first three operations immediately after power application are performed only once each time the PC is turned on. The rest of the operations are per- formed in cyclic fashion. The cycle time is the time that is required for the CPU to complete one of these cycles.
321 I/O pts to refresh Time required (ms) 512 7.4 256 4.1 128 2.7 64 1.7 Unit Time required per Unit C200H-ID501/215 0.6 ms C200H-OD501/215 0.6 ms when set for 32 I/O pts. C200H-MD501/215 1.6 ms when set for dynamic I/O C200H-CT001-V1/CT002 2.6 ms C200H-NC1 1 1/NC1 12 2.
! 322 Even i f the cycle time does not exceed the set value of the watchdog timer , a long cycle time can adversely affect the accuracy of system operations as shown in the following table. Cycle time (ms) Possible adverse affects 10 or greater TIMH(15) inaccurate when TC 016 through TC 51 1 are used.
323 Calculations The equation for the cycle time from above is as follows: Cycle time = Overseeing time + Program execution time + I/O refresh time + Peripheral device servicing time Process Calculation With Peripheral Device Without Peripheral Device Overseeing Fixed 0.
324 Calculations The equation for the cycle time is as follows: Cycle time = Overseeing time + Program execution time + I/O refreshing time + Host Link Unit servicing time + Peripheral device servicing time Process Calculation With Peripheral Device Without Peripheral Device Overseeing Fixed 0.
325 Instruction OFF execution time ( µ s) ON execution time ( µ s) Conditions AND LD --- 0.375 0.375 OR LD --- 0.375 0.375 OUT For IR and SR 23600 to SR 25515 0.563 0.563 For SR 25600 to SR 51 1 15 0.938 0.563 OUT NOT For IR and SR 23600 to SR 25515 0.
326 Instruction OFF execution time ( µ s) ON execution time ( µ s) Conditions SFT(10) With 1-word shift register 47.06 R: 35.80 IL: 15.70 JMP: 15.60 With 100-word shift register 340.00 R: 256.80 IL: 15.72 JMP: 15.68 With 250-word shift register 800.
327 Instruction OFF execution time ( µ s) ON execution time ( µ s) Conditions BIN(23) When converting a word to a word 40.40 1.125 When converting : DM to : DM 74.80 BCD(24) When converting a word to a word 38.40 1.125 When converting : DM to : DM 72.
328 Instruction OFF execution time ( µ s) ON execution time ( µ s) Conditions ADB(50) Constant + word → word 43.20 1.5 Word + word → word 45.80 : DM + : DM → : DM 97.40 SBB(51) Constant – word → word 43.20 1.5 Word – word → word 45.80 : DM – : DM → : DM 97.
329 Instruction OFF execution time ( µ s) ON execution time ( µ s) Conditions DMPX(77) When encoding a word to a word 48.90 1.5 When encoding : DM to : DM 185.90 SDEC(78) When decoding a word to a word 53.20 1.5 When decoding 2 digits : DM to : DM 1 13.
330 Instruction OFF execution time ( µ s) ON execution time ( µ s) Conditions TERM(––) Default code: (48) --- 16.40 1.5 CMPL(––) When comparing words to words 51.40 1.5 Default code: (60) When comparing : DM to : DM 85.90 MPRF(––) 1 Unit 33.
331 Instruction OFF execution time ( µ s) ON execution time ( µ s) Conditions : DM-designated 4 digits 66.60 to 72.80 Word-designated 8 digits 56.70 to 64.80 : DM-designated 8 digits 74.20 to 82.30 FPD(––) Word designation, code output 121.00 to 147.
332 Instruction OFF execution time ( µ s) ON execution time ( µ s) Conditions NEG(––) When converting a constant to a word 34.90 1.5 When converting a word to a word 37.50 When converting : DM to : DM 72.10 NEGL(––) When converting a word to a word 47.
333 6-4 I/O Response T ime The I/O response time is the time it takes for the PC to output a control signal after it has received an input signal. The time it takes to respond depends on the cycle time and when the CPU receives the input signal relative to the input re- fresh period.
334 The PC takes longest to respond when it receives the input signal just after the I/ O refresh phase of the cycle. In this case the CPU does not recognize the input signal until the end of the next cycle.
! 335 In looking at the following timing charts, it is important to remember the se- quence in which processing occurs during the PC scan, particular that inputs will not produce programmed actions until the program has been executed.
336 Example Calculations Calculations would be as shown below for an input ON delay of 1.5 ms, an out- put ON delay of 15 ms, and a cycle time of 20 ms. Minimum I/O Response Time T ime = 1.5 ms + (20 ms x 3) + 15 ms = 76.5 ms Maximum I/O Response Time T ime = 1.
! 337 6-4-4 PC Link Systems The processing that determines and the methods for calculating maximum and minimum response times from input to output are provided in this subsection. Th e following System and I/O program steps will be used in all examples below .
338 Inserting the following values into this equation produces a minimum I/O re- sponse time of 149.3 ms. Input ON delay: 1.5 ms Output ON delay: 15 ms Cycle time for PC of Unit 0: 20 ms Cycle time for PC of Unit 7: 50 ms The following diagram illustrates the data flow that will produce the maximum response time.
339 Induction sequence processing: 15 ms x (8 PCs – 8 PCs) = 0 ms I/O refresh bits for Unit 0 256 I/O refresh bits for Unit 7 256 Reducing Response Time IORF(97) can be used in programming to shorten the I/O response time greater than is possible by setting a high number of refresh bits.
340 The minimum and maximum I/O response times are shown here, using as an example the following instructions executed at the master and the slave. In this example, communications proceed from the master to the slave. Input Output (LR) Input (LR) Output The following conditions are taken as examples for calculating the I/O response times.
341 3. Communications are completed just after the slave executes communica- tions servicing. I/O refresh Overseeing, communica- tions, etc. Input ON delay Master Input point Input bit CPU processing .
342 Scheduled Interrupts Hardware time clock Scheduled interrupt subroutine execution t3 Scheduled in- terrupt interval t3 t3 t3 t3 = Software interrupt response time T otal interrupt response time = .
343 Note 1. If there are several elements that can cause interrupts or if the interrupt peri- od is shorted than the average interrupt processing time, the interrupt sub- routine will be executed and the main program will not be executed.
345 SECTION 7 Pr ogram Monitoring and Execution This section provides the procedures for monitoring and controlling the PC through a Programming Console. Refer to the LSS Operation Manual for LSS procedures if you are using a computer running LSS. 7-1 Monitoring Operation and Modifying Data 346 .
346 7-1 Monitoring Operation and Modifying Data Th e simplest form of operation monitoring is to display the address whose oper- and bit status is to be monitored using the Program Read or one of the search operations. As long as the operation is performed in RUN or MONITOR mode, the status of any bit displayed will be indicated.
347 Key Sequence Cancels monitor operation Clears leftmost address Examples The following examples show various applications of this monitor operation.
348 Bit Monitor 00000 00000 LD 00001 00001 ^ ON 00000 CONT 00001 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.
349 +Multiple Address Monitoring 00000 00000 TIM 000 T000 0100 00000 T000 0100 00001 T000 0100 00001 T000 OFF 0100 D000000001 T000 ^OFF 0100 D000000001 T000 10FF^ OFF 0100 T000D000000001 0100 10FF^ OFF D000000001 10FF^ OFF 00001 ^ OFF 00000 CONT 00001 00000 CHANNEL DM 0000 0000000001 S ONR OFF Indicates Force Reset in operation.
350 Bi t status will remain ON or OFF only as long as the key is held down; the original status will return as soon as the key is released. If a timer is started, the comple- tion flag for it will be turned ON when SV has been reached.
351 Th e following displays show what happens when TIM 000 is set with 00100 OFF (i.e., 00500 is turned ON) and what happens when TIM 000 is reset with 00100 ON (i.e., timer starts operation, turning OFF 00500, which is turned back ON when the timer has finished counting down the SV).
352 Example The following example shows the displays that appear when Restore Status is carried out normally . 00000 00000 00000FORCE RELE? 00000FORCE RELE END 7-1-4 Hexadecimal/BCD Data Modification .
353 Example The following example shows the effects of changing the PV of a timer . This example is in MONITOR mode Timing Timing PV decrementing Timing Timing 00000 00000 TIM 000 T000 0122 PRES V AL? T000 01 19 ???? PRES V AL? T000 0100 0200 T000 0199 Monitor status of timer PV that will be changed.
354 7-1-5 Hex/ASCII Display Change This operation converts DM data displays from 4-digit hexadecimal data 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.
355 7-1-6 4-digit Hex/Decimal Display Change This operation converts data displays from normal or signed 4-digit hexadecimal data to decimal and vice versa.
356 7-1-7 8-digit Hex/Decimal Display Change This operation converts data displays from normal or signed, 4 or 8-digit hexa- decimal data to decimal and vice versa.
357 7-1-8 Differentiation Monitor This operation can be used to monitor the up or down dif ferentiation status of bits in the IR, SR, AR, LR, HR, and TC areas. T o monitor up or down dif ferentiation status, display the desired bit leftmost on the bit monitor display , and then press SHIFT and the Up or Down Arrow Key .
358 7-1-9 3-word Monitor T o monitor three consecutive words together , specify the lowest numbered word, press MONTR, and then press EXT to display the data contents of the specified word and the two words that follow it. A CLR entry changes the Three-word Monitor operation to a single-word display .
359 Example 3-word Monitor in progress. Stops in the middle of monitoring. Resumes previous monitoring. D0002D0001D0000 0123 4567 89AB D0002 3CH CHG? = 0123 4567 89AB D0002 3CH CHG? 0001 4567 89AB D0002 3CH CHG? 0001 = 4567 89AB D0002 3CH CHG? 0001 = 2345 89AB D0002D0001D0000 0001 2345 89AB D0002D0001D0000 0001 4567 89AB Input new data.
360 00000 00000 CHANNEL 000 c000 MONTR 0000000000001 11 1 c001 MONTR 0000010101010100 00000 CHANNEL 001 00000 00000 CHANNEL DM 0000 D0000 FFFF D0000 MONTR 1111111111111111 D0000 FFFF 00000 CHANNEL DM .
361 7-1-12 Binary Data Modification This operation assigns a new 16-digit binary value to an IR, HR, AR, LR, or DM word. Th e cursor , which can be shifted to the left w ith the up key and to the right with the down ke y , indicates the position of the bit that can be changed.
362 IR bit 001 15 IR bit 00100 00000 00000 CHANNEL 000 00000 CHANNEL 001 c001 MONTR 0000010101010101 c001 CHG? = 000010101010101 c001 CHG? 1 = 00010101010101 c001 CHG? 10 = 0010101010101 c001 CHG? 100.
363 Key Sequence The following examples show inputting a new constant, changing from a con- stant to an address, and incrementing to a new constant. 00000 00000 TIM 000 00201SRCH TIM 000 00201 TIM DA .
364 Returns to original display with new SV Current SV (during change operation) SV before the change 00000 00000 TIM 000 00201SRCH TIM 000 00201 TIM DA T A #0123 00201 TIM DA T A T000 #0123 #???? 002.
365 7-1-14 Expansion Instruction Function Code Assignments This operation is used to read or change the function codes assigned to expan- sion instructions. There are 18 function codes that can be assigned to expansion instructions: 17, 18, 19, 47, 48, 60 to 69, and 87 to 89.
366 7-1-15 UM Area Allocation This operation is used to allocate part of the UM Area for use as expansion DM. I t ca n be performed in PROGRAM mode only . Memory allocated to expansion DM is deducted from the ladder program area. The amount of memory available for the ladder program depends on the amount of RAM in the CPU.
367 7-1-16 Reading and Setting the Clock This operation is used to read or set the CPU’s clock. The clock can be read in any mode, but it can be set in MONITOR or PROGRAM mode only .
368 Expansion TERMINAL Mode T he Programming Console can be put into Expansion TERMINAL mode by turn- ing ON AR 0709. Pin 6 of the CPU’s DIP switch must be ON. Switch the Programming Console to Expansion TERMINAL mode by turning AR 0709 ON. PROGRAM BZ <MESSAGE> NO MESSAGE PROGRAM BZ CONSOLE mode T urn AR 0709 OFF to return to CONSOLE mode.
369 All bits from SR 27700 through SR 27909 will be turned OFF when AR 0708 is turned ON. Expansion keyboard mapping inputs are disabled when AR 0708 is ON. In addition to the keyboard mapping function, expansion TERMINAL mode al- lows messages output by MSG(46) and LMSG(47) to be displayed on the Pro- gramming Console.
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.
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.
373 SECTION 8 Communications This section provides an overview of the communications features provided by the C200HS. 8-1 Introduction 374 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2 Parameters for Host Link and RS-232C Communications 374 .
374 8-1 Introduction The C200HS supports the following types of communications. • Communications with Programming Devices (e.g., Programming Console, LSS, or SSS.) • Host Link communications with personal computers and other external de- vices. • RS-232C (no-protocol) communications with personal computers and other external devices.
375 8-2-1 Standard Communications Parameters Th e settings in DM 6645 and DM 6650 determine the main communications pa- rameters, as shown in the following diagram. Th e settings in bits 00 through 07 and bits 12 through 15 are valid only when pin 5 on the CPU’s DIP switch is OFF .
376 8-2-2 Specific Communications Parameters The following settings are valid only when pin 5 on the CPU’s DIP switch is turned OFF and DM 6645 and DM 6655 are set to specify using the settings in words DM 6646 and DM 6656. Be sure to set the communications parameters to the same settings for both ends of the communications.
377 8-2-3 Wiring Ports U se the wiring diagram shown below as a guide in wiring the port to the external device. Refer to documentation provided with the computer or other external de- vice for wire details for it. The connections between the C200HS and a personal computer are illustrated below as an example.
378 PC Setup The following parameter in the PC Setup is used only when the Host Link com- munications mode is being used. Host Link Node Number A node number must be set for host link communications to differentiate be- tween nodes when multiple nodes are participating in communications.
379 TXD(––) instruction. In all other cases, data transmission based on a TXD(––) instruction will be given first priority . Application Example This example shows a program for using the RS-232C port in the Host Link mode to transmit 10 bytes of data (DM 0000 to DM 0004) to a computer .
380 PC Setup Start and end codes or the amount of data to be received can be set as shown in the following diagrams if required for RS-232C communications. This setting is required only for RS-232C communications. Th e following settings are valid only with pin 5 on the CPU’s DIP switch is turned OFF .
381 Start and end codes are not included when the number of bytes to be transmitted is specified. The largest transmission that can be sent with or without start and end codes in 256 bytes, i.e., N will be between 254 and 256 depending on the designations for start and end codes.
382 Application Example This example shows a program for using the RS-232C port in the RS-232C mode to transmit 10 bytes of data (DM 0100 to DM 0104) to the com puter , and to store the data received from the computer in the DM area beginning with DM 0200.
383 Plug: XM2A-0901 (OMRON) or equivalent Hood: XM2S-0901 (OMRON) or equivalent 1 2 3 4 5 6 FG SD RD RS CS – – – SG 7 8 9 1 2 3 4 5 6 7 8 9 FG SD RD RS CS – – SG 9 C200HS C200HS Signal Abb. Pin No. Signal Abb. Pin No. – Note Ground the FG terminals the C200HS to a resistance of 100 Ω or less.
384 When the program is executed at both the master and the slave, the status of IR 001 o f each Unit will be reflected in IR 100 of the other Unit. IR 001 is an input word and IR 100 is an output word.
385 SECTION 9 Memory Cassette 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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
! ! 386 9-1 Memory Cassettes Th e C200HS comes equipped with a built-in RAM for the user ’s program so pro- grams can be created even without installing a Memory Cassette. An optional Memory Cassette, however , can provide flexibility in handling program data, PC Setup data, DM data, I/O comment data, and other IOM Area data.
387 Word Function Bit(s) SR 270 00 Save UM to Cassette Bit Data transferred to Memory Cassette when Bit is turned ON in PROGRAM mode. Bit will automaticall y turn OFF . 01 Load UM from Cassette Bit ON in PROGRAM mode . Bit will automatically turn OFF .
388 4. T urn on the CPU. 5. I f the desired program or UM Area data is not already in the CPU, write the data or transfer it to the CPU. 6. Switch the C200HS to PROGRAM mode. 7. T urn ON SR 27000 from the LSS or a Programming Console. The UM Area data will be written to the Memory Card and SR 27000 will be turned OFF automatically .
389 Note The data inside the Memory Cassette should be protected by turning on the write-protect switch whenever you are not planning to write to the Cassette. Writing Data The following procedure is used to write IOM data from the C200HS CPU to a Memory Cassette mounted in the CPU.
391 SECTION 10 T r oubleshooting The C200HS provides self-diagnostic functions to identify many types of abnormal system conditions. These functions mini- mize downtime and enable quick, smooth error correction. This section provides information on hardware and software errors that occur during PC operation.
! 392 10-1 Alarm Indicators The ALM/ERR indicator on the front of the CPU provides visual indication of an abnormality in the PC. When the indicator is ON (ERROR), a fatal error (i.e., ones that will stop PC operation) has occurred; when the indicator is flashing (ALARM), a nonfatal error has occurred.
393 The type of error can be quickly determined from the indicators on the CPU, as described below for the three types of errors. If the status of an indicator is not mentioned in the description, it makes no difference whether it is lit or not. After eliminating the cause of an error , clear the error message from memory before resuming operation.
394 Error and message Possible correction Probable cause FA L no. High-density I/O Unit error SYS F AIL F AL9A 9A An error occurred in data transfer between a High-density I/O Unit and the CPU. Check AR 0205 to AR 0214 to identify the Unit with a problem, replace the Unit, and restart the PC.
395 Fatal Operating Errors T he following error messages appear for errors that occur after program execu- tion has been started. PC operation and program execution will stop and all out- puts from the PC will be turned OFF when any of the following errors occur .
396 Error and message Possible correction Probable cause FA L no. T oo many Units I/O UNIT OVER E1 T wo or more Special I/O Units are set to the same unit number T wo or more Group-2 High-density I/O Units are set to the same I/O number or I/O word. The I/O number of a 64-pt Group-2 High-density I/O Unit is set to 9.
397 10-5 Error Flags The following table lists the flags and other information provided in the SR and AR areas that can be used in troubleshooting. Details are provided in 3-4 SR Area and 3-5 AR Area .
398 AR Area Address(es) Function 0000 to 0009 Special I/O or PC Link Unit Error Flags 0010 SYSMAC LINK/SYSMAC NET Link Level 1 System Error Flags 001 1 SYSMAC LINK/SYSMAC NET Link Level 0 System Error.
399 10-6 Host Link Errors These error codes are received as the response code (end code) when a com- mand received by the C200HS from a host computer cannot be processed.
401 SECTION 1 1 Host Link Commands This section explains the methods and procedures for using host link commands, which can be used for host link communica- tions via the C200HS ports. 1 1-1 Communications Procedure 402 . . . . . . . . . . . . . . . .
402 1 1-1 Communications Procedure Command Chart The commands listed in the chart below can be used for host link communica- tions w ith the C200HS. These commands are all sent from the host computer to the PC.
403 Host link communications are executed by means an exchange of commands an d responses between the host computer and the PC. With the C200HS, there are two communications methods that can be used. One is the normal method, in which commands are issued from the host computer to the PC.
404 When commands are issued to the host computer , the data is transmitted in one direction from the PC to the host computer . If a response to a command is re- quired use a host link communications command to write the response from the host computer to the PC.
405 Long T ransmissions T h e largest block of data that can be transmitted as a single frame is 131 charac- ters. A command or response of 132 characters or more must therefore be di- vided into more than one frame before transmission.
406 time a frame is received and checking the result against the FCS that is included in the frame makes it possible to check for data errors in the frame.
407 Reception Format When TXD(––) is executed, the data stored in the words beginning with the first send word is converted to ASCII and output to the host computer as a host link command in the format shown below . The “@” symbol, node number , header code, FCS, and delimiter are all added automatically when the transmission is sent.
408 Response Format @ RL x 10 1 x 10 0 x 16 1 x 16 0 : ↵ x 16 3 x 16 2 x 16 1 x 16 0 FCS Node no. Header code End code Read data (1 word) Read data (for number of words read) T erminator Parameters Read Data (Response) The contents of the number of words specified by the command are returned in hexadecimal as a response.
409 cimal as a response. The PVs are returned in order , starting with the specified beginning timer/counter . 1 1-3-5 TC ST A TUS READ –– RG Reads the status of the Completion Flags of the specified number of timers/ counters, starting from the specified timer/counter .
410 1 1-3-7 AR AREA READ –– RJ Reads the contents of the specified number of AR words, starting from the speci- fied word. Command Format @ RJ FCS x 10 1 x 10 0 x 10 3 x 10 2 : ↵ x 10 1 x 10 0 x 10 3 x 10 2 x 10 1 x 10 0 T erminator Beginning word (0000 to 0027) Node no.
41 1 1 1-3-9 LR AREA WRITE –– WL Writes data to the LR area, starting from the specified word. W riting is done word by word. Command Format @ WL FCS x 10 1 x 10 0 x 10 3 x 10 2 : ↵ x 10 1 x 10 0 x 16 3 x 16 2 x 16 1 x 16 0 Node no.
412 1 1-3-1 1 PV WRITE –– WC Writes the PVs (present values) of timers/counters starting from the specified timer/counter . Command Format @ WC FCS x 10 1 x 10 0 x 10 3 x 10 2 : ↵ x 10 1 x 10 0 x 16 3 x 16 2 x 16 1 x 16 0 Node no. Header code T erminator Beginning timer/counter (0000 to 051 1) Write data (1 timer/counter) Write data (for no.
413 Note If data is specified for writing which exceeds the allowable range, an error will be generated and the writing operation will not be executed.
414 Parameters Write Data (Command) Specify i n order the contents of the number of words to be written to the AR area in hexadecimal, starting with the specified beginning word. Note If data is specified for writing which exceeds the allowable range, an error will be generated and the writing operation will not be executed.
415 1 1-3-16 SV READ 2 –– R$ Reads the constant SV or the word address where the SV is stored. The SV that is read is a 4-digit decimal number (BCD) written as the second operand for the TIM, TIMH(15), CNT , CNTR(12), or TTIM(87) instruction at the specified pro- gram address in the user ’s program.
416 1 1-3-17 SV READ 3 –– R% Reads the constant SV or the word address where the SV is stored. The SV that is read is a 4-digit decimal number (BCD) written in the second word of the TIM, TIMH(15), C N T , CNTR(12), or TTIM(87) instruction at the specified program ad- dress in the user ’ s program.
417 1 1-3-18 SV CHANGE 1 –– W# Searches for the first instance of the specified TIM, TIMH(15), CNT , CNTR(12), or TTIM(87) instruction in the user ’s program and changes the SV to new constant SV specified in the second word of the instruction.
418 Parameters Name, TC Number (Command) In “Name”, specify the name of the instruction, in four characters, for changing the SV . In “TC number”, specify the timer/counter number used for the instruc- tion.
419 Parameters Name, TC Number (Command) In “Name”, specify the name of the instruction, in four characters, for changing the SV . In “TC number”, specify the timer/counter number used for the instruc- tion.
420 Parameters Status Data, Message (Response) “Status data” consists of four digits (two bytes) hexadecimal. The leftmost byte indicates CPU operation mode, and the rightmost byte indicates the size of the program area. 15 14 13 12 1 1 10 9 8 00 0 98 00 10 1 1 x 16 3 x 16 2 This area is different from that of ST A TUS WRITE.
421 Parameters Mode Data (Command) “Mode data” consists of two digits (one byte) hexadecimal. With the leftmost tw o bits, specify the PC operating mode. Set all of the remaining bits to “0”. RUN mode 7 6543210 000000 10 00 10 1 1 x 16 1 PROGRAM mode MONITOR mode Bit Bit Operation mode This area is different from that of ST A TUS READ.
422 Error Information (Response) The error information comes in two words. 15 14 13 12 1 1 10 9 8 00 x 16 3 x 16 2 7654 x 16 1 3210 x 16 0 ON: Battery error (Error code F7) ON: Special I/O Unit error .
423 Parameters Name, W ord address, Bit (Command) In “Name”, specify the area (i.e., IR, SR, LR, HR, AR, or TC) that is to be forced set. Specify the name in four characters. In “W ord address”, specify the address of the word, and in “Bit” the number of the bit that is to be forced set.
424 Note 1. The area specified under “Name” must be in four characters. Fill any gaps with spaces to make a total of four characters. 2. Words 253 to 255 cannot be set when the CIO Area is specified.
425 Forced set/reset/cancel Data (Command) A separate hexadecimal digit is used to specify the desired process for each bit in the specified word, bits 00 to bit 5.
426 Parameters Model Code “Model code” indicates the PC model in two digits hexadecimal. Model code Model 01 C250 02 C500 03 C120 0E C2000 10 C1000H 11 C2000H/CQM1 12 C20H/C28H/C40H/C200H/C200HS 2.
427 Parameters Program (Response) The program is read from the entire program area. Note T o stop this operation in progress, execute the ABORT (XZ) command. 1 1-3-31 PROGRAM WRITE –– WP Writes t o the PC user’s program area the machine language (object code) pro- gram transmitted from the host computer .
428 Command Format @ QQ x 10 0 x 10 1 x 10 3 x 10 2 x 10 1 x 10 0 OP1 OP2 OP3 OP4 M OP1 OP2 x 10 3 x 10 2 x 10 1 x 10 0 OP1 OP2 OP3 OP4 OP1 OP2 ↵ : Node no. Header code T erminator FCS Sub-header code Read area Read word address Data format Data break Single read information T otal read information (128 max.
429 Data Break (Command) The read information is specified one item at a time separated by a break code (,). The maximum number of items that can be specified is 128. (When the PV of a timer/counter is specified, however , the status of the Completion Flag is also returned, and must therefore be counted as two items.
430 1 1-3-35 INITIALIZE –– :: Initializes the transmission control procedure of all the PCs connected to the host computer . The INITIALIZE command does not use node numbers or FCS, and does not receive a response.
431 1 1-4 Host Link Errors These error codes are received as the response code (end code) when a com- mand received by the C200HS from a host computer cannot be processed.
433 Appendix A Standard Models C200HS Racks Name Specifications Model number Backplane (same for all Racks) 10 slots C200H-BC101-V2 () 8 slots C200H-BC081-V2 5 slots C200H-BC051-V2 3 slots C200H-BC031.
Standard Models Appendix A 434 C200H Standard I/O Units Name Specifications Model number Input Units AC Input Unit 8 pts 100 to 120 V AC C200H-IA121 16 pts 100 to 120 V AC C200H-IA122/122V 8 pts 200 t.
Appendix A Standard Models 435 C200H Group-2 High-density I/O Units Name Specifications Model number DC Input Unit 32 pts. 24 VDC C200H-ID216 C200H-ID218 64 pts. 24 VDC C200H-ID217 C200H-ID219 T ransistor Output Unit 32 pts. 16 mA 4.5 VDC to 100 mA 26.
Standard Models Appendix A 436 Name Model number Specifications Heat/Cool T emperature Control Unit Thermocou- ple T ransistor output C200H-TV001 V oltage output C200H-TV002 Current output C200H-TV003.
Appendix A Standard Models 437 SYSMAC LINK Unit/SYSMAC NET Link Unit Th e SYSMAC LINK Units and SYSMAC NET Link Unit can only be used with the C200HS-CPU31-E and C200HS- CPU33-E CPUs. Name Specifications Model number SYSMAC LINK Unit Wired via coaxial cable.
Standard Models Appendix A 438 Mounting Rails and Accessories Name Specification s Model number DIN T rack Mounting Bracket 1 set (2 included) C200H-DIN01 DIN T rack Length: 50 cm; height: 7.
Appendix A Standard Models 439 Name Model number Specifications All Plastic Optical Fiber Cable Set 1-m cable with an Optical Connector A connected to each end 3G5A2-PF101 Optical Fiber Processing Kit.
Standard Models Appendix A 440 Optical Power T ester Name Specifications Head Unit Model number Optical Power T ester (see note) (provided with a connector adapter , light source unit, small single-he.
Appendix A Standard Models 441 An Optical Fiber Cable Bracket must be used to support an optical fiber cable connected to the C200HS-SNT32 SYSMAC NET Link Unit or C200HS-SLK12 SYSMAC LINK Unit. User optical fiber cables with both tension members and power supply lines.
443 Appendix B Programming Instructions A PC instruction is input either by pressing the corresponding Programming Console key(s) (e.g., LD, AND, OR, NOT) or b y using function codes. T o input an instruction with its function code, press FUN, the function code, and then WRITE.
Appendix B Programming Instructions 444 Code Page Function Name Mnemonic 13 DIFU DIFFERENTIA TE UP T urns ON the designated bit for one cycle on the rising edge of the input signal. 131 14 DIFD DIFFERENTIA TE DOWN T urns ON the bit for one cycle on the trailing edge.
Appendix B Programming Instructions 445 Code Page Function Name Mnemonic (@)52 MLB BINARY MUL TIPL Y Multiplies two four-digit hexadecimal values and outputs result to specified result words. 224 (@)53 DVB BINARY DIVIDE Divides four-digit hexadecimal dividend by four-digit hexa- decimal divisor and outputs result to specified result words.
Appendix B Programming Instructions 446 Code Page Function Name Mnemonic (@)86 ASC ASCII CONVERT Converts hexadecimal values from the source word to eight-bit ASCII code starting at leftmost or rightmost half of starting destination word. 194 87 to 89 For expansion instructions.
Appendix B Programming Instructions 447 Code Page Function Name Mnemonic 89 (@)INT INTERRUPT CONTROL Performs interrupt control, such as masking and un- masking the interrupt bits for I/O interrupts. 262 --- 7SEG 7-SEGMENT DISPLA Y OUTPUT Converts 4- or 8-digit BCD data to 7-segment display format and then outputs the converted data.
Appendix B Programming Instructions 448 Code Page Function Name Mnemonic --- (@)XDMR EXP ANSION DM READ 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.
449 Appendix C Error and Arithmetic Flag Operation The following table shows the instructions that affect the ER, CY , GR, LE and EQ flags. In general, ER indicates that operand data is not within requirements. CY indicates arithmetic or data shift results.
Appendix C Error and Arithmetic Flag Operation 450 Instructions Page 25507 (LE) 25506 (EQ) 25505 (GR) 25504 (CY) 25503 (ER) MLB(52) Unaffected Unaf fected Unaffected 224 DVB(53) Unaf fected Unaffected.
Appendix C Error and Arithmetic Flag Operation 451 Instructions Page 25507 (LE) 25506 (EQ) 25505 (GR) 25504 (CY) 25503 (ER) FPD(––) Unaf fected Unaffected Unaf fected 285 HEX(––) Unaf fected U.
Appendix C Error and Arithmetic Flag Operation 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 af fect the ER, CY , and EQ Flags.
453 Appendix D Memory Areas Overview The following table shows the data areas in PC memory . Area Size Range Comments I/O Area 480 bits IR 000 to IR 029 Group-2 High-density I/O Unit Area 320 bits IR 030 to IR 049 Can be used as ordinary I/O or , if not used for real I/O, can be used as work bits.
Appendix D Memory Areas 454 SR Area Word(s) Bit(s) Function 236 00 to 07 Node loop status output area for operating level 0 of SYSMAC NET Link System 08 to 15 Node loop status output area for operatin.
Appendix D Memory Areas 455 Word(s) Function Bit(s) 254 00 1-minute clock pulse bit 01 0.02-second clock pulse bit 02 and 03 Reserved for function expansion.
Appendix D Memory Areas 456 Word(s) Function Bit(s) 267 00 to 04 Reserved by system (not accessible by user) 05 Host Link Level 0 Send Ready Flag 06 to 12 Reserved by system (not accessible by user) 1.
Appendix D Memory Areas 457 Word(s) Function Bit(s) 273 00 Save IOM to Cassette Bit Data transferred to Memory Cassette when Bit is turned ON in PROGRAM mode. Bit will automaticall y turn OFF . 01 Load IOM from Cassette Bit ON in PROGRAM mode . Bit will automatically turn OFF .
Appendix D Memory Areas 458 AR Area Word(s) Bit(s) Function 00 00 to 09 Error Flags for Special I/O Units 0 to 9 (also function as Error Flags for PC Link Units) 10 Error Flag for operating level 1 of.
Appendix D Memory Areas 459 Word(s) Function Bit(s) 23 00 to 15 Power Off Counter (BCD) 24 00 to 04 Reserved by system. 05 Cycle T ime Flag 06 SYSMAC LINK System Network Parameter Flag for operating l.
461 Appendix E PC Setup Word(s) Bit(s) Function Default Startup Processing (DM 6600 to DM 6614) The following settings are effective after transfer to the PC only after the PC is restarted. DM 6600 00 to 07 Startup mode (ef fective when bits 08 to 15 are set to 02).
Appendix E PC Setup 462 Word(s) Bit(s) Function Default Interrupt/Refresh Processing (DM 6620 to DM 6622) The following settings are effective after transfer to the PC the next time operation is started.
Appendix E PC Setup 463 Word(s) Default Function Bit(s) DM 6648 00 to 07 Node number (Host link) 00 to 31 (BCD) 0 08 to 1 1 Start code enable (RS-232C) 0: Disable; 1: Set Disabled 12 to 15 End code en.
Appendix E PC Setup 464 Word(s) Default Function Bit(s) DM 6654 00 to 07 Start code (RS-232C) 00 to FF (binary) 0000 08 to 15 12 to 15 of DM 6653 set to 0: Number of bytes received 00: Default setting.
465 Appendix F W ord 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, timers, and counters.
466 Programmer: Program: Date: Page: 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 .
467 Programmer: Program: Date: Page: Area: Word: Bit Usage Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Area: Word: Bit Usage Notes 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Area: Word:.
468 Programmer: Program: Date: Page: Word Contents Notes W ord Contents Notes Data Storage.
469 Programmer: Program: Date: Page: TC address T or C Set value Notes TC address T or C Set value Notes Timers and Counters.
471 Appendix G Program Coding Sheet Th e following page can be copied for use in coding ladder diagram programs. It is 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) for operands.
472 Programmer: Program: Date: Page: Address Instruction Operand(s) Address Instruction Operand(s) Address Instruction Operand(s) Program Coding Sheet.
473 Appendix H Data Conversion T ables Normal Data Decimal BCD Hex Binary 00 00000000 00 00000000 01 00000001 01 00000001 02 00000010 02 00000010 03 0000001 1 03 0000001 1 04 00000100 04 00000100 05 0.
Data Conversion T ables Appendix H 474 Signed Binary Data Decimal 16-bit Hex 32-bit Hex 2147483647 2147483646 . . . 32768 32767 32766 . . . 5 4 3 2 1 0 –1 –2 –3 –4 –5 . . . –32767 –32768 –32769 . . . –2147483647 –2147483648 ––– ––– .
475 Appendix I Extended ASCII Programming Console Displays Bits 0 to 3 Bits 4 to 7 BIN 0000 0001 0010 001 1 0100 0101 01 10 01 1 1 1010 101 1 1 100 1 101 111 0 1111 HEX 0 1 2 3 4 5 6 7 A B C D E F 000.
477 Glossary address The location in memory where data is stored. For data areas, an address con- sists of a two-letter data area designation and a number that designates the word and/or bit location. For the UM area, an address designates the instruction location (UM area).
Glossary 478 bit designator An operand that is used to designate the bit or bits of a word to be used by an instruction. bit number A number that indicates the location of a bit within a word. Bit 00 is the rightmost (least-significant) bit; bit 15 is the leftmost (most-significant) bit.
Glossary 479 through a TC bit and used to count the number of times the status of a bit or an execution condition has changed from OFF to ON. CPU An acronym for central processing unit. In a PC System, the CPU executes the program, processes I/O signals, communicates with external devices, etc.
Glossary 480 differentiated instruction An instruction that is executed only once each time its execution condition goes from OFF to ON. Nondif ferentiated instructions are executed each cycle as long as the execution condition stays ON.
Glossary 481 extended timer A timer created in a program by using two or more timers in succession. Such a timer is capable of timing longer than any of the standard timers provided by the individual instructions.
Glossary 482 initialization error An error that occurs either in hardware or software during the PC System star- tup, i.e., during initialization. initialize Part of the startup process whereby some memory areas are cleared, system setup is checked, and default values are set.
Glossary 483 I/O Control Unit A Unit mounted to the CPU Rack in certain PCs to monitor and control I/O points on Expansion I/O Units. I/O devices The devices to which terminals on I/O Units, Special I/O Units, or Intelligent I/O Units are connected.
Glossary 484 Ladder Support Software A software package that provides most of the functions of the Factory Intelligent T erminal on an IBM A T , IBM XT , or compatible computer .
Glossary 485 main program All of a program except for the subroutines. masking ‘Covering’ a n interrupt signal so that the interrupt is not effective until the mask is removed. Master Short for Remote I/O Master Unit. memory area Any of the areas in the PC used to hold data or programs.
Glossary 486 NOT A logic operation which inverts the status of the operand. For example, AND NO T indicates an AND operation with the opposite of the actual status of the op- erand bit. NSB An acronym for Network Service Board. NSU An acronym for Network Service Unit.
Glossary 487 output point The point at which an output leaves the PC System. Output points correspond physically to terminals or connector pins. output signal A signal being sent to an external device.
Glossary 488 grammable Controllers are used to automate control of external devices. Al- though single-component Programmable Controllers are available, build- ing-block Programmable Controllers are constructed from separate compo- nents.
Glossary 489 Remote I/O Unit Any of the Units in a Remote I/O System. Remote I/O Units include Masters, Slaves, Optical I/O Units, I/O Link Units, and Remote T erminals.
Glossary 490 slot A position on a Rack (Backplane) to which a Unit can be mounted. software error An error that originates in a software program. software protect A means of protecting data from being changed that uses software as opposed to a physical switch or other hardware setting.
Glossary 491 timer A location in memory accessed through a TC bit and used to time down from the timer ’s set value. T imers are turned ON and reset according to their execution conditions. TM area A memory area used to store the results of a trace.
Glossary 492 served for work words. Parts of other areas not required for special purposes m a y also be used as work words, e.g., LR words not used in a PC Link or Net Link System.
493 Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual. Cat. No. W235-E1-05 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.
Revision History 494 Revision code Revised content Date 2A April 1995 The following instructions have been corrected: ASFT(––) to ASFT(17), XFRB(––) to XFRB(62), MCMP(––) t o MCMP(19), CMP.
Revision History 495 Revision code Revised content Date 2B July 1995 The following corrections and additions were made. Page 6: SYSMAC Support Software added and LSS removed. Pages 23 and 374: Default communications parameters changed. Page 26: I/O T erminals and B7A Interface Unit added and macro bits corrected.
497 Index A address tracing. See tracing, data tracing. addresses, in data area: sec3 27 advanced I/O instructions 7-SEGMENT DISPLA Y OUTPUT : 5–24 on 305 DIGIT AL SWITCH INPUT : 5–24 on 308 funct.
Index 498 converting between hex and ASCII: sec7 354 I/O Unit designations: 4–1 to 4–6 88 Programming Console, English/Japanese switch: 4–1 to 4–6 80 DM area, allocating UM to expansion DM: sec7 366 E ER.
Index 499 WC: sec1 1 412 WD: sec1 1 413 WG: sec1 1 412 WH: sec1 1 41 1 WJ: sec1 1 413 WL: sec1 1 41 1 WP: sec1 1 427 WR: sec1 1 410 XZ: sec1 1 429 host link errors: sec1 1 431 Host Link Systems, error.
Index 500 OR: 4–1 to 4–6 69 ; 5–1 to 5–14 129 combining with AND: 4−1 to 4−6 69 OR LD: 4–1 to 4–6 72 ; 5–1 to 5–14 130 combining with AND LD: 4−1 to 4−6 73 use in logic blocks:.
Index 501 memory areas: appD 453 clearing: 4–1 to 4–6 82 definition: sec3 25 Memory Cassette, installing: sec2 21 Memory Cassettes transferring C200H programs: sec1 11 UM Area/IOM data: sec9 386 m.
Index 502 Special I/O Units. See Units SR area: sec3 33–48 stack operation COLL(81): 5–15 to 5–17 164 DIST(80): 5–15 to 5–17 162 ST ARTUP MODE, PC Setup: sec3 59 ST ARTUP SETTINGS, PC Setup: sec3 59 status indicators.
Un punto importante, dopo l’acquisto del dispositivo (o anche prima di acquisto) è quello di leggere il manuale. Dobbiamo farlo per diversi motivi semplici:
Se non hai ancora comprato il Omron C200HS è un buon momento per familiarizzare con i dati di base del prodotto. Prime consultare le pagine iniziali del manuale d’uso, che si trova al di sopra. Dovresti trovare lì i dati tecnici più importanti del Omron C200HS - in questo modo è possibile verificare se l’apparecchio soddisfa le tue esigenze. Esplorando le pagine segenti del manuali d’uso Omron C200HS imparerai tutte le caratteristiche del prodotto e le informazioni sul suo funzionamento. Le informazioni sul Omron C200HS ti aiuteranno sicuramente a prendere una decisione relativa all’acquisto.
In una situazione in cui hai già il Omron C200HS, ma non hai ancora letto il manuale d’uso, dovresti farlo per le ragioni sopra descritte. Saprai quindi se hai correttamente usato le funzioni disponibili, e se hai commesso errori che possono ridurre la durata di vita del Omron C200HS.
Tuttavia, uno dei ruoli più importanti per l’utente svolti dal manuale d’uso è quello di aiutare a risolvere i problemi con il Omron C200HS. Quasi sempre, ci troverai Troubleshooting, cioè i guasti più frequenti e malfunzionamenti del dispositivo Omron C200HS insieme con le istruzioni su come risolverli. Anche se non si riesci a risolvere il problema, il manuale d’uso ti mostrerà il percorso di ulteriori procedimenti – il contatto con il centro servizio clienti o il servizio più vicino.