Omron SYSMAC C200H-CT001-V1 Operation Manual

Omron SYSMAC C200H-CT001-V1 Operation Manual

High-speed counter units
Hide thumbs Also See for SYSMAC C200H-CT001-V1:

Advertisement

Cat.No. W141–E1–4
SYSMAC
C200H-CT001-V1/CT002
High-speed Counter Units
OPERATION MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Omron SYSMAC C200H-CT001-V1

  • Page 1 Cat.No. W141–E1–4 SYSMAC C200H-CT001-V1/CT002 High-speed Counter Units OPERATION MANUAL...
  • Page 3 C200H-CT001-V1/CT002 High-speed Counter Units Operation Manual Revised September 2000...
  • Page 5 OMRON. No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice.
  • Page 7: Table Of Contents

    TABLE OF CONTENTS PRECAUTIONS ....... . . 1 Intended Audience .
  • Page 9 About this Manual: This manual covers specifications and procedures necessary for the installation and operation of the C200H-CT001-V1 and C200H-CT002 High-speed Counter Units. It includes example system configu- rations to ease the implementation cycle. The C200H-CT001-V1 and C200H-CT002 are Special I/O Units for C200H PCs.
  • Page 11: Precautions

    PRECAUTIONS This section provides general precautions for using C200H-CT001-V1/CT002 High-speed Counter Units and related devices. The information contained in this section is important for the safe and reliable application of the C200H- CT001-V1/CT002 High-speed Counter Units. You must read this section and understand the information contained before attempting to set up or operate a C200H-CT001-V1/CT002 High-speed Counter Unit.
  • Page 12: Intended Audience

    It is extremely important that a PC and all PC Units be used for the specified purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life. You must consult with your OMRON representative before applying a PC system to the above-mentioned applications.
  • Page 13: Operating Environment Precautions

    Application Precautions Operating Environment Precautions Caution Do not operate the control system in the following locations: • Locations subject to direct sunlight. • Locations subject to temperatures or humidity outside the range specified in the specifications. • Locations subject to condensation as the result of severe changes in tempera- ture.
  • Page 14 Application Precautions • Interlock circuits, limit circuits, and similar safety measures in external circuits (i.e., not in the Programmable Controller) must be provided by the customer. • Always use the power supply voltages specified in this manual. An incorrect voltage may result in malfunction or burning. •...
  • Page 15: Introduction

    SECTION 1 Introduction This section introduces the High-speed Counter Unit. It starts by describing Unit nomenclature and then describes the type of system the Units are generally incorporated it. This section ends with an introduction to the six operating modes, which are described in more detail in Section 4.
  • Page 16: Introduction

    Section 1-2 Nomenclature Introduction The C200H-CT001-V1 and C200H-CT002 are Special I/O Units for C200H PCs. The C200H-CT001-V1 can be connected directly to an incremental encoder with an open-collector output or source output to function as a high-speed, re- versible counter capable of counting at a maximum of 50 kcps. The C200H-CT002 can be connected directly to an incremental encoder with an RS-422 line driver output or through an Encoder Adapter to an incremental en- coder with a open-collector output to function as a high-speed, reversible count-...
  • Page 17: System Configuration

    Section 1-3 System Configuration System Configuration Example Configuration The following example system configuration uses the Counter Unit to deter- mine whether or not product length is acceptable. The length of the products passing by on the conveyor is measured by using the output from a photo- electric switch to initiate and end counting of pulses output from an encoder.
  • Page 18: Operating Modes

    Section 1-4 Operating Modes Operating Modes The Counter Unit can be operated in any one of the six operating modes de- scribed below. External outputs are available in only 3 modes: linear, circular, and preset. The function of these outputs depends on the mode. (The mode is selected using the mode selector on the front panel of the Counter Unit, as de- scribed in 2-1 Switch Settings.) The following is merely an introduction to the op- erating modes, all of which are covered in detail in Section 4 Data Allocation and...
  • Page 19 Section 1-4 Operating Modes IN1 and IN2 may originate either externally or internally. This mode does not support external outputs from the Counter Unit or data transfer. Sampling Mode In sampling mode, pulses are counted for a preset interval after control input IN1 (the count signal) is turned ON.
  • Page 21: Switch Settings And Wiring

    SECTION 2 Switch Settings and Wiring This section provides the Unit settings and connector cable pin specifications. Instructions for the construction of input and output connectors are provided. Electrical schematics and examples are presented to further explain Unit operation. Switch Settings .
  • Page 22: Switch Settings

    Section 2-1 Switch Settings Switch Settings Always turn off the Counter Unit before setting the unit number and mode selec- tors. Use a regular screwdriver, being careful not to damage the slot in the screw. Be sure not to leave a selector midway between settings. Front Panel DIP Switch Switch name Function...
  • Page 23 Section 2-1 Switch Settings Back Panel DIP Switch This switch must be set before the Counter Unit is mounted. It is not neces- sary to set all the pins for all operating modes. Refer to 3-2 Input Selection and Section 4 Data Allocation and Operating Modes for operational details. Input Selection Pins 1 through 3 are used to select the type of inputs for inputs A and B.
  • Page 24: Wiring

    Section 2-2 Wiring Wiring Connector Pin Arrangement Names of inputs and outputs and the pin arrangement of the connector are shown below (as viewed from the front). The connector is a Fujitsu FCN-361J040 (solder type), and is included with the Counter Unit. C200H-CT001-V1 Row B Pin no.
  • Page 25 Section 2-2 Wiring C200H-CT002 Row B Pin no. Row A Input A: neg. Input A: pos. Input B: neg. Input B: pos. Input Z: neg. Input Z: pos. Control input IN1: 12/24 VDC Control input IN1: 0 V Control input IN1: 5 VDC Control input IN2: 12/24 VDC Control input IN2: 0 V Control input IN2: 5 VDC...
  • Page 26 Section 2-2 Wiring Differentiating Cables and Input and output cables can be differentiated by position, as shown on the Connector Pin Numbers right below. Alignment with the connector pin numbers is also as shown on the left below. Please make sure you are wiring to the correct pins. Shape of connector on the reverse side.
  • Page 27 Section 2-2 Wiring each input. The terminals for output power supply, 5 to 24 VDC and COM (0 V), are separated into two: those for outputs 0 through 7. These are not intercon- nected internally. If the 5 to 24 VDC and COM (0 V) terminals for the output pow- er supply are connected incorrectly, an internal fuse will burn out, preventing op- eration.
  • Page 28 Section 2-2 Wiring C200H-CT001-V1 Input Circuits 1.6 kΩ B20..Input A: 24 VDC 560 Ω A20..Input A: 12 VDC A19..Input A: 5 VDC Rectifier B19..Input A: 0 V 1.6 kΩ B18..Input B: 24 VDC 560 Ω A18..
  • Page 29 Section 2-2 Wiring C200H-CT001-V1 Output Circuits B8..Output power supply: 5 to 24 VDC A8..Output 0 A7..Output 1 A6..Output 2 A5..Output 3 Fuse 0.5 A B6..Output COM: 0 V B4..Output power supply: 5 to 24 VDC A4..
  • Page 30 Section 2-2 Wiring C200H-CT002 Input Circuits A19..Input A: pos. B19..Input A: neg. A17..Input B: pos. B17..Input B: neg. A15..Input Z: pos. B15..Input Z: neg. 1.3 kΩ Control input A13..IN1: 12/24 VDC A12..Control input IN1: 5 VDC Filter B15..
  • Page 31 Section 2-2 Wiring C200H-CT002 Output Circuits B8..Output power supply: 5 to 24 VDC A8..Output 0 A7..Output 1 A6..Output 2 A5..Output 3 Fuse 0.5 A B6..Output COM: 0 V B4..Output power supply: 5 to 24 VDC A4..
  • Page 32: Input Circuit Wiring Examples

    Section 2-3 Input Circuit Wiring Examples Input Circuit Wiring Examples 2-3-1 C200H-CT001-V1 Examples The following wiring examples show connections between encoders and in- puts A, B, and Z. Example 1 This example shows the connections that would be used for a 12-VDC power 12-VDC, Open-collector supply and an incremental encoder with a open-collector output.
  • Page 33 Section 2-3 Input Circuit Wiring Examples Example 2 This example shows the connections that would be used for a 12-VDC power 12-VDC, Voltage-output, supply and a sync-load encoder with a voltage output. When the encoder Sync-load Encoder output is high, the input to the Counter Unit turns OFF. When the encoder output is low, the input to the Counter Unit turns ON.
  • Page 34 Section 2-3 Input Circuit Wiring Examples Example 3 This example shows the connections that would be used for a 5-VDC power 5 VDC, Voltage-output, supply and a source-load encoder with a voltage output. Here, attention must Source-load Encoder be paid to the ON voltage. 5-VDC 5 VDC power...
  • Page 35: C200H-Ct002

    Section 2-3 Input Circuit Wiring Examples 2-3-2 C200H-CT002 Example 1 The following wiring examples shows connections between a line-driver en- Line-driver Encoder coder (Am26LS31-compatible) with outputs A, B, Z and inputs A, B, and Z. Power supply C200H-CT002 Counter Unit Encoder Shielded twisted pair cable Input A...
  • Page 36 Section 2-3 Input Circuit Wiring Examples Control Input Wiring In order to prevent chattering, install the input wiring with as few contacts as Examples possible. 12- to 12 to 24 VDC 24-VDC power Counter Unit supply – Control input IN1 12/24 V Sensor Filter...
  • Page 37 Section 2-3 Input Circuit Wiring Examples External Output Wiring The following example shows output wiring with outputs 0 through 3 con- Example nected to relays and outputs 4 through 7 connected to TTL devices. Counter Unit 5 to 24 VDC 5 to 24 VDC Relay Output 0...
  • Page 38: Dimensions

    Section 2-4 Dimensions Dimensions Unit Dimensions (Unit: mm) 100.5 Mounted Dimensions (Unit: mm) Rack Connecting cable Approx. 200...
  • Page 39: Operation

    SECTION 3 Operation This section describes the operational flow of the counting system. The input types are identified along with instructions for their use. Data transfer timing is described in relation to the PC cycle time. Operational Flow ............Input Selection .
  • Page 40: Operational Flow

    Section 3-2 Input Selection Operational Flow Each Special I/O Unit mounted under a C200H PC is assigned a unit number between 0 and 9. The unit number assigned to the Counter Unit determines the 100 DM words and 10 IR words that will be allocated to it. DM words are used for Counter Unit parameters;...
  • Page 41 Section 3-2 Input Selection Units. The following example shows calculations E6B-CWZ3C Incremental Encoder when used with the C200H-CT001-V1. Rotational directions are giv- en as viewed from the end of the encoder shaft. Encoder Specifications Power supply 4.75 to 13.2 VDC, ripple (p-p): 5% max. Current consumption 50 mA max.
  • Page 42 Section 3-2 Input Selection C200H-CT002, the pulse width of input Z must be 10 or greater, and the re- turn frequency, allowing for software processing time, must be 10 kcps or less. 3-2-2 Up and Down Pulses With separate up and down pulse inputs, the counter value is incremented or decremented on the rising edge of the appropriate input.
  • Page 43: Counter Reset Conditions

    Section 3-3 Counter Reset Conditions Counter Reset Conditions Counter reset conditions vary according to the combination of inputs used and pin settings on the back panel DIP switch. The DIP switch settings required for the input combinations shown in the following table and the operating modes that can be used with each are shown on the next page.
  • Page 44: Data Transfer Timing

    Section 3-4 Data Transfer Timing DIP Switch Settings Pins 1 through 3 do not affect resetting Pattern number on Pin Settings Possible operating modes previous page Linear Circular Preset *These pins may be either ON or OFF. Data Transfer Timing Data transfer is available in linear and circular modes to change ranges limit set- tings or the current counter value and in preset mode to change range limit set- tings.
  • Page 45 Section 3-4 Data Transfer Timing Data Transfer Input and output data is transferred during the I/O refresh cycle. This means that PC acknowledgement of inputs from the Counter Unit (e.g., status) and Counter Unit acknowledgement of outputs from the PC (e.g., commands) are delayed until the next I/O refresh cycle, as shown below.
  • Page 47: Data Allocation And Operating Modes

    SECTION 4 Data Allocation and Operating Modes This section describes the various operating modes in detail. Each mode is described by data allocation, timing charts, commands, flags, and examples. Data formats are explained. Data Configuration and Allocation ......... . . 4-2-1 Data Allocation .
  • Page 48: Data Configuration And Allocation

    Section 4-1 Data Configuration and Allocation Data Configuration and Allocation IR words 100 through 199 are allocated as I/O refresh areas. Each Counter Unit is allocated 10 consecutive words (although not all modes use all 10 words). The first IR word for each Counter Unit, designated in this manual as n, can be com- puted from the unit numbers as follows: n = 100 + 10 x unit number.
  • Page 49 Section 4-1 Data Configuration and Allocation These allocations are shown below for all unit numbers. Details of allocations within these words are given under the operating modes to which they apply. A quick overview of word and bit allocations is available in Appendix C IR Area Al- locations and Appendix D DM Area Coding Sheets.
  • Page 50: Linear And Circular Modes

    Section 4-2 Linear and Circular Modes Data Format Data is allocated by either bit or by word, though it is often input and output by decimal digit, i.e., four bits (BCD), or by hexadecimal digit. Counter val- ues, upper and lower limits of ranges, and some other data are held in two adjacent words, sometimes with a sign digit, in the following format.
  • Page 51 Section 4-2 Linear and Circular Modes DM Area The DM area contains user parameters that are to be set into the Counter Unit, including the operating mode and output range limits. The first DM word for each Counter Unit is indicated by m and equals 1,000 plus 100 times the unit number.
  • Page 52 Section 4-2 Linear and Circular Modes IR Area The IR area contains commands and status information. Inputs and outputs are given in reference to the PC, i.e., output data is sent from the PC to the Counter Unit; input data, from the Counter Unit to the PC. The first IR word for each Counter Unit is indicated by n and equals 100 plus 10 times the unit number.
  • Page 53: Dm Area Settings

    Section 4-2 Linear and Circular Modes 4-2-2 DM Area Settings Operating Mode DM word m, bits 11 through 08 The operating mode is set with the mode selector on the front panel. Refer to 1-4 Operating Modes for an overview of available modes. Effective Range Bits DM word m+1 Bit numbers correspond to range numbers, i.e., but 0 corresponds to range #0;...
  • Page 54: Ir Area Settings

    Section 4-2 Linear and Circular Modes 4-2-3 IR Area Settings The IR area contains commands used to operate the Counter Unit and flags used to monitor its operation. Both of these are used in programming the desired counter operations. START Command Word n, bit 00 Counting starts on rising edge of the START command bit and stops on the fall- ing edge.
  • Page 55 Section 4-2 Linear and Circular Modes TRANSFER DATA can be set to change output ranges or, if the first word being transferred contains FF, it can be set to preset or change the current counter val- ue. Data in the proper format must be prepared in consecutive words in the PC through the PC program or the Programming Console.
  • Page 56 Section 4-2 Linear and Circular Modes the first and then every third word and input the counter values into the two words after each word containing FF. The last counter value must be followed by three unused words to satisfy the requirement for six words for the last counter value. This setup is shown on the next page for three counter values, with the first PC word indicated by k.
  • Page 57 Section 4-2 Linear and Circular Modes Program 25315 MOV (21) First Cycle Flag #0000 (SW2) (SW1) 00001 00000 TRANSFER DATA SWITCH DIFU (13) 03000 03000 10000 MOV (21) Word 102: Beginning #1900 word (START/STOP) MOV (21) Word 103: Number of words and data area #0300 10001...
  • Page 58 Section 4-2 Linear and Circular Modes digits of the counter value, the switch connected to the Input Unit allocated word 04 is used to input the sign digit and the leftmost four digits of the counter value. Procedure 1, 2, 3... 1. The desired counter value is input with the rotary switches as I/O words 3 and 4.
  • Page 59 Section 4-2 Linear and Circular Modes Z Flag Word n+4, bit 01 The Z flag indicates the status of input Z. When the flag is ON, the input is high; when the flag is OFF, the input is low. This flag can be accessed during counting. Note The Z flag may not turn ON if the Z phase pulse width is less than or equal to the C200H/C200HS cycle time +3 ms.
  • Page 60: Timing Chart

    Section 4-2 Linear and Circular Modes Output Flags Word n+9 The number of each bit in IR word n+9 corresponds to an output number. An out- put flag is ON whenever the specified output is ON. Output flags are turned ON regardless of the status of ENABLE OUTPUT.
  • Page 61: Application Examples

    Section 4-2 Linear and Circular Modes 4-2-5 Application Examples Linear Operating Mode: Controlling Conveyor Processing System Configuration An encoder adapter is required Output Unit C200H-OC224 if the C200H-CT002 is used with Counter Unit an open-collector encoder. Outputs 0 through 3 C200H PC Process indicators Inputs A and B...
  • Page 62 Section 4-2 Linear and Circular Modes DM Area Settings DM 1100 Sets the mode to 1 (linear). Enables ranges #0, #1, #2, and #3. DM 1101 DM 1110 Range #0 (work piece at station 1) DM 1111 Lower limit: 1000; upper limit: 1200 Output pattern specifies that output #0 be turned DM 1112 ON when the counter value is within range #0...
  • Page 63 Section 4-2 Linear and Circular Modes Program Start switch START and ENABLE OUTPUT are ON while 11000 the start switch is ON. 11002 11909 11908 Station 1 Processing is performed at station 1 when the current count- processing er value is within range #0. 11909 11908 Processing is performed at station 2 when the current count-...
  • Page 64 Section 4-2 Linear and Circular Modes Circular Operating Mode: Functioning as Mechanical Cam Switches System Configuration Counter Unit Encoder adapter C200H PC Outputs #1, #6, and #7 An encoder adapter is required if the C200H-CT002 is used with an open-collector encoder. Inputs A, B, and Z Encoder Motor...
  • Page 65 Section 4-2 Linear and Circular Modes DM Area Settings DM 1100 Sets the mode to 1 (linear). Enables ranges #0, #1, #2, and #3. DM 1101 DM 1102 Sets the maximum counter value to 4,999. (The counter values change as follows : 0, DM 1103 1,...4998, 4999, 0, 1,...) DM 1110...
  • Page 66: Preset Mode

    Section 4-3 Preset Mode Preset Mode In preset mode counter values are decremented (or incremented) according to any of the three types of input pulses. When the start signal is set, the counter value begins from a specified, preset value (maximum: 8,388,607). Up to 20 counter values can be preset.
  • Page 67 Section 4-3 Preset Mode Word Function m+15 11 through 00 15 through 12 Output pattern #0 (for preset #0); Bit 12: output #4 Bit 13: output #5 Bit 14: output #6 Bit 15: output #7 Word Function Word Function m+16 m+36 Preset #1 and output pattern #1 Preset #11 and output pattern #11...
  • Page 68 Section 4-3 Preset Mode Outputs Word Function START command (The START command is effective only when pin 4 on the back-panel DIP switch is turned OFF. If pin 4 is ON, control input IN2 is used to start and stop the Counter Unit.) TRANSFER DATA command ENABLE OUTPUT command...
  • Page 69: Dm Area Settings

    Section 4-3 Preset Mode Inputs Word Function Counting flag Not used. IN1 flag Not used. Transfer completed flag. Error flag Count overflow flag Reset flag Output #0 flag (external output possible) Output #1 flag (external output possible) Output #2 flag (external output possible) Output #3 flag (external output possible) Output #4 flag (external output possible) Output #5 flag (external output possible)
  • Page 70: Ir Area Settings

    Section 4-3 Preset Mode ON/OFF Counter Values DM words m+1 through m+11 ON Time Outputs #0 though #2 turn ON and OFF according to the counter values set in DM words m+1 through m+10. The only exception is that output #0 turns ON at the beginning of the countdown.
  • Page 71 Section 4-3 Preset Mode Set this bit to enable external output of outputs #0 though #7. The status of the outputs is shown on indicators 0 though 7 when outputs are enabled. Word n+9 status is output regardless of the condition of ENABLE OUTPUT. ENABLE FORCED OUTPUT Word n, bit 07 Command...
  • Page 72 Section 4-3 Preset Mode Set to between 0 and 4. Indicates the PC data area from which data is to be transferred. Indications are as follows: Setting Data area Note Use only the following words in the DM and IR areas: DM 0000 to DM 1999 and IR 000 to IR 235.
  • Page 73 Section 4-3 Preset Mode occurred, information on other errors can be output to IR word n+5 by again set- ting READ ERROR. Error Location Word n+5, bit 07 through 00 The error location gives the rightmost two digits of the DM address, i.e., the bit number, where the data causing the error is stored.
  • Page 74: Timing Chart

    Section 4-3 Preset Mode 4-3-4 Timing Chart The following chart shows timing relationships between the command bits (input bits) and output bits in preset mode when the counter is reset during the count- down. É É É É É É É É É É Preset counter value É...
  • Page 75: Application Example

    Section 4-3 Preset Mode Forced outputs are possible only when the counting flag is OFF. Normal operation is returned to when the start signal is set during forced output. Forced outputs becomes inoperative during normal operation. When RESET COUNTER is set during a forced output, the external out put is momentarily turned OFF, then restored to the status designated by the relevant force bit.
  • Page 76 Section 4-3 Preset Mode É É É É É É É É É É É Counter preset value É É É É É É É É É É É Current counter value É É É É É É É É É É É Setting example Parameter Setting (ms)
  • Page 77: Gate, Latch, And Sampling Modes

    Section 4-4 Gate, Latch, and Sampling Modes Program RESET COUNTER Counter and outputs reset. 11006 25315 MOV (21) Preset number set (here, to 00). Programming within the #0000 (ON for one cycle) dotted line can be omitted if the preset number is 00. 11004 25313 (usually ON) ENABLE OUTPUT turned ON.
  • Page 78: Data Allocation

    Section 4-4 Gate, Latch, and Sampling Modes 4-4-1 Data Allocation DM Area The DM area contains the user-input parameters that are to be set into the Counter Unit. The first DM word for each Counter Unit is indicated by m and equals 1,000 plus 100 times the unit number.
  • Page 79: Dm Area Settings

    Section 4-4 Gate, Latch, and Sampling Modes Word Function − Current counter value, 6 digits with sign (–8,388,608 to 8,388,607) − Not used Note 1. The RUN indicator will be lit whenever the counting flag (word n+4, bit 00) is ON. 2.
  • Page 80: Timing Charts

    Section 4-4 Gate, Latch, and Sampling Modes In sampling mode, IN1 is the count signal. In latch mode, IN1 is the count signal and IN2 the latch signal. Error Flag Word n+4, bit 05 The error flag is turned ON whenever an error has occurred. Information on the type and location of the error is available in IR word n+5 upon execution of READ ERROR.
  • Page 81 Section 4-4 Gate, Latch, and Sampling Modes Normal Gate Mode Control input IN1 (start/stop) External or internal (word n, bit 03) É É É É É É É É É É É É É É É É É É É É É...
  • Page 82 Section 4-4 Gate, Latch, and Sampling Modes Latch Mode Control input IN1 (start) External or internal (word, bit 03) Control input IN2 (latch signal) External or internal (word n, bit 04) É É É É É É É É É É É É É É É...
  • Page 83 Section 4-4 Gate, Latch, and Sampling Modes Sampling Mode Control input IN1 (start) External or internal (word n, bit 03) Sampling time (word n+1) SET TIME (word n, bit 1) Counting flag (word n+4, bit 00) É É É É É É É É É É Sampling time Word n + 1 É...
  • Page 84: Application Examples

    Section 4-4 Gate, Latch, and Sampling Modes 4-4-5 Application Examples Gate Mode: Measuring Product Length System Configuration Counter Unit Control Input IN1 C200H PC An encoder adapter Encoder adapter Inputs A and B is required if the C200H-CT002 is Photoelectric switch for used with an open- detecting product collector encoder.
  • Page 85 Section 4-4 Gate, Latch, and Sampling Modes Program 11400 Counting flag DIFD (14) 03000 25313 Normally ON CLC (41) 03000 SUBL (55) Compares counter value to minimum value DM 0000 DM 0004 CY flag 25504 Output when length S KEEP is shorter than the 00000 11400...
  • Page 86 Section 4-4 Gate, Latch, and Sampling Modes Latch Mode: Monitoring Quantity at a Processing Station System Configuration Transistor Output Unit An encoder adapter is required C200H-OD211 if the C200H-CT002 is used with an open-collector encoder C200H PC Control switch (control input IN1) Latch switch (Control input IN2) Encoder adapter...
  • Page 87 Section 4-4 Gate, Latch, and Sampling Modes Switch Settings In this example, the unit number selector is set to 1 and the mode selector is set to 5. All pins except number 1 are turned OFF on the back panel DIP switch to designate increment/decrement inputs.
  • Page 88 Section 4-4 Gate, Latch, and Sampling Modes Program (ON for one 25315 cycle.) MOV (21) Initializes strobe data. #1111 03000 ANDW (34) Outputs 10 and 10 when strobe 0 = ”1” #00FF 03001 MOVD (83) Outputs 10 and 10 when strobe 1 = ”1” #0012 03002 ANDW (34)
  • Page 89 Section 4-4 Gate, Latch, and Sampling Modes Sampling Mode Example 1: Weighing Objects System Configuration Counter Unit Control input IN1 C200H PC Proximity switch for count signal Encoder adapter An encoder adapter is required Inputs A and B if the C200H-CT002 is used with an open-collector encoder.
  • Page 90 Section 4-4 Gate, Latch, and Sampling Modes Program 25315 (ON for one cycle.) MOV (21) Sets the sampling time to 3 s. #3000 SET TIME 11001 11400 Counting flag Detects the completion of weighing DIFD (14) 03000 (OFF during counting). 03000 The current counter value is stored MOV (21)
  • Page 91 Section 4-4 Gate, Latch, and Sampling Modes be the number of pulses per second times 60 divided by the number of pulses per shaft rotation (i.e., 200), or 0.3 times the pulse count per second. Switch Settings In this examples, the unit number selector is set to 1 and the mode selector is set to 6.
  • Page 92 Section 4-4 Gate, Latch, and Sampling Modes Program 25313 Normally ON. MOV (21) #1000 Sets the sampling time to 1,000 ms. 1101 MOV (21) #0003 DM 0000 Inputs 0000 and 0003 to DM 0000 and DM 0001, respec- tively. MOV (21) #0000 DM 0001 MOV (21)
  • Page 93: Error Processing

    SECTION 5 Error Processing This section presents possible errors and solutions and describes how to handle errors from the PC. The AR area Error and Restart Flags are described. Error Indications ............Troubleshooting from the PC .
  • Page 94: Error Indications

    Section 5-2 Troubleshooting from the PC Error Indications When an error occurs, the ERROR indicator will light and the error flag will turn ON. Error information is then output to IR word n+5 when READ ERROR is set. READ ERROR can be set as many times as necessary to access further error information.
  • Page 95 Section 5-2 Troubleshooting from the PC AR Area Error and Restart Flags for Special I/O Units Error Flags The following error flags will turn ON when the same unit number is assigned to more than one Special I/O Unit, or when the refreshing operation between the PC and the Special I/O Unit is not normally executed.
  • Page 97: A Error Codes

    Appendix A Error Codes Code Error type Meaning Numeric Data is not BCD or data is 0. Counting range Data is less than –8,388,608 or greater than 8,388,607. (Circular mode: data is less than 0 or greater than 65,535.) Inconsistent data The mode setting on the front panel and the operating mode set in DM area are inconsistent, or upper and lower settings for ranges are reversed.
  • Page 99: B Specifications

    Appendix B Specifications Item Specification Number of axes One per Counter Unit Operating modes Any of the following six: Linear mode Circular mode Preset mode Gate mode Latch mode Sampling mode Count input signals Input A Input B Counting signal level CT001-V1: 5, 12, or 24 VDC (Selected when wiring).
  • Page 100 Appendix B Specifications I/O Specifications Output Specifications (Outputs 0 through 7) Item Specification Switching capacity 6 mA at 4.5 VDC to 80 mA at 26.4 VDC (Refer to table below.) Maximum: 320 mA/common Leak current 0.1 mA max. Residual voltage 0.4 V max.
  • Page 101 Appendix B Specifications C200H-CT001-V1 Input Specifications Item Inputs A, B, and Z Control inputs IN1 and IN2 Input voltage 5 VDC10% 12 VDC10% 24 VDC10% 5 VDC10% 12 or 24 VDC10% Input current 12 mA typical (7.5 to 18 mA) 4 to 7 mA 4 to 13 mA ON voltage (min.)
  • Page 102 Appendix B Specifications C200H-CT002 Input Specifications Item Inputs A, B, and Z Control inputs IN1 and IN2 Input voltage 5 VDC10% 12 or 24 VDC10% 4 to 7 mA 4 to 13 mA Input current ON voltage (min.) 4.5 VDC 10.2 VDC Same as the RS-422 line driver (Am26LS31-compatible).
  • Page 103: C Ir Area Allocations

    Appendix C IR Area Allocations (n = 100 + 10 x unit no.) Linear and Circular Operating Modes Word Output force bits Range enable bits TRANSFER DATA beginning channel number Number of transfers TRANSFER DATA data area Error code Error location Current counter value (rightmost 4 digits) Current counter value (sign and leftmost 3 digits) Range flags...
  • Page 104 Appendix C IR Area Allocations Preset Operating Mode Word Output force bits Range enable bits TRANSFER DATA beginning channel number Number of transfers TRANSFER DATA data area Output flags Error code Error location Current counter value, 7 digits Range flags Gate, Latch, and Sampling Operating Modes Word Sampling time...
  • Page 105: D Dm Area Coding Sheets

    Appendix D DM Area Coding Sheets m = 1000 + (100 x unit no.) Linear and Circular Operating Modes DM 00 through 99 Word 15–00 Function Word 15–00 Function Word 15–00 Function Operating mode Lower limit, Lower limit, range #5 range #12 Effective range bits Maximum counter value...
  • Page 106 Appendix D DM Area Coding Sheets Preset Operating Mode 15–00 Function 15–00 Function 15–00 Function Word Word Word 0 Operating mode Preset #10 OFF counter value for output #0 Preset #11 ON counter value for output #1 Preset #12 OFF counter value for output #1 Preset #13 ON counter value...
  • Page 107: Index

    Index data transfer, 26 See also Unit, Counter – transferring data area, 40 Am26LS31–compatible, 12 delay precaution, 31 applications, precautions, xiii in Remote I/O Systems, 31 relation to PC scan time, 30 AR area, error and restart flags, 81 source, 41 circular mode DIP switch setting.
  • Page 108 Index error DM area allocation, 37 in gate, latch and sampling mode, 66 IR area allocation, 38 in linear/circular mode, 45 IR area settings/commands, 40 in preset mode, 58 operation, 36 error in operation, 81 timing relationships, 46 use with Offset Phase input, 26 use with Pulse and Direction inputs, 28 in gate, latch and sampling mode, 66 use with Up and Down Pulse input, 28...
  • Page 109 Index specifications, Encoder, 27 input circuit examples, 18 input selection, 26 switch setting linear mode, 36 See also Unit, Counter – switch setting mounting location, 3 precaution, 8 Offset Phase input, 26 using the multiplier, 26 operating modes, 4, 30 switch settings, 29 operation, 26 pin settings, 30...
  • Page 110: Revision History

    Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual. Cat. No. W141-E1-4 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.

This manual is also suitable for:

Sysmac c200h-ct002-v1

Table of Contents