As 106357 KV-SSC02 Um 507GB WW GB 1099 4

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 210

507GB

High-speed counter
Chapter unit ovewview

UNIT INSTALLATION
Chapter

High-Speed Counter Chapter


HOW TO SETUP

OPERATION MODE

KV-SSC02 Chapter
SPECIF CATIONS &
APPLICATION EXAMPLES
UNIT SPECIFIC
INSTRUCTIONS/
Chapter
FUNCTIONS
User's Manual S-Unit function
Chapter

ACCESS WINDOW
Please read this Manual before use. Chapter

Keep this Manual in a safe place for later reference.


Chapter UNIT MONITOR

List of Error Message


List of Available Devices
Difference with KV-SC20V

Frequently Asked Questions

Supported CPU units


 KV-8000
 KV-7500
 KV-7300
www.keyence.com/controlfaq
1
Preface
This manual describes how to use KV-SSC02 and their functions.
Be sure to thoroughly read and fully understand this manual before installing. In addition, store this
manual in a safe place so that you can retrieve it whenever necessary.

 KV-SSC02 User's Manual


Read the following manual when you use the KV-SSC02.
All the following PDF manuals can be found and opened in the help file of KV STUDIO. In addition, the
latest version of PDF manuals can be downloaded from the Keyence website

Name Description
This manual describes the system configuration and specifications of
KV-8000 Series User's Manual
the KV-8000 Series, and how to prepare ladder programs.
This manual describes the system configuration and specifications of
KV-7000 Series User's Manual
the KV-7000 Series, and how to prepare ladder programs.
KV-8000/7000/5000/3000/1000 Series,
KV Nano Series This Manual describes available instructions for ladder programming.
Instruction Reference Manual
KV-8000/7000/5000/3000/1000 Series,
This Manual describes script programming and available operators,
KV Nano Series
control statements and functions.
Script Programming Manual
KV STUDIO User's Manual This manual describes how to operate KV STUDIO.
Safety Precautions
This Manual describes how to use KV-SSC02, operating procedures and the precautions to follow.
Be sure to read and understand this manual to make full use of the KV-SSC02 before use.

 Symbols
This document contains notices that you should observe to ensure your own personal safety, as well as
to protect the device and connected equipment. These notices are marked according to the level of
danger as shown below.

It indicates a hazardous situation which, if not avoided, will result in death or


DANGER
serious injury.
It indicates a hazardous situation which, if not avoided, could result in death or
WARNING
serious injury.
It indicates a hazardous situation which, if not avoided, could result in minor or
CAUTION
moderate injury.
It indicates a situation which, if not avoided, could result in product damage as
NOTICE
well as property damage.

Important It indicates cautions and limitations that must be followed during operation.

Point It indicates additional information on proper operation.

Reference It indicates tips for better understanding or useful information.

Indicates a page to be referred to in this manual or other manuals.

 General Precautions
• Before you use this device, verify its functionality and performance at startup
and during operation.
• Provide a safety circuit that bypasses the PLC to enable failsafe operation of
the entire system in the event that the PLC fails.
• Output circuit and internal circuit malfunctions sometimes prevent control from
being performed normally. Be sure to provide a safety circuit in control
WARNING systems where circuit malfunctions may lead to fire or other serious accidents.
• Do not use the device with the purpose of protecting human beings.
• This device is not intended for use as an explosion-proof product. Do not use
this device in a hazardous location or in a location that has a potentially
explosive atmosphere.
• Before you use KV STUDIO, please verify if the KV-8000 Series, the KV-7000
Series functions correctly.
If you use the product in a manner that falls outside of the ranges indicated in its
CAUTION
specifications, protection provided by the product may be damaged.
• Proceed with care when modifying the device, or when using it in a manner that
falls outside of the ranges indicated in its specifications, since KEYENCE is
unable to guarantee device functionality or performance in such situations.
NOTICE • Use this device in combination with other devices only after careful
consideration, since the device may fail to satisfy its functionality and
performance capabilities as a result of factors such as its usage conditions and
the environment in which it is used.
507GB
- KV-SSC02 User’s Manual - 1
 CE Marking/UL Standard
For restrictions on the CE Marking and the UL508 cetification, please refer to the KV-8000 Series
User's Manual, KV-7000 Series User's Manual.

2 - KV-SSC02 User’s Manual -


How This Manual Is Organized

High-speed
Chapter 1 counter unit
ovewview
This chapter describes the features, names and functions of
various parts and specifications and system configuration of the 1
KV-SSC02 high-speed counter unit.

2
This chapter describes the installation environment of KV-

Chapter 2 UNIT INSTALLATION SSC02 high-speed counter unit, how to install it on the CPU unit, 3
and how to connect peripheral equipment.

4
5
Chapter 3 HOW TO SETUP
This chapter describes the necessary setting contents when
using KV-SSC02.
6
OPERATION MODE 7
Chapter 4 SPECIFICATIONS &
APPLICATION
This chapter describes the specifications, application examples
and example programs of KV-SSC02 in various operation
8
EXAMPLES modes .

A
Chapter 5 UNIT SPECIFIC
INSTRUCTIONS/
This chapter describes unit specific instructions/functions when
direct refresh is performed.
FUNCTIONS

6
S-Unit function This chapter describes unit specific instructions/functions when
Chapter direct refresh is performed.

Chapter 7 ACCESS WINDOW


This chapter describes how to operate KV-SSC02 Access
Window.

Chapter 8 UNIT MONITOR


This chapter describes how to operate KV-SSC02 Access
Window.

This chapter describes the list of devices, fault message list,


APPENDICES
troubleshooting.

- KV-SSC02 User’s Manual - 3


Contents
Preface
Safety Precautions ...........................................................................................................................1
How This Manual Is Organized........................................................................................................3
Contents ............................................................................................................................................4
How to Use This Manual ..................................................................................................................8
How to Utilize Mnemonics List ................................................................................................................... 8
Terminology ............................................................................................................................................... 9

Chapter 1 High-speed counter unit ovewview

1-1 High-speed counter unit functions ........................................................................................1-2


Features of KV-SSC02 ...........................................................................................................................1-2
KV-SSC02 Details ...................................................................................................................................1-3
Operation Mode ......................................................................................................................................1-4
About serial encoder communication functions ......................................................................................1-5
Refresh ..................................................................................................................................................1-6
1-2 System Configuration .............................................................................................................1-9
KV-8000/7500/7300 System Configuration .............................................................................................1-9
1-3 Confirm package contents....................................................................................................1-10
1-4 Name and Function of Parts ................................................................................................. 1-11
1-5 Specifications and Dimensions ...........................................................................................1-12
1-6 Inter-unit synchronization ....................................................................................................1-16

Chapter 2 UNIT INSTALLATION

2-1 Installation Procedures ...........................................................................................................2-2


2-2 Checking the Installation Environment .................................................................................2-3
2-3 Prepartions for Wiring.............................................................................................................2-4
Applicable Cables ...................................................................................................................................2-4
Crimping Tool ..........................................................................................................................................2-4
Cable Connector ....................................................................................................................................2-4
Assembling and Wiring Connector ........................................................................................................2-5
2-4 Mounting KV-SSC02 onto the CPU Unit ................................................................................2-6
How to Install...........................................................................................................................................2-6
Installing Units on DIN Rails....................................................................................................................2-7
2-5 Connecting to I/O Peripherals ................................................................................................2-8
Connection Cables..................................................................................................................................2-8
I/O connector .......................................................................................................................................2-10
Wiring Count Input ............................................................................................................................... 2-11
Wiring Control Input .............................................................................................................................2-13
Wiring Control Output ...........................................................................................................................2-14
Connecting serial communication .........................................................................................................2-15
2-6 Maintenance...........................................................................................................................2-17
About inspection and maintenance .......................................................................................................2-17

Chapter 3 HOW TO SETUP

3-1 Startup .....................................................................................................................................3-2


Startup Procedure ..................................................................................................................................3-2
3-2 Setup with Unit Editor .............................................................................................................3-3
Unit Configuration Settings .....................................................................................................................3-3
4 - KV-SSC02 User’s Manual -
List of Setting Items ..............................................................................................................................3-4
Details of Setting Items ...........................................................................................................................3-6
3-3 How to Make a Program........................................................................................................3-28
Programming Flow ................................................................................................................................3-28
Start Counting (write setting value) .......................................................................................................3-29
Changing (updating) Comparator/Preset Setting Value........................................................................3-31
External Output ON/OFF ..................................................................................................................... 3-35
Executing a Preset ............................................................................................................................... 3-37
Using Enable Input................................................................................................................................3-39
Executing Input Capture ...................................................................................................................... 3-41
Changing (clearing) count current value ...............................................................................................3-45
Confirming Other Operation States .......................................................................................................3-47

Chapter 4 OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

4-1 Specifications ..........................................................................................................................4-2


Up/down Count Mode .............................................................................................................................4-2
Preset Count Mode .................................................................................................................................4-2
Enable Accumulate Count Mode ............................................................................................................4-3
Enable Count Mode ................................................................................................................................4-3
Set Timer Count Mode ...........................................................................................................................4-4
Frequency Count Mode ..........................................................................................................................4-4
Rotation Meter A mode (pulse interval measurement)/Rotation Meter B mode (time measurement per
revolution) ........................................................................................................................................4-4
Serial encoder communication................................................................................................................4-5
4-2 Up/down Count Mode..............................................................................................................4-6
Application Example of Up/Down Count Mode .......................................................................................4-6
4-3 Preset Count Mode..................................................................................................................4-8
Application Example of Preset Count Mode ..........................................................................................4-8
4-4 Enable Accumulate Count Mode..........................................................................................4-10
Application Example of Enable Accumulate Count Mode ....................................................................4-10
4-5 Enable Count Mode ...............................................................................................................4-12
Application Example of Enable Count Mode ........................................................................................4-12
4-6 Set Timer Count Mode .........................................................................................................4-14
Application Example of Set Timer Count Mode ...................................................................................4-14
4-7 Frequency Count Mode.........................................................................................................4-16
What is Frequency Count Mode ..........................................................................................................4-16
Application Example of Frequency Count Mode ..................................................................................4-18
4-8 Rotation meter Mode .............................................................................................................4-20
What is Rotation meter Mode................................................................................................................4-20
Application Example of Rotation meter Mode (Common to A/B) .........................................................4-22
4-9 Counting the Internal Clock..................................................................................................4-24
Used as High-speed Clock Output (100kHz maximum)........................................................................4-24
Measuring Time to High Precision .......................................................................................................4-27
4-10 Serial encoder communication ............................................................................................4-32
Usage example of the serial encoder communication functions ...........................................................4-32
4-11 List of Operation Modes and Corresponding Devices.......................................................4-34
Count mode and supported data memory list .......................................................................................4-34
Count mode and supported relay list ....................................................................................................4-35
Frequency, rotation meter mode and supported data memory list ........................................................4-37
Frequency, rotation meter mode and supported relay list .....................................................................4-38

- KV-SSC02 User’s Manual - 5


Chapter 5 UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

5-1 KV-SSC02 Unit Specific Instructions ....................................................................................5-2


List of Unit Specific Instructions ..............................................................................................................5-2
U_RDCNT Read count current value...............................................................5-4
U_RDHZ Read frequency..............................................................................5-6
U_RDRPM Read rotation speed.......................................................................5-8
U_RDCPT0/U_RDCPT1 Read input capture value .............................................................5-10
U_WRCNT Read count current value.............................................................5-12
U_WRCTC0/U_WRCTC1 Write comparator setting value ....................................................5-14
U_WRPST Write preset setting value ............................................................5-16
U_RDBF Reads buffering data....................................................................5-18
U_DISOCP Output overcurrent protection function configuration ...................5-20
5-2 KV-SSC02 Unit Specific Functions .....................................................................................5-22
List of Unit Specific Functions ...............................................................................................................5-22
U_RDCNT Read current counting value ........................................................5-23
U_RDHZ Read frequency............................................................................5-24
U_RDRPM Read rotation speed.....................................................................5-25
U_RDCPT0/U_RDCPT1 Read input capture value .............................................................5-26
U_WRCNT Write count current value .............................................................5-27
U_WRCTC0/U_WRCTC1 Write comparator setting value ....................................................5-28
U_WRPST Write preset setting value ............................................................5-29
U_RDBF Reads buffering data....................................................................5-30
U_DISOCP Output overcurrent protection function configuration ...................5-31

Chapter 6 S-Unit function

6-1 Unit Interrupt Function............................................................................................................6-2


What is Unit Interrupt Function ...............................................................................................................6-2
6-2 Buffering Function ..................................................................................................................6-4
What is Buffering Function ......................................................................................................................6-4
6-3 Unit Syncronization...............................................................................................................6-14
Inter-Unit Synchronization Details.........................................................................................................6-14
Unit Specification during Inter-Unit Synchronization Function ..............................................................6-14
Operation Overview during Inter-Unit Synchronization .........................................................................6-15

Chapter 7 ACCESS WINDOW

7-1 Access Window .......................................................................................................................7-2


Access Window.......................................................................................................................................7-2
Setting screen/monitor screen ................................................................................................................7-5
Unit Test ..................................................................................................................................................7-6

Chapter 8 UNIT MONITOR

8-1 Unit Monitor .............................................................................................................................8-2


Unit Monitor Introduction .........................................................................................................................8-2
Unit Monitor of KV STUDIO ...................................................................................................................8-2

6 - KV-SSC02 User’s Manual -


APPENDICES

1 List of Error Message............................................................................................................. A-2


KV-SSC02 Error Message List............................................................................................................... A-2
2 Troubleshooting ..................................................................................................................... A-4
KV-SSC02 Troubleshooting ................................................................................................................... A-4
3 Operations in the PROG Mode .............................................................................................. A-5
4 List of Available Devices ....................................................................................................... A-6
List of Data Memories ............................................................................................................................ A-6
List of Relays ......................................................................................................................................... A-7
5 List of serial encoder communication enabled series...................................................... A-11
Electrical specifications .........................................................................................................................A-11
Communication specificationsl..............................................................................................................A-11
List of supported series ........................................................................................................................ A-12
6 Difference with KV-SC20V ................................................................................................... A-13
List of differences ................................................................................................................................. A-13
7 Index ...................................................................................................................................... A-14

- KV-SSC02 User’s Manual - 7


How to Use This Manual
This section describes how to use sample ladder programs (mnemonics list) involved in this Manual.

How to Utilize Mnemonics List

Mnemonics lists are describes in the corresponding pages of sample ladder programs.
If a mnemonics list is used, it is convenient to enter the ladder program on the left.

1 Open the manual by "Adobe Reader".

2 Mnemonics lists can be copied with "Select tool".

Drag and
select all
mnemonics
lists to copy

3 In the ladder editing area of KV STUDIO, click the cell to which the sample ladder program is
inserted, and select "Edit(E)" -> "Edit list(L)" from the menu, "Edit list" dialog box will appear.

Other procedure

· +
Paste the copied mnemonics list to "Edit list"
dialog box that pops up by right-clicking the
menu and selecting "Paste(P)".

8 - KV-SSC02 User’s Manual -


4 Click "Insert(I)" button, the sample ladder program appears.

Terminology

This manual uses the following terminology excluding some instances.


Terminology Description
Programmable This refers to electronic equipment that you can use to freely control equipment by
controller changing programs. They are also called PLC (Programmable Logic Controller).
KV-8000 Series This refers to KEYENCE programmable controllers.
KV-7000 Series This refers to KEYENCE programmable controllers.
KV-5000/3000 Series This refers to KEYENCE programmable controllers.
CPU unit Refers to KV-8000/7500/7300.
This refers to expansion I/O units and expansion special units, other than the CPU
Expansion unit
unit, that can be used with the KV-8000/7000 Series.
This conversion unit is necessary when you use a KV-5000/3000 Series expansion
Bus connection unit unit with KV-8000/7000 Series. When using a bus connection unit, you need to install
an end unit at its right edge.
This refers to the unit that must be connected on the right of the other units when
End unit
using KV-5000/3000 Series expansion units.
This refers to the software that supports the creation of KV-8000/7000 Series
KV STUDIO
programs.
Ladder program This refers to programs that are created with KV STUDIO.

- KV-SSC02 User’s Manual - 9


MEMO

10 - KV-SSC02 User’s Manual -


1 1

High-speed counter unit ovewview


High-speed counter unit
ovewview
This chapter describes the features, names and functions of various parts and
specifications and system configuration of the KV-SSC02 high-speed counter
unit.

1-1 High-speed counter unit functions . . . . . . . . . . . . . . . . . . . . . . 1-2


1-2 System Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
1-3 Confirm package contents . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10
1-4 Name and Function of Parts . . . . . . . . . . . . . . . . . . . . .1-11
1-5 Specifications and Dimensions . . . . . . . . . . . . . . . . . . 1-12
1-6 Inter-unit synchronization . . . . . . . . . . . . . . . . . . . . . . 1-16

- KV-SSC02 User’s Manual - 1-1


1-1 High-speed counter unit functions
"High-speed counter unit KV-SSC02" is the unit intended to count high-speed input signals up to
16MHz (2-phase, 4-multiplication).

1
Features of KV-SSC02
High-speed counter unit ovewview

 Equipped with two 16MHz maximum (2-phase, 4-multiplication)/32-bit signed


high-speed counters
Capable of counting high-speed input signals up to 4MHz in a single phase.
1-phase/2-phase counting can be used depending on input signal. At 2-phase 4x mode, up to 16MHz
can be counted. Can be used for both normal sensors and encoders.
 Supports S-Unit function
Supports "unit interrupt", "buffering function" and "inter-unit synchronization" that can be used on KV-
8000/7000 series.
"Chapter 6 S-Unit function", Page 6-1
 Supports serial communication with absolute encoders
Absolut position information can be aquired via the absolute encoder that has serial communication
functions.
 Supports input signal count on other channels
You can select the input signal of the other CHs into the count input. As the result, multiple
simultaneous count processings are available for a single input signal, using different operation modes.
 Input from line driver supported
Count input circuit supports both open collector output and line driver output (differential output:
AM26LS31 or equivalent). There is no limit on output mode of the peripherals used.
 Together with counting input signal, frequency and rotation can also be counted.
At the same time as counting input signal, frequency or rotation can be counted. As the calculated
result is directly stored in data memory, it's free from laborious calculation.
 Counting of 20MHz internal clock
The internal clock of KV-SSC02 (up to 20MHz (50ns)) can be selected as a counting input signal. Can
be used for high-accuracy time measurement. As an application, it is capable of direct pulse outputs
and high-accuracy length measurement.
 Two input capture functions for each channel
Using the input capture function allows the present count value to be stored the instant an external
input occurs. It allows the present count value to be checked and used regardless of the PLC scan
time.
The length can be measured very precisely when the function is combined with the internal clock.
 Forced ON/OFF output
With external output set/reset relay, forced ON/OFF external output can be performed.
It can also be used to perform commissioning and handle emergency cases when the unit is started.
 Simple setup by KV STUDIO Unit Editor
Necessary setup (such as operation mode) can be made in the Unit Editor of KV STUDIO.
It is not necessary to perform time-consuming setup via program.
 Capable of performing monitor unit testing in the access window.
It is capable of displaying the information regarding the high-speed counter unit KV-SSC02 in the
access window of the CPU unit. Also, it is capable of performing counter input testing and checking
wiring even in a condition in which the unit configuration information is not transferred to the CPU unit.

1-2 - KV-SSC02 User’s Manual -


1-1 High-speed counter unit functions

KV-SSC02 Details

1
Configuration of the High-Speed Counter

High-speed counter unit ovewview


KV-SSC02 is a high-speed counter unit intended to measure high-speed input signals such as sensors
or encoders (response frequency: 16MHz/2-phase, 4-multiplication).

KV-SSC02 is a high-speed counter with 2 channels, and each channel is equipped with 2 high-speed
comparator outputs (setting value) and 2 matching outputs (comparator). Self-channel single-phase/
phase difference input of sensor and encoder, other-channel single-phase/phase difference input of
sensor and encoder, internal clock and matching output of other channels can be selected as counting
input; besides, preset (Z-phase) input, input capture input and enable input are also provided as output
input.
Timing chart of high-speed counter

CH0 Preset (Z-phase) input


CH0 Input capture input
CH0 Enable input

Count input
Serial encoder
Serial communications
communication
EnDat2.2/22
BiSS (C-mode)
Yaskawa Serial

A phase External input 32-bit high-speed counter CH0


CH0
(B phase) CH0
CH1
Internal clock 32-bit frequency counter CH0 Control OUT0
50.0ns 32-bit rotation meter CH0 circuit OUT1
1.0μs
10.0μs CH0 set value
100.0μs
High-speed comparator 0
High-speed comparator 1
OUT0(CH1)

Count input
OUT0(CH0)
32-bit high-speed counter CH1

Internal clock
50.0ns
32-bit frequency counter CH1 Control OUT0
1.0μs
32-bit rotation meter CH1 circuit OUT1
10.0μs
100.0μs
CH1set value
External input High-speed counter comparator 0
A phase CH0 High-speed counter comparator 1
CH1 CH1
(B phase)

CH1 Preset (Z-phase) input


CH1 Input capture input
CH1 Enable input

KV-SSC02

- KV-SSC02 User’s Manual - 1-3


1-1 High-speed counter unit functions

Operation Mode

1 KV-SSC02 provides 5 count modes, and 3 frequency/rotation meter modes. Count modes and frequency/
rotation meter mode can be executed simultaneously. These operation modes are shown below.
High-speed counter unit ovewview

 Count mode

Up/down count mode Preset count mode


Basic simple counter. Count mode with preset function.

Count input Count input

Preset value
Count value

Preset input
Count value

Enable accumulate count mode Enable count mode


Count can be executed only when enable input Count can be executed only when enable input
is ON. Count value is accumulated. is ON. Count value is reset at rising edge of
enable input.
Count input

Enable input Count input

Enable input

Count value
Count value

Set Timer Count Mode


It is the mode that count can be executed only in
fixed time. After enable input is ON, count is
executed only within the range of set time (ms).

Count input
Set time

Enable input

Count value

 Frequency/Rotation meter mode

Frequency count mode Rotation meter A/B mode


Measure frequency automatically since starting Measure rotating speed automatically according to
count input . count input and number of pulses per revolution.

1-4 - KV-SSC02 User’s Manual -


1-1 High-speed counter unit functions

About serial encoder communication functions

KV-SSC02 is capable of acquiring the absolute position data from the encoder through serial 1
communication with a serial encoder.

High-speed counter unit ovewview


It acquires position data per communication cycle (0µs/62.5µs) from the encoder and stores it in the KV-
SSC02 buffer memory.
Among the position data stored in the buffer memory, the lower 32 bits are written into the data memory
for CH0 which is assigned to KV-SSC02 by refreshing the CPU unit. If the position data size exceeds
32 bits, read out the data using the UREAD instruction.
"4-10 Serial encoder communication", Page 4-32

 Supported protocols

Protocol name Communication cycle


EnDat2.2/22 50µs
BiSS (C-mode) 50µs
Yaskawa Serial 62.5µs

 Block diagram when using the serial encoder communication functions

K V-SSC02 CPU unit


CH0 input capture input

Encoder
Buffer memory Data memory
Communication
Control circuit Position data CH1 present count value
Present input capture 0 value CH1 present input capture 0 value
Communication circuit CH0 present input capture 0 value CH1 present input capture 1 value
Error/alarm information

CH1
High-speed
A-phase counter CH1 Present count value CH1 present count value
CH0
(B-phase) Present input capture 0 value CH1 present input capture 0 value
Control circuit Present input capture 1 value CH1 present input capture 1 value
CH1 A-phase
(B-phase)

CH1 preset (Z-phase) input


CH1 input capture input
CH1 enable input

Point • The CH0 high-speed counter or frequency counter cannot be used when using
the serial encoder communication functions.
• CH0 cannot use the following functions when using the serial encoder
communication functions:
• Preset behavior
• Comparator match output
• The input capture function can be used even when using the serial encoder
communication functions.
• CH 0 external inputs (A-phase and B-phase) can be used to input CH1 count.

- KV-SSC02 User’s Manual - 1-5


1-1 High-speed counter unit functions

Refresh

1 The following describes how to read the status and values refreshed by the KV-SSC02 high-speed
counter unit and write them into the CPU unit.
High-speed counter unit ovewview

Communicating with CPU unit

The following describes how to read data stored in the buffer memory of KV-SSC02 and write them into
the I/0 relays and DMs of CPU unit.

 Auto refresh
Each time the CPU unit performs a ladder program scanning, it will read data stored in the I/O relays and buffer
memories of KV-SSC02 and write them into the I/O relays and DMs of KV-SSC02 assigned to CPU unit.
As mentioned above, data communication between CPU unit and expansion unit is called "Auto
Refresh", and data communication ladder program/setting is not required.

Control processing KV-SSC02

Synchronization
Auto refresh

1 Scan
Execute program

END processing

<Device read/write based on auto refresh>

Store destination Current value

R30300 ch0 operation in progress ON ch0 operation in progress ON


R30301 ch0 count current value overflow OFF ch0 count current value overflow OFF


DM10000 ch0 count current value L 16960 High-speed counter current 1000000
DM10001 ch0 count current value H 15 value

1-6 - KV-SSC02 User’s Manual -


1-1 High-speed counter unit functions

 Direct refresh
If unit specific instructions are executed in a ladder program, then data stored in the I/O relays and
buffer memory of KV-SSC02 can be read into any relay or data memory of CPU unit, and the value of 1
relays and data memory of CPU unit can be read into I/O relays and buffer memory of KV-SSC02,

High-speed counter unit ovewview


without waiting for updating of the I/O relays and data memory based on auto refresh. Furthermore,
write/read operation can also be performed on relays using DR (direct I/O relay).
As mentioned above, direct data communication between CPU unit and expansion unit is called direct
refresh, which can be used to perform processing independent of scan timing.
Unit specific instructions are required to perform direct refresh.
"KV-8000 Series User's Manual, 4-6 Program Structure and Operation"
"KV-7000 Series User's Manual, 4-6 Program Structure and Operation"
"5-1 KV-SSC02 Unit Specific Instructions", Page 5-2
"5-2 KV-SSC02 Unit Specific Functions", Page 5-22

Control processing
KV-SSC02

Synchronous
Auto refresh

R001 U_WRCNT.L KV-SSC02 Synchronous


Unit No. CH No. Count value
#1 #0 +0

1 Scan
Execute program

Unit-specific instruction

END processing

* Auto fresh will also be performed when direct refresh is used.


<Device read/write based on direct refresh>

Store destination Current value

R30300 ch0 operation in progress ON ch0 operation in progress ON


R30301 ch0 count current value overflow OFF ch0 count current value overflow OFF

DM0 16960 High-speed counter current 1000000


DM1 15 value

- KV-SSC02 User’s Manual - 1-7


1-1 High-speed counter unit functions

 Unit Synchronous Refresh


According to the specified inter-unit synchronization cycle, each unit simultaneously updates its buffer
1 memory, executes unit synchronous refresh to execute I/O relay of the buffer memory, and read/write it
to the data memory.
High-speed counter unit ovewview

Data can be processed simultaneously between units.

Control processing
Synchronization
period
Auto refresh Interrupt

Sync refresh
1 Scan
Execute program
Inter-Unit Synchronization
Module
Program Running

END processing

<Device Read/Write by inter-unit synchronization>


Store destination Current value

R30300 ch0 operation in progress ON ch0 operation in progress ON


R30301 ch0 count current value overflow OFF ch0 count current value overflow OFF


DM10000 ch0 count current value L 16960 High-speed counter current 1000000
DM10001 ch0 count current value H 15 value

1-8 - KV-SSC02 User’s Manual -


1-2 System Configuration
This section describes the configuration of KV-8000/7000 system and systems that can be configured
with KV-SSC02.

1
KV-8000/7500/7300 System Configuration

High-speed counter unit ovewview


The KV-SSC02 can be mounted onto the CPU unit as follows.

Power Supply Unit CPU unit KV-8000/7000 Series Bus connection unit KV-5000/3000 Series End Unit
KV-PU1 KV-8000/7500/7300 Expansion Unit KV-7000C Expansion Unit
(24 VDC 1.8A) (I/O, special) (I/O, special)
KV-PU1
POWER KV-SSC02
A B A B
IN
0 1 0 1
OUT 0 1 0 1
CH0 CH1

OPEN

SD Memory Card
KV-M16G/M4G/M1G

Ladder support software Extension Unit


KV STUDIO KV-EB1S    KV-EB1R

Cable
(1m)
PC (OP-42142)

Cable
(2m)
(OP-42141)

1
When using a bus connection unit (KV-7000C) or KV-5000/3000 Series expansion
Point
unit, you need to install an end unit at its right edge.

 Compatible KV STUDIO Versions

KV STUDIO Description
Ver. 8.1 or later Compatible with the high-speed counter unit KV-SSC02

 Compatible CPU Units

High-speed Counter Unit


CPU Unit
KV-SSC02
KV-8000 Can be connected
KV-7500
Can be connected
KV-7300
KV-5500
KV-5000
KV-3000 Cannot be connected
KV-1000
KV-700

- KV-SSC02 User’s Manual - 1-9


1-3 Confirm package contents
The package contains the following equipment and accessories. Before you start using the KV-SSC02,
make sure that the package contains everything that it is supposed to contain.

1
KV-SSC02
High-speed counter unit ovewview

KV
-S
SC
KV-7000 Series
02

Expansion Unit
Instruction Manual

Unit Expansion Unit Instruction Manual (one)

1-10 - KV-SSC02 User’s Manual -


1-4 Name and Function of Parts
This section describes name and function of each part of KV-SSC02.
KV-SSC02
(Front panel)
(1) Direct access switch
(Side panel)
1
KV-SSC02

High-speed counter unit ovewview


(5) Lock lever

(6) GND connector


A B A B
IN
0 1 0 1
(7) Expansion
unit
OUT 0 1 0 1
connector
CH0 CH1

(2)CH0 (3)CH1 (5) Lock lever


I/O I/O
indicator indicator

(4) I/O connectors*

* 40-pin connector for connecting KV-SSC02 is optional.


"Cable Connector", Page 2-4

No. Name Function


When this switch is pressed, status of the KV-SSC02 can be monitored
in the Access Window of the CPU unit.In addition, you can also know
the status of the KV-SSC02 by color of the switch.
Green light ON: Normal operation
(1) Direct access switch Green light blinking: In "Green light ON" state, the switch is pressed and a
unit is selected.
Red light ON: A unit error has occurred (excluding some exceptions*1).
Red light blinking: In "Red light ON" state, the switch is pressed, and a unit
is selected.
(2) CH0I/O indicator Display the on/off status of external inputs and outputs for each channel.
Upper level: Light in green when the counting input A-phase and B-
phase are in the on state.
Middle level: Light in red when the control input capture 0 (double as
(3) CH1 I/O indicator enable) and the input capture 1 are in the on state.
Lower level: Light in red when external outputs OUT 0 and OUT 1 are
in the on state.
The connector used for I/O (40-pin) (complies with MIL-C-83503*2 ).
(4) I/O connector Used to connect the counting input, control I/O, and serial communication
terminals to peripherals.
(5) Lock lever Used to lock connection of the unit.
(6) GND link connector Used to link connected units and GND.
Used to link with expansion units for KV-8000/7500/7300 or KV-8000/
(7) Extended unit link connector
7000 series.

*1 In case that the CPU unit is experiencing a system error as shown below when turning on the
power, it lights in red even without a unit error condition. At this time, an error message is
displayed in the access window.
• The unit information of the CPU unit shows a single-CPU configuration.
• An error is occurring in terms of the number of units.
• An error is occurring in terms of the type of unit.
*2 40 pin connector for KV-SSC02 connection is optioned.
"Cable Connector", Page 2-4

- KV-SSC02 User’s Manual - 1-11


1-5 Specifications and Dimensions
This section describes the general specification, performance specification, and terminal block
specification of KV-SSC02 and its overall dimensions.

1  General specification
Model KV-SSC02
High-speed counter unit ovewview

For system configurations that use KV- For system configurations that use only
System configuration
5000/3000 Series expansion units KV-8000/7000 Series expansion units
Power supply voltage 24 VDC ±10% 24 VDC (-15% +20%)
Internal current
190mA
consumption
Surrounding air
0 to +50°C*1, *2(no freezing) 0 to +55°C*1, *2 (no freezing)
temperature
Relative humidity 10 to 95%RH*1 (no condensation) 5 to 95%RH*1 (no condensation)
*1
Storage temperature -20 to 70°C -25 to 75°C*1
*1
Storage humidity 10 to 95%RH (no condensation) 5 to 95%RH*1 (no condensation)
Operating atmosphere Not large dust and corrosive gas
Operating altitude 2,000m below
Pollution degree 2
1500 V peak-to-peak or more, pulse width 1µs, 50 ns (by noise simulator)
Noise immunity
IEC standard compliant (IEC61000-4-2/3/4/6)
1500 VAC, 1 min (between power terminal and input terminals, and between all
Withstand voltage
terminals and housing)
50M or more (500 VDC ohmmeter, measured between power terminal and input/
Insulation resistance
output terminal, external terminal and housing)
Intermittent vibration Scan times
Frequency Acceleration Amplitude
5 to 9Hz - 3.5mm
Compatible with 10 times in X, Y,
9 to 150Hz 9.8m/s2 -
Vibration resistance JIS B 3502/ Z direction
Continuous vibration
IEC61131-2 respectively
Frequency Acceleration Amplitude
(100 minutes)
5 to 9Hz - 1.75mm
9 to 150Hz 4.9m/s2 -
Shock resistance Acceleration150m/s2, application time 11ms, 2 times in X,Y,Z direction respectively
Weight About 130g
*1 The range in which the system is used.
*2 According to the central lower side of the unit in control panel.

1-12 - KV-SSC02 User’s Manual -


1-5 Specifications and Dimensions

 Performance specification
Item Specification
Input frequency
Single-phase 4MHz
2-phase 4x 16MHz
1
Counting range 32-bit (non-signed, 0 to 4294967295, signed, -2147483648 to 2147483647)

High-speed counter unit ovewview


Number of channels 2
External terminals (CH0, CH1), internal clock sources (50ns, 1µs, 10µs,
Input selection 100µs), other channel match outputs, communication: EnDat2.2/22,
communication: BiSS (C-mode), communication: Yaskawa Serial
1 pulse, with a direction/1 pulse, no direction/2 pulses adding and subtracting/
Input mode
2-phase, 1 multiplication/2-phase, 2-multiplication/2-phase, 4-multiplication
• Up/down count mode • Enable count mode
Mode Count operation
• Preset count mode • Set timer count mode
mode
• Enable accumulate count mode
Counting mode Liner, ring
Frequency/ • Frequency count mode • Rotation meter B mode
Rotation meter • Rotation meter A mode (pulse (time measurement per rotation)
mode interval measurement)
A-phase/B-phase/Z-phase (preset), 3 for each channel, 6 in all 5V/12V/24VDC input
Count input enable, line driver input enable, optocoupler isolated (between channels and between
phases)
Input Enable input (double as input capture inputs), 1 for each channel, 2 in all
12 to 24 VDC , optocoupler isolated
Control input
Input capture function input, 2 for each channel, 4 in all.
12 to 24 VDC , optocoupler isolated.
Comparator 2 for each channel, 4 in all, optocoupler isolated.
Output
matching output Rated load: below 30 VDC 0.2A
Input capture function By external input (max. 4 inputs)
Input filter function Selects input constants (6 for counting/9 for controlling)
rising edge, falling edge or level can be selected based on preset (Z-phase)
Preset function
input/internal relays (only for external input).
Supported
EnDat2.2/22, BiSS(C-mode), Yaskawa serial absolute encoders*1
encoders
Serial encoder
Input EIA RS485 compliant differential line receiver or equivalent
communication
Output Equivalent to EIA standards RS485 compliant differential line driver
functions
Encoder 5V
5 VDC (±5%) 300mA or below
power
*1 "List of serial encoder communication enabled series", Page A-11

- KV-SSC02 User’s Manual - 1-13


1-5 Specifications and Dimensions

 Number of devices used


Relay 112 (7 ch)

1 Data memory 70
High-speed counter unit ovewview

 Input specification
Count input Control input
5 VDC
Item
24 VDC 12 VDC When using When using 12 VDC to 24 VDC
open collector line driver
Max. Rated input 28.8 VDC 14.4 VDC 6.0 VDC 28.8 VDC
AM26LS31 or
ON voltage (min.) 19.0 VDC 9.6 VDC 3.0 VDC 10.8 VDC
equivalent
OFF voltage (max.) 4.8 VDC 2.4 VDC 1.0 VDC 3.0 VDC
OFF current (Max.) 0.1mA - 0.1mA
Input current TYP 5.4mA TYP 6.9mA TYP 2.2mA to 5.0mA
OFF -> ON 1µs
Operation time -
ON -> OFF 1µs
Common method Independent Common
Single-phase /Z-phase: 4MHz, 2-phase 1x: 4MHz
Response frequency -
2-phase 2x: 8MHz, 2-phase 4x: 16MHz

 Min. response pulse


Min. counting pulse (A-phase/B-phase/Z-phase) Phase difference pulse input (A-phase/B-phase)
A ON
ON Min. ON voltage

Min. ON voltage
50%
50%
Max. OFF voltage

Max. OFF voltage OFF


OFF
A
ON
A: >100ns Min. ON voltage

50%

Max. OFF voltage


OFF
B B B B

B: >56ns

 Output specification
Item Output
Max. Switching capacity 30 VDC 200mA or below
Leak current 0.1mA or below
Residual voltage 0.5V or below
Over-voltage prevention Global prevention, Alert function*1
OFF -> ON 1µs or below (Load current 5mA to 200mA)
Operation time
ON -> OFF 3µs or below (Load current 5mA to 200mA)
*1 When overcurrent occurs, all the output what has been turned on will keep turning on and off
untill the cause of the vercurrent is eliminatd.

1-14 - KV-SSC02 User’s Manual -


1-5 Specifications and Dimensions

 Serial encoder communication specifications


Protocol
Item
EnDat2.2/22 BiSS(C-mode) Yaskawa Serial
Equivalent to EIA standards RS485 compliant differential line
1
Input voltage

High-speed counter unit ovewview


receiver
Output voltage Equivalent to EIA standards RS485 compliant differential line driver
Clock frequency/
8MHz 4MHz 4Mbps
Data transfer rate
Updating cycle 50µs 50µs 62.5µs
Encoder 5V power Voltage 5V ± 5% (4.75V to 5.25V)
supply output Current 300mA maximum
"List of serial encoder communication enabled series", Page A-11

 Dimensions
1.2

27.3
92.5

35.9

90
4

22.6
95
112
(145)

- KV-SSC02 User’s Manual - 1-15


1-6 Inter-unit synchronization
KV-SSC02 supports the inter-unit synchronization function available with the KV-8000/7000 series.
When using this function, such data as the present count value between the channels (including cases

1 of being on the same unit and different units) and analog values of KV-SAD04 can be acquired while
maintaining simultaneity in the data.
High-speed counter unit ovewview

Using the inter-unit synchronization functions enables the following.

 Multi-channel simultaneous sampling


Multiple KV-SSC02 sample pulse outputs from an encoder with more than 2 axises so that the current
value can be sampled from all the axises at the same timing.

KV-SSC02 KV-SSC02
A B A B A B A B
IN IN
0 1 0 1 0 1 0 1
OUT 0 1 0 1 OUT 0 1 0 1
CH0 CH1 CH0 CH1

At the same timing

 Shape tracing
By synchronizing the start timing of the buffering functions of both KV-SSC02 and KV-SAD04 to
synchronize the value measured by a laser displacement meter with the current value from the
encoder, to perform buffering.

1-16 - KV-SSC02 User’s Manual -


2
2

UNIT INSTALLATION
UNIT INSTALLATION
This chapter describes the installation environment of KV-SSC02 high-speed
counter unit, how to install it on the CPU unit, and how to connect peripheral
equipment.

2-1 Installation Procedures . . . . . . . . . . . . . . . . . . . . . . . . . 2-2


2-2 Checking the Installation Environment . . . . . . . . . . . . . 2-3
2-3 Prepartions for Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
2-4 Mounting KV-SSC02 onto the CPU Unit . . . . . . . . . . . . 2-6
2-5 Connecting to I/O Peripherals . . . . . . . . . . . . . . . . . . . . 2-8
2-6 Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17

- KV-SSC02 User’s Manual - 2-1


2-1 Installation Procedures
Please install KV-SSC02 high-speed counter unit and connect peripheral equipment on CPU unit
according to the following procedures.

Check the Installation Environment


2 1 Check whether or not the environment for installing the KV-SSC02 is appropriate.
"2-2 Checking the Installation Environment", Page 2-3
UNIT INSTALLATION

Prepare required items


2 Prepare for wires and crimping tool required for installation of KV-SSC02.
"2-3 Prepartions for Wiring", Page 2-4

Mount the KV-SSC02


3 Install the KV-SSC02 onto the CPU unit.
"2-4 Mounting KV-SSC02 onto the CPU Unit", Page 2-6

Connect to External Devices


4 Prepare cables, and connect peripherals to KV-SSC02.
"2-5 Connecting to I/O Peripherals", Page 2-8

5 Trial operation

2-2 - KV-SSC02 User’s Manual -


2-2 Checking the Installation Environment
Don't install it in the following places:

Location with ambient Location with ambient


Location with direct sunshine temperature exceeding 0 to humidity exceeding 5 to 95%
+55°C RH
2

UNIT INSTALLATION
Location with dewing due to Location with corrosive gas Location with heavy dust, salt,
sharp change in temperature and combustible gas chips and oily smoke

Place that is directly under Place to which water, oil and Place with strong magnetic
vibration and shock drug is sprayed and electric field

Magnetic
Chemicals Electric field
Oil field

• The place where altitude exceeds 2000m

- KV-SSC02 User’s Manual - 2-3


2-3 Prepartions for Wiring
Please prepare following parts before wiring KV-SSC02 high-speed counter unit.

Applicable Cables

2 Please use following cable to connect encoders and sensors.


• Wire specification AWG 24 to 22 (twisted wire)
UNIT INSTALLATION

• Section 0.2 to 0.3 mm2


• Sheath diameter Ø1.1 to Ø1.5

Crimping Tool

When wiring driver unit and connector, etc., it is more convenient if using special-purpose crimping tool.
If no special-purpose crimping tool is available, it is necessary to solder tin.

Special-purpose crimping tool (type: OP-21734)

Cable Connector

Cable connector is not supplied for KV-SSC02. Please prepare a set of 40 pin connector (model: OP-
22184/51404). KV-SSC02 connector conforms to MIL standard (MIL-C-83503), so, flat cable connector
can be used.

OP-22184 OP-51404

Connector terminal No.


40-pin connector: type:OP-22184, OP-51404

Symbol Up

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40
Below

2-4 - KV-SSC02 User’s Manual -


2-3 Prepartions for Wiring

Assembling and Wiring Connector

When connecting equipment to every unit, you must connect the wires of every equipment to the socket
connector on the unit side.
2
 Precautions on wiring (OP-22184/51404)

UNIT INSTALLATION
The following points must be noted before wiring:
• Must use following cables
Wire specification : AWG 24 to 22 (twisted wire)
Section : 0.2 to 0.3mm2
Sheath diameter : Ø1.1 to Ø1.5
• The top of a cable should be cut off in straight so that it is flat.
• After wiring, verify that the wire is clamped completely by the fixed part and inserted securely.
• No burr should be left at cutting on the cutoff part of wire (it's not necessary to scrape the sheathing).
• Fine line contact OP-30594 supplied for AWG28- 26.
(please use with OP-22184/51404 etc.)
Wire specification : AWG28 to26
Section : 0.08 to 0.14mm2
Sheath diameter : Ø1.3 to Ø1.1

Important The unit is made of synthetic resin. It may melt after touching the solvents with
strong dissolving power such as acetone, trichloroethylene and gasoline, etc.
Besides, it may be damaged if large force applied when crimping. You must be very
careful.

- KV-SSC02 User’s Manual - 2-5


2-4 Mounting KV-SSC02 onto the CPU Unit
This section describes how to install high-speed counter unit KV-SSC02 onto the CPU unit.

How to Install

2 NOTICE Be sure to turn the power off when mounting the unit.
UNIT INSTALLATION

 Procedure

1 Remove the expansion unit connection CPU unit KV-SSC02


connector cover (right side) of the unit on (left side) (right side)
the left side.

KV
-S
SC
02

2 Release the lock levers attached to the top


and bottom of the right unit.
• Put your finger on the lock lever and slide it
towards the front of the unit to release it.

KV
-S
SC
02

3 Insert the right unit's lock lever into the lock


lever slot on the left unit.
• They can be easily connected by holding
them parallel and aligning the positions of the
connectors.
KV
-S
SC
02

4 Lock the lock levers attached to the top and


bottom of the right unit.
• Perform the reverse of step 2 by putting your
finger on the lock lever and sliding it towards
the back of the unit.
KV
-S
SC
02

Check that there is not a gap between the


units. If there is a gap, they are not properly
connected.

2-6 - KV-SSC02 User’s Manual -


2-4 Mounting KV-SSC02 onto the CPU Unit

Installing Units on DIN Rails

This section describes how to install connected units on and remove connected units from DIN rails.

 Installing units 2
1

UNIT INSTALLATION
Hang the slot on the top of the DIN rail onto
the DIN-rail fasteners on the top of each
unit.

Top clip

DIN rail

2 Insert the bottom part of the DIN rail into the


DIN-rail fasteners on the bottom of each
unit.
• The lower black fasteners are attached to a
spring. Press down on these fasteners until you
hear a click.
• In locations where it is difficult to install the units,
first release all locks, install the units on the DIN Lower black clip
rail, and then lock all the locks.

3 Check that the bottom DIN-rail fasteners are


all inserted (locked).

Fastener is Fastener is
properly locked not locked

 Removing units

1 Pull the bottom DIN-rail fasteners down.

When rail is not attached

2 Follow the reverse of the installation


procedure to remove the DIN rail from the
units.

- KV-SSC02 User’s Manual - 2-7


2-5 Connecting to I/O Peripherals
To connect external I/O equipment such as encoder and sensor on KV-SSC02 high-speed counter unit,
connect cable according to technical specification of each equipment. This chapter will describe how to
prepare cable and wire external I/O equipment.

Connection Cables
2
UNIT INSTALLATION

 Steps

1 Before using connector, first open the cover of connector.


Cover
Remove
screws

Housing

2 Break off it starting from the breakdown position at clamp part


of contact toward the breaking-off direction of arrow.

carrier

Contact-break position

3 Insert contact into the contact


stand of special crimping tool
and contact directly.
Crimping punch

Crimping groove Contact holder



Cover
Guide

Contact

4 Insert wires into the crimping slot Viewed from the side
along contact.
Crimping
punch

Cover
Wire Guide
Wire

2-8 - KV-SSC02 User’s Manual -


2-5 Connecting to I/O Peripherals

5 Hold the handle of special crimping tool so that the The clamp must wrap
clamping part of contact will completely clamp the wire. the wire firmly

Insert the wire as


far as possible 2

UNIT INSTALLATION
6 Pull wire lightly and take out contact from special
crimping tool.

Wire

7 Check pin No. on casing, and insert wire into slot with Housing
correct number.
• Take care to insert to place.

8 Protective cap should be installed on housing and bolts tightened after all wirings.

Clamped screw Cover

Here, lock it

Housing

9 Connect external I/O equipment to KV-SSC02 by using the complete cable.

- KV-SSC02 User’s Manual - 2-9


2-5 Connecting to I/O Peripherals

I/O connector

Pin No. CH Direction Signal Name

2 1
3
A-phase 24V Input
A-phase 12V Input
Input
UNIT INSTALLATION

5 A-phase 5V Input
7 A-phase common
9 B-phase (Direction)24V Input
11 B-phase (Direction)12V Input See page 2-11
Input for wiring.
13 B-phase (Direction)5V Input
15 B-phase (Direction)common
0
17 Z-phase (Preset)24V Input
1 2 19 Z-phase (Preset)12V Input
Input
3 4 21 Z-phase (Preset)5V Input
23 Z-phase (Preset)common
25 Input Input capture 0 (Enable) input*1*2
27 Input Input capture 1 input*1
29 Output Output 0(OUT0)*3
31 Output Output 1(OUT1)*3
33 DATA+ DATA signal(+)
See page 2-15
35 Serial encoder CLK+ CLK signal(+)
communication for wiring.
37 Output Encoder 5V power supply*4
39 Common input Control input common

Pin No. CH Direction Signal Name


2 A-phase 24V Input
4 A-phase 12V Input
39 40 Input
6 A-phase 5V Input
8 A-phase common
10 B-phase (Direction)24V Input
12 B-phase (Direction)12V Input See page 2-11
Input
14 B-phase (Direction)5V Input for wiring.
16 B-phase (Direction)common
1
18 Z-phase (Preset)24V Input
20 Z-phase (Preset)12V Input
Input
22 Z-phase (Preset)5V Input
24 Z-phase (Preset)common
26 Input Input capture 0 (enable) input*1*2
28 Input Input capture 1 input*1
30 Output Output 0(OUT0)*3
32 Output Output 1(OUT1)*3
34 DATA- DATA signal (-)
See page 2-15
36 Serial encoder CLK- CLK signal (-)
communication for wiring.
38 SG Signal ground*5
40 Common Output Output common*5

2-10 - KV-SSC02 User’s Manual -


2-5 Connecting to I/O Peripherals

*1 Input voltage range is 12 to 24 VDC. Control input common point is terminal No. 39 (control input common point).
*2 Enable input can be used only when Enable count, enable stored count and counting within
setting time mode are used by CH0, CH1.
*3 Output common point is terminal No. 40 (output common point).
*4 When serial encoder communications is unused, it can be used as extra 5V power supply.
However, when serial encoder communications is used, it is only connected to the encoder,

*5
please do not connect to the other signals.
Output common and signal ground are intenaly shortcircuited.
2

UNIT INSTALLATION
Wiring Count Input

A-phase, B-phase, Z-phase (preset input)


Pin No. Signal
Circuit Function
CH0 CH1 Name
1 2 A+(24V)
3 4 A+(12V) Counter A-phase,+ logic
5 6 A+(5V)
+24V 7 8 A-COM* Counter A-phase, - logic
Internal circuit

+12V 9 10 B+(24V)
+5V
11 12 B+(12V) Counter B-phase, + logic
13 14 B+(5V)
COM
15 16 B-COM* Counter B-phase, - logic
17 18 Z+(24V)
19 20 Z+(12V) Counter Z-phase, + logic
21 22 Z+(5V)
23 24 Z-COM* Counter Z-phase, - logic

* A-COM, B-COM, Z-COM terminals are independent.


• Max. rated input, 24 VDC+20%, 12 VDC+20%, 5 VDC+20%
• A+ and A- COM input terminals are connected to phase A output terminal of encoder, B+ and B -
COM input terminals are connected to phase B output terminal, Z+ and Z-COM terminals connected
to phase Z output terminal.
• If it is connected to open collector output, it will be connected COM terminal. Please connect to any
one of +5V, +12V, +24V terminals according to external power supply.
• Input time constants can be configured in the unit editor. Configure the settings of input time constants
separately for a counting input (common between A-phase and B-phase) and Z-phase.
• Configure input time constants separately for CH0 and CH1.
"Count input time constant", Page 3-7
"Input mode", Page 3-10

Point It is not possible to switch between NO and NC.

When connecting open collector (A-phase) when connecting differential line driver (A-phase)

Pin No. Pin No.


Signal name Signal name
CH0 CH1 CH0 CH1
1 2 Aˇ(24V) 1 2 Aˇ(24V)
3 4 Aˇ(12V) 3 4 Aˇ(12V)
5 6 Aˇ(5V) 5 6 Aˇ(5V)
7 8 AˉCOM 7 8 AˉCOM

Important The voltage within 5V/12V/24V circuit should not exceed respective rated input voltage.
Otherwise it may damage the unit.

- KV-SSC02 User’s Manual - 2-11


2-5 Connecting to I/O Peripherals

Example for wiring external device input

Example 1 For open collector output

2 High-speed counter unit (KV-SSC02)

+24V
STP cable
12V*1
UNIT INSTALLATION

Count input A,B,Z +12V *1 *2 *2


Internal circuit

+5V
External equipment
COM
A phase

*1 Please match using 5V/12V/24V.


*2 If you cannot count properly due to the cable extension and noises, it may be able to be
improved by adding the bleeder resistance and increasing the load current.

Example 2 For voltage output (12 VDC)

High-speed counter unit (KV-SSC02) External equipment


+12V*
+24V
STP cable
Count input A,B,Z +12V
*
Internal circuit

+5V

COM

* Please match using 5V/12V/24V.

Example 3 For line driver output

High-speed counter unit (KV-SSC02)

STP cable
+24V + External device
Counter input A,B,Z +12V
Internal circuit

+5V

COM
-

Important Make sure to use a shielded twist pair cable with KV-SSC02 and F.G. ground the
shield wire.

2-12 - KV-SSC02 User’s Manual -


2-5 Connecting to I/O Peripherals

Wiring Control Input

Capture input and enable input

Pin No.
Circuit
CH0 CH1
Signal name Function 2
Input capture 0 input Input capture 0,
Internal circuit

UNIT INSTALLATION
IN 25 26
(enable input) enable
27 28 Input capture 1 input Input capture 1
COM Control input common
39 Control COM
(CH0, CH1 common)

• Maximum input voltage 24 VDC+20%


• Capture input (enable input) will be an enable input only when the Enable accumulate count mode,
Enable count mode or Set timer count mode is used.
• Configure input time constants for control inputs in the unit editor. Configure input time constants
separately for CH0 and CH1.
"Control input time constant", Page 3-8

Example for wiring control input

Do not use contacts for inputs whenever possible to avoid chattering.

High-speed counter unit (KV-SSC02)

Destination input

NPN open collector output


Internal circuit

IN

12 to 24V

COM

High-speed counter unit (KV-SSC02)

Destination input

PNP open collector output


Internal circuit

IN

12 to 24V

COM

- KV-SSC02 User’s Manual - 2-13


2-5 Connecting to I/O Peripherals

Wiring Control Output

Comparator matching output

Pin No.
2 Circuit
CH0 CH1
Signal name Function

Comparator matching
UNIT INSTALLATION

29 30 OUT0
output 0
Comparator matching
Internal 31 32 OUT1
circuit output 1
Comparator match output
common
40 Output COM
(common between CH0 and
CH1)*1

• Maximum open/close capacity 30 VDC/200mA or less, residual current 0.1mA or less in the off-state,
residual on-state voltage 0.5V or less.
• Output can be forced ON/OFF using internal relays.
• After counting value is matched to the high-speed comparator (setting value), the maximal waiting
time of response output is 1 µs (OFF -> ON) or 3 µs (ON -> OFF).
*1 It's Internally short-circuited with signal ground.

Example for wiring control output

High-speed counter unit (KV-SSC02)

OUT0,1
Load
Internal circuit

Output COM

2-14 - KV-SSC02 User’s Manual -


2-5 Connecting to I/O Peripherals

Connecting serial communication

Serial encoder communication

Circuit Pin No. Signal name Function


Send data DATA+
33 DATA+ Differential DATA signal positive logic 2
34 DATA- Differential DATA signal negative logic
Isolated circuit

DATA-
Internal circuit

UNIT INSTALLATION
Receive data
120Ω 35 CLK+ Differential CLK signal positive logic
Send clock CLK+ 36 CLK- Differential CLK signal negative logic
CLK- 37 +5V Encoder 5V power supply *1
Isolated power +5V
supply +5V
SG 38 SG Signal ground (encoder 0V) *2

• DATA signal: Equivalent to EIA standards RS485 compliant differential line receiver/driver
• CLK signal: Equivalent to EIA standards RS485 compliant differential line driver
• Encoder 5V power supply: output voltage 5V ± 5%, maximum load 300mA
*1 When serial encoder communication is not in use, it can be used as the extra 5V power supply.
Note, however, that it can only be connected with the encoder when using serial encoder
communication. Do not connect it to any other signals.
*2 It's Internally short-circuited with output common.

Example of serial communication wiring

A wiring example in case of connecting a serial encoder to the high-speed counter unit (KV-SSC02)
Use a shielded twist pair cable as a connecting cable and ground the shield on the KV-SSC02 side.
The shield may be grounded on both sides, depending on the type of encoder to be connected.

High-speed counter unit (KV-SSC02)


Shielded twist pair cable*1 EnDat2.2/22 compatible encoder

Send data DATA+ DATA


DATA-
Isolated circuit
Internal circuit

DATA
Receive data
120Ω
Send clock CLK+ CLOCK
CLK-
CLOCK

Up
+5V 0V
Isolated power
SG Sensor Up
supply +5V
Sensor 0V

*2

High-speed counter unit (KV-SSC02)


Shielded twist pair cable*1 BiSS (C-mode) compatible encoder

Send data DATA+


SLO+
DATA-
Isolated circuit
Internal circuit

SLO-
Receive data
120Ω
Send clock CLK+
MA+
CLK-
MA-

+5V 5V
Isolated power
SG 0V
supply +5V

*2

- KV-SSC02 User’s Manual - 2-15


2-5 Connecting to I/O Peripherals

High-speed counter unit (KV-SSC02)


Shielded twist pair cable*1 Yaskawa Serial compatible encoder

Send data DATA+ S*3

Isolated circuit
DATA-

Internal circuit
/S*3
Receive data
120Ω

2
Send clock CLK+
CLK-

+5V +5V
UNIT INSTALLATION

Isolated power
supply +5V SG 0V

*2

*1 Use the encoder designated cable. For the maximum cable length, check the encoder
specifications.
*2 For the destination each type of shielded cable should be connected to, check the encoder
specifications.
*3 The signal name may vary depending on the type of encoder.

2-16 - KV-SSC02 User’s Manual -


2-6 Maintenance
This section describes how to inspect and perform maintenance on the unit.

About inspection and maintenance

 Inspection 2
After the unit has been used for a long time, the connecting part of the connectors may become loose.

UNIT INSTALLATION
Continued use of it in this case may cause trouble.

The main service items are as follows:

• Whether the lock at each unit's connection part is dropped or loose?


• Whether the connector's connection part is mismatched or loose?
• Whether the terminal screw of terminal block is loose?
• Whether the wiring cable between unit and equipment is damaged?

 Daily care
Dirt adheres to the CPU unit and each unit when it is used over a prolonged period of time.
Clean off any dirt from the KV-SSC02 using a clean, dry cloth.
Dust and dirt on fine components can be removed with a cotton bud after first removing the connector.

Important Before performing maintenance and inspection on the unit, be sure to turn the
power OFF.

- KV-SSC02 User’s Manual - 2-17


2-6 Maintenance

MEMO

2
UNIT INSTALLATION

2-18 - KV-SSC02 User’s Manual -


3
3

HOW TO SETUP
HOW TO SETUP
This chapter describes the necessary setting contents when using KV-SSC02.

3-1 Startup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2


3-2 Setup with Unit Editor . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
3-3 How to Make a Program . . . . . . . . . . . . . . . . . . . . . . . 3-28

- KV-SSC02 User’s Manual - 3-1


3-1 Startup
This section describes basic setup steps when using KV-SSC02.

Startup Procedure

Make settings on KV STUDIO Unit Editor


・ Add KV-SSC02 into system configuration.
・ Set the leading relay NO. and DM NO. on the KV-SSC02.
3 ・ Select operation mode and settings as required.
HOW TO SETUP

Make a program on KV STUDIO


・ Make the Program for enabling operation.(common to each operation modes)
・ Create applicable program of according to operation mode or operating method.

Transfer the program you made to CPU Unit.

Run operation
・ When operation enable relay is ON, write necessary setting value to KV-SSC02
and perform counting under corresponding operation mode*1.˄Note1˅

Set initialization setting of Unit Editor to “OFF (load from DM)”(default), and setting value is
written into KV-SSC02 at the rising edge of Operation enable relay.

3-2 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor
This section describes how to set up through the Unit Editor.

Unit Configuration Settings

First, set the unit configuration correctly using the Unit Editor.

1 Start up Unit Editor.


KV STUDIO User's Manual, "3-6 Using the Unit Editor" 3

HOW TO SETUP
2 Configure the unit.

3 If the unit configuration is not correct, please set it up again.


KV STUDIO User's Manual, "3-6 Using the Unit Editor"

- KV-SSC02 User’s Manual - 3-3


3-2 Setup with Unit Editor

List of Setting Items

Make the basic settings for KV-SSC02 on Unit Wditor.


The following table summarizes the setting item and setting values.

Setting Setting value See

3 Leading DM No.
Leading relay No.
DM0 to DM65464
000(R000) to 1993(R199300)*2
Page 3-6
Page 3-6
Common Synchronization Not used Default
HOW TO SETUP

Page 3-6
units functions between units Used
Inter-unit synchronization Default
Refresh Timing Page 3-7
Batch (END processing)
4MHz
1MHz Default
Count input time 500kHz
Page 3-7
constant 250kHz
100kHz
10kHz
4MHz
1MHz Default
Z-phase input time 500kHz
Page 3-8
constant 250kHz
100kHz
10kHz
1 µs
10 µs Default
20 µs
100 µs
Control input time
500 µs Page 3-8
constant
1 ms
CH0 2.5 ms
5 ms
10 ms
CH0 external terminal Default
CH1 external terminal
Internal 50µs pulse
Internal 1µs pulse
Internal 10µs pulse
Input selection Page 3-9
Internal 100µs pulse
CH1 OUT0 output
COM: EnDat2.2/22
COM: BiSS (C-mode)
COM: Yaskawa Serial
1-pulse, dir OFF Default
1-pulse, dir ON
2-pulse inc/dec value
Input mode Page 3-10
2 phase 1X
2 phase 2X
2 phase 4X

3-4 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor

Setting Setting value See


Up/down count Default
Preset count
Counter operation mode Enable accumulate count Page 3-13
Enable count
Set timer count
Linear Default
Count mode Page 3-17
Ring
Unsigned Default
3
Singed count Page 3-18
Signed

HOW TO SETUP
Rising edge Default
Preset operation Falling edge Page 3-19
Level
Clear OFF Default
Reset operation Clear current value at CTC0 Page 3-20
Clear current value at CTC1
OFF Default
Initialize current value Page 3-21
ON (Zero clear)
OFF (load from DM) Default
Initialize setting value Page 3-22
ON
Frequency count Default
Frequency/rotation
Rotation meter A (pulse interval) Page 3-23
meter operation mode
Rotation meter B (rotation time)
CH0 ON at CTC0 Default
CTC0 at OFF
Inverted at CTC0
ON at CTC1
OUT0 output setting OFF at CTC1 Page 3-24
Inverted at CTC1
ON at CTC0, OFF at CTC1
OFF at CTC0, ON at CTC1
Not used
ON at CTC0 Default
OFF at CTC0
Inverted at CTC0
ON at CTC1
OUT1 output setting OFF at CTC1 Page 3-24
Inverted at CTC1
ON at CTC0, OFF at CTC1
OFF at CTC0, ON at CTC1
Not used
Encoder position data
8bit to 48bit Default 32bit Page 3-26
size*1
Serial encoder
communication retry 0 to 2 retries Default 2 retries Page 3-27
times*1
Substitute CH number of CH0 setting value to
CH1 Same as CH0*1 Same as CH0
CH0 ->CH1, CH1 ->CH0.
*1 Used only with CH0. Cannot be configured with CH1.
*2 The range becomes R00000 to R99300 when connected to a KV-7500/7300 whose CPU
function version is 2.2 or earlier.

- KV-SSC02 User’s Manual - 3-5


3-2 Setup with Unit Editor

Details of Setting Items

The following describes the items that can be set up using the Unit Editor.

Setting up leading device

3 KV-SSC02 occupies data memories of 70 words and relays of 7 channels (112 points).
Its leading DM No. and leading relay No. can be set up by setting leading device.
HOW TO SETUP

 Leading DM No.
To set leading No. of DM used in KV-SSC02.
KV-SSC02 occupies data memories of 70 words in total.
Leading data memory that can be set is DM0 to DM65464* .
"List of Data Memories", Page A-6

 Leading relay No.


To set leading relay channel used in KV-SSC02.
KV-SSC02 occupies relays of 7 channels (112) in total.
Leading relay channel that can be set (relay No.) is 000 (R000) to 1993 (R199300).
"List of Relays", Page A-7
* The range becomes 000 to 993 when connected to a KV-7500/7300 whose CPU function version is
2.2 or earlier.

Inter-unit synchronization function

Enable/Disable Inter-unit synchronization function.


Using inter-unit synchronization function allows you to make the operation timing of the units matched.
"6-3 Unit Syncronization", Page 6-14

3-6 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor

Refresh Timing

HOW TO SETUP
When inter-unit synchronization is used, the refreshing timing of CPU device assigned to units will be
set.
"6-3 Unit Syncronization", Page 6-14
Inter-unit synchronization: Refreshes the CPU devices at the time when the inter-unit synchronization
module starts (synchronous refresh).
Batch (END processing): Refreshes the CPU devices at the timing of END processing of the main
routine program.

Point If the inter-unit synchronization function is "enabled", the settings will be enabled. When
"disabled", the CPU devices will be refreshed at the timing of "Global (END processing)".

Count input time constant

Switch input time constant of A-phase and B-phase. (Please see "Wiring Count Input", Page 2-11.)
You can prevent noises (e.g. short pulse width vibration) through increasing the input time constant.
Input time constants of A-phase and B-phase are common.
Input time constants depends on measuring frequency.

Counting frequency Input time constant


4MHz 0.1µs
1MHz Default 0.3µs
500kHz 0.5µs
250kHz 1.0µs
100kHz 1.5µs
10kHz 6.5µs

- KV-SSC02 User’s Manual - 3-7


3-2 Setup with Unit Editor

Z-phase input time constant

3
HOW TO SETUP

Switch the input time constant of z-phase. (See "Wiring Count Input", Page 2-11.)
You can prevent noises (e.g., short pulse width vibration) through increasing the input time constant.
Input time constants depends on measuring frequency.

Counting frequency Input time constant


4MHz 0.1µs
1MHz Default 0.3µs
500kHz 0.5µs
250kHz 1.0µs
100kHz 1.5µs
10kHz 6.5µs

Control input time constant

To switch input time constant of control input of the high-speed counter. (Please see " Example for
wiring control input", Page 2-13. )
Input time constant can set according to external output equipment used as control equipment.
If input is performed to input relay or output with contacts, please increase time constant.
Input time constant
1µs,10µs Default , 20µs, 100µs, 500µs, 1.0ms, 2.5ms, 5.0ms, 10.0ms

3-8 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor

Input selection

HOW TO SETUP
Select the input to count on each channel

Use External Input


Choose this option to use the input via external connector of the unit.

 CH0 external connector / CH1 external connector


Counts the input via CH0 external connector or CH1 external connector.
"I/O connector", Page 2-10

Reference Same external input can be chosen for external input on other channel, or for CH0 and CH1.

Using internal input


Please select this item when internal clock input of the high-speed counter and comparator matching
output of other channels are used.

 Internal 50ns/pulse
Counts the internal clock at 50ns frequency.

 Internal 1µs pulse


Internal clock of 1µs cycle is counted.

 Internal 10µs pulse


Internal clock of 10µs cycle is counted.

 Internal 100µs pulse


Internal clock of 100µs cycle is counted.

 CH1 OUT0 output / CH0 OUT0 output


The rising edge of comparator matching output of other channels can be counted.
When CH0 is selected (comparator matched output OUT0 of CH1)
When CH1 is selected (comparator matched output OUT0 of CH0)
- KV-SSC02 User’s Manual - 3-9
3-2 Setup with Unit Editor

Using serial encoder communication


Please select this item when count value is captured by communicating with the encoder that serial
communication function is provided.

 COM: EnDat2.2/22
Communicates with EnDat2.2/22 encoders.
3
 COM: BiSS (C-mode)
HOW TO SETUP

Communicates with BiSS(C-mode) encoders.

 COM: Yaskawa Serial


Communicates with Yaskawa serial encoders.

"List of serial encoder communication enabled series", Page A-11

Input mode

Specify the input method when the external input "CH0 external terminal/CH1 external terminal" is set
for Input Select.

 1-pulse, dir OFF (B-phase disabled)  1-pulse, dir ON


Default When B-phase is OFF, up counting will performed
at the rising edge of A-phase.
Counting is performed at the rising edge of A-phase. When B-phase is ON, down counting will be
performed at the rising edge of A-phase.
ON ON

A-phase A-phase
OFF OFF

ON

B-phase
OFF

Count value Count value


0 1 2 3 4 5 6 0 1 2 3 2 1 0

3-10 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor

 2-pulse Up/down count


Up counting is performed at the rising edge of A-phase.
Down counting is performed at the rising edge of B-phase.
A-phase ON

(up pulse) OFF

ON
B-phase
(down pulse) OFF

3
Count value

HOW TO SETUP
0 1 2 3 2 1 2 3 4

 2-phase 1x (phase difference)


When B-phase is OFF, up counting will be performed at the rising edge of A-phase.
When B-phase is OFF, down counting will be performed at the falling edge of A-phase.
ON
A-phase
OFF

ON
B-phase
OFF

Count value
0 1 2 3 4 3 2 1 0

 2-phase 2x
When B-phase is OFF, up counting will be performed at the rising edge of A-phase.
When B-phase is OFF, down counting will be performed at the falling edge of A-phase.
When B-phase is ON, down counting will be performed at the rising edge of A-phase.
When B-phase is OFF, up counting will be performed at the falling edge of A-phase.
ON
A-phase
OFF

ON
B-phase
OFF

Count value

0 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 0

- KV-SSC02 User’s Manual - 3-11


3-2 Setup with Unit Editor

 2-phase 4x
When B-phase is OFF, up counting will be performed at the rising edge of A-phase.
When B-phase is OFF, down counting will be performed at the falling edge of A-phase.
When B-phase is ON, down counting will be performed at the rising edge of A-phase.
When B-phase is ON, up counting will be performed at the falling edge of A-phase.
When A-phase is OFF, down counting will be performed at the rising edge of B-phase.
When A-phase is OFF, up counting will be performed at the falling edge of B-phase.
When A-phase is ON, up counting will be performed at the rising edge of B-phase.
3 When A-phase is ON, down counting will be performed at the falling edge of B-phase.
ON
A-phase
HOW TO SETUP

OFF

ON
B-phase
OFF

Count value

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

3-12 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor

Counter operation mode

HOW TO SETUP
Specify the counting mode for input.

 Up/down count mode


In this mode, only input can be counted.

Unsigned (liner mode)

Up
Count input
down

4294967295

Count value 0

Signed (liner mode)

Up
Count input
down

2147483647

Count value 0

-2147483648

- KV-SSC02 User’s Manual - 3-13


3-2 Setup with Unit Editor

Ring mode
Upper limit of ring counter (positive value)

Up
Count input
down

Ring counter

3
upper limit
HOW TO SETUP

Count value 0

 Preset count mode


If Up/down count and preset input are performed in this mode, the count value will be changed to the
preset value.
"4-3 Preset Count Mode", Page 4-8

Up
Count input
Down

Preset input *1

4294967295(linear)
Ring counter upper limit (ring)
Preset value

Start

Count value
Unsigned *2 0

*1 There are two preset input ways: external Z-phase (preset) input and internal preset input.
*2 For the signed count value, see "Up/down count mode", Page 3-13.

3-14 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor

 Enable accumulate count mode


Counting will be performed when enable input is ON. To clear (change) the current value after count
value is accumulated, please perform presetting or change the current value.
"4-4 Enable Accumulate Count Mode", Page 4-10

Up
Count input

3
Down

Preset input

HOW TO SETUP
Enable input*1

4294967295(linear)
Ring counter upper limit (ring)
Preset value

Start

Count value
Unsigned*2 0

*1 There are two enable input ways: external enable input and internal enable setting input.
*2 For the signed count value, see "Up/down count mode", Page 3-13.

 Enable count mode


Counting will be performed when enable input is ON. Counting operation mode is same as the Up/down
count mode. Counting value will be cleared on the the rising edge of enable input.
"4-5 Enable Count Mode", Page 4-12

Up
Count input
Down

Enable input*1

4294967295(linear)
Ring counter upper limit (ring)

Count value
Unsigned*2 0

*1 There are two enable input ways: external enable input and internal enable setting input.
*2 For the signed count value, see "Up/down count mode", Page 3-13.

- KV-SSC02 User’s Manual - 3-15


3-2 Setup with Unit Editor

 Set timer count mode


If the enable input is ON, then counting will be performed within the set time.
Counting value will be kept till the next enable input.
"4-6 Set Timer Count Mode", Page 4-14

Up

3
Count input
Down
Count setting time Count setting time
Enable input*1
HOW TO SETUP

Count value
Unsigned*2 0
Set timer count mode
Operation state relay

*1 There are two enable input ways: external enable input and internal enable setting input.
*2 For the signed count value, see "Up/down count mode", Page 3-13.

3-16 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor

Count mode

HOW TO SETUP
If it is set to liner mode, upper limit of the high-speed counter is 4294967295 (2147483647 for signed
value). If count value starts to be counted up from 4294967295, then the count value is 0 (-2147483648
for signed).
If it is set to ring mode, upper/lower limit of the high-speed counter can be set freely. If count value is
counted up from upper limit, the count value will become lower limit.
Liner mode Ring mode
4294967295
0 (2147483648)
(ˉ2147483648)
2147483648) Upper limit Lower limit
(2147483647)

4294967294 1 Upper limit-1 Lower limit + 1


(2147483646) (2147483647)
(ˉ2147483647)
2147483647)

