Professional Documents
Culture Documents
As 106357 KV-SSC02 Um 507GB WW GB 1099 4
As 106357 KV-SSC02 Um 507GB WW GB 1099 4
As 106357 KV-SSC02 Um 507GB WW GB 1099 4
High-speed counter
Chapter unit ovewview
UNIT INSTALLATION
Chapter
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
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.
Important It indicates cautions and limitations that must be followed during operation.
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.
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.
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.
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)".
Terminology
1
Features of KV-SSC02
High-speed counter unit ovewview
KV-SSC02 Details
1
Configuration of the High-Speed Counter
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
Count input
Serial encoder
Serial communications
communication
EnDat2.2/22
BiSS (C-mode)
Yaskawa Serial
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)
KV-SSC02
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
Preset value
Count value
Preset input
Count value
Enable input
Count value
Count value
Count input
Set time
Enable input
Count value
KV-SSC02 is capable of acquiring the absolute position data from the encoder through serial 1
communication with a serial encoder.
Supported protocols
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)
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.
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
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.
Synchronization
Auto refresh
1 Scan
Execute program
END processing
…
DM10000 ch0 count current value L 16960 High-speed counter current 1000000
DM10001 ch0 count current value H 15 value
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,
Control processing
KV-SSC02
Synchronous
Auto refresh
1 Scan
Execute program
Unit-specific instruction
END processing
Control processing
Synchronization
period
Auto refresh Interrupt
Sync refresh
1 Scan
Execute program
Inter-Unit Synchronization
Module
Program Running
END processing
…
DM10000 ch0 count current value L 16960 High-speed counter current 1000000
DM10001 ch0 count current value H 15 value
1
KV-8000/7500/7300 System Configuration
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
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.
KV STUDIO Description
Ver. 8.1 or later Compatible with the high-speed counter unit KV-SSC02
1
KV-SSC02
High-speed counter unit ovewview
KV
-S
SC
KV-7000 Series
02
Expansion Unit
Instruction Manual
*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
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.
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)
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. ON voltage
50%
50%
Max. OFF voltage
50%
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.
Dimensions
1.2
27.3
92.5
35.9
90
4
22.6
95
112
(145)
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
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
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.
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.
5 Trial operation
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
Applicable Cables
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.
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
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
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.
How to Install
2 NOTICE Be sure to turn the power off when mounting the unit.
UNIT INSTALLATION
Procedure
KV
-S
SC
02
KV
-S
SC
02
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
Fastener is Fastener is
properly locked not locked
Removing units
Connection Cables
2
UNIT INSTALLATION
Steps
Housing
carrier
Contact-break position
Contact
4 Insert wires into the crimping slot Viewed from the side
along contact.
Crimping
punch
Cover
Wire Guide
Wire
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
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.
Here, lock it
Housing
I/O connector
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
*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
+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
When connecting open collector (A-phase) when connecting differential line driver (A-phase)
Important The voltage within 5V/12V/24V circuit should not exceed respective rated input voltage.
Otherwise it may damage the unit.
+24V
STP cable
12V*1
UNIT INSTALLATION
+5V
External equipment
COM
A phase
+5V
COM
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.
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)
Destination input
IN
12 to 24V
COM
Destination input
IN
12 to 24V
COM
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.
OUT0,1
Load
Internal circuit
Output COM
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.
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.
DATA
Receive data
120Ω
Send clock CLK+ CLOCK
CLK-
CLOCK
Up
+5V 0V
Isolated power
SG Sensor Up
supply +5V
Sensor 0V
*2
SLO-
Receive data
120Ω
Send clock CLK+
MA+
CLK-
MA-
+5V 5V
Isolated power
SG 0V
supply +5V
*2
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.
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.
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.
MEMO
2
UNIT INSTALLATION
HOW TO SETUP
HOW TO SETUP
This chapter describes the necessary setting contents when using KV-SSC02.
Startup Procedure
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.
First, set the unit configuration correctly using the Unit Editor.
HOW TO SETUP
2 Configure the unit.
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
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.
The following describes the items that can be set up using the Unit Editor.
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
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)".
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.
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.
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
Input selection
HOW TO SETUP
Select the input to count on each channel
Reference Same external input can be chosen for external input on other channel, or for CH0 and CH1.
Internal 50ns/pulse
Counts the internal clock at 50ns frequency.
COM: EnDat2.2/22
Communicates with EnDat2.2/22 encoders.
3
COM: BiSS (C-mode)
HOW TO SETUP
Input mode
Specify the input method when the external input "CH0 external terminal/CH1 external terminal" is set
for Input Select.
A-phase A-phase
OFF OFF
ON
B-phase
OFF
ON
B-phase
(down pulse) OFF
3
Count value
HOW TO SETUP
0 1 2 3 2 1 2 3 4
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
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
HOW TO SETUP
Specify the counting mode for input.
Up
Count input
down
4294967295
Count value 0
Up
Count input
down
2147483647
Count value 0
-2147483648
Ring mode
Upper limit of ring counter (positive value)
Up
Count input
down
Ring counter
3
upper limit
HOW TO SETUP
Count value 0
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.
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.
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.
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.
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)
2 Lower limit + 2
(2147483646)
2147483646)
(ˉ2147483646)
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.
Signed counting
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
0 Ring counter
lower limit
–2147483648
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, .
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
Counting value will not be cleared even if it has reached the comparator value.
Count input
Count value
0
Count input
Comparator value(CTC1)
Count value
0
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.
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
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
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
HOW TO SETUP
Specify the method to calculate the frequency/rotation from count input.
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
If count value matches with the setting value of comparator 0 (CTC0), output OUT0 will be ON.
Detail
CTC0
CTC0 100
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
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
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)
CTC1
CTC0
Count value
ON
OUT0 OFF
(before matching, 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.
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.
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.
Programming Flow
*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.
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.
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.
Example When using CH0, the comparator 0 value (CTC0) is written into KV-SSC02 to start the count
operation.
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"
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.
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
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)
Example If CH0 is used in the preset count mode, change the comparator 0 setting value and the preset
value respectively.
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
R30006
R30005
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"
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.
ENDH
Function of the setting update request relay and setting update completion relay
3 relay
CH0 : leading 305
(2) (4)
CH1 : leading 405
HOW TO SETUP
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.
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
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).
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"
OUT output
(KV-SSC02)
Reference When direct I/O relays (DR) are used, the "OUT output" at that time can be read.
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.
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
Preset value
Count value
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.
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
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
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
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.
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.
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"
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
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)
If input capture input is performed,the count current value will be immediately stored into data memory.
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.
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.
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
R30312 MOV.L
DM10003 DM0
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"
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)
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)
External input
Input status relay (CPU unit)
Input capture
reset relay (CPU unit)
INPUT0 (INPUT1)
Input state relay (CPU unit)
Function of the input capture input status relay and input capture reset relay
(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.
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.
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
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.
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
4294967295
Count value
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
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
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
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)
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
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.
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
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
Application example
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)
;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
Application example
• Rotation speed of conveyer line is acquired
Cut-to-length
using encoder, and output through
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)
;Mnemonics list
Write setting value when power is ON
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
Application example
4 Check machining accuracy of workpieces
KV-SSC02
KV-SC20V
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES
Sensor input B
Sensor input A
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
Count value is preset at the rising edge of
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
Application example
4
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES
Sensor input
Encoder input
KV-SSC02
KV-SC20V
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
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.
Application example
• High speed counting will be performed for IC pins. If setting value is not reached within set time, NG
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)
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
A function used to calculate frequency according to input pulse, and write the calculation result into data memory.
(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
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
KV-SSC02
Frequency count
Calculation results
Pulse input
Averagings for 4 times Averagings for 3 times 4
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)
;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)
Reference Programming of the above example ladder program using scripts is shown below.
CR2008 MOV
#100 DM10045
MR000 R30000
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
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
(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
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.
4
Setting up with the Unit Editor KV-SSC02
KV-SC20
OPERATION MODE SPECIFICATIONS & APPLICATION EXAMPLES
R30300 MOV.L
DM10008 DM0
ch0 operating ch0 rotation speed
measurement result L
MEMO
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
Timing chart
Set
Comparator 0 setting value
Count value
Timing chart
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
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
Combining each function with internal clock measurement enables high-precision time measurement
independent of the scan time.
ON
4
Sensor A KV-SSC02
KV-SC20
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).
Application example 2: Detection of elapsed time by combining with the enable count
Sensor
KV-SSC02
Sensor ON
Input 0000
OFF
Pulse widthμs)
4
elapsed time(μs)
Count value
Timing chart
Internal clock
Comparator 0
setting value
OUT0
MEMO
• 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)
(2)
Operating relay
Send
Communication
Receive (3)
command
×timeout
Present count value
(data memory)
Communication cycle
(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
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)
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
: Used.
- : Not used.
*1 : Preset request relay is disabled.
*2 : Only enabled when [Ring] is set to the [Count mode] in unit settings.
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
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
: Used
- : Not used.
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.
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
MEMO
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.
Enable
Up/down Preset Enable Set timer Frequency
Mode accumulative Tachometer
counter count count count count count
Availability - -
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.
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
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
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).
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
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
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).
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.
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.
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
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
Enable
Up/down Preset Enable Set timer Frequency
Mode counter count
accumulative
count count count Tachometer
5 Availability
counting
- -
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS
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.
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.
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
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
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
Enable
Mode Up/down Preset accumulative Enable Set timer Frequency
Tachometer
counter count count count count
count
Availability - -
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.
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
S +1 S
12345678
High-speed counter
current value
5
32 bits
@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
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_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
Enable
Up/down Preset Enable Set timer Frequency
Mode counter count
accumulative
count count
Tachometer
count
5 Availability
count
- -
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS
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.
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
S +1 S
12345678
Comparator setting
value 5
32 bits
(2-word)
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
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
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.
Enable
Up/down Preset Enable Set timer Frequency
Mode counter count
accumulative
count count count Tachometer
count
Availability - -
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.
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
S +1 S
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
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
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
Ⓖ Ⓚ
Operation flag
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
RETI
ENDH
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.
Executing
condition U_DISOCP
n1 S @ U _ D I S O C P n1 S
5 Bit device
Available Device
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 .
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.
Sample Program 5
;<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
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.
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
Description of Operation
When execution condition is ON, high-speed counter current value of channel is read from the
n2
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
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).)
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
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
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).)
Description of Operation
When execution condition is ON, input capture value of channel is read from the unit specified
n2
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
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 - - - - - - - - - - -
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
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
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).)
Description of Operation
When execution condition is ON, preset setting value of n2 channel of the unit specified by n1
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
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 - - - - - - - - - - -
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
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
Contact function
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 - - - - - -
*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
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
*1
U_DISOCP([Executing Condition] , Unit number, 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.
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.
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
MEMO
5
UNIT SPECIFIC INSTRUCTIONS/FUNCTIONS
S-Unit function
6-1 Unit Interrupt Function. . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
6-2 Buffering Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4
6-3 Unit Syncronization . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-14
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.
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
Setting Method
Create a program for interrupt between END and ENDH.
CR2008
EI
INT
Unit No. Interrupt factor
Interrupt program
An interrupt program is written between END and ENDH.
RETI
ENDH
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
This is the function to sample the count current value of KV-SSC02 in the fastest 1s 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.
6 sampled exactly.
S-Unit function
Analog value
(Displacement Scan time
measurements) Sampling period
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.
• 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.
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.
Data 5026
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
…
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
Trigger input
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) −
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
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.
6
Example In case of the "1: sequential number" setting and data shit setting: 0
S-Unit function
Trg bit: 1
Example In case of the "2: elapsed time by the inter-unit synchronization cycle" setting and data
shit setting: 3
State bit : 0
Trg bit : 1
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
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.
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
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
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
T0 @DM0 Z1 Z1
LDA EXT ADD.L STA.L
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.
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.
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.
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
ACCESS WINDOW
7-1 Access Window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
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.
-855%ޓޓ%* -855%%* -855%%*
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
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 CH1
The items for the disabled functions are not displayed, depending on the input
Point
selection specified.
The access window is operated by the setting operation keys on the CPU unit.
7 * The settings can only be changed when the CPU unit is in PROGRAM mode.
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 ࠞ࠙ࡦ࠻୯
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.
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
-855%ޓޓ%* -855%ޓޓ%*
%PV+PRWV(KNVGT ⸘ᢙജᤨቯᢙ
=ޓޓޓޓ/*\? =ޓޓޓޓޓ/*\?
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).
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.
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
-855% -855%
㨯6GUV 㨯࠹ࠬ࠻
㨯5GVVKPI 㨯⸳ቯ
ޓޓޓޓ ޓޓޓޓޓ
5 Use the "5 "/"/ " key to select ". Test", and then press then "ENTER" key.
MENU ENTER
-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
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.
The Unit Monitor of KV-SSC02 can be displayed from KV STUDIO according to the following steps.
2 Select "KV-SSC02" from the "Select Unit Monitor" dialog box, and click the "Display" button.
Unit Monitor of KV-SSC02 will be displayed.
UNIT MONITOR
(20) Operation mode 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.
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.
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
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
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
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 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
APPENDICES
N : Leading DM No.
List of Relays
APPENDICES
n : Leading relay No.
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.
n + n + Z-phase detection
OFF -> ON: Turn the Z-phase detection relay OFF. 3-44
014 114 reset
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 + Reserved for
- -
513 to 515 613 to 615 system
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.
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.
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
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
L R
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
E 1101-3
Copyright (c) 2015 KEYENCE CORPORATION. All rights reserved. 084318GB 1099-4 507GB Printed in Japan