HSC for PLC-S

The HSC for PLC-S Program is a special program that configures and controls High Speed Counter function built in PLC-S CPU.

Registering the HSC for PLC-S

Select [PLC-S High Speed Counter] Special Program from the ‘File’ to ‘New Program.’

  • You can register the PLC-S High Speed Counter Special Program only once for a CICON project.

 

image-20240329-081410.png

 

Enter the Program Name, Program ID and Program Free Space Field (Online Edit Buffer).
Click the [OK] button.

 

Write a Program

The configuration screen of the High Speed Counter Special Program is as follows.

 

image-20240329-081419.png

 

Start Address: The parameters of the High Speed Counter program are stored in M, L, K, D areas in which you specify. You cannot specify start address while in monitoring mode. Select the Start Address after shutting down the monitor mode.

 

 

Channel: Two channels are offered and can be selected.

 

 

Monitor: Monitor mode is activated by clicking the "Monitor" button.

 

"Monitor Stop" button appears when the Monitor mode is activated.

Parameter: The parameters of each channel are listed in the below table.

Oft

Group

Description

Setting

Memory

Remark

Value

Function

0

Parameter

Count Type

H0000

Linear Counter

Word

Read Only

H0001

Ring Counter

1

Input Pulse Mode

H0000

2 Phase, 2 Input, 2 Multi.

Word

Read

Only

H0001

2 Phase, 2 Input, 4 Multi.

H0002

1 Phase, 2 Multi. (Low)

H0003

1 Phase, 2 Multi. (High)

2

Compare Mode

H0000

<

Word

 

H0001

<=

H0002

=

H0003

=>

H0004

>

H0005

< >

H0006

> <

3

Int. Preset Value

-2,147,483,648 ~ 2,147,483,647

Dword

Low

4

High

5

Ext. Preset Value

-2,147,483,648 ~ 2,147,483,647

Dword

Low

6

High

7

Ring Max. Value

-2,147,483,648 ~ 2,147,483,647

Dword

Low

8

High

9

Compare Max.

-2,147,483,648 ~ 2,147,483,647

Dword

Low

10

High

11

Compare Min.

-2,147,483,648 ~ 2,147,483,647

Dword

Low

12

High

13

Compare Output

HFFFF

N/A

Word

Read Only

H0000

Y0010

H0001

Y0011

H0002

Y0012

H0003

Y0013

H0004

Y0014

H0005

Y0015

H0006

Y0016

H0007

Y0017

14

Unit Time

1~60,000 mSec

Word

 

15

Pulse / Rotation

1~60,000 Pulse

Word

 

16

Control

Counter Enable

Bit 0

SET = Enable

Word

 

Int. Preset

Bit 1

SET = Preset

 

Ext. Preset Enable

Bit 2

SET = Enable

 

Down Counting

Bit 3

SET = Down

Read Only

Compare Output Enable

Bit 4

SET = Enable

Read

Only

RPM / PPS Select

Bit 5

RPM(1), PPS(0)

 

Count Latch

Bit 6

SET = Enable

Read Only

 

Bit 7..F

 

 

17

Monitor

RPM/PPS

Measured Value

-2,147,483,648 ~ 2,147,483,647

Dword

Low Word

18

High Word

19

 

 

 

 

 

20

Carry

Bit 0

SET = Carry

Word

Read Only

Borrow

Bit 1

SET = Borrow

Read Only

Compare Result

Bit 2

SET = Result

Read Only

 

Bit 3..F

 

 

21

Current Count Value

-2,147,483,648 ~ 2,147,483,647

Dword

Low Word

22

High Word

23

Input Pulse per

Unit Time

-2,147,483,648 ~ 2,147,483,647

Dword

Low Word

24

High Word

25

Error Code

Refer Error Code Table

Word

 

Operation Status: displays status flags of High Speed Counter.

Save:
When the HSC for PLC-S program is saved, a confirmation message appears as shown below.

Online Modify: You can modify and change values while running the program. Once saved, a confirmation message appears as shown below.

Close: closes the program.