2 Lower limit + 2
(2147483646)
2147483646)
(ˉ2147483646)

4 3 Lower limit + 4 Lower limit + 3

Values with “( )” for signed counting.

Point In the ring-mode configuration, do not make changes so that the present count value is
greater than the ring counter upper limit value, or smaller than the ring counter lower
limit value. If changes are made, the error relay will be turned on. Thus, change the
present count value or ring counter upper and lower limit values to their respective
appropriate values within the range again. If the count value is in the range of values of
the ring counter, the error relay will be turned off.

- KV-SSC02 User’s Manual - 3-17


3-2 Setup with Unit Editor

Signed counting

Signed counting can be set when counting is performed.

3
HOW TO SETUP

 Unsigned
If counting is set to "Unsigned", the counting range will be 0 to 4294967295.
Linear mode Ring mode
4294967295
Ring counter
upper limit

0 Ring counter
lower limit

 Signed Default

If counting is set to "Signed", the counting range will be -2147438648 to +2147483647.

Linear mode Ring mode


2147483647
Ring counter
upper limit

0 Ring counter
lower limit

–2147483648

When set to "Signed", the following relays will operate.


• Counter current value Overflow relay: If the signed 32-bit range is exceeded, the relay will be set.
• Comparator under relay: If CTC is set to "signed", the comparator result is also signed.
"Count mode", Page 3-17

3-18 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor

Preset operation

Operating conditions of external preset input can be set through preset operation.
There are two ways for presetting: external Z-phase (preset) input and internal preset request relay ON.
Preset operation can be enabled only in Preset count or Enable accumulate count mode.

HOW TO SETUP
 Rising edge Default

Preset operation will be performed at the rising edge of external Z-phase (preset) input signal.

 Falling edge
Preset operation will be performed at the falling edge of external Z-phase (preset) input signal.

 Level
Counting value will be fixed to the preset value when external Z-phase (preset signal) is ON, .

- KV-SSC02 User’s Manual - 3-19


3-2 Setup with Unit Editor

Reset operation

In KV-SSC02, when count value matches with comparator value, the count value will be cleared
automatically. In this case, reset operation will be performed.

3
HOW TO SETUP

 Clear OFF Default

Counting value will not be cleared even if it has reached the comparator value.

 Clear current value at CTC0


When count value matches with the setting value (CTC0) of comparator 0, zero clearing will be
performed automatically.

Count input

Comparator value (CTC0)

Count value
0

 Clear current value at CTC1


When count value matches with the setting value (CTC1) of comparator 1, zero clearing will be
performed automatically.

Count input

Comparator value(CTC1)

Count value
0

3-20 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor

Initialize current value

Counter current value can be cleared automatically at the rising edge (OFF -> ON) of the operation
enable relay. If you want clear the current value, please set this item to "ON".

HOW TO SETUP
 OFF Default

If "OFF" is specified, at the start of the operation enable relay (OFF -> ON), counting restarts from the
last present count value stored in the KV-SSC02 buffer memory.

 ON (zero clear)
Current value is initialized to 0 automatically at the rising edge (OFF -> ON) of operation enable relay.

Reference When the power is turned OFF, the KV-SSC02 buffer memory will be cleared. You need to
perform the following procedures if you continue to use the previous count value even
after turning OFF the power:
• Set "Initialize the current value" to "Do not initialize".
• Store the present count value to the data retention memory while the operating relay is
ON.
• After the power is turned ON, write the value of the data retention memory using the
U_WRCNT instruction before turning ON the operation enable relay.
"U_WRCNT", Page 5-12
• Turn the operation enable relay ON.

- KV-SSC02 User’s Manual - 3-21


3-2 Setup with Unit Editor

Initialize setting

All the specified values can be initialized automatically when switching the CPU unit from the program
(PROG) state to the run (RUN) state. If you want to initialize, please set this item to "ON".

3
HOW TO SETUP

 OFF (load from DM) Default

If "OFF (load from DM)" is set, setting value stored in data memory will be taken as the setting value of
KV-SSC02 at the rising edge of operation enable relay (OFF -> ON).

Point If the data memory value assigned in the settings is to be changed when the
operation enable relay is OFF, the changed setting can be written into KV-SSC02 at
the rising edge of operation enable relay (OFF -> ON).

 ON
When switching from PROG status to RUN status, settings of KV-SSC02 will be initialized
automatically. To change the setting of KV-SSC02 to a value other than the default value, please use
the setting update request relay.
The setting value is not changed at the rising edge (OFF -> ON) of the operation enable relay.
"Changing (updating) Comparator/Preset Setting Value", Page 3-31

 Initialize setting and default value

Item Default
Current value change value 0
Preset setting value 0
Comparator setting value 0
Input capture operation setting 0 (disabled)
Ring counter upper limit setting value 2147483647 (max. positive value for signed counting)
Ring counter lower limit setting value 0
Count setting time 1 (ms)
Averaging processing count 1
Minimum sampling time 30.0(µs)
Setting for the number of pulses per rotation for the
1 (pulse)
tachometer

3-22 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor

Frequency/Rotation meter mode

HOW TO SETUP
Specify the method to calculate the frequency/rotation from count input.

 Frequency count mode


Frequency is calculated automatically from count input interval, and the calculation result is written to
data memory.
Pulse interval of each pulse input is measured, and frequency is calculated.
If the pulse interval becomes to be longer than the previous measurement time, it is determined as
deceleration, frequency is calculated in real time.
If there is no pulse input within 1.5 second, frequency is set to 0 Hz.
"4-7 Frequency Count Mode", Page 4-16

 Rotation meter A mode (pulse interval)


Rotation speed (rpm) is calculated automatically according to counting input and number of pulses per
revolution, and the result will be written to data memory.
If A mode is selected, pulse interval of each pulse input is measured and the number of rotations is
calculated. If the pulse interval becomes to be longer than the previous measurement time, it is
determined as deceleration, the rotation speed will be calculated in real time. If the pulse interval
becomes longer than 1.5 second, it will be 0rpm.
"4-8 Rotation meter Mode", Page 4-20

 Rotation meter B mode (rotation time)


Rotation speed (rpm) is calculated automatically according to counting input and number of pulses per
revolution, and the result will be written to data memory.
If B mode is selected, each rotation speed is calculated by the measurement of time per single rotation
for each rotation. If the time per a single rotation becomes longer than the previous measurement time,
it is determined as deceleration, the rotation speed will be calculated in real time. If the rotation speed
becomes 40rpm or less, it will be 0rpm.
"4-8 Rotation meter Mode", Page 4-20

- KV-SSC02 User’s Manual - 3-23


3-2 Setup with Unit Editor

OUT0/OUT1 output setting

Counting value will be compared with the comparator setting value, if same, the external output OUT0
and OUT1 are set to ON/OFF.
An output setting condition can be selected from matching with CTC0, matching with CTC1 or matching
with CTC0 and CTC1.

3
HOW TO SETUP

Match with CTC0 setting conditions


 ON at CTC0 Default

If count value matches with the setting value of comparator 0 (CTC0), output OUT0 will be ON.

Detail
CTC0
CTC0 100

CTH 98 99 100 101


Count value
ON
(before matchingˈOFF) CUT0
OUT0 OFF

 OFF at CTC0
If count value matches the setting value of comparator 0 (CTC0), output OUT0 will be OFF.

CTC0

Count value
ON
(before matching, ON)
OUT0 OFF

3-24 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor

 Inverted at CTC0
If count value matches with the setting value of comparator 0 (CTC0), then output OUT0 will be
inverted. (ON -> OFF, OFF -> ON)

CTC0

Count value 3
ON

HOW TO SETUP
OUT0 OFF
(before matching, OFF) OFF→ON ON→OFF OFF→ON

Match with CTC1 setting conditions


Setting condition is same as that of "matching with CTC0".

 ON at CTC1
If count value matches with the setting value of comparator 1 (CTC1), output OUT0 will be ON.

 OFF at CTC1
If count value matches with the setting value of comparator 1 (CTC1), output OUT0 will be OFF.

 Inverted at CTC1
If count value matches with the setting value of comparator 1 (CTC1), output OUT0 will be inverted.
(ON -> OFF, OFF -> ON)

Match with CTC0 setting conditions


A setting condition in which matching with CTC0 and CTC1 is set.

 ON at CTC0, OFF at CTC1


If count value matches with the setting value of comparator 0 (CTC0), then output OUT0 will be ON; If it
matches with the setting value of comparator 1 (CTC1), OUT0 will be OFF.

CTC1

CTC0

Count value
ON

OUT0 OFF
(before matching, ON)

- KV-SSC02 User’s Manual - 3-25


3-2 Setup with Unit Editor

 OFF at CTC0, ON at CTC1


If count value matches with the setting value of comparator 0 (CTC0), output OUT0 will be OFF; if it
matches with the setting value of comparator 1(CTC1), OUT0 will be ON.

CTC1

CTC0

3
Count value
HOW TO SETUP

ON

OUT0 OFF
(before matching, ON) OFF ON

 Not used
Please set this item when external output is not used.

Serial encoder position data size

Specify the number of bits for position data which is acquired by the serial encoder communication
functions.
Set it from 8 to 48 bits according to the corresponding encoder specifications.

Point Specify the position data size for the serial encoder only when "COM: EnDat2.2/22" or
"COM: BiSS (C-mode)" is selected for CH0 Input Select.

3-26 - KV-SSC02 User’s Manual -


3-2 Setup with Unit Editor

Serial encoder communication retry times

Specify the number of retries from 0 to 2 in case that the serial encoder communication functions fail to
acquire position data. If the functions still fail to acquire position data after the specified number of
retries have been attempted, a unit error occurs. When the number is set to 0, no retries are attempted.

HOW TO SETUP
Point Specify the number of retries only when COM: EnDat2.2/22", "COM: BiSS (C-mode)", or
"COM: Yaskawa Serial" is selected for CH0 Input Select.

- KV-SSC02 User’s Manual - 3-27


3-3 How to Make a Program
This section describes necessary basic programs when using KV-SSC02.

Programming Flow

Write necessary setting value to data memory.


According to the requirement of operation modes, write set value in the given data memory.

3 • Set the comparator setting value


• Set the input capture operation setting
HOW TO SETUP

• Set upper/lower limits of ring counter


• Perform necessary setup in frequency count and Rotation meter mode

Set operation enable relay


• Start counting (write setting value)( page 3-29)
Setting value will be written into KV-SSC02 at the rising edge of operation enable relay, and
the counting operation that matches with the operation mode will be started*1.

*1 Setting value initialization in Unit Editor will be set to “OFF (loaded from
DM)”(default), at rising edge of Operation enable relay, set value is written to
KV-SSC02.

Above is the basic programming flow.


According to your using ways, please also set the following items in addition to the above-mentioned
contents:
• "Changing (updating) Comparator/Preset Setting Value", Page 3-31
• "External Output ON/OFF", Page 3-35
• "Using Enable Input", Page 3-39
• "Executing Input Capture", Page 3-41
• "Changing (clearing) count current value", Page 3-45
• "Confirming Other Operation States", Page 3-47

3-28 - KV-SSC02 User’s Manual -


3-3 How to Make a Program

Start Counting (write setting value) Common to all modes

Counting can be started when operation enable relay is ON.


If the initial setting of the Unit Editor is set to "(load from DM)" Default , values that have been written
into the assigned data memory will be written into KV-SSC02 at the rising edge of operation enable
relay (OFF -> ON), and counting will be started.
"Initialize setting", Page 3-22 3

HOW TO SETUP
 Steps
(1) According to the operation mode used, settings are written into the assigned data memory (DM).
(2) Operation enable relay is set to preset status.

Relationship Between Operation Mode and Setting Items ( ○ : available; -: unavailable)

Upper/lower
Input capture Set time for
Operation mode Comparator value limits of ring
operation setting counting
counter
Up/down count    -
Preset count    -
Enable accumulate count  *  -
Enable count  *  -
Set timer count  *  

* Input capture 0 can't be used when Enable count mode, Enable accumulate count mode or Set timer
count mode is used.

Setting for the


Number of Minimum
Operation mode number of pulses
averagings sampling time
per rotation
Frequency count   -
Rotation meter A   
Rotation meter B   -

Example When using CH0, the comparator 0 value (CTC0) is written into KV-SSC02 to start the count
operation.

Example for Unit Editor setup


Leading DM No. ......................................DM10000
Leading relay No. ....................................R30000
Data memory
CH0 comparator 0 setting value .............DM10035 (higher bits), DM10034 (lower bits)
(CH0 : leading DM+34, CH1 : leading DM+54)
Relay No.
CH0 operation enable relay.....................R30000 (CH0 : leading+000, CH1 : leading+100)

- KV-SSC02 User’s Manual - 3-29


3-3 How to Make a Program

Ladder
When turning ON the power, the comparator 0 value (CTC0) is set to 2000, and then is written
into KV-SSC02 once MR000 is turned ON to start the count operation.

;Mnemonics list
Write setting value when power is ON
; Write setting value when power is ON
CR2008 MOV.L
#2000 DM10034
LD CR2008
MOV.L #2000 DM10034

3
ON for 1 scan ch0 comparator 0 ; Start counting when input MR000 is ON
at start of operation setting value L
LD MR000
Start counting when input MR000 is ON OUT R30000
HOW TO SETUP

MR000 R30000

ch0 operation
enable

Reference When direct I/O relay (DR) is used, I/O relay read/write will be performed independent of
scanning time.
KV-8000 Series User's Manual, "4-6 Program Structure and Operation"
KV-7000 Series User's Manual, "4-6 Program Structure and Operation"

 Behavior of A-phase (B-phase) input and A-phase (B-phase) input state


relay
Scanning time of CPU unit

OUT output
(KV-SSC02)

A-phase (B-phase)
input state relay
(CPU unit)

Reference If using the direct I/O relay (DR), the "A-phase (B-phase) input" at the point can be read
out.

3-30 - KV-SSC02 User’s Manual -


3-3 How to Make a Program

Changing (updating) Comparator/Preset Setting Value Common to all modes

The following describes how to change (update) comparator setting value or preset setting value.

 Steps
(1) According to the operation mode used, write setting value into the assigned data memory (DM).

3
(2) Write setting value into KV-SSC02. Set request relay according to the setting value.
(3) If setting value writing is finished, the write complete relay will be ON.
(4) Reset the write request relay reset after the write complete relay is ON.

HOW TO SETUP
(5) Start counting.
(6) Change (update) setting value. Repeat step 1 to 4.
Relationship Between Relays for Updating Settings and Setting Items

Upper/ Setting for


Comparato Input capture lower Minimum the
Set Number of
r setting operation limits of sampling number of Preset value
time averagings
value setting ring time pulses per
counter rotation
Relays Setting update request relay Preset write request relay
used Setting update complete relay Preset write complete relay

The relationship between operation mode and setting items ( ○ : usable; -: not usable)

Upper/lower
Comparator Preset setting Input capture Set counting
Operation mode limits of ring
value value operation setting time
counter
Up/down count  *2   -
Preset count     -
Enable accumulate count   *1  -
*2
Enable count   *1  -
Set timer count  *2 *1  
*1 Input capture 0 can't be used when Enable count mode, Enable accumulate count mode or Set timer
count mode is used.
*2 Preset setting value can be changed. However, preset request relay is not accepted. (disabled)

Setting for the


Number of Minimum
Operation mode number of pulses
averagings sampling time
per rotation
Frequency count   -
Tachometer A   
Tachometer B   

Example If CH0 is used in the preset count mode, change the comparator 0 setting value and the preset
value respectively.

Example for Unit Editor setup


Leading DM No. .............................................DM10000
Leading relay No. ...........................................R30000
Operation mode..............................................Preset count
Preset operation .............................................rising edge
Data memory
CH0 preset setting value ................................DM10033 (high bits), DM10032 (low bits)
(CH0 : leading DM+32, CH1 : leading DM+52)
CH0 comparator 0 setting value.....................DM10035 (high bits), DM10034 (low bits)
(CH0 : leading DM+34, CH1 : leading DM+54)

- KV-SSC02 User’s Manual - 3-31


3-3 How to Make a Program

Relay No.
CH0 preset value write request relay ..................R30006 (CH0 : leading+006, CH1 : leading+106)
CH0 preset value write complete relay ...............R30306 (CH0 : leading+306, CH1 : leading+406)
CH0 setting update request relay........................R30005 (CH0 : leading+005, CH1 : leading+105)
CH0 setting update complete relay .....................R30305 (CH0 : leading+305, CH1 : leading+405)

Ladder
3 At power on, preset setting value is set to 500, and comparator 0 setting value (CTC0) is set of
30000.
HOW TO SETUP

;Mnemonics list
Write the values when turning on the power.

CR2008
MOV.L ; Write the values when turning on the power.
+500 DM10032 LD CR2008
MOV.L +500 DM10032
ON for 1 scan ch0 preset value L
at start of operation
MOV.L +30000 DM10034
MOV.L
; Change or update the values are at the start of MR100.
+30000 DM10034
LDP MR100
MOV.L DM0 DM10032
ch0 comparator 0 MOV.L DM2 DM10034
value L
Change or update the values are at the start of MR100.
LDP MR100
OR R30006
MOV.L
MR100 ANB R30306
DM0 DM10032 OUT R30006
ch0 preset value L LDP MR100
OR R30005
MOV.L ANB R30305
DM2 DM10034 OUT R30005
; Start the count operation when turning MR000 ON.
ch0 comparator 0
value L LD MR000
MR100 R30306 R30006 OUT R30000

ch0 preset value ch0 preset value


write complete write request

R30006

ch0 preset value write request

MR100 R30305 R30005

ch0 settings ch0 settings


update complete update request

R30005

ch0 settings update request

Start the count operation when turning MR000 ON.

MR000 R30000

ch0 operation
enable

Reference • When unit dedicated commands such as U_WRCTC0, U_WRCTC1, U_WRPST are
used, handshake control by write request relay is not required, and the setting values
can be written without regardless of the scan time.
"KV-SSC02 Unit Specific Instructions", Page 5-2
• When direct I/O relays (DR) are used, I/O relay read/write will be performed
independent of scanning time.
KV-8000 Series User's Manual, "4-6 Program Structure and Operation"
KV-7000 Series User's Manual, "4-6 Program Structure and Operation"

3-32 - KV-SSC02 User’s Manual -


3-3 How to Make a Program

Example Change the comparator 0 setting value (CTC0) by the comparator 0 match interrupt when
CH0 is used as up-down count mode.
Example for Unit Editor setup
Leading DM No. .............................................DM10000
Leading relay No. ...........................................R30000
Data memory
CH0 comparator 0 value ................................DM10035 (high bits), DM10034 (low bits)

Relay No.
(CH0 : leading DM+34, CH1 : leading DM+54) 3

HOW TO SETUP
CH0 setting update request relay........................R30005 (CH0 : leading+005, CH1 : leading+105)
CH0 setting update complete relay .....................R30305 (CH0 : leading+305, CH1 : leading+405)

Ladder
When the power turns on, the comparator setting value is set to 10000. Every time the
comparator 0 setting value is changed, 10000 is added to the current setting value.

Write the values when turning on the power. ;Mnemonics list


CR2008
Write the values when turning on the power.
EI
LD CR2008
ON for 1 scan
MOV.L EI
at start of operation +10000 DM10034 MOV.L +10000 DM10034
ch0 comparator 0 ; Start the count operation when turning MR000 ON.
value L
Start the count operation when turning MR000 ON. LD MR000
MR000 R30000 OUT R30000
; Every time the comparator 0 value is changed,
Every time the comparator 0 value is changed,
ch0 operation ; add 10000 from the current value.
enable
add 10000 from the current value. LDP R30300
R30300 DM10034 +10000 DM10034 ORP R30305
LDA.L ADD.L STA.L LDA.L DM10034
ch0 operating ch0 comparator 0 ch0 comparator 0 CON
R30305
value L value L ADD.L +10000
CON
ch0 settings update complete STA.L DM10034
R30305 R30005 LDP R30305
RES RES R30005
ch0 settings update complete ch0 settings ; Reset comparator 0 match relay.
Reset comparator 0 match relay.
update request
LD R30302
R30302
OUT R30002
R30002
; Turn OUT0 on for 0.5 seconds.
ch0 comparator 0 match relay ch0 comparator 0 LD R30309
match state reset TMR #0 #5
Turn OUT0 on for 0.5 seconds.
LD T0
R30309 #5 OUT R30008
T 0
END
ch0 OUT0 output state
T0 R30008
; Using a comparator 0 match as a trigger,
; change the comparator 0 value with an interrupt.
ch0 OUT0 reset INT #1 #0
END LD CR2002
SET DR30005
Using a comparator 0 match as a trigger, change the comparator 0 value with an interrupt. RETI
INT ENDH
Unit number Cause of an interrupt
#1 #0
KV-SSC02 CH0 comparator 0
match
CR2002 DR30005
SET
ch0 settings update request
Always ON
RETI

ENDH

- KV-SSC02 User’s Manual - 3-33


3-3 How to Make a Program

 Function of the setting update request relay and setting update completion relay

Setting update request relay (1) (3)


CH0 : leading005
CH1 : leading 105
Setting update
Settting update complete

3 relay
CH0 : leading 305
(2) (4)
CH1 : leading 405
HOW TO SETUP

(1) The setting update relay is set to ON by the ladder program.


(2) If settings in KV-SSC02 have been updated, setting update complete relay will be ON.
(3) If the setting update complete relay is ON, the ladder program is used to set the setting update
request relay to OFF.
(4) If the setting update request relay is OFF, the setting update complete relay will also be OFF.

Reference In PROG mode, the setting update request relay and setting update complete relay will
also be enabled.

 Functions of preset value write request relay and preset value write completion relay

(1) (3)
Preset value write request relay
(CH0 : leading + 006,
CH1 : leading + 106)
Setting update
Preset value write complete relay
(CH0 : leading + 306,
(2) (4)
CH1 : leading + 406)

(1) The preset value write request relay is set to ON by the ladder diagram.
(2) If preset values in KV-SSC02 have been updated, then the preset value write complete relay will be
ON.
(3) If the preset value write complete relay is ON, then the preset value write request relay will be set to
OFF by the ladder program.
(4) If the preset value write request relay is OFF, then the preset value write complete relay will also be
OFF.

Reference In PROG mode, the preset value write request relay and preset value write complete
relay will also be enabled.

3-34 - KV-SSC02 User’s Manual -


3-3 How to Make a Program

External Output ON/OFF Common to all modes

2 external outputs are available for each channel on KV-SSC02.


There are two ways to set external output ON/ OFF: compare the current value with the comparator
setting value, output by internal relay forcedly.

 Output by matching with comparator (not applicable to Frequency count and tachometer A/B mode) 3
Count current value is compared with the comparator setting value, and the output will be ON/OFF

HOW TO SETUP
depending on the compared result.
This enables high-speed response that is not reliant on the PLC's scan time.
You can perform the interrupt processing as a trigger of comparator match.
"OUT0/OUT1 output setting", Page 3-24
"6-1 Unit Interrupt Function", Page 6-2

 Output based on internal relays


External output OUT0 and OUT1 are forced ON/OFF at the rising edge of assigned OUT0/1 and reset
relay (OFF -> ON).
This can be used to force the output ON/OFF when operation is checked and output status is changed
according to comparator matching result.

Point • External output can be ON/OFF only when the operation enable relay is ON. If the
operation enable relay is OFF, the external output will also be OFF.
• When OUT0/1 set relay and OUT0/1 reset relay" are ON in the mean time, the
reset operation will be performed first.

 Steps
(1) Start counting.
(2) If count value matches with the comparator 0 setting value (CTC0), output OUT0 will be ON.
(3) After the OUT0 output status relay is ON for 3 s, the OUT0 reset relay will also be ON.
(4) Output OUT0 is OFF.

Example When using CH0, the OUTPUT 0 output is output for 3 seconds once the count value has
reached the comparator 0 value (CTC0).

Unit Editor setup example


Leading DM No. ......................................DM10000
Leading relay No. ....................................R30000
OUT0 output setting ................................CTC0 ON
DM No.
CH0 comparator 0 setting value..............DM10035 (higher bits), DM10034 (lower bits)
(CH0 : leading DM+34, CH1 : leading DM+54)
Relay No.
CH0 operation enable relay.....................R30000 (CH0 : leading+000, CH1 : leading+100)
CH0 OUT0 output status relay ................R30309 (CH0 : leading+309, CH1 : leading+409)
CH0 OUT0 reset relay.............................R30008 (CH0 : leading+008, CH1 : leading+108)

- KV-SSC02 User’s Manual - 3-35


3-3 How to Make a Program

Ladder
;Mnemonics table
Write setting value when power is ON
; Write setting value when power is ON
CR2008 MOV.L LD CR2008
#2000 DM10034
MOV.L #2000 DM10034
ON for 1 scan ch0 comparator 0 ; Start counting when input MR000 is ON
setting value L
at start of operation
LD MR000
Start counting when input MR000 is ON OUT R30000
; After 3 s when OUT0 output is ON, output OUT0 is OFF via OUT0 reset relay

3
MR000 R30000 LD R30309
TMR #0 #30
ch0 operation LD T0
enable OUT R30008
HOW TO SETUP

After 3 s when OUT0 output is ON, output OUT0 is OFF via OUT0 reset relay

R30309 #30
T0

ch0 OUT0
output status

T0 R30008

ch0 OUT0
reset

Reference When direct I/O relays (DR) are used, I/O relay read/write will be performed independent
of scanning time.
KV-8000 Series User's Manual, "4-6 Program Structure and Operation"
KV-7000 Series User's Manual, "4-6 Program Structure and Operation"

 Function of OUT output and OUT output status relay


Scanning time of CPU unit

OUT output
(KV-SSC02)

OUT output status relay


(CPU unit)

Reference When direct I/O relays (DR) are used, the "OUT output" at that time can be read.

3-36 - KV-SSC02 User’s Manual -


3-3 How to Make a Program

Preset Enable accumulate


Executing a Preset counting count

Count current value can be preset during counting operation when the Preset count mode or Enable
accumulate count mode is used.
Two preset input ways available: external Z-phase (preset) input and internal preset input.

 Using external Z-phase (preset) input 3


This method is used to preset count current value through the external output signals such as sensor

HOW TO SETUP
and coder Z-phase.
Using the Unit Editor, you can set 3 preset methods for external input: "Rise", "Fall" and "Level".
Rise Fall Level

External Z phase (Preset) input

Preset value

Count value

 Using internal preset


Counting value is preset through the assigned internal preset request relay.

 Steps: Using internal preset


(1) Start counting.
"Start Counting (write setting value)", Page 3-29
(2) Set the internal preset request relay.
(3) If internal preset is performed, the internal preset complete relay will be ON.
(4) Internal preset request relay can be reset after the internal preset complete relay is ON.

Point When current value write request based on preset and current value write request
based on current value write request relay happen in the mean time, the latter is
performed first.

Example When CH0 is used in Preset count mode, internal preset will be performed.

Example for Unit Editor setup


Leading DM No. ......................................DM10000
Leading relay No. ....................................R30000
Operation mode.......................................Preset count
Preset operation ......................................Rising edge*
* If internal preset is used, preset operation will be same when any one of "Rising edge",
"Falling edge" and "Level" is selected.
Relay No.
CH0 internal preset value request relay ..R30007 (CH0 : leading+007, CH1 : leading+107)
CH0 internal preset value complete relayR30307 (CH0 : leading+307, CH1 : leading+407)

- KV-SSC02 User’s Manual - 3-37


3-3 How to Make a Program

Ladder
If MR001 is ON, then internal preset will be performed.
;Mnemonics table
Start the count operation when turning MR000 ON.
; Start the count operation when turning MR000 ON.
MR000 R30000 LD MR000
OUT R30000
ch0 operation ; Run the internal preset at the start of MR100.
enable
Run the internal preset at the start of MR100. LDP MR100
OR R30007

3
MR100 R30307 R30007
ANB R30307
ch0 internal OUT R30007
ch0 internal
preset complete preset request
R30007
HOW TO SETUP

ch0 internal
preset request

Point Writing of the preset setting values is required separately.


" Changing (updating) Comparator/Preset Setting Value", Page 3-31

Reference • When unit specific instructions are used, read/write operation of buffer memory can be
performed independent of scanning time.
"KV-SSC02 Unit Specific Instructions", Page 5-2
• When direct I/O relays (DR) are used, I/O relay read/write will be performed
independent of scanning time.
KV-8000 Series User's Manual, "4-6 Program Structure and Operation"
KV-7000 Series User's Manual, "4-6 Program Structure and Operation"

 Relation among external Z-phase (preset) input, external preset input state
relay, Z-phase detection relay, and Z-phase detection reset relay
CPU scan time

External Z-phase (preset) input


(KV-SSC02)

External preset (Z-phase) input state relay


(CPU unit)

Z-phase detection relay


(CPU unit)

Z-phase detection reset relay


(CPU unit)

Reference When direct I/O relays (DR) are used, the present input state can be read.

 Function of the internal preset request relay and internal preset complete relay
(1) (3)
Internal preset request relay
(CH0 : leading + 007,
CH1 : leading + 107)
Internal preset
Internal preset end relay
(CH0 : leading + 307,
(2) (4)
CH1 : leading + 407)
(1) The internal preset request relay is set to ON by the ladder program.
(2) If preset values in KV-SSC02 have been changed, the internal preset complete relay will also be ON.
(3) If the internal preset complete relay is ON, the internal preset request relay will be set to OFF by the
ladder program.
(4) If the internal preset value request relay is OFF, the internal preset complete relay will also be OFF.
3-38 - KV-SSC02 User’s Manual -
3-3 How to Make a Program

Enable Enable accumulate


Using Enable Input counting count Set timer count

When Enable count mode, Enable accumulate count mode or Set timer count mode or used, the
counting input will be disabled if not set to "enabled" status.
Two ways available for setting the counting input enable status: external enable input ON and internal enable set.

 Steps: Using internal enable 3


(1) Start counting.

HOW TO SETUP
"Start Counting (write setting value)", Page 3-29
(2) Set the internal enable set relay. While the internal enable set relay is ON, the counting input is
enabled, and counting is performed.
(3) Reset the internal enable set relay.

Example When CH0 is used in Enable count mode, internal enable is performed.

Example for Unit Editor setup


Leading DM No. ......................................DM10000
Leading relay No. ....................................R30000
Operation mode....................................... Enable count
Relay No.
CH0 internal enable set relay ..................R30015 (CH0 : leading+015, CH1 : leading+115)
Ladder
When ON, enable status is set (counting enabled).
;Mnemonics table
Start counting when input MR000 is ON
; Start counting when input MR000 is ON
MR000 R30000 LD MR000
OUT R30000
ch0 Operation ; Set internal enable
enable LD MR001
Set internal enable
OUT R30015

MR001 R30015

ch0 internal
enable set

Reference When direct I/O relays (DR) are used, I/O relay read/write will be performed independent
of scanning time.
KV-8000 Series User's Manual, "4-6 Program Structure and Operation"
KV-7000 Series User's Manual, "4-6 Program Structure and Operation"

- KV-SSC02 User’s Manual - 3-39


3-3 How to Make a Program

 Relationship between external enable input and external enable input state relay
The input capture 0 (enable) input serves as an enable input when using an enable count, an enable
multiplication count, and a set time period count.
CPU scaning time

External input capture 0

3 (enable) input
˄KV-SSC02˅
HOW TO SETUP

INPUT0/external enable
input state relay
(CH0 : leading + 505ˈ
CH1 : leading + 605)

Reference When direct I/O relays (DR) are used, the present I/O state can be read.

 Relationship between external enable input and internal enable set relay

Input capture 0
(enable) input
(KV-SSC02)

Internal enable set relay


(CH0 : leading + 015,
CH1 : leading + 115)

Counter operation disabled enabled disabled enabled disabled enabled disabled

3-40 - KV-SSC02 User’s Manual -


3-3 How to Make a Program

Up/down Preset Enable Enable accumulative Counting


Executing Input Capture counting counting counting counting within set time

If input capture input is performed,the count current value will be immediately stored into data memory.

 What is "Input capture"

3
Input capture function refers to the function used to store the count current value into data memory
when "Input capture" is performed.
Since it is not influenced by CPU scanning time, count current value can be captured instantly when

HOW TO SETUP
input capture is performed. Response speed for input capture as follows: Control input time constant is
set in the unit editor.

ON/OFF Response time (1µs) + control input time constant

"Control input time constant", Page 3-8

 Steps
(1) Operation setting of "input capture" is written into the data memory assigned to units.
(2) Operation enable relay is set (counting is started).
(3) Values obtained through input capture are written into DM0.

Example Run the input capture when using CH0. The captured present count value is written into DM1
and DM0 at the start of the input capture input.

Example for Unit Editor setup


