Download Print this page

Panasonic FP7 User Manual

High-speed counter unit.
Hide thumbs
Also See for FP7
User manual - 275 pages
User manual - 109 pages
User manual - 52 pages

Advertisement

Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com

Advertisement

   Also See for Panasonic FP7

   Related Manuals for Panasonic FP7

   Summary of Contents for Panasonic FP7

  • Page 1

    Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 2

    -This manual and its contents are copyrighted. -You may not copy this manual, in whole or part, without written consent of Panasonic Industrial Devices SUNX Co., Ltd. -Windows is a registered trademark of Microsoft Corporation in the United States and other countries.

  • Page 3

    Types of Manual • There are different types of users manual for the FP7 series, as listed below. Please refer to a relevant manual for the unit and purpose of your use. • The manuals can be downloaded on our website.

  • Page 4: Table Of Contents

    Table of Contents 1. Unit Functions and Restrictions ........1-1 Unit Functions and How They Work ............1-2 1.1.1 Functions of Unit ..................1-2 1.1.2 Unit Type and Product Number ............... 1-3 Restrictions on Combinations of Units ........... 1-4 1.2.1 Restrictions on Power Consumption ............

  • Page 5

    3.4.3 For Transistor Open Collector Type of Encoder Input ......3-9 3.4.4 For Sensor Input ..................3-9 4. Unit Allocation and Parameter Settings ......4-1 Unit Allocation ..................4-2 4.1.1 Confirmation of I/O Allocation Information ..........4-2 4.1.2 Number of Occupied Points of High-speed Counter Unit ....... 4-3 4.1.3 Registration in I/O Map ................

  • Page 6

    5.2.7 Enable Preset Count Operation ............5-12 Allocation of Reset, Preset and Enable Signals ........5-13 5.3.1 Reset Input .................... 5-13 5.3.2 Preset Input ................... 5-14 5.3.3 Enable Input ..................5-16 Reading Count Value and Changing Current Value ......5-17 5.4.1 Areas Related to Count Value ...............

  • Page 7

    7.3.2 Examples of Ring Counter Settings ............7-12 7.3.3 Configuration of Band Comparison ............7-14 External Output ..................7-16 7.4.1 Overview of External Output Function ..........7-16 7.4.2 Output Pattern Setting (Only for Band Comparison)......7-18 7.4.3 Forced Output Function ................ 7-19 8.

  • Page 8

    9. Interrupt Program Activation Function ......9-1 Interrupt Program Activation Function ............ 9-2 9.1.1 Overview of Interrupt Program ..............9-2 9.1.2 Settings of High-speed Counter Unit ............9-2 9.1.3 Overview of Interrupt Program ..............9-2 9.1.4 Precautions for Use ................. 9-4 10.

  • Page 9: Unit Functions And Restrictions

    Unit Functions and Restrictions Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 10: Unit Functions And How They Work

    1.1 Unit Functions and How They Work 1.1.1 Functions of Unit  Two or four-point 4 MHz/signed 32-bit high-speed counters are provided. • High-speed counting of input signals is available up to the maximum frequency 4 MHz (16MHz for 2-phase 4 multiple). It is selectable from 2-phase input (phase differential input), individual input or direction detection input in accordance with input devices such as an encoder and sensor.

  • Page 11: Unit Type And Product Number

    2 μs, 5μs, 10 μs, 20 μs, 50 μs, 100 μs, 500 μs, 1 ms, 2 ms, 5 ms, 10 ms 1.1.2 Unit Type and Product Number Name Product No. 2-ch type AFP7HSC2T FP7 High-speed counter unit 4-ch type AFP7HSC4T Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 12: Restrictions On Combinations Of Units

    Product No. Current consumption 2-ch type AFP7HSC2T 65 mA or less FP7 High-speed counter unit 4-ch type AFP7HSC4T 65 mA or less 1.2.2 Applicable Versions of FPWIN GR7 and Units For using the high-speed counter unit, the following versions of FPWIN GR7 and units are required.

  • Page 13: Names And Functions Of Parts

    Names and Functions of Parts Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 14: Names And Functions Of Parts

    2.1 Names and Functions of Parts HSC4T HSC2T CH0/2 CT0 CT1OT0OT1 Z CT0 CT1OT0OT1 CH1/3 ○ Operation monitor LEDs Displays the on/off status of two channels. Use the display changeover switch to toggle between the channel number CH0/CH1 and CH2/CH3. The LEDs show the same information for each channel.

  • Page 15

    ③DIN hook This hook is used to install the unit on a DIN rail. ④ Unit connector Connects the internal circuits between units. ⑤ Mode setting switch • Change the switch to use the interrupt function. • At the factory setting, it is set to off (no interrupt function). Mode setting switch Description ON: Interrupt function is enabled.

  • Page 16

    Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 17: Wiring And Input/output Specifications

    Wiring and Input/Output Specifications Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 18: Connection Over Wire-pressed Terminal Cable

    Composition of parts 2-ch type 4-ch type Housing (40P) 1 x 1 set 1 x 2 sets Panasonic made Semi-cover (40P) 2 x 1 set 2 x 2 sets 5-pin contact (for AWG 22 and AWG24) 8 x 1 set 8 x 2 sets (Note) 1 connector set and 2 connector set are supplied with the 2-ch type unit and 4-ch type unit, respectively.

  • Page 19: Assembly Of Connector For Wire-pressed Terminal Cable

    3.1.2 Assembly of Connector for Wire-pressed Terminal Cable The wire end can be directly crimped without removing the wire’s insulation, which saves wiring effort. (Procedure) 1. Bend the contact back from the carrier, and set it in the pressure connection tool. 2.

  • Page 20

    KEY POINTS • Contact puller pin to redo wiring If there is a wiring mistake or the wire is incorrectly pressure-connected, use the contact puller pin provided with the fitting to remove the contact. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 21: Terminal Circuit Diagram

    3.2 Terminal Circuit Diagram 3.2.1 I/O Terminal Layout Diagram 4-ch type 2-ch type • Two connectors are used to connect the 4-ch type and one connector to connect the 2-ch type. • The signal pins for two channels are assigned to one connector. There is no difference in pin arrangement between the CH0/CH1 connector and the CH2/CH3 connector if the unit is of the 4-ch type.

  • Page 22

    Input terminal Pin No. Circuit Signal name ch0/2 ch1/3 A1/A11 Input A: 24 VDC (12 to 24 VDC) A2/A12 Input A: 5 VDC (3.5 to 5 VDC) Input A: COM B1/B11 B2/B12 Input A: COM A3/A13 Input B: 24 VDC (12 to 24 VDC) A4/A14 Input B: 5 VDC (3.5 to 5 VDC) Input B: COM...

  • Page 23: Input/output Specifications

    3.3 Input/Output Specifications 3.3.1 Input Specifications Description Input A, B, Z signals Item 5VDC Control signal 24VDC Open collector Line driver connection connection Insulation method Optical coupler Optical coupler 12 V DC to Rated input voltage 5VDC 12VDC to 24VDC 24 V DC Equivalent to AM26LS31...

  • Page 24: Precautions On Wiring And Connection Of Count Input

    3.4 Precautions on Wiring and Connection of Count Input 3.4.1 Precautions on Wiring • For the connection between the count input (phases A, B, Z) and encoder, etc., use shielded twisted-pair cables. • The length of connected wires should be within 10 m. 3.4.2 For Line Driver of Encoder Input High-speed counter unit Encoder, Pulser side...

  • Page 25: For Transistor Open Collector Type Of Encoder Input

    3.4.3 For Transistor Open Collector Type of Encoder Input High-speed counter unit Encoder, Pulser side (A1/A11) Input A:24V DC (A2/A12) Input A:5V DC Phase A signal (B1/B11) Input A:COM (B2/B12) Input A:COM (A3/A13) Input B:24V DC (A4/A14) Input B:5V DC Phase B signal (B3/B13) Input B:COM...

  • Page 26

    Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 27: Unit Allocation And Parameter Settings

    Unit Allocation and Parameter Settings Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 28: Unit Allocation

    4.1 Unit Allocation 4.1.1 Confirmation of I/O Allocation Information Input and output relays are allocated.  Input relays I/O number Name Description Operation ready done Flag to indicate the counter operation is ready. Counter enable Flag to indicate the counter operation is enabled. Flag to indicate a count direction.

  • Page 29: Number Of Occupied Points Of High-speed Counter Unit

    4.1.2 Number of Occupied Points of High-speed Counter Unit • The following I/O numbers are used for the high-speed counter unit. • As the input and output starts from the same I/O numbers in FP7 series, the following number of words is occupied.

  • Page 30: Registration In I/o Map

    4.1.3 Registration in I/O Map Before setting parameters, register the unit to be used in the I/O map. PROCEDURE 1. Select "Options" > "FP7 Configuration" in the menu bar. The FP7 Configuration dialog box is displayed. 2. Select "I/O map" in the left pane.

  • Page 31: Configuration Of High-speed Counter Unit

    The following procedure describes the process when the high-speed counter unit has been already allocated in the I/O map. PROCEDURE 1. Select "Options" > "FP7 Configuration" in the menu bar. 2. Select "I/O map" in the field. 3. Select the slot where the high-speed counter unit has been registered, and select the "Advanced"...

  • Page 32: Configuration Data Setting Items

    4.2.2 Configuration Data Setting Items  Count function (Settable for each channel) item Description Default Counter type Linear counter/Ring counter Linear counter Enable/Disable Disable/Enable Disable overflow/underflow Counter upper limit -2,147,483,647 to 2,147,483,647 2,147,483,647 Counter lower limit -2,147,483,648 to 2,147,483,646 -2,147,483,648 Count direction Normal direction/Reverse direction Normal direction...

  • Page 33

    Input A signal/Input B signal No input time constant, 0.1 us ( 2 MHz), 0.2 us (1 MHz), 0.5 input time constant us (500 kHz), 1.0 us (250 kHz), 2.0 us (100 kHz), 10.0 us 2.0 us (100 kHz) Input Z signal input time (10 kHz) constant Control signal input time...

  • Page 34

     External output function (Settable for each channel) item Description Default Signal setting Not output/Output Not output Set the condition of the output when a CPU or high-speed Output hold counter error occurs. Not hold setting External Not hold/Hold output 0 ON timing Setting range: 0 to 1,000 ms 0 ms...

  • Page 35: Configuration Data And Operation Ready Request

    4.3 Configuration Data and Operation Ready Request 4.3.1 Operation Ready Request Program • For enabling the settings of the high-speed counter unit, the operation ready request program should be executed. • After downloading a project, insert the program to make it be executed early in the process. ...

  • Page 36: Downloading Configuration Data

    4.3.2 Downloading Configuration Data • The configuration information of the high-speed counter unit is downloaded to the CPU together with user programs. • The above programs are executed in the RUN mode, and each function of the high-speed counter unit will be enabled once the operation ready done flag turns on. 4.3.3 Operation When Operation Ready Request Program is Executed •...

  • Page 37: Configuration Using User Programs

    4.4 Configuration Using User Programs Configuration information can be rewritten using user programs.  Overview of function • The values of configuration information are stored in unit memories (UM) in which arbitrary parameters are set. The values will be updated by turning on the operation ready request flag (Y0) when you want to reflect them in the configuration.

  • Page 38

    KEY POINTS • The configuration using user programs can be changed even when the counter is running. However, the changed values will not be effective until the operation ready done flag (X0) is turned on. • The operation ready request can be executed for each channel regardless whether it has been executed in other channels or not.

  • Page 39: Count Function

    Count Function Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 40: Selection Of Counters And Basic Settings

    5.1 Selection of Counters and Basic Settings 5.1.1 Basic Settings of Counters The basic settings are set in the configuration menu of FPWIN GR7 or unit memories (UM).  Count function configuration Item Description Default Counter type Linear counter/Ring counter Linear counter Enable/Disable Disable/Enable...

  • Page 41: Linear Counter And Ring Counter

    5.1.3 Linear Counter and Ring Counter The operation changes depending on the types of counter as below.  Operational difference between the counter types Comparison Linear counter Ring counter item Upper limit Lower limit Lower limit Upper limit Operation Count value Roll image Count up...

  • Page 42: Selection Of Count Methods

    5.1.4 Selection of Count Methods • Select from the following three types according to input devices to be connected. • The count operation varies depending on the settings of multiplication factor as shown in the next page.  Count method Method Connection Count...

  • Page 43

     Count operation of 2-phase input (Phase difference input) Multipli- Time chart cation Addition Subtraction factor Input A 1 multiple Input B Input A 2 multiple Input B Input A 4 multiple Input B 9 10 11 11 10  Count operation of individual input Multipli- Time chart cation...

  • Page 44: Types Of Count Operations

    5.2 Types of Count Operations 5.2.1 Types and Features of Count Operations  Types of count operations and input signals External input signal used Operation Control Control Feature phase Type input signal signal signal Simple count Performs the count operation regardless of external control operation input signals.

  • Page 45: Simple Count Operation

    5.2.2 Simple Count Operation • Simply counts count input signals. • To enable the count input, it is necessary to turn on the count enable request signal (Y1) in user programs.  Linear counter The overflow and underflow annunciation can be set for the cases when the count value exceeds the upper limit or the lower limit.

  • Page 46

    Addition Counter input Subtraction Upper limit Count value Lower limit Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 47: Reset Count Operation

    5.2.3 Reset Count Operation • Resets the count value to zero by the input Z signal. • To enable the count input, it is necessary to turn on the count enable request signal (Y1) in user programs. Addition Counter input Subtraction Input Z signal (Reset process)

  • Page 48: Enable Count Operation

    5.2.5 Enable Count Operation • The enable function is allocated to the control signal for using the enable count operation. • Performs the count operation while the control signal is effective. Addition Counter input Subtraction Control signal (Enable process) Count value Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 49: Enable Reset Count Operation

    5.2.6 Enable Reset Count Operation • The enable reset count operation is the operation that the enable and reset functions are allocated to the control signal. • Resets the count value to zero when the counter becomes enabled by the change in the control signal.

  • Page 50: Enable Preset Count Operation

    5.2.7 Enable Preset Count Operation • The enable preset count operation is that the enable and preset functions are allocated to the control signal. • Resets the count value to a specified preset value when the counter becomes enabled by the change in the control signal.

  • Page 51: Allocation Of Reset, Preset And Enable Signals

    5.3 Allocation of Reset, Preset and Enable Signals 5.3.1 Reset Input The following four reset methods are available. Reset elements Output Y relay Input Z signal Comparison match reset Reset Control 0 signal Effective condition Output Y relay (Reset enable request) ...

  • Page 52: Preset Input

    KEY POINTS • For using the Z-phase signal, control signal or comparison match flag as reset signals, turn on the reset enable request signal using user programs. 5.3.2 Preset Input The following three preset methods are available.  Type of reset signals Preset condition Preset Setting method...

  • Page 53

    KEY POINTS • Preset values are set in unit memories (UM) using the configuration menu or user programs. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 54: Enable Input

    5.3.3 Enable Input The following enable input methods are available.  Type of enable signals Enable condition Enable operation Setting method element Output Y  Activates the enable request signal by a user program. relay Allocates the control 0 signal to any of these operations using the configuration menu.

  • Page 55: Reading Count Value And Changing Current Value

    5.4 Reading Count Value and Changing Current Value 5.4.1 Areas Related to Count Value  Monitor area related to count values Unit memory No. Name Default Setting range and description Unit (Hex) UM 003A0 UM 003A1 Current count value of counter UM 003B0 UM 003B1 Count value...

  • Page 56: Reading Count Value

    5.4.2 Reading Count Value • The count value (current value) can be read from the monitor area. Example) Program to change the current value of CH0 of the high-speed counter unit MV.SL S1:UM003A0 DT100 ( ) 5.4.3 Count Value When Power Turns On •...

  • Page 57: Input Time Constant Setting Function

    5.5 Input Time Constant Setting Function 5.5.1 Input Time Constant • Time constants can be set as noise filters for input signals (phases A, B and Z) and control signals. • When selecting "No input time constant", input signals are processed without the time constant filter.

  • Page 58

    Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 59: Measurement Function

    Measurement Function Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 60: Overview Of Measurement Function

    6.1 Overview of Measurement Function 6.1.1 Types of Measurement Function  Measurement function • The measurement function is to measure the changes in the count values of the high-speed counter and to output them as frequencies or number of rotations. •...

  • Page 61: Configuration

    6.1.2 Configuration For using the measurement function, set the following items using the configuration menu of tool software FPWIN GR7 or user programs.  Setting area Unit memory Name Default Setting range and description Unit (Hex) H0: Not use measurement function UM 00070 H1: Frequency measurement UM 00140...

  • Page 62: Reading Measuring Results

    6.1.3 Reading Measuring Results Measuring results are stored in the following area.  Read area Unit memory Name Default Setting range and description Unit (Hex) UM 003A8 UM 003A9 UM 003B8 Frequency Frequency measurement value after averaging procedure UM 003B9 measurement value Range: 0 to 20,000,000 UM 003C8...

  • Page 63: Comparison Function

    Comparison Function Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 64: Overview Of Comparison Function

    7.1 Overview of Comparison Function 7.1.1 Types of Comparison Function  Comparison function • Compares the current value of the high-speed counter with a specified target value, and reflects the matched value in the comparison match flag. • There are two methods, which are the target value match comparison and the band comparison.

  • Page 65: Target Value Match Comparison And Band Comparison

    KEY POINTS • Only the comparison match 0 flag or comparison match 1 flag can be set as the external output of the high-speed counter unit. • The default for the external output 0 and 1 settings is "Not output". Change the settings in the configuration menu as necessary.

  • Page 66: Operation Of Target Value Match Function

    7.2 Operation of Target Value Match Function 7.2.1 Examples of Linear counter Settings  Example of comparison match flag operation when counting up. Operates according to the settings of addition set pattern and addition reset pattern when the current value matches the comparison data. Lower limit Upper limit Count-up count value...

  • Page 67

     Examples of output pattern settings Comparison Target Comparison Comparison Comparison Comparison Output pattern data value match 0 flag match 1 flag match 2 flag match 3 flag Addition set pattern Addition reset pattern -8,000 Subtraction set pattern Subtraction reset pattern ○...

  • Page 68: Examples Of Ring Counter Settings

    7.2.2 Examples of Ring Counter Settings  Comparison match flag operation when counting up Operates according to the settings of addition set pattern and addition reset pattern when the current value matches the comparison data. Lower limit Lower limit (Upper limit + 1) Comparison Comparison Comparison...

  • Page 69

     Examples of output pattern settings Comparison Target Comparison Comparison Comparison Comparison Output pattern data value match 0 flag match 1 flag match 2 flag match 3 flag Addition set pattern ○ Addition reset pattern ○ +500 Subtraction set pattern Subtraction reset pattern ○...

  • Page 70: Configuration Of Target Value Match Comparison

    7.2.3 Configuration of Target Value Match Comparison  Overview of setting items • For each comparison data, specify whether to set or reset each flag when the current value matches the target value. • Multiple comparison match flags can be set for one comparison data. •...

  • Page 71

    Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 72

     Pattern of storage in unit memories (UM) • Set data is stored in 8-word blocks of corresponding unit memories in the following format. • When using user programs, set data in corresponding unit memory numbers. Example 1) For the comparison data 0 of CH0, it is allocated to UM00080 to UM00087. Example 2) For the comparison data 1 of CH0, it is allocated to UM00088 to UM0008F.

  • Page 73: Operation Of Band Comparison Function

    7.3 Operation of Band Comparison Function 7.3.1 Examples of Linear counter Settings  Operation of band comparison match flag Lower limit Upper limit Count value Comparison data 0 Comparison data 1 Comparison data 2 Comparison data 3 Comparison data 4 Comparison match 0 flag Comparison...

  • Page 74: Examples Of Ring Counter Settings

    7.3.2 Examples of Ring Counter Settings  Operation of band comparison match flag Comparison data 4 10,000 8,750 1,250 Comparison data 0 Roll over 7,500 2,500 Count value Comparison data 3 Comparison data 1 6,250 3,750 5,000 Comparison data 2 Lower limit Lower limit (Upper limit + 1)

  • Page 75

    KEY POINTS • For the ring counter, comparison data is set for the area including the upper and lower limits in which the count value is rolled over, and set patterns can be set. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 76: Configuration Of Band Comparison

    7.3.3 Configuration of Band Comparison  Overview of setting items • When the current value exists between the lower and upper limits of each comparison data, the ON or OFF state of each flag is set for each comparison data. •...

  • Page 77

     Pattern of storage in unit memories (UM) • Set data is stored in 8-word blocks of corresponding unit memories in the following format. • When using user programs, set data in corresponding unit memory numbers. Example 1) For the comparison data 0 of CH0, it is allocated to UM00080 to UM00087. Example 2) For the comparison data 1 of CH0, it is allocated to UM00088 to UM0008F.

  • Page 78: External Output

    7.4 External Output 7.4.1 Overview of External Output Function  External output function • The result of comparison is reflected in 16 flags (comparison match 0 flag to comparison match F flag), and the two of them (comparison match 0 flag and comparison match 1 flag) can be retrieved as external outputs by being allocated to the external output terminals of the unit.

  • Page 79

     Setting items and corresponding unit memory numbers Unit memory Name Default Setting range and description Unit (Hex) UM 00100 Set whether or not to output the comparison UM 001D0 match 0 flag to the external output 0 signal. External output 0 signal ―...

  • Page 80: Output Pattern Setting (only For Band Comparison)

    7.4.2 Output Pattern Setting (Only for Band Comparison) When using the band comparison function, the ON timing delay time or ON hold time can be set for output signals.  Operational difference between settings ON hold timing Timing chart of comparison match flag and external output time delay Comparison...

  • Page 81: Forced Output Function

    7.4.3 Forced Output Function • The outputs of external output 0 terminal and external output 1 terminal can be controlled on the ladder monitor or device monitor of tool software FPWIN GR7. They can be also turned on or off by user programs. •...

  • Page 82

    Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 83: Capture Function

    Capture Function Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 84: Overview Of Functions

    8.1 Overview of Functions 8.1.1 Types of Capture Function  Capture function • Stores the count value at the time an external input signal changes into the unit memory (capture register) of the high-speed counter unit. Capture enable request (Turned On in user program) Capture trigger (External input...

  • Page 85: Restrictions On Combinations

    8.1.2 Restrictions on Combinations Available conditions vary by functions.  Comparison of functions Item Capture function Sampling capture function Max. 2 points Max. 1 point Usable number of points The capture function cannot be used when using the sampling capture function. Individually usable;...

  • Page 86: Configuration

    8.1.3 Configuration • For using the capture function or sampling capture function, set the following items using the configuration menu of tool software or user programs. • Set the signal allocated to the trigger signal for executing capturing and the number of operations.

  • Page 87

     Setting area Unit memory Name Default Setting range and description Unit (Hex)  Clears values stored in the capture registers and capture register buffers.  To clear the capture 0 register, turn off, on and off the bit 0 of the unit memory.

  • Page 88: Operations Of Capture Function

    8.2 Operations of Capture Function 8.2.1 One operation • Capturing is executed when the first capture trigger condition (control signal) is met while the capture function is enabled by the capture enable request signal (Y7). • The operation changes as follows according to the settings (leading and trailing edges) of the valid control signal.

  • Page 89

     When "Leading edge" and "Trailing edge" of the same signal are set as the capture trigger condition Capture enable (Y7) Capture trigger (Control signal) 0 1 2 3 4 5 6 7 8 9 10 12 14 16 18 20 22 24 26 28 30 32 Count value UM003A0-UM003A1...

  • Page 90: Continuous Operation

    8.2.2 Continuous Operation • Capturing is executed every time the capture trigger condition (control signal) is met while the capture function is enabled by the capture enable request signal (Y7). • The operation changes as follows according to the settings (leading and trailing edges) of the valid control signal.

  • Page 91

     When "Leading edge" and "Trailing edge" of the same signal are set as the capture trigger condition Capture enable (Y7) Capture trigger (Control signal) 0 1 2 3 4 5 6 7 8 9 10 12 14 16 18 20 22 24 26 28 30 32 Count value UM003A0-UM003A1...

  • Page 92: Operations Of Sampling Capture Function

    8.3 Operations of Sampling Capture Function 8.3.1 One operation • The count values and the difference values are stored in the capture registers (unit memories UM) after a specified sampling time from the time that the control signal is turned on or off.

  • Page 93: Continuous Operation

    8.3.2 Continuous Operation • The count values and the difference values are stored in the capture registers (unit memories UM) continuously at intervals of a specified sampling time after the control signal is turned on or off. • The sampling capture function is always enabled when the control signal is allocated to the sampling capture function in the configuration.

  • Page 94: Operations Of Buffer Function

    8.4 Operations of Buffer Function 8.4.1 Overview of Buffer Function  Function of buffer areas • In the buffer areas, 60-point (120-word) areas are each provided for the capture 0, capture 1 and difference values each. • Latest captured data is stored in the capture 0 register or capture 1 register. •...

  • Page 95

     Types of buffer areas Name Default Setting range and description Unit Monitors the number of completed capture operations while Number of completed capturing is enabled. It is reset to zero when the capture capture operations request turns on. Every time the data in the capture register are updated, the data in the capture register are shifted and stored in Capture register buffer sequence.

  • Page 96: Reading Capture Data

    8.5 Reading Capture Data 8.5.1 Reading Capture Register Data  Area in which capture data is stored • Latest captured data is stored in the capture 0 register or capture 1 register of unit memory(UM). • The values ((Capture 1 register) - (Capture 0 register)) are stored in the capture register difference value area.

  • Page 97: Reading Buffer Area Data

    8.5.2 Reading Buffer Area Data To read data in the buffer area, check the number of completed capture operations (UM00400), and specify the range of the operation memory according to the number.  Sample program Example) Program to read the capture value and buffer value of CH0 of the high-speed counter unit installed in the slot number 1 Read Capture MV.SL...

  • Page 98: Operation And Readout Of Capture Done Flag (x4/x5)

    8.5.3 Operation and Readout of Capture Done Flag (X4/X5)  Basic operation • On the completion of capturing, the capture done flag is reflected in the operation memory of the CPU (X4/X5) at the time of I/O refresh. • In case of the capture function, the capture done flag is reset by executing the capture enable request signal (Y7).

  • Page 99

     Processing when capture trigger inputs are used frequently I/O refresh I/O refresh Scan time Operation (Note 1) unit Capture enable (Y7) Capture trigger (Control signal) 1 2 3 4 5 6 7 8 9 10 12 14 16 18 20 22 24 26 28 30 Count value High- speed...

  • Page 100: Reference Information (manual Reset Of Capture Done Flag)

    For using this operation device, check the box of "Exclude this unit from the scope of I/O refresh" in the I/O map of the FP7 configuration dialog box not to perform the normal I/O refresh process executed in a scan time.

  • Page 101

     Processing when resetting the capture done flag manually Normal I/O refresh I/O refresh by direct output Scan time Operation (Note 1) unit Capture enable (Direct output OT7) Capture trigger (Control signal) 1 2 3 4 5 6 7 8 9 10 12 14 16 18 20 22 24 26 28 30 Count value High- speed...

  • Page 102: Clearing Capture Values Storage Area

    8.6 Clearing Capture Values Storage Area 8.6.1 Capture Value Clear Request  Clearing capture data • Capture data can be reset by turning off, on, and off the corresponding bit in the capture value clear request area. • The capture 0 register and capture 1 register can be reset individually. •...

  • Page 103: Interrupt Program Activation Function

    Interrupt Program Activation Function Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 104: Interrupt Program Activation Function

    9.1 Interrupt Program Activation Function 9.1.1 Overview of Interrupt Program • The high-speed counter unit can activate interrupt programs of CPU using comparison match flags. • If the activation condition is met, the interrupt program of a corresponding program number will be activated.

  • Page 105

     Programming method (Main program) The interrupt for the CPU and the interrupt activation of the high-speed counter unit are allowed in the main program. If the interrupt becomes disabled, clear the interrupt activation request signal that is not processed in the unit as necessary. (...

  • Page 106: Precautions For Use

    9.1.4 Precautions for Use  Process when more than one interrupt activation request is made • If more than one interrupt activation request is made from the unit, the process will be carried out from the smallest slot number or the smallest interrupt program number. •...

  • Page 107: What To Do If An Error Occurs

    What to Do If an Error Occurs Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 108: Self-diagnostic Function

    10.1 Self-diagnostic Function 10.1.1 Errors Announced by High-speed Counter Unit  Operation monitor LEDs of high-speed counter • When an error occurs in the high-speed counter unit, the ERR LED of the unit lights. • The contents of errors can be confirmed from the error flags and error codes allocated to each channel.

  • Page 109: Clearing Errors Using User Programs

    10.1.3 Clearing Errors Using User Programs • Each error can be cleared by user programs. • Refer to error codes, correct error factors, and clears the errors.  Clearing all channels by UCLR instruction • Executing the dedicated instruction UCLR (error) clears errors occurred in the high-speed counter unit.

  • Page 110: List Of Error Codes

    10.2 List of Error Codes 10.2.1 Errors in Operation Ready Request (0100H to 0633H) • These are errors occurred when the operation ready is requested. If these errors occur, the unit will not be ready for operations and the functions set in the unit will not be activated. •...

  • Page 111

     List of error codes (0160H ~ 0313H) Error Channel Corresponding unit Error name code memory No. 0160H UM 00059 0161H UM 00129 Input Z signal function setting error 0162H UM 001F9 0163H UM 002C9 0170H UM 0005A 0171H UM 0012A Control 0 signal function setting error 0172H UM 001FA...

  • Page 112

     List of error codes (0320H ~ 0533H) Error Channel Corresponding unit Error name code memory No. 0320H UM 00073 0321H UM 00143 Average number of frequency measurement processes setting error 0322H UM 00213 0323H UM 002E3 0330H UM 00074 0331H UM 00144 Average number of rotation speed measurement processes...

  • Page 113

     List of error codes (0540H ~ 0633H) Error Channel Corresponding unit Error name code memory No. 0540H UM 00104 0541H UM 001D4 External output 1 signal setting error 0542H UM 002A4 0543H UM 00374 0550H UM 00105 0551H UM 001D5 External output 1 signal output hold setting error 0552H UM 002A5...

  • Page 114: Errors Occurred In Operations (1000h To 1043h)

    10.2.2 Errors Occurred in Operations (1000H to 1043H) • These are errors occurred in operations. • Take steps according to the contents in the table below.  List of error codes Error Channel Error name Content Operation Countermeasures code 1000H Performs the reset or The count value Announces the...

  • Page 115: Specifications

    Specifications Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 116

    Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 117: General Specifications

    11.1 Specifications 11.1.1 General Specifications Items Description Operating ambient temperature 0°C to +55°C Storage ambient temperature -40°C to +70°C Operating ambient humidity 10% to 95%RH (at 25°C with no-condensing) Storage ambient humidity 10% to 95%RH (at 25°C with no-condensing) Between I/O terminals and CPU power supply terminal/function earth Breakdown voltage Bewteen input terminal and output terminals 500 VAC for 1 min.

  • Page 118: Function Specifications

    11.1.2 Function Specifications Items Description Product No. AFP7HSC2T AFP7HSC4T No. of counters 2-ch type 4-ch type Counter type Linear counter, Ring counter Counting range Signed 32-bit (-2,147,483,648 to +2,147,483,647) 4MHz/8MHz for individual input (phases A and B) (Duty ratio 50±10%) Max.

  • Page 119

    Items Description No. of comparison Max. 16 data/ch (Comparison data 0 to Comparison data 15) data Max. 16 points/ch (Comparison match 0 flag to Comparison match F flag) Comparison match Read as input relays (X) by user programs. flag Multiple comparison match flags can be set for one comparison data. Target value match Depending on the count direction, sets or resets the output when the count value function...

  • Page 120: Allocation Of I/o Numbers

    11.2 Allocation of I/O Numbers  Input relays I/O number Name Description Operation ready done Flag to indicate the counter operation is ready. Counter enable Flag to indicate the counter operation is enabled. Flag to indicate a count direction. Count direction ON: Forward (Addition) OFF: Reverse (Subtraction) ―...

  • Page 121

     Output relays I/O number Effective Name Description condition Relay to recalculate the setting Operation ready request Level parameter of counter. Count enable request Level Relay to start the counter operation. Reset request ON edge Relay to reset count values. Preset request ON edge Relay to preset count values.

  • Page 122: List Of Unit Memories

    11.3 List of Unit Memories  Check list of unit memories Unit memory (UM) number Setting monitor item Common Error code UM 00025 UM 00026 UM 00027 UM 00028 setting area UM 00050 UM 00120 UM 001F0 UM 002C0 Count function setting area UM 0006F UM 0013F UM 0020F...

  • Page 123

     Check list of unit memories Unit memory (UM) No. Setting monitor item Number of completed UM00400 UM00600 UM00800 UM00A00 capture 0 operations UM00402 UM00602 UM00802 UM00A02 Capture 0 register (Buffer 1 to Buffer 60) UM00479 UM00679 UM00879 UM00A79 UM00482 UM00682 UM00882 UM00A82...

  • Page 124: Unit Memory Detailed Specifications

    11.4 Unit Memory Detailed Specifications 11.4.1 Common Setting Area  Error code Unit memory Name Default Setting range and description No.(Hex) UM 00025 ch0 Error code UM 00026 ch1 Error code Stores error code for each channel. Refer to the error code list.

  • Page 125

     Count function Unit memory Name Default Setting range and description Unit No.(Hex) UM 00056 Set the direction of count. UM 00126 Specify count ― H0: Count in normal direction direction UM 001F6 H1: Count in reverse direction UM 002C6 Select a signal for counting from the count signal, internal clock or internal control signal.

  • Page 126

     Count function Unit memory Name Default Setting range and description Unit No.(Hex) Set to reset the counter when the comparison match flag rises. UM 0005C bit no. 15 Comparison ・ UM 0012C match leading ― ・ UM 001FC edge reset Comparison match F flag ・...

  • Page 127

     Count function0 Unit memory Name Default Setting range and description Unit No.(Hex) Set the input time constants of input A signal and input B signal. H0: No input time constant UM 00068 Input A H1: 0.1 us(2 MHz) UM 00138 signal/Input B H2: 0.2 us(1 MHz) ―...

  • Page 128

     Measurement function Unit memory Name Default Setting range and description Unit No.(Hex) Select a measurement function from frequency measurement, rotation speed measurement A or rotation speed measurement B. UM 00070 H0: Not use measurement function UM 00140 Select measurement ―...

  • Page 129

     Comparison function Unit memory Name Default Setting range and description Unit No.(Hex) Select a method of the comparison function from band UM 00078 comparison or target value match comparison. UM 00148 Select comparison ― H0: Not use function UM 00218 H1: Band comparison UM 002E8 H2: Target value match comparison...

  • Page 130

     Comparison function Unit memory Name Default Setting range and description Unit No.(Hex) UM 000B8 UM 00188 Comparison data 7 ― UM 00258 UM 00328 UM 000C0 UM 00190 Comparison data 8 ― UM 00260 UM 00330 UM 000C8 UM 00198 Comparison data 9 ―...

  • Page 131

     External output function Unit memory Name Default Setting range and description Unit No.(Hex) UM 00100 Set whether or not to output the comparison UM 001D0 match 0 flag to the external output 0 signal. External output 0 signal ― setting UM 002A0 H0: Not output...

  • Page 132

     Capture function Unit memory Name Default Setting range and description Unit No. (Hex) Make the setting for the capture function or sampling capture function. H0: Not use capture 0 function H1: Capture function at rising edge of control 0 signal H2: Capture function at trailing edge of control 0 signal H3: Capture function at rising edge of control 1 signal H4: Capture function at trailing edge of control 1 signal...

  • Page 133

     Capture function / Interrupt function Unit memory Name Default Setting range and description Unit No. (Hex)  Clears values stored in the capture registers and capture register buffers.  To clear the capture 0 register, turn off, on and off the bit 0 of the unit memory.

  • Page 134: Monitor Display Area

    11.4.3 Monitor Display Area Unit memory No. Name Default Setting range and description Unit (Hex) UM 003A0 - UM 003A1 Current count value of counter UM 003B0 - UM 003B1 Range: -2,147,483,648 (8000 0000H) to Count value Pulse UM 003C0 - UM 003C1 2,147,483,647 (7FFF FFFFH) Signed 32-bit UM 003D0 - UM 003D1...

  • Page 135: Capture Value Buffer Area

    11.4.4 Capture Value Buffer Area  Capture value buffer area (For capture 0) Unit memory No. Name Default Setting range and description Unit (Hex) UM 00400 Monitors the number of completed capture 0 operations while capturing is enabled. Number of UM 00600 completed capture Times...

  • Page 136

     Capture value buffer area (For capture 1) Unit memory No. Name Default Setting range and description Unit (Hex) UM 00500 Monitors the number of completed capture 1 operations while capturing is enabled. Number of UM 00700 completed capture Times It is cleared to zero when the capture UM 00900 1 operations...

  • Page 137

     Check list of unit memories (Capture 0 register buffers) Unit memory (UM) No. Buffer No. Buffer 1 UM00402-UM00403 UM00602-UM00603 UM00802-UM00803 UM00A02-UM00A03 Buffer 2 UM00404-UM00405 UM00604-UM00605 UM00804-UM00805 UM00A04-UM00A05 Buffer 3 UM00406-UM00407 UM00606-UM00607 UM00806-UM00807 UM00A06-UM00A07 Buffer 4 UM00408-UM00409 UM00608-UM00609 UM00808-UM00809 UM00A08-UM00A09 Buffer 5 UM0040A-UM0040B UM0060A-UM0060B...

  • Page 138

     Check list of unit memories (Capture 0 register buffers) Unit memory (UM) No. Buffer No. Buffer 31 UM0043E-UM0043F UM0063E-UM0063F UM0083E-UM0083F UM00A3E-UM00A3F Buffer 32 UM00440-UM00441 UM00640-UM00641 UM00840-UM00841 UM00A40-UM00A41 Buffer 33 UM00442-UM00443 UM00642-UM00643 UM00842-UM00843 UM00A42-UM00A43 Buffer 34 UM00444-UM00445 UM00644-UM00645 UM00844-UM00845 UM00A44-UM00A45 Buffer 35 UM00446-UM00447 UM00646-UM00647...

  • Page 139

     Check list of unit memories (Difference value buffer: Stored when Capture 0 request occurs.) Unit memory (UM) No. Buffer No. Buffer 1 UM00482-UM00483 UM00682-UM00683 UM00882-UM00883 UM00A82-UM00A83 Buffer 2 UM00484-UM00485 UM00684-UM00685 UM00884-UM00885 UM00A84-UM00A85 Buffer 3 UM00486-UM00487 UM00686-UM00687 UM00886-UM00887 UM00A86-UM00A87 Buffer 4 UM00488-UM00489 UM00688-UM00689 UM00888-UM00889...

  • Page 140

     Check list of unit memories (Difference value buffer: Stored when Capture 0 request occurs.) Unit memory (UM) No. Buffer No. Buffer 31 UM004BE-UM004BF UM006BE-UM006BF UM008BE-UM008BF UM00ABE-UM00ABF Buffer 32 UM004C0-UM004C1 UM006C0-UM006C1 UM008C0-UM008C1 UM00AC0-UM00AC1 Buffer 33 UM004C2-UM004C3 UM006C2-UM006C3 UM008C2-UM008C3 UM00AC2-UM00AC3 Buffer 34 UM004C4-UM004C5 UM006C4-UM006C5 UM008C4-UM008C5...

  • Page 141

     Check list of unit memories (Capture 1 register buffers) Unit memory (UM) No. Buffer No. Buffer 1 UM00502-UM00503 UM00702-UM00703 UM00902-UM00903 UM00B02-UM00B03 Buffer 2 UM00504-UM00505 UM00704-UM00705 UM00904-UM00905 UM00B04-UM00B05 Buffer 3 UM00506-UM00507 UM00706-UM00707 UM00906-UM00907 UM00B06-UM00B07 Buffer 4 UM00508-UM00509 UM00708-UM00709 UM00908-UM00909 UM00B08-UM00B09 Buffer 5 UM0050A-UM0050B UM0070A-UM0070B...

  • Page 142

     Check list of unit memories (Capture 1 register buffers) Unit memory (UM) No. Buffer No. Buffer 31 UM0053E-UM0053F UM0073E-UM0073F UM0093E-UM0093F UM00B3E-UM00B3F Buffer 32 UM00540-UM00541 UM00740-UM00741 UM00940-UM00941 UM00B40-UM00B41 Buffer 33 UM00542-UM00543 UM00742-UM00743 UM00942-UM00943 UM00B42-UM00B43 Buffer 34 UM00544-UM00545 UM00744-UM00745 UM00944-UM00945 UM00B44-UM00B45 Buffer 35 UM00546-UM00547 UM00746-UM00747...

  • Page 143

     Check list of unit memories (Difference value buffer: Stored when Capture 1 request occurs.) Unit memory (UM) No. Buffer No. Buffer 1 UM00582-UM00583 UM00782-UM00783 UM00982-UM00983 UM00B82-UM00B83 Buffer 2 UM00584-UM00585 UM00784-UM00785 UM00984-UM00985 UM00B84-UM00B85 Buffer 3 UM00586-UM00587 UM00786-UM00787 UM00986-UM00987 UM00B86-UM00B87 Buffer 4 UM00588-UM00589 UM00788-UM00789 UM00988-UM00989...

  • Page 144

     Check list of unit memories (Difference value buffer: Stored when Capture 1 request occurs.) Unit memory (UM) No. Buffer No. Buffer 31 UM005BE-UM005BF UM007BE-UM007BF UM009BE-UM009BF UM00BBE-UM00BBF Buffer 32 UM005C0-UM005C1 UM007C0-UM007C1 UM009C0-UM009C1 UM00BC0-UM00BC1 Buffer 33 UM005C2-UM005C3 UM007C2-UM007C3 UM009C2-UM009C3 UM00BC2-UM00BC3 Buffer 34 UM005C4-UM005C5 UM007C4-UM007C5 UM009C4-UM009C5...

  • Page 145: Dimensions

    11.5 Dimensions 2-ch type 4-ch type (19) Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 146

    Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...

  • Page 147

    Record of changes Manual No. Date Record of Changes WUME-FP7HSC-01 Oct.2013 First Edition WUME-FP7HSC-02 Jun.2014 Second Edition Specification change: Capture function (Chapter 4.1, Chapter 8, Chapter 11.2 to 11.4) Correction of sample programs related to "Operation Ready Request" and "Configuration Using User Programs"...

Comments to this Manuals

Symbols: 0
Latest comments: