background image

OPERATION MANUAL

High-speed Counter Units

CS1W-CT021
CS1W-CT041

Cat. No. W902-E2-03

Summary of Contents for CS1W-CT021

Page 1: ...OPERATION MANUAL High speed Counter Units CS1W CT021 CS1W CT041 Cat No W902 E2 03...

Page 2: ...CS1W CT021 CT041 High speed Counter Units Operation Manual Revised August 2004 W902 E2 03 book Seite iii Donnerstag 7 Oktober 2004 2 06 14...

Page 3: ...W902 E2 03 book Seite iv Donnerstag 7 Oktober 2004 2 06 14...

Page 4: ...reviated Wd in documentation in this sense The abbreviation PLC means Programmable Logic Controller and is not used as an abbreviation for any thing else Visual Aids The following headings appear in t...

Page 5: ...W902 E2 03 book Seite vi Donnerstag 7 Oktober 2004 2 06 14...

Page 6: ...allation and Wiring 25 2 1 Components and Switch Settings 26 2 2 Installation 30 2 3 Wiring 32 SECTION 3 Operation and Configuration 45 3 1 Overview 46 3 2 Counter Types 47 3 3 Input Signal Types 55 3...

Page 7: ...tioning 164 6 5 Speed Control 169 Appendices Appendix A Comparison with C200H CT021 172 Appendix B Using Terminal Block Units with Screw terminals 175 Appendix C Assigning External Interrupt Tasks to...

Page 8: ...components wiring and installing the CS1W CT021 CT041 High speed Counter Unit Section 3 provides information about the configuration and operation of the CS1W CT021 CT041 High speed Counter Unit Secti...

Page 9: ...njury or death damage to the product or product failure Please read each section in its entirety and be sure you understand the informa tion provided in the section and related sections before attempt...

Page 10: ...lication of the High speed Counter Unit You must read this section and understand the information contained before attempting to set up or operate a High speed Counter Unit and PLC system 1 Intended A...

Page 11: ...this manual before operation and keep this manual close at hand for reference during operation WARNING It is extremely important that a PLC and all PLC Units be used for the specified purpose and und...

Page 12: ...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 Locati...

Page 13: ...s i e not in the Programmable Controller must be provided by the customer If the IOM Hold Bit is turned ON the outputs from the PLC will not be turned OFF and will maintain their previous status when...

Page 14: ...execution before actually running it on the Unit Not checking the program may result in an unexpected operation Confirm that no adverse effect will occur in the system before attempting any of the fo...

Page 15: ...follows EMS Electromagnetic Susceptibility EN61131 2 EMI Electromagnetic Interference EN50081 2 Radiated emission 10 m regulations Low Voltage Directive Always ensure that devices operating at voltage...

Page 16: ...2 1 2 Basic Configuration 5 1 3 Specifications and Characteristics 7 1 3 1 General Specifications 7 1 3 2 Functional Specifications 8 1 3 3 Input Specifications 11 1 3 4 Output Specifications 13 1 4...

Page 17: ...adjusted by changing the configuration settings Counter Type Configuring the Unit starts with choosing one out of 3 Counter Types Simple Counter refer to 3 2 1 Simple Counter Circular Counter refer to...

Page 18: ...r or an Overflow Under flow error occurs Additionally Outputs can be configured with an NPN or PNP Output driver refer to 3 5 4 Output Control Configuration Resetting Counter Value Resetting of the Co...

Page 19: ...figured to generate interrupts to the PLC in order to have a minimal response time enabling fast control of applications Generating interrupts is only possible when the High speed Counter Unit is moun...

Page 20: ...sors for Digital Inputs Relais Motor Interface ON OFF High Low Speed Forward Reverse Brake ON OFF M Other Actuators Lamp Typical applicable Actuators for Digital Outputs Incremental Encoder Proximity...

Page 21: ...maximum number of CS1 CT021 CT041 High speed Counter Units is limited to 24 because the Unit is allocated 40 CIO words and 400 DM words in the Special I O Unit Area Furthermore the number of High spee...

Page 22: ...ords refer to 4 2 4 DM Mem ory Mapping Item CS1W CT021 CT041 Unit type CS1 Special I O Unit General Specifications Conform to general specifications for SYSMAC CS1 series Operating Temperature 0 to 55...

Page 23: ...Digital Outputs and 28 Soft Outputs refer to 3 5 Output Control Input Signal Types Phase Differential multiplication x1 multiplication x2 and multiplication x4 refer to 3 3 1 Phase Differential Up Do...

Page 24: ...story Log File Rate Values from the Rate History Log File can be read using the IORD instruction Additionally for every Counter two Rate Ranges can be defined that control the Outputs according to the...

Page 25: ...r Value refer to 4 5 3 1 Captured Counter Value Rate History Log File Data refer to 4 5 3 2 Rate History Log File data Counter Value refer to 4 5 3 3 Counter Value Re Configure High speed Counter Unit...

Page 26: ...m Counter Inputs A and B Digital Inputs I0 I1 I2 and I3 Input Voltage 24 VDC 19 6 to 26 4 V 12 VDC 9 8 to 13 2V 5 VDC 4 5 to 5 5V Line Driver 24 VDC 19 6 to 26 4 V Input Current typical 8 mA 8 mA 7 mA...

Page 27: ...uts Counter inputs A and B Input pulses with a duty factor of 50 C A A B B 50 Off On E Z 50 Off On Counter inputs A and B Input pulses with a duty factor of 50 Relationship between A and B phases with...

Page 28: ...he Outputs can be automatically or manually controlled DM setting by using Force ON OFF bits in CIO refer to 3 5 Output Control 5 The state control of the 32 Outputs in case the operating mode of the...

