Home
CJ-series High-speed Counter Units Operation Manual for NJ
Contents
1. seen 4 13 Digital output O to 1 status aaa 3 22 Digital output i NEE 4 13 Bil EE 2 4 Disable reset ear ee naaa kann ana nana a kaka 3 20 DM configuration error esen asaskan 5 5 Duplicate unit number occccccnncccncncccncncnnnnnnonononncnnnnnnnnnnos 2 5 Index 2 E Edit special unit settings errr aaa 1 19 Enable Disable comparison values a 3 35 See A A AA nasa 2 17 EE srt A AN PAN PA 4 13 5 4 PRON INGICAION AA nn LAA MA ann 5 2 eel 2 9 EE 5 4 Event Code sch strani sees ta ba ee 5 9 Event levels pe EE 5 9 HA AN Sa 5 8 See LEE 5 9 SE 5 8 G EE 3 18 General Specification x nn nia Kn Kanak 1 7 Eelef Re 4 13 5 4 H lee tee ge 3 42 4 20 4 22 Men ENOT ra AAA caopinS 5 7 1 A 1 19 4 5 A a e An Apa 4 5 IA blocks overlap 2 kekananan 4 7 4 13 Indirect address specification 4 8 Initial COUNT value oo eee ceeceeceeseeseeseeeeeseeeeeseeeees 4 19 4 21 Initial counter value ooooocccccccocccnccnncnnnnnnnnnncnnnnnnnnononnnnnos 3 44 Input noise filter counters esa 4 17 Input noise filter digital inputs 4 17 Input signal type occccconncnccccononcccnccnnconnnnnncnnnnnnnnonanannnos 3 14 Input Specifications 1 10 L Linear COUNTER Ann nn na dn gece ain 3 12 Logically AND OR counter ou
2. CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 11 1 Introduction Additional Information As a general guideline to satisfy the above timing specifications you must pay attention to the type of output driver of the encoder being used the length of the encoder cable and the fre quency of the count pulses generated For example if you use an Open Collector encoder e g E6B2 CWZ6C at 24 V with 10 m cable you can typically generate count pulses up to 20 kHz Therefore if you want to generate count pulses with higher frequencies you should use a differ ent type of encoder e g E6B2 CWZ1X with Line Driver output or a fast push pull 24 V encoder e g E6C2 CWZ5GH or reduce the length of the encoder cable 1 3 4 Output Specifications Item Specification Driver Type Open Collector NPN PNP selectable External Power Supply 12 to 24 VDC 10 2 to 26 4 V 30 mA max at 26 4 VDC for PNP output without load current Maximum Switching Capacity 46 mA at 10 2 V to 100 mA at 26 4 V 200 mA maximum common see picture below Minimum Switching Current 5 mA Output ON delay 100 us max Output OFF delay 100 us max Leakage Current 0 1 mA max Residual Voltage 1 5 V max Short Circuit Protection No EN Additional Information Every Digital Output has 2 Output drivers available NPN and PNP available as separate pins on the front connectors Every Output can be separately configured for NPN or
3. B9 Phase A 24 V A8 Phase A 0 V Phase B 24 V Phase B 0 V Encoder UU B11 A10 13 Phase Z 24 V 12 Phase Z 0 V Ex E6C2 CWZ6C Counter 1 NPN Open Collector outputs Blue 0 V COM suonelmbriuoo indu Jajuno 9 2 24 VDC Power Suppl y Power Supply 24 VDC Power Supply High speed Counter Shielded twisted pair cable id A y 4 Phase A Encoder ConnectorCN1 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 17 2 Components Installation and Wiring 2 18 e 5 12 24 VDC PNP Open Collector Ex E6C2 CWZ5B PNP Open Collector outputs Power Supply Encoder High speed Counter Terminals CN1 Black Phase A B9 Phase A 24 V A8 Phase A 0 V B11 Phase B 24 V A10 Phase BO V White Phase B Orange Phase Z B13 Phase Z 24 V A12 Phase ZO V Counter 1 Blue 0 V COM 24 VDC Power Supply 24 VDC Power Supply High speed Counter Connector CN1 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 Components Installation and Wiring Line Driver RS 422 High speed Counter Terminals CN1 O B15 Phase A LD A15 Phase A LD Black Phase A Black red Phase A White Phase B Encoder O B17 Phase B LD a ET B 4 A17 Phase B LD Orange Phase 2 B19 Phase Z LD A1
4. CH1 2 Green K Channel 1 2 i e Counter 1 2 is ready to count the corresponding counting gate is open CT oon 1 2 is not ready to count the correspond NE counting gate is closed A B Z Yellow Input A B Z has turned ON Every Counter is characterised by the signals Ge OFF Input A B Z is turned OFF 10 11 Yellow Ce Digital Input 10 11 is turned ON OFF Digital Input 10 11 is turned OFF 00 01 Yellow Digital Output 00 01 is turned ON OFF Digital Output 00 01 is turned OFF CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 3 2 Components Installation and Wiring 2 1 3 Counter Type Switch The Counter Type Switch at the front of the Unit is used to set the Counter Type for every individual Counter separately By default all Counters are set to Simple Counter Default state Example Pin 1 setto ON and all pins set to OFF pin 2 set to OFF a IT L ON OFF ON OFF Note Pins are set to ON when they are raised at an angle The following table shows how the Counters can be configured 1 1 Circular Linear Counter 7 E Simple Counter 2 2 Circular Linear Counter TG Simple Counter After having set the DIP switch of the Counter to ON select between Circular and Linear Counter from Edit Special Unit Settings of Sysmac Studio Counters set to Circular Linear Counter can make use of all the features that the High speed Counter Unit offers Refer to 3 2 2 Ci
5. Range Mode Overview The following figure gives an overview on configuring Counters in Range Mode R porno SE eege Counter 1 Upper Range Limit Output Pattern Lower Range Limit E D Output Pattern E crags ree ee II II II II Y Output Pattern Range 31 Upper Range Limit Lower Range Limit q O r 5 CH O 3 Q EE RangeO Counter 2 Upper Range Limit E D Output Pattern Lower Range Limit Upper Range Limit E D Output Pattern Lower Range Limit apo ebuey Lo OR Unit Output Pattern E D Range Enabled Disabled How to configure Counters in Range Mode is described on the next pages CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 25 3 Operation and Configuration Counter setting Linear Counter Circular Counter 3 26 _sCJCT021_Ex_RngRing i Configuration and Operation in Range Mode Oo Specifying Range Data In Range Mode every Counter can be assigned up to a maximum of 32 Ranges The Data of every Range is contained by 3 double words e Lower Range Limit specifying the Lower Limit of the Range e Upper Range Limit specifying the Upper Limit of the Range e Output Pattern specifying which Outputs have to be activated when that Range is active The Counter Type Circular or Linear determines the range in which the Upper and Lower Limits can be set For Cir
6. Use these structures to define user defined variables Data type name Member Datatype Name _sCJCTO21_Ex_CmpLin Comparison value _sCJCT021_Ex_CmpRing CmpVal UDINT Comparison value AddSetPat DWORD Set pattern AddRstPat DWORD Reset pattern SubSetPat DWORD Set pattern SubRstPat DWORD Reset pattern The table below shows an example of comparison data allocation when the comparison data user defined variables are defined as follows c1D for Counter 1 array 0 31 of_sCJCTO21_Ex_CmpLin Linear Counter 32 comparison data maximum c2D for Counter 2 array 0 31 of sCJCT021_Ex CmpRing Circular Counter 32 comparison data maximum Function Variable name Data type Counter 1 c1D 0 _sCJCT021_Ex_ Comparison data 0 CmpLin c1D 0 DINT Comparison data 0 Comparison data 0 Comparison value Comparison value c1D 0 CmpVal DWORD Comparison data 0 Comparison data 0 output set pattern Set Pattern c1D 0 AddSetPat DWORD Comparison data 0 Comparison data 0 output reset pattern Reset Pattern c1D 0 AddRstPat DWORD Comparison data 0 Comparison data 0 output set pattern Set Pattern c1 D 0 SubSetPat DWORD Comparison data 0 Comparison data 0 output reset pattern Reset Pattern c1D 1 _sCJCTO21_Ex_ Comparison data 1 Comparison value output set reset pattern CmpLin c1D 2 _sCJCT021_Ex_ Comparison data 2 Comparison value output set reset pattern CmpLin c1D 3 _sCJCT021_Ex
7. For details refer to 3 4 Digital Inout Functions Bits 08 to 15 Sets the Counter connected to the Digital Input 1 16 00 No setting factory value 16 01 Counter 1 16 02 Counter 2 When the output status control Bits 12 to 15 in OutStaCtiMdCfg is set in 16 02 the output pat tern set here external output internal output is applied to output Data range 16 00000000 to 16 FFFFFFFF Factory value 16 00000000 Counter 1 Ch1_CtTypCtg UINT R W Counter Type Sets the Counter type 0 Circular Counter factory value 1 Linear Counter 4 18 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 Exchanging Data with CPU Name of device variable Ch1_SigTypCfg UINT R W Signal Type Sets the input type 0 Phase differential multiplication 1 factory value 1 Phase differential multiplication 2 2 Phase differential multiplication 4 4 Up amp down pulse 8 Pulse amp direction Ch1 ZOvfUdfCfg WORD R W Z reset Mode Over Bits 00 to 03 This sets the Z phase input signal flow Underflow error function code generation 16 0 No function factory value 16 1 Reset Z phase input signal rising edge Bits 04 to 07 Sets whether or not overflow under flow error codes are created 16 0 Error codes are not created The over flow underflow bit is set and the output retains the previous status factory value 16 1 Error codes are created Error codes are reporte
8. The factory setting is all DIP switches are set to OFF for Simple Counters When you use a Counter as a Circular Counter or Linear Counter set them to ON and select circular or linear by using the device variables for CJ series Unit for setting as shown below In the description hereafter each variable name has a prefix This indicates the device name when this Unit is registered in the Unit Configuration For details refer to 4 1 3 Access from User Program Name of device variable Type Function for CJ series Unit YP Chi_CtTypCfg UINT Counter Type O Circular Counter Ch2_CtTypCfg 1 Linear Counter A Circular Counter and a Linear Counter can use all functions provided for a High speed Counter Unit and can have various setup A Simple Counter however can only use the default functions e Counter Value For all Counter Types the 32 bit Counter Value is stored in the following device variables for CJ series Unit for input The data range depends on the type of Counter Name of device variable EE FURCIOR for CJ series Unit yP Ch1_LinCtVal DINT Counter Value Used for a Simple Counter or Linear Ch2 LinCtval Counter 2 147 483 648 to 2 147 483 647 Ch1_RingCtVal UDINT Counter Value Used for a Circular Counter Ch2_RingCtVal O to 4 294 967 295 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration 3 2 1 Simple Counter The advantage of using a Count
9. set reset pattern CmpRing c2D 17 _sCJCT021_Ex_ Comparison data 17 Comparison value output set reset pattern CmpRing c2D 18 _sCJCT021_Ex_ Comparison data 18 Comparison value output set reset pattern CmpRing c2D 19 _sCJCT021_Ex_ Comparison data 19 Comparison value output set reset pattern CmpRing c2D 20 _sCJCT021_Ex_ Comparison data 20 Comparison value output set reset pattern CmpRing c2D 21 _sCJCT021_Ex_ Comparison data 21 Comparison value output set reset pattern CmpRing c2D 22 _sCJCT021_Ex_ Comparison data 22 Comparison value output set reset pattern CmpRing c2D 23 _sCJCT021_Ex_ Comparison data 23 Comparison value output set reset pattern CmpRing c2D 24 _sCJCT021_Ex_ Comparison data 24 Comparison value output set reset pattern CmpRing c2D 25 _sCJCT021_Ex_ Comparison data 25 Comparison value output set reset pattern CmpRing c2D 26 _sCJCT021_Ex_ Comparison data 26 Comparison value output set reset pattern CmpRing c2D 27 _sCJCT021_Ex_ Comparison data 27 Comparison value output set reset pattern CmpRing c2D 28 _sCJCT021_Ex_ Comparison data 28 Comparison value output set reset pattern CmpRing c2D 29 _sCJCT021_Ex_ Comparison data 29 Comparison value output set reset pattern CmpRing c2D 30 _sCJCT021_Ex_ Comparison data 30 Comparison value output set reset pattern CmpRing
10. DWORD o EE F 02 to 31 Internal output 2 to Circular sCJCT021 Ex CmpRing CmpVal Comparison UDINT e target value set for compari Counter Value AddSetPat Set Pattern DWORD a tan pattern setting when com AddRstPat Reset Pattern DWORD parison conditions are met SubSetPat Set Pattern DWORD Bit 00 Digital Output O SubRstPat Reset Pattern DWORD al 01 Digital Output 1 Bit 02 to 31 Internal output 2 to 31 poy uosuedwon 2 G CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 33 3 Operation and Configuration 3 34 Additional Information Precautions When Setting Comparison Data e Comparison Stoppage When Comparison Value Reached When the High speed Counter Value reaches a comparison value comparison stops for 1 5 ms The other Counters however do not stop comparisons Set the Comparison Data considering the time when the comparison is stopped For example for the Comparison table shown in the following diagram approximately 4 8 counts occur during 1 5 ms when a 3 2 kHz pulse is input This means that comparison does not occur for Counter Values 101 102 103 and 104 During this period the Output set under the Output Pattern does not turn ON Comparison starts again after this 1 5 ms has elapsed At this time the processing returns to the stoppage period and Comparison Data 1 and 2 are executed at the same time 3 2 kKHz pulse l i Counter Value
11. Function GlblErr BOOL Global Error 1 Shows that one or more error has occurred These error codes are stored in the error list in this Unit 0 Normal ErrCode1 WORD Error Code 1 Error code 1 ErrCode2 WORD Error Code 2 Error code 2 When the cause of an error is eliminated the state becomes as follows e The error code 1 and 2 variables are cleared e Global Error variable goes OFF 0 e The ERC indicator on the front of the Unit goes out The method for eliminating an error depends on the error type The method for eliminating each type of error is given on the pages that follow Error List File Up to 30 errors that occurred are recorded in the error list in the high speed Counter Unit in the order they occurred If multiple errors occurred at the same time the error is stored in _ErrCode1 error code1 and ErrCode2 error code 2 when the Read Next Error variable below is changed from 0 to 1 When the Read Next Error variable changes to TRUE from O to 1 again the next error can be read out When an error is read out after the information of the final error is read out the value 0 is returned to When the Read Next Error bit changes to TRUE from 0 to 1 again the same error list can be scrolled through CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 Error Processing Maintenance and Inspection RdNxtErr BOOL Read Next Error When multiple errors occurre
12. This manual is intended for the following personnel who must also have knowledge of electrical sys tems an electrical engineer or the equivalent e Personnel in charge of introducing FA systems e Personnel in charge of designing FA systems e Personnel in charge of installing and maintaining FA systems e Personnel in charge of managing FA systems and facilities For programming this manual is intended for personnel who understand the programming language specifications in international standard IEC 61131 3 or Japanese standard JIS B3503 Applicable Products This manual covers the following products e CJ series CJ1W CT021 High speed Counter Unit CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 Relevant Manuals Relevant Manuals There are three manuals that provide basic information on the NJ series CPU Units the NJ series CPU Unit Hardware User s Manual the NJ series CPU Unit Software User s Manual and the NJ series Instructions Reference Manual Most operations are performed from the Sysmac Studio Automation Software Refer to the Sysmac Studio Version 1 Operation Manual Cat No W504 for information on the Sysmac Studio Other manuals are necessary for specific system configurations and applications Read all of the manuals that are relevant to your system configuration and application to make the most of the NJ series CPU Unit NJ series User s Manuals Basic information NJ
13. c2D 31 _sCJCT021_Ex_ Comparison data 31 Comparison value output set reset pattern CmpRing For details on set and reset patterns refer to Configuration and Operation in Comparison Mode 4 30 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Error Processing Maintenance and Inspection SSS This section provides details of the CJ1W CT021 High speed Counter Unit s error indi cators and error codes and guidelines for maintenance and inspection of the Unit 5 1 Error INGICALONS nit A ken Sheen A eee eed 5 2 5 1 1 Errors during initial processing 0 ccc ees 5 2 5 1 2 Errors during normal operation 0 ees 5 3 5 2 Emor COLOSIO A 5 4 5 2 1 DM configuration errors tesis a a 5 5 5 2 2 Overflow Underflow errors 0 00 cc eee ees 5 6 5 27 e EE EE 5 7 DZA EIERE e dwt deh oud DEE eee anes 5 7 5 3 EVEN LOGS A ee de A ae eae 5 8 5 3 1 Overview of the Event Loge 5 8 Soe ENO TaD E eesi A a DEES A 5 9 Deora EMOrDESCHOIONS perrea ionedd AA oe atte hoe ee be 5 10 5 4 Maintenance and Inspection 00 0c eee ee 5 12 5 4 1 A oe BAG Ste acs eee tole A A ee 5 12 5 4 2 Routine Inspections eens 5 12 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 1 5 Error Processing Maintenance and Inspection 5 1 Error Indicators The RUN ERC and ERH LEDs at the front panel of the High speed Counter
14. set Output m 2 00 to 15 Undefined External Interrupt Task Enable m 3 Data Output m 4 Oto 15 Undefined External Interrupt Task No Off set Digital Input m 5 00 to 15 Undefined External Interrupt Task Enable Data Digital Input m 6 00 01 OutStaCtIMdCfg Output Driver NPN PNP Bit 00 Output 0 Selection 02 to 11 Bit 01 Output 1 Sg 12t0 15 Bit 12 to 15 Output state control Output State Control m 7 00 to 07 _NoiseFltCntCfg Input Noise Filter Digital Inputs 08 to 15 m 8 00 to 07 _NoiseFltInCfg Input Noise Filter Digital Inputs 08 to 15 m 9 00 to 15 OutOnDelayTm0Cfg Output Pulse Turn ON Delay Time BCD Digital Output 0 m 10 00 to 15 OutDur0Cfg Output Pulse Duration BCD Digital Output 0 m 11 00 to 15 OutOnDelayTm1Cfg Output Pulse Turn ON Delay Time BCD Digital Output 1 m 12 00 to 15 _OutDur1 Cfg Output Pulse Duration BCD Digital Output 1 m 13to 00 to 15 Undefined Reserved m 16 m 17 00 to 07 Digiln0FunCfg Digital Input O Function Counter Bits 00 to 07 External control input O function selection Number 08 to 15 Bits 08 to 15 Counter number external control input 0 SE Number Digital Input m 18 00 to 07 _DigilniFunCfg Digital Input 1 Function Counter Bits 00 to 07 External control input 1 function selection Number 08 to 15 Bits 08 to 15 Counter number external control input 1 Counter number Digital Input 1 m 19 00 to 15 Undefined Rese
15. 100 101 102 103 104 gd i i i i i a i Comparison Comparison Comparison l Data 0 Data 1 Data 2 e A y Comparison is stopped for 1 5 ms Counter Value Outputs set under the Output Pattern will not turn ON matches during this period even if the Counter Value equals the comparison value comparison value Additional Information e Multiple Comparison Values of a specific Counter may not have the same value The Unit will generate an error if multiple CV s have the same value refer to 5 2 Error codes for more details The Digital Outputs are Set Reset in the chronological order of reaching the CV s After reach ing a new CV the old Unit Output Pattern is updated In case for a CV both a Set and a Reset in one and the same counting direction for a specific Output are defined the Reset has priority The output can be set to Set Reset or No Change when a CV is reached both for increment ing and decrementing Each time the output pattern for both Counters will change in the order CVs are reached Do not change the counting direction quickly near a CV If the direction is changed near a CV the direction in which the CV was reached incrementing or decrementing may be incorrectly detected CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration o Reflecting Active Not Active Comparison Values A comparison condition is met when the Counter Val
16. Preset error 2 or Sysmac Studio Apply appropriate remedy according to the cause of the error Refer to 5 2 Error codes for more information on error codes and how to clear them ON OFF ON System error An error occurred in the CPU Remove the cause of the major fault or Unit partial fault then reset the Controller or PLC Watch Dog Timer error Cycle its power e Major Fault If the error reoccurs then replace the e Partial Fault CPU Unit CPU Unit monitoring error Refer to 5 2 4 System Errors for more e I O bus check error Information 2 m O 53 e O Di eb O Vu Uuongieco ISuuou Duump s1013 Z G CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 3 5 Error Processing Maintenance and Inspection 5 2 Error codes o Reporting errors Errors occurring in the High speed Counter Unit are divided into the following 4 types e Allocated DM area setting error e Overflow underflow error e Preset error e System error There is an error code for each error These error codes are made up of error code 1 and error code 2 If an error occurs the state becomes as follows e The corresponding error code is transferred to the error code 1 and 2 variables below e The error code is stored in the error list in the High speed Counter Unit e Global Error variable below changes to ON 1 e The ERC indicator on the front of the Unit lights up Variable names Type Name
17. e Assembling Connectors Three M2 pan headscrews 8 mm long SS q Two M2 6 longscrews Y SE HH One M2 6 pan head e mm long Cable clamp Sa One M2 6 nut CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 Components Installation and Wiring LA Precautions for Correct Use e The cross section of the signal wires that can be connected to each soldering terminal must be lt 0 3 mm e Do not short circuit any terminals when soldering Recommended is to cover every soldered wire with an insulated tube e When using multi conductor cables separate the input and output cables de do 5 e Terminal Block Unit Besides direct connection as described above it is also possible to make all the connections for the external signals to screw terminals This is easier and less time consuming than soldering the wires to the external connector For this purpose you should use a Terminal Block Unit The following Ter minal Block Units are recommended for using together with the CJ1W CT021 High speed Counter Unit e XW2B 40G4 which has 40 screw terminals M2 4 available e XW2B 40G5 which has 40 screw terminals M3 5 available These Terminal Block Units can be mounted to a DIN rail or can be mounted using screws The con nector on front of the Unit should be connected to a Terminal Block Unit through a standard 40 wire cable For this purpose you can use the standard availab
18. reference 3 2 3 Linear Counter 3 5 1 Range Mode 4 2 2 Allocating Ranges and Com parison Data e Ranges Compari son Values active 4 2 5 Memory Allocation for Ranges 3 2 2 Circular Counter 3 5 1 Range Mode 4 2 2 Allocating Ranges and Com parison Data e Ranges Compari son Values active 4 2 5 Memory Allocation for Ranges e Preset e Preset Value e Preset Activated 3 4 Digital Inout Functions 3 5 2 Comparison Mode 3 7 1 Programmable Output Pulses Indirect Address Specification 4 2 6 Memory Allocation for Compar ison data Name of device variable for CJ series Unit for setting Output Control Mode AND OR Counter Output Patterns Counter Type Upper Count Limit Circular Linear Lower Count Limit Linear Range Comparison Enable Data Output Set Pattern Output Reset Pattern Number of Ranges Comparison Values BCD Memory Area Memory Address BCD Output Control Mode AND OR Counter Output Patterns Counter Type Upper Count Limit Circular Linear Range Comparison Enable Data Output Set Pattern Output Reset Pattern Number of Ranges Comparison Values BCD Memory Area Memory Address BCD Output Control Mode AND OR Counter Output Patterns Range Comparison Enable Data Output Set Pattern Output Reset Pattern Number of Ranges Comparison Values BCD Memory Area Memory Address BCD CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W49
19. 5 Specifications and Characteristics 1 7 1 3 1 General Specifications See ee ond Se RR ERE 1 7 1 3 2 Functional Specifications 1 8 1 3 3 Input Specifications 1 10 1 3 4 Output Specifications csi ad pido 1 12 Quick Start Up Reference Guide 0 ocooccccocc 1 14 1 4 1 Configuring the High speed Counter Unit 1 17 Operating Procedure Guidelines eee eee 1 19 Applicaton AFOAS sica e ee a eee ee eae aia wee E 1 22 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 1 4 Introduction 1 1 Features and Functions 1 2 CT021 By EBC ERH 1 0AOBOZ OCH2 BARRA an el 23 A MACH N Y SES 87 x101 23 D BB x100 The CJ1W CT021 High speed Counter Unit is equipped with 2 Counters and counts over a maximum binary range of 32 bits Accepting input pulse frequencies of up to 500 kHz allows precise control of fast motions The Unit s bi directional counting ability enables detecting movement in either direction Each Counter of the Unit can be configured independently The Unit is equipped with 2 Digital Inputs 2 Digital Outputs and 30 Soft Outputs A maximum response time of 0 5 ms guarantees high speed closed loop control of applications o Freely Configurable You can make a flexible setting on this High speed Counter Unit to suit the user application e Counter Type Configuring the Unit starts with
20. 648 to 2 147 483 647 Unit Pulse Factory value O Ch2_InitRingCtCfg UDINT Initial Count Value Sets the initial Counter Value after unit setting data is transferred Used for Circular Counter Data range 0 to 4 294 967 295 Unit Pulse Factory value O Buas 101 JUN SANMAS O JO SB QeUeA BIASA JO SHEA Y 2 p Range Comparison Sets whether the range comparison data is enabled Enable Data or disabled Ch2_RngCmpEnbiCtg DWORD Bits 00 to 31 correspond to comparison data 0 to 31 Each bit is enabled for 1 and disabled for 0 Data range 16 00000000 to 16 FFFFFFFF Factory value O Ch2_OutSetPatCfg DWORD Output Set Pattern Sets the output 0 to 31 set pattern Bits 00 to 31 correspond to output 0 to 31 Each bit is set for 1 and no change for 0 Data range 1600000000 to 16 FFFFFFFF Factory value O CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 21 4 Exchanging Data with CPU Name of device variable Ch2_OutRstPatCfg DWORD RAW Output Reset Pattern Sets the output 0 to 31 reset pattern Bits 00 to 31 correspond to output 0 to 31 Each bit is reset for 1 and no change for 0 Data range 16 00000000 to 16 FFFFFFFF Factory value O R W Ch2_HystrsCtg UINT Hysteresis Sets the hysteresis For 0 the hysteresis function is disabled 2 Data range 0 to 255 Unit Pulse Factory value O Ch2 NumRngCmpCtg WORD R W Number of Sets the number of ranges compar
21. CJ series Unit CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 A 11 WeJ1BOJj Jas E WOJJ SPOYIAA SSSIDY Ul SODUDISHIO Z L Y Appendices CJ series I O memory address NJ series device variables for CJ series Unit Word k 84 to k 89 k 90 to k 95 k 96 to k 101 k 102 to k 107 k 108 to k 113 k 114 to k 119 k 120 to k 125 k 126 to k 131 k 132 to k 137 k 138 to k 143 k 144 to k 149 k 150 to k 155 k 156 to k 161 k 162 to k 167 k 168 to k 173 k 174 to k 179 k 180 to k 185 k 186 to k 191 H Comparison Data Comparison data is setin the user defined variable Two types of structure data are prepared beforehand for comparison data user defined variables one type for Linear Counters and one type for Circular Counters Use these structures to define user defined variables Data type name Member Data type Name _sCJCTO21_Ex_CmpLin CmpVal DINT Comparison Value AddSetPat DWORD Set Pattern AddRsitPat DWORD Reset Pattern SubSetPat DWORD Set Pattern SubRstPat DWORD Reset Pattern _sCJCT021_Ex_CmpRing CmpVal UDINT Comparison Value Reset Pattern The table below is an example in which 32 Circular Counter comparison structure data type sCJCT021 Ex CmpRing are used as user defined variables and the variable name is defined as bbbb k is set with device variables for CJ series Unit Ch MemAreaCfg and Ch _MemAadrCig CJ series High speed Counter Units Operation Manual for NJ s
22. D O h a ey D D Wu ha O 3 O a Gu O bm D Vu weiBOld Jas E WOJJ SPOyYLAN SSSIDY Ul SODUDISHIO Z L Y Appendices CJ series UO memory address m 68to 00 to 15 Undefined Ge m 4 Counter 2 m 75 00 to 15 _ Ch2_CtlypCfg Counter Type m 76 00 to 03 Ch2 SigTypCtg Signal Type 04 to 15 m 77 00 to 03 _Ch2_ZOvfUdfCfg Z reset Mode 04 to 07 Bits 00 to 03 Reset by Z phase Overflow Underflow error code Bits 04 to 07 Overflow underflow error setting generation NJ series device variables for CJ series Unit 08 to 15 m 78 00to 15 _Ch2 UpCtLmtCfg Upper Count Limit Circular Lin m 9 ear m 80 00 to 15 Ch2 LowCtLmtCfg Lower Count Limit Linear m 81 m 82 00to 15 Ch2_InitLinCtCfg _Ch2_InitRingCtCtg Initial Count Value m 83 m 84 00 to 15 Undefined Time Window Pulse Rate Mea surement m 85 00to 15 Undefined Pulse Rate Range 0 m 87 00to 15 Undefined Pulse Rate Range 0 m 89 00to15 Undefined Pulse Rate Range 0 m 91 00to 15 Undefined Pulse Rate Range 0 m 93 00to 15 Undefined Pulse Rate Range 1 m 95 00to 15 Undefined Pulse Rate Range 1 m 97 00to15 Undefined Pulse Rate Range 1 m 99 00to15 Undefined Pulse Rate Range 1 m 101 Undefined Pulse Rate Range 0 Enabled 01 Pulse Rate Range 1 Enabled 02 to 15 SES m 102 00 to 15 Range Comparison Enable m 103 Data m 104 00 to 15 Output Set Pattern m 105 m 106 00 to 15 _Ch
23. D O Dy Counter Value e Configuring Upper Count Limit The Upper Count Limit can be set to a value between 1 and 4 294 967 295 By default it is set to the maximum possible count limit of 4 294 967 295 With Circular Counters the Counter automatically rolls over to O and continues counting if the Counter Value exceeds the Upper Count Limit If the Counter Value goes below 0 the Counter rolls over to the Upper Count Limit and continues counting Name of device variable Tvbe Funcion for CJ series Unit yp Chi_UpCtLmtCfg UDINT Upper Count Limit Set the upper count limit in the range of 0 to Ch2 UpCtLmtCfg Circular Linear 4 294 967 295 When 0 is set this becomes 4 294 967 295 Jajuno I ImOI 2 2 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 11 3 Operation and Configuration 3 2 3 Linear Counter EN Additional Information A Linear Counter can uses all functions listed in 1 3 2 Functional Specifications e Configuring Linear Counters Linear Counters are set with the following device variables for CJ series Unit for setting Name of device variable g Chi_CtTypCfg UINT Counter Type 0 Circular Counter Ch2_CtTypCfg 1 Linear Counter A Linear Counter has the full counting range 32 bits available to count up and down within the range between the Lower Count Limit and the Upper Count Limit By default the Lower and Upper Count Limits are set to the maximum and minimum
24. Generate error codes Bits 15 to 08 16 00 3 38 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration O Reset Enable Bit as Reset Enable Source To execute a reset or preset a Counter Value to 0 by using either Digital Input or a Z phase signal it is necessary to set the following device variables for CJ series Unit for output to 1 Name of device variable o Function for CJ series Unit Ma Ch1_RstEnbl BOOL Reset Enable O Disable Ch2_RstEnbl 1 Enabled e Digital Input as Reset 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 more information Ke O JJ D o O O z 5 na D CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 39 3 Operation and Configuration 3 Extra Functions 3 7 1 Programmable Output Pulses Depending on the requirements of your application the timing characteristics of the two Digital Outputs of the High speed Counter Unit can be modified The Unit can be either in Range Mode or in Compari son Mode The following functionality can be assigned to the Digital Outputs e Normal Functionality default e Output Turn ON Delay 1 ms to 9999 ms to delay turning ON an Output e Output Pulse Duration 1 ms to 9999 ms to generate an Output p
25. High speed Counter Unit offers you refer to 1 4 Quick Start Up Reference Guide This section also contains references to the particular section s in the Manual where you can read more detailed information about specific features and functions of the High speed Counter Unit CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 Introduction E E E o 1 2 Basic Configuration p E 2 L Typical applicable Sensors for Digital Inputs Typical applicable Actuators for Digital Outputs r Photo Electric S e gg Push Button Lamp ES E Limit Switch Motor Interface ON OFF m aj High Low Speed D gt Proximity Switch Forward Reverse Brake ON OFF Other Sensors Other Actuators Typical applicable Pulse Generators for Counter Inputs Incremental Encoder a Proximity Sensor Other Pulse Generators e Mounting Restrictions The CJ1W CT021 High speed Counter Unit is a Special I O Unit that belongs to the CJ Series The CJ1W CT021 High speed Counter Unit can be mounted in an NJ series CPU rack or NJ series Expansion Rack Note If you want the CJ1W CTO21 High speed Counter Unit to generate interrupts to activate external interrupt tasks in a CJ1 H CPU Unit the Counter Unit must be in one of the five posi tions immediately to the right of the CJ1 H CPU Unit on the CPU Rack If you want the High speed Counter Unit to generate interrupts to activate e
26. Input s or the corresponding bits for the I O port in the CPU Unit 4 Controlling the Outputs is done by choosing the Output Control Mode Range or Comparison Mode Furthermore 4 additional control mechanisms are available to control the Outputs Pro grammable Output Pulse Output State Control Manual Control and Hysteresis Refer to 3 5 Output Control D In case the Counter Input Signals A B Z and the Digital Input Signals 10 to 11 are exposed to electromagnetic noise a noise filter can be configured 10 kHz 50 KHz default or 500 kHz to suppress this noise The 500 kHz noise filter is only available for the Counter Input Signals and not for the Digital Input Signals Refer to 3 7 3 Noise Filtering 6 Specifying indirect addresses for Circular Linear Counters and Allocating them to user defined variables CJ1W CT021 High speed Counter Unit are set with the Edit Special Unit Settings of Sysmac Studio When the contents of the Special Unit settings are transferred to the CPU Unit they are reflected in the device variables for CJ series Unit for setting When the Controller is reset or the Unit is restarted the contents of device variables for CJ series Unit for setting are reflected in the High speed Counter Unit With a Counter type other than a Simple Counter the Output Control Mode can be set either to Range or Comparison Mode One Counter can be allocated with 32 range data or comparison data The data is set to free D
27. PNP from Edit Special Unit Settings in Sysmac Studio By default the Outputs are set to NPN output refer to 3 5 4 Output Control Configuration Each Digital Outputs is insulated from the l O bus but not from the other Digital Outputs They are not protected from short circuit The Output current must not exceed 200 mA per common i e per 2 Digital Outputs Other wise the unit will be damaged Digital Outputs can be set either to automatic or manual outputs from Edit Special Unit Set tings in Sysmac Studio The manual output control uses the manual output control bit for each I O port for the output data Refer to 3 5 Output Control You can select the method to control the output states for when the CPU Unit operating mode is changed from RUN to PROGRAM or when an IO bus check error or an overflow underflow error occurs refer to 3 5 4 Output Control Configuration CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 Introduction e Maximum Switching Capacity D LH The maximum switching current depends upon the power supply voltage as shown below o SS S S no E n a Maximum Switching Capacity mA D O D External Supply Voltage VDC Ne D OD O A 5 Wu CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 13 1 Introduction 1 4 Quick Start Up Reference Guide e Operation and Configuration Every Counter of the H
28. Preset Activated Reset Activated of the device variables for CJ series Unit for input When a preset or reset is executed the corresponding variable changes to ON for 1 task period of the CPU Unit Use these variables on the user program when necessary e Z Input Status For each Counter the Z input status is reflected in the device variables for CJ series Unit for input The bit is ON for exactly one task period of the CPU Unit after the Z input is activated e Counting Direction For every Counter the up or down counting direction is indicated and can be used in the user pro gram Name of device variable UDS EE for CJ series Unit Ma Ch1_CntDir BOOL Counting Direction 0 Count down Ch2_CntDir 1 Count up 3 20 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration 3 5 Output Control e Output Control Mode The 32 Outputs 2 external and 30 internal of the High speed Counter Unit can be controlled auto matically in two ways e Range Mode In Range Mode you can define up to a maximum of 32 Ranges per Counter The Outputs are controlled according to the Counter Value being within Range Limits For a detailed description about Range Mode refer to 3 5 1 Range Mode e Comparison Mode In Comparison Mode you can define up to a maximum of 32 Comparison data per Counter The Outputs are controlled according to the direction in which the Counter Value crosses the Co
29. Supply Units for both the NJ series CPU Rack and Expansion Racks Operation is not possible if a CJ series Power Supply Unit is used with an NJ series CPU Unit or an NJ series Power Supply Unit is used with a CJ series CPU Unit CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 21 22 Precautions for Safe Use Do not apply voltages or connect loads to the Output Units or slaves in excess of the maximum rat Ings Surge current occurs when the power supply is turned ON When selecting fuses or breakers for external circuits consider the above precaution and allow sufficient margin in shut off performance Refer to the relevant manuals for surge current specifications Refer to the NJU series CPU Unit Hard ware User s Manual Cat No W500 for surge current specifications If the full dielectric strength voltage is applied or turned OFF using the switch on the tester the gener ated impulse voltage may damage the Power Supply Unit Use the adjustment on the tester to grad ually increase and decrease the voltage Apply the voltage between the Power Supply Unit s L1 or L2 terminal and the GR terminal when test ing insulation and dielectric strength Do not supply AC power from an inverter or other device with a square wave output Internal temper ature rise may result in smoking or burning Always input a sinusoidal wave with the frequency that is given in the NJ series CPU Unit Hardware User s Manual Cat No
30. Unit W492 4 Exchanging Data with CPU Variable name Data type Wem O Function c2D 0 OutPat DWORD Range 0 Output Pattern Range 0 output pattern c2D 1 _sCJCTO21_Ex_ Range 1 Range 1 lower limit upper limit values and output RngRing pattern c2D 2 _sCJCTO21_Ex_ Range 2 Range 2 lower limit upper limit values and output RngRing pattern c2D 3 _sCJCT021_Ex_ Range 3 Range 3 lower limit upper limit values and output RngRing pattern c2D 4 _sCJCTO21_Ex_ Range 4 Range 4 lower limit upper limit values and output RngRing pattern CGDIS _sCJCT021_Ex_ Range 5 Range 5 lower limit upper limit values and output RngRing pattern c2D 6 _sCJCT021_Ex_ Range 6 Range 6 lower limit upper limit values and output RngRing pattern c2D 7 _sCJCTO21_Ex_ Range 7 Range 7 lower limit upper limit values and output RngRing pattern c2D 8 _sCJCTO21_Ex_ Range 8 Range 8 lower limit upper limit values and output RngRing pattern c2D 9 _sCJCTO21_Ex_ Range 9 Range 9 lower limit upper limit values and output RngRing pattern c2D 10 _sCJCTO21_Ex_ Range 10 Range 10 lower limit upper limit values and out RngRing put pattern c2D 11 _sCJCT021_Ex_ Range 11 Range 11 lower limit upper limit values and out RngRing put pattern c2D 12 _sCJCTO21_Ex_ Range 12 Range 12 lower limit upper limit values and out RngRing put pattern c2D 13 _sCJCTO21_Ex_ Range 13 Range 13 lower limit upper limit values and out RngRing put pattern c2D 14 _sCJCT021_Ex_
31. Using CJ series Units EEN gt 2 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Manual Configuration Manual Configuration H NJ series CPU Unit Hardware User s Manual Cat No W500 Section Section 1 Introduction Section 2 System Configuration Section 3 Configuration Units Section 4 Installation and Wiring Section 5 Troubleshooting Section 6 Inspection and Maintenance Appendices Description This section provides an introduction to the NJ series Controllers and their features and gives the NJ series Controller specifications This section describes the system configuration used for NJ series Controllers This section describes the parts and functions of the configuration devices in the NJ series Controller configuration including the CPU Unit and Configuration Units This section describes where and how to install the CPU Unit and Configuration Units and how to wire them This section describes the event codes error confirmation methods and corrections for errors that can occur This section describes the contents of periodic inspections the service life of the Bat tery and Power Supply Units and replacement methods for the Battery and Power Supply Units The appendices provide the specifications of the Basic I O Units Unit dimensions load short circuit protection detection line disconnection detection and measures for EMC Directives H NJ serie
32. W500 Install external breakers and take other safety measures against short circuiting in external wiring i Turning ON the Power Supply It takes up to approximately 10 to 20 s to enter RUN mode after the power is turned ON During that time outputs will be OFF or will be the values specified in the Unit or slave settings and external communications cannot be performed Use the RUN output on the Power Supply Unit for example to implement fail safe circuits so that external devices do not operate incorrectly Configure the external circuits so that the power supply to the control system turns ON only after the power supply to the Controller has turned ON If the power supply to the Controller is turned ON after the control power supply temporary errors may result in incorrect control system signals because the output terminals on Output Units may momentarily turn ON when power supply is turned ON to the Controller If you transfer data from a backup file on an SD Memory Card to the Controller when the power sup ply is turned ON properly select the data groups to transfer If the data for an unintended data group is transferred to the Controller it may cause the equipment to operate unpredictably H Actual Operation Check the user program data and parameter settings for proper execution before you use them for actual operation Il Turning OFF the Power Supply Never turn OFF the power supply to the Controller when the BUSY indicat
33. a a 3 29 3 5 3 Manual Output Control 3 36 3 5 4 Output Control Configuration eee 3 37 3 0 Rese COUNTCR e eu ege eg eet dee ee are ey ate 3 38 Set eXtra FUNCUONS sii A A a he ee eee eee eee 3 40 3 7 1 Programmable Output Pulses 3 40 E e KEE 3 42 3 9 NOLS A eae eee Ae ee 3 43 3 7 4 Initial Counter TEEN 3 44 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 1 3 Operation and Configuration 3 1 Overview 3 1 1 Summary You can make the Unit settings after you complete registration of the CJ1W CT021 High speed Counter Unit to the Unit Configuration and registration of device variables for CJ series Unit Unit settings are made with Edit Special Unit Settings of Sysmac Studio Alternatively set device vari ables for CJ series Unit for setting refer to 4 7 Overview in the user program The setting by device variables for CJ series Unit for setting is available only with Counters set as Cir cular Linear Counters by the DIP switch on the front face of the Unit Simple Counters use the default setting and cannot be set by the device variables for CJ series Unit for setting This section describes how to set the CJ1W CT021 High speed Counter Unit to meet the specific needs of the user application Refer to 1 4 Quick Start Up Reference Guide for an overview of the con figuration items for every Counter Also throughout this section the device variables for CJ series Unit that
34. and output RngLin pattern c1D 9 _sCJCTO21_Ex_ Range 9 Range 9 lower limit upper limit values and output RngLin pattern CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 23 4 Exchanging Data with CPU Variable name c1D 10 c1D 11 c1D 12 c1D 13 c1D 14 c1D 15 c1D 16 c1D 17 c1D 18 c1D 19 c1D 20 c1D 21 c1D 22 c1D 23 c1D 24 c1D 25 c1D 26 c1D 27 c1D 28 c1D 29 c1D 30 c1D 31 Variable name c2D 0 _sCJCTO21_Ex_ Range 10 RngLin _sCJCTO21_Ex_ Range 11 RngLin _sCJCT021_Ex_ Range 12 RngLin Function Range 10 lower limit upper limit values and out put pattern Range 11 lower limit upper limit values and out put pattern Range 12 lower limit upper limit values and out put pattern Range 13 lower limit upper limit values and out put pattern _sCJCTO21_Ex_ Range 14 Range 14 lower limit upper limit values and out RngLin put pattern _sCJCTO21_Ex_ Range 15 Range 15 lower limit upper limit values and out RngLin put pattern _sCJCTO21_Ex_ Range 16 Range 16 lower limit upper limit values and out RngLin put pattern _sCJCT021_Ex_ Range 17 Range 17 lower limit upper limit values and out RngLin put pattern _sCJCTO21_Ex_ Range 18 Range 18 lower limit upper limit values and out RngLin put pattern _sCJCTO21_Ex_ Range 19 Range 19 lower limit upper limit values and out RngLin put pattern _sCJCTO21_Ex_ Rang
35. are relevant to operate the Unit from the CPU Unit user program are mentioned For details on device variables for CJ series Unit for input output refer to 4 2 3 Details of Device Variables for CJ series Unit for input output For details of device variables for CJ series Unit for setting refer to 4 2 4 Details of Device Variables for CJ series Unit for setting 3 1 2 List of Functions Allocation Areas by Purpose Refer to Explanation of functions used reference Name of device variable for CJ series Unit for input output and Name of device variable for CJ series Unit for setting shown below according to the purpose for which you will use the High speed Counter Units Determining How the Counter Will Be Used Name of pace Explanation of functions used device variable Name of device variable H reference for CJ series Unit for CJ series Unit for setting for input output To select a pulse input 3 3 Input Signal Types e Counter Types method e Phase differential Signal Types e Up amp down pulse e Z reset Mode Overflow Pulse amp direction Underflow error code genera tion e Upper Count Limit Circular Linear e Lower Count Limit Linear 3 2 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration Name of GE Explanation of functions used device variable Name of device variable p reference for CJ series Unit for CJ series Unit for setting for
36. below Event levels are given in the table as follows Maj Major fault level Prt Partial fault level Min Minor fault level Obs Observation Info Information Refer to the NJ series Troubleshooting Manual Cat No W503 for all of the event codes that may occur in an NJ series Controller Event code Eventname Meaning Assumed cause Reference 68010000 hex Unit Error An error occurred in There is an error in the Special page 11 the High speed Unit Setup Counter Unit e An overflow or underflow error occurred e An illegal preset value was used e ACPU Unit monitor error or bus error occurred kh do m lt 5 P r O 0 9 qe1 10113 c S CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 9 5 Error Processing Maintenance and Inspection 5 3 3 Error Descriptions This section describes the information that is given for individual errors i Controller Error Descriptions The items that are used to describe individual errors events are described in the following copy of an error table Event name Gives the name of the error Gives the code of the error Meaning Gives a short description of the error Source Gives the source of the error Source details Gives details on Detection Tells when the Error attributes Tells the level of Recovery Gives the recov Log category Effects User program Tells what will hap Operation variables the source of t
37. counting limits i e 2 147 483 648 and 2 147 483 647 respectively 2 147 483 648 lt Lowercount Limit lt 1 1 lt Uppercount Limit lt 2 147 483 647 Count up Counter Value he Countdown Underflow Overflow If a Counter Value exceeds the Upper Count Limit an overflow is set in the device variable for CJ series Units if a Counter Value is below the Lower Count Limit an underflow is set You can make settings to issue corresponding error codes when an overflow or underflow occurs If a Z reset Mode Overflow Underflow error code generation Bits 04 to 07 is set the overflow under flow error can be stored in the Unit EEPROM refer to 5 2 2 Overflow Underflow errors Another feature of overflow underflow error code is that output states at errors can be predefined For this purpose you should use the Output State Control function refer to 3 5 4 Output Control Configuration for more information 3 12 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration e Configuring Upper and Lower Count Limits The Upper Count Limit must be positive and the Lower Count Limit must be negative If either is set to 0 the upper count limit becomes 2 147 483 647 and the lower count limit becomes 2 147 483 648 To set the Upper and Lower Count Limits refer to the following Name of device variable Tube ERR for CJ series Unit YP Chi_UpCtLmtCfg UDINT Upper Cou
38. data will be used EN Additional Information If you do not want the Comparison data to be consecutive and only intend to use two Compari son data e g Comparison data 0 and Comparison data 15 then you still have to define the number of Comparison data M to be 16 In order to prevent configuration errors from happen ing you should make sure that the Comparison data 1 to 14 is also valid although you do not intend to use Comparison data 1 to 14 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 Exchanging Data with CPU e Configuring Indirect Addressing An indirect address for the Unit in Range or Comparison Mode is specified with a device variable for a CJ series Unit for setting for every Counter You must specify the memory area EM DM and the address 00000 to 32760 of the first word where the Range Comparison data is to be stored The size of the comparison data block is determined for every Counter depending on the number of ranges or comparison data For every Range 6 words and for every Comparison data 10 words are allocated Range and comparison data is transferred from the CPU Unit as Unit setting data after the Unit Con troller is reset or the Unit is restarted e Example Range Mode With the Unit in Range Mode if 12 range items 0 to 11 are set in Counter 1 and the data is allo cated to the area starting with D0185 Sysmac Studio is used to set as follows Device variable for CJ
39. dissipation and could cause a malfunction e Be sure to turn OFF the power of the controller before installing or removing units or connect ing or disconnecting connecting lines Use the following procedure to install CJ1W CTO21 High speed Counter Units Connect the Units before mounting them to DIN rail 1 Align the connectors and hooks accurately and press the Units together firmly when connecting them 2 6 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 Components Installation and Wiring 2 Slide the yellow sliders on the top and bottom of the Units until they click into place firmly lock ing the Units together Slide the sliders toward the back until they click into place Slider Ga N 5 D r D O 5 sun Buiesu Z Z Z AA F A 4 d N Volk Precautions for Safe Use The Units may not function properly if the sliders are not locked into place Always connect the End Plate to the rightmost Unit The NJ series PLC will not function properly without the End Plate connected The End Plate is provided with the CPU Unit CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 Components Installation and Wiring 2 3 Wiring 2 3 1 Connector Pin layout The 40 pin connector CN1 on the front of the Unit is divided in Row A and Row B each row containing 20 pins as indicated on front of the Unit The Digital Outputs Digital In
40. ease f Counter Input Z 24 VDC 12 VDC 5 VDC Line Driver 186V 0 6V 98V 8 V 4 ENS V Connectable to 4 MS 25 EN 15V EE 422 compati ble Line Drivers Counter Inputs A and B Additional Information Each Counter Input A B Z is insulated from the others and from the Digital Inputs Each Dig ital Input is also insulated from the others e A noise filter can be configured to 10 kHz or 50 kHz default for the Digital Inputs Every Z Input has a defined noise filter of 1 kHz e f the 50 kHz noise filter is configured for Digital Inputs signals of 10 us or longer can be read CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 Introduction do LH Counter Inputs A B Z and Digital Inputs o 2 o a 5 12 or 24 VDC input signals RS 422 Line Driver signals re St 2 o OO 2 V a Counter inputs A and B Counter inputs A and B Input pulses with a duty factor of 50 Input pulses with a duty factor of 50 Go oo gt D NR D OD O O jab Les d O D dp Relationship between A and B phases with phase Relationship between A and B phases with phase differential inputs differential inputs U D H Phase A L y Phase A On Phase B lt gt D en end Phase B DD H D D Counter Input Z Maximum a llowedf requency of Z pulses is 1 kHz Maximum allowed frequency of Z pulses is 1k Hz Filter Timing requirement us Leana e aara ee
41. effects will be caused by deviations in the timing of I O If you perform online editing the task execution time may exceed the task period I O may not be refreshed with external devices input signals may not be read and output timing may change 20 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Precautions for Safe Use Precautions for Safe Use i Disassembly and Dropping Do not attempt to disassemble repair or modify any Units Doing so may result in malfunction or fire Do not drop any Unit or subject it to abnormal vibration or shock Doing so may result in Unit malfunc tion or burning H Mounting The sliders on the tops and bottoms of the Power Supply Unit CPU Unit I O Units and other Units must be completely locked until they click into place after connecting the adjacent Unit connectors H Installation Always connect to a ground of 100 Q or less when installing the Units A ground of 100 Q or less must be installed when shorting the GR and LG terminals on the Power Supply Unit i Wiring Follow the instructions in this manual to correctly perform wiring Double check all wiring and switch settings before turning ON the power supply Use crimp terminals for wiring Do not connect bare stranded wires directly to terminals Do not pull on the cables or bend the cables beyond their natural limit Do not place heavy objects on top of the cables or other wiring lines Doing s
42. factory value 1 Phase differential multiplication 2 2 Phase differential multiplication 4 4 Up amp down pulse 8 Pulse amp direction CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 Exchanging Data with CPU Name of device variable Ch2 ZOvfUdfCfg WORD AW Z reset Mode Over Bits 00 to 03 This sets the Z phase input signal flow Underflow error function code generation 16 0 No function factory value 16 1 Reset Z phase input signal rising edge Bits 04 to 07 Sets whether or not overflow under flow error codes are created 16 0 Error codes are not created The over flow underflow bit is set and the output retains the previous status factory value 16 1 Error codes are created Error codes are reported and all output is switched OFF Bits 08 to 15 Use with 16 00 factory value R Ch2_UpCtLmtCfg UDINT R W Upper Count Limit Cir Sets the circular Linear Counters upper count limit cular Linear Data range 0 to 4 294 967 295 Unit Pulse Factory value O a N D 3 O lt gt o O DI e Lower Count Limit Lin Sets the Linear Counter lower count limit car Data range 2 147 483 648 to 0 Unit Pulse Factory value O Ch2_LowCtLmtCfg DINT Ch2_InitLinCtCfg DINT Initial Count Value Sets the initial Counter Value after unit setting data is transferred Used for Simple Counter or Linear Counter Data range 2 147 483
43. logically multiplied and the result is regarded as the output pattern for the Unit When plural Counters are used to control an application you can select either logical OR or logical AND for the Counter output patterns to decide the output pattern for the Unit This selection allows to make plural outputs ON when range conditions of plural Counters are met For instance it is pos sible to make one certain output ON when range conditions of both the Counter 1 and 2 are met To have logical AND of Counter output patterns use bits 8 to 15 of the device variables for CJ series Unit for setting CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration Name of device variable Tee Eege for CJ series Unit Ma OutCtIMdCfg WORD Output Control Bits 0 to 7 Output Control Mode Mode AND OR Sets the Output Control Mode Counter Output Patterns 16 00 Range Mode 16 01 Comparison Mode Bits 8 to 15 Counter output pattern AND OR d selection O For Range Mode selects whether the E Counter output pattern is logically OR or O AND S 16 00 OR 9 16401 AND EN Additional Information The Counter Output Patterns of Counters which are configured to use no i e zero Ranges are ignored in the AND calculation of the Unit Output Pattern Like this Counters that you do not want to use do not influence the AND calculation of the Unit Output Pattern If both the Counters are configured
44. make sure to use the corresponding NPN or PNP output pin Digital Inputs The Digital Inputs should be supplied with 24 VDC signals Every Digital Input I0 and 11 is equipped with a separate Ground Signal OV and has its own electronic input circuitry This gives you the opportunity to connect sensors either with a NPN or PNP output driver By making the appropriate Special Unit setup it is possible to assign multiple Digital Inputs to single Counters refer to 3 4 Digital Inout Functions for more details iS do 5 e Counter Inputs To the Counter Inputs of the High speed Counter Unit signals can be applied originating from one of the following driver types e RS 422 Line Driver e 5 12 and 24 VDC signals from NPN or PNP Drivers The Unit allows you to connect Line Driver signals and 24 VDC signals to any Counter The following table gives an overview of which driver signals can be applied to which Counters spoy1enN Punim 10199UuU0O 2 2 Counter 1 Counter 2 2 3 2 Connector Wiring Methods Precautions for Safe Use e Prevent wire clippings cutting chips or other materials from getting inside the Unit They could cause scorching failure and malfunction Pay particular attention to this during installation and take measures such as covering with a cover e If the Unit was shipped from the factory with the dust protection label on top of the unit be sure to remove that label before switching ON the power
45. number of ranges M defines the size of the range data block size M x 6 words When using multiple range items in order to reserve exclusive memory it is recommended to save the items consecutively starting from range 0 For example when range 0 1 2 3 are set this becomes M ij EN Additional Information If you do not want to allocate range data items consecutively for example if you allocate two range data items Data 0 and 15 the number of range items M must be set to 16 This is to avoid a setting error The range data 1 to 14 must be enabled even if you do not intend to use them e For a Unit in Comparison Mode In Comparison Mode Indirect Addressing can be used to define the comparison data per Counter that you want to use The number of comparison data M defines the size of the Data block size M x 10 words If you want to use multiple CV s you are recommended to use consecutive compari son data starting from comparison data 0 i e CV 0 1 2 3 gt M 1 in order to save memory occu pation EM DM Comparison data 0 Special I O Unit DM Area Comparison data 1 Ee e Hof Comparison data M 0 lt M lt 32 Comparison data 2 Comparison data 3 EM 0 DM 1 Area Size of CV Data block Number of CV s M x 10 words Indirect address k c 00000to 32760 se we ot Counter c Comparison data 1 c lors Assumed that M 4 0 By default M 0 which means that no Comparison
46. power supply voltage of the external device as required You must take fail safe measures to ensure safety in the event of incorrect missing or abnormal signals caused by broken signal lines momentary power interruptions or other causes Not doing so may result in serious acci dents due to incorrect operation Del Gei Gei Gei Ge Voltage and Current Inputs Make sure that the voltages and currents that are input to the Units and slaves are within the specified ranges Inputting voltages or currents that are outside of the specified ranges may cause accidents or fire d Downloading Always confirm safety at the destination before you transfer a user program configuration data setup data device variables or values in memory used for CJ series Units from the Sysmac Studio The devices or machines may perform unexpected operation regardless of the operating mode of the CPU Unit CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 19 Safety Precautions Application Do not touch any Unit when power is being supplied or immediately after the power supply is turned OFF Doing so may result in burn injury i Wiring Be sure that all terminal screws and cable connector screws are tightened to the torque specified in the relevant manuals The loose screws may result in fire or malfunction Online Editing Execute online editing only after confirming that no adverse
47. series CPU Unit Hardware User s Manual NJ series CPU Unit Software User s Manual NJ series Instructions Reference Manual NJ series CPU Unit Motion Control User s Manual NJ series CPU Unit Built in EtherCAT Port User s Manual NJ series Motion Control Instructions Reference Manual NJ series CPU Unit Built in EtherNet IP Port User s Manual NJ series Troubleshooting Manual CJ series Special Unit Operation Manuals for NJ series CPU Unit Introduction to NJ series Controllers Setting devices and hardware Using motion control Using EtherCAT Using EtherNet IP y Using CJ series Units Software settings Using motion control Using EtherCAT Using EtherNet IP Programming Using motion control Using EtherCAT Using CJ series Units Programming error processing Testing operation and debugging Using motion control Using EtherCAT q In NN UN Wa WW been Kc been Kc dE gt o been H ON fl So fel SS D gell oj LS fe WW fe WO been been a i CS E A f We ME zg EE gebake Se OS oo zg a E E SE ees TA AA A pe El Geer eg Es RE SE AN Ed Sse See deed E SE gt T H NM E EE WS pe ee E EE We e Ge SE TN SE SE a MS E A y E E 7 Using EtherNet IP Troubleshooting and managing relevant errors in an NJ series Controller manuals for references according to any error that Maintenance Using EtherCAT Using EtherNet IP
48. set as a Simple Counter it is indicated in the device variables for CJ series Unit for input e The device variables for CJ series Unit for setting that set Counter functions are not used for a Simple Counter e Controlling Simple Counters via Device Variables for CJ series Unit for input output You can control Simple Counters from device variables for CJ series Unit for input output For details on device variables for CJ series Unit for input output refer to 4 2 3 Details of Device Vari ables for CJ series Unit for input output The following gives a detailed description of all the features and functions for Simple Counters that are available in device variables for CJ series Unit for input output e 32 Bits Counting Range A Simple Counter has the full counting range 32 bits available to count up or downwards over the positive and negative counting range between the Lower Count Limit 2 147 483 648 and the Upper Count Limit 2 147 483 647 Lower Count Limit Upper Count Limit 2 147 483 648 0 2 147 483 647 80000000 7FFFFFFF Up Counting gt Counter V alue E BE Down Counting Underflow Overflow e Overflow and Underflow If a Counter Value exceeds the upper or lower limit it is reflected to the following device variables for CJ series Unit for input as an overflow or underflow The Counter Value is retained as the time of overflow or underflow and subsequent pulses are i
49. suppress noise on the signal lines of the Counter Inputs A and B and the Digital Inputs IO and 11 a Noise Filter can be configured to e 10 kHz e 50 kHz default e 500 kHz For the Digital Inputs the 500 kHz filter can not be selected The Z Input Signals of every Counter are filtered with a fixed Noise Filter of 1 kHz Refer to 3 7 3 Noise Filtering e The initial Counter Values is transferred to the Counter Unit when the Controller is reset or the Counter Unit is restarted Refer to 3 7 4 Initial Counter Value e Stores up to 30 error log records refer to 5 2 Error codes This specification item is only supported for Circular and Linear Counters not for Simple Counters For a com plete overview of the differences between Simple and Circular Linear Counters refer to 1 4 Quick Start Up Refer ence Guide CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 9 pue suolje91jidads S91 S119 9818y mb Ce M TI Cc D gt CH O D v Oo D CD O Sh CH DI Er O D nm 1 Introduction 1 3 3 Input Specifications Item Input Voltage Input Current typical ON Voltage min OFF Voltage max Item Input Voltage Input Current typical ON Voltage min OFF Voltage max Digital Inputs 10 and 11 24 VDC 12 VDC 5 VDC Line Driver 24 VDC 19 6 to 26 4 V 9 8 to 13 2 V 4 5 to 5 5 V 19 6 to 26 4 V 196V 0 6V 4 45V 0 V Connectable to 19 6 V
50. takes about 300 us A 16 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Appendicies A 4 Application Restrictions The following restrictions apply when using CJU1W CT021 High speed Counter Units Restriction When a 50 kHz noise filter is configured External Control Inputs cannot read signals shorter than 10 us The time from signal input to resetting for External Control Inputs is 300 us max The Open Gate Close Gate Preset Counter or Reset in device variables for CJ series Unit for output may not be executed if the CPU Unit is ON for only one task period Always keep them turned ON until the status changes in the corresponding bit External Control Inputs may not be reflected in the status of External Inputs n 2 n 5 if the pulse width is extremely short The following are the main reasons for this e The signal is shorter than the CPU Unit task period The comparison operation stops for 1 5 ms from when the High speed Counter Value falls within the Upper Range Limit or Lower Range Limit for the range data However the comparison does not stop for other Counters Consider the time that the comparison is stopped when making settings for range data When the High speed Counter Value reaches the comparison value comparison stops for 1 5 ms However comparison for other Counters does not stop Consider the time the comparison stops when setting Comparison Data I O is not refreshed dur
51. tery can be replaced without turning OFF the power supply To do so always touch a grounded piece of metal to discharge static electricity from your body before you start the procedure After you replace the Battery connect the Sysmac Studio and clear the Low Battery Voltage error e Make sure that the required data including the user program configurations settings variables and memory used for CJ series Units is transferred to a CPU Unit that was replaced and to externally connected devices before restarting operation Be sure to include the routing tables network parameters and other CPU Bus Unit data which are stored in the CPU Unit Bf Disposal e Dispose of the product and Batteries according to local ordinances as they apply SA Gi 55058 Elk e The following information must be displayed for all products that contain primary lithium batteries with a perchlorate content of 6 ppb or higher when shipped to or transported through the State of Califor nia USA Perchlorate Material special handling may apply See www dtsc ca gov hazardouswaste perchlorate e The CPU Unit contains a primary lithium battery with a perchlorate content of 6 ppb or higher Place the above information on the individual boxes and shipping boxes when shipping finished products that contain a CPU Unit to the State of California USA CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Precautions for Correct Use Precaut
52. the MC Function Module as the positive limit input negative limit input and home proximity input Make sure that the signal widths for all of these input signals are longer than the control period of the MC Function Module If the input signal widths are shorter than the control period the MC Function Module may not be able to detect the input signals resulting in incorrect operation i Battery Replacement The Battery may leak rupture heat or ignite Never short circuit charge disassemble heat or incinerate the Battery or subject it to strong shock e Dispose of any Battery that has been dropped on the floor or otherwise subjected to excessive shock Batteries that have been subjected to shock may leak if they are used e UL standards require that only an experienced engineer replace the Battery Make sure that an expe rienced engineer is in charge of Battery replacement CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 25 26 Precautions for Safe Use e Apply power for at least five minutes before changing the Battery Install a new Battery within five minutes at 25 C of turning OFF the power supply If power is not supplied for at least 5 minutes the saved data may be lost Unit Replacement We recommend replacing the Battery with the power turned OFF to prevent the CPU Unit s sensitive internal components from being damaged by static electricity and to prevent malfunctions The Bat
53. the programmable output ON function is allocated to external output the external output status including output ON delay and output ON hold is reflected in Bit 00 and Bit 01 of this variable e Configuring Programmable Output Pulses Name of device variable Tvbe EE for CJ series Unit yp OutOnDelayTm0Cfg WORD Output Pulse Turn ON Sets the output ON delay time for external Delay Time BCD Dig output 0 When this is set to 16 0000 the ital Output O function operates normally Data range 160000 to 9999 BCD Unit ms OutDur0Cfg WORD Output Pulse Duration Sets the output ON hold time for external BCD Digital Output O output 0 When this is set to 160000 the function operates normally Data range 160000 to 9999 BCD Unit ms OutOnDelayTm1Cfg WORD Output Pulse Turn ON Sets the output ON delay time for external Delay Time BCD Dig output 1 When this is set to 160000 the ital Output 1 function operates normally Data range 16 0000 to 9999 BCD Unit ms OutDur1Cfg WORD Output Pulse Duration Sets the output ON hold time for external BCD Digital Output 1 output 1 When this is set to 16 0000 the function operates normally Data range 16 0000 to 9999 BCD Unit ms EN Additional Information e A Digital Output to which an Output ON Delay or Output Pulse is applied will turn OFF immedi ately after the corresponding Output 0 1 of the Output Pattern has turned OFF An Output Pulse ON Dela
54. the variable table The following is the configuration of variable names created with automatic creation in step 3 Name of device variable for CJ series Unit Ch1_Prst This is an l O port name The name indicates the unit function status and parameter This is the device name when this unit is registered in the Unit Configuration By default a device name is assigned from J01 in the order of registration in the Unit Configuration This identifies the individual unit CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 5 4 Exchanging Data with CPU Additional Information For details on creation of device variables for CJ series Unit refer to Sysmac Studio Version 1 Operation Manual Cat No W504 In the explanations from here on the device name automatically created is used as the device variable for CJ series Unit for example Ch1 Prst Allocating User defined Variables For the data used in Range Mode and Comparison Mode itis necessary to allocate the variables used by the user user defined variables to memory for CJ series Unit Structure data types are pre defined for comparison data used in Range Mode and Comparison Mode In order to use these data types register the structure data type for High speed Counter Units before hand on the CPU Expansion Racks screen in Configuration and Setup of Sysmac Studio With the Unit selected on the CPU Expansion Racks screen in Conf
55. to 2 147 483 647 Ch1 PrstRingCtVal UDINT Preset Value Used for a Circular Counter Ch2 PrstRingCtVal Set it in the range 0 to 4 294 967 295 The Counter Value is overwritten by the preset value at the rising edge of the Preset Counter bit e Q a D 5 3 eb Tl c 5 O 5 D Oo Reset Function A Digital Input configured to have Reset functionality will reset the Counter to zero on a rising edge Reset Rising Edge Function 05 or falling edge Reset Falling Edge Function 06 of the Digital Input signal Function 05 Function 06 Reset Rising Edge Reset Falling Edge Reset Counter Reset Counter Value to zero Value to zero To reset a Counter by the Function 05 or 06 it is necessary to set the following variable Reset Enable to 1 lt is also possible to reset a Counter by using the following device variable for CJ series Unit for out put Reset Name of device variable me mme EIN for CJ series Unit Ch1 Rst BOOL Reset O to 1 Counter reset Ch1_RstEnbl BOOL Reset Enable 0 Disable Ch2_RstEnbl TT Te 1 Enabled Additional Information e Resets from an Digital Input signal will be executed within 300 us e The Open Gate Close Gate Preset or Reset in device variables for CJ series Unit for output may not be executed if turned to 1 for only one task period Always keep them 1 until the execution status changes in the corresponding flag Counter Running Gate Open Preset Activated a
56. to User defined Variable With Sysmac Studio you can specify an AT allocation destination for the DM EM area that you secured for ranges or comparison data by specifying indirect addresses see page 4 8 With user defined variables it is possible to specify an arbitrary variable name Once it is allocated the ranges and comparison data can be read and written from Sysmac Studio or from a user program An actual example of allocation to user defined variables is explained below Example The 12 range data items shown below are allocated for Gounter 1 using the structure data type _sCJCTO21_Ex_RngLin pre defined for user defined variable CmpData Setting the Device Variables for CJ series Unit for setting Device variable for CJ series Unit Data type Name Set value Ch1_NumRngCmpCfg WORD Number of Ranges Comparison data 16 0012 BCD DM Ch1_MemAdrCfg DWORD Memory Address BCD 16 00001850 Note After this setting reset the Controller or restart this Unit Data type definition Structure data type name Member Datatype Name _sCJCT021_Ex_RngLin Lower Limit Range Upper Limit Range Output Pattern Register the structure data type for High speed Counter Units beforehand on the CPU Expansion Racks screen in Configuration and Setup of Sysmac Studio With the Unit selected on the CPU Expansion Racks screen in Configuration and Setup right click then select Register Data Types for Units The data type is registered
57. to which it is assigned The action can be performed on the rising or on the falling edge of the Digital Input signal Depending on the requirements of your application you must select the corresponding Function By default no function is assigned to the Digital Inputs and no action is performed on a rising or falling edge of the Digital Input signal Only Digital Input statuses are reflected in device variables for CJ series Unit for e Q Sch 5 3 eb Tl c 5 O 5 D c 102 input Name of device variable Type Eer for CJ series Unit YP DigilnOFunCfg WORD Digital Input 0 Func Bits 07 to 00 Digital input O function selec tion Counter Number _ tion 16 00 No function 16 01 Positive gate Function 01 16 02 Negative gate Function 02 Digilnt EunCfg WORD Digital Inout 1 Func 16 03 Rising edge preset Function 03 tion Counter Number 16 04 Falling edge preset Function 04 16 05 Rising edge reset Function 05 16 06 Falling edge reset Function 06 16 15 Reset enabled Function 15 16 16 Reset disabled Function 16 Bits 15 to 08 Counter number 16 No 01 Counter 1 16 No 02 Counter 2 EN Additional Information e Unit settings are made with Edit Special Unit Settings of Sysmac Studio Do not select items that use the capture function from the Digital Input Function drop down list When used with the NJ Series the capture function cannot be used e The Settings specified in the Ed
58. 0 O Cc U SA W i Be D O A Hardware setting and Rack assembly Cc Q O So o O D Cc U LL tu KA Cc W i _ U _ D O Benn A Create POU and global variables Create Unit Configuration Create Initial Settings Data of the Unit Set the Unit number Set the types of Counters Mount and wire to the Rack Turn ON the power supply to the Controller Transfer the user programs Reset the Controller or restart the Unit 1 Introduction Inp 20ld Dugiadoc L Q E Q D 0 Create and register global variables and each POU Create algorithm of each POU and register local variables of each POU Register the Unit in the Unit Configuration on the CPU Expansion Racks screen in Configuration and Setup At this time set both the device name and the unit number of the unit to be registered Create device variables for CJ series Unit on the I O Map View window Allocate on the I O Map View window You can use one of the following three methods to allocate 1 Select and allocate existing variables 2 Input a new variable name 3 Automatically create with Device variable creation Create the Unit settings by using the Edit Special Unit Settings when using Circular Linear Counters Types of Counters and inputs Digital Input function Comparison data count addresses etc Register the structure data type for this Unit
59. 0 UOIJe90 y AOWAN S Z p 4 Exchanging Data with CPU Variable name Data type Wem O Function c2D 27 _sCJCTO21_Ex_ Range 27 Range 27 lower limit upper limit values and out RngRing put pattern c2D 28 _sCJCTO21_Ex_ Range 28 Range 28 lower limit upper limit values and out RngRing put pattern c2D 29 _sCJCTO21_Ex_ Range 29 Range 29 lower limit upper limit values and out RngRing put pattern c2D 30 _sCJCT021_Ex_ Range 30 Range 30 lower limit upper limit values and out RngRing put pattern c2D 31 _sCJCTO21_Ex_ Range 31 Range 31 lower limit upper limit values and out RngRing put pattern For details on output patterns refer to 3 5 1 Range Mode 4 26 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 Exchanging Data with CPU 4 2 6 Memory Allocation for Comparison data Comparison data are set in the user defined variable Refer to Allocation to User defined Variable P 4 10 for more information Two types of structure data are prepared beforehand for comparison data user defined variables one type for Linear Counters and one type for Circular Counters Register the structure data type for High speed Counter Units beforehand on the CPU Expansion Racks screen in Configuration and Setup of Sysmac Studio With the Unit selected on the CPU Expansion Racks screen in Configuration and Setup right click then select Register Data Types for Units The data type is registered and becomes usable
60. 00 kHz filter can only be configured for the Counter Inputs not for the Digital Inputs 1 16 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 Introduction 1 4 1 Configuring the High speed Counter Unit e Configuration 1 Configuring every Counter starts with choosing the Counter Type Simple Circular or Linear Simple Counter For Simple Counters you do not have to make any Special Unit settings since for Simple Counters all the default settings are used Choose Simple Counters when only basic counting functionality is required refer to 3 2 1 Simple Counter and to 1 5 Operating Procedure Guidelines Circular Linear Counter If you want to use the full available functionality for a Counter you must configure it for Circular or Linear Counter refer to 3 2 2 Circular Counter and 3 2 3 Linear Counter for details and to 1 5 Oper ating Procedure Guidelines tor a quick start up procedure 2 The Input Signal Type Phase Differential Up down pulse or Pulse amp Direction for every Counter has to be defined 3 Depending on the requirements of the application one or more maximum 2 Digital Inputs can be assigned to a Counter To configure the Digital Input s a choice can be made out of 8 avail able modes e g Gate Enable Reset or Combination Modes refer to 3 4 Digital Input Func tions During operation of the Counter the Counter can be Started Stopped Reset or Preset by using the Digital
61. 000 to 16 FFFFFFFF CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 13 4 Exchanging Data with CPU Name of device variable for CJ series Unit Ch1_RngCmpSta0 Ch1 RngCmpsta1 Ch1 RngCmpsta2 Ch1 RngCmpsta31 Ch1 LinCiVal Ch1_RingCtVal Ch1 CtOvf Chi CtUdf Ch1 CiRun Ch1 CniDir Ch1 PrstSta Ch1_RstSta Ch1 ZSig Ch1 SmplCntSta Ch2_RngCmpDatSta Ch2_RngCmpSta0d Ch2_RngCmpStal Ch2_RngCmpSta2 BOOL Ranges 0 Compari 1 Met 0 Not met son Values 0 active son Values 1 active son Values 2 active eer Ranges 31 Compari 1 Met 0 Not met son Values 31 active DINT Counter Value Shows the encoder Counter Value Used for Simple Counter or Linear Counter Data range 2 147 483 648 to 2 147 483 647 Unit Pulse UDINT Counter Value Shows the encoder Counter Value Used for Circular Counter Data range 0 to 4 294 967 295 Unit Pulse pene 1 The upper count limit of the Linear Counter is reached 5 e oe 1 The lower count limit of the Linear Counter is reached BOOL Counter Run 1 During Counter operation while gate open TTT E 0 While Counter stopped while gate closed BOOL Counting Direction 1 Count up see Te ea Ty 1 The presets are executed BOOL GN Reset Activated 2 1 A reset is executed BOOL BOOL IR Z signal Activated 2 AZ signal is input BOOL Simple Counter 1 Simple Counter O Circular Linear Counte
62. 021_Ex_ Comparison data 15 Comparison value output set reset pattern CmpLin c1D 16 _sCJCT021_Ex_ Comparison data 16 Comparison value output set reset pattern CmpLin c1D 17 _sCJCTO21_Ex_ Comparison data 17 Comparison value output set reset pattern CmpLin c1D 18 _sCJCTO21_Ex_ Comparison data 18 Comparison value output set reset pattern CmpLin c1D 19 _sCJCTO21_Ex_ Comparison data 19 Comparison value output set reset pattern CmpLin c1D 20 _sCJCTO21_Ex_ Comparison data 20 Comparison value output set reset pattern CmpLin c1D 21 _sCJCT021_Ex_ Comparison data 21 Comparison value output set reset pattern CmpLin c1D 22 _sCJCT021_Ex_ Comparison data 22 Comparison value output set reset pattern CmpLin c1D 23 _sCJCT021_Ex_ Comparison data 23 Comparison value output set reset pattern CmpLin c1D 24 _sCJCT021_Ex_ Comparison data 24 Comparison value output set reset pattern CmpLin c1D 25 _sCJCT021_Ex_ Comparison data 25 Comparison value output set reset pattern CmpLin c1D 26 _sCJCTO21_Ex_ Comparison data 26 Comparison value output set reset pattern CmpLin c1D 27 _sCJCTO21_Ex_ Comparison data 27 Comparison value output set reset pattern CmpLin c1D 28 _sCJCTO21_Ex_ Comparison data 28 Comparison value output set reset pattern CmpLin 4 28 CJ series High speed Counter Units Operation Manua
63. 2 3 Operation and Configuration g Using Convenient Functions Name of Explanation of functions used device variable Name of device variable reference for CJ series Unit for CJ series Unit for setting for input output Purpose Output Pulse Turn ON Delay Time BCD Digital Output 0 Output Pulse Duration BCD Digital Output 0 Output Pulse Turn ON Delay Time BCD Digital Output 1 Output Pulse Duration BCD Digital Output 1 Hysteresis To make any desired 3 7 1 Programmable Output Pulses Output Status external output pattern w I mb O lt O lt D To apply hysteresis to 3 7 2 Hysteresis Range conditions To minimize malfunc 3 7 3 Noise Filtering tion due to noise Input Noise Filter Counters Input Noise Filter Digital Inputs esodind Aq SeaJy uonevojy suonouny JO 1SI7 Z CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 5 3 Operation and Configuration 3 2 Counter Types Every single Counter of the High speed Counter Unit can be set independently to one of the following Counter Types for an overview of the differences between Simple and Circular Linear Counters refer to 1 4 Quick Start Up Reference Guide e Simple Counter refer to 3 2 1 Simple Counter e Circular Counter refer to 3 2 2 Circular Counter e Linear Counter refer to 3 2 3 Linear Counter The configuration starts by setting each Counter s DIP switch on the front of the Unit
64. 2 Up amp Down Pulse e Pulse amp Direction 3 3 3 Pulse A Direction 3 4 Digital 2 Counter Control using Device Variables for CJ series Unit Input Func tions e Open Gate Start Counter e Open Gate Start Counter 3 4 Digital Close Gate Stop Counter Close Gate Stop Counter Input Func Preset Counter Preset Counter lions e Reset Counter e Reset Counter e Capture Counter Value e Capture Counter Value 3 4 Digital 3 Digital Input Functions Input Func tions e No Function default No Function 3 4 Digital Gate Positive Input Func Gate Negative lions Preset Rising Edge Preset Falling Edge Reset Rising Edge Reset Falling Edge e Reset Enable e Reset Disable 3 5 Output 4 Output Control Control e Automatic Output Control in Range Mode 3 5 1 Range Mode Comparison Mode 3 5 2 Compar ison Mode e Manual Output Control e Manual Output Control 3 5 3 Manual Output Control 5 Output State Control 3 5 4 Output figuration 6 Output Driver Configuration 3 5 4 Output e NPN default NPN Control Con PNP figuration CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 15 1 Introduction Simple Counter Circular Linear Counter EE section 7 Reset Signals 3 6 Reset Software Reset Bit Software Reset Bit Counter e Digital Input e Z signal 8 Programmable Output Pulses 3 7 1 Pro sad Output Pulse Filtering e 50 kHz default 11 Initial Counter Value 3 7 4 Initial pee ER The 5
65. 2_OutRstPatCfg Output Reset Pattern m 107 m 108 00to 15 Ch2 HystrsCfg Hysteresis m 109 00to07 Ch2 NumRngCmpCtg Number of Ranges Compari son Values BCD 08 to 15 A 10 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Appendices CJ series I O NJ series device variables for CJ series Unit memory address m 110 00to 03 Ch2 MemAreaCtg Memory Area 04 to 15 m 111 00to 15 Ch2_MemAdrCfg Memory Address BCD m 112 m 113 00to 15 Undefined to m 399 i Range Data Range data is set in the user defined variable Two types of structure data are prepared beforehand for range data user defined variables one type for Linear Counters and one type for Circular Counters Use these structures to define user defined variables Data type name Member Datatype Name _sCJCT021_Ex RngLin Lower Limit Range 0 Upper Limit Range 0 Output Pattern Range 0 _sCJCT021_Ex_RngRing Lower Limit Range 0 Upper Limit Range 0 Output Pattern Range 0 The table below is an example in which 32 Linear Counter range structure data type sCJCT021 Ex _RngLin are used as user defined variables and the variable name is defined as aaaa k is set with device variables for CJ series Unit Ch MemAreaCfg and Ch MemAdrCfg p Q SC OD OD gt O D Vu O h as Y D e d D Vu sa Oo 3 O a LD D D Vu CJ series UO memory address NJ series device variables for
66. 31 parison conditions 0 to 31 Ch2_RngCmpSta0 active 0 Range conditions not met _Ch2_RngCmpsta31 1 Range conditions met EN Additional Information Lower Range Limit Upper Range Limit can be set under the Range conditions e Enabling and Disabling of Range Conditions Each range condition can be enabled disabled separately When a pair of range conditions is set to disabled the default setting that output pattern is ignored when the unit output pattern is calcu lated When a pair of range conditions is set to enabled if conditions are established that output pattern is applied to the output pattern of the corresponding Counter The range condition enabled disabled status for a Counter is set in the device variable for CJ series Unit for setting shown below Name of device variable Tbe Function for CJ series Unit yP Ch1_RngCmpEnblCfg DWORD Range Comparison Sets whether the range and comparison Ch2_RngCmpEnblCfg Enable Data data is enabled or disabled Bits 00 to 31 correspond to comparison data Oto 31 0 Range conditions disabled 1 Range conditions enabled e Logically AND OR Counter Output Patterns In Range Mode output patterns of two Counters are logically summed logical OR and the result is regarded as the output pattern for the Unit This is the default setting If necessary the operation can be changed from logical OR to logical AND When it is set to logical AND output patterns of two Counters are
67. 9 AL AS AL AN AOS de do 5 Phase Z LD O Orange red Phase Z J Brown 5 VDC Ex E6B2CWA X Counter 2 Line Driver outputs Blue 0 V COM 5 VDC Power Supply Power Supply High speed Counter Shielded twisted pair cable An at 1 suonelmbriuoo indu Jajuno 9 2 Encoder ConnectorCN1 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 19 2 Components Installation and Wiring 2 20 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Operation and Configuration SSS This section describes how to configure the CJ1W CT021 High speed Counter Unit and how to operate the Unit according to the specific requirements of your application 3S1 OVGIVICW ge ee base SA AS See eae wae bam aera ee 3 2 3 1 1 SUMMA ee er ar Pc ae aoe Cera ta ar ee eeh ue 3 2 3 1 2 List of Functions Allocation Areas by Purpose 3 2 3 2 COUNT TYPES sn since fue eee ie ce AE ae ee 3 6 3 2 1 Smp ee EE 3 7 322 GEIER A MAA e ee A de SAWA AA NA 3 10 S270 mear Outer sar e ia e e el 3 12 359 INPUT Signal TYDES siii a ee ei a er ee ei 3 14 3 3 1 Phase Differential asidero perdida 3 14 S32 UPA DOWN PUSO sa dae 3 15 3 3 3 Puse G Re REECH 3 16 3 4 Digital Input Functions ta eee eee NN 3 17 3 9 QUIDUECONTTOL asia Ee 3 21 3 5 1 Range Mode tcs ria de ra aa Vee 3 23 3 5 2 Comparison Mode 91 TEE bes
68. CATIONS ccccccccccccccooooocnnnncnnnnnnnnnonononononnnnnnnnnononnnnononnnnnnnnnnnnnnnnnnnnnnnnnnnnnnanes 1 8 1 3 3 IADULS DECIIC ATION S anio E eee 1 10 1 3 4 QUIPUES DECI CALONS EE 1 12 1 4 Quick Start Up Reference Eegeregie eege eege 1 14 1 4 1 Configuring the High speed Counter Un 1 17 1 5 Operating Proc dure EU El CT 1 19 FO Applica AL E 1 22 Section 2 Components Installation and Wiring 10 2 1 Components and Switch SettinGS cccccssscesssssseeeseesseeeeeesseeseoeseeeeeenseeseoenseeesoeeseeeseenseesoes 2 2 2 1 1 COMPONEN cr Eeer EE EE EE 2 2 2 1 2 MACIO SN A NANAS NS a a LD a Na A Da A di 2 3 2 1 3 Counter Uert TEE 2 4 2 1 4 Machine Number Switch EE 2 5 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 2 Section 3 3 1 3 2 3 3 3 4 3 5 3 6 3 7 Section 4 4 1 4 2 CONTENTS JE CHEN e EE 2 6 2 2 1 System Configuration Precautions ccccccccccceccssesseeeeececceeeeeseeeseeaeesceeeceeeeeeeessesaeaaaesseeseeeeeees 2 6 2 2 2 Jee tele US at dd 2 6 WAIVING WEE 2 8 2 3 1 COMector PI e EE 2 8 2 3 2 Connector Wiring MEIN OCS EE 2 9 2 3 3 Important Wiring Considerations EE 2 13 2 3 4 PSTN Al eret y E 2 13 2 3 5 Digital O Circuit C fig ratio NS mccgiccies ose A ATA AA 2 15 2 3 6 Counter Input ei lee EE 2 17 Operation and Configuration KEEN csa AE A a 3 2 3 1 1 S EE 3 2 3 1 2 List of Functions Allocation Areas by Pumpose 0 ee er
69. CJ1M CPU Unit external interrupt tasks External Control Input Error History Log Up to 30 Same as on the left Functions CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 A 3 Appendices A 1 2 Differences in Access Methods from a User Program With the NJ Series device variables for CJ series Unit are used for the Counter Unit functions The following tables show how the words and bits of CJ series I O memory or the NJ series memory used for CJ series Unit correspond to the NJ series device variables for CJ series Unit Start address of special I O Unit area n 2000 words Unit number x 10 Unit number 0 to 92 Start address of the special I O Unit DM area m D20000 Unit number x 100 Unit number 0 to 92 MACH ON The relay number and DM number occupied by the High speed Counter Unit are set by the D Unit number switch on the front panel of the Unit X1 One High speed Counter Unit occupies allocation areas of four Unit numbers CIO Area words allocated to DM Area words allocated to Special I O Unit Special I O Unit NE ee 2000 to 2039 words D20000 to D20399 words 2010 to 2049 words D20100 to D20499 words 2020 to 2059 words D20200 to D20599 words 2030 to 2069 words D20300 to D20699 words D20500 to D20899 words D20600 to D20999 words D20700 to D21009 words 2080 to 2119 words D20800 to D21199 words 2090 to 2129 words D20900 to D21299 words 2100 to 2139 words D21000 to D21399 wo
70. CVO p E D Set Pattern CVO Reset Pattern CVO Output Set Pattern Output Reset Pattern y Set Pattern CV31 Comparison Value 31 gt Reset Pattern CV31 2 Comparison Value 31 Set Pattern CV31 Reset Pattern CV31 d Unit Output Pattern Set Pattern CVO Counter 2 Comparison Value 0 Reset Pattern CVO P ela Set Pattern CVO Reset Pattern CVO y Set Pattern CV31 Comparison Value 31 gt Reset Pattern CV31 Comparison Value 31 Set Pattern CV31 Reset Pattern CV31 E D Comparison Value Enabled Disabled 1 Event Crossing of Comparison Value 2 Event Preset or Reset Action How to configure Counters in Comparison Mode is described on the next pages 3 32 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration i Configuration and Operation in Comparison Mode O Specifying Comparison Data In Comparison Mode every Counter can be assigned up to a maximum of 32 Comparison data A comparison data item contains 5 double words e Comparison Value CV can be set between 2 147 483 648 and 2 147 483 647 for a Linear Counter and between 0 and 4 294 967 295 for a Circular Counter e Output Set Pattern for the positive counting direction Set Pattern CV n specifying which Out puts must be Set on reaching that CV in the positive counting direction 0 No Change 1 Set Output e Output Reset Pattern for the positive counting direction
71. Counter 1 amp 2 Name of device variable TUDO Function for CJ series Unit YP NoiseFltCntCfg UINT Input Noise Filter Selects the Counter 1 and 2 noise filter Counters 0 50 kHz 1 500 kHz 2 10 kHz e LN m gt eb e Tl c 5 o O 5 D e Configuring Noise Filter Digital Inputs For the purpose of suppressing noise on the control lines of the Digital Inputs also a Noise Filter is available A Noise Filter can be configured for Digital Input 0 amp 1 Name of device variable Type Function for CJ series Unit YP NoiseFltInCfg UINT Input Noise Filter Digi Selects the Digital Input 0 and 1 noise filter tal Inputs 0 50 kHz 1 10 kHz DUU SSION Z CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 43 3 Operation and Configuration 3 7 4 Initial Counter Value Every Counter has device variables for CJ series Unit for setting double word for the initial Counter Values The settings for these variables are transferred from the CPU Unit to this unit when the Unit restarts or the Controller is reset including when the power is turned ON The initial Counter Values overwrite the Counter Values and become the new Counter Values Name of device variable Tbe Function for CJ series Unit yP Ch1 InitLinCtCfg DINT Initial Counter Value e Sets the initial Counter Value after unit Ch2_InitLinCtCfg setting data is transferred e Used for Simple Counter or Linear Co
72. Link OFF Error in the EtherCAT Master Function Module If any slave is not participating when any of these errors is reset the EtherCAT Master Function Module may access slave with a different node address than the spec ified node address or the error may not be reset correctly 28 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Precautions for Correct Use i Battery Replacement e Be sure to install a replacement Battery within two years of the production date shown on the Battery label e Turn ON the power after replacing the Battery for a CPU Unit that has been unused for a long time Leaving the CPU Unit unused again without turning ON the power even once after the Battery is replaced may result in a shorter Battery life e When you replace the Battery use the CJ1W BAT01 Battery Set H SD Memory Cards e Insert the SD Memory Card all the way e Do not turn OFF the power supply to the Controller during SD Memory Card access The files may be corrupted If there is a corrupted file in the SD Memory Card the file is automatically deleted by the restoration function when the power supply is turned ON CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 29 Regulations and Standards Regulations and Standards Conformance to EC Directives H Applicable Directives e EMC Directives e Low Voltage Directive i Concepts EMC Directive OMRON devices that comp
73. M or EM Areas To make the setting specify the memory area for the Memory Area and indirect address for the Memory Address in Edit Special Unit Settings of Sysmac Studio The indirect addresses point to the actual memory address where the range or comparison data is actually stored After that this area is allocated to user defined variables For details on the data refer to 3 5 1 Range Mode or 3 5 2 Comparison Mode For details on device variables for CJ series Units refer to 4 2 Memory Allocation CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 17 3924919 9y AN HUIS HANG p L Q E Q O yun 1ajuno pasds yBiH ay Bunn uoy p 1 4 Introduction Count operations are started with the gate open close bit of the device variables for CJ series Units or Digital Input depending on the application CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 5 Operating Procedure Guidelines The operating procedures for High speed Counter Units are described here There is no restriction regarding the sequence of Programs and software settings and Hardware set ting and Rack assembly These tasks may be carried out concurrently or in the reverse order Use Sysmac Studio to create and set programs For details on operations of Sysmac Studio refer to Sysmac Studio Version 1 Operation Manual Cat No W504 KA D Cc 10 _ W i LGS O 1
74. OJJ SpOUla SSSIDY Ul SODUDISHIO Z L Y CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 A 13 Appendicies A 2 Using Terminal Block Units with Screw terminals This section describes the signal layout of the screw terminals on the Connector Terminal Converter Unit XW2B 40G4 or XW2B 40G5 The Unit is used to connect external signals such as power supply signals digital UO signals and Counter input signals to a CJ1W CT021 High speed Counter Unit Item Connector 1 CN1 Terminal Block Unit 1 Screw terminal Number Power Supply to feed the outputs PS 0 V PS 12 to 24 V Digital Outputs 0 1 NPN PNP Spare Digital Inputs 0 1 Spare Counter 1 Spare Counter 2 e Connections 2 O0 NPN 3 O0 PNP 4 6 1 0 V GR 24 V 12 13 14 CH1 LD 0 V CH1 LD 16 CH1 5V 147 CH1 24V 18 20 ME Z z j Bee 27 28 CH2 LD 0 V E CH2 LD 30 CH2 12 V 3 E 24 V 32 zeman je IA E Ee sr S eer lees H High speed Counter Unit CN1 XW2B 40G4 XW2B 40G5 Screw terminal block terminal arrangement CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Appendicies Additional Information The top row of the Terminal Block Unit numbered 1 to 39 corresponds to the pins numbered Ai to A20 of the associated connector CN1 on the High speed Counter Unit The bottom row of the Terminal Block Unit numbered 2 to 40 corresponds to the pi
75. OMRON Machine Automation Controller CJ series High speed Counter Units Operation Manual for NJ series CPU Unit CJ1W CT021 High speed Counter Units OMRON 2011 All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means mechanical electronic photocopying recording or otherwise without the prior written permission of 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 Every precaution has been taken in the preparation of this manual Nevertheless OMRON assumes no responsibility for errors or omissions Neither is any liability assumed for damages resulting from the use of the information contained in this publication Introduction Introduction Thank you for purchasing a CJ series CJ1W CT021 High speed Counter Unit This manual contains information that is necessary to use the CJ series CJ1W CT021 High speed Counter Unit for an NJ series CPU Unit Please read this manual and make sure you understand the functionality and performance of the NJ series CPU Unit before you attempt to use it in a control sys tem Keep this manual in a safe place where it will be available for reference during operation Intended Audience
76. Output 0 is Set on crossing CV5 in the positive counting direction and Reset on cross ing CV7 in the negative counting direction The crossing of CV3 in the positive counting direction results in the Setting of Output 2 and the Resetting of Output 1 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration e Example Comparison Mode with Circular Counter Upper Count Limit 4 294 967 295 0 SS a A Rollover Down counting negative direction CV3 Outo Soft3 Out1 SC Soft2 Soft3 aa Up counting positive direction Counter Value Soft2 7 Y Out0O CV5 b Setin positive direction gt Reset in positive direction q Setin negative direction d Resetin negative direction Cv value CV Grossing Out0 own Soft Sons aT went e a aa overossing a 3 O ELE A A A vesi II overossing S oo veso 5 overossng II eo D ass RA Pn a an S This example shows the Comparison Mode applied to a Circular Counter CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 31 Ke O r 5 CH O 5 eb o 3po y uosuedwon Z G 3 Operation and Configuration Comparison Mode Overview The following figure gives an overview on configuring Counters in Comparison Mode Set Pattern CVO Counter 1 Comparison Value 0 Reset Pattern
77. Output Control Reset Simple Counter 1 to zero Open gate of Simple Counter 1 Open Valve Close Valve Close gate of Simple Counter 1 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Appendices A 1 Differences of NJ Series from CJ Series A 1 1 Functional Difference A 1 2 Differences in Access Methods from a User Program A 2 Using Terminal Block Units with Screw terminals A 3 Description of the Response Time 0002 cee eee eee A 4 Application Restrictions 00 0 c ee es CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Appendices A 1 Differences of NJ Series from CJ Series You can use the CJ1W CT021 High speed Counter Unit with the NJ series Units If this Unit is used with the NJ Series some functions become unavailable compared to when it is used with the CJ Series The following shows differences between the NJ Series and the CJ series for each function of this HSC Unit A 1 1 Functional Difference Item Function in CJ series Function in NJ series Counter Type e Simple Counters Same as on the left e Circular Counters e Linear Counters Maximum Input Fre 500 kHz Same as on the left quency Maximum Response 0 5 ms Same as on the left Time Input Signal A phase B phase Z phase Same as on the left External Input Output External control inputs 2 Same as on the left e Exte
78. R W Input Noise Filter Selects the Counter 1 and 2 noise filter Counters 0 50 kHz factory value 1 500 kHz 2 10 kHz NoiseFltInCfg UINT Input Noise Filter Selects the Digital Input 0 and 1 noise filter Unit ms Digital Inputs 0 50 kHz factory value 1 10 kHz OutOnDelayTm0Cfg WORD R W T Factory value 16 0000 OutDur0Cfg WORD R W Output Pulse Duration Sets the output pulse duration for external output 0 BCD Digital Output O as a BCD When you set this to 16 0000 the status is normal functions Setting this to 16 0000 disables this function Data range 16 0000 to 9999 Unit ms Factory value 16 0000 Output Pulse Turn ON Sets the output pulse turn ON delay time for exter Delay Time BCD Dig nal output 0 as a BCD ital Output O When you set this to 16 0000 the status is normal functions Data range 16 0000 to 9999 P N D 3 O lt gt o O DI e ital Output 1 When you set this to 16 0000 the status is normal functions Data range 16 0000 to 9999 Unit ms Factory value 16 0000 Output Pulse Duration Sets the output pulse duration for external output 1 BCD Digital Output 1 as a BCD When you set this to 16 0000 the status is normal functions Setting this to 16 0000 disables this function Data range 16 0000 to 9999 Unit ms Factory value 16 0000 OutOnDelayTm1Cfg WORD R W Output Pulse Turn ON Sets the output pulse turn ON delay time for exte
79. Range 14 Range 14 lower limit upper limit values and out RngRing put pattern c2D 15 _sCJCTO21_Ex_ Range 15 Range 15 lower limit upper limit values and out RngRing put pattern c2D 16 _sCJCTO21_Ex_ Range 16 Range 16 lower limit upper limit values and out RngRing put pattern c2D 17 _sCJCT021_Ex_ Range 17 Range 17 lower limit upper limit values and out RngRing put pattern c2D 18 _sCJCTO21_Ex_ Range 18 Range 18 lower limit upper limit values and out RngRing put pattern c2D 19 _sCJCTO21_Ex_ Range 19 Range 19 lower limit upper limit values and out RngRing put pattern c2D 20 _sCJCTO21_Ex_ Range 20 Range 20 lower limit upper limit values and out RngRing put pattern c2D 21 _sCJCTO21_Ex_ Range 21 Range 21 lower limit upper limit values and out RngRing put pattern c2D 22 _sCJCTO21_Ex_ Range 22 Range 22 lower limit upper limit values and out RngRing put pattern c2D 23 _sCJCTO21_Ex_ Range 23 Range 23 lower limit upper limit values and out RngRing put pattern c2D 24 _sCJCTO21_Ex_ Range 24 Range 24 lower limit upper limit values and out RngRing put pattern c2D 25 _sCJCTO21_Ex_ Range 25 Range 25 lower limit upper limit values and out RngRing put pattern c2D 26 _sCJCTO21_Ex_ Range 26 Range 26 lower limit upper limit values and out RngRing put pattern CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 25 gt N D 3 O lt gt o O DI e sl sabuey 1
80. Range Mode e Comparison Mode refer to 3 5 2 Comparison Mode e Manual output control refer to 3 5 3 Manual Output Control You can select the method to control the state of 32 outputs for when the CPU Unit operating mode is changed from RUN to PROGRAM or when an I O bus check error or an overflow underflow error occurs Continue updating output states automatically Hold the output states Bring the pre defined output state Refer to 3 5 4 Output Control Configuration The Output Driver of every Digital Output can be configured as e NPN e PNP Refer to 3 5 4 Output Control Configuration CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Item Reset Signals Extra Functions Noise Filtering Counter Inputs and Digital Inputs Initial Counter Value Error History Log Function 1 Introduction CJ1W CT021 Every Counter can be reset to zero by the following sources e Software Counter Reset Bit e Digital Input e Z Input Refer to 3 6 Reset Counter e Programmable Output Pulse To every Digital Output an ON delay and or a Pulse Duration 1 to 9999 ms can be applied refer to 3 7 1 Programmable Output Pulses e Hysteresis To prevent Outputs from being switched On and Off by very small fluctu ations in the Counter Value around Range Limits for every Counter an Hysteresis value 1 to 255 can be defined the Unit must in Range Mode Refer to 3 7 2 Hyster esis To
81. Reset Pattern CV n specifying which Outputs must be Reset on reaching that CV in the positive counting direction 0 No Change 1 Reset Output e Output Set Pattern for the negative counting direction Set Pattern CV n specifying which Out puts must be Set on reaching that CV in the negative counting direction 0 No Change 1 Set Output e Output Reset Pattern for the negative counting 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 al O Cc Lo c el O O 2 To configure a Counter in Comparison Mode for every Comparison Value that you want to use the comparison data must be set Each data item is specified using the structure data type shown next In order to use structure data types for comparison data register the structure data type for High speed Counter Units beforehand on the CPU Expansion Racks screen in Configuration and Setup of Sysmac Studio For the exact memory location of the CV Data refer to 4 2 1 Memory Mapping Counter Structure data type Data type DEE setting name Linear _sCJCTO21_Ex_CmpLin CmpVal Comparison DINT We target value set for compari Counter Value AddSetPat Set Pattern DWORD i to pattern setting when com AddRstPat Reset Pattern DWORD parison conditions are met SubSetPat Set Pattern Pattern DWORD Bit 00 Digital Output 0 ES EM Pattern
82. Servomotor define home again To restore the information without changing the CPU Unit Servomotor combination remove the absolute encoder home offset from the data to restore H Task Settings e Ifa Task Period Exceeded error occurs shorten the programs to fit in the task period or increase the setting of the task period y Motion Control e Use the system defined variable in the user program to confirm that EtherCAT communications are established before you attempt to execute motion control instructions Motion control instructions are not executed normally if EtherCAT communications are not established e Use the system defined variables to monitor for errors in communications with the slaves that are controlled by the motion control function module Motion control instructions are not executed nor mally if an error occur in slave communications e Before you start an MC Test Run make sure that the operation parameters are set correctly e Do not download motion control settings during an MC Test Run d EtherCAT Communications e Do not disconnect the EtherCAT slave cables during operation The outputs will become unstable e Set the Servo Drives to stop operation if an error occurs in EtherCAT communications between the Controller and a Servo Drive e Make sure that all of the slaves to be restored are participating in the network before you reset a Net work Configuration Verification Error Process Data Communications Error or
83. Software revision A Output file Model information Simple Display Detailed Display In this example Ver 1 00 is displayed next to the unit model The following items are displayed CPU Unit CJ series Units Unit model Unit model Unit version Unit version Lot number Lot number Rack number slot number and unit number e EtherCAT Slaves 1 Double click EtherCAT under Configurations and Setup in the Multiview Explorer Or right click EtherCAT under Configurations and Setup and select Edit from the menu The EtherCAT Configuration Tab Page is displayed for the Controller Configurations and Setup layer 2 Right click the master in the EtherCAT Configurations Editing Pane and select Display Produc tion Information The Production Information Dialog Box is displayed E Production Information EN Type information Serial number Mode R33D KND1L ECT Rev 2 1 OMRON Corporation 0x00000000 The following items are displayed Node address Type information Serial number If the model number cannot be determined such as when there is no ESI file the vendor ID product code and revision number are displayed CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 33 Related Manuals Related Manuals The following manuals are related to the NJ series Controllers Use these manuals for reference Manual name NJ series CPU Unit Hardware User s Manual W500 NJ s
84. Sta BOOL mn Reset Activated 2 1 A reset is executed Ch2 ZSig BOOL Ca Z signal Activated 1 AZ signal is input Ch2_SmplCntSta_ BOOL Simple Counter 1 Simple Counter C1021 0 Circular Linear Counter 1 These bits have no function for Simple Counters 2 The Reset Preset and Z signal Activated turn ON for at least one CPU Unit task period after the occurrence of a pulse that was detected since the previous I O refresh 3 During initialization the Unit turns ON for approximately 120 ms Ge de se U Wu p D D O O U Wu lt CH OD lt o DI ez Wu Wu Se O en O T dp D Wu Wu E gt F TA O S D Cc O Cc Coma D C lt CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 15 4 Exchanging Data with CPU 4 2 4 Details of Device Variables for CJ series Unit for setting Setting data can be set with the following two methods e Set from Edit Special Unit Settings of Sysmac Studio e Set the values for device variables for CJ series Units Unit settings are reflected only when the Controller is reset or when the Unit restarts The data setup file is retained in the CPU Unit by the battery even during power interruptions Precautions for Safe Use When the data setup file is set in Sysmac Studio and transferred Sysmac Studio checks whether or not the unit must be restarted Restart the unit after confirming the safety of the con nected destina
85. The label prevents heat dissipation and could cause a malfunction e Be sure that all the connectors are wired correctly and properly connected to the High speed Counter Unit to prevent the Unit from malfunctioning To wire the CJ1W CT021 in order to connect the external signals Power Supply the Digital I O and the Counter Inputs two methods are available 1 Directly connecting the wires and cables to the external connector which is standard delivered with the High speed Counter Unit 2 Indirectly connecting the wires and cables to the screw terminals of a Terminal Block Unit The Terminal Block Unit is connected to the Unit with a standard flat cable Both parts can be ordered separately CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 9 2 Componenis Installation and Wiring o External Connector The connector has to be assembled from the separate parts that it exists of and that are supplied together with the Unit Most important part is the connector jack FCN 361J040 that contains 40 soldering terminals to which the wires have to be soldered e Wiring the soldering terminals Insulating tube Wire cross section 0 3m m max N Connector jack with solderingterminals Numberingof the soldering terminals on connector jack For an overview of the connector Pin layout refer to 2 3 1 Connector Pin layout e Cable separation Inputand or Outputcable Encoder cable
86. This section describes the functionality provided by the CPU Unit This section describes how to go online with the CPU Unit and how to connect to other devices This section describes the procedures that are used to actually operate an NJ series Controller This section describes the event codes error confirmation methods and corrections for errors that can occur The appendices provide the CPU Unit specifications task execution times specifica tions of individual system defined variables data attribute lists CJ series Unit mem ory information CJ series Unit memory allocation methods and version information Manual Configuration J Sysmac Studio Version 1 Operation Manual Cat No W504 Section Section 1 Introduction Section 2 Installation and Uninstallation Section 3 System Design Section 4 Programming Section 5 Online Connections to a Controller Section 6 Debugging Section 7 Other Functions Section 8 Reusing Programming Section 9 Support Software Provided with the Sysmac Studio Section 10 Troubleshooting Appendices Description This section provides an overview and lists the specifications of the Sysmac Studio and describes its features and components This section describes how to install and uninstall the Sysmac Studio This section describes the basic concepts for designing an NJ series System with the Sysmac Studio and the basic operating procedures This section describes ho
87. UP SIAIUS EE 3 22 4 13 SE UA ds Meare arene ner weer 2 17 Overflow Underflow error oo ccccoonncccccccccconccnnnccoconononnns 5 6 P Kante Eat EE 3 14 Predefined output pattern a 3 37 4 18 Sege 3 9 3 18 3 19 4 11 Presetadivaled MEN 4 14 4 15 A 5 7 Preset valle aii 3 9 3 19 4 12 reiege ai caos 1 14 1 17 1 19 Programmable output pulse aan 3 40 ea A EE 2 17 Ef ER e dee WEE 3 16 R Mande Cala ec insides AA A AN AN iS de 3 26 Range ModE EE 3 23 Range Comparison enable data 3 28 3 35 4 19 4 21 Ranges Comparison values active 3 28 3 35 4 13 Read Nextel 4 11 5 5 Reflecting Active Not active comparison values 3 35 Register Data Types for Units 4 6 4 23 4 27 Res iu 3 9 3 19 3 38 4 11 4 12 Reset activated cad 4 14 4 15 Reset Counter adi 3 38 Reset enable E 3 19 3 39 Reset enable Source nn dana an An Sekian ai 3 39 RICH EE 3 33 St ME 3 33 EE si eege A 3 38 Klein ln EE A 17 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Index S SCJCT021 Ex CmpLin cats 3 33 4 27 _sCJCTO21_Ex_CMPRINQ aaa 3 33 4 27 SCJCG T021 EX Te WEE 3 26 4 23 _sCJCTO21_Ex_RNgRiNgQ viieni AAA 3 26 4 23 SSCL aa a a 3 33 Sel E EE 3 33 Simple counter ee n anakan 3 7 4 14 4 15 Soft output 2 Status Lean AA A A A Ang 4 13 Soft output 2 to 31 status ear 3 22 SOM GEN lee 4 13 Sp
88. UYN v L Z EN Additional Information e f two or more Special I O Units are set to an identical Unit number or if one Special I O Unit is set to areas of plural Unit numbers the CPU Unit has a major fault level error Duplicate Unit Number and stops operation e After correcting the Unit number setting cycle the power to the Controller e One High speed Counter Unit occupies allocation areas of four Unit numbers Be sure that no Unit numbers are duplicated To avoid duplication when you set a High speed Counter Unit to the Unit number n set the next Special I O Unit to the Unit number n 4 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 5 2 Components Installation and Wiring 2 2 Installation 2 2 1 System Configuration Precautions The High speed Counter Units are connectable with CPU Racks and Expansion Racks A maximum of 10 Units can be mounted on a Rack and a total of 24 Units on CPU Racks and Expansion Racks alto gether 2 2 2 Installing Units Precautions for Safe Use e Prevent wire clippings cutting chips or other materials from getting inside the Unit They could cause scorching failure and malfunction Pay particular attention to this during installation and take measures such as covering with a cover e Ifthe Unit was shipped from the factory with the dust protection label on top of the unit be sure to remove that label before switching ON the power The label prevents heat
89. Unit display the follow ing errors 5 1 1 Errors during initial processing OFF OFF ON Setup error Incorrect Unit number Set correct Unit number and turn ON Cyclic initial error the power again OFF ON OFF DM configuration Invalid contents of the settings Check the error code with _ErrCode1 error for device variables for CJ error code 1 and ErrCode2 Error series Unit for setting code 2 set the device variables for CJ series Unit for setting unit setting again correctly Restart the Unit or reset the Controller Refer to 5 2 Error codes for more infor mation on error codes and how to clear them Unit error An error occurred in the Unit s Restart the Unit or reset the Controller EEPROM RAM or CPU ora If errors reoccur then replace the High system software error occurred speed Counter Unit OFF ON ON Unit classification The Unit classification was set Replace the High speed Counter Unit error incorrectly OFF OFF OFF Watch Dog Timer The Unit s Watch Dog Timer Turn OFF and then ON the power again time out error has timed out If errors reoccurs then replace the High speed Counter Unit 5 2 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 Error Processing Maintenance and Inspection 5 1 2 Errors during normal operation ON ON OFF Unit error Overflow or underflow of Sim Check the error code with ErrCode1 ple or Linear Counter error code 1 ErrCode2 error code
90. _ Comparison data 3 Comparison value output set reset pattern CmpLin CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 27 P N D 3 O lt o O Q g O 2 geep UOosSUgcuoc JO UOIJe90 y JOWSN 9 2 7 4 Exchanging Data with CPU Variable name Data type Wem O Function c1D 4 _sCJCT021_Ex_ Comparison data 4 Comparison value output set reset pattern CmpLin c1D 5 _sCJCT021_Ex_ Comparison data 5 Comparison value output set reset pattern CmpLin c1D 6 _sCJCTO21_Ex_ Comparison data 6 Comparison value output set reset pattern CmpLin c1D 7 _sCJCTO21_Ex_ Comparison data 7 Comparison value output set reset pattern CmpLin c1D 8 _sCJCT021_Ex_ Comparison data 8 Comparison value output set reset pattern CmpLin c1D 9 _sCJCTO21_Ex_ Comparison data 9 Comparison value output set reset pattern CmpLin c1D 10 _sCJCTO21_Ex_ Comparison data 10 Comparison value output set reset pattern CmpLin c1D 11 _sCJCT021_Ex_ Comparison data 11 Comparison value output set reset pattern CmpLin c1D 12 _sCJCTO21_Ex_ Comparison data 12 Comparison value output set reset pattern CmpLin c1D 13 _sCJCT021_Ex_ Comparison data 13 Comparison value output set reset pattern CmpLin c1D 14 _sCJCTO21_Ex_ Comparison data 14 Comparison value output set reset pattern CmpLin c1D 15 _sCJCT
91. a exchange between the CPU Unit and High speed Counter Unit and data definitions This section describes the troubleshooting and maintenance procedures for the High speed Counter Unit This section provides application examples of the High speed Counter Unit using pro gram samples Manual Structure Manual Structure Page Structure The following page structure is used in this manual 4 Installation and Wiring Level 1 head ng Level 2 heading Level 2 heading 4 3 Mounting Units Level 3 heading Gives the current Level 3 headi Ng 4 3 1 Connecting Controller Components headings The Units that make up an NJ series Controller can be connected simply by pressing the Units together and locking the sliders by moving them toward the back of the Units The End Cover is connected in the same way to the Unit on the far right side of the Controller A step i n ad proced u re 1 Join the Units so that the connectors fit exactly Indicates a procedure her 7 holes L Page tab Gives the number of the main section 2 The yellow sliders at the top and bottom of each Unit lock the Units together Move the sliders toward the back of the Units as shown below until they click into place Move the sliders toward the back until they lock into place sjuauodwod J9 O4JU0D Bunoauuo L t Ba Ui Precautions for Correct Use The sliders on the tops and bottoms of the Powe r Supply Unit CPU Unit I O Units Special I O A Units and CPU Bus Un
92. able resetting a Counter Value an Digital Input must be configured as Enable Reset Input and or the Software Enable Reset bit can be used refer to 3 6 Reset Counter e Programmable Output Pulses The timing characteristics of the Digital Outputs can be modified depending on the requirements of the application as follows refer to 3 7 1 Programmable Output Pulses e Output Turn ON Delay 1 ms to 9999 ms to delay turning ON an Output e Output Pulse Duration 1 ms to 9999 ms to generate an Output pulse of the specified duration o Hysteresis For Counters in Range Mode a hysteresis can be configured 1 to 255 counts to prevent Outputs from toggling due to unwanted oscillating of encoding equipment e g rotary incremental encoder around the upper lower limits Refer to 3 7 2 Hysteresis CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 3 4 1 4 Introduction O Noise Filtering For the purpose of suppressing noise on the signal lines A and B of every Counter and on the Digital Input lines noise filters can be used The cut off frequencies for the signal lines A and B can be set to e 10 kHz e 50 kHz default e 500 kHz For the Digital Inputs noise filters can be configured to 10 kHz and 50 kHz default Refer to 3 7 3 Noise Filtering Support Software The Unit is set by Sysmac Studio Quick Start Up Reference Guide For a quick overview of all the features and functions that the
93. actory automation products e Windows Windows 98 Windows XP Windows Vista and Windows 7 are registered trademarks of Microsoft Corporation in the USA and other countries EtherCAT is registered trademark and patented technology licensed by Beckhoff Automation GmbH Germany The SD logo is a trademark of SD 3C LLC gt Y Other company names and product names in this document are the trademarks or registered trade marks of their respective companies CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 31 Unit Versions Unit Versions 32 Unit Versions A unit version has been introduced to manage CPU Units in the NJ Series according to differences in functionality accompanying Unit upgrades i Notation of Unit Versions on Products The unit version is given on the ID information label of the products for which unit versions are man aged as shown below Example for NJ series NJ501 LJLILIL CPU Unit lt ID information label Unit model Unit version Lot No DOMYYO Zich Lot number and serial number MAC address The following information is provided on the ID information label Item Description Unit model Gives the model of the Unit Unit version Gives the unit version of the Unit Lot number and Gives the lot number and serial number of the Unit serial number DDMYY Lot number D For use by OMRON xxxx Serial number M gives the month 1 to 9 J
94. al Circular Counter n 8 to 00 to 15 Undefined n 13 Ch1_Rst Reset n 3 00 to 15 _Ch1_PrstLinCtVal Simple Counter or Linear Counter Preset Value n 4 we Ch1_PrstRingCtVal Circular Counter Counter 2 n 6 Ch2_PrstLinCtVal Simple Counter or Linear Counter Preset Value n wesBOld JOS E W01 SpDOUla SSSIDY Ul SPOUDIOIJIG Z L Y CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 A 5 Appendices o Allocated CIO Area words for inputs eier ec NJ series device variables for CJ series Unit General n 14 32 outputs status correspond to n 14 n 15 _OutStaDat Output Status n 15 n 14 OO OutSta0 Digital Output 0 Status OutStat Digital Output 1 Status OutSta2 Soft Output 2 Status n 15 oo OutSta16 Soft Output 16 Status OutSta31 Soft Output 31 Status Standby Status Counter 1 n 20 32 outputs status correspond to n 20 n 21 Ranges Comparison Values n 21 Chi_RngCmpDatSta active active ETT E Ch1_RngCmpSta15 Ranges 15 Comparison Values 15 active 16 active IA E Ch1 RngCmpsta31 Ranges 31 Comparison Values 31 active n 22 00 to 15 _Ch1_LinCtVal Simple Counter or Linear Counter Counter Value n 23 id Ch1_RingCtVal Circular Counter A 6 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Appendices CJ series I O NJ series device variables for CJ series Unit memory address n 24 00 l Ch1 CtOvf Counter Overflow Ch1_CtUadf C
95. al Outputs 0 and 1 correspond with the Digital Outputs O0 and O1 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 21 3 Operation and Configuration e Output Status The status of the Digital Outputs is reflected in the device variables for CJ series Unit for input There are two types of variables one type has one variable for each bit status and the other has one variable that summarizes all 32 bit statuses The former type of output statuses can be used to con trol outputs of external basic output units on user programs Name of device variable Wee Function for CJ series Unit Ma OutStaDat DWORD Output Status The current statuses of digital and internal output total of 32 are all displayed 0 OFF 1 ON Bit 00 External output OO Bit 01 External output O1 Bit 02 Internal output 2 Bit 31 Internal output 31 OutSta0 to BOOL Digital Output 0 to 1 0 OFF OutSta31 Status 1 ON Soft Output 2 to 31 Status 3 22 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration 3 5 1 Range Mode If the Unit is configured to control the Outputs in Range Mode this Mode can be applied to Circular Counters or Linear Counters refer to 3 2 2 Circular Counter and 3 2 3 Linear Counter for more infor mation e Example Range Mode with Linear Counter Lower Count Limit 2 147 483 648 Upper Count Limit 2 147 483 647 Current Counter V
96. alue Counter Value Range Q Range 1 Range 2 Rangei3 External Output 0 External Output 1 Internal Output 2 Internal Output 3 Range Lower Range Limit Upper Range Limit Output ON _o 2000 10000 0 6 000 25 000 In this example four Ranges are specified The configuration data of the Counter shows that e Output 0 must be ON for Counter Values within Range 0 e Output 1 and 3 must be ON for Counter Values within Range 1 e Output 2 must be ON for Counter Values within Range 2 e Both of the Outputs O and 3 must be ON for Counter Values within Range 3 In the above example the Counter Value is within Range 1 and 3 and consequently the Outputs 0 1 and 3 are turned ON CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 23 Ke O r 5 CH Oo 5 eb 2 apo abuey L S 3 Operation and Configuration 3 24 e Example Range Mode with Circular Counter we EE a SS Tan eee IA Sa Upper Count Limit 4 294 967 295 Rollover E Range 0 1 d NS Lower Range Limit Upper Range Limit Output ON 60 000 80 500 H IL SH 45 000 2 H 1 2 37 000 000 6 000 99 000 150 000 This example shows the Range Mode applied to a Circular Counter CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration
97. and becomes usable CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Variable tables Variable name CmpData CmpData 0 LowLmt Range data range 0 em pm e em pm pm pm pm pm pm pm pm pm pm pm Upper limit CmpData 0 UpLmt CmpData 0 OutPat CmpData 1 LowLmt Range data range 1 Range data range 11 CmpData 11 LowLmt CmpData 11 UpLmt CmpData 1 1 OutPat Output pattern 4 Exchanging Data with CPU Data type 0 11 _sCJCT021_Ex_RngLin DO1850 6 x 12 72 words D01921 4 2 3 Details of Device Variables for CJ series Unit for input output e For outputs Name of device variable for CJ series Unit ERC General OutCtlo BOOL RW Manual Output Con trol Output 0 OutCtl1 BOOL RW Manual Output Con trol Output 1 AutoMan BOOL Automatic Manual RdNxtErr BOOL Read Next Error Counter 1 Ch1_Prst BOOL Preset Ce Ch1_Rst _Ch1_RstEnbl BOOL Reset Enable 2 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Function 0 External output O0 OFF factory value 1 External output O0 ON 0 External output O1 OFF factory value 1 External output O1 ON 0 Automatic output control factory value 1 Manual output control If multiple errors occurred at the same time at the rising edge from 0 to 1 the next error is read out from the error list in this Unit and the error c
98. anty It may represent the result of OMRON s test conditions and the users must correlate it to actual application requirements Actual performance is subject to the OMRON Warranty and Limitations of Liability ERRORS AND OMISSIONS The information in this manual has been carefully checked and is believed to be accurate however no responsibility is assumed for clerical typographical or proofreading errors or omissions CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 15 Safety Precautions Safety Precautions 16 Definition of Precautionary Information The following notation is used in this manual to provide precautions required to ensure safe usage of a CJ series High speed Counter Unit The safety precautions that are provided are extremely important to safety Always read and heed the information provided in all safety precautions The following notation is used Indicates a potentially hazardous situation which if not avoided could result in death or serious injury Additionally there may be severe property damage Indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury or property damage precautions for Safe Use Indicates precautions on what to do and what not to do to ensure safe usage of the product D Precautions for Correct Use Indicates precautions on what to do and what not to do to ensure proper operation and perfo
99. anuary to September X October Y November Z December MAC address Gives the MAC address of the built in port on the Unit i Confirming Unit Versions with Sysmac Studio You can use the Unit Production Information on the Sysmac Studio to check the unit version of the CPU Unit CJ series Special I O Units CJ series CPU Bus Units and EtherCAT slaves The unit versions of CJ series Basic I O Units cannot be checked from the Sysmac Studio eo CPU Unit and CJ series Units 1 Double click CPU Expansion Racks under Configurations and Setup in the Multiview Explorer Or right click CPU Expansion Racks under Configurations and Setup and select Edit from the menu The Unit Editor is displayed for the Controller Configurations and Setup layer CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Unit Versions 2 Right click any open space in the Unit Editor and select Production Information The Production Information Dialog Box is displayed Production information Model information 0501 1500 Wer 1 00 Hardware version D F D D D Software version SYSTEM 1 00 00 23327 BOOT 20110726 TOPFP B 30 i 1 j IOPAW 1 02 k Production information ES pal Lot number Rack 0 Slot 0 Unit 4 CIIW S5CU22 Wer 2 0 NIE wa Unit revision _ Rack 0 Sot 0 Unit 4 CI1W 5CU22 SEH 110711 E AO OO Sok Amine LIVE NS ee ORADI Rack 0 Slot 1 Unit 1 CIW DAD41 Ver 031201 Unit revision A PCB revision A
100. ar can be selected from Edit Special Unit Settings of Sysmac Studio Refer to Section 3 Operation and Configuration for detailed information about Unit settings When using High speed Counter Unit output control functions register the structure data type for range or comparison data on the CPU Expansion Racks screen in Configuration and Setup Refer to 4 2 2 Allocating Ranges and Comparison Data for more information about comparison data allo cation Refer to 3 2 2 Circular Counter and 3 2 3 Linear Counter for more details about both Counter Types Refer to 4 1 2 Unit Restart for more information about restarting the Unit EN Additional Information e For using Simple Counters you do not have to clear the corresponding Special Unit settings to zero 0000 since the Unit always uses the default 0000 settings e The Settings specified in the Edit Special Unit Settings screen support all of the functions of this Unit However when they used with the NJ Series some functions of this Unit become unavailable Do not select functions that cannot be used Errors will not be detected even if these functions are selected or set Refer to A 1 Differences of NJ Series from CJ Series for functions that cannot be used with NJ series CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 21 4 Introduction 1 6 Application Areas 1 22 The main application areas of the High speed Counter Unit is where signal
101. ar Counter e Linear Counter refer to 3 2 3 Linear Counter The Counter Type can be chosen by DIP switch at the front of the Unit By default the Counters are set to Simple Counter refer to 2 1 3 Counter Type Switch 500 kHz refer to 1 3 3 Input Specifications for details 0 5 ms refer to A 3 Description of the Response Time Phase A B and Z e 2 Digital Inputs 10 and 11 Every Digital Input can be assigned to a Counter In this way one Counter can be con trolled by a maximum of 2 Digital Inputs refer to 3 4 Digital Input Functions 2 Digital Outputs OO and O1 The Unit Output Pattern represents the 2 Digital Outputs and 30 Soft Outputs refer to 3 5 Output Control e Phase Differential multiplication x1 multiplication x2 and multiplication x4 refer to 3 3 1 Phase Differential e Up Down refer to 3 3 2 Up amp Down Pulse e Pulse amp Direction refer to 3 3 3 Pulse amp Direction e Open Gate Start Counter Counter is enabled to count pulses e Close Gate Stop Counter Counter is disabled to count pulses e Preset Counter Preset Value can be saved e Reset Counter to zero Refer to 3 4 Digital Inout Functions e Gate e Reset e Preset e Enable Reset e Disable Reset For every Function the corresponding action can be triggered on a rising or on a falling edge refer to 3 4 Digital Inout Functions Automatic ON OFF output according to the following three modes e Range Mode refer to 3 5 7
102. ay cause injury Ot Fail safe Measures Provide safety measures in external circuits to ensure safety in the system if an abnormality occurs due to malfunction of the CPU Unit other Units or slaves or due to other external factors affecting operation Not doing so may result in serious accidents due to incorrect operation Emergency stop circuits interlock circuits limit circuits and similar safety measures must be provided in external control circuits The Controller outputs may remain ON or OFF due to deposition or burning of the output relays or destruction of the output transistors As a countermea sure for such problems external safety measures must be provided to ensure safe operation of the system The CPU Unit will turn OFF all outputs from Basic Output Units in the follow ing cases The remote I O slaves will operate according to the settings in the Slaves e If an error occurs in the power supply e If the power supply connection becomes faulty e If a CPU watchdog timer error or CPU reset occurs e If a major fault level Controller error occurs e While the CPU Unit is on standby until RUN mode is entered after the power is turned ON External safety measures must be provided to ensure safe operation of the system in such cases If external power supplies for slaves or other devices are overloaded or short circuited the voltage will drop outputs will turn OFF and the system may be unable to read inputs Provi
103. bles undam No damage aged suonoadsu sunnoy Z p G CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 13 5 Error Processing Maintenance and Inspection 5 14 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Application Examples pO This section gives information about the configuration of the CJ1W CT021 High speed Counter Unit and program samples which can be used to operate 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 men tioned 6 1 FloWw Gontrol 0 oo ee ee a Sh ee a ne es ee 6 2 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 6 1 6 Application Examples 6 1 Flow Control O Overview Below is an application example of liquid flow control using a pulse output type flow meter and valve and using a High speed Counter Unit Simple Counter e Application Description tT H Liquid Flow Meter Valve Tank This is an application that puts a certain amount of liquid in the tank This application measures the flow of incoming liquid with a flow meter and controls the liquid injection valve The application starts filling the liquid into the tank opens the valve with the push button switch coming ON as the trigger The application measure the flow with the flow mete
104. choosing one out of 3 Counter Types e Simple Counter refer to 3 2 1 Simple Counter e Circular Counter refer to 3 2 2 Circular Counter e Linear Counter refer to 3 2 3 Linear Counter By default all Counters are set to Simple Counter for which no configuration settings have to be made enabling every Counter to count pulses directly after the Unit has been powered up For all Counter Types the full counting range is available Circular and Linear Counters can be configured with Special Unit settings according to the application to control e Input Signal Type Depending on the type of input signal that your application requires for every Counter a choice can be made out of three input signal types e Phase Differential Inputs multiplication by either 1 2 or 4 refer to 3 3 1 Phase Differential e Up Down Pulse Inputs refer to 3 3 2 Up amp Down Pulse e Pulse amp Direction Inputs refer to 3 3 3 Pulse amp Direction CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 Introduction O Digital Input Function This Unit supports two Digital Inputs I0 and 11 which can be allocated freely for each Counter A function can be selected from among eight types of functions and allocated for each Digital Input according to the user application Function allocation makes it possible to use the Digital Inputs together with gates presets resets etc Refer to 3 4 Digital Input Functions mb o
105. cular Counters this range is 0 to 4 294 967 295 and for Linear Counters this range is 2 147 483 648 to 2 147 483 647 For Linear Counters the Upper Range Limit must be greater than the Lower Range Limit The Unit will generate an error if the Upper Range Limit lt Lower Range Limit refer to 5 2 Error codes for more details For Circular Counters the Upper Range Limit can be set lower than the Lower Range Limit To configure a Counter in Range Mode for every Range that you want to use the Range Data must be set Each data item is specified using the structure data type shown next In order to use struc ture data types for range data register the structure data type for High speed Counter Units before hand on the CPU Expansion Racks screen in Configuration and Setup of Sysmac Studio For the exact memory location to set the Range Data refer to 4 2 1 Memory Mapping name _sCJCT021_Ex_ RngLin DINT Range data lower limit setting Range UpLmt Upper Limit DINT Range data upper limit setting Range OutPat Output Pattern DWORD Output pattern setting for when range conditions are met Bit 00 Digital output O Bit 01 Digital output 1 Bit 02 to 31 Internal output 2 to 31 LowLmt Lower Limit UDINT Range data lower limit setting Range UpLmt Upper Limit UDINT Range data upper limit setting Range OutPat Output Pattern DWORD Output pattern setting for when range conditions are met Bit 00 Digital Output 0 Bit 01 Digital Output 1 Bit 02 t
106. d Counter Units Operation Manual for NJ series CPU Unit W492 2 Components Installation and Wiring 2 3 5 Digital I O Circuit Configurations The following examples make clear how to wire the Digital Inputs and the Digital Outputs eo 24 VDC NPN Sensor de do 5 NPN Sensor Digital Input I0 on Connector CN eo 24 VDC PNP Sensor SUONBINGYUOD WOCH O I EIDO GC PNP Sensor Digital Input 11 on Connector CN CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 15 2 Components Installation and Wiring eo Wiring example NPN PNP Digital Output gt Be D O g O Cc _ E 2 16 P sees eee sico 12 to 24 VDC Power Supply 12to 24V OV A3 O1 NPN Fuse 1A A1 PS Set the software switches for every Digital Output in the appropriate position CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 Components Installation and Wiring 2 3 6 Counter Input Configurations The following examples make clear how to wire the Counter Inputs in different configurations according to the output driver of the encoder or proximity switch that you want to use The configurations that are shown here related to a specific output driver can also be referred to in case you want to use other pulse generating equipment with similar output drivers e 5 12 24 VDC NPN Open Collector iS do 5 High speed Counter Terminals CN1
107. d If the Unit is in Range Mode Lower and or Upper Range gt No Range Limit s Limit is are outside Counting Range Counter No indi 3 cates the Counter number and Range No indicates the d Comparison Value p Range number If the Unit is in Comparison Mode Comparison value is outside Counting Range Counter No indicates the Counter number and CV No indicates the Comparison Value number The counting range of Circular and Linear Counters can be specified refer to 3 2 2 Circular Counter and 3 2 3 Linear Counter for more information O Bits 00 to 11 Data numbers 16 0001 to 16 0032 0331 Counter CV No Duplicate Target For the Counter with the Counter Number as reported in No BCD Value Error Code 2 one or more Comparison Values are equal CV No indicates the Comparison Value number Bits 00 to 11 Data numbers 16 0001 to 16 0032 Bits 12 to 15 Counter numbers 16 1 16 2 Bits 12 to 15 Counter numbers 16 1 16 2 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 5 5 Error Processing Maintenance and Inspection e Clearing DM configuration Errors DM configuration errors can be cleared by correcting the faulty settings in device variables for CJ series Unit for setting and consecutively transferring the new configuration data again to the Unit To transfer the configuration data you can choose from one out of two possibilities e Reset the Controller e Restart the High s
108. d Umoq dN 2 3 Operation and Configuration 3 3 3 Pulse Direction In this configuration count pulses are applied to input A The direction of counting is controlled by the level of the signal applied to input B If input B is high the Counter increments on the rising edges of input A If input B is low the Counter decrements on the rising edges of input A Counter Incremental encoder or other pulse Input A generator Count pulse Input B Sensor or i O InputZ switch Direction control Count pulse A A A A A A A Direction control High Increment Low Decrement Additional Information For Counter Reset options refer to 3 6 Reset Counter 3 16 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration 3 4 Digital Input Functions e Assigning Plural Digital Inputs to a Single Counter The High speed Counter Unit is equipped with two Digital Inputs each of which can control a differ ent Counter of the Unit If a Counter has to be controlled by plural Digital Inputs a maximum of two Digital Inputs can be assigned to the Counter Be aware if both of the two Digital Inputs are used for one Counter no other Digital Input is left for other Counters e Digital Input Functions Furthermore the function of every Digital Input can be selected from one out of 8 available func tions Every function performs its unique action on the Counter
109. d and all output is switched OFF Bits 08 to 15 Use with O factory value Ch1_UpCtLmtCtg UDINT R W Upper Count Limit Cir Sets the circular Linear Counters upper count limit cular Linear Data range 0 to 4 294 967 295 Unit Pulse Factory value O a N D 3 O lt gt o O DI e Lower Count Limit Lin Sets the Linear Counter lower count limit car Data range 2 147 483 648 to 0 Unit Pulse Factory value O Ch1_LowCtLmtCfg DINT Ch1_InitLinCtCfg DINT Initial Count Value Sets the initial Counter Value after unit setting data is transferred Used for Simple Counter or Linear Counter Data range 2 147 483 648 to 2 147 483 647 Unit Pulse Factory value O Buas 101 JUN SALIAS PIG JO SB QeUeA BIASA JO SHEA Y 2 p Ch1_InitRingCtCtg UDINT Initial Count Value Sets the initial Counter Value after unit setting data is transferred Used for Circular Counter Data range 0 to 4 294 967 295 Unit Pulse Factory value 0 Chi_RngCmpEnbliCfg DWORD Range Comparison Sets whether the range comparison data is enabled Enable Data or disabled Bits 0 to 31 correspond to comparison data 00 to 31 Each bit is enabled for 1 and disabled for 0 Data range 16 00000000 to 16 FFFFFFFF Factory value 0 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 19 4 Exchanging Data with CPU Name of device variable for CJ series Unit Ch1 OutSetPatC
110. d at the same time at the rising edge from 0 to 1 the next error is read out from the error list in this Unit 5 2 1 DM configuration errors An allocated DM area setting error is detected during the initialization processing when the Controller is reset or the Unit is restarted When an allocated DM area setting error is detected the error information is stored into memory and the High speed Counter Unit stops operation You can read the error information with the Read Next Error variable For the allocated DM area offset refer to A 1 2 Differences in Access Methods from a User Program m in the table indicates the first word allocated in DM m D20000 N x 100 N Unit number Error Code 1 Error Code 2 Error o Description 0300 Offset BCD Out of Range The DM setting located at D20000 Nx100 Offset is Out of Range N Machine Number 0310 Offset BCD Illegal Value The BCD value of the allocated DM area m x x offset words is invalid Any values other than 0 to 9 are invalid BCD V N m O o O o D 0 0311 Offset BCD Invalid Initial The Initial Counter Value located at D20000 Nx100 O Counter Value Offset is outside the counting range that is set for that Ge Counter N Machine Number zZ 0320 Counter Invalid Upper limit lt Lower limit o No Range Limits Bits 00 to 11 Data No 16 0001 to 16 0032 Cc Bits 12 to 15 Counter No 16 1 16 2 a 0330 Counter Invali
111. de external safety measures in controls with monitoring of external power supply voltage as required so that the sys tem operates safely in such a case 000959 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Safety Precautions WARNING Fail safe Measures Unintended outputs may occur when an error occurs in variable memory or in memory used for CJ series Units As a countermeasure for such prob lems external safety measures must be provided to ensure safe operation of the system Provide measures in the communications system and user program to ensure safety in the overall system even if errors or malfunctions occur in data link communications or remote I O communications If there is interference in remote I O communications or if a major fault level error occurs Output status will depend on the products that are used Confirm the operation that will occur when there is interference in communi cations or a major fault level error and implement safety measures Correctly set all of the EtherCAT slaves The NJ series Controller continues normal operation for a certain period of time when a momentary power interruption occurs This means that the NJ series Controller may receive incorrect signals from external devices that are also affected by the power interruption Accordingly take suitable actions such as external fail safe measures and interlock conditions to monitor the
112. de of the Unit use the same reference as the ground terminal of the PLC Power Supply is connected to e Make the wiring for the Counter Inputs A B and Z as short as possible and do not route the wires par allel to lines that produce a lot of noise such as high voltage power lines e Try to use a separate stabilised Power Supply for the High speed Counter Unit and another Power Supply for other Units iS do 5 2 3 4 Internal Circuitry Digital Input Circuitry Digital Input 10 Digital Input 11 B5 24 V B6 24 V SUOI EJOPISUOD Buy IUEUOOIuL 2 5 24 V e Counter Input Circuitry PhaseA ae 24V 0 B11 24V B18 24V A ANEY A18 12V LD mM WIZ O B10 LD B17 LD E Yo AtO OV LD A17 OV LD s S LD U CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 13 2 Componenis Installation and Wiring Digital Output Circuitry High speed Counter Unit NO B1 12 24 VDC Power Supply TI ve for Digital Outputs O0 and O1 B2 Digital Output O0 PNP x e B3 Digital Output O1 PNP A2 Digital Output O0 NPN e Jz Internal Circuitry A3 Digital Output O1 NPN TET K Fuse O VO A1 0V COM for Digital Outputs OO and O1 ge Digital Output OO oNENT O Digital Output O1 OPNP L gt NPN or PNP can be set for each Digital Output Output control setting m 6 2 14 CJ series High spee
113. double insulation for the DC power supplies connected to DC Power Supply Units and I O Units e NJ series Controllers that comply with EC Directives also conform to the Common Emission Stan dard EN 61000 6 4 Radiated emission characteristics 10 m regulations may vary depending on the configuration of the control panel used other devices connected to the control panel wir ing and other conditions You must therefore confirm that the overall machine or equipment complies with EC Directives 30 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Regulations and Standards Conformance to Shipbuilding Standards The NJ series Controllers comply with the following shipbuilding standards Applicability to the ship building standards is based on certain usage conditions It may not be possible to use the product in some locations Contact your OMRON representative before attempting to use a Controller on a ship i Usage Conditions for NK and LR Shipbuilding Standards e The NJ series Controller must be installed within a control panel e Gaps in the door to the control panel must be completely filled or covered with gaskets or other material e The following noise filter must be connected to the power supply line Noise Filter Manufacturer Model Cosel Co Ltd TAH 06 683 Trademarks e Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and other countries for OMRON f
114. e Comparison starts again after this 1 5 ms has elapsed Ke O r 5 CH O 5 eb o fF LI L f L 3 2 kHz pulse D AAA HAR Counter Value E 100 101 102 104 105 Range Data 0 S Weg Range Data 1 D Range Data 2 mm em em em em em em em O a vm rn O GN eeh vn pm em rm pm vm e em e e e e em e e em e e wl en e os VY Comparison stops for 1 5 ms I Counter Value matches During this period the output set under the output Lower Limit falls within pattern will not be turned ON even if the value falls range within the range data range CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 27 3 Operation and Configuration 3 28 o Reflecting Active Not Active Ranges The range conditions are met when Lower limit lt Counter value lt Upper limit The state whether the range condition is active or not is reflected in the following device variable for CJ series Unit for input for each Counter Name of device variable Tuba Funcion for CJ series Unit yP Ch1_RngCmpDatSta DWORD Ranges Comparison The current status of the comparison condi Ch2 RngCmpDatSta Values active tions is shown Bits 00 to 31 correspond to comparison con ditions O to 31 Each bit shows 1 when the conditions are met and 0 when they are not Ch1_RngCmpSta0 BOOL Ranges 0 to 31 Com The numbers after Sta correspond to com Ch1_RngCmpSta31 parison Values 0 to
115. e 20 Range 20 lower limit upper limit values and out RngLin put pattern _sCJCTO21_Ex_ Range 21 Range 21 lower limit upper limit values and out RngLin put pattern _sCJCTO21_Ex_ Range 22 Range 22 lower limit upper limit values and out RngLin put pattern _sCJCTO21_Ex_ Range 23 Range 23 lower limit upper limit values and out RngLin put pattern _sCJCTO21_Ex_ Range 24 Range 24 lower limit upper limit values and out RngLin put pattern _sCJCTO21_Ex_ Range 25 Range 25 lower limit upper limit values and out RngLin put pattern _sCJCTO21_Ex_ Range 26 Range 26 lower limit upper limit values and out RngLin put pattern _sCJCTO21_Ex_ Range 13 RngLin _sCJCT021_Ex_ Range 27 RngLin _sCJCTO21_Ex_ Range 28 RngLin _sCJCTO21_Ex_ Range 29 RngLin _sCJCTO21_Ex_ Range 30 RngLin sCJCT021_Ex_ Range 31 Range 31 lower limit upper limit values and out put pattern RngLin sCJCT021 Ex Range 27 lower limit upper limit values and out put pattern Range 28 lower limit upper limit values and out put pattern Range 29 lower limit upper limit values and out put pattern Range 30 lower limit upper limit values and out put pattern For details on output patterns refer to 3 5 1 Range Mode Function Counter 2 Range 0 RngRing c2D 0 LowLmt UDINT Range 0 Lower Limit Range 0 lower limit c2D 0 UpLmt UDINT Range 0 Upper Limit Range 0 upper limit CJ series High speed Counter Units Operation Manual for NJ series CPU
116. ead and understand this manual before using the products Please consult your OMRON representative if you have any questions or comments Warranty and Limitations of Liability WARRANTY OMRON s exclusive warranty is that the products are free from defects in materials and workmanship for a period of one year or other period if specified from date of sale by OMRON OMRON MAKES NO WARRANTY OR REPRESENTATION EXPRESS OR IMPLIED REGARDING NON INFRINGEMENT MERCHANTABILITY OR FITNESS FOR PARTICULAR PURPOSE OF THE PRODUCTS ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE OMRON DISCLAIMS ALL OTHER WARRANTIES EXPRESS OR IMPLIED LIMITATIONS OF LIABILITY OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS WHETHER SUCH CLAIM IS BASED ON CONTRACT WARRANTY NEGLIGENCE OR STRICT LIABILITY In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted INNO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY REPAIR OR OTHER CLAIMS REGARDING THE PRODUCTS UNLESS OMRON S ANALYSIS CONFIRMS THAT THE PRODUCTS WERE PROPERLY HANDLED STORED INSTALLED AND MAINTAINED AND NOT SUBJECT TO CONTAMINATION ABUSE MISUSE OR INAPPROPRIATE MODIFICATION OR REPAIR CJ series High speed Counte
117. ecial unit settings 4 16 SpeciNca e EE 1 7 Structure data type ooooccccccnconncccncnnnononncnnnnnnnnnnnnnos 1 21 4 6 See e EE 1 19 NAMCO eet gd 5 7 System defined variable mee 4 2 T Terminal block unit with Screw terminal A 14 U A A 4 13 UA CONO Ia ON cs en ANA A MA AAA NA 1 19 ONE is es 5 11 WAI OUTPUT IO AMON uns 3 21 UTA RESTA sida 4 4 Ub DOWN pue eege geed 3 15 Updating unit output pattern aaa 3 36 Upper count limit Circular Linear 3 11 3 13 4 19 4 21 Upperrange Mitin tada 3 26 SSP AM ee insects AN de aran 1 19 User defined variable oocccccccccconncconcnccnonanonnnnnnnnnos 4 3 W o EE 2 8 Wiring for NPN PNP digital output 2 16 Z Z Mpu tsignal oroen dais 3 38 Z reset Mode Overflow Underflow error code generation aa 3 13 3 38 4 19 4 21 Z signal activated ekeke 4 14 4 15 Index 3 Index Index 4 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Authorized Distributor
118. eft Driver Settings the two types shown below NPN PNP Counter Reset Condi Counter reset bit Same as on the left tions External control input Z signal Other Functions Programmable output pulse The pulse rate measurement function cannot Pulse rate measurement functions be used Hysteresis Noise Filter Encoder noise filter Same as on the left 10 kHz 50 kHz 500 kHz External control input noise filter 10 kHz 50 kHz Counter Initial Values Counter initial values Same as at the left However because the NJ Series has no power OFF interrupt task opera tion cannot be restarted from the position at which the power was interrupted IORD Instruction You can read or write the following data The IORD IOWR instruction cannot be used IOWR Instruction Allocated DM data Therefore you cannot read or write the data on Bandwidth comparison data and target value the left match comparison data Captured Counter Value D Q OD OD gt O D O h a ey D D Wu h O 3 O a Gu D D Vu Pulse rate history log file data T Counter value EN High speed Counter Unit set and reset E Error clear z Starting of External You can use external output and internal output Cannot use D Interrupt Task by Out unit output patterns to start CJ1 H CJ1M CPU put Unit external interrupt tasks S gt Starting of External External control input can be used to start CJ1 Cannot use Interrupt Task by H
119. ely Data range 1600000000 to 16 FFFFFFFF OutSta0 BOOL BOOL R Digital Output 0 Status 1 ON 0 OFF OutSta1 BOOL np Digital Output 1 Status 1 ON 0 OFF OutSta2 BOOL R SoftOutput2 Status 1 ON 0 OFF OutSta31 BOOL R Soft Output 31 Status 1 ON 0 OFF In0 BOOL Digital Input O Status The Digital Input O IO status is displayed Int BOOL Digital Input 1 Status The Digital Input O 11 status is displayed ErrCodet WORD Error Code 1 For details refer to 5 2 Error codes Data range 16 0000 to 16 FFFF ErrCode2 WORD Error Code 2 For details refer to 5 2 Error codes Data range 16 0000 to 16 FFFF GlblErr BOOL Global Error 1 Shows that one or more error has occurred These error codes are stored in the error list in this unit 0 Normal _UnitInitSta BOOL Unit Busy 1 Unit initialization processing underway 3 0 Other than the above IABlkOverlapSta BOOL IA Blocks overlap 2 1 Shows that range comparison data is duplicated in the CPU Unit I O memory 0 Other than the above Counter 1 P N D 3 O lt gt o O DI e indino mdu1 104 yun SOALISS P O JO SeJqRLIBA SINS JO Seq E 2 p Ch1_RngCmpDatSta DWORD Ranges Comparison Shows the current status of all the comparison con Values active 1 ditions Bits 00 to 31 correspond to comparison conditions O to 31 Each bit shows 1 if the condition is met or if the condition is not met Data range 16400000
120. er as a Simple Counter is that you do not have to set any device vari ables for CJ series Unit Instead all default settings are used In other words Simple Counters can only be used in a default configuration If you intend to use the High speed Counter Unit only with Simple Counters the information as described in this section Simple Counter covers all the default features and functions that are important and available to you e Simple Counter Function Outline x Oo c Function Specifications S Counter operation Linear Counting range 2 147 483 648 to 2 147 483 647 Count Mode Phase difference multiplication x1 Counting speed 50 kHz Gate open close Device variables for CJ series Unit are used External outputs Manual output control only Output form NPN Reset Device variables for CJ series Unit are used To use all the functions of a High speed Counter Unit set the Unit to a Circular Counter or Linear Counter instead of a Simple Counter For details on Circular Counters refer to 3 2 2 Circular Counter for details on Linear Counters refer to 3 2 3 Linear Counter e De k H 3 pol D O O Cc D D ke O Simple Counter Configuration The following features and functions are supported for Simple Counters e Simple Counters can count up and down within the 32 bit count range the same as a Linear Counter can Refer to 3 2 3 Linear Counter e You can preset or rest the Counter Value of a Simple Counter by using device
121. eries CPU Unit Soft ware User s Manual W501 NJ501 UUUL I NJ301 ULUUL Sysmac Studio Version 1 W504 SYSMAC Operation Manual GEZ TI CJ series High speed W492 CJ1W CT021 Counter Units Operation Manual for NJ series CPU Unit This Manual CJ series High speed W401 CJ1W CT021 Counter Units Operation Manual Model numbers Application NJ501 UOULL NJ301 UULIL Learning the basic specifi cations of the NJ series CPU Units including intro ductory information designing installation and maintenance Mainly hard ware information is pro vided Learning how to program and set up an NJ series CPU Unit Mainly software information is provided Learning about the operat ing procedures and func tions of the Sysmac Studio Learning about the func tions and usage of CJ series High speed Counter Units for using it in an NJ series configuration Learning about the func tions and usage of CJ series High speed Counter Units Description An introduction to the entire NJ series system is provided along with the following information on the CPU Unit e Features and system configuration e Introduction e Part names and functions e General specifications e Installation and wiring e Maintenance and inspection Use this manual together with the NJ series CPU Unit Software User s Manual Cat No W501 The following information is provided on a Con troller built with an NJ501 CPU Unit e CPU Un
122. eries CPU Unit W492 Appendices CJ series I O memory address NJ series device variables for CJ series Unit k to k 9 O TI Comparison data 0 Comparison data 0 Comparison Value Comparison data 0 Set Pattern Comparison data O Reset Pattern Comparison data 0 Reset Pattern K 10 to k 19 Comparison data 1 K 20 to k 29 Comparison data 2 k 30 to k 39 Comparison data 3 K 40 to k 49 Comparison data 4 k 50 to k 59 Comparison data 5 k 60 to k 69 Comparison data 6 70 to k 79 Comparison data 7 k 80 to k 89 Comparison data 8 k 90 to k 99 Comparison data 9 k 100 to k 109 Comparison data 10 k 110 to k 119 Comparison data 11 k 120 to k 129 Comparison data 12 k 130 to k 139 Comparison data 13 k 140 to k 149 Comparison data 14 k 150 to k 159 Comparison data 15 k 160 to k 169 Comparison data 16 k 170 to k 179 Comparison data 17 k 180 to k 189 Comparison data 18 k 190 to k 199 Comparison data 19 K 200 to k 209 Comparison data 20 k 210 to k 219 Comparison data 21 k 220 to k 229 Comparison data 22 K 230 to k 239 Comparison data 23 k 240 to k 249 Comparison data 24 K 250 to k 259 Comparison data 25 K 260 to k 269 Comparison data 26 k 270 to k 279 Comparison data 27 K 280 to k 289 Comparison data 28 K 290 to k 299 Comparison data 29 k 300 to k 309 Comparison data 30 k 310 to k 319 Comparison data 31 D Q OD O gt O D Wu O h a LD D D Wu ha O 3 O a Gu O D Vu UEIDOL Jas E W
123. es set values to these variables The rising edge of the preset is the trigger and the Counter Value is overwritten by the preset value at the next I O refresh Name of device variable Toe Funcion for CJ series Unit yP Ch Prst BOOL Preset O to 1 Counter preset Ch2 Prst Ch1 PrstLinCtVal DINT Preset Value Used for a Simple Counter or Linear Ch2 PrstLinCtVal Counter Set in the range 2 147 483 648 to 2 147 483 647 o Resetting a Simple Counter A Counter can be reset by using a Simple Counter reset The rising edge of the reset is the trigger and the Counter is reset at the next I O refresh Name of device variable Type FUACUOR for CJ series Unit Ma Ch1 Rst BOOL Reset O to 1 Counter reset Ch2_Rst e Digital Inputs Status of Simple Counter The status of the two Digital Inputs is reflected in the devices variables for CJ series Unit for input Name of device variable me Name Function for CJ series Unit Ind BOOL Digital Input O Status 0 OFF Int BOOL Digital Input 1 Status 0 OFF CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 9 CN N CH O C Fe O a D O Dy Jajunog ajdwiS L Z 3 Operation and Configuration e Manual Control of Digital Output If you select 1 for the following device variable Automan then you can control two Digital Outputs by setting them to either 0 OFF or 1 ON Name of device variable Toe Function for CJ series Unit
124. fg DWORD Output Set Pattern R W Ch1_OutRstPatCtg Ch1_HystrsCfg Ch1_NumRngCmpCfg Chi_MemAreaCfg Ch1_MemAdrCfg Ch2 CtlypCtg Ch2_SigTypCfg 4 20 ein e DWORD UINT WORD UINT DWORD UINT UINT Output Reset Pattern R W Hysteresis R W Number of Ranges Comparison Values BCD R W Memory Area R W Memory Address BCD 3 Counter 2 R W Counter Type R W Signal Type Function Sets the output 0 to 31 set pattern Bits 0 to 31 correspond to output 00 to 31 Each bit is set for 1 and no change for 0 Data range 16 00000000 to 16 FFFFFFFF Factory value O Sets the output 0 to 31 reset pattern Bits O to 31 correspond to output 00 to 31 Each bit is reset for 1 and no change for 0 Data range 1600000000 to 16 FFFFFFFF Factory value O Sets the hysteresis For 0 the hysteresis function is disabled 2 Data range 0 to 255 Unit Pulse Factory value O Sets the number of ranges comparison values as a BCD Data range 160000 to 0032 Factory value 1640000 This sets the area type for storing the range com parison data 0 EM factory value 1 DM This sets the start address EM DM for storing the range comparison data as a BCD Data range 16400000000 to 00032760 Factory value 1640000 Sets the Counter type 0 Circular Counter factory value 1 Linear Counter Sets the input type 0 Phase differential multiplication 1
125. frequently if the system is used with high temperature or humidity or under dirty dusty conditions o Inspection Equipment Prepare the following equipment before inspecting the system Required Equipment Have a standard and Phillips head screwdriver multimeter alcohol and a clean cloth Equipment that could be needed Depending on the system conditions a synchroscope oscilloscope thermometer gas sensor or hygrometer to measure humidity might be needed 5 12 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 Error Processing Maintenance and Inspection e Inspection Procedure Check the items in the following table and correct any items that are not according to the criteria Item Criteria Equipment Environmental Ambient temperature 0 C to 55 C Thermometer conditions Ambient humidity 10 to 90 Hygrometer Dust dirt accumulation None Is the Unit exposed to any spray of None water oil or chemicals Is the Unit exposed to corrosive or None Gas sensor flammable gases Is the Unit exposed to shock or None vibration Installation Is the Unit installed securely No looseness Are the external connectors No looseness securely mounted Is all external wiring securely con No looseness nected Are the external connectors fully No looseness inserted VW gt GC 5 r D 5 D o O e 5 2 5 m D O O 5 Are the connecting ca
126. gnored You can clear overflow and underflow with a preset or reset Name of device variable me Name Function for CJ series Unit Ch1 CtOvf BOOL Counter Overflow 1 Overflow Ch2 CtOvf AN 0 Other than the above Ch1 CtUdf BOOL Counter Underflow 1 Underflow Ch2_CtUdf TT ech 0 Other than the above 3 8 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration e Gating of a Simple Counter You can start or stop the gate of a Simple Counter by using the following device variables for CJ series Unit for output Open Gate Close Gate A rising edge of the Open Gate or Close Gate trig gers the corresponding action in the next I O refresh Name of device variable Type Name Function for CJ series Unit Ch1_Enbl BOOL Open Gate O to 1 Count start Ch1_Dsbl BOOL Close Gate O to 1 Count stop The system enters the count start state at the rising edge of the Open Gate regardless of the Close Gate state At a simultaneous rising edge of both variables the state of the gate is unchanged A Simple Counter is stopped when the Unit is restarted or the Controller is reset including when the power is turned ON So in order to start a count it is necessary to first change the open gate start to 1 e Presetting a Simple Counter The Unit has device variables for CJ series Unit for output which are used to save preset values for Simple Counters To change preset valu
127. gured for Multiplica tion by 2 If the Counter counts up signal A leads to signal B pulses are taken into account by the Counter on the rising and falling edges of signal A If the Counter counts down pulses are also taken into account on the rising and falling edges of signal A eo Multiplication x4 To further increase the resolution of the incremental encoder the Multiplication x4 should be selected If the Counter counts up signal A leads to signal B pulses are taken into account by the Counter on the rising and falling edges of signal A and signal B If the Counter counts down pulses are also taken into account on the rising and falling edges of signal A and B EN Additional Information For Counter Reset options Z input included refer to 3 6 Reset Counter 3 3 2 Up amp Down Pulse With this Signal Type the Counter increments on the rising edge of pulses applied to input A and dec rements on the rising edge of pulses applied to input B Counter Incremental encoder or other pulse Input A generator Increment pulse Input B Incremental encoder or other pulse O Input Z generator Decrement pulse 1 2 3 1 2 Increment pulse AA a oo AL AL 2 1 0 Decrement pulse EN Additional Information For Counter Reset options refer to 3 6 Reset Counter CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 15 CN GA 5 D E r GU Q v a D O Dy sjN
128. he timing error is detected error Tells which log influence on con ery method the error is saved trol 1 in 3 Provides special information on the operation that results pen to execution of from the error event the user pro gram 4 System defined Variable Data type Name Lists the variable names data types and meanings for system defined variables that provide direct error notification that are directly affected by the error or that contain settings that cause the error Cause and cor Assumed cause Correction Prevention rection Lists the possible causes corrections and preventive measures for the error Attached This is the attached information that is displayed by the Sysmac Studio or an NS series PT information Precautions Provides precautions restrictions and supplemental information Remarks 1 One of the following 2 3 4 Major fault Major fault level Partial fault Partial fault level Minor fault Minor fault level Observation Information One of the following Automatic recovery Normal status is restored automatically when the cause of the error is removed Error reset Normal status is restored when the error is reset after the cause of the error is removed Cycle the power supply Normal status is restored when the power supply to the Controller is turned OFF and then back ON after the cause of the error is removed Controller reset Normal status is restored when the Contro
129. he Event Logs You use the same methods to manage all of the events that occur on the NJ series Controller The events include errors and information You can use the Sysmac Studio or an NS series PT to confirm current Controller events and the logs of events that have occurred These logs are called event logs Controller errors that occur for this Unit are also reported as events in the NJ series CPU Unit Refer to the NJ series CPU Unit Software User s Manual Cat No W501 for details on the event logs in an NJ series CPU Unit Refer to the NJ series Troubleshooting Manual Cat No W503 for details on Controller errors confirmation methods and corrections Check current Controller evenis and the event log of past events SEKR NJ series CPU Unit PLC Function Motion Control EtherCAT Master EtherNet IP PER Function Module Function Module Function Module Deene User program Create User defined Error instruction Event logs SetAlarm Create User defined Information instruction SetInfo Backup battery Check current Controller events and the event log of past events To use an NS series PT to check events connect the PT to the built in EtherNet IP port on the CPU Unit CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 Error Processing Maintenance and Inspection 5 3 2 Error Table The errors that may occur for this Unit are listed
130. igh speed Counter Unit can be set to Simple Circular or Linear Counter refer to 1 5 Operating Procedure Guidelines for quick start up information One CJ1W CT021 High speed Counter Unit occupies dedicated areas for four Units Therefore the maximum number of Units that can be mounted on all CPU Racks and Expansion Racks is 24 As a Circular or Linear Counter all functions of the Unit can be used As a Simple Counter how ever available functions are restricted The figure below shows all the function blocks that can be set and used The tables on Pages 1 14 and 1 15 explain the functions that can be used by a Circu lar or Linear Counter and by a Simple Counter Preset 2 3 Register Programmable Output Pulse 5 Output State Control Simple Circular Digital Inputs Ei Linear Automatic NPN PNP 3 10 1 4 Output Control Digital Outputs Counter 00 O1 1 2 Manual 41 Noise 4 Output Control Filter 5 10 Hysteresis ounter Counter Diagram is valid for Counter 1 and 2 Counter Inputs A B Z 1 14 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 Introduction Simple Counter Circular Linear Counter Batai section 3 3 Input Sig 1 Input Signal Types nal Types I O E x GA Di P Cc D J D min O OD OD e Phase Differential x1 default e Phase Differential x1 x2 x4 3 3 1 Phase 2 Differential e Up 8 Down 3 3
131. iguration and Setup right click then select Register Data Types for Units The data type is registered and becomes usable The user program uses the user defined variables to control High speed Counter Units With High speed Counter Units the following structure data types can be used for each comparison mode and Counter setting Comparison mode Structure data type name Range Mode _sCJCT021_ Ex RngLin _sCJCTO21_Ex_RngRing Comparison Mode _sCJCTO21_Ex_CmpLin _sCJCTO21_Ex_CmpRing CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 Exchanging Data with CPU 4 2 Memory Allocation 4 2 1 Memory Mapping When Range Mode and Comparison Mode are used the data to be used are allocated to any DM or EM Area bank 0 This allocation method is called extended allocation For details refer to 4 2 2 Allo cating Ranges and Comparison Data e For extended allocation lt DM or EM Area words allocated to Special I O Unit gt N D 3 O lt gt o O e a a A es es ee J OOOO 7 Ae For Counter 2 k2 Range e k24191 1 3 lt or k2 i D Comparison data e k2 319 J k1 k2 Start address for comparison data area for Counter 1 and Counter 2 Specify the allocated address from Memory Address screen in Edit Special Unit Settings of Sysmac Studio Data assigned to Counter 1 and Counter 2 can be allocated to any DM or EM address When this data i
132. in the manual of the occurred High speed Counter Unit kh do m lt 5 P r O 0 Attached Attached information 1 Error code 1 information Attached information 2 Error code 2 Precautions None Remarks suondiuoseg 10117 S G CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 11 5 Error Processing Maintenance and Inspection 5 4 Maintenance and Inspection This section describes the routine cleaning and inspection recommended as regular maintenance 5 4 1 Cleaning Clean the High speed Counter Unit regularly as described below in order to keep itin its optimal operat ing condition e Wipe the Unit with a dry soft cloth for regular cleaning e When a spot cannot be removed with a dry cloth dampen the cloth with a neutral cleanser wring out the cloth and wipe the Unit e A smudge may remain on the Unit from gum vinyl or tape that was left on for a long time Remove the smudge when cleaning LA Precautions for Correct Use Never use volatile solvents such as paint thinner or benzene or chemical wipes These sub stances could damage the surface of the Unit 5 4 2 Routine Inspections In order for your High speed Counter Unit to continue operating at optimum condition periodic inspec tions are necessary Be sure to inspect the system periodically to keep it in its optimal operating condi tion In general inspect the system once every 6 to 12 months but inspect more
133. ing device variables for CJ series Unit for setting For every Counter you can select the Signal Type Name of device variable Tuo Funcion for CJ series Unit yp Ch1_SigTypCfg UINT Signal Type This sets the input type Ch2_SigTypCfg 0 Phase differential multiplication 1 1 Phase differential multiplication 2 2 Phase differential multiplication 4 4 Up amp down pulse 8 Pulse amp direction 3 3 1 Phase Differential Phase Differential Signals are connected to the inputs A B and Z of every Counter The count direction is determined by the phase angle between input A and input B If signal A leads to B the Counter incre ments If signal B leads to A the Counter decrements Counter Input B Input Z Count up CW Count down CCW Phase A Avyayay AyaAyay Phase B Multiplication x1 Multiplication x2 la i3 14 i5 16 i7 i8 i9 40 11 12 4140 9 ls 17 i6 15 14 13 12 4 10 Multiplication x4 eo Multiplication x1 By default the Counter is configured for Multiplication by 1 If the Counter counts up signal A leads to signal B pulses are taken into account by the Counter on the rising edges of signal A If the Counter counts down pulses are taken into account on the falling edges of input A 3 14 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration e Multiplication x2 To increase the resolution of the incremental encoder the Counter can be confi
134. ing unit initialization processing while _UnitInitSta is ON Note that Counter Values are not updated during this time At a restart or when the Controller is reset including when the power is turned ON the variable UnitinitSta unit initialization being processed is ON for about 120 ms When any function which cannot guarantee the response time of 0 5 ms is used the approximate response time will be as follows Response time 0 5 ms function execution time A Digital Input or Z phase input takes about 300 us CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Reference 1 3 3 Input Specifications 3 4 Digital Input Functions 3 4 Digital Input Functions 4 2 Memory Allocation 3 4 Digital Input Functions 3 5 1 Range Mode 3 5 2 Comparison Mode 4 1 1 Data Flow 4 2 3 Details of Device Variables for CJ series Unit for input output A 3 Description of the Response Time gt da gt D 3 o Di O gt J D YN p dl O O gt Appendicies A 18 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Index CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Index 1 Index Index A Allocated CIO area word coooconccccccnccccccononoonononononononinnnos A 5 Allocated CIO area word for output A 5 Allocated DM area word ee reen aan n anna naaa A 8 As
135. input and output are relevant to control the application The program is created using these variables Device variables for Tvbe Function CJ series Unit YP Counter_AutoMan BOOL Automatic Manual 0 Automatic output control 1 Manual output control Counter_OutCtl0 BOOL Manual Output Con 0 OFF trol Output 0 1 ON Counter_Ch1_Enbl BOOL Open Gate O to 1 Count start Counter_Ch1_Dsbl BOOL Close Gate O to 1 Count stop Counter Ch1 Rst BOOL O to 1 Counter reset Counter Ch CtRun BOOL Counter Running 1 During Counter operation Gate Open while gate open 0 While Counter stopped while gate closed Counter Jon BOOL Digital Input O Status 0 OFF ee eee ho Counter _Ch1_LinCtVal DINT Counter Value 2 147 483 648 to 2 147 483 647 The above variable prefix Counter indicates that it is for the High speed Counter Units o I as D O CH Oo 5 e 2 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 6 3 6 Application Examples e Sample Program Counter_AutoMan P First RunMode First Cycle Flag Counter AutoMan Manual Output Control Counter Ch1 Rst Counter Jon Push Button Counter Ch1 Enbi Counter OutCtl0 Check if tank content is greater than or equal to 100 litres 500000 Counter_Ch1_CtRum Counter _OutCtlO Counter_Ch1_Dsbl GE In In2 Counter_Ch1_LinCtVal DINT 500000 6 4 Set Simple Counter 1 to Manual
136. input output To select functions for 3 4 Digital Input Functions Digital Input Status Digital Input O Selection Digital Inputs Gate function Counter Number Preset function e Digital Input 1 Selection e Reset function Counter Number e Reset enable disable function To select a Digital Out 3 5 3 Manual Output Control Manual Output Con Output Driver NPN PNP W put method 3 5 4 Output Control Configuration trol Output State Control m Automatic Manual e Predefined Output Pattern Output Status To select a Counter 3 6 Reset Counter Reset e Digital Input O Selection Reset technique Reset Enable Counter Number Reset Activated Digital Input 1 Selection Z signal Activated Counter Number e Z reset Mode Overflow Underflow error code genera T tion N E nm o i Counter Operations d CH S Name of lt EE Explanation of functions used device variable Name of device variable o H reference for CJ series Unit for CJ series Unit for setting z for input output S When used for Simple 3 2 1 Simple Counter e Simple Counter Not provided g Counter operation S lt E 3 D D CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 3 3 Operation and Configuration Purpose When used for Linear Counter operation When used for Circular Counter operation When used for Preset Counter operation Name of device variable for CJ series Unit for input output Explanation of functions used
137. ions for Correct Use i Storage Mounting and Wiring e Do not operate or store the Controller in the following locations Operation may stop or malfunctions may Occur e Locations subject to direct sunlight e Locations subject to temperatures or humidity outside the range specified in the specifications e Locations subject to condensation as the result of severe changes in temperature e Locations subject to corrosive or flammable gases e Locations subject to dust especially iron dust or salts e Locations subject to exposure to water oil or chemicals e Locations subject to shock or vibration e Take appropriate and sufficient countermeasures when installing the Controller in the following loca tions e Locations subject to strong high frequency noise e Locations subject to static electricity or other forms of noise e Locations subject to strong electromagnetic fields e Locations subject to possible exposure to radioactivity e Locations close to power lines e Before touching a Unit be sure to first touch a grounded metallic object in order to discharge any Static build up e Install the Controller away from sources of heat and ensure proper ventilation Not doing so may result in malfunction in operation stopping or in burning e An I O bus check error will occur and the Controller will stop if an I O Connecting Cable s connector is disconnected from the Rack Be sure that the connectors are secure e Do not allow foreign ma
138. ison values as a Ranges Comparison BCD Values BCD Data range 16 0000 to 0032 Factory value 1640000 Ch2_MemAreaCfg UINT Memory Area Sets the area type for storing the range comparison data 0 EM factory value 1 DM Ch2_MemAdrCfg DWORD R W Memory Address Sets the start address EM DM for storing the BCD range comparison data as a BCD Data range 16400000000 to 00032760 Factory value 1640000 1 Setto 0 and turn OFF Hysteresis to use the Preset Function 2 Sets the beginning k1 of the Range Data or Comparison Data 4 22 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 Exchanging Data with CPU 4 2 5 Memory Allocation for Ranges Range data are setin the user defined variable Refer to Allocation to User defined Variable P 4 10 for more information Two types of structure data are prepared beforehand for range data user defined variables one type for Linear Counters and one type for Circular Counters Register the structure data type for High speed Counter Units beforehand on the CPU Expansion Racks screen in Configuration and Setup of Sysmac Studio With the Unit selected on the CPU Expansion Racks screen in Configuration and Setup right click then select Register Data Types for Units The data type is registered and becomes usable Use these structures to define user defined variables Data type name Member Datatype Name _sCJCT021_Ex_RngLin Lower Limit Ra
139. it Special Unit Settings screen support all of the functions of this Unit However when they used with the NJ Series some functions of this Unit become unavailable Do not select functions that cannot be used Errors will not be detected even if these functions are selected or set Refer to A 1 Differences of NJ Series from CJ Series for functions that cannot be used with NJ series CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 17 Operation and Configuration eo Gate Function The Gate Function should be assigned to a Digital Input in case you want to use that Digital Input as a Gate When the Gate is open the Counter is able to count pulses When the Gate is closed the Counter will not count pulses The Positive Gate Function 01 results in an open Gate when the level of the signal applied to the Digital Input is high and a closed Gate when the level of the signal applied to the Digital Input is low For the Negative Gate Function 02 the same functionality is applied to the Counter for inverted signals Function 01 Function 02 Gate Positive Gate Negative Gate Closed Gate Open Gate Closed Gate Closed GateOpen Gate Closed The Counter gate can also be opened or closed with Open Gate Close Gate of the device variables for CJ series Unit for output as shown below Name of device variable me Name TEE for CJ series Unit Ch1 Enbi BOOL Open Gate O to 1 Count start Ch1_Dsbl BOOL Close Gate 0
140. it operation e CPU Unit features e Initial settings e Programming based on IEC 61131 3 lan guage specifications Use this manual together with the NJ series CPU Unit Hardware User s Manual Cat No W500 Describes the operating procedures of the Sys mac Studio The functions and usage of the CJ series High speed Counter Unit for using it in an NJ series configuration are described The functions and usage of the CJ series High speed Counter Unit for using it in a CJ series configuration are described 34 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Revision History Revision History A manual revision code appears as a suffix to the catalog number on the front and back covers of the manual Cat No W492 E1 03 KE Revision code Revision code Dae Revised content 01 July 2011 Original production 02 March 2012 Corrected errors 03 August 2012 Made changes accompanying release of unit version 1 03 of the CPU Unit CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 35 36 Revision History CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Introduction This section gives specifications of the CJ1W CT021 and a brief description of the functions and features of the Unit and the areas of application 1 1 1 2 1 3 Features and Functions 0 000 ce eee ees 1 2 Basic e ein e UI en EEN 1
141. its must be completely locked until they click into place after connecting Icons indicate GE the adjacent Unit connectors precautions additional information or reference information eva M a n u al n am e NJ series CPU Unit Hardware User s Manual W500 This illustration is provided only as a sample It may not literally appear in this manual Special Information Special information in this manual is classified as follows Y Precautions for Safe Use Precautions on what to do and what not to do to ensure safe usage of the product 14 Precautions for Correct Use Precautions on what to do and what not to do to ensure proper operation and performance EN Additional Information Additional information to read as required This information is provided to increase understanding or make operation easier Note References are provided to more detailed or related information 6 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Manual Structure Precaution on Terminology In this manual download refers to transferring data from the Sysmac Studio to the physical Controller and upload refers to transferring data from the physical Controller to the Sysmac Studio For the Sysmac Studio synchronization is used to both upload and download data Here synchronize means to automatically compare the data for the Sysmac Studio on the computer with the data in the physical Contr
142. k Tl D Di Les O Vu Di gt a Tl Les gt O O gt Vu O Digital Output Control To control the Outputs the Unit can be configured in one of the two following Output Control Modes e Range Mode refer to 3 5 1 Range Mode e Comparison Mode refer to 3 5 2 Comparison Mode In Range Mode up to 32 Ranges can be applied to individual Counters Every Range can control a maximum of 32 Outputs An Output is turned ON when the Counter is in the corresponding Range In Comparison Mode up to 32 comparison data can be applied to individual Counters Depending on the direction of counting an Output can be set or reset configurable on reaching the Compari son Value Every Comparison Value can control up to 32 Outputs Furthermore by setting and resetting I O ports for output data in the CPU Unit Digital Output can be controlled manually refer to 3 5 3 Manual Output Control You can set to hold the output in the previous status or to put it into the defined status for when the CPU Unit Operating Mode is changed from RUN Mode to PROGRAM Mode when an I O bus check error occurs or when an overflow underflow error occurs refer to 3 5 4 Output Control Configura tion o Resetting Counter Value Resetting of the Counter Value can be freely configured depending on the application needs The following sources can trigger a reset e Software bit in the PLC e Z Input e Digital Input that is configured as a Reset Input To en
143. l for NJ series CPU Unit W492 4 Exchanging Data with CPU Variable name Data type Wem O Function c1D 29 _sCJCT021_Ex_ Comparison data 29 Comparison value output set reset pattern CmpLin c1D 80 _sCJCT021_Ex_ Comparison data 30 Comparison value output set reset pattern CmpLin c1D 31 _sCJCTO21_Ex_ Comparison data 31 Comparison value output set reset pattern CmpLin For details on set and reset patterns refer to Configuration and Operation in Comparison Mode Variable name Data type Wem y O Function Counter 2 c2D 0 _sCJCT021_Ex_ Comparison data 0 CmpRing c2D 0 UDINT Comparison data 0 Comparison data 0 Comparison value Comparison value c2D 0 CmpVal DWORD Comparison data 0 Comparison data 0 output set pattern Set Pattern c2D 0 AddSetPat DWORD Comparison data O Comparison data 0 output reset pattern Reset Pattern c2D 0 AddRstPat DWORD Comparison data 0 Comparison data 0 output set pattern Set Pattern c2D 0 SubSetPat DWORD Comparison data 0 Comparison data 0 output reset pattern Reset Pattern c2D 1 _sCJCTO21_Ex_ Comparison data 1 Comparison value output set reset pattern CmpRing c2D 2 _sCJCT021_Ex_ Comparison data 2 Comparison value output set reset pattern CmpRing c2D 3 _sCJCTO21_Ex_ Comparison data Comparison value output set reset pattern CmpRing c2D 4 _sCJCT021_Ex_ Comparison data 4 Comparison value output set rese
144. le cables with product number XW2Z xxxB The length of the cable is indicated by xxx in centimetres The following cables are available e XW2Z 050B 0 5 m e XW2Z 100B 1 m e XW2Z 150B 1 5 m e XW2Z 200B 2 m spouyla y Punim JOJOQUUOD 2 2 e XW2Z 300B 3 m e XW2Z 500B 5 m The next figure shows how to use the Terminal Block Unit in a typical configuration together with the CJ1W CT021 High speed Counter 2 3 5 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 11 2 Componenis Installation and Wiring Refer to A 2 Using Terminal Block Units with Screw terminals for information on the numbering of the screw terminals You need this information in case you want to connect the external signals via Terminal Block Units to the High speed Counter Unit 2 12 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 Components Installation and Wiring 2 3 3 Important Wiring Considerations Use the following guidelines when planning the system wiring of the Unit e Disconnect the power to the controller before wiring the unit e Make sure the PLC system is properly grounded e Use shielded twisted pair cables and ground the shield when wiring the Counter Inputs A B Z and the Digital Inputs When grounding the shield at the si
145. ller is reset after the cause of the error is removed Depends on cause The recovery method depends on the cause of the error One of the following System System event log Access Access event log One of the following Continues Execution of the user program will continue Stops Execution of the user program stops Starts Execution of the user program starts 5 10 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 Error Processing Maintenance and Inspection Error Descriptions Meaning An error occurred in the High speed Counter Unit Source PLC Function Module Source details CJ series Unit Detection Depends on the timing nature of the error Error attributes Level Minor fault Recovery Depends on the Log category System cause Effects User program Continues Operation Depends on the nature of the error Check error informa tion in the operation manual of the High speed Counter Unit ERE There is an error in the Special Unit Check the attached information with Depends on the nature of the error Setup the Sysmac Studio or check error Check the error information in the EE EE E DEER codes 1 and 2 in the error history of operation manual of the High speed bcouired the High speed Counter Unit Perform Counter Unit and perform the corrective actions for system recovery required corrective actions following the descriptions for error A CPU Unit monitor error or bus error codes given
146. ly with EC Directives also conform to the related EMC standards so that they can be more easily built into other devices or the overall machine The actual products have been checked for conformity to EMC standards Whether the products conform to the standards in the system used by the customer however must be checked by the customer EMC related performance of the OMRON devices that comply with EC Directives will vary depending on the configuration wiring and other conditions of the equipment or control panel on which the OMRON devices are installed The customer must therefore perform the final check to confirm that devices and the overall machine conform to EMC standards Applicable EMC Electromagnetic Compatibility standards are as follows EMS Electromagnetic Susceptibility EN 61131 2 and EN 61000 6 2 EMI Electromagnetic Interference EN 61131 2 and EN 61000 6 4 Radiated emission 10 m regulations e Low Voltage Directive Always ensure that devices operating at voltages of 50 to 1 000 VAC and 75 to 1 500 VDC meet the required safety standards The applicable directive is EN 61131 2 e Conformance to EC Directives The NJ series Controllers comply with EC Directives To ensure that the machine or device in which the NJ series Controller is used complies with EC Directives the Controller must be installed as fol lows e The NJ series Controller must be installed within a control panel e You must use reinforced insulation or
147. mparison Value For a detailed description about Comparison Mode refer to 3 5 2 Comparison Mode If the Unit is configured for Range Mode all two Counters will operate in Range Mode If the Unit is configured for Comparison Mode all two Counters will operate in Comparison Mode Ke O r 5 O O 5 eb o The Output Control Mode is set with bits O to 7 of the following device variables for CJ series Unit for setting Name of device variable Woe Function for CJ series Unit YP OutCtIMdCfg WORD Output Control Bits 0 to 7 Output Control Mode Mode AND OR Sets the Output Control Mode Counter Output Patterns 16 00 Range Mode 16 01 Comparison Mode Bits 8 to 15 Counter output pattern AND OR selection For Range Mode selects whether the Counter output pattern is logically OR or AND 16 00 OR 16 01 AND Besides automatically the Digital Outputs can also be controlled manually refer to 3 5 3 Manual Output Control Unit Output Pattern Both in Range and Comparison Mode the 32 Outputs of the Unit are represented by the Unit Output Pattern The Unit uses the Unit Output Pattern internally to control the Outputs The Unit Output Pat tern consists of 30 Soft internal Outputs and 2 Digital Outputs The two Digital Outputs represent the Outputs OO and O1 of the Unit 31 Unit Output Pattern y for Unit internal use only Digital Outputs 00 and O1 Soft Outputs 2 to 31 Digit
148. n destination Setting Method For Inputs I O port for Inputs Outputs Created automatically when the Unit is registered to For Outputs the Unit Configuration For Settings I O port for Settings Range data Memory used for CJ series Set the allocated address with one of the following Unit methods After this setting reset the Controller or restart the Unit 1 Set with Memory Area and Memory Address in Edit Special Unit Settings of Sysmac Studio and transfer the data setup file to the Unit 2 Set using the following device variables for CJ series Unit Ch MemAreaCfg _Ch _MemAdrCfg in data for Settings Comparison data 4 1 2 Unit Restart To resume Unit operation after the contents of Unit settings are changed or after the cause of an error is eliminated restart the Unit with the following method Any changes in the Unit settings are reflected after the Unit is restarted e Reset the Controller from Sysmac Studio e Restart from Sysmac Studio when data setup file is transferred from Sysmac Studio e Cycle the Controller power to reset the Controller e Restart from the program by using a ResetUnit instruction e Restart by using a system defined variable restart by changing to TRUE Variable name _CJB_SIO Restart The asterisks mean Unit number 00 to 92 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 Exchanging Data with CPU 4 1 3 Access from User Program Vario
149. nasa aaa aaeeea 2 17 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 1 2 Components Installation and Wiring 2 1 Components and Switch Settings 2 1 1 Components e Front and Side View e 31 CIS ERC ERH OCH DAGBOZ Gm 000 Indicators OCH2 DADBD Oli 001 Machine Number Switch Counter Mode Switch Connecting Cable 2 2 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 Components Installation and Wiring 2 1 2 Indicators N I k O O 3 y O 5 O 5 T o 5 o Ww O GU O 5 0 The indicators on the LED display show the operating status of the Unit The following table shows the meaning of the indicators LED Colour State Description RUN Green Unit is in operation i e Unit has initialized normally after the Controller is reset or the Unit is restarted OFF Any of the following e No registration in Unit Configuration e No power supply from Power Supply Unit sJOJeoIpul Z 1 Z e Unit WDT error e Unit hardware failure ERC ON Unit has operational failure due to a detected error For a list of all the errors that can cause an opera tional failure see 5 2 Error codes Unit has no operational failure ERH ON CPU Unit has operational failure For a list of all the errors that can occur at the CPU Unit see 5 7 Error Indicators OFF CPU Unit has no operational failure
150. nd Reset Activated CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 19 3 Operation and Configuration o Enable Disable Reset A Digital Input configured to have Enable Reset Functionality Function 15 or Disable Reset Func tionality Function 16 can be used to Enable Disable resetting a Counter by an external reset sig nal The external reset signal can originate from another Digital Input that is configured to have reset functionality Function 05 or 06 or from the Z input Function 15 Function 16 Enable Reset Disable Reset ro tot External Reset External Reset External Reset External Reset External Reset External Reset Disabled Enabled Disabled Enabled Disabled Enabled To reset a Counter by the function 05 or function 06 it is necessary for external resets to be in the enabled state and for Reset Enable to be set to 1 For details on Counter resets refer to 3 6 Reset Counter Digital Input Status The status of the two Digital Inputs is reflected in the devices variables for CJ series Unit for input shown below Name of device variable me Name Function for CJ series Unit In0 BOOL Digital Input O Status 0 OFF 1 ON An input with extremely short pulse widths shorter than the CPU Unit task period is not always reflected in the above variables e Action Status When a preset or reset is allocated to a Digital Input the status of Digital Inputs is detected via vari ables
151. near Counter with the Counter No as reported in Error Code 2 is preset with an invalid Preset Value e Clearing Preset error A Preset error can be cleared by resetting or by presetting the Counter that generated a Preset error with a valid Preset Value To reset a Counter refer to 3 6 Reset Counter To preset a Counter refer to 3 4 Digital Input Functions 5 2 4 System Errors When errors occur in the CPU Unit or on the I O bus the ERH Indicator is turned ON At the occurrence of an I O bus check error an error code is stored in error codes 1 and 2 Error Code 1 Error Code 2 Error Description 0002 Monitoring time ms CPU Unit Monitoring This error occurs when there is no response from Error the CPU Unit within a specific period of time 000E 0000 UO Bus Check Error An error has occurred on the I O Bus causing the High speed Counter Unit to be in an undefined state On occurrence of an I O Bus Check Error you can configure the Outputs to keep their last state or to have a predefined state refer to 3 5 4 Output Con trol Configuration V N m O o O o D 0 10113 S ld Z S e Clearing System errors Reset the Controller or turn ON the power supply again If the error persists then replace the CJ series CPU Unit CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 7 5 Error Processing Maintenance and Inspection 9 3 Event Logs 9 3 1 5 8 Overview of t
152. ng Humidity Internal Current Consumption Dimensions mm Weight Mounting Position Maximum Number of CT021 Units per Rack NJ system CPU rack and expan sion rack Data Exchange with CPU Unit General Specifications CJ1W CT021 CJ series Special I O Unit Conform to general specifications for Sysmac NJ series 0 to 55 C 20 to 70 C 10 to 90 without condensation 280 mA at 5 V 31 x 90 x 65 W x Hx D 100 g NJ series CPU Rack or NJ series Expansion Rack Equal to the number of slots of the Hack 24 Data is exchanged through UO ports or as necessary with memory for CJ series Unit For details refer to 4 2 Memory Allocation However the number that can be mounted in one Unit depends on the maximum current that the Power Supply Unit can supply and the current consumption of other Units CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 pue suolje91jidads O gt D o O mp D O 0 suoleooeds je auano E L 1 Introduction 1 3 2 Functional Specifications Item Number of Counters Counter Type Maximum Input Frequency Maximum Response Time Signals per Counter Digital I O Input Signal Types Counter Control using I O ports Digital Input Functionality Output Control Mode Output State Control Output Driver Configuration CJ1W CT021 2 e Simple Counter refer to 3 2 1 Simple Counter e Circular Counter refer to 3 2 2 Circul
153. ng on the counting direction the set or reset pattern is applied to the unit output pattern when the CV is reached To enable or disable Counter comparison conditions refer to the following device variables for CJ series Unit for setting Name of device variable VOS EHS for CJ series Unit W Chi_RngCmpEnbiCfg DWORD Range Comparison Sets whether the range and comparison Ch2_RngCmpEnbiCtg Enable Data data is enabled or disabled Bits 00 to 31 correspond to comparison data O to 31 0 Comparison data disabled 1 Comparison data enabled CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 35 3 Operation and Configuration e Updating Unit Output Pattern with Preset or Reset Action Besides by crossing CV s the Unit Output Pattern can also be updated by a Preset or a Reset action To trigger a Preset or Reset action refer to 3 4 Digital Input Functions and 3 6 Reset Counter Every Preset or Reset Action will then update the Unit Output Pattern according to the predefined Output Set and Output Reset Patterns You can define an Output to be Set Reset or remain Unchanged similar as on reaching a Comparison Value Name of device variable Da Funci n for CJ series Unit Ma Chi_OutSetPatCfg DWORD Output Set Pattern They decide the set patterns for outputs 0 to x 31 Bits O to 31 correspond to the outputs 0 Ch2_OutSetPatCf Z gt i to 31 When a bitis ON 1 the pattern is set for the corresponding ou
154. nge _sCJCT021_Ex_RngRing Lower Limit Range The table below shows an example of range allocation when the range data user defined variables are defined as follows c1D for Counter 1 array 0 31 of sCJCT021 Ex RngLin Linear Counter 32 ranges maximum c2D for Counter 2 array 0 31 of _sCJCT021_Ex RngRing Circular Counter 32 ranges maxi a N D 3 O lt gt o O e sabuey 10 UOIJe90 y AWAN G 2 p mum Variable name Data type Wem y O Function Counter 1 c1D 0 _sCJCT021_Ex_ Range 0 RngLin c1D 0 LowLmt DINT Range 0 Lower Limit Range 0 lower limit c1D 0 UpLmt DINT Range 0 Upper Limit Range 0 upper limit ci D 0 OutPat DWORD Range 0 Output Pattern Range 0 output pattern c1D 1 _sCJCTO21_Ex_ Range 1 Range 1 lower limit upper limit values and output RngLin pattern c1D 2 _sCJCT021_Ex_ Range 2 Range 2 lower limit upper limit values and output RngLin pattern c1D 3 _sCJCT021_Ex_ Range 3 Range 3 lower limit upper limit values and output RngLin pattern c1D 4 _sCJCTO21_Ex_ Range 4 Range 4 lower limit upper limit values and output RngLin pattern c1D 5 _sCJCT021_Ex_ Range 5 Range 5 lower limit upper limit values and output RngLin pattern c1D 6 _sCJCT021_Ex_ Range 6 Range 6 lower limit upper limit values and output RngLin pattern c1D 7 _sCJCT021_Ex_ Range 7 Range 7 lower limit upper limit values and output RngLin pattern c1D 8 _sCJCT021_Ex_ Range 8 Range 8 lower limit upper limit values
155. nnnnnnnnnnnonos 4 27 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 11 CONTENTS Section 5 Error Processing Maintenance and Inspection 9 1 SENIN sosire a E a E 5 2 5 1 1 EERSTEN E 5 2 5 1 2 Emos duino Normal ODS ALON WEE 5 3 5 2 deg ie E 5 4 5 2 1 Bi ee UA Edel 5 5 5 2 2 Overtlow Whderntlow ert Ors ecco sce en eege Eege 5 6 5 2 3 POS e EE 5 7 5 2 4 SS ENO S arus AA AA a a O Aa eTa 5 7 59 EVENT LOO E 5 8 5 3 1 Overview of the Event LOgS ege AEN 5 8 5 3 2 Error Tables aspire 5 9 5 3 3 Error Descriptions E 5 10 5 4 Maintenance and Inspection EE 5 12 5 4 1 Clean WEE 5 12 5 4 2 ROUNE SPECION zna A 5 12 Section 6 Application Examples ii a 0 ee rem i oe 6 2 Appendices A 1 Differences of NJ Series from CJ Series cccseeeescesssseeeeeceessseeeeseeesnneeeeseeeenseeeeseeensnseees A 2 A 1 1 FUNCIONAL DIMereN E A 2 A 1 2 Differences in Access Methods from a User Program cccccccceeeseeeeeeeeeeeeeeseeeeeeesaeaaeeeeeeeeenaas A 4 A 2 Using Terminal Block Units with Screw terminalls ooooccconnnnncccnncncnnonannncnnonancnnnnaanenenaannnns A 14 A 3 Description of the Response TiMe cccssscccsesseeeseseeseeseeeeenseeoeseeeoeaseeeenseeeoeaseesenseesonneeeseas A 16 E WE ele teg e ta E ge de ru CC A 17 Index 12 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Read and Understand this Manual Read and Understand this Manual Please r
156. ns numbered B1 to B20 of the associated connector CN1 on the Unit T N C H 5 D 3 5 09 O O o Cc 0 gt GU O O ela O 3 5 D 0 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 A 15 Appendicies A 3 Description of the Response Time The Response Time of the CJ1W CT021 High speed Counter Unit is the time between the Unit receiv ing a count pulse on one of the Counter inputs A or B and the switching ON or OFF of a correspond ing Digital Output CJ1W CT021 Input Output circuitry circuitry Digital Output Response Time to switch _ Digital OutputON Response Time to Switch Digital Output OFF gt The Response Time can vary between 0 1 and 0 5 milliseconds but is guaranteed to be less than 0 5 milliseconds The following factors cause the Response Time to fluctuate O uN dp O O _ o e The number of Counters for which the range comparison or target value comparison condition meets simultaneously The maximum Response Time of 0 5 milliseconds can no longer be guaranteed and will temporarily become longer than 0 5 milliseconds in case you make use of e Programmable output ON e Digital Inputs or Z inputs EN Additional Information e When one of the above functions is used the approximate response time will be as follows Response time 0 5 ms function execution time e A Digital Input or Z phase input
157. nstall and wire the High speed Counter Unit This section describes the functionality of the High speed Counter Unit and how to configure the Unit This section describes the data exchange between the CPU Unit and High speed Counter Unit and the definitions of the device variables for CJ series Unit This section describes the troubleshooting procedure event logs and maintenance procedure for the High speed Counter Unit This section provides an application example of the High speed Counter Unit using a sample program CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Manual Configuration CJ series High speed Counter Units Operation Manual Cat No W401 Section Section 1 Introduction Section 2 Components Installation and Wir ing Section 3 Operation and Configuration Section 4 Exchanging Data with CPU Section 5 Error Processing Maintenance and Inspection Section 6 Application Examples Appendices CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Description This section describes the functionality and the specifications of the High speed Counter Unit and the operating procedure This section describes the details of the components and where and how to install and wire the High speed Counter Unit This section describes the functionality of the High speed Counter Unit and how to configure the Unit This section describes the dat
158. nt Limit Set a value in the range of 0 to Ch2 UpCtLmtCfg Circular Linear 2 147 483 647 When 0 is set this becomes 2 147 483 647 Ch1_LowCtLmtCfg DINT Lower Count Limit Set a value in the range of Ch2_LowCtLmtCfg Linear 2 147 483 648 to 0 When 0 is set this becomes 2 147 483 648 CN N CH O C Fe O a D O Dy e Creating Error Codes To create an error code with a Linear Counter set the bits 4 to 7 of the device variable for CJ series Unit for setting to 1 Name of device variable Type Funcion for CJ series Unit yp Jajuno Jeaul7 2 Ch1_ZOvfUdfCfg WORD Z reset Mode Over Bits 00 to 03 Z phase reset Ch2_ZOvfUdfCfg flow Underflow error 16 0 No function code generation 16 1 Reset Bits 04 to 07 Overflow underflow error set ting 16 0 Do not generate error codes 16 1 Generate error codes Bits 8 to 15 00 e Overflow and Underflow Flags An Overflow or Underflow of a Linear Counter is reported in the device variables for CJ series Unit for input Name of device variable me Name Function for CJ series Unit Ch1 CtOvf BOOL Counter Overflow 1 Overflow Ch2 CtOvf ee 0 Other than the above Ch1_CtUdf BOOL Counter Underflow 1 Underflow Ch2_CtUdf a 0 Other than the above CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 13 3 Operation and Configuration 3 3 Input Signal Types Select the input type using the follow
159. o 31 Internal output 2 to 31 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 ple Ranges of a Counter are active at the same time the Output Patterns of those Ranges are logi cally OR ed to become the Output Pattern of that Counter CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration Additional Information e In Range Mode it is possible to apply a hysteresis to ranges in order to prevent Digital Out puts from toggling due to unwanted oscillating of an Encoder Refer to 3 7 2 Hysteresis for detailed information e Precautions When Setting Range Data e Comparison Stoppage during Comparison of Ranges The comparison operation stops for 1 5 ms from when the High speed Counter Value falls within the Upper Range Limit or Lower Range Limit for the range data The other Counters however do not stop comparisons Set the range data considering the time when the comparison is stopped For example for the Range table shown in the following diagram approximately 4 8 counts occur during 1 5 ms when a 3 2 kHz pulse is input This means that comparison does not occur for Counter Values 101 102 103 and 104 During this period the Output set under the Output Pattern does not turn ON even if the Counter Value is within the range data rang
160. o may break the cables Mount terminal blocks and connectors only after checking the mounting location carefully Be sure that the terminal blocks expansion cables and other items with locking devices are properly locked into place Always remove any dustproof labels that are on the top of the Units when they are shipped before you turn ON the power supply If the labels are not removed heat will accumulate and malfunctions may occur Before you connect a computer to the CPU Unit disconnect the power supply plug of the computer from the AC outlet Also if the computer has an FG terminal make the connections so that the FG terminal has the same electrical potential as the GR terminal on the Power Supply Unit A difference in electric potential between the computer and Controller may cause failure or malfunction If the external power supply to an Output Unit or slave has polarity connect it with the correct polar ity If the polarity is reversed current may flow in the reverse direction and damage the connected devices regardless of the operation of the Controller i Power Supply Design Do not exceed the rated supply capacity of the Power Supply Units in the NJ series Controller The rated supply capacities are given in the NJ series CPU Unit Hardware Users Manual Cat No W500 If the capacity is exceeded operation may stop malfunctions may occur or data may not be backed up normally for power interruptions Use NJ series Power
161. ode is stored in ErrCode1 error code 1 and ErrCode2 error code 2 Factory value O O to 1 Opens the gate starts the count Factory value O O to 1 Closes the gate stops the count Factory value O O to 1 Loads preset values Factory value O O to 1 Counter reset Resets Counter Values to 0 Factory value O 0 Disable factory value 1 Enables Z phase input Digital Input reset gt N D 3 O lt gt o O e indino mdu1 104 yun SOALISS PD 10 SAJQBINEA SIMI JO Sq E 2 p 4 Exchanging Data with CPU Name of device variable Ch1_PrstLinCtVal DINT RW Preset Value Preset value Used for Simple Counter or Linear Counter Data range 2 147 483 648 to 2 147 483 647 Unit Pulse Factory value O Ch1_PrstRingCtVal UDINT RW Preset Value Preset value Used for Circular Counter Data range 0 to 4 294 967 295 Unit Pulse Factory value O Counter 2 _Ch2_Enbl BOOL RW Open Gate 1 3 0 to 1 Opens the gate starts the count Ch2_Dsbl BOOL RW Close Gate 1 3 O to 1 Closes the gate stops the count Ch2_Prst BOOL Preset 3 O to 1 Loads preset values Factory value O Ch2_Rst BOOL RW Reset 2 O to 1 Counter reset Resets Counter Values to 0 Factory value O Ch2 RstEnbl BOOL ZE E 2 1 Enables Z phase input and Digital Input reset 0 Disable Factory value O Ch2 PrstLinCtVal DINT RW Preset Value Preset value Used for Simple Counter or Linear C
162. oller and transfer the data in the direction that is specified by the user CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Manual Structure CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Sections in this Manual Sections in this Manual Introduction Componenis Installation and Wiring Operation and Configuration Exchanging Data with CPU Error Processing Maintenance and Inspection Application Examples Appendices CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 9 CONTENTS CONTENTS A INTOdUCUO ann a cn 1 SOEN TR ET vU E 2 Manual COntiQurationy uns 3 Manual SUCIO usaran lada 6 SECTIONS iN this Manual ada 9 CONTENTS nn nn a a A a a a a a dE en a Ae 10 Read and Understand this Manual ccccsecsececsecesceeeecusceeecuscuseueeeenseeseeenecanees 13 Safely PRECAUTIONS E 16 Precautions Tor Safe USO ME e 21 Precautions Tor Correct USe ana A a eenaa gege 27 Regulations and StandardS seeeseeseseesa naaa aaa naaa naaa ana anna Seege See 30 ite Te Tu 32 Related MantalS indi 34 REVISION FUSTO GE 35 Section 1 Introduction 1 1 Features and FUNCION Said 1 2 12 Basic Configura iii a a aa a a 1 5 1 3 Specifications and Characteristics cccseeeccssesseeeeeeceesseeeeseeensseeeeeecoenseeeeeceonseeeeseaoonens 1 7 1 3 1 ER eene 1 7 1 3 2 Functional SPECIFI
163. omparison Mode Comparison condition 1 to 31 o Device variable for CJ series Unit These variables are used to exchange data between the user program and Special I O Units 4 Exchanging Data with CPU High speed Counter Unit General Unit I O Data I O refresh and Counter Specific I O Data I O refresh Unit Configuration Data Power ON or unit restart Use device variables for CJ series Units with AT specification for the I O port There are three types of variables for input for output and for settings For details on allocation of device variables for CJ series Units refer to 4 7 3 Access from User Pro gram eo User defined Variable When a Counter is used in Range Mode or in Comparison Mode user defined variables are used to access from the user program the area in which the comparison data is set An address of the data to be used as comparison data is set with the device variable for CJ series Unit for setting Use Sys mac Studio to specify the AT allocation destination in which comparison data is stored with user defined variables For details refer to 4 2 2 Allocating Ranges and Comparison Data CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 A I O lt od lt od MOJ 8d L L y 4 Exchanging Data with CPU AT specification of variables used to access these parameters data is determined with the following Unit data type AT specificatio
164. on the CPU Expansion Racks screen in Configuration and Setup when using output control functions When the program is transferred items set here will be reflected in the device variables for CJ series Unit for setting Set the unit number switches on the front panel of the High speed Counter Unit Set the same unit number as in the Unit Configuration settings Set the Counter type switch on the front panel of the High speed Counter Unit Set for each Counter Reflect the settings for the switches on the front panel of the High speed Counter Unit in the Unit Transfer user programs Unit Configuration and Setup and variable information Reflect the settings for the Unit in the High speed Counter Unit This is reflected when the Controller is reset or the Unit restarted With the user program Counter starting and stopping using Range Mode or Comparison Mode to control external output etc At this time an I O Setting Check Error occurs when there is a Unit Configuration in the CPU Unit which does not match the actual Unit Configuration In this case reset the Controller in Reset the Controller or restart the Unit process to cancel the error CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 19 1 Introduction Details of Hardware Setting and Rack Assembly O Set the Unit number Set the Machine Number Refer to 2 1 4 Machine Number Switch for further details Set the same unit numbe
165. or is flashing While the BUSY indicator is lit the user program and settings in the CPU Unit are being backed up in the built in non volatile memory This data will not be backed up correctly if the power supply is turned OFF Also a major fault level Controller error will occur the next time you start operation and operation will stop Do not turn OFF the power supply or remove the SD Memory Card while SD Memory Card access is in progress i e while the SD BUSY indicator flashes Data may become corrupted and the Control ler will not operate correctly if it uses corrupted data To remove the SD Memory Card from the CPU Unit while the power supply is ON press the SD Memory Card power supply switch and wait for the SD BUSY indicator to turn OFF before you remove the SD Memory Card Do not disconnect the cable or turn OFF the power supply to the Controller when downloading data or the user program from Support Software Always turn OFF the power supply to the Controller before you attempt any of the following e Mounting or removing I O Units or the CPU Unit e Assembling the Units e Setting DIP switches or rotary switches CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Precautions for Safe Use e Connecting cables or wiring the system e Connecting or disconnecting the connectors The Power Supply Unit may continue to supply power to the rest of the Controller for a few seconds after the power supply tu
166. ounter Data range 2 147 483 648 to 2 147 483 647 Unit Pulse Factory value O Ch2_PrstRingCtVal UDINT RW Preset Value Preset value Used for Circular Counter Data range 0 to 4 294 967 295 Unit Pulse Factory value O 1 Initially after the Controller is reset or the Unit is restarted the Gate is closed In order to start counting pulses it is necessary to open the gate by setting Open Gate to 1 for the Counter used 2 Bit s have no function for Simple Counters 3 These bits may not be executed if they are ON for only one task period Always keep these bits turned ON until the execution status changes in the corresponding bits refer to the section on device variables for CJ series Unit for input Note The at the head of the device variable name for CJ series Unit is the device name when this Unit is regis tered in the Unit Configuration By default a device name is assigned from J01 in the order of registration in the Unit Configuration 4 12 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 Exchanging Data with CPU e For inputs Name of device variable General OutStaDat DWORD Output Status The current statuses of external and internal output total of 32 are all displayed 0 OFF 1 ON Bit 00 External output OO Bit 01 External output O1 Bit 02 Internal output 2 Bit 31 Internal output 31 This variable is used to process output signal sta tuses collectiv
167. ounter Underflow Ch1 CtRun Counter Running Gate Open Ch1_CntDir Counter Direction Ch1_PrstSta Preset Activated Ch1 RstSta Reset Activated Undefined Capture Activated Ch1 ZSig Z signal Activated 08 to 09 Undefined Sr a Undefined Pulse Rate Range 0 active D Q OD OD gt O D O h as Y D D Wu ha O 3 O a LD O D Vu Counter 2 n 25 00 to 15 32 outputs status correspond to n 25 n 26 Ranges Comparison Values n 26 Ch2_RngCmpDatSta active n 25 _ Ch2_RngCmpSta0 Ranges 0 Comparison Values O active Ch2 ooo ZE 15 Comparison Values 15 active n 26 Ch2_RngCmpSta16 Ranges 16 Comparison Values ee active S areas eeN _RngCmpSta31 GER 31 Comparison Values 31 active n 27 00 to 15 Ch2_LinCtVal Simple Counter or Linear Counter Counter Value n 28 Ch2_RingCtVal Circular Counter n 30 to 0015 n 39 Names used in CJ Series weiBOld Jas E WOJJ SPOYJAA SSSIDY Ul SODUDISHIO Z L Y CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 A 7 Appendices H Special I O Unit DM Area Allocated DM Area words i ec NJ series device variables for CJ series Unit General m 00 to 07 OutCtIMdCfg Output Control Mode 08 to 15 Bits 00 to 07 Output Control Mode Counter Output Pattern Bits 08 to 15 Counter output pattern AND OR selection AND OR Selection m 1 00 to 15 Undefined External Interrupt Task No Off
168. peed Counter Unit refer to 4 1 2 Unit Restart 5 2 2 Overflow Underflow errors Over and underflow errors are reported only for Linear Counters assuming that they have been config ured to generate error codes refer to 3 2 3 Linear Counter Error Code 1 Error Code 2 Error Description 0450 Counter No Overflow The Linear Counter with the Counter No as reported in Error Code 2 generated overflow 0460 Counter No Underflow The Linear Counter with the Counter No as reported in Error Code 2 generated underflow e Clearing overflow underflow errors Overflow and underflow errors can be cleared by resetting or presetting the Counter that generated over or underflow To reset a Counter refer to 3 6 Reset Counter To preset a Counter refer 3 4 Dig ital Input Functions EN Additional Information At overflow and underflow errors it is possible to configure Output State Control refer to 3 5 4 Output Control Configuration 5 6 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 5 Error Processing Maintenance and Inspection 5 2 3 Preset Error A Preset error is generated if a Circular or Linear Counter is preset with an invalid Preset Value refer to 3 4 Digital Inout Functions for more information about presetting The Preset Value is invalid if it is out side the counting range of the Circular or Linear Counter Error Code 1 Error Code 2 Error Description 0470 Counter No Illegal Preset Value The Li
169. prevent stable communi cations Do not use repeating hubs on networks where tag data links are used Use an Ethernet switch instead EtnercAT Communications e Make sure that the communications distance number of nodes connected and method of connection for EtherCAT are within specifications Do not connect EtherCAT communications to EtherNet IP a standard in house LAN or other net works An overload may cause the network to fail or malfunction e Malfunctions or unexpected operation may occur for some combinations of EtherCAT revisions of the master and slaves If you disable the revision check in the network settings use the Sysmac Studio to check the slave revision settings in the master and the actual slave revisions and then make sure that functionality is compatible in the slave manuals or other references You can check the actual slave revisions from the Sysmac Studio or on slave nameplates e After you transfer the user program the CPU Unit is restarted and communications with the Ether CAT slaves are cut off During that period the slave outputs behave according to the slave settings The time that communications are cut off depends on the EtherCAT network configuration If the EtherCAT network configuration contains only OMRON EtherCAT slaves communications are cut off for a maximum of 45 seconds Before you transfer the user program confirm that the system will not be adversely affected CJ series High speed Counter Unit
170. puts and the Counter Inputs of the Unit are logically grouped together and allocated to the pins of connector 1 The following table lists the allocation of the external signals to the respective pins Item Counter 2 Spare CH2 24 V CH2 12 V 16 a LD CH2 LD 0 V 15 2 E 1 7 14 ee SE Sg CH1 LD CH1 LD 0 V CH1 24 V CH1 5 V 11 Counter 1 Spare Digital Inputs 0 1 Spare Digital Outputs 0 1 NPN PNP Power Supply to feed the outputs PS 12 to 24 V PS 0 V eo Power Supply CH1 24 V CH1 5 V PA LD CH1 LD 0 V CH1 LD CH1 LD 0 V 10 A 24 V 11 0 V 10 24 V 10 0 V O1 PNP O1 NPN O0 PNP O0 NPN sch 1 N Gi B 0 NI oi External power has to be applied to the Power Supply pins in order to feed the Digital Outputs Depending on what your application requires you can apply an external voltage between 12 to 24 VDC In case the Digital Outputs are not used in your application no external power has to be sup plied CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 Components Installation and Wiring Digital Outputs Every Digital Output OO and O1 can be used in a NPN or PNP configuration depending on your application needs This configuration is done with Edit Special Unit Settings screen of Sysmac Stu dio refer to 3 5 4 Output Control Configuration for more details After you have configured the Dig ital Outputs for NPN or PNP you should
171. r Counter 2 DWORD Ranges Comparison The current status of all the comparison conditions Values active is shown Bits 00 to 31 correspond to comparison conditions 0 to 31 Each bit shows 1 if the condition is met or O if the condition is not met Data range 16 00000000 to 16 FFFFFFFF BOOL Ranges Comparison 1 Met 0 Not met Values 0 active BOOL Ranges Comparison 1 Met 0 Not met Values 1 active BOOL Ranges Comparison 1 Met 0 Not met Values 2 active CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 Exchanging Data with CPU Name of device variable Ch2_RngCmpSta31 BOOL Ranges Comparison 1 Met 0 Not met Values 31 active Ch2_LinCtVal DINT Counter Value Shows the encoder Counter Value Used for Simple Counter or Linear Counter Data range 2 147 483 648 to 2 147 483 647 Unit Pulse D N Ch2_RingCtVal UDINT Counter Value Shows the encoder Counter Value gt Used for Circular Counter 3 Data range gt 0 to 4 294 967 295 S Unit Pulse o Ch2_CtOvf bere Wang Overflow 1 The upper count limit of the Linear Counter is reached Ch2 CtUdf co a Underflow 1 The lower count limit of the Linear Counter is AA EE Ch2 CtRun BOOL Counter Run 1 During Counter operation while gate open CS 0 While Counter stopped while gate closed Ch2_CntDir BOOL Counting Direction 1 Count up e Ch2_PrstSta BOOL GN Preset Activated 2 The presets are executed Ch2_Rst
172. r Delay Time BCD Dig nal output 1 as a BCD OutDur1Cfg WORD R W Buas 101 JUN SANMAS O JO SB QeUeA 848G JO SHEA Z P CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 17 4 Exchanging Data with CPU Name of device variable DigilnOFunCfg WORD R W Digital Input O Func Bits 00 to 07 Sets the function for Digital Input O tion Counter Number 46 00 No function factory value Digilni FunCfg WORD R W Digital Input 1 Func tion Counter Number 16 01 Positive gate Function 01 PreOutPatCfg DWORD Predefined Output Pat 16 02 Negative gate Function 02 16 03 Rising edge preset Function 03 16 04 Falling edge preset Function 04 16 05 Rising edge reset Function 05 16 06 Falling edge reset Function 06 16 15 Reset enabled Function 15 16 16 Reset disabled Function 16 For details refer to 3 4 Digital Inout Functions Bits 08 to 15 Sets the Counter connected to the Digital Input 0 16 00 No setting factory value 16 01 Counter 1 1602 Counter 2 Bits 00 to 07 Sets the function for Digital Input 1 16 00 No function factory value 16 01 Positive gate Function 01 16 02 Negative gate Function 02 16 03 Rising edge preset Function 03 16 04 Falling edge preset Function 04 16 05 Rising edge reset Function 05 16 06 Falling edge reset Function 06 16 15 Reset enabled Function 15 16 16 Reset disabled Function 16
173. r Units Operation Manual for NJ series CPU Unit W492 13 Read and Understand this Manual Application Considerations SUITABILITY FOR USE OMRON shall not be responsible for conformity with any standards codes or regulations that apply to the combination of products in the customer s application or use of the products At the customer s request OMRON will provide applicable third party certification documents identifying ratings and limitations of use that apply to the products This information by itself is not sufficient for a complete determination of the suitability of the products in combination with the end product machine system or other application or use The following are some examples of applications for which particular attention must be given This is not intended to be an exhaustive list of all possible uses of the products nor is it intended to imply that the uses listed may be suitable for the products e Outdoor use uses involving potential chemical contamination or electrical interference or conditions or uses not described in this manual e Nuclear energy control systems combustion systems railroad systems aviation systems medical equipment amusement machines vehicles safety equipment and installations subject to separate industry or government regulations e Systems machines and equipment that could present a risk to life or property Please know and observe all prohibitions of use applicable to the prod
174. r and when 100 liters have been put into the tank it closes the valve to end the injection The flow meter measures the flow with pulse output 5 000 pulses are equivalent to 1 liter e Unit Settings The unit settings are as follows Name Setting target Settings Counter type Counter type switch Set Counter 1 to a Simple Counter Set DIP switch 1 to OFF Unit number Unit number switch and Unit Config Unit number 0 X101 0 X100 0 uration CPU Expansion Racks screen in Configuration and Setup of Sysmac Studio Device name of this unit CPU Expansion Racks screen in Counter set with Sysmac Studio Configuration and Setup of Sysmac Studio Liquid injection start switch o Connected to Digital Input 10 Liquid injection valve Connected to Digital Output O0 eo Program Overview The value counted by the High speed Counter Unit is compared with the specified value When the liquid injection start switch 10 is changed to ON the value counted by Counter 1 is reset and the count is started the gate is opened and the liquid injection valve output O0 is changed to ON 6 2 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 6 Application Examples When the value counted by Counter 1 reaches 500 000 or higher the liquid injection valve output O0 is changed to OFF and Counter 1 is stopped the gate is closed o Defined variable The following device variables for CJ series Unit for
175. r as in the Unit Configuration settings Machine Number Switch 23 gt MACH N No SCH x10 TD O KS 01 ELA 100 Set between 00 92 o Set the types of Counters Set the Counter Type for every Counter with the switch at the front of the Unit Pins 1 and 2 corre spond to Counters 1 and 2 Refer to 2 1 3 Counter Type Switch for further details Counter Type Switch ON lt OFF OFF Simple Counter ON Circular Linear Counter e Mounting and wiring to the Rack Install and wire the Unit Refer to 2 2 Installation and 2 3 Wiring for further details 1 20 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 Introduction O O Create Initial Settings Data of the Unit 2 Create the initial settings data for the Unit on the Edit Special Unit Settings of Sysmac Studio When 3 setting in Simple Counters there is no need to create this data 27 20 DO When setting in Simple Counters SS N O No Special Unit settings are necessary The Unit is ready to count and will use all default settings for the Special Unit settings All data related to the Simple Counter can be exchanged between the CPU Unit and the Counter Unit through device variables for CJ series Unit and available for usage in the user Program Refer to 3 2 1 Simple Counter for more details about the Simple Counter When setting in Circular Linear Counters The Counter Type Linear or Circul
176. r kere aa kena nana nana Kan naaa Kanan 3 2 Counter TY DOS nn nn na aaa anda nat ada dd Dania A All tenure Sa 3 6 3 2 1 Simple Rei EE 3 7 3 2 2 A a aa N a a a e S E 3 10 3 2 3 Linear Coume EE 3 12 Input ziel WK 3 14 3 3 1 A a E 3 14 3 3 2 UO SoD OWI E HUE 3 15 3 3 3 AAA EE 3 16 Digital Input PUNCTIONS id 3 17 ELE 3 21 3 5 1 RATO MOS EE 3 23 3 5 2 Comparison Mode taste ardido datada cid kien 3 29 3 5 3 Manual Ouiput Control ici 3 36 3 5 4 Output Control Configuration cccoocococccnnoncnnnononononononenennnnnnnnnnnnnonnnononnnnnnnnnnnnnnnnononnnnnnnnninanes 3 37 Aen CT ann a AAA AAA DANA A a AA aa a A Aa 3 38 De e Tu 3 40 3 7 1 Programmable Output ET 3 40 3 7 2 TEE 3 42 3 7 3 Nose FING TING EE 3 43 3 7 4 JET eeler E a A AAA Aa 3 44 Exchanging Data with CPU OVGEVICW eege deed Eeer 4 2 4 1 1 A A a A 4 2 4 1 2 UREA on DANA a 4 4 4 1 3 Access from User ee TE EE 4 5 Memory AIIOGATION EE 4 7 4 2 1 MEMO WADING E 4 7 4 2 2 Allocating Ranges and Comparison Data 4 7 4 2 3 Details of Device Variables for CJ series Unit for input output ermmm 4 11 4 2 4 Details of Device Variables for CJ series Unit for Setting ccccccoocccccncnnnnccononnncnnnnonnnnanons 4 16 4 2 5 Memory Allocation for Hanges ccccccsscceccseescececeesececeseseeeeseeeeceeessseeeessaaeeeeseuaeeessasageeeessanees 4 23 4 2 6 Memory Allocation for Comparison data coooooooconoccccncnnncnncnnononononnnnnnnnnnnnnnnnonononnn
177. rcular Counter and 3 2 3 Lin ear Counter The Simple Counter is an extra feature of the High speed Counter Unit that enables an easy and fast set up of the Unit since no Special Unit settings are needed all default settings are used Conse quently for Simple Counters only a reduced subset of all the features that the Unit offers are available For further details about the Simple Counter and the features supported see 3 2 1 Simple Counter Precautions for Safe Use Always turn OFF the controller power before setting any DIP switches 2 4 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 2 Components Installation and Wiring 2 1 4 Machine Number Switch X10 O Use the unit number switches to set the unit number specific for each Special I O Unit mounted in a CPU Rack or Expansion Rack The unit number must be the one registered in Unit Configurations N I k O O 3 y O 5 O 5 T o 5 a Ww O GU O 5 0 Turn OFF the Controller before changing the Unit number setting One High speed Counter Unit occupies areas for four special I O Units in a CPU Unit Precautions for Safe Use Always turn OFF the controller power before setting the Unit number LA Precautions for Correct Use e When setting a rotary switch use a flat blade screwdriver and be careful not to damage the switch e Be sure not to leave the rotary switch midway between numbers YOUMS JOQUINN O
178. rding to the mode set by the user i e Range or Comparison Mode When the output status control is set to 1 the output ON OFF status is held In other words the out put ON OFF status retains the status from just before the CPU Unit Operating Mode was changed the I O bus check error occurred or the overflow underflow error occurred e f the Output status control is set to 2 the predefined output pattern is applied to the output exter nal output internal output when the CPU Unit operating mode is changed when an I O bus check error occurs or when an overflow underflow error occurs The output pattern is decided by the following device variable for CJ series Unit for setting Name of device variable Type Function for CJ series Unit YP PreOutPatCfg UDINT Predefined Output Bit 00 corresponds to Digital Output OO Bit Pattern 01 corresponds to Digital Output O1 Bits 02 to 31 correspond to internal outputs 2 to 31 Each bit is 1 for ON or O0 for OFF UOITeEINBYUOD o1uoo INdINC y S CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 37 3 Operation and Configuration 3 6 Reset Counter For every Counter a reset of the Counter Value to zero can be triggered by the following Sources e Software Reset Bit e Digital Input Function 05 or 06 e Z signal In order for a Digital Input or the Z Signal to trigger a reset the Reset Enable Bit must be set to 1 Addi tionally a Digital Inpu
179. rds 2000 n x 10 to D20000 n x 100 to 2000 n x 10 39 D20000 n x ee 399 92 2920 to 2959 words D29200 to D29599 words 95 Cannot be set OO J O OI AI OIN O iN O h EN Additional Information e If two or more Special I O Units are set to an identical Unit number or if one Special I O Unit is set to areas of plural Unit numbers the CPU Unit has a major fault level error a duplicated Unit number error and stops operation e After correcting the Unit number setting cycle the power to the Controller e One High speed Counter Unit occupies allocation areas of four Unit numbers Be sure that no Unit numbers are duplicated To avoid duplication when you set a High speed Counter Unit to the Unit number n next Special I O Unit to the Unit number n 4 set the CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Appendices H Special I O Units Area Allocated CIO Area words e Allocated CIO Area words for outputs CJ series I O NJ series device variables for CJ series Unit memory address General n foo joe Manual Output Control Output S 15 AutoMan Automatic Manual n 1 OO RdNxtErr Read Next Error 01 to 15 Undefined SS Counter 1 n 2 OO Ch1_Enbl Open Gate 01 Ch1_Dsbl Close Gate 01 02 Ch1 Prst Preset D Q OD OD gt O D O h as Y D D Wu ha O 3 O a LD D D Vu Ch2_PrstRingCtV
180. re you disconnect a slave e If you disconnect the cable from an EtherCAT slave to disconnect it from the network any current communications frames may be lost If frames are lost slave I O data is not communicated and the intended operation is sometimes not achieved Perform the following processing for a slave that needs to be replaced Program the _EC_ nDatalnvalid Input Data Disable system defined variable as an interlock con dition Set the Impermissible Number of Continuous Timeouts setting in the EtherCAT master to at least 2 Refer to the NJ series CPU Unit Built in EtherCAT Port User s Manual Cat No W505 for details motion Control e Confirm the axis number carefully before you perform an MC Test Run e The motor is stopped if communications are interrupted between the Sysmac Studio and the CPU Unit during an MC Test Run Connect the communications cable between the computer and CPU Unit securely and confirm that the system will not be adversely affected before you perform an MC Test Run e Always execute the Save Cam Table instruction if you change any of the cam data from the user pro gram in the CPU Unit or from the Sysmac Studio If the cam data is not saved the previous condition will be restored when the power is turned ON again possibly causing unexpected machine opera tion e The positive drive prohibit input POT negative drive prohibit input NOT and home proximity input DEC of the Servo Drive are used by
181. rmance CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Symbols CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 SS ci Safety Precautions The circle and slash symbol indicates operations that you must not do The specific operation is shown in the circle and explained in text This example indicates prohibiting disassembly The triangle symbol indicates precautions including warnings The specific operation is shown in the triangle and explained in text This example indicates a precaution for electric shock The triangle symbol indicates precautions including warnings The specific operation is shown in the triangle and explained in text This example indicates a general precaution The filled circle symbol indicates operations that you must do The specific operation is shown in the circle and explained in text This example shows a general precaution for something that you must do 17 Safety Precautions 18 WARNING During Power Supply Do not touch any of the terminals or terminal blocks while the power is being supplied Doing so may result in electric shock Do not attempt to take any Unit apart In particular high voltage parts are present in the Power Supply Unit while power is supplied or immediately after power is turned OFF Touching any of these parts may result in electric shock There are sharp parts inside the Unit that m
182. rnal outputs 2 O0 O1 Types of Inputs e Phase difference pulse input 1 2 4x Same as on the left e Addition subtraction pulse input e Pulse direction input Control of Counters Open gate Counter start Counter value capture cannot be used using allocation area Close gate Counter stop CIO Counter presets Counter resets Counter value capture External Control Input Gate function The capture Stop capture continue Stop cap Function Reset function ture reset continue and Capture reset func Preset function tions cannot be used Capture function Stop capture continue functions Stop capture reset continue functions Capture reset functions Reset enable function Reset disable function Output Control Mode Automatic ON OFF output according to the Pulse rate range control cannot be used following two modes Bandwidth Comparison Mode Target Value Match Comparison Mode Pulse rate range control Manual output control A 2 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Appendices Item Function in CJ series Function in NJ series Output State Control Can select the method to control the output Same as on the left states when the CPU operation mode is changed or when an error occurs e Continue updating output states automati Cally e Hold the output states e Bring the pre defined output state External Output External output drivers can be selected from Same as on the l
183. rns OFF The PWR indicator is lit during this time Confirm that the PWR indicator is not lit before you perform any of the above i Operation e Confirm that no adverse effect will occur in the system before you attempt any of the following e Changing the operating mode of the CPU Unit including changing the setting of the Operating Mode at Startup e Changing the user program or settings e Changing set values or present values e Forced refreshing e Always sufficiently check the safety at the connected devices before you change the settings of an EtherCAT slave or Special Unit e f two different function modules are used together such as when you use CJ series Basic Output Units and EtherCAT slave outputs take suitable measures in the user program and external controls to ensure that safety is maintained in the controlled system if one of the function modules stops The relevant outputs will stop if a partial fault level error occurs in one of the function modules e Always confirm safety at the connected equipment before you reset Controller errors with an event level of partial fault or higher for the EtherCAT Master Function Module When the error is reset all slaves that were in any state other than Operational state due to a Con troller error with an event level of partial fault or higher in which outputs are disabled will go to Oper ational state and the outputs will be enabled Before you reset all errors confirm that no Con
184. rough verifications and provide sufficient measures to ensure that the devices perform safe operation for the initial values of the variables with Retain attributes and the resulting operation i Debugging e Forced refreshing ignores the results of user program execution and refreshes I O with the specified values If forced refreshing is used for inputs for which I O refreshing is not supported the inputs will first take the specified values but they will then be overwritten by the user program This operation differs from the force set reset functionality of the CJ series PLCs CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 23 Precautions for Safe Use e You cannot upload or download information for forced refreshing with the Sysmac Studio After downloading data that contains forced refreshing change to RUN mode and then use the Sys mac Studio to perform the operation for forced refreshing Depending on the difference in the forced status the control system may operate unexpectedly e Do not specify the same address for the AT specification for more than one variable Doing so would allow the same entity to be accessed with different variable names which would make the user program more difficult to understand and possibly cause programming mistakes d General Communications e When you use data link communications check the error information that is given in ErrSta Control ler Error Status to make
185. rvation m 20 m 21 00to 15 PreOutPatCfg Predefined Output Pattern m 22 m 23to 00 to 15 Undefined m 29 Counter 1 m 30 00 to 15 _Ch1i_CtTypCfg Counter Type A 8 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Appendices E NJ series device variables for CJ series Unit memory address Word Variable name Description m 31 00 to 03 04 to 15 m 32 00 to 03 04 to 07 Bits 00 to 03 Reset by Z phase Ch1_SigTypCfg Signal Type Chi_ZOvfUdfCfg Z reset Mode Overflow Underflow error code Bits 04 to 07 Overflow underflow error setting generation 08 to 15 m 33 00 to 15 _Ch1_UpCtLmtCfg Upper Count Limit Circular Lin son Values BCD 08 to 15 DR 001003 041015 001003 08 to 15 m 36 m 38 surement m 40 00to 15 Undefined Pulse Rate Range 0 m 42 00to 15 Undefined Pulse Rate Range 0 m 44 00to 15 Undefined Pulse Rate Range 0 m 46 00to 15 Undefined Pulse Rate Range 0 m 48 00to 15 Undefined Pulse Rate Range 1 m 50 00to 15 Undefined Pulse Rate Range 1 m 52 00to 15 Undefined Pulse Rate Range 1 m 54 00to 15 Undefined Pulse Rate Range 1 m 56 o Undefined Pulse Rate Range 0 Enabled Pulse Rate Range 1 Enabled m 58 Data m 60 m 62 m 64 Ch1_NumRngCmpCfg Number of Ranges Compari m 65 Chi_MemAreaCfg Memory Area m 67 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 A 9 D Q OD OD gt O
186. s CPU Unit Software User s Manual Cat No W501 Section Section 1 Introduction Section 2 CPU Unit Operation Section 3 UO Ports Slave Configuration and Unit Configuration Section 4 Controller Setup Section 5 Designing Tasks Section 6 Programming Section 7 Checking Operation and Actual Operation Section 8 CPU Unit Functions Section 9 Communications Setup Section 10 Example of Actual Application Pro cedures Section 11 Troubleshooting Appendices CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Description This section provides an introduction to the NJ series Controllers and their features and gives the NJ series Controller specifications This section provides information that is necessary to use the CPU Unit including how the CPU Unit works and the operations that it performs depending on the status of the CPU Unit This section describes how to use I O ports how to create the slave configuration and unit configuration and how to assign functions This section describes the initial settings of the function modules This section describes the task system and types of tasks This section describes programming including the programming languages and the variables and instructions that are used in programming This section describes the items and procedures for checking the operation of an NJ series Controller including offline debugging procedures
187. s Operation Manual for NJ series CPU Unit W492 Precautions for Safe Use e f the Fail soft Operation parameter is set to stop operation process data communications will stop for all slaves when an EtherCAT communications error is detected in a slave For this reason if Servo Drives are connected the Servos for all axes will be turned OFF Make sure that the Fail soft Operation parameter setting results in safe operation when a device error occurs e EtherCAT communications are not always established immediately after the power supply is turned ON Use the system defined variables in the user program to confirm that communications are estab lished before attempting control operations e If frames sent to EtherCAT slaves are lost due to noise or other causes slave I O data is not commu nicated and the intended operation is sometimes not achieved If noise countermeasures are required use the _ EC _ nDatalnvalid Input Data Disable system defined variable as an interlock condition in the user program Refer to the NJ series CPU Unit Built in EtherCAT Port User s Manual Cat No W505 for details The slave outputs behave according to the slave settings Refer to the manuals for the slaves for details e When an EtherCAT slave is disconnected communications will stop and control of the outputs will be lost not only for the disconnected slave but for all slaves connected after it Confirm that the system will not be adversely affected befo
188. s overlapped duplicated the Unit treats the overlap as a warning and _lABlkOverlapSta IA Blocks overlap becomes 1 But this is not an error In other words by defining one range data or comparison data and setting the same indirect address in two locations k1 k2 that data can be shared by 2 Counters 4 2 2 Allocating Ranges and Comparison Data Ranges Comparison data used in Range Mode or Comparison Mode is allocated in the following two steps 1 Use Sysmac Studio to secure the area for the ranges comparison data in a DM EM Area refer to Indirect Address Specification 2 Store the ranges comparison data in this area Use user defined variables to allocate the range comparison data refer to Allocation to User defined Variable CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 7 4 Exchanging Data with CPU Indirect Address Specification The High speed Counter Unit can be used in Range Mode or Comparison Mode refer to 3 5 1 Range Mode and 3 5 2 Comparison Mode for more information The range or comparison data is allocated in DM or EM bank 0 An indirect address that you can set for every Counter with a device variable for CJ series Unit for setting points to the actual memory location in DM or EM where the range or compari son data of that Counter is stored e For a Unit in Range Mode In Range Mode indirect addresses can be used to define range for each Counter to be used The
189. s with high frequencies are counted and high speed responses have to be triggered at predefined Counter Values Application areas include e Packaging and Sorting plants e Dosing or proportioning plants e Process Industry Typical applications in which the CJU1W CT021 can be used e CAM Positioning e Position Monitoring e Flow Control refer to 6 1 Flow Control Section 6 Application Examples describes typical application examples in which the High speed Counter can be used including sample programs CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Components Installation and Wiring This section provides details of the components switch settings and other information required to install and operate CU1W CT021 High speed Counter Units 2 1 2 2 Components and Switch Settings 2 2 2 1 1 COmDONENIS EE 2 2 Sie NIC AOS ER A BME E dd the den Dek PER AE 2 3 2 1 3 Counter Type Switch 2 4 2 1 4 Machine Number Switch 2 5 JEC en WEE 2 6 2 2 1 System Configuration Precautions 2 6 222 2 ur le re E e UE 2 6 Wang Saas ee ee ee seg ees KAN eg as eae AAA a eet rer cae ee tea 2 8 2 3 1 Connector Pin layout 2 8 2 3 2 Connector Wiring Methods 2 9 2 3 3 Important Wiring Considerations 2 13 204 MEESCH e iaa Shoe 2 13 2 3 5 Digital I O Circuit Configurations 2 15 2 3 6 Counter Input Configurations a a
190. series Unit Data type RW Name y O Set value Ch NumRngCmpCfg WORD R W Number of Ranges Compari 16 0012 son Values BCD Ch _MemAdrCfg DWORD Memory Address BCD 1600001850 DM Data Range 0 eae alg 0 Data Range 1 Es Se D1862 S S EE Se Lower Range Limit gt D1851 D1868 Data Range 3 D1852 Upper Range Limit 12x6 words D1853 72words A 91854 Output Pattern D1855 D E N D 3 O lt gt o O e D1850 D1856 D1916 Data Range 11 For an overview of all addresses related to range data refer to 4 2 5 Memory Allocation for Ranges D e e we eeg uosiedwoy pue sebuey Bungo 2 2 p e Example Comparison Mode With the Unit in Comparison Mode if 5 comparison data 0 to 4 are set in Counter 1 and allocated to the area starting with EM00520 Sysmac Studio is used to set as follows Device variables R W Ch _NumRngCmpCfg WORD Number of Ranges Compari 16 0005 son Values BCD Ch _MemAdrCfg DWORD Memory Address BCD 16 00000520 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 9 4 Exchanging Data with CPU EM a EM520 Sa R Comparison data 0 A E EM530 i Comparison data 1 T ENGA Comparison Value EM521 EM540 5x 10 words Comparison data 2 EM522 Set Pattern 50 words l EM523 EM550 i EM525 EM560 EM527 gt EMS28 Reset Pattern E EMB29 S Comparison data Allocation
191. sumed Cause deeg 5 9 Automatic Manual EE 3 36 4 11 C Cable nn ANA Ee 2 11 Circular Coue hea AA 3 10 Clearing DM configuration error aaa 5 6 Close A a AN 3 9 3 18 4 11 Comparison AR 3 29 Gomparison ET 3 33 Configuring input noise filter counters 3 43 Configuring noise filter digital inputs ee 3 43 Connector pin layQUt serseri Banana nan an An enta 2 8 giele EE 5 8 Counter input configuration esa 2 17 Counter overflow 3 8 3 13 4 14 4 15 Counter Running Gate open a 4 14 4 15 COP ANN An AM nn Ee 3 6 GOUNTER type e WEE 2 4 Counter underflow aaa 3 8 3 13 4 14 4 15 Gounter Value tan ann Senda ESA inte 4 14 4 15 Counting direction chceaeecmaees 3 20 4 14 4 15 CPU Expansion racks screen in configuration MAS as 1 19 PON lt ClOSSING asteroide 3 30 mV ene cece ete is ete ee 3 30 D Description of the response time cooooconcnnccccccncccccnnns A 16 Device name duos NEE 1 19 4 5 Device variable for CJ series Unit 4 3 A AA a 2 15 Digital input O Function Counter number 3 17 4 18 Digital input O status aaa 3 9 3 20 4 13 Digital input 1 Function Counter number occcccccccco 3 17 Digital input 1 status 3 9 3 20 4 13 Digital input function errr aaa naaa 3 17 Digital output O status
192. sure that no error has occurred in the source device Write the user program to use the received data only if there is no error If there is an error in the source device the data for the data link may contain incorrect values e Unexpected operation may result if inappropriate data link tables are set Even if appropriate data link tables have been set confirm that the controlled system will not be adversely affected before you transfer the data link tables The data links start automatically after the data link tables are trans ferred e All CPU Bus Units are restarted when routing tables are transferred from Support Software to the CPU Unit Confirm that the system will not be adversely affected by restarting before you transfer the routing tables e Tag data links will stop between related nodes while tag data link parameters are transferred during Controller operation Confirm that the system will not be adversely affected before you transfer the tag data link parameters i EtherNet IP Communications e All related EtherNet IP nodes are reset when you transfer settings for the built in EtherNet IP port including IP addresses and tag data links settings Confirm that the system will not be adversely affected by resetting nodes before you transfer the settings e If EtherNet IP tag data links cyclic communications are used with a repeating hub the communica tions load on the network will increase This will increase collisions and may
193. t can be assigned the function of Reset Enable Function 15 refer to 3 4 Digital Input Functions Reset sources Software Reset Bit Digital Input Z Signal Reset Enable sources Reset Enable Bit Reset Trigger Digital Input Optional gt Function 15 Software Reset Bit as Reset Source You can reset each Counter by using the device variable for CJ series Unit for output below These variables take priority over all other reset causes Name of device variable Type Function for CJ series Unit Ma Ch1 Rst BOOL Reset O to 1 Counter reset Ch2_Rst e Digital Input as Reset Source To use Digital Inputs as causes for resetting it is necessary to allocate function 05 or 06 reset func tion to that Digital Input For details refer to 3 4 Digital Input Functions e Z Input Signal as Reset Source To use the Z phase signal of an incremental encoder as a reset cause first it is necessary to enable the Z phase signal resets with bits 03 to 00 of the following device variables for CJ series Unit for setting Resets by Z phase signals can be set separately for each Counter Name of device variable Type Function for CJ series Unit Ma Chi_ZOvfUdfCfg WORD Z reset Mode Over Bits 03 to 00 Z phase reset Ch2_ZOvfUdfCfg flow Underflow error 16 0 No function OO code generation 16 1 Reset Bits 07 to 04 Overflow underflow error set ting 16 0 Do not generate error codes 16 1
194. t pattern CmpRing c2D 5 _sCJCT021_Ex_ Comparison data 5 Comparison value output set reset pattern CmpRing c2D 6 _sCJCT021_Ex_ Comparison data 6 Comparison value output set reset pattern CmpRing P N D 3 O lt gt o O DI e sl ejep uOoeugcuoc 10 uoneoojy JOWSIN 9 Z p c2D 7 _sCJCT021_Ex_ Comparison data 7 Comparison value output set reset pattern CmpRing c2D 8 _sCJCT021_Ex_ Comparison data 8 Comparison value output set reset pattern CmpRing c2D 9 _sCJCT021_Ex_ Comparison data 9 Comparison value output set reset pattern CmpRing c2D 10 _sCJCT021_Ex_ Comparison data 10 Comparison value output set reset pattern CmpRing c2D 11 _sCJCT021_Ex_ Comparison data 11 Comparison value output set reset pattern CmpRing c2D 12 _sCJCTO21_Ex_ Comparison data 12 Comparison value output set reset pattern CmpRing c2D 13 _sCJCTO21_Ex_ Comparison data 13 Comparison value output set reset pattern CmpRing c2D 14 _sCJCT021_Ex_ Comparison data 14 Comparison value output set reset pattern CmpRing c2D 15 _sCJCT021_Ex_ Comparison data 15 Comparison value output set reset pattern CmpRing CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 29 4 Exchanging Data with CPU Variable name Data type Wem O Function c2D 16 _sCJCT021_Ex_ Comparison data 16 Comparison value output
195. teresis Function that can be configured for every Counter sepa rately You can assign Hysteresis in a range from 1 to 255 counts 00014 OOFFy from which the Counter treats the fluctuation in the Counter Input Signal as a real change and outputs can be con trolled accordingly Lower Upper Range Limit Range Limit lt Down Counting Up Counting Y gt Range Active po Range Inactive ES Hysteresis Hysteresis e Configuring Hysteresis Name of device variable DA Function for CJ series Unit yp Ch1 HystrsCfg UINT Hysteresis Sets the hysteresis Ch2 HystrsCfg For 0 the hysteresis function is disabled Data range 0 to 255 Unit Pulse EN Additional Information e The Hysteresis can only be applied to Units in Range Mode If the Unit is in Comparison Mode you are able to configure Hysteresis yourself using Comparison Values e Do not set the origin i e an actual value of 0 within the Hysteresis area e f the Counter is Preset turn OFF the Hysteresis If the Counter is Preset in the Hysteresis area the Outputs will not be controlled correctly CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration 3 7 3 Noise Filtering e Configuring Input Noise Filter Counters For the purpose of suppressing noise on the signal lines A and B of every Counter a Noise Filter is available A Noise Filter can be configured for
196. tion DEE Tyee RW Name Function of device variable Tvpe R W Function for CJ series Unit in Tee RW Name an General OutCtIMdCfg WORD R W Output Control Bits 00 to 07 Output Control Mode Mode AND OR Selects the Output Control Mode a SES 16 00 Range Mode factory value 16 01 Comparison Mode Bits 08 to 15 Counter output pattern AND OR selection For Range Mode selects whether the Counter out put pattern is logically OR or AND 16 00 OR factory value 16 01 AND OutStaCtIMdCfg WORD Output Driver Bits 00 to 01 External output driver NPN PNP NPN PNP Output selection State Control Bit 00 For output 0 0 NPN factory value 1 PNP Bit 01 For output 1 0 NPN factory value 1 PNP Bits 02 to11 Use with O factory value Bits 12 to 15 Output status control This sets the 32 point output status control method for when the CPU Unit operating mode is changed from RUN mode to PROGRAM mode when an I O bus check error occurred or an overflow underflow error occurred 16 00 Output ON OFF automatic refreshing is continued according to the mode set by the user Range Mode or Comparison Mode factory value 16 01 Holds the output ON OFF 16 02 The pre defined _PreOutPatCfg Pre defined Output Pattern is applied to external out put 4 16 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 Exchanging Data with CPU Name of device variable NoiseFltCntCfg UINT
197. to 1 Count stop The system enters the count start state at the rising edge of the Open Gate regardless of the Close Gate state If both variables rise at the same time the gate state of the time is held is not changed EN Additional Information Initially at power up or restart of the Unit for all Counter types i e Simple Circular and Linear Counters the Gate is closed and counting is disabled In order to enable counting you must open the Gate first Preset Function A Digital Input configured to have Preset functionality will preset 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 overwritten with the Preset Value Function 03 Function 04 Preset Rising Edge Preset Falling Edge Load Counter with Load Counter with Preset Value Preset Value CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration This Unit has device variables for CJ series Unit for output to store preset values for Counters To change a preset value set a preset value in this variable Name of device variable Type Function for CJ series Unit yp Ch Prst BOOL Preset O to 1 Counter preset Ch2 Prst Ch1_PrstLinCtVal DINT Preset Value Used for a Simple Counter or Linear Ch2_PrstLinCtVal Counter Set it in the range 2 147 483 648
198. to use no Ranges the output patterns for both outputs will be all OFF a ch M O O 3 D e Se D O D z O o D 3 5 2 Comparison Mode If the Unit is configured to control the Outputs in Comparison Mode this Mode can be applied to Circu lar Counters or Linear Counters refer to 3 2 2 Circular Counter and 3 2 3 Linear Counter for more information CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 29 3 Operation and Configuration 3 30 e Example Comparison Mode with Linear Counter Lower Count Limit 2 147 483 648 CN Output 0 Output 1 Soft Output 2 Upper Count Limit 2 147 483 647 Counter Value Cu CV3 CV4 CV5 Cup CV7 Soft Output 3 Set in positive direction b Reset in positive direction d Set in negative direction 4 Reset in negative direction A EE en eeng TT vosso ECH a vosso II se stem ois II overossng EE ES E overossng S 1 AS ois A 108 000 CV crossing o o overossing R R R 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 CV is crossed in the positive count ing direction CV crossing or negative counting direction CV crossing one or multiple Outputs can be Set S or Reset R For example
199. too low surge current may fuse the contacts CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 27 Precautions for Correct Use H Error Processing e In applications that use the results of instructions that read the error status consider the affect on the system when errors are detected and program error processing accordingly For example even the detection of a minor error such as Battery replacement during operation can affect the system depending on how the user program is written e If you change the event level of a Controller error the output status when the error occurs may also change Confirm safety before you change an event level ji Restoring and Automatically Transferring Data e When you edit the restore command file or the automatic transfer command file do not change any thing in the file except for the yes and no specifications for the selectable data groups If you change anything else in the file the Controller may perform unexpected operation when you restore or automatically transfer the data Unit Replacement e If you replace a CPU Bus Unit or Special I O Unit refer to operation manual for the Unit for informa tion on the data required for individual Units and redo the necessary settings e The absolute encoder home offset is backed up with a Battery in the CPU Unit When you change the combination of the CPU Unit and Servomotor e g when you add or replace a
200. tput When it is OFF 0 no change is made for the output Ch1_OutRstPatCtg DWORD Output Reset Pattern They decide the reset patterns for outputs O Ch2 OutRstPatCfg to 31 Bits 0 to 31 correspond to the outputs fen O to 31 When a bit is ON 1 the pattern is reset for the corresponding output When it is OFF 1 no change is made for the out put EN Additional Information In case for a Preset or Reset action for a specific Output both a Set and a Reset is defined the Reset has priority 3 5 3 Manual Output Control 3 36 e Manual or Automatic Control The Digital Outputs of the High speed Counter Unit can be controlled automatically or manually Automatic control of the Digital Outputs results in the automatic update of the Unit Output Pattern The Unit Output Pattern will then be updated according to the Mode for which the Unit is configured Range Mode or Comparison Mode By default 0 the Unit is configured for Automatic Output Control To control the Outputs 0 1 manually Manual Output Control must be selected by setting Auto matic Manual Bit to 1 Now it is possible to force ON and OFF the Digital Outputs by setting or reset ting the corresponding device variable for CJ series Units respectively Manual Output Control can be used for test purposes wiring check when the Unit is being installed Name of device variable Tne Function for CJ series Unit YP AutoMan BOOL Automatic Manual 0 Automatic ON OFF outp
201. tput patterns 3 28 Lower count limit linear 3 13 4 19 4 21 Lowerrange Imit send A ida ct 3 26 M Machine number switch ccccccoooccccoccccconnncnnnnconancnnnnnos 2 5 Manual Output control reen ena 3 36 Manual output control Output 0 3 36 4 11 Manual output control Output 1 3 36 4 11 Memory address BCD cccceceeeeeeeeeeeeeeeeaes 4 9 4 20 Memory allocation 4 7 Memory allocation for comparison data 4 27 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Memory allocation for range aaa 4 23 Memory area WE 4 9 4 20 N Noise filtering cari ia 3 43 Number of Ranges Comparison values BCD 4 9 4 20 O Open gale ido a 3 9 3 18 4 11 Output control mode 3 21 Output control mode AND OR counter OUIDUL PANEN S siae e a ani 3 21 4 16 Output driver NPN PNP Output state control 3 37 4 16 Output pulse duration cccccccccococcnnnccnnnnnnnncnnnnnnononos 3 41 Output pulse duration BCD digital output 0 3 41 4 17 Output pulse duration BCD digital output 1 3 41 4 17 Output pulse ON Delay 3 40 Output pulse turn ON Delay time BCD alle Rei Dt e IR O micis ee 3 41 4 17 Output pulse turn ON Delay time BCD dig a 1 0 6 WEE 3 41 4 17 Output SPECIFICATION 1 12 UID
202. troller errors with an event level of partial fault have occurred for the EtherCAT Master Function Module e Always confirm safety at the connected equipment before you reset Controller errors for a CJ series Special Unit When a Controller error is reset the Unit where the Controller error with an event level of observation or higher will be restarted Before you reset all errors confirm that no Controller errors with an event level of observation or higher have occurred for the CJ series Special Unit Observation level events do not appear on the Controller Error Tab Page so it is possible that you may restart the CJ series Special Unit without intending to do so You can check the status of the _CJB_UnitErrSta 0 0 to _CJB_UnitErrSta 3 9 error status variables on a Watch Tab Page to see if an observation level Controller error has occurred H Battery Backup e The user program and initial values for the variables are stored in non volatile memory in the CPU Unit The present values of variables with the Retain attribute and the values of the Holding DM and EM Areas in the memory used for CJ series Units are backed up by a Battery If the Battery is not connected or the Battery is exhausted the CPU Unit detects a Battery backup Memory Check Error If that error is detected variables with a Retain attribute are set to their initial values and the Holding DM and EM Areas in memory used for CJ series Units are cleared to all zeros Perform tho
203. tter to enter the openings in the Unit Doing so may result in Unit burning electric shock or failure e Do not allow wire clippings shavings or other foreign material to enter any Unit Otherwise Unit burning failure or malfunction may occur Cover the Units or take other suitable countermeasures especially during wiring work e For EtherCAT and EtherNet IP use the connection methods and cables that are specified in the NJ series CPU Unit Built in EtherCAT Port User s Manual Cat No W505 and the NJ series CPU Unit Built in EtherNet IP Port User s Manual Cat No W506 Otherwise communications may be faulty e Use the rated power supply voltage for the Power Supply Units Take appropriate measures to ensure that the specified power with the rated voltage and frequency is supplied in places where the power supply is unstable e Make sure that the current capacity of the wire is sufficient Otherwise excessive heat may be gener ated When cross wiring terminals the total current for all the terminals will flow in the wire When wiring cross overs make sure that the current capacity of each of the wires is not exceeded e Do not touch the terminals on the Power Supply Unit immediately after turning OFF the power sup ply Residual voltage may cause electrical shock e If you use reed switches for the input contacts for AC Input Units use switches with a current capac ity of 1 A or greater If the capacity of the reed switches is
204. ucts NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO ADDRESS THE RISKS AND THAT THE OMRON PRODUCTS ARE PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM PROGRAMMABLE PRODUCTS OMRON shall not be responsible for the user s programming of a programmable product or any consequence thereof 14 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Read and Understand this Manual Disclaimers CHANGE IN SPECIFICATIONS Product specifications and accessories may be changed at any time based on improvements and other reasons Itis our practice to change model numbers when published ratings or features are changed or when significant construction changes are made However some specifications of the products may be changed without any notice When in doubt special model numbers may be assigned to fix or establish key specifications for your application on your request Please consult with your OMRON representative at any time to confirm actual specifications of purchased products DIMENSIONS AND WEIGHTS Dimensions and weights are nominal and are not to be used for manufacturing purposes even when tolerances are shown PERFORMANCE DATA Performance data given in this manual is provided as a guide for the user in determining suitability and does not constitute a warr
205. ue is equal to or larger than the comparison value The comparison value active inactive established status is reflected in the following device variable for CJ series Unit for input for each Counter Name of device variable Tbe Function for CJ series Unit Ma Ch1_RngCmpDatSta DWORD Ranges Comparison The current status of the comparison condi Ch2 RngcmpDatSta Values active tions is shown Z Bits 00 to 31 correspond to comparison con 2 ditions O to 31 E Each bit shows 1 when the conditions are O met and 0 when they are not 2 Ch1_RngCmpsSta0 to BOOL Ranges 0 to 31 Com The numbers after Sta correspond to com 2 Ch1 RngCmpsta31 parison Values 0 to 31 parison conditions 0 to 31 Ch2_RngCmpSta0 to active 0 Range conditions not met _Ch2_RngCmpsta31 1 Range conditions met EN Additional Information The Ranges Comparison Active bit indicates whether the current Counter Value is larger than the CV or not Therefore if a Counter Value is preset larger than a CV the bit changes to ON without crossing the CV If the Counter Value crosses the CV in the reverse CCW direction the bit does not change to ON a ch M O O 3 D e Se D O D z O o e Enable Disable Comparison Values Every single comparison condition can be enabled or disabled If comparison conditions are dis abled by default no action will be taken even if the Counter Value reaches the CV If comparison conditions are enabled dependi
206. ulse of a specified duration e Combination of Output Turn ON Delay Output Pulse Duration The corresponding action is triggered by a rising edge of the Output 0 1 of the Unit Output Pattern and consequently applied to the corresponding Digital Output 31 Unit Output Pattern S Rising edge Output 0 1 Be HN D Corresponding Digital Output 0 1 ON Delay ON Delay ON Delay i Output Pulse Duration Bi ee ee Y Y Y Pulse Duration Pulse Duration Pulse Duration Reset ON Delay Output Pulse ON Delay and Duration ece Iy Ee gt ON Delay Pulse Duration ON Delay Pulse Duration ON Delay time e Normal Functionality A Digital Output that is configured to have Normal Functionality will turn ON immediately after the corresponding bit of the Unit Output Pattern turns ON e Output Pulse ON Delay A Digital Output that is configured to have an Output Pulse ON Delay will turn ON after the ON Delay has elapsed 3 40 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration e Output Pulse Duration A Digital Output that is configured to have an Output Pulse Duration turns ON immediately and will stay ON for the specified Pulse Duration After the Pulse Duration has elapsed the Digital Output turns OFF Additional Information The output status is reflected in _OutstaDat output external output internal output sta tuses When
207. unter e Data range 2 147 483 648 to 2 147 483 647 e Unit Pulses Ch1_InitRingCtCtg UDINT Initial Counter Value e Sets the initial Counter Value after unit Ch2_InitRingCtCfg setting data transferred e Used for Circular Counter e Data range 0 to 4 294 967 295 e Unit Pulses 3 44 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Exchanging Data with CPU This section provides information on exchanging data between CJ1W CT021 High Speed Counter Units and CJ series CPU Units Aah OVCIVICW Sr RE A RA E See eae ba aaa es 4 2 4 1 1 ata OW eaten Mare ee Sh ds 4 2 4 1 2 E 4 4 4 1 3 Access from User Program 4 5 4 2 Memory AlOCAUON iii econ dew ioe onesie a Rea ee beet 4 7 4 2 1 Memory Mapping WEE 4 7 4 2 2 Allocating Ranges and Comparison Data 4 7 4 2 3 Details of Device Variables for CJ series Unit for input output 4 11 4 2 4 Details of Device Variables for CJ series Unit for setting 4 16 4 2 5 Memory Allocation for RANngeS ees 4 23 4 2 6 Memory Allocation for Comparison data 4 27 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 4 1 4 Exchanging Data with CPU 4 1 Overview 4 1 1 Data Flow The CPU Unit and the high speed Counters exchange data via the I O port created for the High speed Counter Unit The table and figure belo
208. us data is exchanged from the user program using the following variables Data type Access method Refresh timing For settings Device variable for CJ series When the Controller is reset or Units the unit restarts For Outputs UO refresh For Inputs Range User defined variable When the Controller is reset or Comparison data the unit restarts Allocating Device Variables for CJ series Units Use device variables for CJ series Units with AT specification for the I O port which is explained below A I O lt O lt O e 1 0 port An I O port is a logical interface for data exchange by a CPU Unit with a High speed Counter Unit or other Configuration Unit An I O port has a unique pre defined name for each unit model and function An I O port is automatically created by preparing the Unit Configuration with Sysmac Studio e How to specify device variables for CJ series Units Specify the AT specifications to I O ports for device variables for CJ series Units on the I O Map of Sysmac Studio Specify the variable name for the AT specification with the following methods WesBOJ4 1SN LON SSDIDY L p 1 Select a variable already registered in the variable table 2 Input a new variable name 3 Automatically create a variable name with Device variable creation When a name of device variable for CJ series Unit is assigned with the method in 2 or 3 the variable input by Sysmac Studio is automatically registered in
209. ut 1 Manual output control OutCtlo BOOL Manual Output Con 0 OFF trol Output 0 1 ON OutCtlt BOOL Manual Output Con 0 OFF trol Output 1 1 ON CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration 3 5 4 Output Control Configuration O NPN or PNP Output Driver NPN output or PNP output can be set for each Digital Output 0 1 to match the user application NPN output or PNP output is selected by setting in bit O and bit 1 of the following device variable for CJ series Unit for setting The default is that NPN output is selected Name of device variable Toe Function for CJ series Unit yp y O r 5 O O 5 eb o OutStaCtIMdCfg WORD Output Driver Bits 01 to 00 Digital Output driver NPN PNP Output NPN PNP selection State Control Bit 00 For output 0 0 NPN default 1 PNP Bit 01 For output 1 0 NPN default 1 PNP Bits 02 to 11 Use with O default Bits 12 to 15 Output status control See below e Output State Control You can select and control 32 bit output statuses when the CPU Unit operating mode is changed from RUN to PROGRAM mode when an I O bus check error occurs or when an overflow underflow error occurs By default the Output status control Bits 12 to 15 of the above device variables for CJ series Unit for setting is set to 0 The Unit continues refreshing output ON OFF statuses automatically acco
210. variables for CJ series Unit for input output and you can open or close the gate to allow counting pulses or not e With Simple Counters only phase differential signals multiplication x 1 can be connected You cannot use the Z signal to trigger a reset only its status is reported in device variables for CJ series Unit for input Accordingly you can trigger a reset indirectly via the user program e The noise filter for Digital Inputs is fixed to 50 kHz This means that the maximum frequency of the input pulses up to 50 kHz is guaranteed e For High speed Counter Unit Digital Output only manual output control is possible by using the corresponding device variables for CJ series Unit for output e The two Digital Outputs use an NPN output driver e You cannot assign the Digital Inputs to individual Counters and you cannot configure the function of the Digital Inputs Only the status of the Digital Inputs is reported in device variables for CJ series Unit for input For the method of allocating Digital Inputs to circular or Linear Counters refer to 3 4 Digital Input Functions e Errors are normally reported in device variables for CJ series Unit for input CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 7 3 Operation and Configuration Additional Information e The CPU exchanges data with the Simple Counter via the device variables for CJ series Unit for input output e If a Counter is
211. w show the data exchange method for each data type Data exchange type AT specification How to access Timing of data Unit data type Data contents eg destination from user program exchange For Inputs Count start and I O port for Inputs Device variable for At I O refreshing 1 For Outputs stop count value Outputs CJ series Unit status of each Counter etc For Settings 2 External output con I O port for Set When the Controller trol external input tings is reset or the Unit function setting set restarts tings for each Counter etc Range data 2 Range data Memory used for User defined Vari Comparison data 2 Comparison data CJ series Unit able Unit Restart Bit etc Unit Restart Bit etc System defined vari At I O refreshing able 1 While UnitinitSta Unit Busy is 1 I O is not refreshed For example Counter Values are not refreshed dur ing this time 2 The setting data range data and comparison data are retained in the CPU Unit by the battery even during power interruptions 4 2 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 NJ series CPU Unit User program Inputs Device variables for CJ series Unit Outputs Device variables for CJ series Unit For settings Device variables for CJ series Unit Range data Comparison data User defined variables I O port I O port Memory used for CJ series Unit Range Mode Range 1 to 31 C
212. w to create programs with the Sysmac Studio This section describes how to go online with a Controller This section describes how to debug the programs online on the Controller or debug it offline with the Simulator This section describes other functions that are supported by the Sysmac Studio including security functions and troubleshooting functions This section describes how to reuse the programs that you create with the Sysmac Studio This section describes the Support Software that is provided with the Sysmac Studio This section describes the error messages that are displayed when you check a pro gram on the Sysmac Studio and how to correct those errors The appendices describe the following Driver Installation for Direct USB Cable Connection Specifying One of Multiple Ethernet Interface Cards Online Help Simulation Instructions CJ series High speed Counter Units Operation Manual for NJ series CPU Unit Cat No W492 This Manual Section Section 1 Introduction Section 2 Components Installation and Wir ing Section 3 Operation and Configuration Section 4 Exchanging Data with CPU Section 5 Error Processing Maintenance and Inspection Section 6 Application Examples Appendices Description This section describes the functionality and the specifications of the High speed Counter Unit and the operating procedure This section describes the details of the components and where and how to i
213. xternal interrupt tasks in a CJ1M CPU Unit the Counter Unit must be in one of the three positions immediately to the right of the CJ1M CPU Unit on the CPU Rack No external interrupt tasks can be activated in CJ1 H or CJ1M CPU Units if the CJU1W CT021 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 5 4 1 6 Introduction The maximum number of CJ1W CT021 High speed Counter Units that can be mounted on all CPU Racks and Expansion Racks is 24 Furthermore the number of Units that can be mounted in one NJ series CPU Rack or NJ series Expansion Rack is decided by the maximum current that the Power Supply Unit can supply and the amount of current consumed by other Units o I O Connection Methods To connect the Input and Output signal wires to the Unit two methods are available 1 Directly connecting the wires by soldering them to the external connector or 2 Indirectly connecting the wires by connecting them to screw terminals on a Terminal Block Unit Use an Omron Flat Cable XW2Z xxxB to connect an Omron Terminal Block Unit XW2B 40G4 or XW2B 40G5 to the Counter Unit Refer to 2 3 2 Connector Wiring Methods tor more details CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 1 Introduction 1 3 Specifications and Characteristics 1 3 1 Item Unit type General Specifications Ambient Operating Temperature Ambient Storage Temperature Ambient operati
214. y or Output Pulse Duration in progress will be reset immediately and the Digital Output is turned OFF or stays OFF e If an Output is switched ON manually refer to 3 5 3 Manual Output Control and Programma ble Output Pulse functionality has been assigned to that Output then this functionality will not be applied to the Output Instead the Output is switched ON immediately e When applying an Output Pulse to a turn OFF a Digital Output the output will appear to be OFF but internally it will be treated as ON until it is reset when the range conditions are met or target is matched If an attempt is made to set the output the system will assume that it is already ON and it will remain OFF Particularly with target values configure reset conditions for output carefully CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 41 e LN m gt r e Tl c 5 O e 5 D sesind Indino ajgqewuelBolg L Z 3 Operation and Configuration 3 7 2 Hysteresis 3 42 An encoder can come to rest at a particular position and then oscillate around this position This state means that the Counter Value fluctuates around a particular value If for example a Range Limit is in this area of fluctuation the corresponding Range would become active and inactive in the rhythm of these fluctuations To prevent outputs from being switched ON and OFF by very small fluctuations the High speed Counter Unit offers the Hys
215. yP AutoMan BOOL Automatic Manual 0 Automatic ON OFF output 1 Manual output control OutCtlo BOOL Manual Output Con 0 OFF trol Output 0 1 ON OutCtlt BOOL Manual Output Con 0 OFF trol Output 1 1 ON Automatic ON OFF output can only be used with Circular Counters and Linear Counters in Range Mode or Com parison Mode for details refer to 3 5 Output Control o Digital Outputs Status of Simple Counter The status of the two Digital Outputs is reflected in the devices variables for CJ series Unit for input Name of device variable me Name Function for CJ series Unit OutSta0d BOOL Digital Output 0 Status 0 OFF 1 ON 3 2 2 Circular Counter EN Additional Information A Circular Counter can uses all functions listed in 1 3 2 Functional Specifications e Configuring Circular Counters Circular Counters are set with the following device variables for CJ series Unit for setting Name of device variable THe Function for CJ series Unit Ma Chi CtlypCfg UINT Counter Type 0 Circular Counter Ch2_CtTypCfg 1 Linear Counter CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 3 Operation and Configuration A Circular Counter has 32 bits the full counting range available to count up or down over the pos itive counting range between 0 and the Upper Count Limit 1 Upper Count Limit lt 4 294 967 295 0 Rollover Count Up Count Down CN N CH O EC e O a
Download Pdf Manuals
Related Search
Related Contents
Tripp Lite U338-000 User's Manual まもるっち故障届 SkylineGlobe Web Package v6.1 Release Notes Leica E-Serie - Manuale d`uso 陸 上 自 衛 隊 仕 様 書 4.3 O Projeto de Cluster Table Of Contents Experiment 1: Multimeter Measurements on DC Resistive Circuits Tecumseh AVA9532ZXNXF Drawing Data manuale d`uso e manutenzione use and maintenance Copyright © All rights reserved.
Failed to retrieve file