31.5.7 High Speed Counter (2-phase Settings)

A 2-phase counter is a counter that takes two input terminals to measure the input signal of a 2-phase input.

You can use maximum of two 2-phase counters in the LT3000 Series or STC6000 Series. When you use one, you use X0 and X2 input terminals, and when you use two, you use X0 and X2 as well as X4 and X6 input terminals. In the LT4000 Series, you can use one 2-phase counter with X0 and X1 input terminals.

Because multiple input terminals are occupied, arrangement of mapped terminals will differ from that of a single counter. Feature and setting methods for preload input, prestrobe input, and matching input are the same as that of a single counter.

The main functions of the 2-phase counters are indicated in the following table.

Summary of functions

Data Storage

Clears the counter, which currently has an external signal value.

31.5.7.1 Marker Input - High Speed Counter (2-phase Settings)

Starts and stops the high-speed counter

31.5.6.2 High Speed Counter Control - High Speed Counter (Single-phase Settings)

Checks the start and stop status of the high-speed counter

31.5.6.3 High Speed Counter Status - High Speed Counter (Single-phase Settings)

Start and stop the high-speed counter with an external signal

31.5.7.2 Enable Input - High Speed Counter (2-phase Settings)

Rewrites the current counter value

31.5.6.5 Preload (Change Value) - High Speed Counter (Single-phase Settings)

Stores the current counter value (read)

31.5.6.6 Prestrobe (Memorize Value) - High Speed Counter (Single-phase Settings)

Outputs the current counter value when it exceeds the specified value

31.5.6.7 Synchronize Output - High Speed Counter (Single-phase Settings)

Save the counter value when the logic stops

31.5.5.1 Retaining Counter Value and Retaining Matching Output when the Logic Stops

Counter input filter for the high speed counter

31.5.6.8 Counter Input Filter - High Speed Counter

As for measuring methods, there are four types of modes ranging from "Phase Counting Mode 0" to "Phase Counting Mode 3".

Mode 0 (2 Phase x 4)

When Counter A (Phase A) is ahead of Counter B (Phase B), operates as an up counter. When Counter A (Phase A) is lagging behind Counter B (Phase B), operates as a down counter.

In the LT4000 Series, you can reverse up-count and down-count by selecting [2 Phase x 4 Reverse].

Counter A (Phase A) is ahead of Counter B (Phase B)

Counter A (Phase A)

Counter B (Phase B)

Operations

1 (High)

Positive transition

Up Count

0 (Low)

Negative transition

Negative transition

1 (High)

Positive transition

0 (Low)

Counter A (Phase A) is lagging behind Counter B (Phase B)

Counter A (Phase A)

Counter B (Phase B)

Operations

0 (Low)

Positive transition

Down Count

1 (High)

Negative transition

Negative transition

0 (Low)

Positive transition

1 (High)

Mode 1 (Counter + Direction)

Begins counting at the positive transition of Counter A (Phase A). If Counter B (Phase B) is 0 (Low), counts up. If 1 (High), counts down.

This feature is supported by the LT3000 Series and STC6000 Series only.

Counter A (Phase A) is ahead of Counter B (Phase B)

Counter A (Phase A)

Counter B (Phase B)

Operations

1 (High)

Positive transition

Not count

0 (Low)

Negative transition

Negative transition

1 (High)

Positive transition

0 (Low)

Up Count

Counter A (Phase A) is lagging behind Counter B (Phase B)

Counter A (Phase A)

Counter B (Phase B)

Operations

0 (Low)

Positive transition

Not count

1 (High)

Negative transition

Negative transition

0 (Low)

Positive transition

1 (High)

Down Count

Mode 2 (Up + Down)

On Counter A's (Phase A) positive transition, if Counter B (Phase B) is 0 (Low), operates as an up counter. On Counter B's (Phase B) positive transition, if Counter A (Phase A) is 0 (Low), operates as a down counter.

This feature is supported by the LT3000 Series and STC6000 Series only.

Counter A (Phase A) is ahead of Counter B (Phase B)

Counter A (Phase A)

Counter B (Phase B)

Operations

1 (High)

Positive transition

Not count

0 (Low)

Negative transition

Negative transition

1 (High)

Positive transition

0 (Low)

Up Count

Counter A (Phase A) is lagging behind Counter B (Phase B)

Counter A (Phase A)

Counter B (Phase B)

Operations

0 (Low)

Positive transition

Down Count

1 (High)

Negative transition

Not count

Negative transition

0 (Low)

Positive transition

1 (High)

Mode 3 (2 Phase x 2)

Begins counting at a Counter B (Phase B) positive or negative transition. When Counter A (Phase A) is ahead of Counter B (Phase B), counts up. When Counter A (Phase A) is lagging behind Counter B (Phase B), counts down.

In the LT4000 Series, you can reverse up-count and down-count by selecting [2 Phase x 2 Reverse].

Counter A (Phase A) is ahead of Counter B (Phase B)

Counter A (Phase A)

Counter B (Phase B)

Operations

1 (High)

Positive transition

Up Count

0 (Low)

Negative transition

Negative transition

1 (High)

Not count

Positive transition

0 (Low)

Counter A (Phase A) is lagging behind Counter B (Phase B)

Counter A (Phase A)

Counter B (Phase B)

Operations

0 (Low)

Positive transition

Down Count

1 (High)

Negative transition

Negative transition

0 (Low)

Not count

Positive transition

1 (High)

Phase Calculation Mode Settings

  1. From the [Project] menu, point to [System Settings] and click [I/O Driver].

  2. On the [Internal Driver 1] screen, select the [2 Phase Counter] check box and click [2 Phase Counter Settings].

  3. The [2 Phase Counter Settings] dialog box appears. Select the phase calculation mode from the pull-down menu.

  4. LT4000 Series

  1. From the [Project] menu's [System Settings], click [I/O Driver] and select the [2 Phase Counter].

  2. Select a mode from [Phase Calculation Mode] in the [CH1&2] tab.