Page 29: ...the functional blocks that the Unit has available to you to operate and configure the Unit refer to Operation and Configuration The numbers in grey refer to the table on page 16 to indicate which func...

Page 30: ...ctional blocks that the Unit has available to you to exchange data with the CS1 CPU refer to Exchanging Data with CPU CS1 CPU O0 O1 O2 O3 I0 I1 I2 I3 IOWR IORD Interrupts Interrupts 13 13 14 15 Unit O...

Page 31: ...on default No Function Gate Positive Gate Negative Preset Rising Edge Preset Falling Edge Reset Rising Edge Reset Falling Edge Capture Rising Edge Capture Falling Edge Stop Capture and Continue Stop C...

Page 32: ...ed Simple Counter Circular Linear Counter Reference section 7 Reset Signals 3 6 Software Reset Bit Software Reset Bit Digital Input Z signal 3 6 8 Programmable Output Pulses 3 7 1 No default Yes 3 7 1...

Page 33: ...r Comparison Mode Furthermore 4 additional control mechanisms are available to control the Outputs Programmable Output Pulse Output State Control Manual Control and Hysteresis Refer to 3 5 Output Cont...

Page 34: ...Values then it is also possible to use the work words of the Special I O Unit DM Area to store the Range or Comparison Data 197 work words for the CT041 and 287 work words for the CT021 are available...

Page 35: ...chosen for Configuration 2 or 3 If you have chosen for Configuration 1 the Unit is ready to operate Consequently guidelines to be followed after step 5 will depend on the Configuration made in step 1...

Page 36: ...uration 2 or 3 in step 1 Configuration is done by making the appropriate DM settings The Unit can be configured by using CX Programmer Support Software or a Programming Console Two Programming Console...

Page 37: ...CPU Refer to sections 6 2 to 6 5 for application examples using Circular and Linear Counters Refer to 3 2 2 Circular Counter and 3 2 3 Linear Counter for more details about both Counter Types Refer to...

Page 38: ...sitioning refer to 6 3 Positioning and 6 4 CAM positioning Position Monitoring Length Measurement refer to 6 2 Length Measurement Speed Control refer to 6 5 Speed Control Flow Control refer to 6 1 Flo...

Page 39: ...W902 E2 03 book Seite 24 Donnerstag 7 Oktober 2004 2 06 14...

Page 40: ...witch Settings 26 2 1 1 Components 26 2 1 2 Indicators 27 2 1 3 Counter Type Switch 28 2 1 4 Machine Number Switch 29 2 2 Installation 30 2 3 Wiring 32 2 3 1 Connector Pin layout 32 2 3 2 Connector Wi...

Page 41: ...A A B B B B Z Z Z Z I0 I1 I2 I3 O0 O1 O2 O3 130 mm 35 mm 35 mm Indicators CT021 X101 MACH NO X100 RUN CH1 CH2 ERC ERH A A B B Z Z I0 I1 I2 I3 O0 O1 O2 O3 35 mm CN1 CN2 CN1 CN2 A B A B 1 20 1 20 A B A...

Page 42: ...o operational failure ERH Red ON CPU Unit has operational failure For a list of all the errors that can occur at the CPU Unit see 5 1 Error Indicators OFF CPU Unit has no operational failure CH1 2 3 4...

Page 43: ...r respectively The Simple Counter is an extra feature of the High speed Counter Unit that ena bles an easy and fast set up of the Unit since no DM configuration settings have to be made all default 00...

Page 44: ...to the High speed Counter Unit Since the Unit is allocated 400 DM words and 40 CIO words the Machine Number can only be set between 00 and 92 The Machine Numbers 93 94 and 95 can not be set Switch Set...

Page 45: ...in DM EM This extra allocated amount of memory is used to make the Counter Specific Settings related to Range or Comparison Mode Memory is allocated by specifying an Indirect Address for every Counter...

Page 46: ...r with a maximum tightening torque of 0 4 Nm Note To remove the Unit first loosen the mounting screws Leave enough space below each Rack as shown in the following diagram to be able to mount or remove...

Page 47: ...f PS PS lines on CN1 or CN2 In case the Digital Out puts are not used in your application no external power has to be supplied Item Connector 2 CN2 Pin No Connector 1 CN1 Pin No Row A Row B Row A Row...

Page 48: ...and 24VDC signals to any Counter To the CS1W CT021 5VDC and 12VDC signals can be applied only to Counters 1 and 2 respectively The CS1W CT041 allows connecting 5VDC and 12VDC signals only to Counter...

Page 49: ...st important part is the connector jack FCN 361J040 that contains 40 soldering terminals to which the wires have to be soldered Wiring the soldering terminals Cable separation A B A20 A1 A2 A3 A4 A5 A...

Page 50: ...pur pose you should use a Terminal Block Unit The following Terminal Block Units are recommended for using together with the CS1W CT021 CT041 High speed Counter Unit XW2B 40G4 which has 40 screw termi...

Page 51: ...iring Considerations Use the following guidelines when planning the system wiring of the Unit Disconnect the power to the PLC system before wiring the Unit Make sure the PLC system is properly grounde...

Page 52: ...4V B9 24V B16 24V B16 24V A9 5V A9 12V A16 5V A16 12V B8 LD B8 LD B15 LD B15 LD A8 0V LD A8 0V LD A15 0V LD A15 0V LD Counter 1 Counter 2 Counter 3 Counter 4 B11 24V B11 24V B18 24V B18 24V A11 5V A11...

Page 53: ...3 CN1 Digital Output O1 NPN A2 CN2 Digital Output O2 NPN A3 CN2 Digital Output O3 NPN A1 CN1 and CN2 PS 0V COM for Digital Outputs O0 O3 B2 CN2 Digital Output O2 PNP Internal Circuitry galvanically is...