Leading DM No. ......................................DM10000
Leading relay No. ....................................R30000
Data memory
Input capture 0 operation setting.............DM10038
(CH0 : leading DM+38, CH1 : leading DM+58)
Input capture 0 current value...................DM10003 (higher bits), DM10002 (lower bits)
(CH0 : leading DM+2, CH1 : leading DM+16)
Relay No.
Input capture 0 input status .....................R30312 (CH0 : leading+312, CH1 : leading+412)
(External) input capture (enable) 0 input*
* The input capture (enable) 0 input can be used as an enable input only when Enable
count mode, Enable accumulate count mode or Set timer count mode is used.

- KV-SSC02 User’s Manual - 3-41


3-3 How to Make a Program

Ladder
Used to perform input capture and write the captured value into DM1/R000.
;Mnemonics table
Write setting value when power is ON ; Write setting value when power is ON
CR2008
LD CR2008
MOV
#1 DM10038 MOV #1 DM10038
; Start counting when input MR000 is ON
ON for 1 scan
at start of operation ch0 input capture 0
operation setting
LD MR000

3
OUT R30000
Start counting when input MR000 is ON ; Input capture 0 when input status relay is ON,
MR000 R30000
; Write input capture 0 current value to DM0
LDP R30312
HOW TO SETUP

MOV.L DM10003 DM0


ch0 operation
enable
Input capture 0 when input status relay is ON,
Write input capture 0 current value to DM0

R30312 MOV.L
DM10003 DM0

ch0 Input capture 0 ch0 input capture 0


input state current value L

Reference • When direct I/O relays (DR) are used, I/O relay read/write will be performed
independent of scanning time.
KV-8000 Series User's Manual, "4-6 Program Structure and Operation"
KV-7000 Series User's Manual, "4-6 Program Structure and Operation"

3-42 - KV-SSC02 User’s Manual -


3-3 How to Make a Program

 Relationship of input capture input and input status relay


The input capture input state relay is turned on when the input capture is executed.
Regardless of the input capture input state relay, input capture current value will be updated every time
input capture is executed.

rising edge operation setting

Count value˄KV-SSC02˅
(1) (2)
(3)
(4)
3
External input

HOW TO SETUP
Capture input˄KV-SSC02˅

Capture input
Input status relay (CPU unit)

Input capture
reset relay (CPU unit)

INPUT0 (INPUT1)
Input state relay (CPU unit)
Input capture current value (1) (2) (4)
(PU unit)

falling edge operation setting


(3)
(2)

Count value (KV-SSC02) (1)

External input
Capture input (KV-SSC02)

Capture input
Input status relay (CPU unit)
Input capture
reset relay (CPU unit)

INPUT0 (INPUT1)
Input state relay (CPU unit)

Input capture current value (1) (3)


(PU unit)

Rising/falling edge operation setting


(4)
(3)
Count value (KV-SSC02) (1) (2)
External input
External input (KV-SSC02)

External input
Input status relay (CPU unit)

Input capture
reset relay (CPU unit)

INPUT0 (INPUT1)
Input state relay (CPU unit)

Input capture current value (1) (2) (4)


(PU unit)

- KV-SSC02 User’s Manual - 3-43


3-3 How to Make a Program

 Function of the input capture input status relay and input capture reset relay

Input capture 0 input status relay (1) (3)


(CH0 : leading+312, CH1: leading+412)
Input capture 1 input status relay
(CH0 : leading+313, CH1: leading+413)

3 Input capture 0 reset relay


HOW TO SETUP

(CH0 : leading+012, CH1: leading+112)


Input capture 1 reset relay
(CH0 : leading+013, CH1: leading+113) (2) (4)

(1) If input capture is input in KV-SSC02, input capture input status relay will be ON.
(2) When input capture input status turns ON, input capture reset relay will be ON in the ladder
program.
(3) If input capture reset relay is ON, input capture input status relay will be OFF.
(4) When input capture input status turns OFF, input capture reset relay will be OFF in the ladder
program.

3-44 - KV-SSC02 User’s Manual -


3-3 How to Make a Program

Up/down Preset Enable Enable accumulative


Changing (clearing) count current value counting counting counting counting Set timer count

Count current value can be changed during operation.


If count current value is to be reset, the count current value can be changed to 0 using this function.
Same preset function can be also used when Preset count mode and Enable accumulate count mode are used.

 Steps
(1) The count value is written that you want to change to the value change region of the current value.
3

HOW TO SETUP
(2) Set the current value write request relay.
Write new current value into KV-SSC02.
(3) Check that the current value write request relay is on, and then reset the current value write request
relay.

Example When using CH0, the present count value of the high-speed counter is set to 0.

Example for Unit Editor setup


Leading DM No. ......................................DM10000
Leading relay No. ....................................R30000
Data memory
Change value of count current value.......DM10031 (higher bits), DM10030 (lower bits)
(CH0 : leading DM+30, CH1 : leading DM+50)
Relay
Current value write request relay ............R30004 (CH0 : leading+004, CH1 : leading+104)
Current value write complete relay..........R30304 (CH0 : leading+304, CH1 : leading+404)

Ladder
Start the count operation when turning MR000 ON. ;Mnemonics table
MR000 R30000 ; Start the count operation when turning MR000 ON.
LD MR000
ch0 operation
enable
OUT R30000
Change the present count value to 0 at the start of MR100. ; Change the present count value to 0 at the start of MR100.
MR100 MOV.L LDP MR100
+0 DM10030 MOV.L +0 DM10030
LDP MR100
ch0 changed
current value L
OR R30004
MR100 R30304 R30004
ANB R30304
OUT R30004
ch0 current value ch0 current value
write complete write request
R30004

ch0 current value


write request

- KV-SSC02 User’s Manual - 3-45


3-3 How to Make a Program

Reference • When unit dedicated command U_WRCNT is used, handshake control by write request
relay is not required, and the setting values can be written without regardless of the
scan time.
"KV-SSC02 Unit Specific Instructions", Page 5-2
• When direct I/O relays (DR) are used, I/O relay read/write will be performed
independent of scanning time.

3
KV-8000 Series User's Manual, "4-6 Program Structure and Operation"
KV-7000 Series User's Manual, "4-6 Program Structure and Operation"
HOW TO SETUP

 Behavior of the present count value write request relay and present count
value write complete relay
Current value write request relay (1) (3)
(CH0 : leading + 004,
CH1 : leading + 104)
Counter current value change
Current value write complete relay
(CH0 : leading + 304, (2) (4)
CH1 : leading + 404)

(1) The present count value write request relay is turned ON using the ladder program.
(2) Once the present count value has been changed on KV-SSC02, the present count value write
complete relay is turned ON.
(3) Once the present count value write complete relay is turned ON, turn the present count value write
request relay OFF using the ladder program.
(4) Once the present count value write request relay is turned OFF, the present count value write
complete relay is turned OFF.

Reference The present count write request relay and the present count write complete relay are
enabled even in PROG mode.

3-46 - KV-SSC02 User’s Manual -


3-3 How to Make a Program

Up/down Preset Enable Enable accumulative Counting


Confirming Other Operation States counting counting counting counting within set time

Operation status can be verified via data memory and relays assigned during operation.

 Verifying errors

3
If an error occurs in KV-SSC02, SSC02 error relay is set to ON, and the error code corresponding to the
error will be written in SSC02 error code (data memory).
The SSC02 error relay ( n +200) and the error code (DM N +28) are common between CH0 and CH1.

HOW TO SETUP
"List of Error Message", Page A-2

 Verifying size of count current value and comparator setting value


By comparing count current value with comparator setting value, if the former is smaller, the comparator
under relay will be ON; if larger, the comparator over relay will be ON.
If current value matches with the comparator setting value, the comparator matching relay will be ON.
Comparator matching relay will remain in output status unil comparator matching status reset relay is ON.

Comparator set value

Count current value

Comparator under relay

Comparator over relay

Comparator match relay

Comparator match state


Reset relay (program)

 Verifying count current value overflow


If count current value overflow occurs during counting, then the count current value over relay will be ON. count
current value over relay will remain in output status until count current value overflow reset relay is ON.
Example Liner mode, unsigned counting

4294967295

Count value

Count current value


overflow relay
Count current value
Overflow reset
(Program)

- KV-SSC02 User’s Manual - 3-47


3-3 How to Make a Program

 Confirming the count direction


If you input the count of down counting direction and countdown, the relay during the negative direction
counting will be ON.
When the count in the adding direction is input and counted up, the negative directional counting relay
is turned OFF.
* If the enable input is OFF in the enable accumulate count mode and the enable count mode, relay during

3 the negative direction will not be changed even if the count of either direction is input.
* The negative directional relay is reset when the operation enable relay is turned OFF.
HOW TO SETUP

Up counting
Count input
Down counting

Relay during
the negative direction

Count value

3-48 - KV-SSC02 User’s Manual -


4
4
OPERATION MODE

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


SPECIFICATIONS &
APPLICATION EXAMPLES
This chapter describes the specifications, application examples and example
programs of KV-SSC02 in various operation modes .

4-1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2


4-2 Up/down Count Mode . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6
4-3 Preset Count Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
4-4 Enable Accumulate Count Mode. . . . . . . . . . . . . . . . . 4-10
4-5 Enable Count Mode . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12
4-6 Set Timer Count Mode . . . . . . . . . . . . . . . . . . . . . . . . 4-14
4-7 Frequency Count Mode. . . . . . . . . . . . . . . . . . . . . . . . 4-16
4-8 Rotation meter Mode. . . . . . . . . . . . . . . . . . . . . . . . . . 4-20
4-9 Counting the Internal Clock. . . . . . . . . . . . . . . . . . . . . 4-24
4-10Serial encoder communication . . . . . . . . . . . . . . . . . . 4-32
4-11 List of Operation Modes and Corresponding Devices . . . 4-34

- KV-SSC02 User’s Manual - 4-1


4-1 Specifications
The section describes the specifications of various operation modes that can be used in KV-SSC02.

Up/down Count Mode

 Performance specification
Related external terminal, relay, See
Function Specification
DM page
External input (1-phase, phase difference)
A/B-phase external input terminal
2-11
4
Internal clock input
Counting input (16MHz maximum/
(50ns,1µs,10µs,100µs) 3-9
2-phase, 4-multiplication)
Other CH comparator match output Default
2 external outputs/CH Output OUT0/1 terminal 2-14
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

Control output ON/OFF by comparator match OUT0/1 set relay 3-24


ON/OFF possible by internal relay OUT0/1 reset relay 3-35
Comparator Comparator 0
2/settable to each CH 3-24
setting Comparator 1
Ring function Ring count upper and lower limits Ring counter upper and lower limits 3-17
External input capture 0/1 input terminal
Input capture 2 external outputs/CH
(Min. 1µs) 2-13
function Used to store count value in the case of
Input capture 0/1 operation setting 3-41
external input
Input capture 0/1 current value

Preset Count Mode

 Performance specification
Related external terminal, relay, See
Function Specification
DM page
External input (1-phase, phase difference) A/B-phase external input terminal
2-11
Count input Internal clock input (50ns,1µs,10µs,100µs) (16MHz maximum/
3-9
CH comparator matching output Default 2-phase, 4-multiplication)
Enabled when external input (Z-phase)
Z-phase (preset) input terminal
and internal preset request relay are used
(4MHz maximum) 2-11
Preset input in the mean time.
Internal preset request relay 3-39
Counting value will be changed to
Internal preset complete relay
preset value through preset input.
2 external outputs/CH Output OUT0/1 terminal 2-14
Control output ON/OFF by comparator match OUT0/1 set relay 3-24
ON/OFF possible by internal relay OUT0/1 reset relay 3-35
Comparator Comparator 0
2/settable to each CH 3-24
setting Comparator 1
Ring function Ring count upper and lower limits Ring counter upper and lower limits 3-17
External input capture 0/1 input terminal
2 external outputs/CH
Input capture (Min. 1µs) 2-13
Used to store count value in the case of
function Input capture 0/1 operation setting 3-41
external input
Input capture 0/1 current value

4-2 - KV-SSC02 User’s Manual -


4-1 Specifications

Enable Accumulate Count Mode

 Performance specification
Related external terminal, relay, See
Function Specification
DM page
External input (1-phase, phase difference)
A/B-phase external input terminal
Internal clock input 2-11
Count input (16MHz maximum/
(50ns,1µs,10µs,100µs) 3-9
Other CH comparator matching output Default
2-phase, 4-multiplication)

Enabled when external enable input* and internal


4
External enable input terminal*
enable set relay are used in the mean time. 2-13

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


Enable input (Min. 1µs)
Counting value will be changed to 3-39
Internal enable set relay
preset value in preset state.
Enabled when external input (Z-phase) and internal Z-phase (preset) input terminal*
preset request relay are used in the mean time. (4MHz maximum) 2-11
Preset input
Counting value will be changed to Internal preset request relay 3-37
preset value in preset state. Internal preset complete relay
2 external outputs/CH Output OUT0/1 terminal 2-14
Control output ON/OFF by comparator match OUT0/1 set relay 3-24
ON/OFF possible by internal relay OUT0/1 reset relay 3-35
Comparator Comparator 0
2/settable to each CH 3-24
setting Comparator 1
Ring function Ring count upper and lower limits Ring counter upper and lower limits 3-17
External input capture 1 input terminal
External input 1 point*/CH
Input capture (Min. 1µs) 2-13
Used to store count value in the case of
function Input capture 1 operation setting 3-41
external input.
Input capture 1 current value
* Input capture 0 can not be used when Enable accumulate count mode is used.

Enable Count Mode

 Performance specification
Related external terminal, relay, See
Function Specification
DM page
External input (1-phase, phase difference)
A/B-phase external input terminal
Internal clock input 2-11
Count input (16MHz maximum/
(50ns,1µs,10µs,100µs) 3-9
2-phase, 4-multiplication)
Other CH comparator matching output Default
Enabled when external enable input* and internal
enable set relay are used in the mean time.
External enable input terminal*
Counting value is cleared at the rising 2-13
Enable input (Min. 1µs)
edge of enable input through the 3-39
Internal enable set relay
counting operation enable relay in enable
state.
2 external outputs/CH Output OUT0/1 terminal 2-14
Control output ON/OFF by comparator match OUT0/1 set relay 3-24
ON/OFF possible by internal relay OUT0/1 reset relay 3-35
Comparator Comparator 0
2/settable to each CH 3-24
setting Comparator 1
Ring function Ring count upper and lower limits Ring counter upper and lower limits 3-17
External input capture 1 input terminal
External input 1 point*/CH
Input capture (Min. 1µs) 2-13
Used to store count value in the case of
function Input capture 1 operation setting 3-41
external input.
Input capture 1 current value
* Input capture 0 can not be used when Enable count mode is used.
- KV-SSC02 User’s Manual - 4-3
4-1 Specifications

Set Timer Count Mode

 Performance specification
Related external terminal, relay, See
Function Specification
DM page
External input (1-phase, phase difference)
A/B-phase external input terminal
Internal clock input 2-11
Count input (16MHz maximum/
(50ns,1µs,10µs,100µs) 3-9
2-phase, 4-multiplication)
Other CH comparator matching output Default

4 Enable input
Enabled when external enable input* and internal
enable set relay are used in the mean time.
External enable input terminal*
(Min. 1µs)
2-13
Counting operation is started at the 3-39
Internal enable set relay
rising edge of enable input.
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

1 to 65535 (ms)
Used to Enable count of counting
Set counting time Set counting time 4-14
operations within set time starting from
the rising edge of enable input.
2 external outputs/CH Output OUT0/1 terminal 2-14
Control output ON/OFF by comparator match OUT0/1 set relay 3-24
ON/OFF possible by internal relay OUT0/1 reset relay 3-35
Comparator Comparator 0
2/settable to each CH 3-24
setting Comparator 1
Ring function Ring count upper and lower limits Ring counter upper and lower limits 3-17
External input capture 1 input terminal
External input 1 point*/CH
Input capture (Min. 1µs) 2-13
Used to store count value in the case
function Input capture 1 operation setting 3-41
of external input.
Input capture 1 current value
* Input capture 0 can be used when Set timer count mode is used.

Frequency Count Mode

 Performance specification
Related external terminal, relay, See
Function Specification
DM page
External input (1-phase, phase difference) A/B-phase external input terminal
2-11
Count input Internal clock input (50ns,1µs,10,100µs) (16MHz maximum/
3-9
Other CH comparator matching output Default 2-phase, 4-multiplication)
Calculation result of Frequency count
2 points, Up/down count possible
Frequency count Number of averagings 4-16
Available to use simultaneously with counter
Minimum sampling time

Rotation Meter A mode (pulse interval measurement)/Rotation Meter B mode (time measurement per revolution)

 Specification
Related external terminal, relay, See
Function Specification
DM page
External input (1-phase, phase difference)
A/B-phase external input terminal
Internal clock input (50ns,1µs,10,100µs) 2-11
Count input (16MHz maximum/
Other CH comparator matching output 3-9
2-phase, 4-multiplication)
Default
Rotation speed measurement result
2 points, Up/down count possible Setting for the number of pulses per
Rotation meter
Available to use simultaneously with rotation for the tachometer 4-20
function
counter Number of averagings
Minimum sampling time

4-4 - KV-SSC02 User’s Manual -


4-1 Specifications

Serial encoder communication

 Performance specifications
Related external terminal, relay, See
Function Specification
DM page
Communication EnDat2.2/22
2-15
Count inputs Communication BiSS (C-mode) Serial communication terminal
3-9
Communication YaskawaSerial

Input capture
2 external inputs (CH0)
External input capture 0 and 1 input
terminals (minimum input time constant
2-13
4
Store position data when using external 1µs)
function 3-41

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


inputs Input capture 0 and 1 operation setting
Input capture 0 and 1 current values

- KV-SSC02 User’s Manual - 4-5


4-2 Up/down Count Mode
(Basic counting)
Up/down count mode can be used if basic counting is to be performed.
The section provides how to use Up/down count and example programs are described as follows.

Application Example of Up/Down Count Mode

 Application example

4 Count number of IC PINs


OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

KV-SSC02

 Operation conditions
(1) Number of pins of high speed moving IC will be calculated.
(2) If count value reaches comparator 0 setting value, the output OUT0 will be ON for 1 s.
If count value reaches comparator 0 setting value, count value will be cleared automatically.

 Timing chart
Operation enable

Count input

Comparator 0
setting value

Count value

OUT0
1s 1s
OUT0 reset
(Program)

4-6 - KV-SSC02 User’s Manual -


4-2 Up/down Count Mode

 Example for setup with the Unit Editor

If count value matches with the


comparator 0 setting value, current
value is cleared.
4

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


ON if count value matches with the
comparator 0 setting value.

 Example ladder program


CH0 comparator 0 setting value ............................DM10035/DM10034
operation enable relay....................................R30000
OUT0 reset relay ............................................R30008
OUT0 output state relay .................................R30309

;Mnemonics list
Write setting value when power is ON
; Write setting value when power is ON
CR2008 MOV.L LD CR2008
#30000 DM10034
MOV.L #30000 DM10034
ON for 1 scan
at start of operation
ch0 comparator 0
setting value(lower)
; Start counting when input MR000 is ON
LD MR000
Start counting when input MR000 is ON OUT R30000
; After 1 s when OUT0 output is ON, output OUT0 is OFF via OUT0 reset relay
MR000 R30000 LD R30309
TMR #0 #10
ch0 operation
LD T0
enable OUT R30008
After 1 s when OUT0 output is ON, output OUT0 is OFF via OUT0 reset relay

R30309 #10
T0

ch0 OUT0
output state
T0 R30008

ch0 OUT0
reset

If other operations are to be added in the above example, please refer to the following contents:
"Start Counting (write setting value)", Page3-29
"Changing (updating) Comparator/Preset Setting Value", Page3-31
"External Output ON/OFF", Page3-35
"Executing Input Capture", Page3-41
"Changing (clearing) count current value", Page3-45
"Confirming Other Operation States", Page3-47

- KV-SSC02 User’s Manual - 4-7


4-3 Preset Count Mode
(Timing preset count value)
If preset count value is to be timed during counting, Preset count mode can be used.

Application Example of Preset Count Mode

 Application example
• Rotation speed of conveyer line is acquired
Cut-to-length
using encoder, and output through

4 comparator 0 setting preset via the sensor


input.
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

Encoder input
Sensor input
KV-SSC02
KV-SC20V

 Operation conditions
(1) Phase difference input of counting encoder.
(2) Counting value is preset at the rise of sensor input.
(3) If count value reaches comparator 0 setting value, the output OUT0 will be ON for 1 s.
If count value reaches comparator 0 setting value, count value will be cleared automatically.

 Timing chart

Operation enable

Count input

Preset input
(Sensor input)
Comparator 0
setting value

Preset value

Count value

OUT0
1s 1s
OUT0 reset
(Program)

4-8 - KV-SSC02 User’s Manual -


4-3 Preset Count Mode

 Setting up with the Unit Editor

Counting value is preset at the rising edge of


external preset input.

If count value matches with the comparator 0 4


setting value, count current value will be

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


cleared.

ON if count value matches with the comparator 0


setting value.

 Example ladder program


CH0 Preset setting value........................................DM10033/DM10032
Comparator 0 setting value ............................DM10035/DM10034
Operation enable relay ...................................R30000
OUT0 reset relay ............................................R30008
OUT0 output statusrelay ................................R30309

;Mnemonics list
Write setting value when power is ON

CR2008 MOV.L ; Write setting value when power is ON


#500 DM10032 LD CR2008
ON for 1 scan
at start of operation
ch0 preset setting MOV.L #500 DM10032
value L
MOV.L #30000 DM10034
MOV.L ; Start count when input MR000 is ON
#30000 DM10034
LD MR000
comparator 0
setting value L
OUT R30000
; After 1 s when OUT0 output is ON, output OUT0 via OUT0 is OFF reset relay
Start count when input MR000 is ON
LD R30309
MR000 R30000 TMR #0 #10
LD T0
ch0 operation
enable
OUT R30008

After 1 s when OUT0 output is ON, output OUT0 via OUT0 is OFF reset relay

R30309 #10
T0
ch0 OUT0
output state
T0 R30008

ch0 OUT0
reset

If other operations are to be added in the above example, please refer to the following contents:
"Start Counting (write setting value)", Page3-29
"Changing (updating) Comparator/Preset Setting Value", Page3-31
"External Output ON/OFF", Page3-35
"Executing a Preset", Page3-37
"Executing Input Capture", Page3-41
"Changing (clearing) count current value", Page3-45
"Confirming Other Operation States", Page3-47

- KV-SSC02 User’s Manual - 4-9


4-4 Enable Accumulate Count Mode
(Enabled only for enable input)
If counting is to be performed only for enable input, Enable accumulate count mode or Enable count
mode can be used. If Enable accumulate count mode is selected, count value for enable input will be
accumulated.

Application Example of Enable Accumulate Count Mode

 Application example
4 Check machining accuracy of workpieces

KV-SSC02
KV-SC20V
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

Sensor input B

Sensor input A

To detect distortion and damage of workpieces.

 Operation conditions
(1) Phase difference input of counting encoder.
(2) Count value is cleared (preset) at the rising edge of sensor input; encoder input is accumulated
when the sensor input B is ON.
(3) If count current value reaches comparator 0 setting value, the output OUT0 will be ON for 1 s.

 Timing chart

Operation enable

Count input

Preset input
(Sensor input A)

Enable input
(Sensor input B)
Comparator 0
Setting value

Count value

OUT0
1s
OUT0 reset
(Program)

4-10 - KV-SSC02 User’s Manual -


4-4 Enable Accumulate Count Mode

 Setting up with the Unit Editor

4
Count value is preset at the rising edge of

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


external preset input.

ON if count value matches with the comparator 0


setting value.

 Sequence program
CH0 Preset setting value........................................DM10033/DM10032
Comparator 0 setting value ............................DM10035/DM10034
Operation enable relay ...................................R30000
OUT0 output state relay .................................R30309
OUT0 reset relay ............................................R30008

The sequence program is same as that in Preset count mode. (page 4-9)

If other operations are to be added in the above example, please refer to the following contents:
"Start Counting (write setting value)", Page3-29
"Changing (updating) Comparator/Preset Setting Value", Page3-31
"External Output ON/OFF", Page3-35
"Executing a Preset", Page3-37
"Using Enable Input", Page3-39
"Executing Input Capture", Page3-41
"Changing (clearing) count current value", Page3-45
"Confirming Other Operation States", Page3-47

- KV-SSC02 User’s Manual - 4-11


4-5 Enable Count Mode
(Enabled only for enable input)
If counting is to be performed only for enable input, Enable accumulate count mode or Enable count
mode can be used. If Enable accumulate count mode is selected, count value for enable input will be
accumulated.

Application Example of Enable Count Mode

 Application example
4
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

Sensor input

Encoder input
KV-SSC02
KV-SC20V

To detect the movement when the sensor is on.

 Operation conditions
(1) Count current value is cleared at the rising edge of sensor input (enable input).
(2) Encoder output is counted when sensor input is ON.
(3) When sensor input is OFF, the count current value is written into DM10000/DM10001 , and is
compared with the decision value stored in DM0 /DM1.

 Timing chart

Operation enable

Count input

Enable input
(Sensor input)

Count value

Transfer to DM0

4-12 - KV-SSC02 User’s Manual -


4-5 Enable Count Mode

 Setting up with the Unit Editor

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


 Example ladder program
• BCH0count current value.........................................DM10001/DM10000
Operation enable relay ...................................R30000
Comparator 0 over relay.................................R30500
Comparator 1 under relay ..............................R30503
External enable input state relay ....................R30505
Write the values when turning ON the power. ;Mnemonics list
CR2008 MOV.L
+1500 DM10034 ; Write the values when turning ON the power.
ON for 1 scan ch0 comparator 0
LD CR2008
at start of operation value L MOV.L +1500 DM10034
MOV.L MOV.L +3000 DM10036
+3000 DM10036 ; Start the count operation when turning MR000 ON.
ch0 comparator 1 LD MR000
value L
Start the count operation when turning MR000 ON. OUT R30000
MR000 R30000
; At the shut down of the enable input,
; compare the present count value with the comparator 0 value.
ch0 operation ; If comparator 0 value present count value < comparator 1 value,
At the shut down of the enable input,
compare the present count value with the comparator 0 value.
enable ; turn R32200 ON for 2 seconds.
If comparator 0 value ≦ present count value < comparator 1 value, LDF R30505
turn R32200 ON for 2 seconds. AND R30500
R30505 R30500 R30503 T0 #20
AND R30503
T 0
OR R32200
ch0 INPUT0/ ch0 comparator 0
external enable input state over
ch0 comparator 1
under
ANB T0
TMR #0 #20
R32200 R32200
OUT R32200

If other operations are to be added in the above example, please refer to the following contents:
"Start Counting (write setting value)", Page3-29
"Changing (updating) Comparator/Preset Setting Value", Page3-31
"External Output ON/OFF", Page3-35
"Using Enable Input", Page3-39
"Executing Input Capture", Page3-41
"Changing (clearing) count current value", Page3-45
"Confirming Other Operation States", Page3-47

Point In Enable count mode, if internal enable set relay is ON when current value write
request relay is ON (during the process of current value write), current value will not
be cleared at the rising edge.

- KV-SSC02 User’s Manual - 4-13


4-6 Set Timer Count Mode
(Counting is performed only within set time)
If Set timer count mode is used, counting will be enabled at the rising edge of enable input, and only within
set time (which can be set in ms). Counting value will be cleared at the rising edge of enable input.

Application Example of Set Timer Count Mode

 Application example
• High speed counting will be performed for IC pins. If setting value is not reached within set time, NG

4 signal will be output.

Count IC PIN within fixed time


OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

Inspection trigger Inspection trigger

PIN inspection PIN inspectionn

O.K. N.G.

 Operation conditions
(1) Count current value is cleared at the rising edge of detection trigger (enable input).
(2) Number of IC pins is calculated within set time.
(3) If setting value is reached, OUT0 will output.
(4) If the count value has not reached the setting value when the set time period ends, output R31200
is turned on for 0.5 seconds as an NG signal.

 Timing chart

Operation enable

Count input
(PIN inspection)
Enable input
(inspection trigger)
Set time
period count mode Set time Set time
operating state
Comparator 0 setting value

Count value

OUT0

OUT0 reset
(program)

Output R31200 0.5s


(program)

4-14 - KV-SSC02 User’s Manual -


4-6 Set Timer Count Mode

 Setting up with the Unit Editor

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


ON if count value matches with the comparator 0
setting value.

 Example ladder program


CH0 Comparator 0 setting value ....................................... DM10035/DM10034
Set counting time ...................................................... DM10044
Operation enable relay .............................................. R30000
Comparator 0 match state reset relay ....................... R30002
Comparator 0 match relay......................................... R30302
Set time period count mode operating state relay..... R30512
Write the values when turning ON the power. ;Mnemonics list
CR2008 MOV.L ; Write the values when turning ON the power.
+12 DM10034
LD CR2008
ON for 1 scan ch0 comparator 0
at start of operation value L
MOV.L +12 DM10034
MOV MOV #1000 DM10044
#1000 DM10044 ; Start the count operation when turning MR000 ON.
ch0 count LD MR000
set time OUT R30000
Start the count operation when turning MR000 ON.
; When ending a set time period count,
MR000 R30000 ; if the present count value has not reached the comparator 0 value,
ch0 operation
; turn R32200 on for 2 seconds.
When ending a set time period count, enable ; If the present count value has reached the comparator 0 value,
if the present count value has not reached the comparator 0 value, ; reset the comparator 0 match relay.
turn R32200 on for 2 seconds.
If the present count value has reached the comparator 0 value, LDF R30512
reset the comparator 0 match relay. ANB R30302
R30512 R30302 T0 #20 OR R32200
T 0
ANB T0
ch0 Set time period count ch0 comparator 0 TMR #0 #20
mode operating state match
OUT R32200
R32200 R32200 LDF R30512
OR R30002
AND R30302
OUT R30002
R30512 R30302 R30002

ch0 Set time period count ch0 comparator 0 ch0 comparator 0


mode operating state match match state reset
R30002

ch0 comparator 0
match state reset

If other operations are to be added in the above example, please refer to the following contents:
"Start Counting (write setting value)", Page3-29
"Changing (updating) Comparator/Preset Setting Value", Page3-31
"External Output ON/OFF", Page3-35
"Using Enable Input", Page3-39
"Executing Input Capture", Page3-41
"Changing (clearing) count current value", Page3-45
"Confirming Other Operation States", Page3-47

- KV-SSC02 User’s Manual - 4-15


4-7 Frequency Count Mode
(Automatic frequency measurement)
If Frequency count mode is used, frequency of pulse output will be calculated automatically, and no
complicated calculation will be required.

What is Frequency Count Mode

A function used to calculate frequency according to input pulse, and write the calculation result into data memory.

 Calculating way of frequency counter


4 Time interval between input pulses is measured to calculate frequency.
Frequency (Hz) = 1/time interval between pulses
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

(1) If the pulse is input, frequency will be calculated from the pulse interval.
Frequency cannot be calculated in the first pulse input after operation enable OFF -> ON and 0
clearing.
(2) If an interval is longer than the pulse interval measured last time, it is determined that deceleration
is occurring, and then the frequency is measured in real time.
(3) If the pulse interval is 1.5 second or more, the frequency is cleared to 0.

Scan time
Data memory
Frequency count
Calculation results

KV-SSC02 (1) (2)


Frequency count
(1)
Calculation results
(3) 0

Count input
(1) (1) (2) (3)

Counting result of KV-SSC02 will be constantly updated according to the settings. PLC data memory
update is performed at each scan.
Please use direct refresh when reading counting result in a period shorter than scanning time.
"Refresh", Page1-6

4-16 - KV-SSC02 User’s Manual -


4-7 Frequency Count Mode

 Minimum sampling time


When the minimum sampling time is set, if the pulse interval is shorter than the specified time,
frequency is measured by taking the average of the measured result for the minimum sampling time.
You can suppress the variation of the calculation result in high-speed area. The program for the
average processing in the PLC side is not required.

KV-SSC02
Frequency count
Calculation results

Pulse input
Averagings for 4 times Averagings for 3 times 4

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


Time between pulses

Minimum sampling time

 Number of averagings
If number of averagings is set, frequency will be calculated by the calculated result after being
averaged according to the set times.
If the time between the pulse cannot be maintained consistency, you can suppress the variation of the
calculation result.
If number of averagings is set 0, 1 is used as number of averagings.
(1) If the pulse of the set averagings is input, frequency will be calculated by averaging the total time.
Frequency cannot be calculated until the average processing times + a single pulse is input after
the operation enable OFF -> ON and 0 clearing.
(2) If an interval is longer than the time for average processing times measured last time, it is
determined that deceleration is occurring, and then the frequency is measured in real time.
(3) If the pulse interval is 1.5 second or more, the frequency is cleared to 0.

KV-SSC02
Frequency
count
Calculation (2)
results
(1)

(3) 0

Pulse input
(1) (2) (2) (3)

- KV-SSC02 User’s Manual - 4-17


4-7 Frequency Count Mode

Application Example of Frequency Count Mode

• Install the encoder to the rotation axis, and measure


frequency.
(1) Data will be acquired from encoder output of the rotating
shaft, and frequency will be calculated.
(2) Conveying speed will be calculated according to
frequency, and displayed in DM0.
4 KV-SSC02
KV-SC20V
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

Matching speed management


of vinyl resin sheet

 Setting up with the Unit Editor

 Example ladder program


CH0 Averaging processing count ...........................DM10045
Freguency count measurement result............DM10007/DM10006
Operation enable relay ...................................R30000

4-18 - KV-SSC02 User’s Manual -


4-7 Frequency Count Mode

;Mnemonics list
Write setting value when power is ON
; Write setting value when power is ON
CR2008 MOV
#100 DM10045
LD CR2008
MOV #100 DM10045
ON for 1 scan at start of operation ch0 Averaging ; Start counting when input MR000 is ON
processing count
LD MR000
Start counting when input MR000 is ON OUT R30000
; Calculate the line speed from the frequency counting result, and then store it to DM0.
MR000 R30000 ; Conveying speed = frequency x A (#100) / B (#30)
LD R30300
ch0 operation LDA.L DM10006
enable
CON
Calculate the line speed from the frequency counting result, and then store it to DM0.
Conveying speed = frequency × A (#100) ÷ B (#30)

R30300 DM10006 +100 +30 DM0


MUL.L +100
CON
DIV.L +30
4
LDA.L MUL.L DIV.L STA.L CON

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


Operating
ch0 Frequency
STA.L DM0
counting result

Reference Programming of the above example ladder program using scripts is shown below.

Write setting value when power is ON

CR2008 MOV
#100 DM10045

ON for 1 scan ch0 Averaging


at start of oparationg processing count

Start counting when input MR000 is ON

MR000 R30000

ch0 operation enable

Calculate the line speed from the frequency counting result, and then store it to DM0.
Conveying speed = frequency × A (#100) ÷ B (#30)

R30300
DM0.L = ( DM10006.L * 100 ) / 30

Operating

- KV-SSC02 User’s Manual - 4-19


4-8 Rotation meter Mode
This section describes the operation of Rotation meter mode in detail.
Rotation meter function is a function used to calculate rotation speed (rpm) according to input pulse and
write calculation result to data memory. There are two methods for calculating rotation speed (A and B),
which can be selected depending on different applicatiions.

What is Rotation meter Mode

 Calculating way of Rotation meter A mode (pulse internal measurement)


4 Pulse interval of each pulse input is measured, and rotation speed (rpm) is calculated.
Rotation speed (rpm) = 60/(pulse interval time x pulses per revolution)
(1) When the pulse is input, the number of rotations will be calculated from the pulse interval.
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

The number of rotations cannot be calculated in the first pulse input after operation enable OFF ->
ON and 0 clearing.
(2) If an interval is longer than the pulse interval measured last time, it is determined that deceleration
is occurring, and then the rotation speed is measured in real time.
(3) If the pulse interval is 1.5 seconds or more, the rotation speed is cleared to 0.

Rotation
speed

(2)

(1)

(3)
0

Pulse input
(1) (2) (2) (3)

Counting result of KV-SSC02 will be constantly updated according to the settings. PLC data memory
update is performed at each scan.
Please use direct refresh when reading counting result in a period shorter than scanning time.
"Refresh", Page1-6

4-20 - KV-SSC02 User’s Manual -


4-8 Rotation meter Mode

 Calculating way of Rotation meter B mode (time measurement per revolution)


Time for counting number of pulses per revolution is measured, and rotation speed (rpm) is calculated.
Rotation speed (rpm) = 60/(time per revolution)
(1) When the pulse of the set single pulse number is input, rotation speed will be calculated from the
time of a single rotation.
Rotation speed cannot be calculated until the average processing times + a single pulse is input
after the operation enable OFF -> ON and 0 clearing.
(2) If an interval is longer than the time per rotation measured last time, it is determined that
deceleration is occurring, and then the rotation speed is measured in real time.
(3) If it is 40rpm or less, 0 is stored to the rotation speed. 4

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


Rotation
speed

(2)

(1)

(3)
0

Pulse input
(1) (2) (2) (3)

Counting result of KV-SSC02 will be constantly updated according to the settings. PLC data memory
update is performed at each scan.
Please use direct refresh when reading counting result in a period shorter than scanning time.
"Refresh", Page1-6

 Minimum sampling time


When the minimum sampling time is set, if the pulse interval is shorter than the specified time in A
mode, or if the time which it takes to rotate one time is shorter than the specified time, number of
rotation is measured by taking the average of the measured result for the minimum sampling time.
You can suppress the variation of the calculation result in high-speed area. The program for the
average processing in the PLC side is not required.

 Number of averagings
If number of averagings is set, frequency is calculated after avaraging the calculated result by the set
times.
If the time between pulses cannot be maintained consistency, the variation of the calculation result can
be suppressed.
If the avaragings is 0, its avaraging will be processed as 1 times.
If its interval becomes longer than the time of avaraging calculated at the previous time, it is determined
as deceleration, frequency will be calculated in real time.

- KV-SSC02 User’s Manual - 4-21


4-8 Rotation meter Mode

Application Example of Rotation meter Mode (Common to A/B)

• Frequency will be calculated after a gear is installed on rotating shaft.


(1) Number of gear teeth on rotating shaft is measured
and rotation speed (rpm) is calculated automatically.
(2) Rotation speed is written into DM0.

4
 Setting up with the Unit Editor KV-SSC02
KV-SC20
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

To detect proximity switch with gear-spocket mechnism

 Example ladder program


CH0 Areraging processing count..........................................................DM10045
Specify the number of pulses per rotation for the tachometer......DM10047
Rotation speed measurement result ............................................DM10009/DM10008
Operation enable relay .................................................................R30000
;Mnemonics list
Write setting value when power is ON
; Write setting value when power is ON
CR2008 MOV
#100 DM10045
LD CR2008
MOV #100 DM10045
ON for 1 scan at start of operation ch0 Areraging
processing count MOV #100 DM10047
MOV ; Start counting when input MR000 is ON
#100 DM10047 LD MR000
Setting for the OUT R30000
number of pulses per
rotation for the ch0 ; Store rotation speed to DM0
Start counting when input MR000 is ON tachometer
LD R30300
MR000 R30000
MOV.L DM10008 DM0
ch0 operation
enable

Store rotation speed to DM0

R30300 MOV.L
DM10008 DM0
ch0 operating ch0 rotation speed
measurement result L

4-22 - KV-SSC02 User’s Manual -


4-8 Rotation meter Mode

MEMO

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

- KV-SSC02 User’s Manual - 4-23


4-9 Counting the Internal Clock
KV-SSC02 can use the internal clock of KV-SSC02 as input mode.
Through measuring internal clock, it can be used as a high accuracy timer, and are used for:
• High-speed clock output (100kHz maximum)
• High accuracy time and length measurement.

Used as High-speed Clock Output (100kHz maximum)

Clock pulse that is not influenced by scanning time can be directly output from OUT0/OUT1 using high-
speed counter and setting value.
4
The following items can be determined according to output frequency.
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

Internal clock frequency (50ns, 1µs, 10µs, 100µs)


Reset operation . . . . . . . Set up with the Unit Editor
OUT0/1 output setting
Comparator 0/1 setting. . . . . . . . . . . . . . . . . . . . . . . . . . . . Set up with ladder program

To output pulse with ON/OFF ratio 1:1

 Setting up with the Unit Editor

Up/down count (preset, enable, enable


accumulate)
Current value is cleared by CTC0 match

Output is inverted by CTC0 match

4-24 - KV-SSC02 User’s Manual -


4-9 Counting the Internal Clock

 Timing chart
Set
Comparator 0 setting value

Count value

OUT0 Pulse width


Pulse period
4
The relationship between internal clock frequency and comparator setting value is shown as follow:

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


Output frequency (Hz) = 1000000 (µs)/pulse frequency (µs)
Pulse frequency (µs) = internal clock frequency (µs) x comparator 0 setting value x 2

To output pulse with variable pulse width

 Setting up with the Unit Editor

Up/down count (preset, enable, enable


accumulate)

Current value is cleared through by CTC0 match

OUTO ON at match with CTC0 ,and OFF at


match with CTC1

- KV-SSC02 User’s Manual - 4-25


4-9 Counting the Internal Clock

 Timing chart

Comparator 0 setting value

Comparator 1 setting value

Count value

OUT0
Pulse width

Pulse period
4
The relationship between internal clock frequency and comparator setting value is shown as follow:
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

Output frequency (Hz) = 1000000 (µs)/pulse frequency (µs)


Pulse frequency (µs) = internal clock frequency (µs) x comparator 0 setting value
Pulse width (µs) = internal clock frequency (µs) x comparator 1 setting value

Point Output circuit delay of KV-SSC02 is not included in the pulse width to be set. In fact,
pulse width may change due to the influence of output response delay and
connected load. Please observe actual output waveform through an oscillometer
before setting pulse width.
"Wiring Control Output", Page2-14

4-26 - KV-SSC02 User’s Manual -


4-9 Counting the Internal Clock

Measuring Time to High Precision

Combining each function with internal clock measurement enables high-precision time measurement
independent of the scan time.

Application example 1: Detecting of pass time by combining with input capture

Application example: measurement of tact time

ON
4
Sensor A KV-SSC02
KV-SC20

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


Sensor A
input OFF

ON
Sensor B Sensor B
input OFF
Elapsed time˄μs˅

 Timing chart
Internal clock

Elapsed
time
Count value

Sensor A
(input capture 0)
Sensor B
(input capture 0)
(1) Counting value of the rising edge of sensor A input is captured and written into DM0.
(2) Counting value of the rising edge of sensor B input is captured.
(3) Pass time is measured by subtracting the input current value of (1) from the input capture result of (2).

 Setup example with the Unit Editor

To specify internal clock.

- KV-SSC02 User’s Manual - 4-27


4-9 Counting the Internal Clock

 Example ladder program


Specify the input capture operation setting when turning on the power. ;Mnemonics list
CR2008 MOV
#1 DM10038
; Specify the input capture operation setting when turning on the power.
ON for 1 scan
LD CR2008
ch0 present input capture 0
at start of operation behavioral setting MOV #1 DM10038
MOV MOV #1 DM10039
#1 DM10039 ; Start the count operation when turning MR000 ON.
ch0 present input capture 1 LD MR000
behavioral setting
Start the count operation when turning MR000 ON.
OUT R30000
; Using the input capture 1 input, capture the difference
MR000 R30000
; between the present input capture value
ch0 operation ; and the present input capture 0 value.
LD R30313
4
Using the input capture 1 input, capture the difference enable
between the present input capture value LDA.L DM10004
and the present input capture 0 value.
CON
R30313 DM10004 DM10002 DM0 SUB.L DM10002
LDA.L SUB.L STA.L
CON
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

ch0 input capture 1 ch0 input capture 0


ch0 input capture 1
current value L current value L
STA.L DM0
input state

4-28 - KV-SSC02 User’s Manual -


4-9 Counting the Internal Clock

Application example 2: Detection of elapsed time by combining with the enable count

Example of purpose: workpiece measurement

Sensor
KV-SSC02
Sensor ON
Input 0000
OFF
Pulse width μs)
4

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


 Timing chart
Internal clock

elapsed time(μs)
Count value

Enable input (Sensor)


(1) Counting of internal clock is performed at the rising edge of sensor input.
(2) Counting of internal clock is stopped at the falling edge of sensor input.

 Setup example using the Unit Editor

The internal clock is specified.

The enable count is specified.

 Example ladder program

Start counting when input MR000 is ON ;Mnemonics list


MR000 R30000
; Start counting when input MR000 is ON
ch0 Operation
LD MR000
disable OUT R30000
At falling edge of enable input, acquire current value into DM0 ; At falling edge of enable input, acquire current value into DM0
LDF R30505
R30505 MOV.L
DM10000 DM0 MOV.L DM10000 DM0
ch0 External enable ch0 count current
input state value L

- KV-SSC02 User’s Manual - 4-29


4-9 Counting the Internal Clock

Application example 3: Long-term,high-precision timer using detection


of OUTO output on other channel

 Timing chart
Internal clock
Comparator 0
setting value

4 CH0 Count value


OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

OUT0

CH1 count value


(add bit)

 Setup example with the Unit Editor

The internal clock is used.

The current value is cleared by match with the


comparator 0 setting value

OUT0 is turned ON by match with the comparator


0 setting value

The rising edge of the OUT0 output of CH0 is


counted.

4-30 - KV-SSC02 User’s Manual -


4-9 Counting the Internal Clock

MEMO

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

- KV-SSC02 User’s Manual - 4-31


4-10 Serial encoder communication
When serial encoder communication is used, absolute position data can be aquired via the encoder
that supports communication functions.

Usage example of the serial encoder communication functions

• The absolute position data is acquired by communicating with an EnDat2.2/22 linear encoder having
a 32-bit position data size.

Point The serial encoder communication functions can only be used with CH0.

4  Behavior chart
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

(1) (5)

Operation enable relay

(2)

Operating relay

SSC02 error relay (4)

Send
Communication
Receive (3)
command

×timeout
Present count value
(data memory)

Communication cycle

SSC02 error code


(data memory)

(1) Turning on the operation enable relay starts the initial communication command.
(2) If the initial communication command has been run successfully multiple times, the operating relay
is turned on, and then the position data which was read out from the encoder is stored to the
present count value *2 assigned to data memory.
The readout command is run in a cyclic manner, and then store the position data per
communication cycle*1 to the present count value.
(3) If data cannot have been received with in 1 communication cycle, or if there are any errors in data,
communication will be retried.*3
(4) In case that data cannot be received correctly even after the number of retries specified in the unit editor
has been attempted, the communication is terminated, causing a unit error to occur in KV-SSC02.
If a unit error occurs, the operating relay is turned off, the SSC02 error relay is turned on, and then
the error code is stored in the SSC02 error code.
(5) If the operation enable relay is turned off, the unit error is cleared, and then the SSC02 error relay is turned off.
When resuming the communication, clear the cause of the communication error and the encoder
error state*4, and then turn the operation enable relay on.
*1 The communication cycle is as shown below.
In case of EnDat2.2/22 50µs
In case of BiSS (C-mode) 50µs
In case of Yaskawa Serial 62.5µs
*2 0-31 bits of position data is stored in the count current value. If the size of the required position
data exceeds 32 bits, it must be read by UREAD.
*3 If the number of serial encoder communication retries is set to 0 in the unit editor, no retries are
attempted, resulting in a unit error.
*4 The encoder error state may be cleared by the initial communication, depending on the encoder
specifications. In such cases, clear the cause of the communication error, and then turn the
operation enable relay on. if the error persists even when the operation permission relay is turned
on again, please turn the power on again.
4-32 - KV-SSC02 User’s Manual -
4-10 Serial encoder communication

 Unit Editor settings

Set the communication protocol to "EnDat2.2/22". 4

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


Set the position data size to 32.
*Set the value according to the corresponding
encoder specifications.

Set the number of communication retries to 2


(default).

 Reference ladder program

Start serial encoder communication when turning MR000 ON.


;Mnemonics list
MR000 R30000
; Start serial encoder communication when turning MR000 on.
LD MR000
ch0 operation
enable OUT R30000
LD R30300
R30300 MOV.L MOV.L DM10000 DM0
DM10000 DM0 ;In case of a communication error, store the error code.
ch0 operating ch0 present LDP R30200
In case of a communication error, store the error code.
count value L
MOV DM10028 DM10
R30200 MOV
DM10028 DM10

SSC02 error relay SSC02 error code

 Buffer memory address for position data


Position data is written into the following buffer memory before it is stored in the present count value
data memory.
Position data from 0 to 31 bits are stored in the present count value. If the position data size exceeds 32
bits, read out the data using the UREAD instruction.

Buffer memory
Name
address
#88 Position data (0 to 15 bits)
#89 Position data (16 to 31 bits)
#90 Position data (32 to 47 bits)

- KV-SSC02 User’s Manual - 4-33


4-11 List of Operation Modes and Corresponding Devices
List of corresponding data memory and relay of each operation mode is shown as follows.

Count mode and supported data memory list

N : Leading DM number

DM number Enable
Attribute
Up/Down Preset Enable Set timer R : Read-only
DM name Accumulate
CH0 CH1 Count Count Count Count R/W : Read and
count
Write
N + 0 to 1 N +14 to 15 Count current value      R

4 N +2 to 3 N +16 to 17
Input capture 0 current
value
  - - - R
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

Input capture 1 current


N +4 to 5 N +18 to 19      R
value
N +28
Error code      R
(Common to CH0 and CH1)
Current value Changed
N +30 to 31 N +50 to 51      R/W
value
N +32 to 33 N +52 to 53 Preset set value *1   *1 *1 R/W
N +34 to 35 N +54 to 55 Comparator 0 set value      R/W
N +36 to 37 N +56 to 57 Comparator 1 set value      R/W
Input capture 0
N +38 N +58   - - - R/W
operation settings
Input capture 1
N +39 N +59      R/W
operation settings
Ring counter
N +40 to 41 N +60 to 61 *2 *2 *2 *2 *2 R/W
Limit value
Ring counter lower limit
N +42 to 43 N +62 to 63 *2 *2 *2 *2 *2 R/W
value

N +44 N +64 Count set period - - - -  R/W

 : Used.
- : Not used.
*1 : Preset request relay is disabled.
*2 : Only enabled when [Ring] is set to the [Count mode] in unit settings.

4-34 - KV-SSC02 User’s Manual -


4-11 List of Operation Modes and Corresponding Devices

Count mode and supported relay list

n : Leading relay number

Relay number Enable In specified


Attribute
Up/Down Preset Enable R : Read-only
Relay name Accumulate period
CH0 CH1 Count Count Count R/W : Read and
count Count
Write
n +000 n +100 Operation permission      R/W
Count current value
n +001 n +101      R/W
Overflow reset
Comparator 0
4
n +002 n +102      R/W

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


Match state reset
Comparator 1
n +003 n +103      R/W
Match state reset
Current value write
n +004 n +104      R/W
request
n +005 n +105 Setting update request      R/W
Preset value write
n +006 n +106 -   - - R/W
request
n +007 n +107 Internal preset request -   - - R/W
n +008 n +108 OUT0 reset      R/W
n +009 n +109 OUT0 set      R/W
n +010 n +110 OUT1 reset      R/W
n + 011 n +111 OUT1 set      R/W
n + 012 n +112 Input capture 0 reset   - - - R/W
n + 013 n +113 Input capture 1 reset      R/W
n + 014 n +114 Z-phase detection reset      R/W
n + 015 n +115 Internal enable set - -    R/W
n + 200
Error relay      R
(Common to CH0 and CH1)
n +300 n +400 Operating      R
Count current value
n +301 n +401      R
Overflow
n +302 n +402 Comparator 0 matched      R
n +303 n +403 Comparator 1 matched      R
Writing current value
n +304 n +404      R
completed
Updating setting
n +305 n +405      R
completed
Writing preset value
n +306 n +406 -   - - R
complete
Internal preset
n +307 n +407 -   - - R
completed
n +309 n +409 OUT0 output state      R
n +311 n +411 OUT1 output state      R

- KV-SSC02 User’s Manual - 4-35


4-11 List of Operation Modes and Corresponding Devices

Relay number Enable In specified


Attribute
Up/Down Preset Enable R : Read-only
Relay name Accumulate period
CH0 CH1 Count Count Count R/W : Read and
count Count
Write
Input capture 0 input
n +312 n +412   - - - R
state
Input capture 1 input
n +313 n +413      R
state
n +314 n +414 Z-phase detection      R
Input capture 0
4 n +412 n +512
Input state
  - - - R

Input capture 1
n +413 n +513
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

     R
Input state
n +500 n +600 Comparator 0 over      R
n +501 n +601 Comparator 0 under      R
n +502 n +602 Comparator 1 over      R
n +503 n +603 Comparator 1 under      R
External preset (Z
n +504 n +604 phase)      R
Input state
INPUT0/external enable
n +505 n +605      R
input state
n +506 n +606 INPUT 1 input state      R
n +509 n +609 A phase Input state      R
n +510 n +610 B phase Input state      R
Negative directional
n +511 n +611      R
counting
Set timer count mode
n +512 n +612 - - - -  R
operation state

 : Available when operation permission relay is ON.


 : Available whether operation permission relay is ON or OFF.
- : Not used.

4-36 - KV-SSC02 User’s Manual -


4-11 List of Operation Modes and Corresponding Devices

Frequency, rotation meter mode and supported data memory list

N : Head DM number

DM number Attribute
Frequency Rotation Rotation R : Read-only
DM name
CH0 CH1 Counter meter A meter B R/W : Read and
Write
N + 6 to 7 N + 20 to 21 Frequency count measured result  - - R
N +8 to 9 N +22 to 23 Rotation meter measured result -   R
N +28 Error code    R 4
N +45 N +65 Average processing count    R/W

OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES


N +46 N +66 Minimum sampling time    R/W
Pulse per rotation for rotation meter
N +47 N +67 -   R/W
settings

 : Used
- : Not used.

- KV-SSC02 User’s Manual - 4-37


4-11 List of Operation Modes and Corresponding Devices

Frequency, rotation meter mode and supported relay list

n : Head relay number

Relay number Attribute


Frequency Rotation Rotation R : Read-only
Relay name
CH0 CH1 Counter meter A meter B R/W : Read and
Write
n +000 n +100 Operation permission    R/W
n +005 n +105 Setting update request    R/W

4 n +008 n +108 OUT0 reset    R/W


n +009 n +109 OUT0 set    R/W
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES

n +010 n +110 OUT1 reset    R/W


n +011 n +111 OUT1 set    R/W
n + 200 Error relay    R
n +305 n +405 Updating setting completed    R
n +309 n +409 OUT0 output state    R
n +311 n +411 OUT1 output state    R
n +504 n +604 External preset (Z phase) Input state    R
n +505 n +605 External enable input state    R
n +509 n +609 A phase Input state    R
n +510 n +610 B phase Input state    R

 : Available when operation permission relay is ON.


 : Available whether operation permission relay is ON or OFF.
- : Not used.

4-38 - KV-SSC02 User’s Manual -


5
UNIT SPECIFIC
5
INSTRUCTIONS/FUNCTIONS

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


This chapter describes unit specific instructions/functions when direct refresh
is performed.

5-1 KV-SSC02 Unit Specific Instructions. . . . . . . . . . . . . . . 5-2


5-2 KV-SSC02 Unit Specific Functions . . . . . . . . . . . . . . . 5-22

- KV-SSC02 User’s Manual - 5-1


5-1 KV-SSC02 Unit Specific Instructions

List of Unit Specific Instructions

When these instructions are performed in a ladder program, read/write of current value of KV-SSC02
and setup operation can be enabled without being influenced by scan time. For using in a script
program, please see "5-2 KV-SSC02 Unit Specific Functions", Page 5-22.

Whether or not used n each


operation mode

Accumulative

Frequency
See

Up/down

Rotation
Function Instruction Description

Set time
Enable
Preset
Page

speed
5 Read count Reads current value of high-speed
U_RDCNT      - - 5-4
current value counter from buffer memory.
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

Reads Frequency count


Read frequency U_RDHZ measurement result from - - - - -  - 5-6
buffer memory.
Reads measurement result of
Read rotation
U_RDRPM rotation speed from buffer - - - - - -  5-8
speed
memory.
Read input U_RDCPT0 Reads input capture value      - - 5-10
capture value U_RDCPT1 from buffer memory.
Writes current value of high-
Write count
U_WRCNT speed counter into buffer      - - 5-12
current value
memory.
Write comparator U_WRCTC0 Writes comparator setting
     - - 5-14
setting value U_WRCTC1 value into buffer memory.
Write preset Writes preset setting value
U_WRPST      - - 5-16
setting value into buffer memory.
Read the count current value
Reading
U_RDBF buffered from the buffer      - - 5-18
buffering data
memory.
Output
overcurrent Enables/Disables overcurrent
U_DISOCP        5-20
protection protection function for output.
function settings

Up/down : Up/down count mode


Preset count : Preset count mode
Accumulative : Enable accumulate count mode
Enable : Enable count mode
Set time : Set timer count mode
Frequency : Frequency count mode
Rotation speed: Rotation meter mode

5-2 - KV-SSC02 User’s Manual -


5-1 KV-SSC02 Unit Specific Instructions

MEMO

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

- KV-SSC02 User’s Manual - 5-3


5-1 KV-SSC02 Unit Specific Instructions

U_RDCNT U_RDCNT(.L)
U_RDCNT.D
U_RDCNT
Read present
High-speed
counter reads
present count
count value
@U_RDCNT @U_RDCNT(.L)
@U_RDCNT.D
U_RDCNT
from buffer
memory.

Whether or not used in each operation mode

Enable
Up/down Preset Enable Set timer Frequency
Mode accumulative Tachometer
counter count count count count count

Availability      - -

5 Ladder program Input mode


Execution condition U_RDCNT KV-SSC02
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

n1 n2 D U _ R D C N T n1 n2 D

Execution condition @U_RDCNT KV-SSC02


n1 n2 D @ U _ R D C N T n1 n2 D

Available devices
Index
Bit device Word device Constant
Indirect Local modification
specifying device
Operand
MR DM EM
R DR LR T C CR FM ZF T C Z CM #/$ #TM * @ :#/ :Z
B TM W
n1 - - - - - - - - - - -  - - - -
n2  -  - -        -   
D  -  - -     -  - -   

Operand Description
n1 Specifies unit No. (1 to 48). "$" can not be used for specifying.
n2 Specifies high-speed counter channel (0 or 1) or the device in which a channel is stored. *1
D Specifies the device for storing the read count current value. *2*3
*1 If a bit device is specified, sequential 16 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).
*2 If a bit device is specified, sequential 32 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).
*3 When suffix is ".L", data will be processed as 32-bit signed BIN data; when suffix is ".D", data will be
processed as 32-bit unsigned BIN data.

5-4 - KV-SSC02 User’s Manual -


5-1 KV-SSC02 Unit Specific Instructions

Description of Operation

U_RDCNT When execution condition is ON, high-speed counter current value of n2 channel
is read from the unit n1 , and is stored into D / D+1 as a 2-word BIN value.
Buffer memory Device No.

D +1 D
High-speed counter 12345678
current value
32 bits
(2-word)

@U_RDCNT 1 scan will be performed only at the rising edge of the execution condition.
5

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
ON when any of the following conditions is true, otherwise OFF.
• When indirect specifying, index modification range are not proper.
• When unit No. specified by n1 is above 49.
CR2012
• When the unit specified by n1 is not KV-SSC02.
• When number of channels of high-speed counter specified by n2 is above 2.
• When 2-word device can not be guaranteed starting from the device No. specified by D .

Example Program

When MR0 is ON, the high-speed counter current value of ch0 of KV-SSC02 connected to the first unit
is read and written into [DM00000/DM00001].

;(Mnemonics list)
MR000 U_RDCNT.L KV-SSC02 LD MR000
Unit No. CH No. Storage device U_RDCNT.L #1 #0 DM0
#1 #0 DM0

- KV-SSC02 User’s Manual - 5-5


5-1 KV-SSC02 Unit Specific Instructions

U_RDHZ U_RDHZ(.L) U_RDHZ Measurement result


of frequency
Read frequency
counter is read from
@U_RDHZ @U_RDHZ(.L) U_RDHZ buffer memory.

Whether or not used in each operation mode

Up/down Preset Enable Enable Set timer Frequency


Mode accumulative Tachometer
counter count count count count
count
Availability - - - - -  -

5 Ladder program Input mode


Execution condition U_RDHZ KV-SSC02
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

n1 n2 D U _ R D H Z n1 n2 D

Execution condition @U_RDHZ KV-SSC02


n1 n2 D @ U _ R D H Z n1 n2 D

Available devices
Index
Bit device Word device Constant Indirect Local modification
specifying device
Operand
MR DM EM
R DR LR T C CR FM ZF T C Z CM #/$ #TM * @ :#/ :Z
B TM W
n1 - - - - - - - - - - -  - - - -
n2  -  - -        -   
D  -  - -     -  - -   

Operand Description
n1 Specifies unit No. (1 to 48). "$" can not be used for specifying.
n2 Specifies high-speed counter channel (0 or 1) or the device in which a channel is stored. *1
D Specifies the device for storing the read frequency. *2
*1 If a bit device is specified, sequential 16 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).
*2 If a bit device is specified, sequential 32 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).

5-6 - KV-SSC02 User’s Manual -


5-1 KV-SSC02 Unit Specific Instructions

Description of Operation

U_RDHZ When execution condition is ON, Frequency count measurement value (Hz) of
n2 channel is read from the unit specified by n1 , and is stored into
D / D+1 as a 2-word BIN value.
Buffer memory Device No.

D +1 D
Calculation result of 12345678
Frequency count
32 bits
(2-word)

@U_RDHZ 1 scan will be performed only at the rising edge of the execution condition.
5

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
ON when any of the following conditions is true, otherwise OFF.
• When indirect specifying, index modification range are not proper.
• When unit No. specified by n1 is above 49.
CR2012
• When the unit specified by n1 is not KV-SSC02.
• When number of channels of high-speed counter specified by n2 is above 2.
• When 2-word device can not be guaranteed starting from the device No. specified by D .

Example Program

When MR0 is ON, the Frequency count measurement result of ch0 of KV-SSC02 connected to the first
unit is read and written into [DM00000/DM00001].

;(Mnemonics list)
MR000 U_RDHZ.L KV-SSC02 LD MR000
Unit No. CH No. Storage device U_RDHZ.L #1 #0 DM0
#1 #0 DM0

- KV-SSC02 User’s Manual - 5-7


5-1 KV-SSC02 Unit Specific Instructions

U_RDRPM U_RDRPM(.L) U_RDRPM


Read rotation
Measurement result
of rotation speed is
speed read from buffer
@U_RDRPM @U_RDRPM(.L) U_RDRPM memory.

Whether or not used in each operation mode

Up/down Preset Enable Enable Set timer Frequency


Mode accumulative Tachometer
counter count count count count
count
Availability - - - - - - 

5 Ladder program Input mode


Execution condition U_RDRPM KV-SSC02
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

n1 n2 D U _ R D R P M n1 n2 D

Execution condition @U_RDRPM KV-SSC02


n1 n2 D @ U _ R D R P M n1 n2 D

Available devices
Index
Bit device Word device Constant Indirect Local modification
specifying device
Operand
MR DM EM
R DR LR T C CR FM ZF T C Z CM #/$ #TM * @ :#/ :Z
B TM W
n1 - - - - - - - - - - -  - - - -
n2  -  - -        -   
D  -  - -     -  - -   

Operand Description
n1 Specifies unit No. (1 to 48). "$" can not be used for specifying.
n2 Specifies high-speed counter channel (0 or 1) or the device in which a channel is stored. *1
D Specifies the device for storing the read rotation speed. *2
*1 If a bit device is specified, sequential 16 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).
*2 If a bit device is specified, sequential 32 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).

5-8 - KV-SSC02 User’s Manual -


5-1 KV-SSC02 Unit Specific Instructions

Description of Operation

U_RDRPM When execution condition is ON, measurement result of rotation speed (rpm) of
n2 channel is read from the unit specified by n1 , and is stored into D /
D+1 as a 2-word BIN value.

Buffer memory Device No.

D +1 D
Rotation speed 12345678
measurement result

5
32 bits
(2-word)

@U_RDRPM 1 scan is performed only at the rising edge of the execution condition.

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
ON when any of the following conditions is true, otherwise OFF.
• When indirect specifying, index modification range are not proper.
• When unit No. specified by n1 is above 49.
CR2012
• When the unit specified by n1 is not KV-SSC02.
• When number of channels of high-speed counter specified by n2 is above 2.
• When 2-word device can not be guaranteed starting from the device No. specified by D .

Example Program

When MR0 is ON, the rotation speed measurement result of ch0 of KV-SSC02 connected to the first
unit is read and written into [DM00000/DM00001].

;(Mnemonics list)
MR000 U_RDRPM.L KV-SSC02
LD MR000
Unit No. CH No. Storage device
U_RDRPM.L #1 #0 DM0
#1 #0 DM0

- KV-SSC02 User’s Manual - 5-9


5-1 KV-SSC02 Unit Specific Instructions

U_RDCPT0 U_RDCPT0(.L)

U_RDCPT1
U_RDCPT0
U_RDCPT0.D
Input capture
Read input
value is read from
@U_RDCPT0 @U_RDCPT1(.L)
capture value
buffer memory.

@U_RDCPT1
U_RDCPT0
@U_RDCPT1.D

Whether or not used in each operation mode

Enable
Up/down Preset Enable Set timer Frequency
Mode counter count
accumulative
count count count Tachometer

5 Availability  
counting
   - -
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

Ladder program Input mode


Execution condition U_RDCPT0 KV-SSC02
n1 n2 D U _ R D C P T 0 n1 n2 D

Execution condition @U_RDCPT0 KV-SSC02


n1 n2 D @ U _ R D C P T 0 n1 n2 D

Available devices
Index
Bit device Word device Constant Indirect Local modification
specifying device
Operand
MR DM EM
R DR LR T C CR FM ZF T C Z CM #/$ #TM * @ :#/ :Z
B TM W
n1 - - - - - - - - - - -  - - - -
n2  -  - -        -   
D  -  - -     -  - -   

Operand Description
n1 Specifies unit No. (1 to 48). "$" can not be used for specifying.
n2 Specifies high-speed counter channel (0 or 1) or the device in which a channel is stored. *1
D Specifies the device for storing the read input capture value. *2*3
*1 If a bit device is specified, sequential 16 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).
*2 If a bit device is specified, sequential 32 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).
*3 When suffix is ".L", data will be processed as 32-bit signed BIN data; when suffix is ".D", data will be
processed as 32-bit unsigned BIN data.

5-10 - KV-SSC02 User’s Manual -


5-1 KV-SSC02 Unit Specific Instructions

Description of Operation

U_RDCPT0 When execution condition is ON, input capture value of n2 channel is read from
U_RDCPT1 the unit specified by n1 , and is stored into D / D+1 as a 2-word BIN value.

Buffer memory Device No.

D +1 D
Input 12345678
capture value
32 bits
(2-word)

@U_RDCPT0 1 scan is performed only at the rising edge of the execution condition. 5
@U_RDCPT1

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
ON when any of the following conditions is true, otherwise OFF.
• When indirect specifying, index modification range are not proper.
• When unit No. specified by n1 is above 49.
CR2012
• When the unit specified by n1 is not KV-SSC02.
• When number of channels of high-speed counter specified by n2 is above 2.
• When 2-word device can not be guaranteed starting from the device No. specified by D .

Example Program

When MR0 is ON, input capture 0 value of ch0 of KV-SSC02 connected to the first unit is read and
written into [DM00000/DM00001].

;(Mnemonics list)
MR000 U_RDCPT0.L KV-SSC02
Unit No. CH No. Storage device LD MR000
#1 #0 DM0 U_RDCPT0.L #1 #0 DM0

- KV-SSC02 User’s Manual - 5-11


5-1 KV-SSC02 Unit Specific Instructions

U_WRCNT U_WRCNT(.L)
U_WRCNT.D
U_WRCNT
Write count
Writes current value
of high-speed ounter
current value
@U_WRCNT @U_WRCNT(.L)
@U_WRCNT.D
U_WRCNT
into butter memory

Whether or not used in each operation mode

Enable
Mode Up/down Preset accumulative Enable Set timer Frequency
Tachometer
counter count count count count
count
Availability      - -

5 Ladder program Input mode


Execution condition U_WRCNT KV-SSC02
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

n1 n2 S U _ W R C N T n1 n2 S

Execution condition @U_WRCNT KV-SSC02


n1 n2 S @ U _ W R C N T n1 n2 S

Available devices
Index
Bit device Word device Constant Indirect Local modification
specifying device
Operand
MR DM EM
R DR LR T C CR FM ZF T C Z CM #/$ #TM * @ :#/ :Z
B TM W
n1 - - - - - - - - - - -  - - - -
n2  -  - -        -   
S  -  - -     -   -   

Operand Description
n1 Specifies unit No. (1 to 48). "$" can not be used for specifying.
n2 Specifies high-speed counter channel (0 or 1) or the device in which a channel is stored. *1
S Specifies the device for writing a value or storing a written value. *2*3
*1 If a bit device is specified, sequential 16 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).
*2 If a bit device is specified, sequential 32 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).
*3 When suffix is ".L", data will be processed as 32-bit signed BIN data; when suffix is ".D", data will be
processed as 32-bit unsigned BIN data.

5-12 - KV-SSC02 User’s Manual -


5-1 KV-SSC02 Unit Specific Instructions

Description of Operation

U_WRCNT When execution condition is ON, comparator setting of n2 channel of the unit
specified by n1 will be changed to 2-word BIN value specified by S / S+1 .

Constant

12345678

Device No. Buffer memory

S +1 S

12345678
High-speed counter
current value
5
32 bits

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


(2-word)

@U_WRCNT 1 scan will be performed only at the rising edge of the execution condition.

Point • When U_WRCNT is used in interrupt instruction program and fixed period
execution module, it should be interlocked to the write operation of comparator
setting in main scan (based on setting update request relay).
• When the instruction is written into a module, the comparator setting value
assigned to DM will also be changed.
"List of Available Devices", Page A-6

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
ON when any of the following conditions is true, otherwise OFF.
• When indirect specifying, index modification range are not proper.
• When unit No. specified by n1 is above 49.
CR2012
• When the unit specified by n1 is not KV-SSC02.
• When number of channels of high-speed counter specified by n2 is above 2.
• When 2-word device can not be guaranteed starting from the device No. specified by S .

Example Program

When MR0 is ON, the comparator 0 setting value of ch0 of KV-SSC02 connected to the first unit is
changed to the value stored in [DM00000/DM00001].

U_WRCNT.L KV-SSC02 ;(Mnemonics list)


MR000 R30004
Unit No. CH No. Count value LD MR000
#1 #0 DM0 ANB R30004
ch0 current value U_WRCNT.L #1 #0 DM0
write request

- KV-SSC02 User’s Manual - 5-13


5-1 KV-SSC02 Unit Specific Instructions

