Chapter 7 Usage of Various Functions

Chapter 7. Usage of Various Functions

7.1Built-in Functions

7.1.1High-speed counter function

This chapter describes the specification, handling, and programming of built-in high speed counter of MASTER-K120S. The built-in high speed counter of MASTER-K120S(hereafter called HSC) has the following features;

Function

Counter format

Counter mode

 

Preset function

Additional

Latch counter

Comparison output

function

 

 

 

 

RPM function

Description

Linear counter : Up/Down counter.

Counting range is from -2,147,483,648 to 2,147,483,647

Ring counter : Counter value rotates from 0 to (set value-1)

4 counter functions as followings

1-phase operation mode

1-phase pulse + direction mode : Up / down is selected by direction pulse

2-phase CW/CCW mode : Up / down is selected by CW or CCW pulse input

2-phase multiplication mode : Up / down is automatically selected by the phase difference between A-phase and B.(multiplied by 4)

Change current value to preset value. Latches current value.

When current value is equal to comparison value, turns on the output contact points or executes interrupt program

Calculate the RPM(Rotates Per Minute) of input pulse

1) Performance Specifications

 

 

Items

 

 

Specifications

 

 

 

Points

 

 

Standard Type

 

 

Economic Type

 

 

 

 

 

1 phase : 4 points, 2 Phase : 2 points

 

 

1 phase : 2 points, 2 Phase : 1 points

 

 

 

 

 

 

 

 

 

 

Max. counting speed

 

 

1-phase 100kHz/ 2-phase 50kHz ( Ch0, Ch1)

 

 

1-phase 10kHz/ 2-phase 5kHz

 

 

 

 

1-phase 20kHz/ 2-phase 10kHz ( Ch2, Ch3)

 

 

( Ch0, Ch1)

 

 

 

 

 

 

 

 

 

 

 

Input types

 

 

A-Phase, B-Phase, Preset input

 

 

 

 

 

Counting ranges

 

 

from -2,147,483,648 to 2,147,483,647(Binary 32 bits)

 

 

 

1-phase

 

 

Up counter

 

 

 

 

 

 

1-phase Pulse +

 

 

A-Phase : Input pulse, B-Phase : Direction pulse

 

 

Up / Down

direction input

 

 

 

 

 

 

 

 

 

 

 

 

2-phase

 

 

 

 

 

 

 

 

selection

 

 

A-Phase : Up counting pulse, B-Phase : Down counting pulse

 

 

CW/CCW mode

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2-phase

 

 

Auto-select by phase difference of A-phase and B

 

 

 

multiplication mode

 

 

 

 

 

 

 

 

 

 

 

 

 

Additional function

 

 

Ring counter, Latch counter, Preset, Comparison output, RPM function

 

2) Input specification

 

Items

 

Specifications

 

Items

 

Specifications

 

Rated input

 

24VDC (7mA)

 

 

Rated input

24VDC (7mA)

 

 

 

 

 

 

 

 

 

On voltage

 

20.4 ~ 28.8VDC

 

 

On voltage

20.4 ~ 28.8VDC

A / B phase

 

 

 

Preset input

 

Off voltage

6VDC or lower

 

Off voltage

 

6VDC or lower

 

 

On delay time

200

or lower

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Off delay time

200

or lower

 

 

 

 

 

 

 

 

 

 

 

7-1

 

 

 

 

 

Page 85
Image 85
LG Electronics 120S Built-in Functions, High-speed counter function, Performance Specifications, Input specification