Page 54: ...4 VDC NPN Sensor 24 VDC PNP Sensor NPN Sensor 0V 24 V Shielded twisted pair cable 24 V DC Power Supply High speed Counter Digital Input I0 on Connector CN1 B5 A5 PNP Sensor 24 V 0V Shielded twisted pa...

Page 55: ...1 or CN2 PS Internal Circuitry 12 to 24 V DC Power Suply Load Load Load Load 12 to 24 V 0V NPN NPN NPN NPN PNP PNP PNP PNP Digital Output O0 PNP Digital Output O1 NPN Digital Output O2 PNP Digital Out...

Page 56: ...g equipment with similar output drivers 5 12 24 VDC NPN Open Collector High speed Counter Terminals CN1 B9 Phase A 24V A8 Phase A 0V B11 Phase B 24V A10 Phase B 0V B13 Phase Z 24V A12 Phase Z 0V Count...

Page 57: ...ounter 2 Black Phase A White Phase B Orange Phase Z Brown Vcc Blue 0V COM 24V DC Power Supply 0V 24V Ex E6C2 CWZ5B PNP Open Collector outputs Encoder IZ IB IA Phase A Phase B Phase Z Encoder Connector...

Page 58: ...Black Phase A Black red Phase A White Phase B White red Phase B Orange Phase Z Orange red Phase Z Brown 5V DC Blue 0V COM Encoder Ex E6B2 CWZ1X Line Driver outputs 5V DC Power Supply 0V 5V A A B B Z...

Page 59: ...A 2 Section 2 3 W902 E2 03 book Seite 44 Donnerstag 7 Oktober 2004 2 06 14...

Page 60: ...se Direction 57 3 4 Digital Input Functions 58 3 5 Output Control 65 3 5 1 Range Mode 67 3 5 1 1 Range Mode Overview 69 3 5 1 2 Configuration and operation in Range Mode 70 3 5 2 Comparison Mode 72 3...

Page 61: ...ple Counter which is done by DIP switch In the Special I O Unit DM area that is allocated to the High speed Coun ter after the Unit has been properly installed see 1 5 Operating Procedure Guidelines a...

Page 62: ...Unit are available and configurable For Simple Counters only the default functions and features are supported since the Unit ignores the DM settings for Simple Counters Counter Value For all Counter...

Page 63: ...igital Inputs and Outputs can generate Interrupts if Interrupts have been enabled in a mixed configuration with Simple Circular Linear Counters The four Digital Outputs use an NPN Output Driver The Di...

Page 64: ...ount pulses will have no effect The Over and Underflow flags can be cleared by forcing a Preset or a Reset Gating of a Simple Counter The Gate of a Simple Counter can be opened and closed using the Op...

Page 65: ...CNT2 CNT3 CNT4 n 2 n 5 n 8 n 11 Open Gate 0 1 Open Gate Close Gate 0 1 Close Gate 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 A rising edge of the Open Gate Bit opens the Gate regardless of the state of the...

Page 66: ...utput ON Selection Automatic Manual 0 Automatic Output Control 1 Manual Output Control Bits 0 1 2 and 3 correspond to the Physical Digital Outputs O0 O1 O2 and O3 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...

Page 67: ...ds the Upper Count Value and continues counting If the Counter Value goes below 0 the Counter rolls over to the Upper Count Value and continues counting CNT1 CNT2 CNT3 CNT4 m 30 m 75 m 120 m 165 Count...

Page 68: ...eport a corresponding error code You can use Overflow Underflow Error Code Generation to store Overflow and underflow errors in the EEPROM inside the Unit refer to 5 2 3 Overflow Underflow errors Anot...

Page 69: ...169 m 35 m 80 m 125 m 170 m 36 m 81 m 126 m 171 Lower Count Limit Set Upper Count Limit for Linear Counters between 00000001H and 7FFFFFFFH By default 00000000H the Upper Count Limit is equal to 7FFFF...

Page 70: ...the counter increments If signal B leads to A the counter decrements CNT1 CNT2 CNT3 CNT4 m 31 m 76 m 121 m 166 Signal Type 0 Phase Differential multiplication x1 1 Phase Differential multiplication x...

Page 71: ...further increase the resolution of the incremental encoder Multiplication 4 should be selected If the Counter is up counting signal A leads to signal B pulses are taken into account by the Counter on...

Page 72: ...ements on the rising edges of input A If input B is low the Counter decrements on the rising edges of input A Note For Counter Reset options refer to 3 6 Reset Signals Incremental encoder or other pul...

Page 73: ...o a Counter i 4 Digital Inputs can only be assigned to single Counters Consequently if all Digital Inputs are assigned to one Counter they are not available anymore for the other Counters Note Every D...

Page 74: ...an be configured to generate an Interrupt to the CPU For details refer to 4 6 2 Digital Inputs Generating Interrupts I0 I1 I2 I3 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 m 17 m 18 m 19 m 20 Digital Input...

Page 75: ...the Counter with the Preset Value on a rising edge Preset Rising Edge Function 03 or falling edge Preset Falling Edge Function 04 of the Digital Input signal This will cause the Counter Value to be o...

Page 76: ...3 6 Reset Signals for detailed information about resetting Counters CNT1 CNT2 CNT3 CNT4 n 2 n 5 n 8 n 11 Preset Counter 0 1 Preset Counter 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 CNT1 CNT2 CNT3 CNT4 n 3...

Page 77: ...Input configured to have Stop Capture and Continue functionality will Stop the Counter close the Gate and Capture the current Counter Value into the Capture Register on a rising edge of the signal app...

Page 78: ...nto the Capture Register and Reset the Counter to zero on a rising edge Capture reset Rising Edge Function 13 or falling edge Capture Reset Falling Edge Function 14 of the signal applied to the Digita...

Page 79: ...reflects the status of all Digital Inputs However very short pulses on the Digital Inputs shorter than the PLC cycle may not be seen in the Digital Status Word Action Status The Preset Reset and Captu...

Page 80: ...the Unit is configured for Range Mode all four Counters will operate in Range Mode If the Unit is configured for Comparison Mode all four Counters will operate in Comparison Mode Besides automatically...

Page 81: ...control outputs of an external Digital Output Unit Note Every Soft and Digital Output can be configured to generate an Interrupt to the CPU For details refer to 4 6 1 Outputs Generating Interrupts 31...

Page 82: ...ON for Counter Values within Range 1 Output 2 must be ON for Counter Values within Range 2 Both the Outputs 0 and 3 must be ON for Counter Values within Range 3 In the above example the Counter Value...

Page 83: ...lar Counter 0 00000000 H Rollover Counter Value Range 1 Range 0 Range 3 Range Lower Range Limit Upper Range Limit Output ON 0 1 2 3 60 000 500 37 000 000 99 000 80 500 45000 6000 150 000 0 1 3 2 0 3 R...

Page 84: ...E D Output Pattern Output Pattern Counter 1 Counter 2 Lower Range Limit Upper Range Limit Lower Range Limit Upper Range Limit Lower Range Limit Upper Range Limit Lower Range Limit Upper Range Limit L...

Page 85: ...ap ping In the Output Pattern of the Range every single Output can be configured to turn ON when that Range is active To configure an Output to turn ON you must set the corresponding bit to 1 If multi...

Page 86: ...used together to control an application you have the option to logically AND or OR the Counter Output Patterns to become the Unit Output Pattern In this way it is possible to turn Outputs ON or OFF de...

Page 87: ...omparisonMode with Linear Counter In this example 7 Comparison Values are specified On reaching a Comparison Value an Output can be Set or Reset depending on the crossing direction If the R R R R R S...

Page 88: ...pplied to a Circular Counter R R R R R S S S S R S Set in positive direction Set in negative direction Reset in positive direction Reset in negative directuib CV Value CV Crossing Out0 Out1 Out2 Out3...

Page 89: ...arison Value 31 E D E D Reset Pattern CV0 Set Pattern CV0 Set Pattern CV0 Reset Pattern CV0 Reset Pattern CV0 Set Pattern CV0 Set Pattern CV31 Reset Pattern CV31 Reset Pattern CV31 Set Pattern CV31 Se...

Page 90: ...direction Reset Pattern CV n specifying which Outputs must be Reset on reaching that CV in the negative counting direction 0 No Change 1 Reset Output To configure a Counter in Comparison Mode for ever...

Page 91: ...or remain Unchanged In this way every Counter is able to change the Unit Output Pattern Therefore the Unit Output Pattern is updated by all four Counters in the chronological order of crossing the CV...

Page 92: ...l the Physical Outputs 0 3 manually Manual Output Control must be selected by setting the Automatic Manual Output Control Bit to 1 Now it is possi ble to force ON and OFF the Physical Digital Outputs...

Page 93: ...ed to the Outputs If you choose to predefine the state of the Outputs 2 an Output pattern can be pre defined that will be applied to the Outputs when the operating mode is changed or when an I O Bus o...

Page 94: ...tal Input as Reset Source In order to use a Digital Input as Reset Source you must assign Function 5 6 11 12 13 or 14 to the corresponding Digital Input Refer to 3 4 Digital Input Func tions for more...

Page 95: ...Enable Source In order to use a Digital Input as Reset Enable Source you must assign Function 15 or 16 Enable Disable Reset to the corresponding Digital Input Refer to 3 4 Digital Input Functions for...

Page 96: ...put 0 3 of the Unit Output Pattern and consequently applied to the corresponding Digital Output Normal Functionality A Digital Output that is configured to have Normal Functionality will turn ON imme...

Page 97: ...ERN refer to 3 5 Output Control where the output may still be ON Referring to 3 5 1 1 Range Mode Overview this implies that the output will stay OFF while the counter value is still inside the range t...

Page 98: ...of the Time Window from the Counter Value at the end of the Time Window Rate Measurement can be done for all Input Signal Types refer to 3 3 Input Sig nal Types Calculating the Rate Value in this way...

Page 99: ...the incoming pulses can be calculated by using the following formula If for example the Time Window is set to 2 seconds 2000 ms and during the Time Window 20 000 up counts are received i e Rate Value...

Page 100: ...he Lower Rate Limit of the Rate Range Upper Rate Range Limit specifying the Upper Rate Limit of the Rate Range Output Set Pattern specifying which Outputs must be Set if the measured Rate Value is wit...

Page 101: ...9 m 34 m 39 Rate Range 0 Active not Active 0 Rate Range 0 not Active 1 Rate Range 0 Active Rate Range 1 Active not Active 0 Rate Range 1 not Active 1 Rate Range 1 Active 15 14 13 12 11 10 9 8 7 6 5 4...

Page 102: ...m 98 m 143 m 188 31 30 29 28 27 26 25 24 23 22 21 20 16 Output Set Pattern Rate Range 1 m 54 m 99 m 144 m 189 15 14 13 12 11 10 9 8 7 6 5 4 O3 O2 O1 O0 m 55 m 100 m 145 m 190 31 30 29 28 27 26 25 24...

Page 103: ...m which the Counter treats the fluctu ation in the Counter Input Signal as a real change and outputs can be controlled accordingly Configuring Hysteresis Note 1 The Hysteresis can only be applied to U...

Page 104: ...ntrol lines of the Digital Inputs also a Noise Filter is available In pairs for Digital Input 0 1 and for Digital Input 2 3 a Noise Filter can be configured General Setting m 7 Noise Filter Counter 1...