U_WRCTC0 U_WRCTC0(.L)

U_WRCTC1
U_WRCTC0
U_WRCTC0.D Comparator
Write
setting value is
comparator
@U_WRCTC0 @U_WRCTC1(.L)
setting value
written into buffer
memory.

@U_WRCTC1
U_WRCTC0
@U_WRCTC1.D

Whether or not used in each operation mode

Enable
Up/down Preset Enable Set timer Frequency
Mode counter count
accumulative
count count
Tachometer
count
5 Availability  
count
   - -
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

Ladder program Input mode


Execution condition U_WRCTC0 KV-SSC02
n1 n2 S U _ W R C T C 0 n1 n2 S

Execution condition @U_WRCTC0 KV-SSC02


n1 n2 S @ U _ W R C T C 0 n1 n2 S

Available devices
Index
Indirect Local modification
Bit device Word device Constant specifying device
Operand
MR
DM EM FM
R DR LR T C CR ZF TM W T C Z CM #/$ #TM * @ :#/ :Z
B
n1 - - - - - - - - - - -  - - - -
n2  -  - -        -   
S  -  - -     -   -   

Operand Description
n1 Specifies unit No. (1 to 48). "$" can not be used for specifying.
n2 Specifies high-speed counter channel (0 or 1) or the device in which a channel is stored. *1
S Specifies the device for writing a value or storing a written value. *2*3
*1 If a bit device is specified, sequential 16 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).
*2 If a bit device is specified, sequential 32 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).
*3 When suffix is ".L", data will be processed as 32-bit signed BIN data; when suffix is ".D", data will be
processed as 32-bit unsigned BIN data.

5-14 - KV-SSC02 User’s Manual -


5-1 KV-SSC02 Unit Specific Instructions

Description of Operation

U_WRCTC0 When execution condition is ON, preset setting value of n2 channel of the unit
U_WRCTC1 specified by n1 will be changed to 2-word BIN value specified by S / S+1 .

Constant

12345678

Device No. Buffer memory

S +1 S

12345678
Comparator setting
value 5
32 bits
(2-word)

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


@U_WRCTC0 1 scan is performed only at the rising edge of the execution condition.
@U_WRCTC1

Point • When U_WRCTC0/1 is used in interrupt instruction program and fixed period
execution module, it should be interlocked to the write operation of current value
in main scan (based on setting update request relay).
• When the U_WRCTC0/1 instruction is written into a module, the comparator
setting value assigned to DM will also be changed.
"List of Available Devices", Page A-6

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
ON when any of the following conditions is true, otherwise OFF.
• When indirect specifying, index modification range are not proper.
• When unit No. specified by n1 is above 49.
CR2012
• When the unit specified by n1 is not KV-SSC02.
• When number of channels of high-speed counter specified by n2 is above 2.
• When 2-word device can not be guaranteed starting from the device No. specified by S .

Example Program

When MR0 is ON, the comparator 0 setting value of ch0 of KV-SSC02 connected to the first unit is
changed to the value stored in [DM00000/DM00001].

;(Mnemonics list)
MR000 R30005 U_WRCTC0.L KV-SSC02
Unit No. CH No. Comparator 0 value LD MR000
#1 #0 DM0 ANB R30005
ch0 set up U_WRCTC0.L #1 #0 DM0
update request

- KV-SSC02 User’s Manual - 5-15


5-1 KV-SSC02 Unit Specific Instructions

U_WRPST U_WRPST(.L)
U_WRPST.D
U_WRPST
Write preset
Preset setting
value is written
setting value
@U_WRPST @U_WRPST(.L)
@U_WRPST.D
U_WRPST
buffer memory.

Whether or not used in each operation mode

Enable
Up/down Preset Enable Set timer Frequency
Mode counter count
accumulative
count count count Tachometer
count
Availability      - -

5 Ladder program Input mode


Execution condition U_WRPST KV-SSC02
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

n1 n2 S U _ W R P S T n1 n2 S

Execution condition @U_WRPST KV-SSC02


n1 n2 S @ U _ W R P S T n1 n2 S

Available devices
Index
Indirect Local modification
Bit device Word device Constant specifying device
Operand
MR DM EM
R DR LR T C CR FM ZF T C Z CM #/$ #TM * @ :#/ :Z
B TM W
n1 - - - - - - - - - - -  - - - -
n2  -  - -        -   
S  -  - -     -   -   

Operand Description
n1 Specifies unit No. (1 to 48). "$" can not be used for specifying.
n2 Specifies high-speed counter channel (0 or 1) or the device in which a channel is stored. *1
S Specifies the device for writing a value or storing a written value. *2*3
*1 If a bit device is specified, sequential 16 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).
*2 If a bit device is specified, sequential 32 bits will be used. Nothing but the head of the channel (e.g.
R002 or R106) can be specified. Specify the head of the channel (e.g. R000 or R100).
*3 When suffix is ".L", data will be processed as 32-bit signed BIN data; when suffix is ".D", data will be
processed as 32-bit unsigned BIN data.

5-16 - KV-SSC02 User’s Manual -


5-1 KV-SSC02 Unit Specific Instructions

Description of Operation

U_WRPST When execution condition is ON, preset setting value of n2 channel of the unit
specified by n1 will be changed to 2-word BIN value specified by S / S+1 .
Constant

12345678

Device No. Buffer memory

S +1 S

12345678 Preset setting value


32 bits
(2-word)
5

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


@U_WRPST 1 scan will be performed only at the rising edge of the execution condition.

Point • When U_WRPST is used in interrupt instruction program and fixed period
execution module, it should be interlocked to the write operation of preset value
in main scan (based on preset value write request relay).
• When U_WRPST instruction is written into a module, the preset value assigned
to DM will also be changed.
"List of Available Devices", Page A-6

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
ON when any of the following conditions is true, otherwise OFF.
• When indirect specifying, index modification range are not proper.
• When unit No. specified by n1 is above 49.
CR2012
• When the unit specified by n1 is not KV-SSC02.
• When number of channels of high-speed counter specified by n2 is above 2.
• When 2-word device can not be guaranteed starting from the device No. specified by S .

Example Program

When MR0 is ON, the preset setting value of ch0 of KV-SSC02 connected to the first unit is changed to
the value stored in [DM00000/DM00001].

;(Mnemonics list)
MR000 R30006 U_WRPST.L KV-SSC02
LD MR000
Unit No. CH No. Preset value
ANB R30006
#1 #0 DM0
ch0 preset value U_WRPST.L #1 #0 DM0
write request

- KV-SSC02 User’s Manual - 5-17


5-1 KV-SSC02 Unit Specific Instructions

U_RDBF U_RDBF(.S) U_RDBF


Reads
Reads data with
buffering
buffering performed from
@U_RDBF @U_RDBF(.S) U_RDBF data the buffer
memory.

Ladder program Input mode


Execution condition U_RDBF.S KV-SSC02
n1 n2 D n3 U _ R D B F n1 n2 D n3

Execution condition U_RDBF.S KV-SSC02


n1 n2 D n3 @ U _ R D B F n1 n2 D n3

5 Available Devices
Indirect
Index
Local modification
Bit device Word devices Constant
specifying device
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

Operand
MR DM EM
R DR LR T C CR FM ZF T C Z CM #/$ #TM * @ :#/:Z
B TM W
n1 - - - - - - - - - - -  - - - -
n2  -  - -        -   
D  -  - -   - - -  - -   
n3  -  - -        -   

Operand Description
n1 To specify unit No. (1 to 48). *1
n2 Specifies high-speed counter channel (0 or 1) or the device in which a channel is stored. *2
D Specifies the leading device that stores the data read. *2
n3 Specifies the number of data to read from the buffer memory.*2 *3
*1 $ (HEX selection) can not be used.
*2 If bit device is specified in n1 , n2 , D , n3 , continuous 16 bits will be handled.
It is not possible to specify any location other than the beginning of a channel (R002, R106,
R1012, etc.). Specify the beginning of a channel (R000, R100, R1000, etc.).
*3 If buffering is performed at every 32 bits, it is necessary to read buffering count ×2 of number of data.

Operation explanation

U_RDBF(.S) When the execution condition is ON, the data of channel number n1 buffered
in n2 unit is n3 word read and then stored in D to D + n3 -1 as
binary values. At the same time, the data read is deleted from the buffer memory,
so that subsequent data in the buffer memory is packed forwards.
Buffer memory Buffer memory Device
Ⓐ Ⓔ D2 : Ⓐ
Ⓑ Ⓕ D2 +1 : Ⓑ
Ⓒ Ⓖ D2 +2 : Ⓒ

Ⓓ Ⓗ D2 + n3 -1 : Ⓓ
Ⓔ Ⓘ
Ⓕ Ⓙ Brought forwards
Ⓖ Ⓚ

@U_RDBF(.S) The instruction is performed only at the rising edge of condition.

5-18 - KV-SSC02 User’s Manual -


5-1 KV-SSC02 Unit Specific Instructions

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
It is ON in any one of the following conditions, otherwise it is OFF.
• If the unit number specified by n1 is 49 or more
• If the unit with unit number specified by n1 is not KV-SSC02
CR2012
• If the channel number of high-speed counter specified by n2 is 2 or more
• If the continuous n3 word device cannot be secured from the device number specified by D
• If the range in indirect selection or index modification is incorrect
* When CR2012 is ON, detailed error information of CM5100 to CM5176 will be stored.
Refer to the User's Manual of the CPU unit used for details.
5

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


Sample program

When the first connected KV-SSC02 CH0's buffering is finished, this program reads 3000 points of
buffering data and stores them to EM0 to EM2999 (if there is no data ID and buffering is performed for
every 16 bits).

;<Mnemonic list>
CR2008 LD CR2008
EI EI
END
Operation starts 1 INT #1 #16
scan ON LD CR2002
END
U_RDBF #1 #0 EM0 #3000
RETI
ENDH

INT
Unit No. Interrupt factor
#1 #16
KV-SSC02 ch0 Buffering
completed

CR2002 U_RDBF KV-SSC02


Unit No. CH No. Stg dev Data count
#1 #0 EM0 #3000
Always ON KV-SSC02

RETI

ENDH

- KV-SSC02 User’s Manual - 5-19


5-1 KV-SSC02 Unit Specific Instructions

Module instruction

U_DISOCP U_DISOCP
Output overcurrent
It configures whether to
activate of disable the
protection function
@U_DISOCP U_DISOCP configuration
output overcurrent
protection function.

Ladder program Input method


Executing
condition U_DISOCP
n1 S U _ D I S O C P n1 S

Executing
condition U_DISOCP
n1 S @ U _ D I S O C P n1 S

5 Bit device
Available Device

Word device Constant


Indirect Local
Index
modification
specifying device
Operand
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

MR DM EM
R DR LR T C CR FM ZF T C Z CM #/$ #TM * @ : #/ : Z
B TM W
n1 - - - - - - - - - - -  - - - -
S  -  - -   - - -   -   

Operand Description
n1 It designates the unit number.
S It designates the value to write in or the device number that stores it.1

*1 If a bit device is specified, sequential 16 bits will be used. Nothing but the head of the channel (e.g.
R002, R106 or R1012) can be specified. Specify the head of the channel (e.g. R000, R100 or
R1000). In case that a word device is specified, it will occupy one word.

Operating condition

U_DISOCP It disables the overcurrent protection function of KV-SSC02 of the unit number
designated n1 , when 1 is designated to S when executing condition is ON .

@U_DISOCP It executes only 1 scan at the rising edge of executing condition.

5-20 - KV-SSC02 User’s Manual -


5-1 KV-SSC02 Unit Specific Instructions

Computation Flag

CR2009 No Change
CR2010 No Change
CR2011 No Change
ON for the following, otherwise it is OFF.
• When the range of indirect designation, index modification is inappropriate.
CR2012
• When the unit number designated at n1 is equal to or greater than 49.
• When the unit number designated at n1 is not KV-SSC02.

* The instruction will not be executed when CR2012 is ON.


The detailed information of the error will be stored to CM5150 to CM5176 when CR2012 is ON.

Sample Program 5

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


It disables the overcurrent protection function of KV-SSC02 of the unit number 1.

;<Mnemonic List>
CR2008 U_DISOCP KV-SSC02
Unit number Invalidating flag LD CR2008
#1 #1 U_DISOCP #1 #1
1 scan ON KV-SSC02
at the start of operation

- KV-SSC02 User’s Manual - 5-21


5-2 KV-SSC02 Unit Specific Functions

List of Unit Specific Functions

When KV script is running, write/read operation of current value and setting of KV-SSC02 will be
performed independent of scan time. For using in a ladder program, please see "5-1 KV-SSC02
Unit Specific Instructions", Page 5-2.

Function Code Description of Operation See

Reads current value of high-speed counter from buffer


Read count current value U_RDCNT Page 5-23
memory.
Reads measurement result of frequency counter from
Read frequency U_RDHZ Page 5-24

5
buffer memory.
Reads measurement result of rotation speed from buffer
Read rotation speed U_RDRPM Page 5-25
memory.
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

U_RDCPT0
Read input capture value Reads input capture value from buffer memory. Page 5-22
U_RDCPT1
Writes current value of high-speed counter into buffer
Write count current value U_WRCNT Page 5-27
memory.
Write comparator setting U_WRCTC0
Writes comparator setting value into buffer memory. Page 5-28
value U_WRCTC1

Write preset setting value U_WRPST Writes preset setting value into buffer memory. Page 5-29

Read the count current value buffered from the buffer


Reading buffering data U_RDBF Page 5-30
memory.
Output overcurrent Enables/Disables overcurrent protection function for
U_DISOCP Page 5-31
protection function settings output.

5-22 - KV-SSC02 User’s Manual -


5-2 KV-SSC02 Unit Specific Functions

U_RDCNT Read count current value

U_RDCNT ([Execution condition]*1, unit No., ch No., leading device No.)

Argument/ Operation type Constant Operation


Description Device formula
return value .U .S .D .L .F .DF .B .T #/$
n1 Unit No. Specifies unit No. (1 to 48). - - - - - - - -  - 
Specifies a channel No. or a
n2 CH No.*2 device for storing the channel .U .U .U .U - - - -   
No.
Specifies the device No. for
5
D Device No.*3 storing the read current counting - - .D .L - - - - -  -

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


value.
R Return value None - - - - - - - - - - -
*1 " " can be omitted. (If execution condition is omitted, the instruction will always be performed (will
be performed at each scan).

*2 If bit device is specified in n2 , continuous 16 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

*3 If bit device is specified, in D continuous 32 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

Whether can be used in each operation mode

Up/down Preset Enable Enable Set timer Frequency


Mode accumulative Tachometer
counter count count count count
count
Can be
     - -
used or not

Description of Operation

When execution condition is ON, high-speed counter current value of channel is read from the
n2

unit specified by n1 , and is stored into D / D+1 as a 2-word BIN value.


"U_RDCNT", Page 5-4

 Format example
Programming script U_RDCNT (MR0, 1, 0, DM0.L)
Description of When MR0 is ON, the high-speed counter current value of ch0 of KV-SSC02
connected to the first unit is read and written into [DM00000/DM00001].
Ladder conversion
MR000 U_RDCNT.L KV-SSC02
Unit No. CH No Storage device
#1 #0 DM0

- KV-SSC02 User’s Manual - 5-23


5-2 KV-SSC02 Unit Specific Functions

U_RDHZ Read frequency

U_RDHZ ([Execution condition]*1, unit No., ch No., leading device No.)

Argument/ Operation type Constant Operation


Description Device formula
return value .U .S .D .L .F .DF .B .T #/$
n1 Unit No. Specifies unit No. (1 to 48). - - - - - - - -  - 
Specifies a channel No. or a
n2 CH No. *2 device for storing the channel .U .U .U .U - - - -   

5 No.
Specifies the device No. for
D Device No.*3 storing the read Frequency - - L .L - - - - -  -
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

count result.
R Return value None - - - - - - - - - - -
*1 " " can be omitted. (If execution condition is omitted, the instruction will always be performed (will
be performed at each scan).)

*2 If bit device is specified in n2 , continuous 16 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

*3 If bit device is specified in D , continuous 32 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

Whether can be used in each operation mode

Up/down Preset Enable Enable Set timer Frequency


Mode counter count accumulative count count count Tachometer
count
Can be
- - - - -  -
used or not

Description of Operation

When execution condition is ON, Frequency count measurement result (Hz) of channel is read
n2

from the unit specified by n1 , and is stored into D / D+1 as a 2-word BIN value.
"U_RDHZ", Page 5-6

 Format example
Programming script U_RDHZ (MR0, 1, 0, DM0.L)
Description of When MR0 is ON, the Frequency count measurement result (Hz) of ch0 of KV-
SSC02 connected to the first unit is read and written into [DM00000/DM00001].
Ladder convert
MR000 U_RDHZ.L KV-SSC02
Unit No. CH No. Storage device
#1 #0 DM0

5-24 - KV-SSC02 User’s Manual -


5-2 KV-SSC02 Unit Specific Functions

U_RDRPM Read rotation speed

U_RDRPM ([Execution condition]*1, unit No., ch No., leading device No.)

Argument/ Operation type Constant Operation


Description Device formula
return value .U .S .D .L .F .DF .B .T #/$
n1 Unit No. Specifies unit No. (1 to 48). - - - - - - - -  - 
Specifies a channel No. or a
n2 CH No. *2 device for storing the channel .U .U .U .U - - - -   
No.
Specifies the device No. for storing
5
D Device No.*3 the read rotation speed calculation - - L .L - - - - -  -

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


result.
R Return value None - - - - - - - - - - -
*1 " " can be omitted. (If execution condition is omitted, the instruction will always be performed (will
be performed at each scan).)

*2 If bit device is specified in n2 , continuous 16 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

*3 If bit device is specified in D , continuous 32 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

Whether can be used in each operation mode

Up/down Preset Enable Enable Set timer Frequency


Mode counter count accumulative count count count Tachometer
count
Can be
- - - - - - 
used or not

Description of Operation

When execution condition is ON, measurement result of rotation speed (rpm) of channel is read
n2

from the unit specified by n1 , and is stored into D / D+1 as a 2-word BIN value.
"U_RDRPM", Page 5-8

 Format example
Programming script U_RDRPM (MR0, 1, 0, DM0.L)
Description of When MR0 is ON, the rotation speed measurement result of ch0 of KV-SSC02
connected to the first unit is read and stored into [DM00000/DM00001].
Ladder conversion
MR000 U_RDRPM.L KV-SSC02
Unit No. CH No. Storage device
#1 #0 DM0

- KV-SSC02 User’s Manual - 5-25


5-2 KV-SSC02 Unit Specific Functions

U_RDCPT0/U_RDCPT1 Read input capture value

U_RDCPT0 ([Execution condition]*1, unit No., ch No., leading device No.)

Argument/ Operation type Constant Operation


Description Device formula
return value .U .S .D .L .F .DF .B .T #/$
n1 Unit No. Specifies unit No. (1 to 48). - - - - - - - -  - 
Specifies a channel No. or a
n2 CH No. *2 device for storing the channel .U .U .U .U - - - -   

5 No.
Specifies the device No. for
D Device No.*3 storing the read input capture - - .D .L - - - - -  -
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

value.
R Return value None - - - - - - - - - - -
*1 " " can be omitted. (If execution condition is omitted, the instruction will always be performed (will
be performed at each scan).)

*2 If bit device is specified, in n2 continuous 16 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

*3 If bit device is specified in D , continuous 32 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

Whether can be used in each operation mode

Up/down Preset Enable Enable Set timer Frequency


Mode counter count accumulative count count count Tachometer
count
Can be
     - -
used or not

Description of Operation

When execution condition is ON, input capture value of channel is read from the unit specified
n2

by n1 , and is stored into D / D+1 as a 2-word BIN value.


"U_RDCPT0", Page 5-10
"U_RDCPT1", Page 5-10

 Format example
Programming script U_RDCPT0 (MR0, 1, 0, DM0.L)
Description of When MR0 is ON, input capture 0 value of ch0 of KV-SSC02 connected to the first
unit is read and stored into [DM00000/DM00001].
Ladder conversion
MR000 U_RDCPT0.L KV-SSC02
Unit No. CH No. Storage device
#1 #0 DM0

5-26 - KV-SSC02 User’s Manual -


5-2 KV-SSC02 Unit Specific Functions

U_WRCNT Write count current value

U_WRCNT ([Execution condition]*1, unit No., ch No., value to be written)

Argument/ Operation type Constant Operation


Description Device formula
return value .U .S .D .L .F .DF .B .T #/$
n1 Unit No. Specifies unit No. (1 to 48). - - - - - - - -  - 
Specifies a channel No. or a
n2 CH No. *2 .U .U .U .U - - - -   
device for storing the channel No.

5
S Value to be Specifies the value to be written and .D .L .D .L - - - -   
written*3 the device for storing a written value.
R Return value None - - - - - - - - - - -

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


*1 " " can be omitted. (If execution condition is omitted, the instruction will always be performed (will be performed at each scan).)

*2 If bit device is specified in n2 , continuous 16 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

*3 If bit device is specified in S , continuous 32 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

Whether can be used in each operation mode

Enable
Mode Up/down Preset accumulative Enable Set timer Frequency Tachometer
counter count count count count
count
Can be
     - -
used or not

Description of Operation

When execution condition is ON, comparator setting of n2 channel of the unit specified by n1

will be changed to 2-word BIN value specified by S / S+1 .


"U_WRCNT", Page 5-12

Point · When U_WRCNT is used in interrupt instruction program and fixed period
execution module, it should be interlocked to the write operation of comparator
setting in main scan (based on setting update request relay).
· When the U_WRCNT function is written into a unit, the comparator setting value
assigned to DM will also be changed.
"List of Available Devices", Page A-6

 Format example
Programming script U_WRCNT (MR0, 1, 0, DM0.L)
Description of When MR0 is ON, the high-speed current value of ch0 of KV-SSC02 connected to
the first unit will be changed to the value stored in [DM00000/DM00001].
Ladder conversion
MR000 U_WRCNT.L KV-SSC02
Unit No. CH No. Storage device
#1 #0 DM0

- KV-SSC02 User’s Manual - 5-27


5-2 KV-SSC02 Unit Specific Functions

U_WRCTC0/U_WRCTC1 Write comparator setting value

U_WRCTC0 ([Execution condition]*1, unit No., ch No., value to be written)

Argument/ Operation type Constant Operation


Description Device formula
return value .U .S .D .L .F .DF .B .T #/$
n1 Unit No. Specifies unit No. (1 to 48). - - - - - - - -  - 
Specifies a channel No. or a
n2 CH No. *2 .U .U .U .U - - - -   
device for storing the channel No.

5
S Value to be Specifies the value to be written and .D .L .D .L - - - -   
written*3 the device for storing a written value.
R Return value None - - - - - - - - - - -
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

*1 " " can be omitted. (If execution condition is omitted, the instruction will always be performed (will be performed at each scan).)

*2 If bit device is specified in n2 , continuous 16 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).
*3 If bit device is specified in S , continuous 32 bits will be processed.
Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

Whether can be used in each operation mode

Up/down Preset Enable Enable Set timer Frequency


Mode accumulative Tachometer
counter count count count count
count
Can be
     - -
used or not

Description of Operation

When execution condition is ON, preset setting value of n2 channel of the unit specified by n1

will be changed to 2-word BIN value specified by S / S+1 .


"U_WRCTC0", Page 5-14
"U_WRCTC1", Page 5-14

Point · When U_WRCTC0/1 is used in interrupt instruction program and fixed period
execution module, it should be interlocked to the write operation of current value
in main scan (based on setting update request relay).
· When the U_WRCTC0/1 function is written into a unit, the comparator setting
value assigned to DM will also be changed.
"List of Available Devices", Page A-6

 Format example
Programming script U_WRCTC0 (MR0, 1, 0, DM0.L)
Description of When MR0 is ON, the high-speed counter comparator 0 setting value of ch0 of KV-
SSC02 connected to the first unit is changed to the value stored in [DM00000/DM00001].
Ladder conversion
MR000 U_WRCTC0.L KV-SSC02
Unit No. CH No. Storage device
#1 #0 DM0

5-28 - KV-SSC02 User’s Manual -


5-2 KV-SSC02 Unit Specific Functions

U_WRPST Write preset setting value

U_WRPST ([Execution condition]*1, unit No., ch No., value to be written)

Argument/ Operation type Constant Operation


Description Device formula
return value .U .S .D .L .F .DF .B .T #/$
n1 Unit No. Specifies unit No. (1 to 48). - - - - - - - -  - 
Specifies a channel No. or a
n2 CH No. *2 .U .U .U .U - - - -   
device for storing the channel No.

5
S Value to be Specifies the value to be written and .D .L .D .L - - - -   
written*3 the device for storing a written value.
R Return value None - - - - - - - - - - -

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


*1 " " can be omitted. (If execution condition is omitted, the instruction will always be performed (will
be performed at each scan).)

*2 If bit device is specified in n2 , continuous 16 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

*3 If bit device is specified in S , continuous 32 bits will be processed.


Nothing but the head of the channel (e.g. R002, R106 or R1012) can be specified. Specify the
head of the channel (e.g. R000 or R100).

Whether can be used in each operation mode

Enable
Mode Up/down Preset accumulative Enable Set timer Frequency Tachometer
counter count count count count count

Can be
     - -
used or not

Description of Operation

When execution condition is ON, preset setting value of n2 channel of the unit specified by n1

will be changed to 2-word BIN value specified by S / S+1 .


"U_WRPST", Page 5-16

Point · When U_WRPST is used in interrupt instruction program and fixed period
execution module, it should be interlocked to the write operation of preset value
in main scan (based on preset value write request relay).
· When U_WRPST function is written into a unit, the preset value assigned to DM
will also be changed.
"List of Available Devices", Page A-6

 Format example
Programming script U_WRPST (MR0, 1, 0, DM0.L)
Description of When MR0 is ON, the preset setting value of ch0 of KV-SSC02 connected to the first
unit is changed to the value stored in [DM00000/DM00001].
Ladder conversion
MR000 U_WRPST.L KV-SSC02
Unit No. CH No. Storage device
#1 #0 DM0

- KV-SSC02 User’s Manual - 5-29


5-2 KV-SSC02 Unit Specific Functions

Contact function

U_RDBF Reads buffering data

U_RDBF ([Execution condition]*1, unit No., ch No., leading device No., number of
data to read)
Argument/ Operation type Constant Operation
Description Device formula
return value .U .S .D .L .F .DF .B .T #/$
n1 Unit No.*2 Specify unit No.(1 to 48). - - - - - - - -  - 
Specifies high-speed counter
n2 Ch No.*4 channel (0 or 1) or the device in .U .U .U .U - - - -   
which a channel is stored.

5 D Leading
device No.*3 *4
Specify the leading device storing. .S .S .S .S - - - - -  -

n3 Number of data Specifies the number of data to .U .U .U .U - - - -   


UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

to read*4 *5 read from the buffer memory.


R Return value None - - - - - - - - - - -