Page 105: ...errupt Task to program a transfer of the Counter Values of every Counter in CIO to the corresponding Initial Counter Value of that Counter in DM The data in DM is retained when the Power is OFF Theref...

Page 106: ...ng 105 4 2 5 Range Memory Mapping 116 4 2 6 Comparison Memory Mapping 120 4 3 IOWR Instruction 124 4 4 IORD Instruction 126 4 5 Supported IOWR IORD Instructions 128 4 5 1 DM data 128 4 5 2 Range and C...

Page 107: ...nit Area D 20000 N x 100 D 20000 N x 100 399 Counter 1 Counter 4 Counter 3 Counter 2 Output Words 400 Words General Counter 1 Counter 4 Counter 3 Counter 2 Input Words General Counter 1 Counter 4 Cou...

Page 108: ...Data is indicated by an Indirect Address that you have to specify for every Counter refer to 4 2 2 Indirect Addressing for detailed information The Special I O Unit DM Area contains the configuration...

Page 109: ...nter 3 n 34 n 30 Counter 4 n 39 n 35 DM Memory Mapping Refer to 4 2 4 for details General m 29 m Counter 1 m 74 m 30 Counter 2 m 119 m 75 Counter 3 m 164 m 120 Counter 4 m 202 m 165 Free DM m 399 m 20...

Page 110: ...l I O Unit DM Area that is allo cated to the High speed Counter Unit to store the Range Comparison Data If you use the CS1W CT021 you have 287 free DM words from 113 to 399 and if you use the CS1W CT0...

Page 111: ...at the data of CV s 1 to 14 is also valid although you do not intend to use CV 1 to 14 Configuring Indirect Addressing Indirect Addressing with the Unit in Range or Comparison Mode is specified in the...

Page 112: ...T3 CNT4 m 65 m 110 m 155 m 200 Memory Area 0 EM Extended Memory 1 DM Data Memory CNT1 CNT2 CNT3 CNT4 m 66 m 111 m 156 m 201 LSW m 67 m 112 m 157 m 202 MSW Indirect Address Set between 00000 BCD and 32...

Page 113: ...to n 13 and 26 Input Words n 14 to n 39 Note Double words in CIO are indicated as for example n 3 n 4 How to distinguish between the least and most significant words LSW and MSW within double words y...

Page 114: ...the rising edge from the error list in the High speed Counter Unit The error code can be read from CIO words n 17 and n 18 01 15 Not used Counter 1 n 2 00 Open Gate Open Gate 0 1 01 Close Gate Close...

Page 115: ...3 Reset Reset Counter Forced Reset to zero 0 1 04 Capture Capture Counter Value 0 1 05 Reset Enable Enable Resetting for Z signal Digital Input 1 06 15 Not used n 9 n 10 00 15 Preset Value Preset Valu...

Page 116: ...Data Transfer Busy 1 Unit is busy completing the IORD IOWR instruction or is being initialized 03 Data Transfer Completed Toggled every time Data Transfer is completed 04 IA Blocks overlap Indication...

Page 117: ...low 1 Upper Count Limit of Linear Counter is reached 01 Counter Underflow Counter Underflow 1 Lower Count Limit of Linear Counter is reached 02 Counter Running Gate Open Counter Running Gate Open 1 Co...

Page 118: ...pper Count Limit of Linear Counter is reached 01 Counter Underflow Counter Underflow 1 Lower Count Limit of Linear Counter is reached 02 Counter Running Gate Open Counter Running Gate Open 1 Counter S...

Page 119: ...w 1 Upper Count Limit of Linear Counter is reached 01 Counter Underflow Counter Underflow 1 Lower Count Limit of Linear Counter is reached 02 Counter Running Gate Open Counter Running Gate Open 1 Coun...

Page 120: ...d 00 m 1 00 15 Interrupt Task Offset Outputs Define Offset 0 192 BCD to execute External Interrupt Tasks 0 255 corresponding to Outputs 0 31 m 2 m 3 00 15 Interrupt Enable Data Outputs Enable 1 or Dis...

Page 121: ...lse Duration function is disabled m 11 00 15 Output Pulse Turn ON Delay Time Digital Output 1 Define Output Pulse Turn ON Delay time 0 9999 BCD ms m 12 00 15 Output Pulse Duration Digital Output 1 Def...

Page 122: ...ut 1 Function Function Digital Input 1 for a list refer to Digital Input 0 refer to 3 4 Digital Input Functions for details 08 15 Counter Number Counter Number 1 4 to which Digital Input 1 is connecte...

Page 123: ...ror code and turn OFF all outputs 08 15 Not used m 33 m 34 00 15 Upper Count Limit Circular Linear Circular Linear Counter Upper Count Limit m 35 m 36 00 15 Lower Count Limit Linear Linear Counter Low...

Page 124: ...Mode Bits set for non existing ranges or CV s will be ignored m 59 m 60 00 15 Output Set Pattern Output 0 31 Set Pattern for Comparison Mode 1 set 0 no change m 61 m 62 00 15 Output Reset Pattern Outp...

Page 125: ...ror code and turn OFF all outputs 08 15 Not used m 78 m 79 00 15 Upper Count Limit Circular Linear Circular Linear Counter Upper Count Limit m 80 m 81 00 15 Lower Count Limit Linear Linear Counter Low...

Page 126: ...e Bits set for non existing ranges or CV s will be ignored m 104 m 105 00 15 Output Set Pattern Output 0 31 Set Pattern for Comparison Mode 1 set 0 no change m 106 m 107 00 15 Output Reset Pattern Out...

Page 127: ...error code and turn OFF all outputs 08 15 Not used m 123 m 124 00 15 Upper Count Limit Circular Linear Circular Linear Counter Upper Count Limit m 125 m 126 00 15 Lower Count Limit Linear Linear Count...

Page 128: ...Mode Bits set for non existing ranges or CV s will be ignored m 149 m 150 00 15 Output Set Pattern Output 0 31 Set Pattern for Comparison Mode 1 set 0 no change m 151 m 152 00 15 Output Reset Pattern...

Page 129: ...error code and turn OFF all outputs 08 15 Not used m 168 m 169 00 15 Upper Count Limit Circular Linear Circular Linear Counter Upper Count Limit m 170 m 171 00 15 Lower Count Limit Linear Linear Count...

Page 130: ...Mode Bits set for non existing ranges or CV s will be ignored m 194 m 195 00 15 Output Set Pattern Output 0 31 Set Pattern for Comparison Mode 1 set 0 no change m 196 m 197 00 15 Output Reset Pattern...

Page 131: ...pper Limit and Output Pattern Range 14 k1 90 to k1 95 00 15 Range Data Range 15 Lower Upper Limit and Output Pattern Range 15 k1 96 to k1 101 00 15 Range Data Range 16 Lower Upper Limit and Output Pat...

Page 132: ...Output Pattern Range 14 k2 90 to k2 95 00 15 Range Data Range 15 Lower Upper Limit and Output Pattern Range 15 k2 96 to k2 101 00 15 Range Data Range 16 Lower Upper Limit and Output Pattern Range 16...

Page 133: ...imit and Output Pattern Range 14 k3 90 to k3 95 00 15 Range Data Range 15 Lower Upper Limit and Output Pattern Range 15 k3 96 to k3 101 00 15 Range Data Range 16 Lower Upper Limit and Output Pattern R...

Page 134: ...imit and Output Pattern Range 14 k4 90 to k4 95 00 15 Range Data Range 15 Lower Upper Limit and Output Pattern Range 15 k4 96 to k4 101 00 15 Range Data Range 16 Lower Upper Limit and Output Pattern R...

Page 135: ...9 00 15 CV Data CV13 CV13 and Output Set Reset patterns direction k1 140 to k1 149 00 15 CV Data CV14 CV14 and Output Set Reset patterns direction k1 150 to k1 159 00 15 CV Data CV15 CV15 and Output S...

Page 136: ...CV13 CV13 and Output Set Reset patterns direction k2 140 to k2 149 00 15 CV Data CV14 CV14 and Output Set Reset patterns direction k2 150 to k2 159 00 15 CV Data CV15 CV15 and Output Set Reset pattern...

Page 137: ...CV Data CV13 CV13 and Output Set Reset patterns direction k3 140 to k3 149 00 15 CV Data CV14 CV14 and Output Set Reset patterns direction k3 150 to k3 159 00 15 CV Data CV15 CV15 and Output Set Reset...

Page 138: ...CV Data CV13 CV13 and Output Set Reset patterns direction k4 140 to k4 149 00 15 CV Data CV14 CV14 and Output Set Reset patterns direction k4 150 to k4 159 00 15 CV Data CV15 CV15 and Output Set Reset...

Page 139: ...first word to be transferred D Destination Machine Number D and number of words D 1 to be transferred IOWR 223 IOWR 223 C C S S D D C CC2 Control Code 2 CC1 Control Code 1 15 14 13 12 11 10 9 8 7 6 5...

Page 140: ...ta transfer is completed The Global Error bit CIO n 19 bit 00 turns ON when the Unit detects any error that causes this bit to be set refer to 5 2 Error codes Note 1 If you omit to include the Data Tr...

Page 141: ...ds S 1 to be read D First Destination Word The PLC memory address of the first word where the read data is to be written IORD 222 IORD 222 C C S S D D C CC2 Control Code 2 CC1 Control Code 1 15 14 13...

Page 142: ...is not set after completion of the IORD instruction the Unit was busy or the Unit has detected an error Note 1 If you omit to include the Data Transfer Busy bit CIO n 19 bit 02 in the ladder instruct...

Page 143: ...Predefined Output Pattern N N m 23 to m 29 Not used Counter c c 1 2 3 4 m 30 Counter Type N N m 31 Signal Type N N m 32 Z reset Mode Y Y cE 01 1 Overflow Underflow error code generation N N m 33 m 34...

Page 144: ...nge Range Comparison Data inside the Unit or to read Range Com parison Data from the Unit during actual operation Depending on the mode of the Unit Range or Comparison mode the Control Code is interpr...

Page 145: ...transferred This number of words is equal to the number of Ranges x 6 Example The High speed Counter Unit with Machine Number 1 operates in Range Mode and Counter 2 uses 5 Ranges Range 00 to Range 04...

Page 146: ...the Comparison Value already exists refer to 5 2 2 IOWR IORD instruction errors for detailed error codes If you want to transfer an existing Comparison Value to the High speed Counter Unit you have t...

Page 147: ...read the Captured Counter Value of Counter 3 and write it to D0300 in the PLC mem ory Note Reading the Captured Counter Value with IORD is also supported for Simple Counters refer to 3 2 1 Simple Coun...

Page 148: ...ver write the Counter Value of Counter 4 with 500 01F4 hex Item IOWR IORD Control Code No of Words CC1 CC2 Rate History Log File data N Y cF 01 2 x R Rate Value 1 Rate Value 2 Rate Value 3 Rate V alue...

Page 149: ...tion Before you make your ladder program operational make sure that the IOWR instruction Re Configure Unit uses valid configuration data If the Unit configu ration data contains invalid settings the U...

Page 150: ...ate interrupts Important events indicated by a status change of the Digital Inputs and the Outputs can thus be reported as quickly as possible to the CS1 CPU Note If you want the High speed Counter to...

Page 151: ...igned to the respective External Interrupt Task numbers in increasing order starting from Offset 2 The assigned External Interrupt Task number is executed at a rising falling edge of the corresponding...

Page 152: ...should write an appropriate ladder program which is to be executed at a rising edge of the corresponding bit of Output 3 in the Unit Output Pattern External Interrupt Task 12 must also be programmed b...

Page 153: ...Digital Input that is enabled to generate interrupts is assigned to an external interrupt task in the CS1 CPU In the External Interrupt Task you should write an appropriate ladder program that takes t...

Page 154: ...here are 256 External Interrupt Tasks available numbered 0 to 255 the Offset can be maximum 252 With an Offset of 252 the last Digital Input I3 will be assigned the last available External Interrupt T...

Page 155: ...4 Section 4 6 W902 E2 03 book Seite 140 Donnerstag 7 Oktober 2004 2 06 14...

Page 156: ...s 142 5 1 1 Errors during initial processing 142 5 1 2 Errors during normal operation 142 5 2 Error codes 143 5 2 1 DM configuration errors 144 5 2 2 IOWR IORD instruction errors 146 5 2 3 Overflow Un...

Page 157: ...ON Unit classification error The Unit classification was set incorrectly Replace the High speed Counter Unit OFF OFF OFF Watch Dog Timer time out error The Unit s Watch Dog Timer has timed out Turn OF...

Page 158: ...tored inside the High speed Counter Unit the Global Error bit in CIO is set n 19 bit 00 the ERC LED is turned ON After you have cleared the error words n 17 error code 1 and n 18 error code 2 are rese...

Page 159: ...the Unit will report the error and stop operating The error s can be read in CIO using the Read Next Error bit General Setting n 1 Read Next Error 0 1 Read Next Error 15 14 13 12 11 10 9 8 7 6 5 4 3 2...

Page 160: ...is are outside Counting Range Counter No indicates the Counter number and Range No indicates the Range number If the Unit is in Comparison Mode Comparison value is outside Counting Range Counter No i...

Page 161: ...00 Counter No 000 Z Reset Mode Out of Range Two problems can cause this error The Z Reset Mode that you specified is not in the valid range 0 1 It is also possible that you issued an IOWR instruction...

Page 162: ...wer and or Upper Range Limit is are outside Counting Range Counter No indicates the Counter number and Range No indicates the Range number If the Unit is in Comparison Mode Comparison value is outside...

Page 163: ...Code 2 contains the external interrupt task number of the corresponding interrupt that was excluded from the full FIFO queue Clearing Interrupt FIFO error If the speed with which the High speed Counte...

Page 164: ...mical wipes These substances could damage the surface of the Unit 5 3 2 Routine Inspections In order for your High speed Counter Unit to continue operating at optimum con dition periodic inspections a...

Page 165: ...criteria Item Criteria Equipment Environmental conditions Ambient temperature 0 C to 55 C Thermometer Ambient humidity 10 to 90 Hygrometer Dust dirt accumulation None Is the Unit exposed to any spray...

Page 166: ...perate the Unit according to five common application examples At the beginning of each section that describes an application example all configuration items that are covered in that section are mentio...

Page 167: ...d automatically The push button is connected to Digital Input I0 and the valve is connected to Dig ital Output O0 of the High speed Counter Unit The pulses of the flow meter are counted by Counter 1 w...

Page 168: ...7 6 5 4 3 2 1 0 CIO 2002 n 2 Open Gate Simple Counter 1 0 1 Open Gate Close Gate Simple Counter 1 0 1 Close Gate Reset Simple Counter 1 0 1 Reset Counter 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 CIO 201...

Page 169: ...Counter 1 to zero 200203 Gate OpenCounter 1 Open Valve A20011 First CycleF lag Set SimpleCounter1 t o Manual Output Control 200015 200015 Manual Output Control 200200 Open Gate Counter 1 SET 200000 Cl...

Page 170: ...unt alterations in the speed of conveyor belt 1 and 2 Encoder 1 is connected to the shaft of motor 1 The length of an object on con veyor belt 1 is proportional to the number of pulses that encoder 1...

Page 171: ...Mem ory of the PLC refer to the ladder program example on the next pages Measuring length The length is measured by Counter 1 and should be ideally 5000 The valid range for the length of an object is...

Page 172: ...sher DM configuration The Machine Number of the High speed Counter Unit is 0 The High speed Coun ter is allocated 40 CIO words starting from CIO 2000 n CIO 2000 0 x 10 and 400 DM words starting from D...

Page 173: ...ter 0 D 20109 m 109 0 1 Total number of Ranges is 1 01 BCD D 20110 m 110 1 Memory Area is DM 1 D 20111 m 111 0 6 0 0 D 20112 m 112 0 Indirect Address is D00600 00600 BCD 15 14 13 12 11 10 9 8 7 6 5 4...

Page 174: ...sing edge of improperly sized objects Write physical memory address of EM 100 into Index Register IR 0 data of improperly sized objects is stored in EM starting from EM 100 Reset flag of improperly si...

Page 175: ...son Mode and four Com parison Values are defined to control the speed and direction of the feed motor and to turn ON and OFF the drill motor The limit switch is used to reference the home position of...

Page 176: ...4 3 2 1 0 DM word Thehyphen indicates that thecontentsof the correspondingdigit is irrelevant and thevaluedoes notcare General DM Settings D 20000 m 1 Comparison Mode 1 D 20017 m 17 0 1 0 5 Counter 1...

Page 177: ...0 00009C40H Set Pattern Set Digital Output O2 i e startdrill motor in the positive counting direction Set Pattern no outputs are set at the crossing of CV2 in the positive counting direction Set Patte...