*1 "[ ]" can be omitted (if execution condition is omitted, the instruction will be always performed (performed
in every scanning).
*2 $( HEX selection) can not be used.
*3 T, C, and Z cannot be specified.
*4 If bit device is specified in n1 , n2 , D , n3 , continuous 16 bits will be handled. It is not
possible to specify any location other than the beginning of a channel (R002, R106, R1012, etc.).
Specify the beginning of a channel (R000, R100, R1000, etc.).
*5 If buffering is performed at every 32 bits, it is necessary to read buffering count×2 of number of data.

Operation explanation

When the execution condition is ON, the data of channel number n1 buffered in n2 unit is n3

word read and then stored in D to D + n3 -1 as binary values.

For details, see "U_RDBF", Page 5-18.

 Format example
Programming script U_RDBF (MR000, 1, 0, DM0, 4000)
Description of Operation When MR000 is ON, reads CH0's 4000 word data buffered in first connected KV-SSC02,
and the stores them in DM0 to DM3999.
Ladder conversion
MR000 U_RDBF.S KV-SSC02 Read number
Unit No. CH No. Stg dev of data
#1 #0 DM0 #4000

5-30 - KV-SSC02 User’s Manual -


5-2 KV-SSC02 Unit Specific Functions

U_DISOCP Output overcurrent protection function configuration

*1
U_DISOCP([Executing Condition] , Unit number, Configured value)

Argument/ Operation type Constant


Description Device Operation
return value .U .S .D .L .F .DF .B .T #/$ formula
It designates the unit number of
n1 Unit number*2 .− .− − − − − − − ○ *2 − −
the unit to read out.*2 (1 to 48)
S Configured Value It designates the device that
.U .U .U U − − − − ○ *2 ○ ○
Storing Device stores the configured value.

*1 [ ] can be omitted (When the executing condition is omitted, it will always (every scan) execute). 5
*2 $ (Hexadecimal designation) can not be used.

UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS


Description of Operation

U_DISOCP It disables overcurrent protection function of KV-SSC02 of the unit number designated
at n1 when 1 is designated to S when the executing condition is ON.

For details, see "U_DISOCP", Page 5-20

 Example of Format
Script Description U_DISOCP (MR0,#1,#1)
Description of Operation It disables the output overcurrent protection function of KV-SSC02 connected to the
first unit when MR0 is ON.
Ladder Conversion

MR000 U_DISOCP KV-SSC02


Unit number Invalidating flag
#1 #1
Buffering configuration KV-SSC02
write in

- KV-SSC02 User’s Manual - 5-31


5-2 KV-SSC02 Unit Specific Functions

MEMO

5
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS

5-32 - KV-SSC02 User’s Manual -


6
S-Unit function
6
This chapter describes unit specific instructions/functions when direct refresh
is performed.

S-Unit function
6-1 Unit Interrupt Function. . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
6-2 Buffering Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4
6-3 Unit Syncronization . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-14

- KV-SSC02 User’s Manual - 6-1


6-1 Unit Interrupt Function

What is Unit Interrupt Function

The KV-SSC02 input status can be checked and an interrupt can be carried out against the CPU unit
using the unit interrupt function.
A unit interrupt is executed by specifying the unit and the interrupt cause using the INT instruction.
The following interrupt conditions can be used for KV-SSC02 unit interrupt.

Condition No. Interrupt condition


0 Channel 0 comparator 0 match
1 Channel 0 comparator 1 match
2 Channel 1 comparator 0 match
3 Channel 1 comparator 1 match
4 Channel 0 Z-phase/the rising edge of preset
5 Channel 0 Z-phase/the falling edge of preset

6 6
7
Channel 0 the rising edge of INPUT0
Channel 0 the falling edge of INPUT0
8 Channel 0 the rising edge of INPUT1
S-Unit function

9 Channel 0 the falling edge of INPUT1


10 Channel 1 Z-phase/the rising edge of preset
11 Channel 1 Z-phase/the falling edge of preset
12 Channel 1 the rising edge of INPUT0
13 Channel 1 the falling edge of INPUT0
14 Channel 1 the rising edge of INPUT1
15 Channel 1 the falling edge of INPUT1
16 Channel 0 buffering complete
17 Channel 1 buffering complete

"What is Buffering Function", Page6-4


KV-8000 Series User's Manual "4-7 Interrupt"
KV-7000 Series User's Manual "4-7 Interrupt"

 Setting Method
Create a program for interrupt between END and ENDH.

CR2008
EI

Main routine program


If EI instruction is not executed in advance, the interrupt program
END
cannot be executed.

INT
Unit No. Interrupt factor

Interrupt program
 An interrupt program is written between END and ENDH.
RETI

ENDH

6-2 - KV-SSC02 User’s Manual -


6-1 Unit Interrupt Function

 Usage Example
If the CH0 comparator 0 is matched, an example of directly outputting the output relay R35200 is
explained.
;(Mnemonics list)
CR2008
LD CR2008
EI
EI
When operation starts 1 END
Scan ON INT #1 #0
LD CR2002
END
SET DR35200
RETI
ENDH

INT
Unit No. Interrupt factor
#1 #0
KV-SSC02 CH0 comparator
0 match

CR2002 DR35200
SET 6
Always ON

S-Unit function
RETI

ENDH

Reference To have direct output, write "R" as "DR".

- KV-SSC02 User’s Manual - 6-3


6-2 Buffering Function

What is Buffering Function

This is the function to sample the count current value of KV-SSC02 in the fastest 1s period and to
perform the buffering.
There are two buffering modes. When continuous buffering is used, buffering is performed while data is
being read, which makes it possible to continue to acquire large amount of data exceeding the size of the
buffer memory in the unit. When trigger buffering is used, buffering is performed while the trigger is in a
waiting state, which makes it possible to obtain the set amount of data before and after trigger input.

 Buffering Operation Overview


Example The shape of the work will be measured by sampling the analog value form the displacement
measurement instrument and count value of encoder pulse simultaneously.
Even if analog value and count value are changed with higher speed than scan time, it can be

6 sampled exactly.
S-Unit function

Analog value
(Displacement Scan time
measurements) Sampling period

Count current value


(Encoder position)

 Operating mode
 Continuous buffering
Data with sampling performed is stored in order. When buffering data read (U_RDBF instruction) is executed,
data is read from the CPU's device, and the same amount of data is deleted from the buffer memory. When
read is executed regularly, data in buffer memory is deleted so that buffering can continue to be
performed. Performing buffering with 4095 units of data in buffer memory will cause buffering overflow
and subsequent missing of sampling data.

Sampling data Data 1 Data 2 Data 3 Data 4 Data 5

Buffer memory Data 4 Data 4 Data 5 Data 5


Data 3 Data 3 Data 3 Data 4 Data 4 Data 5

Data 2 Data 2 Data 2 Data 2 Data 3 Data 3 Data 4

Data 1 Data 1 Data 1 Data 1 Data 1 Data 2 Data 2 Data 3

Read Data 1 Data 2

• Data that has been read out from the buffer is deleted.
Point
• In the read-out, the data is read out starting in order from the oldest data. You cannot
specify an intermediate buffer memory address to read out intermediate data.
• Even if overflow occurs, executing read (U_RDBF instruction) to delete data from the
buffer memory will restart buffering.

6-4 - KV-SSC02 User’s Manual -


6-2 Buffering Function

 Trigger Buffering
Like continuous buffering, trigger buffering stores count current value in the internal buffer. When a
trigger is input, only the specified amount of data before and after it is extracted and then stored in the
buffer memory.

Time Sampling data Buffer memory


Data 5021 Data 5024 - M
Data 5022

Data 5023 Data 5023

Trigger input Data 5024 Data 5024


Data 5025 Data 5025

Data 5026

Data 5027 Data 5024 - M + N

N:Number of buffering points


M:Pre-trigger buffering count
6
Point Buffer overflow does not occur during trigger buffer execution.

S-Unit function
 Data storing procedures
Data with sampling performed is stored in the buffer memory in the following way.

If ID selection setting is 0
Data is stored in the buffer memory in units of 32 bits.

CH Data Note
CH0 Count current value Oldest data
CH0 Count current value Second oldest data

CH0
CH0 Count current value Nth oldest data

CH0 Count current value 4095th oldest data

- KV-SSC02 User’s Manual - 6-5


6-2 Buffering Function

If ID selection setting is not 0


Data is stored in the buffer memory in units of 32 bits according to its data ID.
Specify which 16 bits should be stored from present 32-bit count values using the data shift setting.

Data
CH Note
Higher 16 bits Lower 16 bits
Data ID CH0 Count current value Oldest data
Data ID CH0 Count current value Second oldest data


CH0
Data ID CH0 Count current value Nth oldest data


Data ID CH0 Count current value 4095th oldest data

When reading out data using the U_RDBF instruction, the amount of data
Point
corresponding to buffering points x 2 should be read out.
6  Usage method
S-Unit function

All settings are read from a ladder program which uses UWRIT to write the value to the buffer memory
of KV-SSC02.
Data is read by unit specific instruction U_RDBF.
"U_RDBF", Page5-18

Buffering setting

Buffering enabled

Continuous buffering Trigger Buffering

Trigger input

Buffering completed Buffering completed

Data read Data read

6-6 - KV-SSC02 User’s Manual -


6-2 Buffering Function

 Used buffer memory address


Attribute
Buffer memory
Name R: Read only Overview
Address
R/W: Read enabled
0 : Continuous
#512 CH0 buffering mode setting R/W
1 : Trigger (default value: 0)
#513 CH0 buffering count setting R/W 1 to 4095 (default value: 100)
#514 CH0 buffering cycle setting R/W 1 to 65535 (default value: 10)
#515 (System reserved) −
0 : 1 write to trigger register
1 : Comparator 0 match
#516 CH0 trigger condition setting R/W 2 : Comparator 1 match
3 : Inter-unit synchronization interrupt
(default value: 0)
#517 to #518 (System reserved) −
#519 CH0 set the pre-trigger buffering count R/W 0 to 4095 (default value: 0)
0 : None
1 : Serial number

#520 CH0 ID number selection setting R/W


2 : Past time by inter-unit
synchronization cycle 6
3 : Serial number by inter-unit

S-Unit function
synchronization cycle
(default value: 0)
#521 CH0_data shift setting monitor R/W 0 to 16 (default value: 0)
#522 to #527 (System reserved) −
0 : Continuous
#528 CH0 buffering mode setting monitor R
1 : Trigger
#529 CH0 buffering count setting monitor R 1 to 4095
#530 CH0 buffering cycle setting monitor R 1 to 65535
#531 (System reserved) −
0 : 1 write to trigger register
1 : Comparator 0 match
#532 CH0 Trigger condition setting monitor R
2 : Comparator 1 match
3 : Inter-unit synchronization interrupt
#533 to #534 (System reserved) −
#535 CH0 set the pre-trigger buffering count monitor R 0 to 4095
0 : None
1 : Sequential number
2 : Past time by inter-unit
#536 CH0 ID selection setting monitor R
synchronization cycle
3 : Serial number by inter-unit
synchronization cycle
#537 CH0_data shift setting monitor R 0 to 16
Bit0 : When being buffered
#538 CH0 buffering status monitor R Bit1 : Waiting for trigger
Bit2 : Buffering completed
#539 CH0 current buffering count monitor R 0 to 4095
0 : Normal
#540 CH0 buffering overflow R
1 : Overflow occurring
#541 CH0_pre-trigger buffering monitor R 0 to 4095
#542 to #543 (System reserved) −
#544 to #575 CH1 buffering mode setting R/W Equivalent to #512 to #543
#576 to #639 (System reserved) −
0 : Disabled
#640 CH0 buffering enabled R/W 1 : Enabled
(default value: 0)
0 : Disabled
#641 CH1 buffering enabled R/W 1 : Enabled
(default value: 0)
#642 to #655 (System reserved) −
1 : Trigger input
#656 CH0 trigger R/W
(updated to 0 automatically after input)
1 : Trigger input
#657 CH1 trigger R/W
(updated to 0 automatically after input)
#658 to #8191 (System reserved) −

- KV-SSC02 User’s Manual - 6-7


6-2 Buffering Function

 Device
• Buffering mode setting (CH0: #512, CH1: #544)
Select the buffering mode to execute: Continuous buffering or trigger buffering.
0 : Continuous buffering
1 : Trigger Buffering
Only bit 0 is used.
The set value when "1" is written during buffering enable is applied to operation.
• Buffering count setting (CH0: #513, CH1: #545)
The number of sampling points is set during buffering execution.
In the continuous buffering mode, when the amount of data with buffering performed reaches the
setting value, the buffering completion bit becomes ON. Buffering continues.
In the trigger buffering mode, when the number of sampling before and after trigger reaches the

6 number of buffering set up, buffering completion bit is ON and then buffering stops.
The set value when "1" is written by the UWRIT instruction during buffering enable is applied to
operation.
S-Unit function

• Buffering cycle setting (CH0: #514, CH1: #546)


Specify the buffering sampling cycle in 1µs.
Setting range: 1 to 65535µs
• Trigger condition setting (CH0: #516, CH1: #548)
Set the trigger conditions for the trigger buffering mode.
0 : 1 write to trigger register
When 1 is written to buffer memory’s trigger register (CH0: #656, CH1: #657), trigger is input.
1 : Comparator 0 match
A trigger is input when the comparator 0 is matched.
2 : Comparator 1 match
A trigger is input when the comparator 1 is matched.
3 : Inter-unit synchronization interrupt
Input trigger at the time when inter-unit synchronization interrupt occurs.
Only bits 0 - 1 are used.
The set value when "1" is written during buffering enable is applied to operation.

6-8 - KV-SSC02 User’s Manual -


6-2 Buffering Function

• Pre-trigger buffering count setting (CH0: #519, CH1: #551)


The number of sampling points (0 to 4095) before the trigger is set in trigger buffering mode.
Only bits 0 - 11 are used.
The set value when "1" is written during buffering enable is applied to operation.

• ID selection setting (CH0: #520, CH1: #552)


Data ID is set to sampling data.
0 : No
Only count current value with sampling performed is stored as 32-bit data string in buffer.
1 : Sequential number
The Trg bit (1-bit), the sequential number (15 bits) and the present count value (from 32 bits, 16
bits selected in the data shift setting) are stored to the buffer in a 32-bit data line.
2 : Past time by inter-unit synchronization cycle
The Trg bit (1-bit), the (1 bit), the state bit (1 bit), the elapsed time by the inter-unit
6
synchronization cycle (14 bits) and the present count value (from 32 bits, 16 bits selected in the

S-Unit function
data shift setting) are stored to the buffer in a 32-bit data line.
3 : Serial number by inter-unit synchronization cycle
The Trg bit (1-bit), the state bit (1 bit), the sequential number by the inter-unit synchronization
cycle (14 bits) and the present count value (from 32 bits, 16 bits selected in the data shift
setting) are stored to the buffer in a 32-bit data line.
Trg bit
1 is written to the first sampling data after trigger input.
Sequential number
A sequential number is stored after it is incremented by 1 for each sampling. When buffering is
permitted, it is reset to 0.
State bit
During 1 inter-unit synchronization cycle, same value (0 or 1) will be written to all the sampling
data. For the following inter-unit synchronization cycle, reverse value will be written. When
buffering function is used in multiple units, same value will be written to the units.
Past Time by inter-unit synchronization
Past time from the start of the inter-unit synchronization cycle is stored as [µs] unit. When the
next inter-unit synchronization cycle starts, it is reset to 0 at the buffering permission.
Serial Number by inter-unit synchronization Cycle
Within inter-unit synchronization cycle, serial number which is added to each sample as an
ascending number by 1 is stored. When the next inter-unit synchronization cycle starts, it is
reset to 0 at the buffering permission.

- KV-SSC02 User’s Manual - 6-9


6-2 Buffering Function

• Data shift setting (CH0: #521, CH1: #553)


In case that the identification number selection setting is set to anything other than "0 (none)", specify
which 16 bits should be sampled from present 32-bit count values.
Example  Data shift setting: In case of 9

Current count value


Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Value 0 0 0 0 0 0 0 1 1 0 0 1 1 1 0 0 1 0 1 0 1 1 1 0 0 1 1 0 0 1 0 1 =27045477

16 bits Lower n bits

Data shit setting


Sampling data
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Value 1 1 0 0 1 1 1 0 0 1 0 1 0 1 1 1 =27045376 ∼ 27045887

6
Example  In case of the "1: sequential number" setting and data shit setting: 0
S-Unit function

Higher 16 bits Lower 16 bits


Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Value 1 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0 1 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0

Sequential number: 1234 Count current value: 13546

Trg bit: 1

Example  In case of the "2: elapsed time by the inter-unit synchronization cycle" setting and data
shit setting: 3

Higher 16 bits Lower 16 bits


Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Value 1 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0 1 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0

elapsed time of respective synchronization Count current value:272016 to 272023


period between units : 1234[μs]

State bit : 0

Trg bit : 1

6-10 - KV-SSC02 User’s Manual -


6-2 Buffering Function

Reference Elapsed time by the inter-unit synchronization cycle setting/sequential number

Inter-unit synchronizing cycle

State bit

Buffering cycle

Buffering data Data 99 Data 100 Data 101 Data 102 Data 103 Data 104 Data 105 Data 106 Data 107

S-Unit function
Elapsed time (μs)

Sequential number 3 0 1 2 3 0 1 2 0

• Various monitors (buffering mode setting monitor/buffering count setting monitor/buffering


cycle setting monitor/trigger condition setting monitor/pre-trigger buffering count setting
monitor/ID selection setting monitor)(CH0:#528∼#536, CH1:#560∼#568)
They monitor setting value used in buffering being executed.

The set value when "1" is written during buffering enable is applied to operation.
Reference If a parameter changes after "1" has been written, the set value and the monitor value may
differ.
Use the setting monitor to verify set values that are applied to actual operation.

- KV-SSC02 User’s Manual - 6-11


6-2 Buffering Function

• Buffering state monitor (CH0: #538, CH1: #570)


It monitors the buffering state.
ON/OFF of 0 to 2 bits are used to indicate the following states.
Bit0 : during buffering
ON while buffering is being executed.
Bit1 : trigger waiting
In the trigger buffering mode, it is ON when buffering is performed using the amount specified by
pre-trigger buffering count setting.
In the continuous buffering mode, it is ON when 1 is written to the buffering permission register.
Bit2 : Buffering completed
It is ON when the number of data in the buffer memory reaches the number specified in the
buffering count setting.

6 When data in buffering is read, it is OFF if the number of data is less than the buffering count
setting.
S-Unit function

• Current buffering count monitor (CH0: #539, CH1: #571)


Monitors the number of data in buffer memory.

• Buffering overflow monitor (CH0: #540, CH1: #572)


In the continuous buffering mode, when the number of data in the buffer memory exceeds 4095, 1 is
written when missing of data occurs. To avoid overflow, regularly execute data read (U_RDBF
instruction) and delete data in the buffer memory.
0 : Normal
1 : Overflow occurs
Only bit 0 is used.

It is reset when 0 is written to buffering overflow or buffering permission, reset does


Point
not occur if data in the buffer memory is only read.

• Pre-trigger buffering monitor (CH0:#541、 CH1:#573)


In trigger buffering mode, data count in buffer memory before triggering is monitored.
Whether the data as much as the specified pre-trigger buffering count is buffered before triggering
can be checked.
• Buffering permission (CH0: #640, CH1: #641)
When the permission changes from 0 to 1, the setting data is read and buffering starts.

Point To execute buffering again, write 0 to it again, and then write 1.

• Trigger (CH0: #656, CH1: #657)


In trigger buffering mode, when 0 (at the rising edge of the trigger register) is selected in trigger
condition setting 1 and "1" is written (executing the UWRIT instruction), sampling is performed the
specified number of times and operation stops.

• Buffering starts also when a "1" instead of a "0" is written beforehand.


Reference • After 1 is written to it, it is reset to 0 automatically.

6-12 - KV-SSC02 User’s Manual -


6-2 Buffering Function

 Sample program
The following settings are used to start continuous buffering, and stop it when 100000 points are read.
Channel usedCH0
Buffering mode setting0: Continuous buffering
Buffering count setting4000 points
Buffering cycle setting1 cycle
ID selection settin0: No

Buffering setting ;<Mnemonic list>

CR2008 UWRIT ;Buffering setting


#1 #512 #0 #1 LD CR2008
Operation starts 1
UWRIT #1 #512 #0 #1
KV-SSC02 ch0 buffering
scan ON mode setting UWRIT #1 #513 #4000 #1
UWRIT UWRIT #1 #514 #1 #1
#1 #513 #4000 #1
UWRIT #1 #520 #0 #1
;Buffering starts/stops

6
KV-SSC02 ch0 buffering
count setting
LDP MR001
UWRIT
OR MR000
#1 #514 #1 #1
ANB MR002
OUT MR000

S-Unit function
KV-SSC02 ch0 buffering LDP MR001
cycle setting
UWRIT
DW.L +0 Z1
LDP MR001
#1 #520 #0 #1
ZRES ZF0 ZF100000
KV-SSC02 ch0 ID LDP MR001
selection setting
UWRIT #1 #640 #1 #1
Buffering starts/stops LDF MR000
UWRIT #1 #640 #0 #1
MR001 MR002 MR000 LD MR000
AND>.L Z1 +100000
Buffering starts Buffering stops During buffering OUT MR002
LD MR000
MR000 ANB T0
TMU #0 #1000
During buffering LD T0
UREAD #1 #539 @DM0 #1
MR001 +0 LD T0
DW.L U_RDBF #1 #0 ZF0:Z1 @DM0
Buffering starts Z1 LD T0
LDA @DM0
MR001 ZF0 CON
ZRES EXT
Buffering starts ZF100000 CON
ADD.L Z1
UWRIT
MR001 CON
#1 #640 #1 #1
STA.L Z1
Buffering starts KV-SSC02 ch0 buffering
permission
MR000 UWRIT
#1 #640 #0 #1
During buffering KV-SSC02 ch0 buffering
permission
MR000 Z1 MR002
>.L
During buffering +100000 Buffering stops

MR000 T0 #1000
T0
U
During buffering

T0 UREAD
#1 #539 @DM0 #1

KV-SSC02 ch0 current buffering


count monitor
T0 U_RDBF KV-SSC02
unit number CH number Storage device Number of data
#1 #0 ZF0:Z1 @DM0
KV-SSC02

T0 @DM0 Z1 Z1
LDA EXT ADD.L STA.L

- KV-SSC02 User’s Manual - 6-13


6-3 Unit Syncronization
Operation start timing of the multiple <KV-SSC02> connected to the CPU unit can be matched.
Regardless of scan timing, execution timing of direct refresh, delay between control cycles of units,
units can be controlled.

Inter-Unit Synchronization Details

Inter-unit synchronization function is the function to match the control timing of signal on multiple units.
By using this function, simultaneous sampling and simultaneous program on multiple units are
available.

For details on inter-unit synchronization, please refer to User's Manual of the CPU unit
Reference
used.

6 Unit Specification during Inter-Unit Synchronization Function


S-Unit function

Operation mode Data


Inter-unit synchronization cycle 40.0µs or above
Input R 5ch (80 points)
Input DM 30 words
Refresh device Output R 2ch (32 points)
Output DM 40 words
Buffer memory -

6-14 - KV-SSC02 User’s Manual -


6-3 Unit Syncronization

Operation Overview during Inter-Unit Synchronization

Read timing Example: Count current value

Synchronization Synchronization Inter-unit synchronization


timing refresh timing module

Unit 1
Refresh device
(Count current value) 2018 2031 2044

Unit 2
Refresh device 41947 41960 41973
(Count current value)

6
Read Read Read
Unit 1
Buffer memory 2018 2031 2044
(Count current value)

S-Unit function
Unit 1
Count input

Unit 2
Buffer memory 41947 41960 41973
(Count current value)

Unit 2
Count input

(1) The count value of synchronization timing is latched to store in the buffer memory.
(2) It is read at the refresh device of CPU unit in the synchronization refreshing timing.

Point • Data which was read out when refreshing the synchronization is the value at the
timing of inter-unit synchronization performed immediately before. However, the
value synchronized between the channels and between the units can be read out.
• In case that the direct refresh instruction such as the unit dedicated instructions is
used within the inter-unit synchronization module, the value at the time of
executing the direct refresh instruction instead of the data at the time of starting
the synchronization can be read out.

- KV-SSC02 User’s Manual - 6-15


6-3 Unit Syncronization

Write timing Example: Current value changed

Synchronization Synchronization Inter-unit synchronization


timing refresh timing module

Unit 1 (1)
Refresh device
1000
(Current value to change)

Unit 1
Refresh device
(Current value change request)

Unit 2
Refresh device 2000
(Current value to change)

Unit 2
Refresh device
(Current value change request)

6
(2) Write (3) Update
Unit 1
Buffer memory 2018 2031 1000
(Count current value)
S-Unit function

Unit 1
Count input
Update
Unit 2
Buffer memory 41947 41960 2000
(Count current value)

Unit 2
Count input

(1) With the unit synchroniation module, write parameters and control commands to devices.
(2) Parameters and control programs will be transferred at the next synchronous refresh timing.
(3) At the next synchronization timing, they will be updated simultaneously.

Point Within unit synchronzation module, if operations are executed using direct refresh
command, parameters can be written without waiting for the next inter-unit
synchronization timing, but the update timing will not be matched.

In case of setting the refreshing timing to END processing


The refresh timing is when executing END processing or the direct refresh instruction. Thus inter-unit
synchronization may not be performed successfully.
However, regarding inputs, the status is latched per inter-unit synchronizing cycle in the following buffer
memories (#100 to #119) when synchronizing between units, so that the status can be checked when
synchronizing between units by reading it out within the inter-unit synchronization module using the
UREAD instruction.

Attribute
R: Read-only
Buffer memory Address name Overview
R/W: Readable
and writable
#100 ch0 current count value L (capture) R
Each data is latched per inter-
#101 ch0 current count value H (capture) R
unit synchronizing cycle when
#102 ch1 current count value L (capture) R
synchronizing between units.
#103 ch1 current count value H (capture) R

6-16 - KV-SSC02 User’s Manual -


7
ACCESS WINDOW
This chapter describes how to operate KV-SSC02 Access Window.

ACCESS WINDOW
7-1 Access Window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2

- KV-SSC02 User’s Manual - 7-1


7-1 Access Window
The instructions on how to monitor and test "KV-SSC02" using the access window of the CPU unit are
explained.

Access Window

"KV-SSC02" can be monitored and/or tested, using the access window of the CPU unit.
The following items can be monitored and set on the access window.

Cnt Present Val CTC1 Setting Val Capture0 Present

-855%%* -855%%* -855%%*


ࠞ࠙ࡦ࠻⃻࿷୯ 㩄㩧㩔㩩㩤㨺㩊⸳ቯ୯ 㩁㨶㩖㩩㩋㨶⃻࿷୯

7 ‫ ޓޓޓޓޓ‬ ‫ ޓޓޓޓޓ‬ ‫ ޓޓޓޓޓ‬


-855%‫ޓޓ‬%* -855%%* -855%%*
ACCESS WINDOW

%PV2TGUGPV8CN %6%5GVVKPI8CN %CRVWTG2TGUGPV


‫ ޓޓޓޓޓ‬ ‫ ޓޓޓޓޓ‬ ‫ ޓޓޓޓޓ‬


Cnt Input Filter Count Ope Mode Freq/Rotate Mode

-855%%* -855%%* -855%%*


⸘ᢙ౉ജᤨቯᢙ ⸘ᢙേ૞ࡕ࡯࠼ ๟ᵄᢙേ૞ࡕ࡯࠼
=/*\? 㨼㩒㩖㩨㩣Ⓧ▚㩀㨽㩧㩎 ࿁ォ⸘#㩔㩩㩣㩇㑆㓒

-855%%* -855%%* -855%%*


%PV+PRWV(KNVGT %QWPV1RG/QFG (TGS4QVCVG/QFG
=/*\? 'PCDNG#EEWO%PV 4QV#2NU+PVTXN

Input Mode Freq Cnt Result Rot Speed Result

-855%%* -855%%* -855%%*


౉ജࡕ࡯࠼ ๟ᵄᢙ⸘᷹⚿ᨐ ࿁ォᢙ⸘᷹⚿ᨐ
‫⋧ޓ‬ㅛ୚  ‫ޓޓޓޓޓ‬
 =*\? =TRO?
 
-855%%* -855%%* -855%%*
+PRWV/QFG (TGS%PV4GUWNV 4QV5RGGF4GUWNV
2JCUGZ  ‫ޓޓޓޓޓޓ‬
 =*\? =TRO?


7-2 - KV-SSC02 User’s Manual -


7-1 Access Window

About changing of setting in the Access Window

A part of the settings can be changed in the access window. Basically, however, use the unit editor to do so.

When changing settings in the access window, change the CPU unit to PROGRAM mode first.
Reference
The actual change in the setting (when the change takes effect) occurs when you switch
the CPU unit from the PROGRAM mode to the RUN mode.

Menu structure

The access window menu is configured as follows:


Setting CH0 Cnt InputFilter 4[MHz]
1[MHz]
500[kHz] Count mode Linear
250[kHz] Ring
100[kHz] Signed count Unsigned
10[kHz] Signed
Z-phase InputFilter 4[MHz] Preset operation rising edge
1[MHz] falling edge

7
500[kHz] Level
250[kHz] Reset operation Clear OFF
100[kHz] Clr crnt val at CTC0
10[kHz] Clr crnt val at CTC1

ACCESS WINDOW
Control InputFilter 1[μs] Initialize OFF
10[μs] current value ON (zero clear)
20[μs] Initialize setting value OFF: Load from DM
100[μs] ON
500[μs] Frequency Frequency count
1[ms] operating mode Rot mtr A (pls intval)
2.5[ms] Rot mtr B (rot time)
5[ms] OUT0 output CTC0 ON
10[ms] setting CTC0 OFF
Input Select CH0 external terminal CTC0 Reverse
CH1 external terminal CTC1 ON
Internal 50ns pulse CTC1 OFF
Internal 1μs pulse CTC1 Reverse
Internal 10μs pulse CTC0:ON,CTC1:OFF
Internal 100μs pulse CTC0:OFF,CTC1:ON
CH1 OUT0 output Not used
COM: EnDat2.2/22 OUT1 output CTC0 ON
COM: BiSS: C-mode setting CTC0 OFF
COM: Yaskawa Serial CTC0 Reverse
Input mode 1 pulse, dir OFF CTC1 ON
1 pulse, dir ON CTC1 OFF
2 pulses inc/dec value CTC1 Reverse
2-phase, 1X CTC0 ON,CTC1 OFF
2-phase, 2X CTC0 OFF,CTC1 ON
2-phase, 4X Not used
Count operating Up/down count Number of encoder position bits
mode Preset count
Enable accumulate count Number of serial 0 times
Enable count communication Once
Set timer count retries Twice

Setting CH1

Monitor CH0 Input Select


Present count value
Present capture 0 value
Present capture 1 value
Frequency counting result
Frequency counting result
Rotation speed counting result
Comparator 0 value
Comparator 1 value

Monitor CH1

The items for the disabled functions are not displayed, depending on the input
Point
selection specified.

- KV-SSC02 User’s Manual - 7-3


7-1 Access Window

Operating of Access Window

The access window is operated by the setting operation keys on the CPU unit.

Setup key Normal function When Changing Numerical Values


Moves to the normal state without changing
MENU Displays the menu.
the setting.
Select an item.
Continuously pressing it for 1 second Changes settings when pressed for 1 second
ENTER
or more at the setting screen goes to or longer.
the setting change state.
Changes the selection or increases the
5 Changes the page.
amount of change to the setting value.
Changes the selection or decreases the
/ Changes the page.
amount of change to the setting value.
2 Displays the menu.
Change the digit of the value to change.
3 Select an item.

7 * The settings can only be changed when the CPU unit is in PROGRAM mode.

Moving to the Menu Screen


ACCESS WINDOW

The following describes the procedure for moving to the menu screen.

1 Press the direct access switch of the KV-SSC02 you want to monitor.
The direct access switch starts blinking, and the monitor screen for Direct access switch
CH0 on the KV-SSC02 you selected is displayed on the access
window. KV-SSC02

IN
A B A B
0 1 0 1
OUT 0 1 0 1
CH0 CH1

-855%‫ޓޓ‬%* -855%%*
%PV2TGUGPV8CN ࠞ࠙ࡦ࠻⃻࿷୯
   

2 Press the "MENU" key of the CPU unit.


Menu screen appears.
Select the menu screen by the " 5 // " keys.
࡮5GVVKPI%* ࡮⸳ቯ%*
࡮5GVVKPI%* ࡮⸳ቯ%* MENU ENTER
࡮/QPKVQT%* ࡮ࡕ࠾࠲%*
࡮/QPKVQT%* ࡮ࡕ࠾࠲%*

To return the CPU unit menu screen, either press the "MENU" key again, or press
Point
the direct access switch that is blinking.
For the details of the access window, refer to the CPU unit user manual.

7-4 - KV-SSC02 User’s Manual -


7-1 Access Window

Setting screen/monitor screen

The instructions on how to check the settings and/or monitor the counting status of "KV-SSC02" using
the access window of the CPU unit are explained.

Display method

1 Press the direct access switch on KV-SSC02.


The screen for the last displayed items is displayed.

-855%‫ޓޓ‬%* -855%‫ޓޓ‬%*
%PV+PRWV(KNVGT ⸘ᢙ౉ജᤨቯᢙ
‫=ޓޓޓޓ‬/*\? ‫=ޓޓޓޓޓ‬/*\?

2 Press the [MENU] key.


The KV-SSC02 menu screen is displayed.
7

ACCESS WINDOW
3 Select the screen you want to display from the menu screen using the [][] keys, and then
press the [ENTER] key.

㨯5GVVKPI%* 㨯⸳ቯ%*
㨯5GVVKPI%* 㨯⸳ቯ%* MENU ENTER

㨯/QPKVQT%* 㨯ࡕ࠾࠲%*
㨯/QPKVQT%* 㨯ࡕ࠾࠲%*‫ޓ‬

Setting screen
-855%‫ޓޓ‬%* -855%‫ޓޓ‬%*
%PV+PRWV(KNVGT ⸘ᢙ౉ജᤨቯᢙ
‫=ޓޓޓޓޓ‬/*\? ‫=ޓޓޓޓޓ‬/*\?

Monitor screen
-855%‫ޓޓ‬%* -855%‫ޓޓ‬%*
+PRWV5GNGEV ౉ജㆬᛯ
%*'ZV6GTOKPCN ‫ޓޓ‬%*ᄖㇱ┵ሶ

4 Select the items you want to display using the [][] keys.
For items which can be displayed, refer to "Menu configuration" (p. 7-3).

- KV-SSC02 User’s Manual - 7-5


7-1 Access Window

Unit Test

The following describes the procedure for testing count input of the KV-SSC02 using the Access
Window of the CPU Unit.

Point Unit test is possible only when the CPU unit is in the PROGRAM mode.

This can be checked even when no project that includes configuration settings for the
Reference
unit to be set in KV STUDIO has been sent to the CPU unit.

How to Perform Testing

1 Press the "MENU" key.

7 The CPU unit's menu screen appears. (If another unit is already selected, press the "MENU" key twice.)

2
ACCESS WINDOW

Use the "5 "/"/ " key to select "3.Unit Test", and then press then "ENTER" key.
The following screen appears.

7PKVYKNN ᜛ᒛ࡙࠾࠶࠻߇
UVQRYQTMKPI േ૞஗ᱛߒ߹ߔ‫ޕ‬ MENU ENTER
%QPVKPWG! ⛯ⴕߒ߹ߔ߆㧫
‫'ޓޓޓޓ‬06'4 ‫'ޓޓޓޓޓ‬06'4

3 Continuously press the "ENTER" key for 1 second or more.


The unit selection screen appears.

4 Press the direct access switch of KV-SSC02.


KV-SSC02 Unit Test's menu screen appears.

-855% -855%
㨯6GUV 㨯࠹ࠬ࠻
㨯5GVVKPI 㨯⸳ቯ
‫ޓޓޓޓ‬ ‫ޓޓޓޓޓ‬

5 Use the "5 "/"/ " key to select ". Test", and then press then "ENTER" key.
MENU ENTER

6 Use the "5 "/"/ " key to select a channel to test.


You can check the count input state of KV-SSC02.

-855% -855%
%*#PCNQI %*‫ࠣࡠ࠽ࠕޓ‬ MENU ENTER
%PV2TGUGPV8CN ‫⃻࠻ࡦ࠙ࠞޓ‬࿷୯
‫ޓޓޓޓ‬ ‫ޓޓޓޓޓ‬

• In ". Test", you can confirm the output of "count current value", the input of "A-phase,
Reference
B-phase, Z-phase, INPUT0, INPUT1", and the output of "OUT0, OUT1".
• If ". ESetting" is selected, the input mode can be set from "1-pulse w direction/
2 phase 4 x".
7-6 - KV-SSC02 User’s Manual -
8
UNIT MONITOR
This chapter describes how to operate KV-SSC02 Access Window.

UNIT MONITOR
8-1 Unit Monitor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2

- KV-SSC02 User’s Manual - 8-1


8-1 Unit Monitor
Through the functions of the Unit Monitor of Ladder Support Software KV STUDIO, the unit used for
monitoring values of relays and DMs can be optimally displayed. The following describes how to view
and operate the Unit Monitor.

Unit Monitor Introduction

Unit Monitor is a window that optimally displays the unit used for monitoring values of relays and DMs.
The Unit Monitor has the following functions:
• DMs and relays assigned to each unit can be displayed in the order in which they have been
registered.
• Each unit is provided with display format and layout templates for convenient monitoring.
• The selected unit can be monitored simply by selecting it without having to worry about assignment
status of relay or DM.

Unit Monitor of KV STUDIO

The Unit Monitor of KV-SSC02 can be displayed from KV STUDIO according to the following steps.

8 1 Switch KV STUDIO to the monitor status, and select "Monitor/


Simulator(N)"  "Unit Monitor(U)" from the menu. The "Select Unit
UNIT MONITOR

Monitor" will pop up.


Expansion/special units of PLC will be displayed in monitor.

2 Select "KV-SSC02" from the "Select Unit Monitor" dialog box, and click the "Display" button.
Unit Monitor of KV-SSC02 will be displayed.

8-2 - KV-SSC02 User’s Manual -


8-1 Unit Monitor

Unit Monitor for High-speed counter

(1) Count operation mode (19) Preset value "Change" button


(3) Preset value
(2) Current value (18)Current value "Change" button (17) OUT indicator
(4) CTC0 setting

(5) CTC1 setting

(6) Upper limit value of ring

(7) Lower limit value of ring

(8) Capture 0 current value

(9) Capture 1 current value

(10) Freq. and Rot mtr operation mode

(11) Freq. meas. result

(12) Rot. spd meas. result

(13) Overflow (underflow) indicator

(15) Preset input indicator

(23) Error message display area


(14) "Reset" button

(16) Enable input indicator


(21) "Reload setting" button 8
(22) "Write setting" button

UNIT MONITOR
(20) Operation mode button

(24) "Monitor real-time timing chart" button

Name Function
(1) Count operation mode Displays the count mode specified by the unit editor.
(2) Current value Present counting value is displayed.
(3) Preset value Preset value is displayed.
Comparator set value 0 is displayed. Value can also be written into comparator
(4) CTC0 setting
setting value 0.
Comparator set value 1 is displayed. Value can also be written into comparator
(5) CTC1 setting
setting value 1.
(6) Upper limit value of ring Displays the limit value for ring counter. Ring counter limit value can be written.
(7) Lower limit value of ring When ring counter is not used, the background color of value display will be gray.
(8) Capture 0 current value
Values obtained through input capture are displayed.
(9) Capture 1 current value
(10) Freq. and Rot mtr
Displays the frequency / rotation meter mode specified by unit editor.
operation mode
(11) Freq. meas. result Measurement result is displayed when Frequency count mode is used.
(12) Rot. spd meas. result Measurement result is displayed when rotation meter mode is used.
(13) Overflow (underflow)
Indicate whether the present count value overflow relay is turned ON or OFF.
indicator
(14) "Reset" button Reset the present count value overflow relay.
(15) Preset input indicator Display whether the external preset input is ON or OFF.
(16) Enable input indicator Display whether the external enable input is ON or OFF.
(17) OUT indicator Display whether the external outputs OUT0 and OUT1 are ON or OFF.
- KV-SSC02 User’s Manual - 8-3
8-1 Unit Monitor

Name Function
When the current value "Change" button is clicked, the "Change current value"
dialog box will appears;
When the "Write" button in the "Change current value" dialog box,
the count current value will be changed.

(18) Current value Enter the count current value to


"Change" button be changed.

Write the value that is entered into


the current value change field into
count current value.

When preset "Change" button is clicked, the "Change preset value" dialog box
will appear; when the "Change" button in the "Change preset value" dialog box
is clicked, the preset value will be changed. Click the "Preset" button to change
preset value and perform preset operation at the same time.

Perform preset operation.

8 (19) Preset value  Enter the changed value of


"Change" button preset value.
UNIT MONITOR

Write the value that is entered


into the preset value change
field into current preset value.

For modes other than the Preset count and Enable accumulate count mode, it
is displayed in gray and can't be used.
(20) Operation mode Counting operation is enabled. When this button is pressed, the operation
button enable relay will be ON/OFF.
Reading comparator setting and ring counter setting of the assigned DM is
(21) "Reload setting" button
read from KV-SSC02.
(22) "Write setting" button Setting value is written into KV-SSC02. Setting will be updated.
(23) Error message display
Error content will be displayed when an error occurs.
area
(24) "Monitor real-time
Real-time timing chart monitor is started.
timing chart" button

8-4 - KV-SSC02 User’s Manual -


APPENDICES
This chapter describes the list of devices, fault message list, troubleshooting.

1 List of Error Message . . . . . . . . . . . . . . . . . . . . . . . . . . A-2


2 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4

APPENDICES
3 Operations in the PROG Mode . . . . . . . . . . . . . . . . . . . A-5
4 List of Available Devices . . . . . . . . . . . . . . . . . . . . . . . . A-6
5 List of serial encoder communication enabled series . A-11
6 Difference with KV-SC20V . . . . . . . . . . . . . . . . . . . . . A-13
7 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-14

- KV-SSC02 User’s Manual - A-1


1 List of Error Message
When error occurs, error relay is ON and error code is stored in error code DM. When an error is
detected in RUN status, error content will be cleared, error relay will be OFF and 0 added in error code.

KV-SSC02 Error Message List

Data memory for storing error code : DM N +28(CH0/CH1 common)


Error relay : n + 200

Error Code Table


Code Code CPU
Message Description Operation Remedy
CH0 CH1 operation
All outputs repeat
protection operation Resolve the cause.
The overcurrent is
Output (output OFF) and The overcurrent is
100 detected in the output Continue
overcurrent auto recovery until detected in the
circuit.
the cause has been output circuit.
resolved.
When selecting enable
accumulative count
mode, enable count Operation of setting Change the capture
Capture0 can not
500 501 mode, Set timer count of input capture 0 operation setting to Continue
be used.
mode, capture 0 input is disabled. "0: no".
used for external enable
input.
When counting mode is Lower limit value of
set to "Ring", upper limit KV-SSC02 ring
Ring counter value setting of ring counter is fixed to 0.
Set upper limit value
upper limit value counter changes to 0 When upper limit
510 511 of ring counter to a Continue
is set to a value below. (when "signed value is 0 below, it
APPENDICES

positive value.
below 0. counting" is set to fails to normal
"Signed", negative will be running as ring
also an error. ) counter.
Set time for When selecting Set timer When set time for
Set positive value for
520 521 counting is set to count mode, set time for counting is 0, no Continue
set time for counting.
0. counting is set 0. counting performed.
The count operation
The setting for The setting for the
is performed Change the setting
the number of number of pulses per
assuming that the for the number of
530 531 pulses per rotation is set to 0 when Continue
setting for the pulses per rotation to
rotation is set to selecting the tachometer
number of pulses per a positive value.
0. A/B mode.
rotation is set to 1.
When setting counting
mode to "Ring", upper
Current counted It operates as linear Change current
limit value of ring counter
value outside counter before counted value to less
540 541 is less than current count Continue
setting range of current count enters than setting value of
by changing current
ring counter. Ring again. ring counter.
value or upper limit value
of ring counter.
Serial encoder
communication will
be terminated.
Unable to
communicate with
the encoder. Check
Communication Initial communication Serial encoder
the following:
700 - timeout (first with the serial encoder communication will Continue
• Cable connecting
time) has been timed out. be terminated.
state
• The protocol
selected and
protocols
supported by the
encoder

A-2 - KV-SSC02 User’s Manual -


1 List of Error Message

Code Code CPU


Message Description Operation Remedy
CH0 CH1 operation
Position data cannot
be acquired correctly
in communication
with the encoder.
A data error has been
Serial encoder Check the following:
Position data detected in the initial
701 - communication will • Whether the Continue
size setting error communication with the
be terminated. encoder position
serial encoder.
data and unit
editor configured
value match
• Effects of noise
The connection has
been timed out while
communicating with
Time out occurred while
Serial encoder the encoder. Check
Communication communicating with the
710 - communication will the following: Continue
timeout serial encoder to acquire
be terminated. • Cable connecting
the position data.
state
• Effects of noise
• Encoder state
An error has been
detected with the
acquired position
A data error has been
data while
detected while Serial encoder
Communication communicating with
711 - communicating with the communication will Continue
data error the encoder. Check
serial encoder to acquire be terminated.
the following:
the position data.
• Cable connecting
state
• Effects of noise
An error notification

APPENDICES
An error notification from
Serial encoder from the encoder has
the encoder has been
720 - Encoder error communication will been detected. Continue
detected in serial
be terminated. Check the encoder
encoder communication.
state.
A position data error A position data error
notification from the Serial encoder notification from the
Position data
721 - encoder has been communication will encoder has been Continue
error*1
detected in serial be terminated. detected. Check the
encoder communication. encoder state.
A speed error
An overspeed error notification from the
notification from the Serial encoder encoder has been
Overspeed
722 - encoder has been communication will detected. Check the Continue
error*1
detected in serial be terminated. encoder
encoder communication. specifications and
driving conditions.
A temperature error A temperature error
notification from the Serial encoder notification from the
Temperature
723 - encoder has been communication will encoder has been Continue
error*1
detected in serial be terminated. detected. Check the
encoder communication. encoder state.
*1 Will occur only when "Yaskawa Serial" is selected as the communication protocol.

Error code of the 500th unit: to clear error by changing setting value.

- KV-SSC02 User’s Manual - A-3


2 Troubleshooting

KV-SSC02 Troubleshooting

Related
Problem Causes Remedy
Page
Please re-verify terminal wiring diagram, broken
Sensor and coder wiring or not. 1-11
error During correct wiring, green input indicator is 2-11
ON.
Can not count Operation enable relay
Please turn on operation enable relay. 3-29
is not ON
Counting time constant Please reset the counting time constant using
3-7
setting unreasonable Unit Editor according to input signal.
Input mode error Please reset input mode using Unit Editor. 3-10
Operation not according Set setting value
Please change the setting value with Unit Editor
to the setting (setting initialization to 3-31
or update the setting value.
value changes to 0) "Initialize"
Wiring error of sensor etc. Please re-verify terminal wiring diagram, broken or not. 2-8
Operation setting is
Set operation other than "Disabled". 3-13
changed to "Disabled"
Can not input capture
Set to a mode in which It changes to enable input in enable
4-3
input capture 0 input accumulative count mode, enable count mode
4-4
can not be used. and Set timer count mode.
Please re-verify terminal wiring diagram, broken or not.
Error occurs in wiring
When external output of KV-SSC02 is ON, 2-14
External output can not with peripherals output red LED is ON.
be ON/OFF
OUT0/1 output setting error Please use the Unit Editor to change settings. 3-24
APPENDICES

Setting value error Please reset comparator setting value. 3-31

A-4 - KV-SSC02 User’s Manual -


3 Operations in the PROG Mode
The operation of KV-SSC02 in PROG mode is described as follows.

KV-SSC02 operates in PROG mode as same as in RUN mode of CPU unit.


Counting operation can be also started by simply turning operation enable relay ON during PROG
mode.
So, even if in PROG mode, the system can also verify separate operation of KV-SSC02.

APPENDICES

- KV-SSC02 User’s Manual - A-5


4 List of Available Devices
This section provides a list of the devices that are used on the KV-SSC02.

List of Data Memories

N : Leading DM No.

DM No. Attributes See


R :Read only Name of DM Range of Function and Value
CH0 CH1 R/W :Read/write
Page
When operation enable relay is ON, count
N + N + current value will be stored during scanning
Count current
R timing of CPU unit every time -
0 to 1 14 to 15 value
0 to 4294967295,
-2147483648 to 2147483647
N + N + Input capture 0
R To store the transient count value of input
2 to 3 16 to 17 current value
capture 0/1
3-41
N + N + 0 to 4294967295,
Input capture 1
R -2147483648 to 2147483647
4 to 5 18 to 19 current value

N + N + Frequency count When frequency count mode is used,


R measurement measured values will be stored. -16000000 to 4-17
6 to 7 20 to 21 result 16000000(unit: Hz)
When using tachometer A/B, measured results
N + N + Rotation speed
will be stored. 40 to 960000000,-40 to
R measurement 4-21
8 to 9 22 to 23 -960000000
result
(unit :rpm)
N + N +
Reserved for system -
10 to 13 24 to 27
To store error code when error occurs.
APPENDICES

N + 28 R SSC02 error code A-2


CH0 and CH1 are common.
N + 29 Reserved for system -

N + N + Write current value to be changed.


Count current
R/W 0 to 4294967295, 3-45
30 to 31 50 to 51 value
-2147483648 to 2147483647
Write preset value.
N + N + Setting value can be also changed in
Preset setting
R/W operation. 3-31
32 to 33 52 to 53 value
0 to 4294967295,
-2147483648 to 2147483647
N + N + Comparator 0
R/W Setting value written into comparer 0/1. Setting
34 to 35 54 to 55 setting value
value can be also changed in operation.
3-31
N + N + 0 to 4294967295,
Comparator 1
R/W -2147483648 to 2147483647
36 to 37 56 to 57 setting value
Input capture 0 To set input condition of input capture 0/1.
N + 38 N + 58 R/W
operation setting Setting can be also changed in operation.
Except 0 and 1 to 3 : no
3-41
Input capture 1 1 : Operates at the rising edge
N + 39 N + 59 R/W
operation setting 2 : Operates at the falling edge
3 : Operates at the rising / falling edge
N + N + Ring counter Write the upper and lower limits when using
R/W upper limit setting the ring function.
40 to 41 60 to 61 value The values can be changed during the
3-31
N + N + operation.
Ring counter lower
R/W 0 to 4294967295,
42 to 43 62 to 63 limit setting value
-2147483648 to 2147483647

A-6 - KV-SSC02 User’s Manual -


4 List of Available Devices

DM No. Attributes See


R :Read only Name of DM Range of Function and Value
CH0 CH1 R/W :Read/write
Page
Write set time for counting when Set timer
count mode is used. Setting value can be also 3-31
N + 44 N + 64 R/W Count setting time
changed in operation. 4-14
1 to 65535(Unit: 1ms)
Write averaging times. Setting value can be
3-31
Averaging also changed in operation.
N + 45 N + 65 R/W 4-17
processing count 0 to 65535 (unit: count). When 0 is set,
4-21
1 averagings will be performed.
Write the minimum sampling time. It is
effective when using the frequency count, and
tachometers A and B.
3-31
Minimum sampling Setting range: 0 to 16383 (unit: 0.1µs) (Up to
N + 46 N + 66 R/W 4-17
time 65535 can be input.)
4-21
• If 0 is set: The function is disabled.
• If a value exceeding 16383 is specified: It is
processed as 16383.
When using Rotation meter A/B, pulses/rev. of
Rotation meter 3-31
N + 47 N + 67 R/W input equipment will be stored. Setting can be
pulses/rev. setting 4-21
also changed in operation. 1 to 65535
N + N +
Reserved for system -
48 to 49 68 to 69

List of Relays

 Assignment for output relay

APPENDICES
n : Leading relay No.

Relay No. See


Name of relay Function
CH0 CH1 Page
n + n + OFF -> ON: When ON, start to count operation.
Operation enable 3-29
000 100 ON -> OFF: operation stop

n + n + Count current value OFF -> ON: Switch count current value overflow relay to
3-47
001 101 overflow reset OFF.

n + n + Comparator 0
OFF -> ON: Switch comparator 0 match relay to OFF. 3-47
002 102 match state reset

n + n + Comparator 1
OFF -> ON: Switch comparator 1 match relay to OFF. 3-47
003 103 match state reset
OFF -> ON: When ON, Current value will be writtem in
n + n + KV-SSC02 and Current value write comple
Current value write
ON -> OFF: relay will be ON. 3-45
004 104 request
Current value write comple relay will be
OFF.
OFF -> ON: When ON, setting value in KV-SSC02 will be
n + n + Setting update updated and setting update complete relay
3-31
005 105 request ON -> OFF: will be ON.
Setting update comple relay will be OFF.
OFF -> ON: When ON, preset value will be written in KV-
n + n + Preset value SSC02 and preset value write comple relay
3-31
006 106 write request will be ON.
ON -> OFF: Preset value write comple relay will be OFF.

- KV-SSC02 User’s Manual - A-7


4 List of Available Devices

Relay No. See


Name of relay Function
CH0 CH1 Page
n + n + OFF -> ON: When it is ON, KV-SSC02 will be preset and
Internal preset
internal preset complete relay will be ON. 3-37
007 107 request
ON -> OFF: Internal preset complete relay will be OFF.
n + n +
OUT0 reset OFF -> ON: Forcedly switch OUT0 output to ON. 3-35
008 108
n + n +
OUT0 set OFF -> ON: Forcedly switch OUT0 output to ON. 3-35
009 109
n + n +
OUT1 reset OFF -> ON: Forcedly switch OUT0 output to ON. 3-35
010 110
n + n +
OUT1 set OFF -> ON: Forcedly switch OUT0 output to ON. 3-35
011 111
n + n + Input capture 0 Turn the input capture 0 input state relay
OFF -> ON: 3-44
012 112 reset OFF.

n + n + Input capture 1 Turn the input capture 1 input state relay


OFF -> ON: 3-44
013 113 reset OFF.

n + n + Z-phase detection
OFF -> ON: Turn the Z-phase detection relay OFF. 3-44
014 114 reset

n + n + Internal enable OFF -> ON: To perform internal enable


3-40
015 115 set ON -> OFF: To end internal enable
APPENDICES

 Assignment for input relay


n : Leading relay No.

Relay No. See


Name of relay Function
CH0 CH1 Page
Turn it on when a unit error occurs. It is
n + 200 SSC02 error relay ON: A-2
common between CH0 and CH1.
Reserved for
n + 201 to 215 - -
system
OFF -> ON: This relay is turned ON when the operation
enable relay is turned ON and the count
n + n + Operation in operation is started.
300 400 progress ON -> OFF: This relay is turned OFF when the operation
enable relay is turned OFF, or if a unit error
occurs.
OFF -> ON: When Count current value exceeds upper
limit value or less than lower limit value of
n + n + Count current value counting range (overflow), the relay will be
3-47
301 401 overflow ON -> OFF: ON.
When count current value overflow reset
relay is ON, the relay will be OFF.
OFF -> ON: If count current value matches comparer 0
n + n + Comparator 0 setting value, the relay will be ON.
3-47
302 402 match ON -> OFF: If comparator 0 matching status reset relay
is ON, the relay will be OFF.
OFF -> ON: If count current value matches comparer 1
n + n + Comparator 1 setting value, the relay will be ON.
3-47
303 403 match ON -> OFF: If comparator 1 matching status reset relay
is ON, the relay will be OFF.

A-8 - KV-SSC02 User’s Manual -


4 List of Available Devices

Relay No. See


Name of relay Function
CH0 CH1 Page
OFF -> ON: When Current value write request relay is
n + n + ON and KV-SSC02 current value is written,
Current value write
the relay will be ON. 3-45
304 404 completion
ON -> OFF: When Current value write request relay is
OFF, the relay will be ON.
OFF -> ON: When setting update request relay is ON
n + n + and KV-SSC02 setting value update
Setting update
completed, the relay will be ON. 3-31
305 405 completion
ON -> OFF: When setting update request relay is OFF,
the relay will be ON.
OFF -> ON: When preset value write request relay is ON
n + n + and KV-SSC02 preset value is written, the
Preset value
relay will be ON. 3-31
306 406 write completion
ON -> OFF: When preset value write request relay is
OFF, the relay will be ON.
OFF -> ON: When internal preset request relay is ON,
n + n + KV-SSC02 preset completed, the relay will
Internal preset
be ON. 3-37
307 407 completion
ON -> OFF: When internal preset request relay is OFF,
the relay will be ON.
n + n + Reserved for
- -
308 408 system

n + n +
OUT0 output state ON: Indicates the output status of OUT0 ON 3-36
309 409
n + n + Reserved for
- -

APPENDICES
310 410 system

n + n +
OUT1 output state ON: Indicates the output status of OUT1 ON 3-36
311 411
OFF -> ON: This relay is turned ON when the input
n + n + Input capture 0 capture 0 is executed. 3-43
312 412 input state ON -> OFF: This relay is turned OFF when the input 3-44
capture 0 reset relay is turned ON.
OFF -> ON: This relay is turned ON when the input
n + n + Input capture 1 capture 1 is executed. 3-43
313 413 input state ON -> OFF: This relay is turned OFF when the input 3-44
capture 1 reset relay is turned ON.
OFF -> ON: This relay is turned on when the external Z-
n + n + phase input is turned ON.
Z-phase detection 3-38
314 414 ON -> OFF: This relay is turned OFF when the Z-phase
detection reset relay is turned ON.
n + n + Reserved for
- -
315 415 system

n + n + Comparator 0 ON: When count current value larger than


comparator 0 setting, the relay will be ON. 3-47
500 600 over

n + n + Comparator 0 ON: When count current value less than


comparator 0 setting, the relay will be ON. 3-47
501 601 under

n + n + Comparator 1 ON: When count current value larger than


3-47
502 602 over comparator 1 setting, the relay will be ON.

n + n + Comparator 1 ON: When count current value less than


3-47
503 603 under comparator 1 setting, the relay will be ON.

- KV-SSC02 User’s Manual - A-9


4 List of Available Devices

Relay No. See


Name of relay Function
CH0 CH1 Page
ON: Indicates external preset (Z phase) input is
n + n + External preset
ON.
(Z phase) input 3-38
504 604 OFF: Indicates external preset (Z phase) input is
state
OFF.
ON: It indicates that the external input capture 0
n + n + INPUT0/
(enable) input is ON. 3-40
External enable
505 605 OFF: It indicates that the external input capture 0 3-43
Input state
(enable) input is OFF.
ON: It indicates that the external input capture 1
n + n + input is ON.
INPUT1 Input status 3-43
506 606 OFF: It indicates that the external input capture 0
(enable) input is OFF.
n + n + Reserved for
- -
507 to 508 607 to 608 system
ON: It indicates that the external preset (A-
n + n + phase) input is ON.
A-phase input state 3-30
509 609 OFF: It indicates that the external preset (A-
phase) input is OFF.
ON: It indicates that the external preset (B-
n + n + phase) input is ON.
B-phase input state 3-36
510 610 OFF: It indicates that the external preset (B-
phase) input is OFF.
OFF -> ON: This relay is turned ON when the present
n + n + count value is subtracted.
Under counting in a
ON -> OFF: This relay is turned OFF when the present 3-48
511 611 negative direction
count value is added and the operation
enable relay is turned OFF.
APPENDICES

n + n + Set timer count


ON: Indicates Set timer count. 4-14
512 612 mode operation state

n + n + Reserved for
- -
513 to 515 613 to 615 system

A-10 - KV-SSC02 User’s Manual -


5 List of serial encoder communication enabled series
They are the detailed specifications of the serial encoder communication function.
Check that the encoder is compatible with the following specifications, and then connect it to KV-
SSC02.

Electrical specifications

Item Specifications
Input voltage Equivalent to EIA standards RS485 compliant differential line receiver
Output voltage Equivalent to EIA standards RS485 compliant differential line driver
Power supply Voltage 5V ±5% (4.75V to 5.25V)
output Current 300mA maximum

Communication specificationsl

 EnDat 2.2/22

Item Specifications
Clock frequency 8MHz fixed
Communication cycle 50µs fixed *1
Information adding function N/A (The position value and error bit can only be read out.)
Position data size Configurable from 8 to 48 bits (using the KV STUDIO unit editor)

APPENDICES
 BiSS (C-mode)

Item Specifications
Clock frequency 4MHz fixed
Communication cycle 50µs fixed *1
Number of slaves which can be
One to one only
connected
Communication direction Data reception only
Number of CRC bits 6 bits fixed
CRC polynomial 0x43
Error bit 1 bits fixed
Warning bit 1 bits fixed
Position data size Configurable from 8 to 48 bits (using the KV STUDIO unit editor)

 Yaskawa Serial

Item Specifications
Communication speed 4Mbps fixed
Communication cycle 62.5µs fixed *1

*1 When using the inter-unit synchronization functions, if the synchronizing cycle is not a multiple of 50µs
(62.5µs in case of Yaskawa Serial), the value of the communication interval is between 50µs and 100µs
(62.5 to 125µs) due to timing adjustment performed once in every synchronizing cycle.

- KV-SSC02 User’s Manual - A-11


5 List of serial encoder communication enabled series

List of supported series

The following is a list of serial encoders supported by KV-SSC02.

 Absolute linear encoder

Protocol Manufacturer Supported series


LC 400
LC 100
EnDat 2.2/22 Heidenhain Co. Ltd. *1 LC 200
LIC 4100
LIC 2100
BiSS (C-mode) Renishaw Co. Ltd. RESOLUTE RL
Yaskawa Serial Mitutoyo Co. Ltd. *2 ABS ST700

 Absolute rotary encoder

Protocol Manufacturer Supported series


ECN 1000
EQN 1000
ECN 400
EQN 400
APPENDICES

EnDat 2.2/22 Heidenhain Co. Ltd. *1 ECN 100


ROC 1000
ROQ 1000
ROC 400
ROQ 400
BiSS (C-mode) Renishaw Co. Ltd. RESOLUTE RA

*1 Use EnDat2.2/22 compatible encoders from the listed series.


*2 Use Yaskawa Serial compatible encoders from the listed series.

A-12 - KV-SSC02 User’s Manual -


6 Difference with KV-SC20V

List of differences

Expla
Item KV-SSC02 KV-SC20V natory
page
Connectable
KV-8000/7000 series KV-8000/7000/5000/3000 series 1-9
CPU unit
Unit interrupt Supported N/A 6-2
Inter-unit
Supported N/A 6-14
synchronization
Buffering functions Supported N/A 6-4
Serial encoder
communication Supported N/A 4-32
functions
Output overcurrent
Supported N/A 1-14
protection
Unit testing Supported N/A 7-6
Input frequency 4MHz maximum 1MHz maximum 3-7
Count inputs Other CH external inputs selectable Other CH external inputs unselectable 3-9
Internal clock 20 MHz (50ns) maximum 1MHz (1µs) maximum 3-9
Executable simultaneously with the
Frequency counter/ count operation Unexecutable simultaneously with the
count operation 4-20
tachometer Real-time updates in a period of
Updates with each pulse input
deceleration supported
In case of unsigned In case of unsigned

APPENDICES
Lower limits: 0 to 4294967295 Lower limits: 0 fixed
Upper and lower Upper limits: 0 to 4294967295 Upper limits: 0 to 4294967295
In case of signed In case of signed
limit settings in ring 3-17
Lower limits: -2147483648 to Lower limits: 0 fixed
mode 2147483647 Upper limits: 0 to 2147483647
Upper limits: -2147483648 to
2147483647
In case that "Initialize the current In case that "Initialize the current
value" is set to "Do not initialize" in the value" is set to "Do not initialize (Load
Initialize the current unit editor, the count operation is from DM)" in the unit editor, the count
3-21
value performed continuously from the operation is performed from the
current value memorized in the butter current value stored in DM.
memory.

- KV-SSC02 User’s Manual - A-13


7 Index
This index of terms used in this Manual isarranged in alphabetical order.
Direct refresh ..................................................1-7
A Unit Synchronous Refresh .............................1-8
Communication specifications .........................A-11
About inspection and maintenance ................. 2-17 Configuration of the high-speed counter ............1-3
Daily care ..................................................... 2-17 Confirm package contents ...............................1-10
Inspection ..................................................... 2-17 Confirming Other Operation States ..................3-47
About serial encoder communication functions ........ 1-5 Confirming the count direction .....................3-48
Access Window ................................................. 7-2 Verifying count current value overflow .........3-47
Application example 1: Verifying errors .............................................3-47
Detecting elapsed time Verifying size of count current value and
by combining with input capture ................... 4-27 comparator setting value ..........................3-47
Application example 2: Connecting cable ...............................................2-8
Detecting elapsed time by combining Connecting serial communication ....................2-15
with enable input counting mode ................. 4-29 Example of serial communication wiring ......2-15
Application example 3: Connecting to I/O Peripherals ............................2-8
Detecting high accuracy timer with long operation Control input time constant ................................3-8
time via OUT0 output of other channels ...... 4-30 Control input wiring ..........................................2-13
Application example of counting within set time Control input wiring example ........................2-13
mode ............................................................ 4-14 Control output wiring ........................................2-14
Application example of enable accumulative Control output wiring example ......................2-14
counting mode ............................................. 4-10 Count input wiring ............................................ 2-11
Application example of enable counting mode ....... 4-12 Count mode and supported data memory list .........4-34
Application example of frequency counting mode ... 4-18 Count mode and supported relay list ...............4-35
Application example of preset counting mode ... 4-8 Counter operation mode ..................................3-13
Application example of tachometer mode Counting within set time mode .....................3-16
APPENDICES

(common to A/B) .......................................... 4-22 Enable accumulative counting mode ...........3-15


Application example of up/down counting mode ....... 4-6 Enable counting mode .................................3-15
Assembling and Wiring Connector .................... 2-5 Preset counting mode ..................................3-14
Precautions on wiring (OP-22184/51404) ...... 2-5 Up/down counting mode ..............................3-13
Counting input time constant .............................3-7
Counting mode ................................................3-17
B Counting within set time mode .........................4-14
Crimping tool ......................................................2-4
Buffering Function ............................................. 6-4

D
C
Detailed setting items ........................................3-6
Cable connector component .............................. 2-4 Difference with KV-SC20V .............................. A-13
Changing (clearing) count current value .......... 3-45
Behavior of the present count value write request
relay and present count value write complete E
relay .......................................................... 3-46
Changing (updating) Comparator/ Preset Setting Electrical specifications ....................................A-11
Value ............................................................ 3-31 Enable accumulative counting mode ...............4-10
Function of the setting update request relay and Enable Count Mode .........................................4-12
setting update completion relay ................ 3-34 Error Message List ............................................ A-2
Functions of preset value write request relay and Executing a Preset ...........................................3-37
preset value write completion relay .......... 3-34 Function of the internal preset request relay and
Checking the Installation Environment .............. 2-3 internal preset complete relay ..................3-38
Communicating with CPU unit ........................... 1-6
Auto refresh ................................................... 1-6
A-14 - KV-SSC02 User’s Manual -
7 Index

Relation among external Z-phase (preset) input,


external preset input state relay, Z-phase I
detection relay, and Z-phase detection reset
relay .......................................................... 3-38 I/O connector ...................................................2-10
Steps: Using internal preset ......................... 3-37 Initialize current value ......................................3-21
Using external Z-phase (preset) input .......... 3-37 OFF ..............................................................3-21
Using internal preset .................................... 3-37 ON (zero clear) .............................................3-21
Executing Input Capture .................................. 3-41 Initialize setting ................................................3-22
Function of the input capture input status relay Initialize setting and default value ................3-22
and input capture reset relay .................... 3-44 OFF (load from DM) .....................................3-22
Relationship of input capture input and input ON ................................................................3-22
status relay ............................................... 3-43 Input mode .......................................................3-10
Steps ............................................................ 3-41 1-pulse, dir OFF (B-phase disabled) ............3-10
What is "Input capture" ................................ 3-41 1-pulse, dir ON .............................................3-10
External devices input wiring example ............ 2-12 2-phase 1x (phase difference) ..................... 3-11
External output ON/OFF .................................. 3-35 2-phase 2x ................................................... 3-11
Function of OUT output and OUT output status 2-phase 4x ...................................................3-12
relay .......................................................... 3-36 2-pulse up/down counting ............................ 3-11
Output based on internal relays ................... 3-35 Input selection ....................................................3-9
Output by matching with comparator (not CH0 external connector / CH1 external
applicable to frequency counting and connector ....................................................3-9
tachometer A/B mode) ............................. 3-35 CH1 OUT0 output / CH0 OUT0 output ...........3-9
Steps ............................................................ 3-35 COM
BiSS (C-mode) .........................................3-10
EnDat2.2/22 ..............................................3-10
F Yaskawa Serial .........................................3-10

APPENDICES
Internal 1µs pulse ...........................................3-9
Features of KV-SSC02 ...................................... 1-2 Internal 10µs pulse .........................................3-9
Frequency counting mode ............................... 4-16 Internal 100µs pulse .......................................3-9
Frequency, rotation meter mode and supported data Internal 50ns/pulse .........................................3-9
memory list ................................................... 4-37 Installation Procedure ........................................2-2
Frequency, rotation meter mode and supported Installing Units on DIN Rails ..............................2-7
relay list ........................................................ 4-38 Internal clock counting .....................................4-24
Frequency/Rotation meter mode ..................... 3-23 Inter-unit synchronization .................................1-16
Frequency counting mode ........................... 3-23 Inter-Unit Synchronization Details ...................6-14
Rotation meter A mode (pulse interval) ....... 3-23 Inter-unit synchronization function .....................3-6
Rotation meter B mode (rotation time) ......... 3-23
K
G
KV-8000/7500/7300 System Configuration ........1-9
Get ready for wiring ........................................... 2-4 KV-SSC02 Details ..............................................1-3
KV-SSC02 Error Message List ......................... A-2
KV-SSC02 Troubleshooting .............................. A-4
H KV-SSC02 Unit Specific Functions ..................5-22
KV-SSC02 Unit Specific Instructions .................5-2
High-speed counter unit functions ..................... 1-2
High-speed counter Unit Monitor ....................... 8-3
How to install ..................................................... 2-6
How to Make a program .................................. 3-28

- KV-SSC02 User’s Manual - A-15


7 Index

L R

List of Data Memories ....................................... A-6 Refresh ..............................................................1-6


List of Devices Used ......................................... A-6 Refresh Timing ..................................................3-7
List of differences ........................................... A-13 Reset operation ...............................................3-20
List of operation mode and corresponding device ... 4-34 Clear current value at CTC0 ........................3-20
List of Relays .................................................... A-7 Clear current value at CTC1 ........................3-20
Assignment for input relay ............................ A-8 Not cleared ...................................................3-20
Assignment for output relay .......................... A-7
List of serial encoder communication enabled
series ...........................................................A-11
S
List of Setting Items ........................................... 3-4
List of supported series .................................. A-12 Serial encoder communication ........................4-32
Serial encoder communication retry times .......3-27
Serial encoder position data size .....................3-26
M Setting screen/monitor screen ...........................7-5
Setting up leading device ...................................3-6
Mounting KV-SSC02 onto the CPU Unit ............ 2-6 Leading DM No. .............................................3-6
Leading relay No. ...........................................3-6
Setup with Unit Editor ........................................3-3
N Signed counting ...............................................3-18
Signed ..........................................................3-18
Name and function of each part ...................... 1-11 Unsigned ......................................................3-18
Specifications .....................................................4-2
Enable Accumulate Count Mode ....................4-3
O
APPENDICES

Enable Count Mode .......................................4-3


Frequency Count Mode ..................................4-4
Operation Mode ................................................. 1-4 Preset Count Mode ........................................4-2
Operation Overview during Inter-Unit Rotation Meter A mode (pulse interval
Synchronization ........................................... 6-15 measurement)/Rotation Meter B mode (time
Operations in the PROG Mode ......................... A-5 measurement per revolution) ......................4-4
OUT0/OUT1 output setting .............................. 3-24 Serial encoder communication .......................4-5
Inverted at CTC0 .......................................... 3-25 Set Timer Count Mode ...................................4-4
Inverted at CTC1 .......................................... 3-25 Up/down Count Mode ....................................4-2
Not used ....................................................... 3-26 Specifications and Dimensions ........................1-12
OFF at CTC0 ............................................... 3-24 Dimensions ..................................................1-15
OFF at CTC0, ON at CTC1 ..........................3-26 General specification ....................................1-12
OFF at CTC1 ............................................... 3-25 Input specification ........................................1-14
ON at CTC0 ................................................. 3-24 Number of devices used ..............................1-14
ON at CTC0, OFF at CTC1 ..........................3-25 Output specification ......................................1-14
ON at CTC1 ................................................. 3-25 Performance specification ............................1-13
Serial encoder communication specifications .....1-15
Start counting (write setting value) ...................3-29
P
Starting steps .....................................................3-2
System Configuration ........................................1-9
Performing high accuracy time measurement ........ 4-27
Preset counting mode ........................................ 4-8
Preset operation .............................................. 3-19
Falling edge ................................................. 3-19
Level ............................................................ 3-19
Rising edge .................................................. 3-19
Programming flow ............................................ 3-28

A-16 - KV-SSC02 User’s Manual -


7 Index

Calculating way of tachometer A mode (pulse


T internal measurement) ..............................4-20
Calculating way of tachometer B mode (time
Tachometer mode ............................................ 4-20 calculation per rotation) ............................4-21
To output pulse with ON/OFF ratio 1:1 ............ 4-24 Minimum sampling time ...............................4-21
To output pulse with variable pulse width ........ 4-25 What is Unit Interrupt Function ..........................6-2
Troubleshooting ................................................ A-4

Z
U
Z-phase input time constant ..............................3-8
U_DISOCP .............................................5-20, 5-31
Unit Interrupt Function ....................................... 6-2
Unit monitor ....................................................... 8-2
Unit Monitor introduction .................................... 8-2
Unit Monitor of KV STUDIO ............................... 8-2
Unit specific functions list ................................ 5-22
Unit specific instructions list ............................... 5-2
Unit Specification during Inter-Unit Synchronization
Function ....................................................... 6-14
Unit Syncronization .......................................... 6-14
Unit Test ............................................................. 7-6
up/down counting mode .................................... 4-6
U_RDBF .................................................5-18, 5-30
U_RDCNT ................................................5-4, 5-23
U_RDCPT0 .............................................5-10, 5-26

APPENDICES
U_RDCPT1 .............................................5-10, 5-26
U_RDHZ ...................................................5-6, 5-24
U_RDRPM ................................................5-8, 5-25
Usage example of the serial encoder
communication functions ............................. 4-32
Used as high-speed clock output (100kHz
maximum) .................................................... 4-24
Using enable input ........................................... 3-39
Relationship between external enable input and
external enable input state relay .............. 3-40
Relationship between external enable input and
internal enable set relay ........................... 3-40
U_WRCNT ..............................................5-12, 5-27
U_WRCTC0 ............................................5-14, 5-28
U_WRCTC1 ............................................5-14, 5-28
U_WRPST ..............................................5-16, 5-29

What is Buffering Function ................................ 6-4


What is frequency counting mode ................... 4-16
Averaging times ........................................... 4-17
Calculating way of frequency counter .......... 4-16
Minimum sampling time ............................... 4-17
What is tachometer mode ................................ 4-20
Averaging times ........................................... 4-21

- KV-SSC02 User’s Manual - A-17


Revision History
Revision History Version Details of Revision

Jun 2015 Initial version


Jan 2016 Second version
Sep 2017 Third version
Sep 2019 Fourth version

- KV-SSC02 User’s Manual -


WARRANTIES AND DISCLAIMERS
(1) KEYENCE warrants the Products to be free of defects in materials and workmanship for a period of one (1)
year from the date of shipment. If any models or samples were shown to Buyer, such models or samples were
used merely to illustrate the general type and quality of the Products and not to represent that the Products
would necessarily conform to said models or samples. Any Products found to be defective must be shipped to
KEYENCE with all shipping costs paid by Buyer or offered to KEYENCE for inspection and examination. Upon
examination by KEYENCE, KEYENCE, at its sole option, will refund the purchase price of, or repair or replace
at no charge any Products found to be defective. This warranty does not apply to any defects resulting from
any action of Buyer, including but not limited to improper installation, improper interfacing, improper repair,
unauthorized modification, misapplication and mishandling, such as exposure to excessive current, heat,
coldness, moisture, vibration or outdoors air. Components which wear are not warranted.
(2) KEYENCE is pleased to offer suggestions on the use of its various Products. They are only suggestions, and it
is Buyer's responsibility to ascertain the fitness of the Products for Buyer’s intended use. KEYENCE will not be
responsible for any damages that may result from the use of the Products.
(3) The Products and any samples ("Products/Samples") supplied to Buyer are not to be used internally in
humans, for human transportation, as safety devices or fail-safe systems, unless their written specifications
state otherwise. Should any Products/Samples be used in such a manner or misused in any way, KEYENCE
assumes no responsibility, and additionally Buyer will indemnify KEYENCE and hold KEYENCE harmless from
any liability or damage whatsoever arising out of any misuse of the Products/Samples.
(4) OTHER THAN AS STATED HEREIN, THE PRODUCTS/SAMPLES ARE PROVIDED WITH NO OTHER
WARRANTIES WHATSOEVER. ALL EXPRESS, IMPLIED, AND STATUTORY WARRANTIES, INCLUDING,
WITHOUT LIMITATION, THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, AND NON-INFRINGEMENT OF PROPRIETARY RIGHTS, ARE EXPRESSLY DISCLAIMED. IN
NO EVENT SHALL KEYENCE AND ITS AFFILIATED ENTITIES BE LIABLE TO ANY PERSON OR ENTITY
FOR ANY DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, SPECIAL OR CONSEQUENTIAL DAMAGES
(INCLUDING, WITHOUT LIMITATION, ANY DAMAGES RESULTING FROM LOSS OF USE, BUSINESS
INTERRUPTION, LOSS OF INFORMATION, LOSS OR INACCURACY OF DATA, LOSS OF PROFITS,
LOSS OF SAVINGS, THE COST OF PROCUREMENT OF SUBSTITUTED GOODS, SERVICES OR
TECHNOLOGIES, OR FOR ANY MATTER ARISING OUT OF OR IN CONNECTION WITH THE USE OR
INABILITY TO USE THE PRODUCTS, EVEN IF KEYENCE OR ONE OF ITS AFFILIATED ENTITIES WAS
ADVISED OF A POSSIBLE THIRD PARTY’S CLAIM FOR DAMAGES OR ANY OTHER CLAIM AGAINST
BUYER. In some jurisdictions, some of the foregoing warranty disclaimers or damage limitations may not
apply.

BUYER'S TRANSFER OBLIGATIONS:


If the Products/Samples purchased by Buyer are to be resold or delivered to a third party, Buyer must provide
such third party with a copy of this document, all specifications, manuals, catalogs, leaflets and written
information provided to Buyer pertaining to the Products/Samples.

E 1101-3
Copyright (c) 2015 KEYENCE CORPORATION. All rights reserved. 084318GB 1099-4 507GB Printed in Japan

- KV-SSC02 User’s Manual -

You might also like