Page 178: ...on Data Transfer Completed Data Transfer Completed Data Succesfully Written Global error Turn ON feed motor M1 if object is present AND if the drill motor is in the home position after the object is t...

Page 179: ...oder the Input Signal Type for Counter 1 is set to multiplication x4 The Z phase of the encoder is used to reset the Counter together with the Software Reset Enable bit make sure that CIO n 2 bit 05 i...

Page 180: ...ange Data Range Lower Range Limit Upper Range Limit Outputs ON 0 500 800 0 1 5 12 1 700 1500 5 6 8 13 14 2 2500 6000 5 7 9 3 5000 7000 2 3 4 12000 18000 7 9 10 11 The hyphen indicates that the content...

Page 181: ...02A0H Output Pattern Outputs 2 and 3 are ON 0000000CH Output Pattern Outputs 7 9 10 and 11 are ON 00000E80H Output Pattern Outputs 0 1 5 and 12 are ON 00001023H 0 3 2 0 0 0 0 0 1 0 2 3 0 0 0 0 0 2 B C...

Page 182: ...g Output 0 000000 InterruptTask 11 ON Always ON flag Output 1 000001 InterruptTask 12 OFF Always OFF flag Output 1 000001 InterruptTask 13 ON Always ON flag Output 2 000002 InterruptTask 14 OFF Always...

Page 183: ...put 10 000010 InterruptTask 30 OFF Always OFF flag Output 10 000010 InterruptTask 31 ON Always ON flag Output 11 000011 InterruptTask 32 OFF Always OFF flag Output 11 000011 InterruptTask 33 ON Always...

Page 184: ...conveyor is switched from slow to fast speed again slow speed indicator turns OFF The speed sensor is connected to Circular Counter 1 The two Rate Ranges Range 0 and 1 of Counter 1 are used to detect...

Page 185: ...000 n CIO 2000 0 x 10 and 400 DM words starting from D 20000 m D 20000 0 x 100 To configure the Unit the following DM settings must be made 5000H z Critical speed Irregularity passes saw blade Conveyo...

Page 186: ...H D 20042 m 42 F F F F D 20043 m 43 7 F F F Upper Range Rate Limit of Range Rate 0 is 2 147 438 647 7FFFFFFFH D 20044 m 44 0 0 0 0 D 20045 m 45 0 0 0 0 Output Set Pattern Rate Range 0 All Outputs are...

Page 187: ...Counter counts the number of pulses within the Counting Range see Counting Range item while one external Input is turned ON The Counter Value is reset at a rising edge of the external Input Same funct...

Page 188: ...from Backplane 450 mA CS1W CT041 360 mA CS1W CT021 at 5V via backplane Digital Outputs 16 Outputs consisting of 8 external Digital Outputs NPN PNP selectable by DIP switch 8 Soft Outputs Maximum swit...

Page 189: ...Noise Filter can be configured for the Counter Inputs 10 50 or 500 kHz and for the Digital Inputs 10 or 50 kHz Programmable Pulse Outputs Only available as Programmable Pulse Duration 0 to 99 99 s in...

Page 190: ...erminal Block Units in order to differentiate between BLOCK1 connected to CN1 and BLOCK2 connected to CN2 Item Connector 2 CN2 Connector 1 CN1 Terminal Block Unit 2 BLOCK2 Screw terminal Number Termin...

Page 191: ...of the corresponding Output bit in the Unit Output Pattern Output Assigned External Interrupt Task Number Interrupt executed at rising falling edge 0 O0 Offset Rising Offset 1 Falling 1 O1 Offset 2 Ri...

Page 192: ...Falling 19 Offset 38 Rising Offset 39 Falling 20 Offset 40 Rising Offset 41 Falling 21 Offset 42 Rising Offset 43 Falling 22 Offset 44 Rising Offset 45 Falling 23 Offset 46 Rising Offset 47 Falling 24...

Page 193: ...e Limit or Comparison Value the asynchronous with respect to the Unit Cyclic I O Refresh triggered by the CS1 PLC The maximum Response Time of 0 5 milliseconds can no longer be guaranteed and will tem...

Page 194: ...ime using IORD IOWR Configuration Examples Components Configuring High speed Counter Unit Counter Types Circular Counter Linear Counter Simple Counter Digital Input Functionality Hysteresis Inintial C...

Page 195: ...g Counter 1 Counter 2 Counter 3 Counter 4 General Driver Types Counter Inputs 5 12 14 VDC Open Collector Line Driver Digital Outputs NPN Driver PNP Driver E Enable Reset ERC indicator ERH indicator Er...

Page 196: ...Example IORD Instruction IOWR IORD Instructions Re Configure Unit Captured Counter Value Counter Value DM data Error Clear Command Range and Comparison data Rate History Log File data IOWR Instruction...

Page 197: ...ion and Operation Example with Circular Counter Example with Linear Counter Logically AND OR Counter Output Patterns Overview Range Data Allocation Changing at run time using IORD IOWR Configuration E...

Page 198: ...ounter Input Circuitry Example 5 12 24 VDC NPN Open Collector Example 5 12 24 VDC PNP Open Collector Line Driver RS422 Digital Input Circuitry Example 24 VDC NPN Sensor Example 24 VDC PNP Sensor Digit...

Page 199: ...G W902 E2 03 book Seite 184 Donnerstag 7 Oktober 2004 2 06 14...

Page 200: ...en Page 71 Range Active and Range not Active swapped in picture Page 72 Note 2 added Page 76 Note 5 added Comparison Value Active and Comparison Value not Active swapped in picture Page 82 Note 3 adde...

Page 201: ...register images Page 98 Corrected Counter register number to Counter 4 in Example Page 109 Corrected Hysteresis range to 0000 00FF Page 110 Corrected Counter number for m 84 Page 111 Corrected Hyster...

Reviews: