You are on page 1of 194

452GB

SYSTEM CONFIGURATION &


UNIT SETTING (COMMON)

Analog—Digital Conversion Unit

KV-SAD04
AD/DA Conversion Unit Digital—Analog Conversion Unit

KV-SDA04

Precautions When Replacing with Other Unit


List of Error Messages
Index

User's Manual
Please read this Manual before use.
Keep this Manual in a safe place for later reference.

Supported CPU units


Preface
This manual describes how to use KV-SAD04/SDA04 and their functions.
Be sure to thoroughly read and fully understand this manual before installing. In addition, store this
manual in a safe place so that you can retrieve it whenever necessary.

 KV-SAD04/SDA04 User's Manual


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

Name Description
This manual describes the system configuration and specifications of the
KV-7000 Series User's Manual
KV-7000 Series, and how to prepare ladder programs.
KV-7000/5000/3000/1000 Series,
KV Nano Series  This Manual describes available instructions for ladder programming.
Instruction Reference Manual
KV-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-SAD04/SDA04, operating procedures and the precautions to follow.
Be sure to read and understand this manual to make full use of the KV-SAD04/SDA04 before use.

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

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


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

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

Point It indicates additional information on proper operation.

Reference It indicates tips for better understanding or useful information.

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

 General Precautions
• Before you use this device, verify its functionality and performance at startup
and during operation.
• Provide a safety circuit that bypasses the PLC to enable failsafe operation of
the entire system in the event that the PLC fails.
• Output circuit and internal circuit malfunctions sometimes prevent control from
being performed normally. Be sure to provide a safety circuit in control
WARNING
systems where circuit malfunctions may lead to fire or other serious accidents.
• Do not use the device with the purpose of protecting human beings.
• This device is not intended for use as an explosion-proof product. Do not use
this device in a hazardous location or in a location that has a potentially
explosive atmosphere.
• Before you use KV STUDIO, verify that 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.
452GB
- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 1
 CE Marking/UL Standard
Descriptions relating to the restrictions on the CE Marking and descriptions relating to the restrictions
on complying with the UL508 are described in the KV-7000 Series User's Manual.

2 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


How This Manual Is Organized

SYSTEM
This chapter describes names and functions of parts, system

Chapter 1 CONFIGURATION &


UNIT SETTING
configuration, and unit settings of KV-SAD04/SDA04. 1
(COMMON)

2
Chapter 2 KV-SAD04 This chapter describes A/D conversion unit KV-SAD04.
3

A
Chapter 3 KV-SDA04
This chapter describes D/A conversion unit KV-SDA04.

This chapter describes precautions when replacing with other


APPENDICES
unit as well as error message list and indexes.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3


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

Chapter 1 SYSTEM CONFIGURATION & UNIT SETTING (COMMON)


1-1 Unpacking. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
1-2 Names and Functions of Parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
1-3 System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
KV-7500/7300 System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-4
1-4 Checking the Installation Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
1-5 Connecting to Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-7
1-6 Mounting onto the CPU Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
1-7 Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10
Inspection and Daily Care . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-10

Chapter 2 KV-SAD04
2-1 Specification & A/D conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-2
Wiring input Terminals and Internal Circuit Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-3
A/D conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-5
A/D conversion Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-7
2-2 Settings & Various Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15
List of Setting Items on Unit Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-15
List of Available Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-18
Changing Setting Value via Ladder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-23
KV-SAD04 Function Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-27
Setting the Leading Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-28
Channel Skip Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-29
Setup Input Range. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-29
Zero Clip Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-30
Scaling Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-31
Averaging Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-32
Special Data Offset Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-36
Zero Drift Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-38
Peak/Bottom Hold Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-40
Comparator Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-42
Wire break Detection Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-45
Unit Interrupt Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-46
Buffering Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-48
Inter-unit synchronous function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-57

4 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-3 KV-SAD04 Unit Specific Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-61
List of KV-SAD04 Unit Specific Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-61
U_RDAD Read A/D conversion (special) data . . . . . . . . . . . . . . . . . . . . . .2-62
U_RDADB Read all types of A/D conversion data . . . . . . . . . . . . . . . . . . . .2-64
U_WROFST Change special data offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-66
U_WRSCL Write scaling setting value . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-68
U_WRLMT Write count setting value. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-70
U_WRAVG Write average constant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-72
U_RDBF Reads buffering data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-74
2-4 KV-SAD04 Unit Specific Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-76
List of KV-SAD04 Unit Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-76
U_RDAD Read A/D conversion (special) data . . . . . . . . . . . . . . . . . . . . . .2-77
U_RDADB Read all type of A/D conversion data . . . . . . . . . . . . . . . . . . . . .2-78
U_WROFST Change special data offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-79
U_WRSCL Write scaling setting value . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-80
U_WRLMT Write count setting value. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-81
U_WRAVG Write average constant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-82
U_RDBF Reads buffering data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-83
2-5 Access Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-84
Access Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-84
Setting Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-87
Monitor Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-89
Unit Test. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-90
2-6 Unit Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-91
Unit Monitor Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-91
Displaying Unit Monitor Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-91

Chapter 3 KV-SDA04
3-1 Specification & D/A Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-2
Wiring Output Terminals and Internal Circuit Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-3
D/A Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-5
D/A Conversion Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-7
3-2 Settings & Various Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13
List of Setting Items on Unit Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-13
List of Available Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-16
Changing Setting Value via Ladder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-19
KV-SDA04 Functional Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-23
Setting the Leading Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-24
Channel Skip Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-24
Setup Output Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-25
Scaling Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-25
Output Data Offset Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-26
Upper/Lower Limit Alarm Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-28
Output Limit Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-31
Error Hold Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-32
Output Function During PROG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-33
Unit Interrupt Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-33
- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 5
Program output function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-35
Inter-unit synchronous period . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-43
3-3 KV-SDA04 Unit Specific Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-45
List of KV-SDA04 Unit Specific Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-45
U_Wire-break conversion output data change . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-46
U_WROFST Change output data offset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-48
U_WRSCL Write scaling setting value . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-50
U_WRLMT Write upper/lower limit alarm value . . . . . . . . . . . . . . . . . . . . . . .3-52
3-4 KV-SDA04 Unit Specific Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-54
List of KV-SDA04 Unit Specific Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-54
U_WRDA A/D conversion output data change . . . . . . . . . . . . . . . . . . . . . .3-55
U_WROFST Change output data offset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-56
U_WRSCL Write scaling setting value . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-57
U_WRLMT Write upper/lower limit alarm. . . . . . . . . . . . . . . . . . . . . . . . . . . .3-58
3-5 Access Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-59
Access Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-59
Setting Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-62
Monitor Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-64
Unit Test. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-65
3-6 Unit Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-67
Unit Monitor Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-67
Displaying Unit Monitor Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-67

Chapter A APPENDICES
1 Precautions When Replacing with Other Unit . . . . . . . . . . . . . . . . . . . . . . . A-2
Precautions When Replacing with A/D Conversion Unit . . . . . . . . . . . . . . . . . . . . . . . . . . A-2
Precautions When Replacing with D/A Conversion Unit . . . . . . . . . . . . . . . . . . . . . . . . . . A-3
2 List of Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4
List of Error Messages for KV-SAD04 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4
List of Error Messages for KV-SDA04 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-5
3 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-6

6 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


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

How to Utilize Mnemonics List

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

1 Open the manual by "Adobe Reader".

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

Drag and select all


mnemonics lists to
copy

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

Other procedure

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

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 7


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

Terminology

This manual uses the following terminology excluding some instances.


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

8 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


1
SYSTEM CONFIGURATION
& UNIT SETTING (COMMON)
This chapter describes names and functions of parts, system configuration,
and unit settings of KV-SAD04/SDA04.

1-1 Unpacking •••••••••••••••••••••••••••••••••••••••••••••••••••• 1-2


1-2 Names and Functions of Parts ••••••••••••••••••••••••••• 1-3
1-3 System Configuration •••••••••••••••••••••••••••••••••••••• 1-4
1-4 Checking the Installation Environment•••••••••••••••••• 1-5
1-5 Connecting to Peripherals••••••••••••••••••••••••••••••••• 1-6
1-6 Mounting onto the CPU Unit •••••••••••••••••••••••••••••• 1-9
1-7 Maintenance ••••••••••••••••••••••••••••••••••••••••••••••• 1-10

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 1-1


1-1 Unpacking
The package contains the following equipment and accessories. Before you start using the KV-SAD04/
SDA04, make sure that the package contains everything that it is supposed to contain.
1
KV-SAD04/SDA04
SYSTEM CONFIGURATION & UNIT SETTING (COMMON)

KV
-S
AD
04 KV-7000 Series

Expansion Unit
Instruction Manual

Unit Expansion Unit Instruction Manual (one)

1-2 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


1-2 Names and Functions of Parts
This section describes the name and function of each part of KV-SAD04/SDA04.

(Front) (Side) 1

SYSTEM CONFIGURATION & UNIT SETTING (COMMON)


KV-SAD04
①Direct access switch

③Lock lever
④GND link connector
V0+
I0+
CH0
0-
COM
⑤Expansion unit
V1+
I1+
connection connector
CH1
1-
COM
V2+ ②Analog input terminal block (KV-SAD04)
I2+
CH2
2- Analog output terminal block (KV-SDA04)
COM
V3+

CH3
I3+
3-
③Lock lever
COM

No. Name Function


The status of KV-SAD04/SDA04 can be monitored in Access Window
of CPU unit by the switch. In addition, you can also know the status of
the KV-SAD04/SDA04 by the color of the switch.
Lit (green) : Normal operation (excluding some exceptions)
Blinking (green): When the switch is pressed in a green lit state, and
(1) Direct access switch
the unit is selected
Lit (red): When a unit error has occurred (excluding some
exceptions*1)
Blinking (red): when a unit is selected while the red LED is lit and
the switch is turned on
Analog input Used for connecting external analog input terminal. 
KV-SAD04
terminal block Dismountable.
(2)
Analog output Used for connecting external analog output terminal. 
KV-SDA04
terminal block Dismountable.
(3) Lock lever Locks the connection of the units.
(4) GND link connector Links connected unit with GND.
Expansion unit connection
(5) Connects to KV-7500/7300 or KV-7000 Series expansion units.
connector

*1 This LED lights (red) in the following instance even if the state is not a unit error state.
(1) When the unit information on the CPU Unit is for a single CPU configuration when the power is
turned ON.
In this case, an error will be displayed in the access window.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 1-3


1-3 System Configuration
This section describes the configuration of KV-7000 system and systems that can be configured with
KV-SAD04/SDA04.
1
KV-7500/7300 System Configuration
SYSTEM CONFIGURATION & UNIT SETTING (COMMON)

The KV-SAD04/SDA04 can be mounted onto the CPU unit as follows.

Power Supply Unit CPU unit KV-7000 Series Bus connection unit KV-5000/3000 Series End Unit
KV-PU1 KV-7500/7300 Expansion Unit (supplied with CPU unit ) Expansion Unit
(DC24V 1.8A) (I/O, special) (I/O, special)
KV-PU1 KV-7500 KV-SAD04
POWER

REALTIME
Logic Controller
CARD
V0+
MENU ENTER I0+
CH0
0-
COM
CARD SW V1+
I1+
CH1
OPEN 1-
USB COM
V2+
I2+
CH2
2-
COM

LINK V3+
I3+
CH3
3-
COM
NS
EtherNet/IP™

SD Memory Card
KV-M1G

Ladder support software Extension Unit


KV STUDIO KV-EB1S    KV-EB1R

Cable
(1m)
PC (OP-42142)

Cable
(2m)
(OP-42141)

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

 Compatible KV STUDIO Versions

KV STUDIO Description
Ver. 8.0 or later* Compatible with the KV-7000 Series
* Inter-unit synchronous function can be used with Ver.8.1 or later.

 Compatible CPU Units

AD Conversion Unit DA Conversion Unit


CPU Unit
KV-SAD04 KV-SDA04
KV-7500
Can be connected Can be connected
KV-7300
KV-5500
KV-5000
KV-3000 Cannot be connected Cannot be connected
KV-1000
KV-700

1-4 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


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

Location with direct sunshine


Location with ambient temperature Location with ambient humidity 1
exceeding the range of 0 to +55°C exceeding the range of 5 to 95% RH

SYSTEM CONFIGURATION & UNIT SETTING (COMMON)


Location with dewing due to Location with corrosive gas Location with heavy dust, salt,
sharp change in temperature and combustible gas chip 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

Chemicals Magnetic field


Electric
Oil field

• Altitude 2000m or more

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 1-5


1-5 Connecting to Peripherals
KV-SAD04/SDA04 can be connected with peripherals by wiring analog I/O terminal blocks. For the
each terminal wiring diagram, see "Analog input terminal wiring diagram" (page 2-4), "Analog
1 output terminal wiring diagram" ( page 3-4).
SYSTEM CONFIGURATION & UNIT SETTING (COMMON)

• Please use twisted shielded cables for analog signal wires.


Point
• Please keep the AC cables (such as power cords) away from analog cables
when wiring.
• Please ground (use D type grounding work) the signal reception side of the
shielded cables. (Depending on the environment, it may be necessary to ground
the signal transmission side or both sides.)
• Do not touch terminals when powering on. It may result in accident or malfunction.

 Terminal block specifications

Item Description
Compatible cable size AWG28-16 (0.3 to 1.3mm2)
Stripped cable length 7mm
Tightening torque 0.23N・m

 Cables
(1)When using stranded and solid wires as they are
• Ensure that no wire strands are coming out of the end of
stranded wires.
7mm
• Do not solder the ends of the wires.

(2)When using a ferrule terminal with an insulating sleeve


Refer to the outline drawing when selecting wires as, depending
Insulating sleeve
on the thickness of the wire sheath, it may be difficult to insert
Contact
wires into the insulating sleeve.

8mm
2 to 3.4mm
12.5 to 14mm

1-6 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


1-5 Connecting to Peripherals

Wiring
1
 Precautions when wiring to each unit

SYSTEM CONFIGURATION & UNIT SETTING (COMMON)


 Precautions when wiring to I/O peripherals
Use 2 core shielded twisted cable for the analog input wire and output wire, and wire it separately from
the power wiring.
Please ground (use D type grounding work) the signal reception side of the shielded cables. (Depending
on the environment, it may be necessary to ground the signal transmission side or both sides.)

 Precautions when grounding


• Ground each device separately (D-type grounding). Furthermore, make grounding resistance 100         
or less.
• If they cannot be grounded separately, then enable them to share the same grounding. In this case,
however, make sure all of the cables have the same length.

PLC Other PLC Other PLC Other


device device device

B
A B A

D-type grounding A= B A> B
A<B

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 1-7


1-5 Connecting to Peripherals

 Wiring to KV-SAD04 and KV-SDA04

1 If it is installed in the CPU unit, turn the power OFF and 


1 then remove the connector.
SYSTEM CONFIGURATION & UNIT SETTING (COMMON)

Turn the power OFF when mounting


NOTICE units. If the power is ON when wiring,
devices may malfunction.

2 Loosen the terminal screws on the side of the connector 


with a screwdriver.
Side of the connector
3 Wire the signal line to the specified terminal.

• Wire to the correct terminal. Devices


KV-SAD04

may malfunction if wired to the wrong


NOTICE terminal.
• When connecting, ensure that no V0+
static electricity is generated. V0+
I0+ I0+
CH0
0-

• Insert the signal line firmly.


COM
V1+
0-
I1+
CH1

• Use the AWG16 to 28 signal wires.


1-
COM
V2+

• For information on wiring, see "Terminal Pinout and 


I2+
CH2
2-
COM

Wiring Diagrams." in each chapter.


V3+
I3+
CH3
3-
COM

4 Tighten the terminal screws firmly with a screwdriver.


(tightening torque of 0.23N•m)

1-8 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


1-6 Mounting onto the CPU Unit
This section describes the procedure to install KV-SAD04 or KV-SDA04 to the CPU unit.

NOTICE Be sure to turn the power off when mounting the unit. 1

SYSTEM CONFIGURATION & UNIT SETTING (COMMON)


 Procedure

1 Remove the expansion unit connection CPU unit  KV-SAD04/SDA04


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

KV
-S
AD
04
KV
-750
0

CA
RD

ME
NU

CA
RD
EN
TE
R

SW

US
B

LINK

Ethe
rN
et/IPNS

2 Release the lock levers attached to the top


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

KV
-S
AD
04
KV
-750
0

CA
RD

ME
NU

CA
RD
EN
TE
R

SW

US
B

LINK

Ethe
rN
et/IPNS

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


lever slot on the left unit.
• They can be easily connected by holding
them parallel and aligning the positions of the
KV
-750
0

CA
RD

ME
NU

connectors. CA
RD
EN
TE
R

SW

US
B KV
-S
AD
04

LINK

Ethe
rN
et/IPNS

4 Lock the lock levers attached to the top and


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

the back of the unit. 


0
KV
-S
CA AD
04
RD

ME
NU

CA
RD

Check that there is not a gap between the


EN
TE
R

SW

US
B

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


LINK

connected.
Ethe
rN
et/IPNS

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 1-9


1-7 Maintenance
This section describes how to inspect and perform maintenance on the unit.

1 Inspection and Daily Care


SYSTEM CONFIGURATION & UNIT SETTING (COMMON)

 Inspection
When KV-SAD04/SDA04 Series units are used for a long time, the connecting section of the connectors
becomes loose or the battery is worn down. Continued use of KV-SAD04/SDA04 Series units in this
state may cause KV-SAD04/SDA04 trouble.
For this reason, periodically inspect wired parts on the KV-SAD04/SDA04.

The main service items are as follows:

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


• Whether the connector's connection part is mismatched or loose?
• Whether the terminal screw of terminal block is loose?
• Are the relays fused or are relay contacts faulty?
• Is the battery worn?
• Whether the wiring cable between unit and equipment is damaged?

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

1-10 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2
KV-SAD04
This chapter describes A/D conversion unit KV-SAD04.

2-1 Specification & A/D conversion••••••••••••••••••••••••••• 2-2


2-2 Settings & Various Functions ••••••••••••••••••••••••••• 2-15
2-3 KV-SAD04 Unit Specific Instructions •••••••••••••••••• 2-61
2-4 KV-SAD04 Unit Specific Functions •••••••••••••••••••• 2-76
2-5 Access Window ••••••••••••••••••••••••••••••••••••••••••• 2-84
2-6 Unit Monitor •••••••••••••••••••••••••••••••••••••••••••••••• 2-91

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-1


2-1 Specification & A/D conversion
This section describes specification, input terminal wiring and A/D conversion of KV-SAD04.

Specifications

 General specification
2 Model KV-SAD04
For system configurations that use KV-5000/ For system configurations that use only
System configuration
KV-SAD04

3000 Series expansion units KV-7000 Series expansion units


Power supply voltage 24 VDC ±10% 24 VDC (-15% +20%)
Internal current consumption 80 mA below
Surrounding air temperature 0 to +50°C*1, *2 (no freezing) 0 to +55°C*1, *2 (no freezing)
Relative humidity 10 to 95%RH*1 (no condensation) 5 to 95%RH*1 (no condensation)
Storage temperature -20 to 70°C*1 -25 to 75°C*1
Storage humidity 10 to 95%RH*1 (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)
Withstand voltage AC 1500V, 1 min (between power terminal and input terminals, and between all terminals and housing)
50M or more (DC 500V ohmmeter, measured between power terminal and input/output
Insulation resistance
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
IEC61131-2 Continuous vibration
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 Approx. 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
Model KV-SAD04
Analog input 4 points (differential)
Voltage:-10 to +10V (0.5mV 1/40000) Current: 0 to 20mA (1µA 1/20000)
0 to 10V (0.5mV 1/20000) 4 to 20mA (1µA 1/16000)
Analog input range -5 to +5V (0.25mV 1/40000)
(resolution) 0 to 5V (0.25mV 1/20000)
1 to 5V (0.25mV 1/16000)
0 to 30V (1.5mV 1/20000)
Conversion speed 10µs/ch
Voltage: ±0.1% (±20 digit) (@25°C±5°C) Current: ±0.1% (±20 digit) (@25°C±5°C)
Conversion precision
±0.2% (±40 digit) (@0 to 55°C) ±0.2% (±40 digit) (@0 to 55°C)
Input impedance Voltage: 1M Current: 250
Max. input Voltage: -15V to +35V Current: 30mA
Between analog input and CPU: insulated (photocoupler, transformer)
Isolation mode
Between analog input CH: non-insulated
Switch input range function, channel skip function, scaling function, special data offset
function, peak/Bottom hold function, zero Clip, zero drift function, comparator function,
Special functions averaging function (simple averaging (count selection), simple averaging (time selection),
moving average), wire break detection function*1, unit interrupt function, buffering function,
Inter-unit synchronous function
*1 Valid only when voltage is in the range of 1 to 5V and current in the range of 4 to 20mA.

2-2 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-1 Specification & A/D conversion

 Number of devices used


Device Type Number of Devices Used
Relay (R) 96 points (6ch)
Data memory (DM) 60 words

 Dimensions 2
8

KV-SAD04
1.2 95

27.3

90
92.5
35.9

22.6 4 95 Unit: [mm]


104.7

Wiring input Terminals and Internal Circuit Diagram

 Analog input terminal block


Terminal Terminal
Channel Signal Name
Number Name
KV-SAD04 1 V0+ Channel 0 voltage input
2 V0+ Channel 0 current input
V0+ 1
CH0
I0+ 2 3 0- Channel 0 analog input GND
0- 3
COM 4
4 COM GND common
V0+
V1+ 5 5 V1+ Channel 1 voltage input
I0+ I1+ 6 6 I1+ Channel 1 current input
CH0
0-
1- 7 CH1
COM
V1+ COM 8
7 1- Channel 1 analog input GND
CH1
I1+
1-
V2+ 9 8 COM GND common
COM
V2+
I2+ 10
9 V2+ Channel 2 voltage input
2- 11
10 I2+ Channel 2 current input
I2+
CH2
2-
COM 12 CH2
11 2- Channel 2 analog input GND
COM
V3+ V3+ 13
I3+
CH3
3-
I3+ 14
12 COM GND common
COM 3- 15
COM 16
13 V3+ Channel 3 voltage input
14 I3+ Channel 3 current input
CH3
15 3- Channel 3 analog input GND
16 COM GND common

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-3


2-1 Specification & A/D conversion

 Wiring diagram for analog input terminal


see the following wiring diagram when wiring analog input terminal block.

 Wiring voltage input (ch0 to ch3)


Please verify whether input range of connecting terminals (channel) is proper.

2
"Setup Input Range", Page 2-29

Voltage V0+
KV-SAD04

I0+
signal CH0
0-
CH0 COM
Shield V1+
I1+
CH1
1-
CH1 COM
Shield V2+
I2+
CH2
2-

CH2 COM
Shield V3+
I3+
CH3
3-

CH3 COM
Shield

• Select voltage input or current input according to every channel.


Point
• 0- to 3- and COM can be shorted to reduce noise.
• If potential difference exists between COM terminal and GND terminal of object
equipment, please connect two terminals.
• Not insulated between analog input channels.

 Wiring current input (ch0 to ch3)


Please verify whether input range of connecting terminals (channel) is proper.
"Setup Input Range", Page 2-29

Current V0+
signal I0+
Short V0+ and I0+
CH0
CH0 0-
COM
Shield V1+
I1+
Short V1+ and I1+
CH1
1-
CH1
COM
Shield V2+
I2+
Short V2+ and I2+
CH2
2-
CH2
COM
Shield V3+
I3+
Short V3+ and I3+
CH3
3-
CH3 COM
Shield

• Select voltage input or current input according to every channel.


Point
• 0- to 3- and COM can be shorted to reduce noise.
• Not insulated between analog input channels.

2-4 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-1 Specification & A/D conversion

 Internal circuit diagram

500k
V+
A/D 250
conversion
2
I+
circuit

KV-SAD04
500k
COM

* The COM terminal is common for each CH.

A/D conversion

The following describes A/D conversion principles, status of relay updated via KV-SAD04 and how to
read/write the value from/to CPU.

How A/D conversion Works

A/D conversion of KV-SAD04 is introduced below.

KV-SAD04
Multiplexer

CH0+
Amplifier circuit CH1+
Buffer memory

CH2+
CH3+
A/D
Conversion circuit CH0-
CH1-
CH2-
CH3-

(1) Use multiplexer to switch among CH0, CH1, CH2, CH3 and perform sampling operation.
(2) Analog signal (voltage/current) input to external equipment of every CH is amplified via amplifier
circuit, converted to A/D conversion data (numerical value) via A/D conversion circuit and stored to
buffer memory of KV-SAD04.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-5


2-1 Specification & A/D conversion

Communication with CPU Unit

The following describes how to write/read data stored in buffer memory of KV-SAD04 from/to relays/
DMs of CPU unit.

 Auto refresh
2 Control processing KV-SAD04
KV-SAD04

Synchronization
Auto refresh KV-SAD04

V0+
I0+

1 scan CH0
0-
COM

Program execution V1+


I1+
CH1
1-
COM
V2+
I2+
CH2
2-
COM
V3+
I3+
CH3
3-

END processing COM

CPU unit, during every ladder scanning, reads/writes the data stored from/into buffer memory of
KV-SAD04 via bus line to the relays/DMs of KV-SAD04 assigned to the CPU unit.
As mentioned above, the data communication method between CPU unit and expansion unit is called
"Auto Refresh", and data communication ladder/setting not required.

 Direct refresh
Control processing
KV-SAD04
Synchronization
Auto refresh KV-SAD04

R001 U_RDAD KV-SAD04 Synchronization


Relay area/ CH NO. Storage device
buffer memory#1 #0 DM0
V0+
I0+

1 scan CH0

COM
0-

Program execution V1+


I1+
CH1
1-
COM
V2+

Unit specific instruction CH2


I2+
2-
COM
V3+
I3+
CH3
3-

END processing COM

The data stored in relay area/buffer memory of KV-SAD04 can be read to any relay/DM of CPU unit via
unit specific instruction performed in Ladder, instead of waiting for updating of relay/DM. In addition, the
value of relays/DMs of CPU unit can be written into relay area and buffer memory of KV-SAD04.
As shown above, between CPU unit and expansion unit, although data communication can be
conducted via direct refresh of Ladder, the processing independent of scanning time fails to be
performed.
Unit specific instructions are required for direct refresh.
KV-7000 Series User's Manual "4-6 Program Configuration and Operation"
"Change Setting Value via Unit Specific Instruction", Page 2-25
"2-3 KV-SAD04 Unit Specific Instructions", Page 2-61
"2-4 KV-SAD04 Unit Specific Functions", Page 2-76

2-6 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-1 Specification & A/D conversion

 Inter-unit synchronous refresh

Control processing KV-SDA04 KV-SDA04 KV-SDA04


Fixed period
interruption
Auto refresh KV-SDA04 KV-SDA04 KV-SDA04

Synchronization
V0+ V0+ V0+
2
1 scan Synchronous refresh CH0
I0+
COM
CH0
I0+
COM
CH0
I0+
COM

KV-SAD04
NC NC NC

Program execution CH1


V1+
I1+
CH1
V1+
I1+
CH1
V1+
I1+
COM COM COM

Synchronous module NC
V2+
NC
V2+
NC
V2+

between units
I2+ I2+ I2+
CH2 CH2 CH2
COM COM COM
NC NC NC

Program execution CH3


V3+
I3+
CH3
V3+
I3+
CH3
V3+
I3+
COM COM COM

END processing NC NC NC

Each unit updates the value of the buffer memory simultaneously every inter-unit synchronous period,
and each unit I/O relays the value of the buffer memory by the inter-unit synchronous refresh, and
writes/read out to the data memory.
The data processing having held synchronism in between each unit can be executed.
" Inter-unit synchronous function", Page 2-57

Operations in the PROGRAM Mode

When CPU unit is in PROGRAM mode, KV-SAD04 can also monitor A/D conversion data/special data/
analog data, etc. In addition, special function related relays (zero drift relay/comparator relay/latch
relay/wire break detection relay) also operate.

Updating Period for A/D conversion Data

According to different number of A/D conversion channels, the updating period for A/D conversion data is
as follows.
A/D conversion data updating period= A/D conversion speed (10µs) x number of chs used

A/D conversion Table

 Conventions used in conversion table


Example  When voltage is +9.10V, A/D conversion data is 18200 (part in ).
Integer part of voltage.
Value before 2nd digit after decimal place of voltage value.
Corresponding voltage A/D conversion data.

.00 .10 .20


+10 20000 20200 20400
+9 18000 18200 18400
+8 16000 16200 16400

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-7


2-1 Specification & A/D conversion

Input range: -10 to +10 V

 I/O Characteristic
AD conversion data [digit]
25000

2 21000
20000
Without zero clip
With zero clip
KV-SAD04

15000

10000

5000
-10.
5

Input voltage [V]


-12 -10 -8 -6 -4 -2 0 2 4 6 8 10 12
10.5
-5000

-10000

-15000

-20000
-21000

-25000

 Voltage conversion Table

.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
+10 20000 20200 20400 20600 20800 21000 - - - -
+9 18000 18200 18400 18600 18800 19000 19200 19400 19600 19800
+8 16000 16200 16400 16600 16800 17000 17200 17400 17600 17800
+7 14000 14200 14400 14600 14800 15000 15200 15400 15600 15800
+6 12000 12200 12400 12600 12800 13000 13200 13400 13600 13800
+5 10000 10200 10400 10600 10800 11000 11200 11400 11600 11800
+4 8000 8200 8400 8600 8800 9000 9200 9400 9600 9800
+3 6000 6200 6400 6600 6800 7000 7200 7400 7600 7800
+2 4000 4200 4400 4600 4800 5000 5200 5400 5600 5800
+1 2000 2200 2400 2600 2800 3000 3200 3400 3600 3800
+0 0 200 400 600 800 1000 1200 1400 1600 1800
-0 0 -200 -400 -600 -800 -1000 -1200 -1400 -1600 -1800
-1 -2000 -2200 -2400 -2600 -2800 -3000 -3200 -3400 -3600 -3800
-2 -4000 -4200 -4400 -4600 -4800 -5000 -5200 -5400 -5600 -5800
-3 -6000 -6200 -6400 -6600 -6800 -7000 -7200 -7400 -7600 -7800
-4 -8000 -8200 -8400 -8600 -8800 -9000 -9200 -9400 -9600 -9800
-5 -10000 -10200 -10400 -10600 -10800 -11000 -11200 -11400 -11600 -11800
-6 -12000 -12200 -12400 -12600 -12800 -13000 -13200 -13400 -13600 -13800
-7 -14000 -14200 -14400 -14600 -14800 -15000 -15200 -15400 -15600 -15800
-8 -16000 -16200 -16400 -16600 -16800 -17000 -17200 -17400 -17600 -17800
-9 -18000 -18200 -18400 -18600 -18800 -19000 -19200 -19400 -19600 -19800
-10 -20000 -20200 -20400 -20600 -20800 -21000 - - - -

* A/D conversion data changes within the range of -21000 (-10.50V) to 21000 (+10.50V). If voltage input is outside the
range, it will be clipped at max. value 21000 (or min. value -21000).

2-8 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-1 Specification & A/D conversion

Input range: 0 to 10V

 I/O Characteristic
AD conversion data [digit]
25000
Without zero clip

21000
With zero clip
2
20000

KV-SAD04
15000

10000

5000

-0.5
Input voltage [V]
-2 0 2 4 6 8 10 12
-1000
10.5

-5000

 Voltage conversion Table

.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
+10 20000 20200 20400 20600 20800 21000 - - - -
+9 18000 18200 18400 18600 18800 19000 19200 19400 19600 19800
+8 16000 16200 16400 16600 16800 17000 17200 17400 17600 17800
+7 14000 14200 14400 14600 14800 15000 15200 15400 15600 15800
+6 12000 12200 12400 12600 12800 13000 13200 13400 13600 13800
+5 10000 10200 10400 10600 10800 11000 11200 11400 11600 11800
+4 8000 8200 8400 8600 8800 9000 9200 9400 9600 9800
+3 6000 6200 6400 6600 6800 7000 7200 7400 7600 7800
+2 4000 4200 4400 4600 4800 5000 5200 5400 5600 5800
+1 2000 2200 2400 2600 2800 3000 3200 3400 3600 3800
+0 0 200 400 600 800 1000 1200 1400 1600 1800
-0 0 -200 -400 -600 -800 -1000 - - - -

* A/D conversion data changes within the range of -1000 (-0.50V) to 21000 (+10.50V). If voltage input is outside the
range, it will be clipped at max. value 21000 (or min. value -1000).

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-9


2-1 Specification & A/D conversion

Input range: -5 to +5V

 I/O Characteristic
AD conversion data [digit]
25000

2 21000
20000
Without zero clip
With zero clip
KV-SAD04

15000

10000

5000
-5.25

Input voltage [V]


-6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6
5.25
-5000

-10000

-15000

-20000
-21000

-25000

 Voltage conversion Table

.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
+5 20000 20400 20800 - - - - - - -
+4 16000 16400 16800 17200 17600 18000 18400 18800 19200 19600
+3 12000 12400 12800 13200 13600 14000 14400 14800 15200 15600
+2 8000 8400 8800 9200 9600 10000 10400 10800 11200 11600
+1 4000 4400 4800 5200 5600 6000 6400 6800 7200 7600
+0 0 400 800 1200 1600 2000 2400 2800 3200 3600
-0 0 -400 -800 -1200 -1600 -2000 -2400 -2800 -3200 -3600
-1 -4000 -4400 -4800 -5200 -5600 -6000 -6400 -6800 -7200 -7600
-2 -8000 -8400 -8800 -9200 -9600 -10000 -10400 -10800 -11200 -11600
-3 -12000 -12400 -12800 -13200 -13600 -14000 -14400 -14800 -15200 -15600
-4 -16000 -16400 -16800 -17200 -17600 -18000 -18400 -18800 -19200 -19600
-5 -20000 -20400 -20800 - - - - - - -

* A/D conversion data changes within the range of -21000 (-5.25V) to 21000 (+5.25V). If voltage input is outside the
range, it will be clipped at max. value 21000 (or min. value -21000).

2-10 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-1 Specification & A/D conversion

Input range: 0 to 5V

 I/O Characteristic
AD conversion data [digit]
25000
Without zero clip
With zero clip

21000
20000
2

KV-SAD04
15000

10000

5000

-0.25
Input voltage [V]
-1 0 1 2 3 4 5 6
-1000
5.25

-5000

 Voltage conversion Table


.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
+5 20000 20400 20800 - - - - - - -
+4 16000 16400 16800 17200 17600 18000 18400 18800 19200 19600
+3 12000 12400 12800 13200 13600 14000 14400 14800 15200 15600
+2 8000 8400 8800 9200 9600 10000 10400 10800 11200 11600
+1 4000 4400 4800 5200 5600 6000 6400 6800 7200 7600
+0 0 400 800 1200 1600 2000 2400 2800 3200 3600
-0 0 -400 -800 - - - - - - -
* A/D conversion data changes within the range of -1000 (-0.25V) to 21000 (+5.25V). If voltage input is outside the range,
it will be clipped at max. value 21000 (or min. value -1000).

Input range: 1 to 5V

 I/O Characteristic
AD conversion data [digit]
25000
Without zero clip
With zero clip

20000

17000
16000
15000

10000

5000

-0.25
Input voltage [V]
-1 0 1 2 3 4 5 6
5.25

-5000

 Voltage conversion Table


.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
+5 16000 16400 16800 - - - - - - -
+4 12000 12400 12800 13200 13600 14000 14400 14800 15200 15600
+3 8000 8400 8800 9200 9600 10000 10400 10800 11200 11600
+2 4000 4400 4800 5200 5600 6000 6400 6800 7200 7600
+1 0 400 800 1200 1600 2000 2400 2800 3200 3600
+0 -4000 -3600 -3200 -2800 -2400 -2000 -1600 -1200 -800 -400
-0 -4000 -4400 -4800 - - - - - - -
* A/D conversion data changes within the range of -5000 (-0.25V) to 17000 (+5.25V). If voltage input is outside the range,
it will be clipped at max. value 17000 (or min. value -5000).
- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-11
2-1 Specification & A/D conversion

Input range: 0 to 30V

 I/O Characteristic
AD conversion data [digit]
25000 Without zero clip
With zero clip

2 21000
20000
KV-SAD04

15000

10000

5000

-1.5
Input voltage [V]
-5 0 5 10 15 20 25 30 35
-1000
31.5

-5000

 Voltage conversion Table

.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
+31 20667 20733 20800 20867 20933 21000 - - - -
+30 20000 20067 20133 20200 20267 20333 20400 20467 20533 20600
+29 19333 19400 19467 19533 19600 19667 19733 19800 19867 19933
+28 18667 18733 18800 18867 18933 19000 19067 19133 19200 19267
+27 18000 18067 18133 18200 18267 18333 18400 18467 18533 18600
+26 17333 17400 17467 17533 17600 17667 17733 17800 17867 17933
+25 16667 16733 16800 16867 16933 17000 17067 17133 17200 17267
+24 16000 16067 16133 16200 16267 16333 16400 16467 16533 16600
+23 15333 15400 15467 15533 15600 15667 15733 15800 15867 15933
+22 14667 14733 14800 14867 14933 15000 15067 15133 15200 15267
+21 14000 14067 14133 14200 14267 14333 14400 14467 14533 14600
+20 13333 13400 13467 13533 13600 13667 13733 13800 13867 13933
+19 12667 12733 12800 12867 12933 13000 13067 13133 13200 13267
+18 12000 12067 12133 12200 12267 12333 12400 12467 12533 12600
+17 11333 11400 11467 11533 11600 11667 11733 11800 11867 11933
+16 10667 10733 10800 10867 10933 11000 11067 11133 11200 11267
+15 10000 10067 10133 10200 10267 10333 10400 10467 10533 10600
+14 9333 9400 9467 9533 9600 9667 9733 9800 9867 9933
+13 8667 8733 8800 8867 8933 9000 9067 9133 9200 9267
+12 8000 8067 8133 8200 8267 8333 8400 8467 8533 8600
+11 7333 7400 7467 7533 7600 7667 7733 7800 7867 7933
+10 6667 6733 6800 6867 6933 7000 7067 7133 7200 7267
+9 6000 6067 6133 6200 6267 6333 6400 6467 6533 6600
+8 5333 5400 5467 5533 5600 5667 5733 5800 5867 5933
+7 4667 4733 4800 4867 4933 5000 5067 5133 5200 5267
+6 4000 4067 4133 4200 4267 4333 4400 4467 4533 4600
+5 3333 3400 3467 3533 3600 3667 3733 3800 3867 3933
+4 2667 2733 2800 2867 2933 3000 3067 3133 3200 3267
+3 2000 2067 2133 2200 2267 2333 2400 2467 2533 2600
+2 1333 1400 1467 1533 1600 1667 1733 1800 1867 1933
+1 667 733 800 867 933 1000 1067 1133 1200 1267
+0 0 67 133 200 267 333 400 467 533 600
-0 0 -67 -133 -200 -267 -333 -400 -467 -533 -600
-1 -667 -733 -800 -867 -933 -1000 - - - -

* A/D conversion data changes within the range of -1000 (-1.50V) to 21000 (+31.50V). If voltage input is outside the
range, it will be clipped at max. value 21000 (or min. value -1000).

2-12 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-1 Specification & A/D conversion

Input range: 0 to 20mA

 I/O Characteristic
AD conversion data [digit]
25000 Without zero clip
With zero clip

21000
20000 2

KV-SAD04
15000

10000

5000

-1
Input current [mA]
-2 0 2 4 6 8 10 12 14 16 18 20 22
-1000
21

-5000

 Current conversion Table

.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
21 21000 - - - - - - - - -
20 20000 20100 20200 20300 20400 20500 20600 20700 20800 20900
19 19000 19100 19200 19300 19400 19500 19600 19700 19800 19900
18 18000 18100 18200 18300 18400 18500 18600 18700 18800 18900
17 17000 17100 17200 17300 17400 17500 17600 17700 17800 17900
16 16000 16100 16200 16300 16400 16500 16600 16700 16800 16900
15 15000 15100 15200 15300 15400 15500 15600 15700 15800 15900
14 14000 14100 14200 14300 14400 14500 14600 14700 14800 14900
13 13000 13100 13200 13300 13400 13500 13600 13700 13800 13900
12 12000 12100 12200 12300 12400 12500 12600 12700 12800 12900
11 11000 11100 11200 11300 11400 11500 11600 11700 11800 11900
10 10000 10100 10200 10300 10400 10500 10600 10700 10800 10900
9 9000 9100 9200 9300 9400 9500 9600 9700 9800 9900
8 8000 8100 8200 8300 8400 8500 8600 8700 8800 8900
7 7000 7100 7200 7300 7400 7500 7600 7700 7800 7900
6 6000 6100 6200 6300 6400 6500 6600 6700 6800 6900
5 5000 5100 5200 5300 5400 5500 5600 5700 5800 5900
4 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900
3 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900
2 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900
1 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900
0 0 100 200 300 400 500 600 700 800 900
-0 0 -100 -200 -300 -400 -500 -600 -700 -800 -900
-1 -1000 - - - - - - - - -

* A/D conversion data changes within the range of -1000 (-1.00mA) to 21000 (21.00mA). If current input is outside the
range, it will be clipped at max. value 21000 (or min. value -1000).

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-13


2-1 Specification & A/D conversion

Input range: 4 to 20mA

 I/O Characteristic
AD conversion data [digit]
25000

2 20000
Without zero clip
With zero clip

17000
KV-SAD04

16000
15000

10000

5000

-1

Input current [mA]


-2 0 2 4 6 8 10 12 14 16 18 20 22
21

-5000

 Current conversion Table

.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
21 17000 - - - - - - - - -
20 16000 16100 16200 16300 16400 16500 16600 16700 16800 16900
19 15000 15100 15200 15300 15400 15500 15600 15700 15800 15900
18 14000 14100 14200 14300 14400 14500 14600 14700 14800 14900
17 13000 13100 13200 13300 13400 13500 13600 13700 13800 13900
16 12000 12100 12200 12300 12400 12500 12600 12700 12800 12900
15 11000 11100 11200 11300 11400 11500 11600 11700 11800 11900
14 10000 10100 10200 10300 10400 10500 10600 10700 10800 10900
13 9000 9100 9200 9300 9400 9500 9600 9700 9800 9900
12 8000 8100 8200 8300 8400 8500 8600 8700 8800 8900
11 7000 7100 7200 7300 7400 7500 7600 7700 7800 7900
10 6000 6100 6200 6300 6400 6500 6600 6700 6800 6900
9 5000 5100 5200 5300 5400 5500 5600 5700 5800 5900
8 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900
7 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900
6 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900
5 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900
4 0 100 200 300 400 500 600 700 800 900
3 -1000 -900 -800 -700 -600 -500 -400 -300 -200 -100
2 -2000 -1900 -1800 -1700 -1600 -1500 -1400 -1300 -1200 -1100
1 -3000 -2900 -2800 -2700 -2600 -2500 -2400 -2300 -2200 -2100
0 -4000 -3900 -3800 -3700 -3600 -3500 -3400 -3300 -3200 -3100
-0 -4000 -4100 -4200 -4300 -4400 -4500 -4600 -4700 -4800 -4900
-1 -5000 - - - - - - - - -

* A/D conversion data changes within the range of -5000 (-1.00mA) to 17000 (21.00mA). If current input is outside the
range, it will be clipped at max. value 17000 (or min. value -5000).

2-14 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions
This section describes KV-SAD04 functions and setting methods.

List of Setting Items on Unit Editor

KV-SAD04 is also set using Unit Editor.


Every function setting item and default as follows. 2

KV-SAD04
Change Ladder
Function Setting Item Setting Value See
Setting
Common Leading DM No. Need set No
Page 2-28
setting Leading relay No. Need set No
Disable Default
Channel skip Channel skip No Page 2-29
Enable
Inter-unit synchronization Not used Default
No
Inter-unit function Used
synchronization Inter-unit synchronization Page 2-57
function Refresh timing Default No
Batch <END processing>
-10 to +10V Default
0 to 10V
-5 to +5V
0 to 5V
Input range Input range No Page 2-29
0 to 20mA
1 to 5V
4 to 20mA
0 to 30V
Disabled Default
Scaling No
Enabled
Unit Editor selection Default
Scaling selection No
DM selection
Scaling Page 2-31
-32000 to 32000
Scaling upper limit Yes
( Default 32000)
-32000 to 32000
Scaling lower limit Yes
( Default -32000)
Not used Default
Simple average (count selection)
Averaging No
Simple average (time selection)
Moving average
Averaging Unit Editor selection Default Page 2-32
Average constants selection No
DM selection
Simple averaging count 2 to 60000( Default 2) Yes
Simple averaging time (ms) 1 to 1500( Default 1) Yes
Moving average count 2 to 2048( Default 2) Yes
Disabled Default
Comparator No
Enabled
Unit Editor selection Default
Comparator value selection No
DM selection
Comparator upper limit -32000 to +32000
Yes
ON level*1 ( Default 32000)
Comparator Page 2-42
Comparator upper limit -32000 to +32000
Yes
OFF level*1 ( Default 32000)
Comparator lower limit -32000 to +32000
Yes
OFF level*2 ( Default -32000)
Comparator lower limit -32000 to +32000
Yes
ON level*2 ( Default -32000)
- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-15
2-2 Settings & Various Functions

Change Ladder
Function Setting Item Setting Value See
Setting
Disabled
Zero Clip Zero Clip No Page 2-30
Enabled Default
Wire break Disabled Default
Wire break detection*3 No Page 2-45
detection Enabled
2 *1 It fails to be set when comparator upper limit ON level < comparator upper limit OFF level.
*2 It fails to be set when comparator lower limit OFF level < comparator lower limit ON level.
KV-SAD04

*3 Can only be used when the input range is "1 to 5 V" and "4 to 20 mA".

 What is Unit Editor


Unit Editor is software included in Ladder Support Software KV STUDIO. It is used for configuring PLC
units or setting up KV-SAD04 functions. This setting is always necessary when using KV-SAD04 the
first time. For details on how to start and operate Unit Editor, see "KV STUDIO User's Manual".

 How to Set up with Unit Editor


To describe the procedures to set KV-SAD04 using the Unit Editor.

1 Start KV STUDIO (Ver.8 or later), and start Unit Editor.


Select from menu "Tool(T)" -> "Unit Editor".

Other procedure

• Click button.

For details, see KV STUDIO User's Manual.

2 Select the unit to be connected from "Select unit(1)" tab, and drag it to the CPU unit.

2-16 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

3 Set the details of the KV-SAD04 on the unit configuration area.


Select "KV-SAD04" and double-click.
The "KV-SAD04" setting is displayed in the
"Unit Setup" window.

Other procedure
2

KV-SAD04
• Press key
• Select "View" -> "Display unit setting".

4 Click the item whose setting is to be changed, and enter the


new set value.
• When entering from textbox, display textbox, enter the value.
• When entering from dropdown menu, display dropdown
menu, select items.

5 Press key.
Confirm the settings.

6 Set the details of all connected units following the procedures in steps 3 to 5.

7 Select File(F) -> Close(O) from the menu. This saves the system you have created, and returns
to the Editor.

Other procedure

• Click button.
• Click button.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-17


2-2 Settings & Various Functions

List of Available Devices

List of relays and DMs (Data Memory) occupied by KV-SAD04.

Do not write values in devices with the name "Reserved for system". PLC may
2 Point
result in malfunction.
KV-SAD04

 Number of occupied devices


The number of relays and DMs used in KV-SAD04 as follows.
Relay : 96 points (6ch)
Data Memory : 60 words

List of Data Memories

Names and contents of DMs occupied by KV-SAD04 as follows.


( N : Leading DM No)

 Normal read area


KV-SAD04 stores data in this area with every refresh.
Data cannot be written into this area using Ladder.

Ch DM No. Name See


N + 000 A/D conversion data
N + 001 Special data Page 2-19
CH0 N + 002 Analog data
N + 003 Peak value
Page 2-40
N + 004 Bottom Value
N + 005 A/D conversion data
N + 006 Special data Page 2-19
CH1 N + 007 Analog data
N + 008 Peak value
Page 2-40
N + 009 Bottom Value
N + 010 A/D conversion data
N + 011 Special data Page 2-19
CH2 N + 012 Analog data
N + 013 Peak value
Page 2-40
N + 014 Bottom Value
N + 015 A/D conversion data
N + 016 Special data Page 2-19
CH3 N + 017 Analog data
N + 018 Peak value
Page 2-40
N + 019 Bottom Value
Common N + 020 Error code Page A-4

2-18 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

 A/D conversion data


The value obtained in A/D conversion of input signal to "-21000 to 21000", "-1000 to 21000", "-5000 to
17000" is stored as A/D conversion data.
"A/D conversion Table", Page 2-7

A/D conversion data will be stored in the following DMs. 2


Channel No. CH0 CH1 CH2 CH3

KV-SAD04
DM No. N + 000 N + 005 N + 010 N + 015

N : Leading DM No.

 Special data
The value, processed via zero Clip, scaling function, special data offset function, averaging function or
zero drift function, will be stored as special data. If any function is not set, the value identical to A/D
conversion data will be stored.
When multiple functions are set, the values processed by all functions are stored.
"Zero Clip Function", Page 2-30
"Scaling Function", Page 2-31
"Special Data Offset Function", Page 2-36
"Averaging Function", Page 2-32
"Zero Drift Function", Page 2-38

Special data will be stored in the following DMs.

Channel No. CH0 CH1 CH2 CH3


DM No. N + 001 N + 006 N + 011 N + 016

N : Leading DM No.

 Analog data
Voltage/current value converted from A/D conversion will be stored as analog data.
Analog data can be obtained using the following formula:

Analog data = A/D conversion data x resolution

Unit: [1mV] for voltage input; [1µA] for current input.


Values less than "1mV/µA" is rejected.

Units displayed in Access Window or Unit Monitor: "V" for voltage, "mA" for current.

Analog data will be stored in the following DMs.

Channel No. CH0 CH1 CH2 CH3


DM No. N + 002 N + 007 N + 012 N + 017

N : Leading DM No.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-19


2-2 Settings & Various Functions

 Constant write area


Data can be written into this area using Ladder.
The written values are automatically applied to KV-SAD04 with every refresh.

CH DM No. Name See


CH0 N + 021
2 CH1
CH2
N

N
+ 022
+ 023
Special data offset value Page 2-36
KV-SAD04

CH3 N + 024

 Setting value communication area


Data can be written into this area using Ladder.
But, the area can be used only when "DM selection" is set in unit setting for each item.
It can not be used if set to "Unit Editor selection ".
Also, the value written to this area is acquired by KV-SAD04 when power is turned on, when the CPU
unit switches from the PROGRAM mode to the RUN mode, or when a ladder program changes the
setting update request relay ( n +001) from OFF to ON.

CH DM No. Name See


N + 025 Scaling upper limit
Page 2-31
N + 026 Scaling lower limit
N + 027 Averaging constants Page 2-32
CH0 N + 028 Comparator upper limit ON level
N + 029 Comparator upper limit OFF level
Page 2-42
N + 030 Comparator lower limit OFF level
N + 031 Comparator lower limit ON level
N + 032 Scaling upper limit
Page 2-31
N + 033 Scaling lower limit
N + 034 Averaging constants Page 2-32
CH1 N + 035 Comparator upper limit ON level
N + 036 Comparator upper limit OFF level
Page 2-42
N + 037 Comparator lower limit OFF level
N + 038 Comparator lower limit ON level
N + 039 Scaling upper limit
Page 2-31
N + 040 Scaling lower limit
N + 041 Averaging constants Page 2-32
CH2 N + 042 Comparator upper limit ON level
N + 043 Comparator upper limit OFF level
Page 2-42
N + 044 Comparator lower limit OFF level
N + 045 Comparator lower limit ON level
N + 046 Scaling upper limit
Page 2-31
N + 047 Scaling lower limit
N + 048 Averaging constants Page 2-32
CH3 N + 049 Comparator upper limit ON level
N + 050 Comparator upper limit OFF level
Page 2-42
N + 051 Comparator lower limit OFF level
N + 052 Comparator lower limit ON level
N + 053
Common to Reserved for system -
N + 059

2-20 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

List of Relays

The following describes the names and description of relays occupied by KV-SAD04.
( n : Leading relay No)

CH Relay No. Name See


n + 000 Reserved for system - 2
n + 001 Setting update request Page 2-23

KV-SAD04
n + 002
Common
to Reserved for system -
n + 014
n + 015 Error clear Page A-4
n + 100 Zero drift Page 2-38
n + 101 Hold Page 2-40
n + 102 Wire break alarm clear Page 2-45
CH0 n + 103 Comparator reset Page 2-42
n + 104
to Reserved for system -
n + 107
n + 108 Zero drift Page 2-38
n + 109 Hold Page 2-40
n + 110 Wire break alarm clear Page 2-45
CH1 n + 111 Comparator reset Page 2-42
n + 112
to Reserved for system -
n + 115
n + 200 Zero drift Page 2-38
n + 201 Hold Page 2-40
n + 202 Wire break alarm clear Page 2-45
CH2 n + 203 Comparator reset Page 2-42
n + 204
to Reserved for system -
n + 207
n + 208 Zero drift Page 2-38
n + 209 Hold Page 2-40
n + 210 Wire break alarm clear Page 2-40
CH3 n + 211 Comparator reset Page 2-42
n + 212
to Reserved for system -
n + 215
n + 300 A/D conversion in progress -
n + 301 Setting update complete Page 2-23
n + 302
Common
to Reserved for system -
n + 314
n + 315 Error relay Page A-4

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-21


2-2 Settings & Various Functions

CH Relay No. Name See


n + 400 Zero drift in progress Page 2-38
n + 401 Holding Page 2-40
n + 402 Wire break detection Page 2-45
n + 403 Comparator upper limit
Page 2-42
2 CH0
n
n
+ 404
+ 405
Comparator lower limit

to Reserved for system -


KV-SAD04

n + 406
Page 2-29,
n + 407 Special data valid
Page 2-32
n + 408 Zero drift in progress Page 2-38
n + 409 Holding Page 2-40
n + 410 Wire break detection Page 2-45
n + 411 Comparator upper limit
Page 2-42
n + 412 Comparator lower limit
CH1 n + 413
to Reserved for system -
n + 414
Page 2-29,
n + 415 Special data valid
Page 2-32
n + 500 Zero drift in progress Page 2-38
n + 501 Holding Page 2-40
n + 502 Wire break detection Page 2-45
n + 503 Comparator upper limit
Page 2-42
n + 504 Comparator lower limit
CH2 n + 505
to Reserved for system -
n + 506
Page 2-29,
n + 507 Special data valid
Page 2-32
n + 508 Zero drift in progress Page 2-38
n + 509 Holding Page 2-40
n + 510 Wire break detection Page 2-45
n + 511 Comparator upper limit
Page 2-42
n + 512 Comparator lower limit
CH3 n + 513
to Reserved for system -
n + 514
Page 2-29,
n + 515 Special data valid
Page 2-32

2-22 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

Changing Setting Value via Ladder

The following describes how to change setting value of every function via Ladder.

Change setting value by DM selection 2


It describes how to change the setting value by DM selection.

KV-SAD04
 About DM selection of setting value

In "Unit setup" of Unit Editor, set corresponding selection method to "DM selection".
The items and setting value range assignable in DM as follows.

Function Setting Item Setting Value See


Scaling upper limit -32000 to 32000
Scaling Page 2-31
Scaling lower limit -32000 to 32000
Simple averaging count 2 to 60000
Averaging Simple averaging time (ms) 1 to 1500 Page 2-32
Moving average count 2 to 2048
Comparator upper limit
-32000 to 32000
ON level*1
Comparator upper limit
-32000 to 32000
OFF level*1
Comparator Page 2-42
Comparator lower limit
-32000 to 32000
OFF level*2
Comparator lower limit
-32000 to 32000
ON level*2

*1 It fails to be set when comparator upper limit ON level < comparator upper limit OFF level.
*2 It fails to be set when comparator lower limit OFF level < comparator lower limit ON level.

 Setting value updating timing during DM selection


KV-SAD04 can read and update the DM value of the item specified by DM in the following period:
(1) When powering ON
(2) When the CPU unit switches from the PROGRAM mode to the RUN mode
(3) When CH0 setting update request relay ( n +001) is changed from OFF to ON

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-23


2-2 Settings & Various Functions

• The item specified by DM can be updated during the period mentioned above.
Point
Only a part of setting items fails to be updated.
• For the item not specified by DM (i.e. specified via Unit Editor), its setting value
set with Unit Editor will be remained and not updated, even if the value is stored
in DM of corresponding setting value communication area.
2 • If DM value exceeds setting range, KV-SAD04 will fail and A/D conversion is not
performed (In this case, error relay ( n +315) will be ON). To clear unit error, DM
KV-SAD04

value must be changed to the range of set value, and any one of above (1) to (3)
must be performed for A/D conversion.

 Details on updating setting value via setting update request relay


(1) (5) (7)
Setting value DM Value within setting range Value out of setting range Value within setting range

(1) (3) (5) (7)


Setting update
request relay
( +001)

(2) (4)
Setting update
completion relay
( +301)

(6) (8)

Error relay
( +315)

(7)

Error clear relay


( +015)
(1) Ladder Save the setting value to be updated into DM of the item specified by DM, then set
setting update request relay to ON (even if within same scanning period).
(2) KV-SAD04 After completing KV-SAD04 setting update, setting update complete relay is ON.
(3) Ladder Turn OFF setting update request relay .
(4) KV-SAD04 Turn OFF setting update completion relay.
(5) Ladder Save the value exceeding range of set value, then turn ON the setting update
request relay.
(6) KV-SAD04 Error relay is ON (setting update completion relay is not ON).
Meanwhile, error code is stored in DM ( N +020).
(7) Ladder Save the value within the range of set value, after setting updating, set the error
clear relay to ON.
(8) KV-SAD04 Turn the error relay to OFF.

2-24 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

Change Setting Value via Unit Specific Instruction

The method of changing setting value via unit specific instruction.

 Unit specific instructions for changing setting value


Setting value can be changed via Ladder by executing unit specific instructions, writing the setting
value into buffer memory of KV-SAD04, setting the setting update request relay to ON. 2

KV-SAD04
The setting items changeable with unit specific instructions and the range of setting values as follows.

Unit specific
Function Setting item Setting value See
instruction
Special data
Special data offset value -32768 to 32767 U_WROFST Page 2-36
offset value
Scaling upper limit -32000 to 32000
Scaling U_WRSCL Page 2-31
Scaling lower limit -32000 to 32000
Simple averaging count 2 to 60000
Averaging Simple averaging time (ms) 1 to 1500 U_WRAVG Page 2-32
Moving average count 2 to 2048
Comparator upper limit 
-32000 to 32000
ON level*1
Comparator upper limit
-32000 to 32000
OFF level*1
Comparator U_WRLMT Page 2-42
Comparator lower limit
-32000 to 32000
OFF level*2
Comparator lower limit 
-32000 to 32000
ON level*2

*1 It fails to be set when comparator upper limit ON level < comparator upper limit OFF level.
*2 It fails to be set when comparator lower limit OFF level < comparator lower limit ON level.

To change special data offset value, it is not necessary to set the setting update
Point
request relay to ON after executing unit specific instructions.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-25


2-2 Settings & Various Functions

 Details on setting value updating via unit specific instructions


(1) (5) (7)
KV-SAD04
Value within setting range Value out of setting range Value within setting range
buffer memory

2 Setting update
(1) (3) (5) (7)

request relay
KV-SAD04

( +001)

(2) (4)
Setting update
complete relay
( +301)

(6) (8)

Error relay
( +315)

(7)

Error clear relay


( +015)

(1) Ladder Execute unit specific instruction, write the setting value to buffer memory of
KV-SAD04. Setting update request relay is also ON.
(2) KV-SAD04 After completing setting update, setting update complete relay is ON.
(3) Ladder Turn OFF setting update request relay.
(4) KV-SAD04 Turn OFF setting update completion relay.
(5) Ladder Save the value exceeding range of set value in Ladder, then turn ON the setting
update request relay.
(6) KV-SAD04 Error relay is ON (setting update completion relay is not ON). 
Meanwhile, error code is stored in DM ( N +020).
(7) Ladder Stores value within the setting range, after the setting is updated, set the error clear
relay to ON.
(8) KV-SAD04 Turn the error relay to OFF.

If using direct I/O "DR" to scan every relay, setting value can be changed within
Point
one scanning.

2-26 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

KV-SAD04 Function Block Diagram

KV-SAD04 function processing sequence as follows.

A/D conversion 2

KV-SAD04
Analog data operation

Analog data A/D conversion data Zero clipper Wire break detection

Wire break
Averaging
detection relay

Scaling

Special data offset

Zero drift

Peak/Bottom hold Special data Comparator

Peak value Comparator upper limit relay


Bottom value Comparator lower limit relay

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-27


2-2 Settings & Various Functions

Setting the Leading Device

2
KV-SAD04

„ Leading DM No.
Sets the leading No. of the data memories occupied by KV-SAD04.
Data memories of 60 words are occupied by KV-SAD04.
The settable leading No. is as follows.
KV-7500/7300 : DM00000 to DM65474
"List of Available Devices", Page 2-18

„ Leading relay No.


Sets the leading channel of the relay occupied by KV-SAD04.
KV-SAD04 occupies 96 (6 channel) relays.
The settable leading No. is as follows.
KV-7500/7300 : 000(R000) to 1994(R199400)
"List of Available Devices", Page 2-18
* The range becomes 000 to 994 when connected to a KV-7500/7300 whose CPU function version is
2.2 or earlier.

2-28 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

Channel Skip Function

KV-SAD04
Channel skip function can be set to "enabled" or "disabled".
A/D conversion is performed in case of no channel skip, A/D conversion is not performed in case of
channel skip.
0 is stored in the A/D conversion data, special data and analog data of the skipped channel, and the
special data valid relay turns OFF. It is possible to check from a ladder program if channels have been
skipped, by seeing whether the special data valid relay for each channel is ON or OFF.
The special data valid relay is assigned as follows.
Channel No. CH0 CH1 CH2 CH3
Special data valid relay n + 407 n + 415 n + 507 n + 515
n : Leading relay No.

• Stores 0 to skipped channel's A/D conversion data, special data, and analog
Point
data. The special data valid relay is turned OFF when power is turned on, when
the PROGRAM mode switches to the RUN mode, or when the setting is
updated. Data that is written by mistake may remain.
• The special data valid relay also turns OFF until the first averaging is complete
when the averaging function is used.
"Averaging Function", Page 2-32

A/D conversion data updating time according to the number of channels on which A/D conversion is
performed is as follows.
Updating period for A/D conversion data = A/D conversion speed (10µs) x number of CHs used

Setup Input Range

Range can be switched according to the level of analog signal input.


Input range can be set as per every channel. Optional input range as follows.
Input signal Range
-10 to +10V Default
0 to 10V
-5 to +5V
Voltage
0 to 5V
1 to 5V
0 to 30V
0 to 20mA
Current
4 to 20mA

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-29


2-2 Settings & Various Functions

Zero Clip Function

2
KV-SAD04

KV-SAD04 A/D conversion data will be stored into Data Memory in form of signed 16-bit DEC. For
example, if input range is set to 0 to 10V, analog quantity input voltage 0 to 10V is converted to
numerical value 0 to 20000. If input voltage is less than 0V, it will be stored as negative (-) value. In this
case, zero Clip can limit the numerical value to "0", and stored as special data in KV-SAD04. In
addition, if zero Clip is not used, numerical value exceeding 20000 will be stored when 10V above
voltage is input. If zero Clip is used, the value will be restricted to the "20000" range.

Input range and max. input range of analog input signal, numerical value stored in special data DM as
follows.

Numerical value stored in special data DM


Input Range Max. Input Range
Zero Clip : "Not used" Zero Clip : "Used"
-10 to +10V -10.5 to +10.5V -21000 to +21000 -20000 to +20000
0 to 10V -0.5 to +10.5V -1000 to +21000 0 to 20000
-5V to +5V -5.25 to +5.25V -21000 to +21000 -20000 to +20000
0 to 5V -0.25 to +5.25V -1000 to +21000 0 to 20000
1 to 5V -0.25 to +5.25V -5000 to +17000 0 to 16000
0 to 30V -1.5 to +31.5V -1000 to +21000 0 to 20000
0 to 20mA -1 to +21mA -1000 to +21000 0 to 20000
4 to 20mA -1 to +21mA -5000 to +17000 0 to 16000

"A/D conversion Table", Page 2-7

• zero Clip function is valid only for special data. Even if the zero Clip function is
Point
set to "Enabled", zero Clip function cannot be performed for A/D conversion
data and analog data.
• Even if the zero Clip is set to "Enabled", once scaling function, special data
offset function and zero drift function are used, negative (-) value will be stored
into special data DM due to input voltage (current).

2-30 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

Scaling Function

KV-SAD04
Scaling function is designed to convert (scale) A/D conversion data to the range of upper/lower limit.
The scaled value is stored to Data Memory of "special data". The value corresponding to upper limit
value "20000" ("16000" when input range is 1 to 5V or 4 to 20mA) is set in scaling upper limit; and the
value corresponding to lower limit value "0" ("-20000" for -10 to +10V, -5 to +5V) of A/D conversion data
is set in scaling lower limit value.
Scaling upper/lower limit can be set within the range of -32000 to +32000.
The scaling upper/lower limit can be also specified via Data Memory of setting value communication
area or specific instruction / function "U_WRSCL" other than direct selection via the Unit Editor.
"Change setting value by DM selection", Page 2-23
"Change Setting Value via Unit Specific Instruction", Page 2-25
"Unit specific instruction U_WRSCL", Page 2-68
"Unit specific function U_WRSCL", Page 2-80

Reference Scaling function uses the following formula to convert A/D data.

When the input range is 0 to 10V, 0 to 5V, 0 to 30V or 0 to 20mA


Scaling value=A/D conversion data x (scaling upper limit-scaling lower limit value)/
20000+ scaling lower limit value

When input range is 1 to 5V or 4 to 20mA


Scaling value=A/D conversion data x (scaling upper limit-scaling lower limit value)/
16000+ scaling lower limit value

When input range is -10 to +10V or -5 to +5V


Scaling value=A/D conversion data x (scaling upper limit-scaling lower limit value)/
40000+ (scaling upper limit value + scaling lower limit value)/2

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-31


2-2 Settings & Various Functions

Example When the input range "1 to 5V", A/D conversion data "0 to 16000" is scaled to "1000 to 5000".
Input range 1 to 5V
A/D conversion data 0 to 16000
Scaling limit 1000 to 5000

Value

2 Upper limit -> 5000


KV-SAD04

Lower limit -> 1000 Input voltage


1 2 3 4 5 (V)

Input signal A/D conversion data Value


1V 0 1000
2V 4000 2000
3V 8000 3000
4V 12000 4000
5V 16000 5000

Averaging Function

 Averaging function

With averaging function, A/D conversion data can be averaged internally and stored to special data DM
to reduce the fluctuation influence of input signal due to noise, etc. The averaging and averaging
constants selection method as well as averaging constants required when the averaging constants
selection is set to "Unit Editor selection".

Averaging Description
Averaging is not performed. A/D conversion data will be stored to special data
Disabled (default)
DM during every A/D conversion.
Averaging (count Perform simple averaging according to the specified A/D conversion times of
selection) averaging and save the result into special data DM.
Perform simple averaging according to the specified time interval of averaging
Averaging (time selection)
and save the result into special data DM.
Moving averaging according to specified A/D conversion times, the result stored
Moving average
into special data DM.

Averaging function shall be performed according to the processed result of zero Clip.
The special data valid relay turns OFF while the first averaging is being performed. During this time,
data after A/D conversion (that has not been averaged) is stored in special data. When the first

2-32 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

averaging is complete, the special data valid relay turns ON. It is possible to check from a ladder
program whether the special data has been averaged, by seeing whether the special data valid relay is
ON or OFF.

• The special data valid relay is OFF and averaging is performed from the first
Point
time when power is turned on, when the PROGRAM mode switches to the RUN
mode, or when the setting is updated. 2
• The special data valid relay also turns OFF when a channel is being skipped.

KV-SAD04
"Channel Skip Function", Page 2-29

The special data valid relay is assigned as follows.

Channel No. CH0 CH1 CH2 CH3


Special data valid relay n + 407 n + 415 n + 507 n + 515
n : Leading relay No.

 Averaging (count selection)


To perform simple averaging according to the specified A/D conversion times for averaging and save
the result into special data DM. It shall be stored after averaging is complete every time. In addition, the
averaged result with decimal point after rounded up will be stored into special data DM.

Specified averaging Using unit specific


Setting value DM selection
constants instruction/function
Simple averaging count 2 to 60000 (default : 2) ○ ○

• Before completing the first averaging, the data after A/D conversion (without
Point
averaging) is stored in special data DM.
• Before the first averaging completed, peak/Bottom hold function and comparator
function fail to be operated.
• When the first averaging is complete, the special data valid relay turns ON.

 The number of averaging and special data updating period


special data updating period when using averaging (count selection) is calculated according to the
following formula.
Updating period for special data =number of averaging (count selection) x Updating
period for A/D conversion data
For A/D conversion data updating period, see "Updating Period for A/D conversion Data", Page 2-7.

Example Operation when number of averaging is set to 5 times


A/D conversion data
A/D conversion start updating period

A/D conversion data D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11

Special data D1 AVG1 AVG2

ON
Special data valid
OFF
AVG1=(D1+D2+D3+D4+D5)/5
AVG2=(D6+D7+D8+D9+D10)/5

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-33


2-2 Settings & Various Functions

 Averaging (time selection)


To perform simple averaging according to the specified time interval for averaging and save the result into
special data DM. It shall be stored after averaging is completed every time. In addition, the averaged
result with decimal point after rounded up will be stored into special data DM.

Specified averaging Using unit specific


2 constants
Setting value DM selection
instruction/function
Simple averaging time (ms) 1 to 1500 (default : 1) ○ ○
KV-SAD04

• Before completion of the first averaging, the data after A/D conversion (without
Point
averaging) is stored in special data DM.
• Before the first averaging completed, peak/Bottom hold function and
comparator function fail to be operated.
• When the first averaging is complete, the special data valid relay turns ON.

 Averaging time and number of data to be A/D converted


The number of A/D conversion data for averaging (time selection) is calculated according to the
following formula.
Number of A/D conversion data = averaging time÷Updating period for A/D conversion data
For A/D conversion data updating period, see "Updating Period for A/D conversion Data", Page 2-7

Example Operation when 4 channels are used, and the averaging time is set to 10 ms
Number of A/D conversion data = 10ms÷40µs = 250
A/D conversion data
A/D conversion start updating period

A/D conversion data D1 D2 ・


・・ D249 D250 D251 D252 ・
・・ D499 D500 D501

Special data D1 AVG1 AVG2

ON
Special data valid
OFF
AVG1= (D1+D2+···+D249+D250)/250
AVG2= (D251+D252+···+D499+D500)/250

 Moving average
To perform moving averaging according to specified A/D conversion times, the result stored into special
data. The averaged result with decimal point after rounded up will be stored into special data.

Specified averaging Using unit specific


Setting value DM selection
constants instruction/function
Moving average count 2 to 2048 (default : 2) ○ ○

• Before completion of the first averaging, the data after A/D conversion (without
Point
averaging) is stored in special data DM.
• Before the first averaging completed, peak/Bottom hold function and
comparator function fail to be operated.
• When the first averaging is complete, the special data valid relay turns ON.

2-34 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

Example Operation when number of moving averages is set to 5 times


A/D conversion data
A/D conversion start updating period

A/D conversion data D1 D2 D3 D4 D5 D6 D7 D8 D9 D10

KV-SAD04
Special data D1 AVG1 AVG2 AVG3 AVG4 AVG5 AVG6

ON
Special data valid
OFF
AVG1=(D1+D2+D3+D4+D5)/5
AVG2=(D2+D3+D4+D5+D6)/5
AVG3=(D3+D4+D5+D6+D7)/5
AVG4=(D4+D5+D6+D7+D8)/5
AVG5=(D5+D6+D7+D8+D9)/5
AVG6=(D6+D7+D8+D9+D10)/5

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-35


2-2 Settings & Various Functions

Special Data Offset Function

 What is special data offset function


With special data offset function, KV-SAD04 special data can be saved after adding a special data

2 offset value stored in normal communication area.

Value stored in special data DM= KV-SAD04 internal data + special data offset value
KV-SAD04

The function is used to correct special data using DM value.


Special data offset function can be conducted separately on every channel.
Special data offset value is assigned to the following DMs.

CH No. CH0 CH1 CH2 CH3


DM No. N + 021 N + 022 N + 023 N + 024
N : Leading DM No.

Special data offset value is processed as signed 16 bit data. So, it can be set within -32768 to 32767.
The DM value of the special data offset value is automatically applied to KV-SAD04 with every refresh.
So, it is not necessary to operate relay via Ladder.
When using special data offset function, special data changes within signed 16 bit range (-32768 to
32767) (not within input range). The special data, exceeding signed 16 bit data range due to the added
special data offset value, will be limited to lower limit (-32768) or upper limit (32767).
Special data offset function can be available for results processed by zero Clip, averaging function and
scaling function.
"Zero Clip Function", Page 2-30
"Scaling Function", Page 2-31
"Averaging Function", Page 2-32

Special data offset value can also be changed using unit specific instruction/function "U_WROFST ".
"Unit specific instruction U_WRSCL", Page 2-66
"Unit specific function U_WRSCL", Page 2-79

KV-SAD04 reads always DM of special data offset value. Special data offset
Point
function can not be disabled. So, please note that once the value other than "0" is
stored to the special data offset value, special data is offset and shall be noted. If
special data is not offset, "0" shall be stored to special data offset value.

2-36 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

 Details on special data offset function


Example 1 When input range is set to "-10 to +10V" (scaling: "disabled")

A/D conversion Special data offset


Input voltage Special data Graph
data value
0 -20000 to +20000 (1)

-10 to +10V -20000 to +20000


5000
20000
-15000 to +25000
0 to 32767
-
(2)
2
-5000 -25000 to +15000 -

KV-SAD04
-20000 -32768 to 0 (3)

Special data

32767 (2)

20000 (1)

10000
(3)
Input voltage
-10 -5 0 +5 +10
(V)
-10000

-20000

-32768

Example 2 When input range is set to "1 to 5V" (scaling: "disabled")

A/D conversion Special data


Input voltage Special data Graph
data offset value
0 0 to 16000 (1)
5000 5000 to 21000 -
1 to 5V 0 to 16000 20000 20000 to 32767 (2)
-5000 -5000 to +11000 -
-20000 -20000 to -4000 (3)

Special data

(2)
32767

20000

(1)
10000

Input voltage(V)
0 +1 +5
(3)
-10000

-20000

-32768

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-37


2-2 Settings & Various Functions

Zero Drift Function

 What is zero drift function


With zero drift function, special data of KV-SAD04 to "0" when zero drift relay is 0FF to ON. When zero

2 drift relay is turned from OFF to ON, KV-SAD04 can store the special data as a zero drift reference
value and when zero drift relay is ON (zero drift in progress relay changes to ON via KV-SAD04), store
the result obtained by subtracting the reference value from the special data.
KV-SAD04

Value stored in special data DM = KV-SAD04 internal data - zero drift reference value

After zero drift relay is turned from ON to OFF (zero drift relay ON to OFF via KV-SAD04), special data
will become KV-SAD04 internal data, and zero drift reference value will be lost.
With zero drift function, special data can be corrected at any time.
Special data offset function can be conducted separately on every channel.

Zero drift relay and zero drift in progress relay assigned as follows:

Channel No. CH0 CH1 CH2 CH3


Zero drift relay n + 100 n + 108 n + 200 n + 208
Zero drift in progress relay n + 400 n + 408 n + 500 n + 508
n : Leading relay No.

When using zero drift function, special data changes within signed. 16-bit range (-32768 to 32767) (not
within input range). The special data, exceeding signed 16-bit data range due to the zero drift function
used, will be limited to lower limit (- 32768) or upper limit (32767).
Zero drift function can be avalable for results processed by zero Clip, averaging function, scaling
function and special drift data offset function.
"Zero Clip Function", Page 2-30
"Scaling Function", Page 2-31
"Averaging Function", Page 2-32
"Special Data Offset Function", Page 2-36

2-38 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

 Details on zero drift function


Relays and data for zero drift function as follows.

(1) (4)

Zero drift relay


2
(2) (5)

KV-SAD04
Zero drift in progress relay

KV-SAD04
internal data 12 15 10 12 15 23 19 18 17 16 15
(Example)
(3) (6)

Special data 12 15 0 2 5 13 9 18 17 16
DM value (Example)

When zero drift function enabled

(1) Ladder Zero drift relay becomes ON.


(2) KV-SAD04 Zero drift in progress relay becomes ON.
(3) KV-SAD04 When zero drift relay is OFF -> ON, internal data ("10" in above Fig.) will be stored
as zero drift reference value. When zero drift function is enabled, the value, after
zero drift reference value deducted, is stored into special data DM.
(4) Ladder Zero drift relay becomes OFF.
(5) KV-SAD04 Zero drift in progress relay becomes OFF.
(6) KV-SAD04 Internal data will be stored into special data DM. Zero drift reference value disappears.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-39


2-2 Settings & Various Functions

Peak/Bottom Hold Function

 Peak/bottom hold function


With the function, can separately save peak and bottom of special data can be stored separately to DM

2 occupied by KV-SAD04 during hold relay is ON (hold in progress relay ON via KV-SAD04). When hold
relay is ON -> OFF (hold in progress relay ON -> OFF via KV-SAD04), peak and bottom holding will be
stopped and DM value will be not updated.
KV-SAD04

Hold relay and hold in progress relay assigned as follows:

Channel No. CH0 CH1 CH2 CH3


Hold relay n + 101 n + 109 n + 201 n + 209
Hold in progress relay n + 401 n + 409 n + 501 n + 509
n : Leading relay No.

Peak/bottom will be stored to the following DMs.

Channel No. CH0 CH1 CH2 CH3


Peak N + 003 N + 008 N + 013 N + 018
Bottom N + 004 N + 009 N + 014 N + 019
N : Leading DM No.

Because that the peak and bottom stored via peak / bottom hold function are updated in internal A/D
conversion of KV-SAD04, so, it will be not influenced by scanning time of CPU unit.
Peak / bottom hold function can be separately conducted on every channel.
Peak/ bottom hold function can be conducted for results processed by zero clip, averaging function,
scaling function, special data offset function and zero drift function.
"Zero Clip Function", Page 2-30
"Scaling Function", Page 2-31
"Averaging Function", Page 2-32
"Special Data Offset Function", Page 2-36
"Zero Drift Function", Page 2-38

When simple averaging (count selection), simple averaging (time selection) and
Point
moving average are specified under averaging function, the peak/bottom will be
not updated before the first averaging is completed.
"Averaging Function", Page 2-32

2-40 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

 Details on peak/bottom hold function


Relays and data for peak/bottom hold function as follows.

(1) (4)

Hold relay

2
(2) (5)

KV-SAD04
Hold in progress relay

Special data (Example) 12 15 10 12 15 23 11 17 25 16 9

(3) (6)

Peak (Example) * * * 12 15 23 23 23 23 23 23

(3) (6)

Bottom (Example) * * * 12 12 12 11 11 11 11 11

When peak/Bottom hold function enabled

* The value stored before the hold in progress relay is on

(1) Ladder Hold relay becomes ON.


(2) KV-SAD04 Hold in progress relay becomes ON.
(3) KV-SAD04 When hold in progress relay is OFF -> ON, save special data into peak and bottom.
When peak/bottom hold function is enabled and special data exceeds the peak
(bottom) stored currently, the peak (bottom) of special data will be updated.
(4) Ladder Hold relay becomes OFF.
(5) KV-SAD04 Hold relay in progress is OFF.
(6) KV-SAD04 Peak and bottom are the values before hold in progress relay is OFF, and fails to be
updated.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-41


2-2 Settings & Various Functions

Comparator Function

 What is comparator function


With comparator function, KV-SAD04 can compare special data with comparator upper limit value/

2 lower limit value, and turn the comparator upper limit relay and lower limit relay ON/OFF .
KV-SAD04

Comparator function, how to select comparator and the ON/ OFF level of upper/lower limit value of
every comparator when comparator value selection is set to "Unit Editor selection" shall be specified.
Comparator function can be separately conducted on every channel.
Peak/bottom hold function can be conducted for results processed by via comparator function
(averaging), scaling function, special data offset function and zero drift function.
"Zero Clip Function", Page 2-30
"Scaling Function", Page 2-31
"Averaging Function", Page 2-32
"Special Data Offset Function", Page 2-36
"Zero Drift Function", Page 2-38

Comparator upper limit value ON/OFF level, lower limit value ON/OFF level can be also specified via
Data Memory of setting value communication area, or unit specific instruction/ function "U_WRLMT" in
addition to direct selection via the Unit Editor.
"Change setting value by DM selection", Page 2-23
"Change Setting Value via Unit Specific Instruction", Page 2-25
"Unit specific instruction U_WRSCL", Page 2-70
"Unit specific function U_WRSCL", Page 2-81

When comparator reset relay is ON, comparator upper limit relay and comparator lower limit relay will
be forcedly set to OFF.
Comparator upper limit relay, comparator lower limit relay and comparator reset relay are assigned as
follows:

CH No. CH0 CH1 CH2 CH3


Comparator upper limit relay n + 403 n + 411 n + 503 n + 511
Comparator lower limit relay n + 404 n + 412 n + 504 n + 512
Comparator reset relay n + 103 n + 111 n + 203 n + 211
n : Leading relay No.

2-42 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

 Details on comparator function


Relay for comparator function shall be operated as follows.

Special data

Comparator upper limit


ON level
Comparator upper limit
2
OFF level

KV-SAD04
Comparator lower limit
OFF level
Comparator lower limit
ON level
Time

(3) (4)
Comparator upper limit
relay

(1) (2) (5)


Comparator lower limit
relay

(1) KV-SAD04 when special data is less than comparator lower limit ON level, comparator lower
limit relay is ON.
(2) KV-SAD04 when special data exceeds comparator lower limit OFF level, comparator lower limit
relay is OFF.
(3) KV-SAD04 when special data exceeds comparator upper limit ON level, comparator upper limit
relay is ON.
(4) KV-SAD04 when special data is less than comparator lower limit OFF level, comparator upper
limit relay is OFF.
(5) KV-SAD04 when special data is less than comparator lower limit ON level, comparator lower
limit relay is ON.

• If comparator upper limit value (lower limit value) ON level = comparator upper
Point
limit value (lower limit value) OFF level, the special data becomes the value,
comparator upper limit value (lower limit value) relay is ON.
• After CPU unit switched from PROGRAM mode to RUN mode, comparator
upper limit (lower limit) relay will be OFF.
• If comparator upper limit value (lower limit value) is specified in DM, and the
setting has been updated, the comparator upper limit (lower limit) relay will
remain the ON/OFF status before updating.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-43


2-2 Settings & Various Functions

 Operation of comparator reset relay


Comparator upper limit (lower limit) relay and comparator reset relay, shall be operated as follows.

(2) (4)
Comparator upper/lower
limit relay When special data

2 exceeds (lower than)


upper limit value
(1) (3) (lower limit value) on
KV-SAD04

level of comparator
Comparator reset relay

When comparator
reset enabled

(1) Ladder Set comparator reset relay to ON.


(2) KV-SAD04 Comparator upper limit (lower limit) relay becomes OFF forcedly.
(3) Ladder Set comparator reset relay to OFF.
(4) KV-SAD04 If special data exceeds (less than) comparator upper limit (lower limit) ON level , the
comparator upper limit (lower limit) relay will be ON. If special data not exceeding
(less than) ON level of comparator upper limit (lower limit), comparator upper limit
(lower limit) relay will remain OFF.

2-44 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

Wire break Detection Function

 Wire break detection function


The wire break detection function can be used only when input range is set to 1 to 5V or 4 to 20mA. If
wire break detection is set to "enabled", when the input range is voltage 1 to 5V, the input signal is less
than 0.5V, or when the input range is 4 to 20mA the input signal is less than 2mA; when this happens,
2
the signal line is considered to be broken and the wire break detection relay is set to ON.

KV-SAD04
If the wire break alarm clear relay is set to ON, the wire break detection relay changes to OFF.

Please specify whether wire break detection function is used or not.


Wire break detection function can be separately conducted on every channel.

Wire break detection relay and wire break alarm clear relay assigned are as follows:

CH No. CH0 CH1 CH2 CH3


Wire break detection relay n + 402 n + 410 n + 502 n + 510
Wire break alarm clear relay n + 102 n + 110 n + 202 n + 210
n : Leading relay No.

• Wire break detection function can not be used other than the range of 1 to 5V or
Point
4 to 20mA.
• When CPU unit is switched from PROGRAM mode to RUN mode, the wire break
detection relay is OFF.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-45


2-2 Settings & Various Functions

 Operations of Wire break detection alarm relay and Wire break alarm clear relay
Wire break detection relay and wire break alarm clear relay shall be operated as follows.
Input signal
<0.5V or 2mA

2 (1) (3)
(5)

Wire break detection relay


KV-SAD04

When input signal


<0.5V or 2mA

(2) (4)
Wire break alarm clear relay

Wire break alarm


clear valid time

(1) KV-SAD04 If input signal is less than 0.5V or 2mA, the wire break detection relay is ON.
(2) Ladder Wire break alarm clear relay becomes ON.
(3) KV-SAD04 Wire break relay becomes OFF.
(4) Ladder Wire break alarm clear relay becomes OFF.
(5) KV-SAD04 If input signal is less than 0.5V or 2mA, the wire break detection relay is ON. If not
less than above numerical value, the broken detection relay will remain OFF.

Unit Interrupt Function

 Unit interrupt function


The KV-SAD04 input status can be checked and an interrupt can be carried out against the CPU unit
using the unit interrupt function.
Unit interrupt is performed by using an INT instruction to specify the unit and interrupt condition.
The following interrupt conditions can be used for KV-SAD04 unit interrupt.

Condition No. Interrupt condition


0 Channel 0 comparator upper limit ON
1 Channel 0 comparator upper limit OFF
2 Channel 0 comparator lower limit ON
3 Channel 0 comparator lower limit OFF
4 Channel 1 comparator upper limit ON
5 Channel 1 comparator upper limit OFF
6 Channel 1 comparator lower limit ON
7 Channel 1 comparator lower limit OFF
8 Channel 2 comparator upper limit ON
9 Channel 2 comparator upper limit OFF
10 Channel 2 comparator lower limit ON
11 Channel 2 comparator lower limit OFF
12 Channel 3 comparator upper limit ON
13 Channel 3 comparator upper limit OFF
14 Channel 3 comparator lower limit ON
15 Channel 3 comparator lower limit OFF
16 Channel 0 buffering complete
17 Channel 1 buffering complete
18 Channel 2 buffering complete
19 Channel 3 buffering complete
"Comparator Function", Page 2-42
"Buffering Function", Page 2-48
KV-7000 Series User's Manual "4-7 Interrupt"
2-46 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -
2-2 Settings & Various Functions

 Setting Method
Create a program for interrupt between END and ENDH.

CR2008
EI

Main routine program


2
If EI instruction is not executed in advance, the interrupt program

KV-SAD04
END
cannot be executed.

INT
Unit No. Interrupt factor

Interrupt program
 An interrupt program is written between END and ENDH.
RETI

ENDH

 Usage Example
In this example, when CH0's comparator upper limit is ON, direct output of output relay R35200 is
performed.
;(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-SAD04 Channel 0 comparator
upper limit ON

CR2002 DR35200
SET
Always ON

RETI

ENDH

Reference To have direct output, write "R" as "DR".

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-47


2-2 Settings & Various Functions

Buffering Function

 Buffering function
The buffering function samples KV-SAD04's special data at the fastest 10µs.
2 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
KV-SAD04

buffer memory in the unit. When trigger buffering is used, buffering is performed while the trigger is in a
waiting state, which makes it possible to obtain the set amount of data before and after trigger input.

 Buffering Operation Overview


• When acquired with each scan

Special data Scan time

If the analog signal changes at a speed higher than the scan time, accurate sampling cannot be done.
• When buffering is implemented

Scan time
Special data Sampling cycle

Even if the analog signal changes at a speed higher than the scan time, accurate sampling can still be done.

 Operating mode
 Continuous buffering
Data with sampling performed is stored in order. When buffering data read (U_RDBF instruction) is executed,
data is read from the CPU's device, and the same amount of data is deleted from the buffer memory. When
read is executed regularly, data in buffer memory is deleted so that buffering can continue to be
performed. Performing buffering with 4095 units of data in buffer memory will cause buffering overflow
and subsequent missing of sampling data.

Sampling data Data 1 Data 2 Data 3 Data 4 Data 5

Buffer memory Data 4 Data 4 Data 5 Data 5


Data 3 Data 3 Data 3 Data 4 Data 4 Data 5

Data 2 Data 2 Data 2 Data 2 Data 3 Data 3 Data 4

Data 1 Data 1 Data 1 Data 1 Data 1 Data 2 Data 2 Data 3

Read Data 1 Data 2

• Data that has been read out from the buffer is deleted.
Point
• In the read-out, the data is read out starting in order from the oldest data. You cannot
specify an intermediate buffer memory address to read out intermediate data.
• Even if overflow occurs, executing read (U_RDBF instruction) to delete data from the
buffer memory will restart buffering.
2-48 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -
2-2 Settings & Various Functions

 Trigger Buffering
Like continuous buffering, trigger buffering stores special data in the internal buffer. When a trigger is
input, only the specified amount of data before and after it is extracted and then stored in the buffer
memory.

Time Sampling data


Data 5021
Buffer memory
Data 5024 - M
2

KV-SAD04
Data 5022

Data 5023 Data 5023

Trigger input Data 5024 Data 5024


Data 5025 Data 5025

Data 5026

Data 5027 Data 5024 - M + N

N:Number of buffering points


M:Pre-trigger buffering count

Point Buffer overflow does not occur during trigger buffer execution.

 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 16 bits.

CH Data Note
CH0 special data Oldest data
CH0 special data Second oldest data

CH0
CH0 special data Nth oldest data

CH0 special data 4095th oldest data

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-49


2-2 Settings & Various Functions

If ID selection setting is not 0


Data is stored in the buffer memory in units of 32 bits according to its data ID.

Data
CH Note
Higher 16 bits Lower 16 bits
Data ID CH0 special data Oldest data

2 Data ID CH0 special data Second oldest data


CH0
Data ID CH0 special data Nth oldest data
KV-SAD04


Data ID CH0 special data 4095th oldest data

If buffering is performed every 32 bits, when U_RDBF instruction read data, the amount
Point
of data read must be: buffering count×2.

 Usage method
All settings are read from a ladder program which uses UWRIT to write the value to the buffer memory
of KV-SAD04.
Data is read by unit specific instruction U_RDBF.
"U_RDBF", Page 2-74

Buffering setting

Buffering enabled

Continuous buffering Trigger Buffering

Trigger input

Buffering completed Buffering completed

Data read Data read

2-50 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

 Used buffer memory address


Attribute
Buffer memory
Name R: Read only Overview
Address R/W: Read enabled
0 : Continuous
#512 CH0 buffering mode setting R/W
1 : Trigger (default value: 0)
#513 CH0 buffering count setting R/W 1 to 4095 (default value: 100)
#514
#515
CH0 buffering cycle setting
(System reserved)
R/W

1 to 65535 (default value: 1)
2
0 : 1 write to trigger register
1 : Comparator upper limit ON edge

KV-SAD04
2 : Comparator upper limit OFF edge
#516 CH0 trigger condition setting R/W 3 : Comparator lower limit ON edge
4 : Comparator lower limit OFF edge
5 : Inter-unit synchronous interruption
(default value: 0)
#517 to #518 (System reserved) −
#519 CH0 set the pre-trigger buffering count R/W 0 to 4095 (default value: 0)
0 : None
1 : Serial number
2 : Elapsed time by inter-unit
#520 CH0 ID number selection setting R/W synchronous periods
3 : Serial number by inter-unit
synchronous periods
(default value: 0)
#521 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 upper limit ON edge
#532 CH0 Trigger condition setting monitor R 2 : Comparator upper limit OFF edge
3 : Comparator lower limit ON edge
4 : Comparator lower limit OFF edge
5 : Inter-unit synchronous interruption
#533 to #534 (System reserved) −
#535 CH0 set the pre-trigger buffering count monitor R 0 to 4095
0 : None
1 : Sequential number
2 : Elapsed time by inter-unit
#536 CH0 ID selection setting monitor R
synchronous periods
3 : Serial number by inter-unit
synchronous periods
#537 (System reserved) −
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 Buffering point number monitor before CHO_triggering 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 #607 CH2 buffering mode setting R/W Equivalent to #512 to #543
#608 to #639 CH3 buffering mode setting R/W Equivalent to #512 to #543
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)
0 : Disabled
#642 CH2 buffering enabled R/W 1 : Enabled
(default value: 0)
0 : Disabled
#643 CH3 buffering enabled R/W 1 : Enabled
(default value: 0)
#644 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)
1 : Trigger input
#658 CH2 trigger R/W
(updated to 0 automatically after input)
1 : Trigger input
#659 CH3 trigger R/W
(updated to 0 automatically after input)
#660 to #8191 (System reserved) −
- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-51
2-2 Settings & Various Functions

 Device
• Buffering mode setting (CH0: #512, CH1: #544, CH2: #576, CH3: #608)
Select the buffering mode to execute: Continuous buffering or trigger buffering.
0 : Continuous buffering
1 : Trigger Buffering
2 Only bit 0 is used.
The set value when "1" is written during buffering enable is applied to operation.
KV-SAD04

• Buffering count setting (CH0: #513, CH1: #545, CH2: #577, CH3: #609)
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
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.
• Buffering cycle setting (CH0: #514, CH1: #546, CH2: #578, CH3: #610)
Sampling cycle of buffering is set. Sampling cycle works in the following way according to the
buffering cycle setting value (range: 1 to 65535).
Sampling cycle = A/D conversion data updating period × buffering cycle setting
A/D conversion data updating period works in the following way according to the number of channels
for A/D conversion.
"Updating Period for A/D conversion Data", Page 2-7
A/D conversion data updating period = A/D conversion speed(10µs) × Number of channels usedA/D
Example  When buffering is performed on 2ch analog data using 100µs cycle
Number of channels used 2
Buffering cycle setting 5
Sampling cycle = 10µs × 2 × 5 = 100µs
The set value when "1" is written during buffering enable is applied to operation.
• Trigger condition setting (CH0: #516, CH1: #548, CH2: #580, CH3: #612)
Set the trigger conditions for the trigger buffering mode.
0 : 1 write to trigger register
When 1 is written to buffer memory’s trigger register (CH0: #656, CH1: #657, CH2: #658, 
CH3: #659), trigger is input.
1 : Comparator upper limit ON edge
Trigger is input when comparator upper limit relay is ON.
2 : Comparator upper limit OFF edge
Trigger is input when comparator upper limit relay is OFF.
3 : Comparator lower limit ON edge
Trigger is input when comparator lower limit relay is ON.
4 : Comparator lower limit OFF edge
Trigger is input when comparator upper limit relay is OFF.
5 : Inter-unit synchronous interruption
Input the trigger at a timing when the inter-unit synchronous interruption occurred.
"Comparator Function", Page 2-42
Only bits 0 - 2 are used.
The set value when "1" is written during buffering enable is applied to operation.

2-52 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

• Pre-trigger buffering count setting (CH0: #519, CH1: #551, CH2: #583, CH3: #615)
The number of sampling points (0 to 4095) before the trigger is set in trigger buffering mode.
Only bits 0 - 11 are used.
The set value when "1" is written during buffering enable is applied to operation.

2
• ID selection setting (CH0: #520, CH1: #552, CH2: #584, CH3: #616)
Data ID is set to sampling data.
0 : No

KV-SAD04
Only special data with sampling performed is stored as 16-bit data rows in buffer.
1 : Sequential number
Trg bit (1 bit), serial number (15 bits) and special data (16 bits) are stored as 32-bit data rows in
the buffer.
2 : Elapsed time by inter-unit synchronous period
Trg bit (1 bit), status bit (1 bit), elapsed time by inter-unit synchronous period (14 bits) and
special data (16 bits) are stored as 32-bit data rows in the buffer.
3 : Serial number by inter-unit synchronous period
Trg bit (1 bit), status bit (1 bit), serial number by inter-unit synchronous period (14 bits) and
special data (16 bits) are stored as 32-bit data rows in the buffer.
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.
Status bit
During one inter-unit synchronous period, the same value of o or 1 is written to all sampling
data. The reversed value is written to the next inter-unit synchronous period. When using the
buffering function by the multiple units, the common values are written in between units.
Elapsed time by inter-unit synchronous period
From the inception of inter-unit synchronous period, the elapsed time is stored by [µs] unit.
Reset to 0 when the next inter-unit synchronous period starts.
Serial number by inter-unit synchronous period
Within the inter-unit synchronous period, the serial number added by 1 every sampling is
stored. When the next inter-unit synchronous period is switched, the number is reset to 0 when
buffering is permitted.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-53


2-2 Settings & Various Functions

Example  When "1: sequential number" is set

Higher 16 bits Lower 16 bits


Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Value 1 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0 1 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0

2 Sequential number: 1234 Special data: 13546


KV-SAD04

Trg bit : 1

Example  When "2: Elapsed time by inter-unit synchronous period" is set

Higher 16 bits Lower 16 bits


Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Value 1 0 0 0 0 1 0 0 1 1 0 1 1 0 0 0 1 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0

Elapsed time by inter-unit synchronous period: Special data:13546


1240 (μs)
Status bit:0
Trg bit:1

Reference Time elapsed by inter-unit synchronous period serial number

Inter-unit synchronous period

Status bit

Buffering cycle

Buffering data Data 99 Data 100 Data 101 Data 102 Data 103 Data 104 Data 105 Data 106 Data 107

Time elapsed (μs)

Serial number 3 0 1 2 3 0 1 2 0

2-54 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

• Various monitors (buffering mode setting monitor/buffering count setting monitor/buffering


cycle setting monitor/trigger condition setting monitor/pre-trigger buffering count setting
monitor/ID selection setting monitor)(CH0:#528 ∼ #536, CH1:#560 ∼ #568, CH2:#592 ∼ #600,
CH3:#624∼#632)
They monitor setting value used in buffering being executed.

Reference
The set value when "1" is written during buffering enable is applied to operation.
If a parameter changes after "1" has been written, the set value and the monitor value may differ. 2
Use the setting monitor to verify set values that are applied to actual operation.

KV-SAD04
• Buffering state monitor (CH0: #538, CH1: #570, CH2: #602, CH3: #634)
It monitors the buffering state.
ON/OFF of 0 to 2 bits are used to indicate the following states.
Bit0 : during buffering
ON while buffering is being executed.
Bit1 : trigger waiting
In the trigger buffering mode, it is ON when buffering is performed using the amount specified by
pre-trigger buffering count setting.
In the continuous buffering mode, it is ON when 1 is written to the buffering permission register.
Bit2 : Buffering completed
It is ON when the number of data in the buffer memory reaches the number specified in the
buffering count setting.
When data in buffering is read, it is OFF if the number of data is less than the buffering count setting.

• Current buffering count monitor (CH0: #539, CH1: #571, CH2: #603, CH3: #635)
Monitors the number of data in buffer memory.

• Buffering overflow monitor (CH0: #540, CH1: #572, CH2: #604, CH3: #636)
In the continuous buffering mode, when the number of data in the buffer memory exceeds 4095, 1 is
written when missing of data occurs. To avoid overflow, regularly execute data read (U_RDBF
instruction) and delete data in the buffer memory.
0 : Normal
1 : Overflow occurs
Only bit 0 is used.

It is reset when 0 is written to buffering overflow or buffering permission, reset does


Point
not occur if data in the buffer memory is only read.

• Buffering count monitor before triggering (CH0:#541、CH1:#573、CH2:#605、CH3:#637)


When using the trigger buffering mode, the data point number in the buffering memory before
triggering is monitored. You can check whether the data of the buffering point number setting portion
before triggering has been buffered by prior to triggering.
• Buffering permission (CH0: #640, CH1: #641, CH2: #642, CH3: #643)
When the permission changes from 0 to 1, the setting data is read and buffering starts.

Point To execute buffering again, write 0 to it again, and then write 1.

• Trigger (CH0: #656, CH1: #657, CH2: #658, CH3: #659)


In trigger buffering mode, when 0 (at the rising edge of the trigger register) is selected in trigger
condition setting 1 and "1" is written (executing the UWRIT instruction), sampling is performed the
specified number of times and operation stops.

• Buffering starts also when a "1" instead of a "0" is written beforehand.


Reference • After 1 is written to it, it is reset to 0 automatically.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-55


2-2 Settings & Various Functions

 Sample program
The following settings are used to start continuous buffering, and stop it when 100000 points are read.
Channel used CH0
Buffering mode setting 0: Continuous buffering
Buffering count setting 4000 points
2 Buffering cycle setting 1 cycle
ID selection settin 0: No
KV-SAD04

Buffering setting ;<Mnemonic list>


CR2008 UWRIT ;Buffering setting
#1 #512 #0 #1 LD CR2008
Operation starts 1 KV-SAD04 ch0 buffering UWRIT #1 #512 #0 #1
scan ON mode setting UWRIT #1 #513 #4000 #1
UWRIT UWRIT #1 #514 #1 #1
#1 #513 #4000 #1 UWRIT #1 #520 #0 #1
KV-SAD04 ch0 buffering ;Buffering starts/stops
count setting
LDP MR001
UWRIT
OR MR000
#1 #514 #1 #1
ANB MR002
KV-SAD04 ch0 buffering OUT MR000
cycle setting
UWRIT
LDP MR001
#1 #520 #0 #1 DW.L +0 Z1
LDP MR001
KV-SAD04 ch0 ID
selection setting ZRES ZF0 ZF100000
LDP MR001
Buffering starts/stops UWRIT #1 #640 #1 #1
MR001 MR002 MR000
LDF MR000
UWRIT #1 #640 #0 #1
Buffering starts Buffering stops During buffering LD MR000
AND>.L Z1 +100000
MR000 OUT MR002
LD MR000
During buffering
ANB T0
TMU #0 #1000
+0
MR001
LD T0
DW.L
Buffering starts Z1
UREAD #1 #539 @DM0 #1
LD T0
MR001 ZF0 U_RDBF #1 #0 ZF0:Z1 @DM0
ZRES LD T0
Buffering starts ZF100000 LDA @DM0
CON
MR001 UWRIT EXT
#1 #640 #1 #1 CON
Buffering starts KV-SAD04 ch0 buffering ADD.L Z1
permission CON
MR000 UWRIT
STA.L Z1
#1 #640 #0 #1
END
During buffering KV-SAD04 ch0 buffering ENDH
permission
MR000 Z1 MR002
>.L
During buffering +100000 Buffering stops

MR000 T0 #1000
T0
U
During buffering

T0 UREAD
#1 #539 @DM0 #1

KV-SAD04 ch0 current buffering


count monitor
T0 U_RDBF KV-SAD04
unit number CH number Storage device Number of data
#1 #0 ZF0:Z1 @DM0
KV-SAD04

T0 @DM0 Z1 Z1
LDA EXT ADD.L STA.L

END

ENDH

2-56 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

Inter-unit synchronous function

 What does the inter-unit synchronous period mean:


The inter-unit synchronous period is a function to match the control timing by the signal among multiple
units.
The use of this function enables you to realize the simultaneous sampling, the simultaneous positioning
2

KV-SAD04
among the multiple units.

Reference For the details of inter-unit synchronization, refer to "KV-7000 Series User's Manual".

Designate the absence or presence of using the inter-unit synchronous period.


When set to "Use", designate the refresh timing of the unit.
Refresh timing Inter-unit synchronization: Refresh at a time of the synchronous
refresh immediately after the synchronous timing.
Batch (END processing): Refresh when END processing the main
routine program.

 Unit specification at a time of inter-unit synchronous period

Item Set value


Inter-unit synchronous period 40.0µs∼
Input R 3ch (48 points)
Input DM 21 words
Refresh device Output R 3ch (48 points)
Output DM 32 words
Buffer memory ―

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-57


2-2 Settings & Various Functions

 Operation overview when executing the inter-unit synchronous period


Readout timing Example: Special data reading

Synchronous Synchronous refresh time Inter-unit synchronous module

2 Unit 1
CH0
981 1345 1380
Refresh device
KV-SAD04

CH1
(Special data)
16436 14130 13811
CH0

Unit 2 8103 1502 2796


Refresh device CH1
(Special data)
15142 17641 16164
CH0 ③
Unit 1 981 1130 1345 1703 1380
Buffer memory CH1
(Special data)
16436 12501 14130 17034 13811
CH0

Unit 2 8103 6010 4502 7135 2796


Buffer memory CH1
(Speical data)
15142 17310 17641 17411 16164

CH0 CH0 CH0 CH0 CH0
Unit 1 AD CH1 CH1 CH1 CH1
conversion CH2 CH2 CH2 CH2 CH2
CH3 CH3 CH3 CH3 CH3
CH0 CH0 D CH0 CH0 CH0
CH1 CH1 CH1 CH1
Unit 2 AD CH2 CH2 CH2 CH2 CH2
conversion CH3 CH3 CH3 CH3 CH3
B C


CH0

Unit 1 Analog input


CH1

CH0

Unit 2 Analog input


CH1

A A

A = Inter-unit synchronous period :Set in "Unit Editor".


B = A/D conversion data updating period :Is the time of the used CH number x A/D conversion time (10µs).
C = Internal processing time :Is the time for 10µs (Fixed), internal processing.
D = Idle time :Is the spare time of the inter-unit synchronous period divided by
the A/D conversion data updating period, and stop the AD
conversion.
① Based on the synchronous timing, start the AD conversion from n-fold of A/D conversion data
updating period + before internal processing.
② Store the value to buffer memory every AD conversion of each CH.
③ When the refresh timing of the unit setting is "Inter-unit synchronization", read out the value of the
buffer memory to the data memory at a time of synchronous refresh immediately after the
snychronous timing.
• The data to be read out when synchronous refreshing becomes the data converted
Point in AD immediately before the synchronous timing, the value synchronized between
units can be read out.
Example In the case of using CH number 3, the data of CH0 is the data having AD
converted the analog value before 40µs from the synchronous timing.
• If a direct refresh command such as a unit specific instruction is used in the 
inter-unit synchronous module, the value when the direct refresh command was
carried out, not the data when synchronization started, can be read.

2-58 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-2 Settings & Various Functions

Write timing Example: Scaling upper limit change

Synchronous Synchronous refresh time Inter-unit synchronous module

Unit 1
CH0 Scaling Upper Limit
1000

10000
2
Refresh device Setting Update

KV-SAD04
Request Relay
CH0 Scaling Upper Limit
2000 20000
Unit 2
Refresh device Setting Update
Request Relay
CH0 Scaling Upper Limit ②
1000 10000
Unit 1 CH0 Special Date
Buffer memory
230 331 467 615 598 4533 2863
CH0 Scaling Upper Limit ③Reflect
2000 20000
Unit 2
CH0 Special Date
Buffer memory
1831 1513 1321 1389 1478 11154 12130
③Reflect
CH0 CH0 CH0 CH0 CH0 CH0 CH0
Unit 1 AD conversion CH1 CH1 CH1 CH1 CH1 CH1 CH1
CH2 CH2 CH2 CH2 CH2 CH2 CH2
CH3 CH3 CH3 CH3 CH3 CH3 CH3
CH0 CH0 CH0 CH0 CH0 CH0 CH0
CH1 CH1 CH1 CH1 CH1 CH1 CH1
Unit 2 AD conversion CH2 CH2 CH2 CH2 CH2 CH2 CH2
CH3 CH3 CH3 CH3 CH3 CH3 CH3

CH0
Unit 1 Analog input
CH0
Unit 2 Analog input

① Write the parameter and the operation instruction to the device by the inter-unit synchronous module.
② The parameter and the operation instruction are transferred to the unit at the synchronous refresh
timing.
③ Reflected from the next unit synchronization timing as well.

When using and executing the direct refresh command within the inter-unit synchronous
Reference
module, you can write the parameter without waiting for the next time synchronous timing
between units.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-59


2-2 Settings & Various Functions

When the refresh timing is set to END processing


Refresh is carried out at END processing or when a direct refresh command is carried out, and units
may not be synchronized.
For input, as the status when units are synchronized is latched in the buffer memory below (#100 to
#119) at each inter-unit synchronous period, the UREAD instruction can be used in the inter-unit

2 synchronous module to read this data so you can confirm the status when units are synchronized.

Attribute
KV-SAD04

R: Read only
Buffer memory Address name Overview
R/W: Read/write
enabled
#100 ch0 A/D change data (capture) R
#101 ch0 special data (capture) R
Each piece of data is
#102 ch0 analog data (capture) R
latched at
#103 ch0 peak value (capture) R
synchronization with
#104 ch0 bottom value (capture) R
each inter-unit
#105∼#109 ch1 data (capture) Equivalent to #100 to #104
synchronous period.
#110∼#104 ch2 data (capture) Equivalent to #100 to #104
#115∼#119 ch3 data (capture) Equivalent to #100 to #104

2-60 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-3 KV-SAD04 Unit Specific Instructions
This section describes KV-SAD04 unit specific instructions used in Ladder. For using in the script
program, please see "2-4 KV-SAD04 Unit Specific Functions", Page 2-76.

List of KV-SAD04 Unit Specific Instructions

2
Function Instruction Instruction description See

KV-SAD04
Read A/D conversion
U_RDAD Read A/D conversion data from buffer memory. Page 2-62
(special) data
Read all types of A/D Read A/D conversion data, special data, analog
U_RDADB Page 2-64
conversion data data, peak and Bottom from buffer memory.
Change special data
U_WROFST Special data offset value. Page 2-66
offset value
Write scaling setting 
U_WRSCL Write scaling setting value to buffer memory. Page 2-68
value
Write comparator setting
U_WRLMT Write comparator setting value to buffer memory. Page 2-70
value

Write average constants U_WRAVG Write average constant to buffer memory. Page 2-72

Special data in A/D conversion with buffering


Read buffering data U_RDBF Page 2-74
performed is batch-read from the buffer memory.

The processing independent of scanning time can be conducted by using unit specific
Reference
instructions.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-61


2-3 KV-SAD04 Unit Specific Instructions

U_RDAD U_RDAD(.S) U_RDAD


Read A/D To read A/D
conversion conversion
@U_RDAD @U_RDAD(.S) U_RDAD (special) data (special) data

2 Ladder program Input mode


Execution condition U_RDAD.S KV-SAD04
KV-SAD04

n1 n2 D U _ R D A D n1 n2 D

Execution condition KV-SAD04


n1 n2 D @ U _ R D A D n1 n2 D

Available Devices
Indirect Local Index modify
Bit device Word devices Constants 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 To specify unit No. (1 to 48). *1
n2 To specify analog input (0 to 3) channel or the device where channel is stored. *2
D To specify the device for storing read A/D conversion (special) data. *2
*1 $( HEX selection) can not be used.
*2 If bit devices are specified in n2 and D , continuous 16 bits will be processed. 
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.).

Description of Operation

U_RDAD(.S) When execution condition is ON, read A/D conversion (special) data (results
processed by scaling, averaging, etc.) of channel n2 from the unit n1 and
store into D in BIN format.

Buffer memory Device No.

A/D conversion (special) data D

@ U_RDAD(.S) The instruction is performed only at the rising edge of condition.

2-62 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-3 KV-SAD04 Unit Specific Instructions

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
It is ON in any one of the following conditions, otherwise it is OFF.
• When unit No. specified in n1 is 49 above
2
CR2012 • When unit No. specified in n1 is not KV-SAD04

KV-SAD04
• When channel No. of analog input specified in n2 exceeds 4
• Improper indirect selection or index modification range
* When CR2012 is ON, detailed error information of CM5100 to CM5176 will be stored.
KV-7000 Series User's Manual

Sample Program

When the first connected KV-SIR32XT's IN000 is ON, this program executes the interrupt program,
reads the second connected KV-SAD04 CH0's A/D conversion (special) data, and then stores it to
DM0.

;(Mnemonics list)
CR2008 LD CR2008
EI EI
When operation IEDGE.U #1 #0 #0
starts 1 END
Scan ON INT #1 #0
LD CR2002
IEDGE KV-SIR32XT U_RDAD.S #2 #0 DM0
Unit No. Input No. Detection condition RETI
#1 #0 #0
ENDH
KV-SIR32XT

END

INT
Unit No. Interrupt factor
#1 #0
KV-SIR32XT R34000

CR2002 U_RDADB.S KV-SAD04


Unit No. CH No. Stg dev
#2 #0 DM0
Always ON
KV-SAD04

RETI

ENDH

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-63


2-3 KV-SAD04 Unit Specific Instructions

U_RDADB U_RDADB(.S) U_RDADB


Read all types of
To read all types
of A/D conversion
A/D conversion
data from buffer
@U_RDADB @U_RDADB(.S) U_RDADB data
memory.

2 Ladder program Input mode


Execution condition U_RDADB.S KV-SAD04
KV-SAD04

n1 n2 D U _ R D A D C n1 n2 D

Execution condition U_RDADB.S KV-SAD04


n1 n2 D @ U _ R D A D C n1 n2 D

Available Devices
Indirect Local Index modify
Bit device Word devices Constants
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 To specify unit No. (1 to 48). *1

n2 To specify analog input (0 to 3) channel or the device where channel is stored. *2


D To specify the device for storing read A/D conversion (special) data. *2
*1 $( HEX selection) can not be used.
*2 If bit devices are specified in n2 and D , continuous 16 bits will be processed. 
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.).

Description of Operation

U_RDAD(.S) When execution condition is ON, read A/D conversion (special) data (results
processed by scaling, averaging, etc.) of channel n2 from the unit n1 and
store into D in BIN format.

Buffer memory Device No.

A/D conversion (special) data D

@ U_RDAD(.S) The instruction is performed only at the rising edge of condition.

2-64 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-3 KV-SAD04 Unit Specific Instructions

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
It is ON in any one of the following conditions, otherwise it is OFF.
• When unit No. specified in n1 is 49 above
2
• When unit No. specified in n1 is not KV-SAD04

KV-SAD04
CR2012
• When channel No. of analog input specified in n2 exceeds 4
• When 5 word device fails to be guaranteed from the specified device No. in D .
• Improper indirect selection or index modification range
* When CR2012 is ON, detailed error information of CM5100 to CM5176 will be stored.
KV-7000 Series User's Manual

Sample Program

When the first connected KV-SIR32XT's IN000 is ON, this program executes the interrupt program,
reads the second connected KV-SAD04 CH0's A/D conversion data, special data, analog data, peak
value, and bottom value, and then stores them to DM0 to DM4.

;(Mnemonics list)
CR2008 LD CR2008
EI EI
When operation IEDGE.U #1 #0 #0
starts 1 END
Scan ON INT #1 #0
LD CR2002
IEDGE KV-SIR32XT
U_RDADB.S #2 #0 DM0
Unit No. Input No. Detection condition RETI
#1 #0 #0
ENDH
KV-SIR32XT

END

INT
Unit No. Interrupt factor
#1 #0
KV-SIR32XT R34000

CR2002 U_RDADB.S KV-SAD04


Unit No. CH No. Stg dev
#2 #0 DM0
Always ON
KV-SAD04

RETI

ENDH

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-65


2-3 KV-SAD04 Unit Specific Instructions

U_WROFST U_WROFST(.S) U_WROFST


Change 
To change special
special data 
data offset value.
@U_WROFST @U_WROFST(.S) U_WROFST offset

2
Ladder program Input mode
KV-SAD04

Execution condition U_WROFST.S KV-SAD04


n1 n2 S U _ W R O F S T n1 n2 S

Execution condition KV-SAD04


n1 n2 S @ U _ W R O F S T n1 n2 S

Available Devices
Index modify
Bit device Word devices Constants Indirect Local
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 To specify unit No.(1 to 48).*1
n2 To specify analog input (0 to 3) channel or the device where channel is stored. *2
S To specify special data offset value or the device for storing the value. *2
*1 $(HEX selection) can not be used.
*2 If bit devices are specified in n2 and S , continuous 16 bits will be processed. 
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.).

If U_WROFST instruction is executed, store the value specified in S in DM


Point
assigned to special data offset.

Description of Operation

U_WROFST(.S) When execution condition is ON, change the special data offset of channel
n2 of unit n1 to 1-word BIN value specified in S .

Constant/device No. Buffer memory

S Special data offset

@ U_WROFST(.S) The instruction is performed only at the rising edge of condition.

2-66 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-3 KV-SAD04 Unit Specific Instructions

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
It is ON in any one of the following conditions, otherwise it is OFF.
• When unit No. specified in n1 is 49 above
2
CR2012 • When unit No. specified in n1 is not KV-SAD04

KV-SAD04
• When channel No. of analog input specified in n2 exceeds 4
• Improper indirect selection or index modification range
* When CR2012 is ON, detailed error information of CM5100 to CM5176 will be stored.
KV-7000 Series User's Manual

Sample Program

When MR000 is ON, this program changes the first connected KV-SAD04 CH0's special data offset
value to +100.

;(Mnemonics list)
MR000 U_WROFST.S KV-SAD04 LD MR000
Unit No. CH No. Offset U_WROFST.S #1 #0 +100
#1 #0 +100

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-67


2-3 KV-SAD04 Unit Specific Instructions

U_WRSCL U_WRSCL(.S) U_WRSCL


Write scaling To write scaling
setting value setting value to
@U_WRSCL @U_WRSCL(.S) U_WRSCL buffer memory.

2 Ladder program Input mode


KV-SAD04

Execution condition U_WRSCL.S KV-SAD04


n1 n2 S U _ W R S C L n1 n2 S

Execution condition KV-SAD04


n1 n2 S @ U _ W R S C L n1 n2 S

Available Devices
Index modify
Indirect Local
Bit device Word devices Constants 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 To specify unit No.(1 to 48).*1
n2 To specify analog input (0 to 3) channel or the device where channel is stored. *2
S To specify the leading device that stores scaling setting value. *3 *4
*1 $( HEX selection) can not be used.
*2 If bit devices are specified in n2 , continuous 16 bits will be processed. 
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 When bit devices are specified in S , continuous 16 x 2 bit are processed. 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.).
*4 When a constant (-32768 to 32767) is specified in S , the same value specified is stored in
the scaling upper limit/lower limit value of buffer memory.

• Scaling setting value is not changed by only performing U_WRSCL instruction.


Point
Update Setup Ladder is required.
"Change Setting Value via Unit Specific Instruction", Page 2-25
• If performing U_WRSCL instruction, the value identical to the value written into
buffer memory is also stored in DM assigned to the scaling setting value.
• In Unit Editor, if scaling value is set to "Unit Editor selection", when it switches
from the PROGRAM mode to the RUN mode, the scaling setting value returns to
the default value specified by Unit Editor.

2-68 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-3 KV-SAD04 Unit Specific Instructions

Description of Operation

U_WRSCL(.S) When execution condition is ON, write 2-word BIN value starting from S as
the scaling setting value into buffer memories of channel n2 of unit n1 .

Device No. Buffer memory 2


S Scaling upper limit

KV-SAD04
+0
S +1 Scaling lower limit

@ U_WRSCL(.S) The instruction is performed only at the rising edge of condition.

Operation flag
CR2009 No change in status
CR2010 No change in status
CR2011 No change in status
It is ON in any one of the following conditions, otherwise it is OFF.
• When unit No. specified in n1 is 49 above
CR2012 • When unit No. specified in n1 is not KV-SAD04
• When channel No. of analog input specified in n2 exceeds 4
• When 2 word device fails to be guaranteed from the specified device No in S .
• Improper indirect selection or index modification range
* When CR2012 is ON, detailed error information of CM5100 to CM5176 will be stored.
KV-7000 Series User's Manual

Sample Program

When MR000 is rising edge, this program changes the first connected KV-SAD04's CH0 scaling upper
limit value to +1000 and scaling lower limit value to +50.

;(Mnemonics list)
MR000 MOV.S
+1000 DM0 LDP MR000
MOV.S +1000 DM0
Scaling upper MOV.S +50 DM1
limit U_WRSCL.S #1 #0 DM0
MOV.S LDP MR000
+50 DM1
OR R34001
ANB DR34301
Scaling lower OUT DR34001
limit

U_WRSCL.S KV-SAD04
Unit No. CH No. Scaling setting
#1 #0 DM0
Scaling upper
limit

MR000 DR34301 DR34001

Setting update completed Setting update request

R34001

Setting update request

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-69


2-3 KV-SAD04 Unit Specific Instructions

U_WRLMT U_WRLMT(.S) U_WRLMT


Write comparator 
To write comparator
setting value to
setting value
@U_WRLMT @U_WRLMT(.S) U_WRLMT buffer memory.

2 Ladder program Input mode


KV-SAD04

Execution condition U_WRLMT.S KV-SAD04


n1 n2 S U _ W R L M T n1 n2 S

Execution condition KV-SAD04


n1 n2 S @ U _ W R L M T n1 n2 S

Available Devices
Index modify
Indirect Local
Bit device Word devices Constants 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 To specify unit No.(1 to 48).*1
n2 To specify analog input (0 to 3) channel or the device where channel is stored. *2
S To specify the leading device that stores comparator setting value. *3 *4
*1 $( HEX selection) can not be used.
*2 If bit devices are specified in n2 , continuous 16 bits will be processed. 
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 When bit devices are specified in S , continuous 16 x 4 bit are processed. 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.).
*4 When it is set to the constant (-32768 to 32767) in S , comparator upper limit ON level/OFF
level, comparator lower limit ON level/OFF level of buffer memory will be totally stored to the
same value specified.

• Scaling comparator value is not changed by only performing U_WRSCL


Point
instruction. Update Setup Ladder is required.
"Change Setting Value via Unit Specific Instruction", Page 2-25
• If performing U_WRSCL instruction, the value identical to the value written into
buffer memory is also stored in DM assigned to the comparator setting value.
• In Unit Editor, if comparator value is set to "Unit Editor selection", when it
switches from the PROGRAM mode to the RUN mode, the comparator setting
value returns to the default value specified by Unit Editor.

2-70 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-3 KV-SAD04 Unit Specific Instructions

Description of Operation

U_WRLMT(.S) When execution condition is ON, write 4-word BIN value starting from S as the
comparator setting value into buffer memories of channel n2 of unit n1 .
Device No. Buffer memory
Comparator upper limit ON level
2
S +0

KV-SAD04
S Comparator upper limit OFF level
+1
S +2 Comparator lower limit OFF level
S +3 Comparator lower limit ON level

@ U_WRLMT(.S) The instruction is performed only at the rising edge of condition.

Operation flag
CR2009 No change in status
CR2010 No change in status
CR2011 No change in status
It is ON in any one of the following conditions, otherwise it is OFF.
• When unit No. specified in n1 is 49 above
• When unit No. specified in n1 is not KV-SAD04
CR2012
• When channel No. of analog input specified in n2 exceeds 4
• When 4 word device fails to be guaranteed from the specified device No in S .
• Improper indirect selection or index modification range
* When CR2012 is ON, detailed error information of CM5100 to CM5176 will be stored.
KV-7000 Series User's Manual

Sample Program
When MR000 is rising edge, this program changes the first connected KV-SAD04's CH0 comparator
upper limit value ON level to +950, comparator upper limit value OFF level to +900, comparator lower
limit value OFF level to -50, and comparator lower limit value ON level to -100.

MR000 MOV.S ;(Mnemonics list)


+950 DM0 LDP MR000
Comparator MOV.S +950 DM0
upper limit ON MOV.S +900 DM1
MOV.S MOV.S -50 DM2
+900 DM1 MOV.S -100 DM3
Comparator U_WRLMT.S #1 #0 DM0
upper limit OFF LDP MR000
MOV.S
OR R34001
-50 DM2
ANB DR34301
Comparator OUT DR34001
lower limit OFF
MOV.S
-100 DM3

Comparator
lower limit ON
U_WRLMT.S KV-SAD04
Unit No. CH No. Comparator setting
#1 #0 DM0
Comparator
upper limit ON
MR000 DR34301 DR34001

Setting update completed Setting update request

R34001

Setting update request

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-71


2-3 KV-SAD04 Unit Specific Instructions

U_WRAVG U_WRAVG(.U) U_WRAVG


Write average
To write average
constant to buffer
constant
@U_WRAVG @U_WRAVG(.U) U_WRAVG memory.

2 Ladder program Input mode


KV-SAD04

Execution condition U_WRAVG KV-SAD04


n1 n2 S U _ W R A V G n1 n2 S

Execution condition KV-SAD04


n1 n2 S @ U _ W R A V G n1 n2 S

Available Devices
Index modify
Indirect Local
Bit device Word devices Constants 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 To specify unit No. (1 to 48). *1
n2 To specify analog input (0 to 3) channel or the device where channel is stored. *2
S To specify the averaging constant or the device that stores average constant. *2
*1 $( HEX selection) can not be used.
*2 If bit devices are specified in n2 and S , continuous 16 bits will be processed. 
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.).

• Average constant is not changed by only performing U_WRAVG instruction.


Point
Update setting Ladder is required.
"Change Setting Value via Unit Specific Instruction", Page 2-25
• If performing U_WRAVG instruction, the value identical to the value written into
buffer memory is also stored in DM assigned to the average constant .
• In Unit Editor, if average constant is set to "Unit Editor selection", when it
switches from the PROGRAM mode to the RUN mode, average constant returns
to the default value specified by Unit Editor.

2-72 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-3 KV-SAD04 Unit Specific Instructions

Description of Operation

U_WRAVG(.U) When execution condition is ON, write 1-word BIN value starting in S as
the averaging constants into buffer memories of channel n2 of unit n1 .

Constant/device No. Buffer memory


2

KV-SAD04
S Averaging constants

@ U_WRAVG(.U) The instruction is performed only at the rising edge of condition.

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
It is ON in any one of the following conditions, otherwise it is OFF.
• When unit No. specified in n1 is 49 above
CR2012 • When unit No. specified in n1 is not KV-SAD04
• When channel No. of analog input specified in n2 exceeds 4
• Improper indirect selection or index modification range
* When CR2012 is ON, detailed error information of CM5100 to CM5176 will be stored.
KV-7000 Series User's Manual

Sample Program

When MR000 is rising edge, this program changes the first connected KV-SAD04's CH0 average
constant to +1000.

;(Mnemonics list)
MR000 U_WRAVG KV-SAD04
Unit No. CH No. Average constant LDP MR000
#1 #0 #1000 U_WRAVG #1 #0 #1000
Average LDP MR000
constant OR R34001
ANB DR34301
MR000 DR34301 DR34001
OUT DR34001
Setting update complete Setting update request

R34001

Setting update request

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-73


2-3 KV-SAD04 Unit Specific Instructions

Reads data with


U_RDBF U_RDBF(.U) U_RDBF
Reads buffering
buffering performed from
@U_RDBF @U_RDBF(.U) U_RDBF data the buffer
memory.

2 Ladder program Input mode


Execution condition U_RDBF KV-SAD04
KV-SAD04

n1 n2 D n3 U _ R D B F n1 n2 D n3

Execution condition U_RDBF KV-SAD04


n1 n2 D n3 @ U _ R D B F n1 n2 D n3

Available Devices
Index modify
Const Indirect Local
Bit device Word devices ants 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 ○ - ○ - - ○ ○ - - - ○ - - ○ ○ ○
n3 ○ - ○ - - ○ ○ ○ ○ ○ ○ ○ - ○ ○ ○

Operand Description
n1 To specify unit No. (1 to 48). *1

n2 To specify analog input (0 to 3) channel or the device where 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(.U) When the execution condition is ON, the special data of channel number n1
buffered in n2 unit is n3 word read and then stored in D to D +
n3 -1 as binary values. At the same time, the data read is deleted from the
buffer memory, so that subsequent data in the buffer memory is packed forwards.
Buffer memory Buffer memory Device
Ⓐ Ⓔ D2 : Ⓐ
Ⓑ Ⓕ D2 +1 : Ⓑ
Ⓒ Ⓖ D2 +2 : Ⓒ

Ⓓ Ⓗ D2 + n3 -1 : Ⓓ
Ⓔ Ⓘ
Ⓕ Ⓙ Brought forwards
Ⓖ Ⓚ

@ U_RDBF(.U) The instruction is performed only at the rising edge of condition.

2-74 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-3 KV-SAD04 Unit Specific Instructions

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
It is ON in any one of the following conditions, otherwise it is OFF.
• If the unit number specified by n1 is 49 or more
2
• If the unit with unit number specified by n1 is not KV-SAD04

KV-SAD04
CR2012
• If the channel number of analog input specified by n2 is 4 or more
• If the continuous n3 word device cannot be secured from the device number specified by D
• If the range in indirect selection or index modification is incorrect
* When CR2012 is ON, detailed error information of CM5100 to CM5176 will be stored.
KV-7000 Series User's Manual

Sample program

When the first connected KV-SAD04 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
Operation starts 1 END
scan ON INT #1 #16
LD CR2002
END U_RDBF #1 #0 EM0 #3000
RETI
ENDH

INT
Unit No. Interrupt factor
#1 #16
KV-SAD04 ch0 Buffering
completed

CR2002 U_RDBF KV-SAD04


Unit No. CH No. Stg dev Data count
#1 #0 EM0 #3000
Always ON KV-SAD04

RETI

ENDH

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-75


2-4 KV-SAD04 Unit Specific Functions
This section describes the specific functions of KV-SAD04 used in script program. For using in the
ladder program, see "2-3 KV-SAD04 Unit Specific Instructions", Page 2-61.

List of KV-SAD04 Unit Functions

2
Function Function Instruction description See
KV-SAD04

Read A/D conversion


U_RDAD Read A/D conversion data from buffer memory. Page 2-77
(special) data
Read all types of A/D Read A/D conversion data, special data, analog
U_RDADB Page 2-78
conversion data data, peak and Bottom from buffer memory.

Change special data offset value U_WROFST Special data offset value. Page 2-79

Write scaling setting value U_WRSCL Write scaling setting value to buffer memory. Page 2-80

Write comparator setting value U_WRLMT Write comparator setting value to buffer memory. Page 2-81

Write average constant U_WRAVG Write average constant to buffer memory. Page 2-82

Special data in A/D conversion with buffering


Read buffering data U_RDBF Page 2-83
performed is batch-read from the buffer memory.

The processing independent of scanning time can be conducted due to every operation
Reference
performed using specific function.

2-76 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-4 KV-SAD04 Unit Specific Functions

Contact function

U_RDAD Read A/D conversion (special) data

U_RDAD ([Execution condition]*1, unit No., ch No., storage destination device No.)
2
Operation type Constant Operation
Argument/return value Description Device formula

KV-SAD04
.U .S .D .L .F .DF .B .T #/$
n1 Unit No.*2 Specify unit No.(1 to 48). - - - - - - - - ○ - ○
Specify analog input (0 to 3) channel .U .U .U .U
n2 Ch No.*4 - - - - ○ ○ ○
or the device where channel stored.
D Storage
Specify the device storing read A/D .S .S .S .S - - - -
destination - - ○
conversion (special) data.
device No.*3*4
R Return value None - - - - - - - - - - -

*1 "[ ]" can be omitted (if execution condition is omitted, the instruction will be always performed
(performed in every scanning).
*2 $( HEX selection) can not be used.
*3 T, C, and Z cannot be specified.
*4 If bit devices are specified in n2 and D , continuous 16 bits will be processed. 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.).

Description of Operation

When execution condition is ON, read A/D conversion (special) data (scaling, averaging, etc.) of
channel n2 from the unit n1 and store into D in BIN format.

For details, see "U_RDAD instruction", Page 2-62.

 Format example
Programming script U_RDAD (MR000, 1, 0, DM0)
Description of Operation When MR000 is ON, reads the first connected KV-SAD04 CH0's A/D conversion
(special) data, and then stores it to DM0.
Ladder conversion
MR000 U_RDAD.S KV-SAD04
Unit No. CH No. Stg dev
#1 #0 DM0

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-77


2-4 KV-SAD04 Unit Specific Functions

Contact function

U_RDADB Read all types of A/D conversion data

U_RDADB ([Execution condition]*1, unit No., ch No., leading device No.)


2
Operation type Constant Operation
Argument/return value Description
KV-SAD04

Device formula
.U .S .D .L .F .DF .B .T #/$
n1 Unit No.*2 Specify unit No.(1 to 48). - - - - - - - - ○ - ○
Specify analog input (0 to 3) channel or .U .U .U .U
n2 Ch No.*4 - - - - ○ ○ ○
the device where channel stored.
D Leading Specify the leading device storing 5 .S .S .S .S - - - - - ○ -
device No.*3 *5 data related to A/D conversion.
R Return value None - - - - - - - - - - -

*1 "[ ]" can be omitted (if execution condition is omitted, the instruction will be always performed (performed
in every scanning).
*2 $( HEX selection) can not be used.
*3 T, C, and Z cannot be specified.
*4 If bit devices are specified in n2 , continuous 16 bits will be processed. 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 When bit devices are specified in D , continuous 16 × 5 bits are processed. 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.).

Description of Operation

When execution condition is ON, read 5 related data to A/D conversion (A/D conversion data, special
data, analog data, peak and valley) of channel n2 from the unit n1 and store into D to
D +4 in BIN format.

For details, see "U_RDADB instruction", Page 2-64.

 Format example
Programming script U_RDADB (MR000, 1, 0, DM0)
Description of Operation When MR000 is ON, reads the first connected KV-SAD04 CH0's A/D conversion
data, special data, analog data, peak value, and bottom value, and then stores them
to DM0 to DM4.
Ladder conversion
MR000 U_RDADB.S KV-SAD04
Unit No. CH No. Stg dev
#1 #0 DM0

2-78 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-4 KV-SAD04 Unit Specific Functions

Contact function

U_WROFST Change special data offset value

U_WROFST ([Execution condition]*1, unit No., ch No., special data offset value)
2
Operation type Constant Operation

KV-SAD04
Argument/return value Description Device
.U .S .D .L .F .DF .B .T #/$ formula
n1 Unit No.*2 Specify unit No.(1 to 48). - - - - - - - - ○ - ○
Specify analog input (0 to 3) channel or .U .U .U .U
n2 Ch No.*4 - - - - ○ ○ ○
the device where channel stored.
S Special data Specify special data offset value or the .S .S .S .S - - - - ○ ○ ○
offset value *3*4 device storing the value.
R Return value None - - - - - - - - - - -

*1 "[ ]" can be omitted (if execution condition is omitted, the instruction will be always performed (performed
in every scanning).
*2 $( HEX selection) can not be used.
*3 T, C, and Z cannot be specified.
*4 If bit devices are specified in n2 and S , continuous 16 bits will be processed. 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.).

Description of Operation

When execution condition is ON, read special data offset value specified in S as 2-word BIN value
from channel of n2 unit n1 .

For details, see "U_WROFST instructions", Page 2-66

 Format example
Programming script U_WROFST (MR000, 1, 0, +100)
Description of Operation When MR000 is ON, changes the first connected KV-SAD04 CH0's special data
offset value to +100.
Ladder conversion
MR000 U_WROFST.S KV-SAD04
Unit No. CH No. Offset
#1 #0 +100

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-79


2-4 KV-SAD04 Unit Specific Functions

Contact function

U_WRSCL Write scaling setting value

U_WRSCL ([Execution condition]*1, unit No., ch No., leading device No.)


2
Operation type Constant Operation
KV-SAD04

Argument/return value Description Device


.U .S .D .L .F .DF .B .T #/$ formula
n1 Unit No.*2 Specify unit No. (1 to 48). - - - - - - - - ○ - ○
Specify analog input (0 to 3) channel or .U .U .U .U
n2 Ch No.*4 - - - - ○ ○ ○
the device where channel stored.
S Leading Specify the leading device storing .S .S .S .S - - - - - ○ -
device No.*3 *5 scaling setting value.
R Return value None - - - - - - - - - - -

*1 "[ ]" can be omitted (if execution condition is omitted, the instruction will be always performed
(performed in every scanning)).
*2 $( HEX selection) can not be used.
*3 T, C, and Z cannot be specified.
*4 If bit devices are specified in n2 , continuous 16 bits will be processed. 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 When bit devices are specified in S , continuous 16 x 2 bits are processed. 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.).

Description of Operation

When execution condition is ON, write 2-word BIN value starting from S as the comparator setting
value into buffer memories of channel n2 of unit n1 .

For details, see "U_WRSCL instruction", Page 2-68.

Scaling setting value is not changed by only performing U_WRSCL instruction.


Point
Update setting Ladder is required.
"Change Setting Value via Unit Specific Instruction", Page 2-25

 Format example
Programming script U_WRSCL (MR000, 1, 0, DM0)
Description of Operation When MR000 is ON, writes DM0 and DM1 values to the first connected KV-SAD04's
buffer memory as CH0's scaling setting values.
Ladder conversion
MR000 U_WRSCL.S KV-SAD04
Unit No. CH No. Scaling setting
#1 #0 DM0

2-80 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-4 KV-SAD04 Unit Specific Functions

Contact function

U_WRLMT Write comparator setting value

U_WRLMT ([Execution condition]*1, unit No., ch No., leading device No.)


2
Operation type Constant Operation

KV-SAD04
Argument/Return Description Device
.U .S .D .L .F .DF .B .T #/$ formula
n1 Unit No.*2 Specify unit No.(1 to 48). - - - - - - - - ○ - ○
Specify analog input (0 to 3) channel or .U .U .U .U
n2 Ch No.*4 - - - - ○ ○ ○
the device where channel stored.
S Leading Specify the device of comparator .S .S .S .S - - - - - ○ -
device No.*3 *5 setting value.
R Return value None - - - - - - - - - - -

*1 "[ ]" can be omitted (if execution condition is omitted, the instruction will be always performed (performed
in every scanning).
*2 $( HEX selection) can not be used.
*3 T, C, and Z cannot be specified.
*4 If bit devices are specified in n2 , continuous 16 bits will be processed. 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 When bit devices are specified in S , continuous 16 x 4 bits are processed. 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.).

Description of Operation

When execution condition is ON, write 4-word BIN value starting from S as the comparator setting
value into buffer memories of channel n2 of unit n1 .

For details, see "U_WRLMT instructions", Page 2-70

Scaling comparator is not changed by only performing U_WRLMT instruction.


Point
Update setting Ladder is required.
"Change Setting Value via Unit Specific Instruction", Page 2-25

 Format example
Programming script U_WRLMT (MR000, 1, 0, DM0)
Description of Operation When MR000 is ON, writes DM0 to DM3 values to the first connected KV-SAD04's
buffer memory as CH0's comparator setting values.
Ladder conversion
MR000 U_WRLMT.S KV-SAD04
Unit No. CH No. Comparator setting
#1 #0 DM0

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-81


2-4 KV-SAD04 Unit Specific Functions

Contact function

U_WRAVG Write average constant

U_WRAVG ([Execution condition]*1, unit No., ch No., average constant)


2
Operation type Constant Operation
KV-SAD04

Argument/return value Description Device


.U .S .D .L .F .DF .B .T #/$ formula
n1 Unit No.*2 Specify unit No.(1 to 48). - - - - - - - - ○ - ○
Specify analog input (0 to 3) channel or .U .U .U .U
n2 Ch No.*4 - - - - ○ ○ ○
the device where channel stored.
S Average Specify the device of average constant .U .U .U .U - - - - ○ ○ ○
constant*3*4 or storage setting value.
R Return value None - - - - - - - - - - -

*1 "[ ]" can be omitted (if execution condition is omitted, the instruction will be always performed (performed
in every scanning).
*2 $( HEX selection) can not be used.
*3 T, C, and Z cannot be specified.
*4 If bit devices are specified in n2 and S , continuous 16 bits will be processed. 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.).

Description of Operation

When execution condition is ON, write 1-word BIN value in S as the average constant into buffer
memories of channel n2 of unit n1 .

For details, see "U_WRAVG instructions", Page 2-72

Average constant setting value is not changed by only performing U_WRAVG


Point
instruction.
Update setting Ladder is required.
"Change Setting Value via Unit Specific Instruction", Page 2-25

 Format example
Programming script U_WRAVG (MR000, 1, 0, +10)
Description of Operation When MR000 is ON, writes 10 to the first connected KV-SAD04's buffer memory as
CH0's average constant.
Ladder conversion
MR000 U_WRAVG KV-SAD04
Unit No. CH No. Average constant
#1 #0 +10

2-82 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-4 KV-SAD04 Unit Specific Functions

Contact function

U_RDBF Reads buffering data

U_RDBF ([Execution condition]*1, unit No., ch No., leading device No., number of data to
read) 2
Operation type Constant Operation
Argument/return value Description

KV-SAD04
Device formula
.U .S .D .L .F .DF .B .T #/$
n1 Unit No.*2 Specify unit No.(1 to 48). - - - - - - - - ○ - ○
Specify analog input (0 to 3) channel or .U .U .U .U
n2 Ch No.*4 - - - - ○ ○ ○
the device where channel stored.
D Leading Specify the leading device storing 5 .S .S .S .S - - - - - ○ -
device No.*3 *4 data related to A/D conversion.
n3 Number of data Specifies the number of data to read .U .U .U .U - - - - ○ ○ ○
to read*4 *5 from the buffer memory.
R Return value None - - - - - - - - - - -

*1 "[ ]" can be omitted (if execution condition is omitted, the instruction will be always performed (performed
in every scanning).
*2 $( HEX selection) can not be used.
*3 T, C, and Z cannot be specified.
*4 If bit device is specified in n1 , n2 , D , n3 , continuous 16 bits will be handled. It is not
possible to specify any location other than the beginning of a channel (R002, R106, R1012, etc.).
Specify the beginning of a channel (R000, R100, R1000, etc.).
*5 If buffering is performed at every 32 bits, it is necessary to read buffering count×2 of number of data.

Operation explanation

When the execution condition is ON, the special data of channel number n1 buffered in n2 unit
is n3 word read and then stored in D to D + n3 -1 as binary values.

For details, see "U_RDBF instruction", Page 2-74.

 Format example
Programming script U_RDBF (LDP(MR000), 1, 0, DM0, 4000)
Description of Operation Reads 4000 words of CH0's special data buffered in the first connected KV-SAD04 at
the rising edge of MR000, and stores it in DM0 to DM3999.
Ladder conversion
MR000 U_RDBF KV-SAD04 Read number
Unit No. CH No. Stg dev of data
#1 #0 DM0 #4000

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-83


2-5 Access Window
This section describes the procedure for monitoring, performing tests and changing the settings of the
KV-SAD04 using the access window of the CPU Unit.

Access Window

2 KV-SAD04 can be monitored, tested and its settings can be changed using the Access Window on the
CPU Unit.
KV-SAD04

The following items can be monitored and set on the access window.
KV-7500

REALTIME
Logic Controller
CARD
MENU ENTER

A/D Conv Data Scaling H Func Data Offset

.96$'&+ .96$'&+ .96$'&+


$'ኚ᥮ࢹ࣮ࢱ 㺛㺗㺎㺶㺻㺖㺼ୖ㝈್ ≉Ṧ㺡㺼㺎㺞㺓㺪㺜㺍㺢್
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ


.96$'ࠉࠉ&+ .96$'&+ .96$'&+


$'&RQY'DWD 6FDOLQJ+ )XQF'DWD2IIVHW
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ


Analog Data Channel Skip Holding

.96$'&+ .96$'&+ .96$'&+


࢔ࢼࣟࢢࢹ࣮ࢱ &+ࢫ࢟ࢵࣉ ࣮࣍ࣝࢻ୰
 ࡋ࡞࠸ ࠉࠉࠉࠉࠉࠉࠉ21
ࠉࠉࠉࠉࠉࠉ>9@

.96$'&+ .96$'&+ .96$'&+


$QDORJ'DWD &KDQQHO6NLS +ROGLQJ
 'LVDEOH ࠉࠉࠉࠉࠉࠉࠉ21
ࠉࠉࠉࠉࠉࠉ>9@

Input Range Averaging Cmprtr Up Lmt

.96$'&+ .96$'&+ .96$'&+


ධຊࣞࣥࢪ ᖹᆒฎ⌮ 㺘㺻㺨㺽㺸㺎㺞ୖ㝈㺶㺸㺎
ࠉ㹼>9@ ࠉࠉࠉࠉ⛣ືᖹᆒ ࠉࠉࠉࠉࠉࠉ2))
  

.96$'&+ .96$'&+ .96$'&+


,QSXW5DQJH $YHUDJLQJ &PSUWU8S/PW
WR>9@ ࠉ0RYLQJ$YHUDJH ࠉࠉࠉࠉࠉࠉ2))
  

2-84 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-5 Access Window

About changing of setting in the Access Window

Though some settings can be changed in the access window, basically use Unit Editor to change
settings.

When changing settings in the access window, change the CPU unit to PROGRAM
Reference
mode first. 2
The actual change in the setting (when the change takes effect) occurs when you switch

KV-SAD04
the CPU unit from the PROGRAM mode to the RUN mode.

Menu structure

The access window menu is configured as follows:


Monitor CH0 A/D Conv Data (initial display)
Function Data
Analog Data
Peak Value
Valley Value
Zero Drift
Wire Breaking
Holding
Cmprtr Up Lmt
Cmprtr Low Lmt
Func Data Enable
Monitor CH1
Monitor CH2
Monitor CH3

Setting CH0 Channel Skip Disable Input Range -10 to +10[V]


Enable 0 to 10[V]
-5 to +5[V]
0 to 5[V]
0 to 20[mA]
1 to 5[V]
4 to 20[mA]
0 to 30[V]
Wire Break Diag. Disabled
Enabled
Averaging Disabled
By Frequency Frequency
By Interval Interval (Unit: ms)
Moving Average Moving Avg Count
Scaling Disabled
Enabled Scaling H
Scaling L
Comparator Disabled
Enabled Comp H ON
Comp H OFF
Comp L OFF
Comp L ON
Zero Clipping Disabled
Enabled

Setting CH1
Setting CH2
Setting CH3

Setting Offset CH0 Func Data Offset


CH1 Func Data Offset
CH2 Func Data Offset
CH3 Func Data Offset

The access window does not appear for the following items.
Point
• CH's setting item with channel skip "Enable"
• Setting values that are set to "DM selection" by Unit Editor
• Function's setting value and relay set to "Disabled"
• During wire break detection or wire break detection of CH with input range set
outside "1 to 5V/4 to 20mA"

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-85


2-5 Access Window

Operating of Access Window

The access window is operated by the setting operation keys on the CPU unit.

Setup key Normal function When Changing Numerical Values


Moves to the normal state without changing
2 MENU Displays the menu.

Select an item.
the setting.

Continuously pressing it for 1 second Changes settings when pressed for 1 second
KV-SAD04

ENTER
or more at the setting screen goes to or longer.
the setting change state.
Changes the selection or increases the
 Changes the page.
amount of change to the setting value.
Changes the selection or decreases the
 Changes the page.
amount of change to the setting value.
 Displays the menu.
Change the digit of the value to change.
 Select an item.

* The settings can only be changed when the CPU unit is in PROGRAM mode.

Moving to the Menu Screen

The following describes the procedure for moving to the menu screen.

1 Press the direct access switch of the KV-SAD04 you want to monitor.
The direct access switch starts blinking, and the monitor screen for Direct access switch
CH0 on the KV-SAD04 you selected is displayed on the access
window.
KV-7500 KV-SAD04

.96$'&+ .96$'ࠉࠉ&+
$'ኚ᥮ࢹ࣮ࢱ $'&RQY'DWD
REALTIME
  CARD
Logic Controller
V0+
MENU ENTER I0+
CH0
0-
COM
CARD SW V1+
I1+
CH1
1-
USB COM
V2+
I2+
CH2
2-
COM

LINK V3+
I3+
CH3
3-
COM
NS
EtherNet/IP™

2 Press the "MENU" key of the CPU unit.


Menu screen appears.
Select the menu screen by the "/ " keys.

㺃タᐃ&+ 㺃6HWWLQJ&+
㺃タᐃ&+ 㺃6HWWLQJ&+ MENU ENTER
㺃タᐃ㺓㺪㺜㺍㺢್ 㺃6HWWLQJ2IIVHW
㺃ࣔࢽࢱ&+ 㺃0RQLWRU&+

To return the CPU unit menu screen, either press the "MENU" key again, or press
Point
the direct access switch that is blinking.
For access window, see User's Manual of every CPU unit.

2-86 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-5 Access Window

Setting Screen

The following describes the procedure for changing the settings of the KV-SAD04 using the Access
Window of the CPU Unit.

The settings can only be changed when the CPU unit is in PROGRAM mode.
2
Point

KV-SAD04
How to Change Settings

A part of setting contents of "KV-SAD04" can be changed in Access Window.


Change scaling upper limit value in the following sequence.

1 Select the channel to be set in the menu screen using the "" and "" keys, and press the
"ENTER" key.
The selected channel's channel skip setting screen appears.

.96$'ࠉࠉ&+ .96$'ࠉࠉ&+
&+ࢫ࢟ࢵࣉ &KDQQHO6NLS MENU ENTER
ࠉࠉࠉࠉࠉࡋ࡞࠸ ࠉࠉࠉࠉ'LVDEOH

2 Use the "" / "" keys to select the scaling upper limit value screen.

.96$'ࠉࠉ&+ .96$'ࠉࠉ&+
㺛㺗㺎㺶㺻㺖㺼ୖ㝈್ 6FDOLQJ+ MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ

3 Continuously press the "ENTER" key for more than 1 second.


The setting item blinks, and the increment/decrement value appears at the bottom right of the screen.

.96$'ࠉࠉ&+ .96$'ࠉࠉ&+
㺛㺗㺎㺶㺻㺖㺼ୖ㝈್ 6FDOLQJ+ MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉࠉࠉ

4 Set the increment/decrement value.


Press the "" and "" keys to change the digit to increment/decrement.

.96$'ࠉࠉ&+ .96$'ࠉࠉ&+
㺛㺗㺎㺶㺻㺖㺼ୖ㝈್ 6FDOLQJ+ MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉࠉࠉ

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-87


2-5 Access Window

5 Each press of the "" key increments the increment/decrement value, while each press of the
"" key decrements the increment/decrement value.

.96$'ࠉࠉ&+ .96$'ࠉࠉ&+
㺛㺗㺎㺶㺻㺖㺼ୖ㝈್ 6FDOLQJ+ MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ

2
ࠉࠉࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉࠉࠉ

.96$'ࠉࠉ&+ .96$'ࠉࠉ&+
㺛㺗㺎㺶㺻㺖㺼ୖ㝈್ 6FDOLQJ+ MENU ENTER
KV-SAD04

ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉࠉࠉ

6 To apply the setting, hold down the "ENTER" key for at least one second.
Scaling upper limit value has been set.

• The settings can only be changed when the CPU unit is in PROGRAM mode.
Point
Cannot be changed in the RUN mode.
• If the selection method of setting value is set to " DM selection ", it can not be
changed.

Reference Modifiable items and setting range as follows.

Item Set range


Channel Skip Disable, Enable
Voltage : -10 to +10[V], 0 to 10[V], -5 to +5[V], 
Input Range 0 to 5[V], 1 to 5[V], 0 to 30[V]
Current : 0 to 20[mA], 4 to 20[mA]
Scaling Disabled, Enabled
Scaling H -32000 to +32000
Scaling L -32000 to +32000
Averaging Disabled, By Frequency, By Interval, Moving Average
Frequency 2 to 60000
Interval (Unit: ms) 1 to 1500 (unit: ms)
Moving Avg Count 2 to 2048
Comparator Disabled, Enabled
Comp H ON -32768 to +32767
Comp H OFF -32768 to +32767
Comp L OFF -32768 to +32767
Comp L ON -32768 to +32767
Zero Clipping Disabled, Enabled
Wire Break Diag. Disabled, Enabled

2-88 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-5 Access Window

Monitor Screen

The following describes the procedure for monitoring the settings of the KV-SAD04 using the access
window of the CPU Unit.

How to Monitor the KV-SAD04


2

KV-SAD04
1 Select "Monitoring channel" in the menu screen using the "" and "" keys, and press the
"ENTER" key.
Display the monitor image of A/D conversion data of the selected channel.

.96$'ࠉࠉ&+ .96$'ࠉࠉ&+
$'ኚ᥮ࢹ࣮ࢱ $'&RQY'DWD MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ

2 Select the display data you want to monitor by the "" or "" keys.

・A/D conversion data ・Special data


.96$'ࠉࠉ&+ .96$'ࠉࠉ&+ .96$'ࠉࠉ&+ .96$'ࠉࠉ&+
$'ኚ᥮ࢹ࣮ࢱ $'&RQY'DWD ≉Ṧࢹ࣮ࢱ )XQFWLRQ'DWD
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ  
ࠉ ࠉ

・Analog data ・Peak


.96$'ࠉࠉ&+ .96$'ࠉࠉ&+ .96$'ࠉࠉ&+ .96$'ࠉࠉ&+
࢔ࢼࣟࢢࢹ࣮ࢱ $QDORJ'DWD ࣆ࣮ࢡ್ 3HDN9DOXH
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ  
ࠉ>9@ ࠉ>9@

・Bottom ・During hold

.96$'ࠉࠉ&+ .96$'ࠉࠉ&+ .96$'ࠉࠉ&+ .96$'ࠉࠉ&+


࣎ࢺ್࣒ 9DOOH\9DOXH ࣮࣍ࣝࢻ୰ +ROGLQJ
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ ࠉ21 ࠉ21

・Wire breaking detection ・Comparator upper limit relay

.96$'ࠉࠉ&+ .96$'ࠉࠉ&+ .96$'ࠉࠉ&+ .96$'ࠉࠉ&+


᩿⥺᳨▱୰ :LUH%UHDNLQJ 㺘㺻㺨㺽㺸㺎㺞ୖ㝈㺶㺸㺎 &PSUWU8S/PW
ࠉ2)) ࠉ2)) ࠉࠉࠉࠉࠉࠉࠉ21 ࠉࠉࠉࠉࠉࠉࠉ21

・Comparator lower limit relay ・Special data enabled

.96$'ࠉࠉ&+ .96$'ࠉࠉ&+ .96$'ࠉࠉ&+ .96$'ࠉࠉ&+


㺘㺻㺨㺽㺸㺎㺞ୗ㝈㺶㺸㺎 &PSUWU/RZ/PW ≉Ṧࢹ࣮ࢱ᭷ຠ )XQF'DWD(QDEOH
ࠉࠉࠉࠉࠉࠉ2)) ࠉ2)) ࠉࠉࠉࠉࠉࠉࠉ21 ࠉࠉࠉࠉࠉࠉࠉ21

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-89


2-5 Access Window

Unit Test

The following describes the procedure for testing analog input of the KV-SAD04 using the Access
Window of the CPU Unit.

2 Unit test is possible only when the CPU unit is in the PROGRAM mode.
Point
KV-SAD04

This can be checked even when no project that includes configuration settings for the
Reference
unit to be set in KV STUDIO has been sent to the CPU unit.

How to Perform Testing

1 Press the "MENU" key.


The CPU unit's menu screen appears. (If another unit is already selected, press the "MENU" key
twice.)

2 Use the ""/"" key to select "3.Unit Test", and then press then "ENTER" key.
The following screen appears.

ᣑᙇࣘࢽࢵࢺࡀ 8QLWZLOO
ືస೵Ṇࡋࡲࡍࠋ VWRSZRUNLQJ MENU ENTER
⥆⾜ࡋࡲࡍ࠿㸽 &RQWLQXH"
ࠉࠉࠉࠉࠉ(17(5 ࠉࠉࠉࠉ(17(5

3 Continuously press the "ENTER" key for 1 second or more.


The unit selection screen appears.

4 Press the direct access switch of KV-SAD04.


KV-SAD04 Unit Test's menu screen appears.

.96$' .96$'
㺃ࢸࢫࢺ 㺃7HVW
㺃タᐃ 㺃6HWWLQJ
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ

5 Use the ""/"" key to select ". Test", and then press then "ENTER" key.

MENU ENTER

6 Use the ""/"" key to select a channel to test.


You can check the analog input state of KV-SAD04.

.96$' .96$'
&+ࠉ࢔ࢼࣟࢢ &+$QDORJ MENU ENTER
ࠉࠉࠉࠉࠉࠉ>9@ ࠉࠉࠉࠉࠉࠉ>9@
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ

If you select ". Setting", you can change the input range from "-10 to +10V/0 to 20mA/
Reference
0 to 30V".

2-90 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-6 Unit Monitor
Unit monitor function of Ladder Support Software KV STUDIO is designed to ensure the value of relay
or DM used in the unit to be monitored conforms to the unit, and with optimal display. This section
describes how to view Unit Monitor and how to operate Unit Monitor.

Unit Monitor Overview

Unit monitor is a window for optimal display of the value of relay or DM used in monitor unit according to
2
different units.

KV-SAD04
The Unit Monitor has the following functions:
• DMs and relays currently assigned to each unit can be displayed in the registering sequence.
• Each unit has provided display formats and layout templates for convenient monitoring.
• The selected unit can be monitored simply by selecting the unit to monitor without having to worry
about relay or DM assignment status.

Point Unit Monitor can only be selected from Monitor or edit menu.

Displaying Unit Monitor Window

The monitor unit is displayed as follows.

1 On the menu, select "Monitor/Simulator" -> "Unit Monitor".


"Unit Monitor selection" dialog box appears.

2 Select the unit to be displayed, click the "Display" button.

Other procedure
• Select and double click the unit to be selected in unit
setting of workspace. Besides, select "Unit Monitor" from
the right-click menu.
• On Unit Editor, select the unit to be monitored, on the right-
click menu, select "Unit Monitor". On the menu, select
"View" -> "Unit Monitor"

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-91


2-6 Unit Monitor

KV-SAD04 Unit Monitor

 Brief display
(2) A/D conversion indicator
(1) Unit information
2 (3)Display CH
KV-SAD04

(4) Display input range

(5) Display AD conversion data

(6) Display special data

(7) Display enabled special data

(8) Display offset

(9)Display analog data

(10) Display wire break

(11) "Details" button (12)Display area for error message

Name Function See


(1) Unit information Display the connection No. and Model of unit. -
ON during A/D conversion. OFF when system functions is
(2) A/D conversion indicator Page 2-21
abnormal and then A/D conversion fails.
(3) Display CH Displays channel name. -
(4) Display input range Displays the set input range. Page 2-29
(5) Display A/D conversion data Displays the A/D conversion data. Page 2-19
(6) Display special data Displays the special data. Page 2-19
(7) Display special data enabled Displays the ON/OFF status of the special data valid relay. Page 2-33
You can monitor and change the special data offset value set
(8) Display offset Page 2-36
up.
Display the voltage/current value converted from A/D
(9) Display analog data Page 2-19
conversion data.
Display the ON/OFF state of the wire break detection relays.
- :OFF
(10) Display wire break Page 2-45
* :ON
If one function is set to "disabled", and "---" will be shown.
(11) "Details" button Click to display detailed data. -
(12) Display area for error message Display error contents when an error occurs. Page A-4

2-92 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2-6 Unit Monitor

 Detailed display
Status of every function can be monitored and setting value changed by detailed display.

• If one function is set to "disabled", and "---" will be shown, this function cannot
Point
be monitored or changed.
• If the selection method is set to "Unit Editor selection", the background of the
function setting value is grey and cannot be changed (setting updated).
2

KV-SAD04
• If its selection method is set to "DM selection", the background of its function
setting value is white and can be changed (setting updated).

(1) Scaling

(2) Zero drift

(3)Comparator

(4) Hold

(5)Averaging

(6)"Hide detail" button (7) "Read setting" button (8) "Update setting" button

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 2-93


2-6 Unit Monitor

Name Function See


Can monitor and change scaling upper limit, scaling lower limit Page
(1) Scaling
value. 2-31
Can monitor ON/ OFF status of zero drift relay and forcedly turn Page
(2) Zero drift
the zero drift relay ON/ OFF. 2-38
2 Can monitor and change every level of comparator function. In
addition, can also monitor ON/ OFF status of comparator upper limit Page
(3) Comparator
KV-SAD04

relay, comparator lower limit relay and forcedly turn comparator 2-42
reset relay ON/ OFF .
Can monitor peak, Bottom and ON/OFF status of status keeping Page
(4) Hold
relay. In addition, can forcedly turn the hold relay ON/OFF . 2-40
Can monitor category of averaging function, monitor and change Page
(5) Averaging
average constant. 2-32
(6) "Hide detail" button Close detailed display of data -
Read the value of DM assigned to the setting value specified by
(7) "Read setting" button -
DM from the CPU unit.
Forcedly turn the setting update request relay ON/ OFF, update
Page
(8) "Update setting" button the internal setting value of KV-SAD04 (only DM specified setting
2-23
value) with the value input to the Unit Monitor.

After "Unit Monitor" is started, setting value (DM selection) updated via Ladder
Point
cannot be mapped in the "Unit Monitor". Please press the "Read setting" button,
updating to the latest message.

2-94 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3
KV-SDA04
This chapter describes D/A conversion unit KV-SDA04.

3-1 Specification & D/A Conversion •••••••••••••••••••••••••• 3-2


3-2 Settings & Various Functions ••••••••••••••••••••••••••• 3-13
3-3 KV-SDA04 Unit Specific Instructions •••••••••••••••••• 3-45
3-4 KV-SDA04 Unit Specific Functions •••••••••••••••••••• 3-54
3-5 Access Window ••••••••••••••••••••••••••••••••••••••••••• 3-59
3-6 Unit Monitor •••••••••••••••••••••••••••••••••••••••••••••••• 3-67

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-1


3-1 Specification & D/A Conversion
The section describes "KV-SDA04" specification, input terminal wiring and D/A conversion.

Specifications

 General specification
Model KV-SDA04
For system configurations that use KV-5000/ For system configurations that use only
3 System configuration

Power supply voltage


3000 Series expansion units
DC 24V±10%
KV-7000 Series expansion units
DC 24V (-15% +20%)
Internal current consumption below 170mA
KV-SDA04

Surrounding air temperature 0 to +50°C*1, *2 (no freezing) 0 to +55°C*1 *2 (no freezing)


Relative humidity 10 to 95%RH*1 (no condensation) 5 to 95%RH*1 (no condensation)
Storage temperature -20 to 70°C*1 -25 to 75°C*1
Storage humidity 10 to 95%RH*1 (no condensation) 5 to 95%RH*1 (no condensation)
Operating atmosphere less dust and corrosive gases
Operating altitude 2,000m or less
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)
Withstand voltage AC 1500V, 1 min (between power terminal and input terminals, and between all terminals and housing)
50M or more (DC 500V ohmmeter, measured between power terminal and input/output
Insulation resistance
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
IEC61131-2 Continuous vibration
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 Approx. 140g
*1 The range in which the system is used.
*2 According to the unit's central lower side in the control panel.

 Performance specification
Model KV-SDA04
Analog output 4 points
Voltage : -10 to 10V (0.5mV 1/40000) Current: 0 to 20mA (1µA 1/20000)
Analog output range 0 to 10V (0.5mV 1/20000) 4 to 20mA (1µA 1/16000)
(resolution) 0 to 5V (0.25mV 1/20000)
1 to 5V (0.25mV 1/16000)
Conversion speed 10µs/ch
Voltage: ± 0.1% (±20 digit) (@25°C±5°C) Voltage: ± 0.1% (±20 digit) (@25°C±5°C)
Conversion accuracy
± 0.2% (±40 digit) (@0°C to 55°C) ± 0.2% (±40 digit) (@0 to 55°C)
Between analog output and CPU: insulated (photocoupler, transformer)
Isolation mode
Between analog output channels: not insulated
Min. load impedance Voltage: 1k
Max. load impedance Current: 500
Output range switching function, output data offset function, scaling function, error hold
function, upper/lower limit alarm function, output limit function, channel skip function, PROG
Special functions
output function, unit interrupt function, program output function, inter-unit synchronous
period

3-2 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-1 Specification & D/A Conversion

 Number of devices used


Device Type Number of Devices Used
Relay (R) 96 points (6ch)
Data memory (DM) 40 words

 Dimensions

8
1.2 95 3

KV-SDA04
27.3

90
92.5
35.9

22.6 4 95 Unit: [mm]


104.7

Wiring Output Terminals and Internal Circuit Diagram

 Analog output terminal block


Terminal Terminal
Channel Signal Name
Number Name
KV-SDA04
1 V0 Channel 0 voltage output
V0+ 1 2 CH0 I0 Channel 0 current output
I0+ 2
3 COM Channel 0 analog output GND
COM 3
NC 4 4 NC
V1+ 5
V0+
I0+ I1+ 6
5 V1 Channel 1 voltage output
CH0
COM
NC
COM 7 6 CH1 I1 Channel 1 current output
V1+ NC 8
CH1
I1+
V2+ 9
7 COM Channel 1 analog output GND
COM
NC
V2+
I2+ 10 8 NC
COM 11
9 V2 Channel 2 voltage output
I2+
CH2
COM
NC 12
NC
V3+
I3+
V3+ 13 10 CH2 I2 Channel 2 current output
CH3 I3+ 14
COM
NC COM 15
11 COM Channel 2 analog output GND
NC 16 12 NC
13 V3 Channel 3 voltage output
14 CH3 I3 Channel 3 current output
15 COM Channel 3 analog input GND
16 NC

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-3


3-1 Specification & D/A Conversion

 Wiring diagram for analog output terminal


During terminal wiring of analog output terminal block, see following wiring diagram.

● Wiring voltage output (ch0 to ch3)


Please verify whether output range of connecting terminal (channel) is proper.
"Setup Output Range", Page 3-25

V0+

3 I0+
CH0Voltage input
COM
NC Shield
V1+
KV-SDA04

I1+
CH1Voltage input
COM
NC Shield
V2+
I2+
CH2Voltage input
COM
NC Shield
V3+
I3+ CH3Voltage input
COM
NC Shield

Point Select voltage input or current input according to every channel.

● Wiring current output (ch0 to ch3)


Please verify whether output range of connecting terminal (channel) is proper.
"Setup Output Range", Page 3-25

V0+
I0+
COM CH0Current input
NC
Shield
V1+
I1+
COM CH1Current input
NC
Shield
V2+
I2+
COM CH2Current input
NC
Shield
V3+
I3+
COM CH3Current input
NC
Shield

Point Select voltage input or current input according to every channel.

3-4 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-1 Specification & D/A Conversion

 Internal circuit diagram

D/A
conversion V+
circuit

I+

COM 3

KV-SDA04
*The COM terminal is common for each CH.

D/A Conversion

The following describes D/A conversion principles, status of relay updated via KV-SDA04 and how to
read/wire the value from/to CPU.

How D/A Conversion Works

D/A conversion of KV-SDA04 is introduced below.

KV-SDA04
Amplifier circuit
CH0+

CH1+
Buffer memory

CH2+
D/A
conversion CH3+
circuit
CH0-
CH1-
CH2-
CH3-

The D/A conversion circuit converts D/A conversion data (digital value) stored in the buffer memory of
each KV-SDA04 channel to analog signal (voltage and current) in their order, and then outputs them to
an external device.

• D/A conversion data is a digital value when output data is processed by the
Point
error hold function, output data offset function, output limit function, or scaling
function. If these functions are not set up, then the value same as output data is
stored.
• D/A conversion data exists in the buffer memory, and is not split and assigned
to the data memory.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-5


3-1 Specification & D/A Conversion

Communicating with CPU Unit

The following describes how to read/write the data in relays/DMs of CPU unit to relay area/buffer
memory of KV-SDA04.

 Auto refresh
KV-SDA04
3
Control processing

Synchronization
Auto refresh KV-SDA04
KV-SDA04

V0+
I0+

1 scan CH0
COM
NC

Program execution V1+


I1+
CH1
COM
NC
V2+
I2+
CH2
COM
NC
V3+
I3+
CH3
COM

END processing NC

When CPU unit performs Ladder scanning, the data stored from/into relay/DM of CPU unit is read/
written into the relay area/buffer memory assigned to KV-SDA04.
As mentioned above, data communications methods between CPU unit and expansion unit is called
"Auto Refresh", and data communication ladder/setting not required.

 Direct refresh
Control processing
KV-SDA04
Synchronization
Auto refresh KV-SDA04

R001 U_WRDA KV-SDA04 Synchronization


Relay area/ CH NO. Storage device
buffer memory#1 #0 DM0
V0+
I0+

1 scan CH0
COM
NC

Program execution V1+


I1+
CH1
COM
NC
V2+

Unit specific instruction CH2


COM
I2+

NC
V3+
I3+
CH3
COM

END processing NC

The data saved in relay area/buffer memory of KV-SDA04 can be read to any relay/DM of CPU unit via
unit specific instruction performed in Ladder, instead of waiting for updating of relay/DM. In addition, the
value of relays/DMs of CPU unit can be written into relay area/buffer memory of KV-SDA04.
As shown above, between CPU unit and expansion unit, although data communication can be
conducted via direct refresh of Ladder, the processing independent of scanning time fails to be
performed.
Unit specific instructions are required for direct refresh.
KV-7000 Series User's Manual "4-6 Program Configuration and Operation"
"Change Setting Value via unit specific instruction", Page 3-21
"3-3 KV-SDA04 Unit Specific Instructions", Page 3-45
"3-4 KV-SDA04 Unit Specific Functions", Page 3-54

3-6 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-1 Specification & D/A Conversion

 Inter-unit synchronous refresh


Control processing KV-SDA04 KV-SDA04 KV-SDA04
Fixed period
interruption
Auto refresh KV-SDA04 KV-SDA04 KV-SDA04

Synchronization
V0+ V0+ V0+

1 scan Synchronous refresh CH0


I0+
COM
CH0
I0+
COM
CH0
I0+
COM
NC NC NC

Program execution V1+ V1+ V1+

3
I1+ I1+ I1+
CH1 CH1 CH1
COM COM COM

Synchronous module NC
V2+
NC
V2+
NC
V2+

between units
I2+ I2+ I2+
CH2 CH2 CH2
COM COM COM
NC NC NC

Program execution CH3


V3+
I3+
CH3
V3+
I3+
CH3
V3+
I3+
COM COM COM

KV-SDA04
END processing NC NC NC

Each unit updates the value of the buffer memory simultaneously every inter-unit synchronous period,
and each unit I/O relays the value of the buffer memory by the inter-unit synchronous refresh, and
writes/read out to the data memory.
The data processing having held synchronism in between each unit can be executed.
" Inter-unit synchronous period", Page 3-43

Operations in the PROGRAM Mode

The KV-SDA04 operation when CPU unit is in PROGRAM mode, is dependent on the setting of "PROG
output" of the Unit Editor.
"Output Function During PROG", Page 3-33

Updating Period for D/A Conversion Data

According to number of D/A conversion channels, data updating period of D/A conversion as follows.
D/A conversion data updating period = D/A conversion speed (10µs) X number of channels used

D/A Conversion Table

 Conventions used in conversion table


Example  When voltage is +9.10V, D/A conversion data is 18200 (the part in ).
Integer part of voltage
Value before 2nd digit after decimal place of voltage value
D/A conversion data supporting the voltage

.00 .10 .20


+10 20000 20200 -
+9 18000 18200 18400
+8 16000 16200 16400

• D/A conversion data is a digital value when output data is processed by the error
Point hold function, output data offset function, output limit function, or scaling function.
If these functions are not set up, then the value same as output data is stored.
• D/A conversion data exists in the buffer memory, and is not split and assigned
to the data memory.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-7


3-1 Specification & D/A Conversion

Output range : -10 to +10 V

 I/O Characteristic
D/A conversion data[digit]
25000

20200
20000

15000

3
10000

5000

10.1
Output voltage [V]
KV-SDA04

-12 -10 -8 -6 -4 -2 0 2 4 6 8 10 12
-10.
1
-5000

-10000

-15000

-20000
-20200

-25000

 Voltage Conversion Table

.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
+10 20000 20200 - - - - - - - -
+9 18000 18200 18400 18600 18800 19000 19200 19400 19600 19800
+8 16000 16200 16400 16600 16800 17000 17200 17400 17600 17800
+7 14000 14200 14400 14600 14800 15000 15200 15400 15600 15800
+6 12000 12200 12400 12600 12800 13000 13200 13400 13600 13800
+5 10000 10200 10400 10600 10800 11000 11200 11400 11600 11800
+4 8000 8200 8400 8600 8800 9000 9200 9400 9600 9800
+3 6000 6200 6400 6600 6800 7000 7200 7400 7600 7800
+2 4000 4200 4400 4600 4800 5000 5200 5400 5600 5800
+1 2000 2200 2400 2600 2800 3000 3200 3400 3600 3800
+0 0 200 400 600 800 1000 1200 1400 1600 1800
-0 0 -200 -400 -600 -800 -1000 -1200 -1400 -1600 -1800
-1 -2000 -2200 -2400 -2600 -2800 -3000 -3200 -3400 -3600 -3800
-2 -4000 -4200 -4400 -4600 -4800 -5000 -5200 -5400 -5600 -5800
-3 -6000 -6200 -6400 -6600 -6800 -7000 -7200 -7400 -7600 -7800
-4 -8000 -8200 -8400 -8600 -8800 -9000 -9200 -9400 -9600 -9800
-5 -10000 -10200 -10400 -10600 -10800 -11000 -11200 -11400 -11600 -11800
-6 -12000 -12200 -12400 -12600 -12800 -13000 -13200 -13400 -13600 -13800
-7 -14000 -14200 -14400 -14600 -14800 -15000 -15200 -15400 -15600 -15800
-8 -16000 -16200 -16400 -16600 -16800 -17000 -17200 -17400 -17600 -17800
-9 -18000 -18200 -18400 -18600 -18800 -19000 -19200 -19400 -19600 -19800
-10 -20000 -20200 - - - - - - - -

* D/A conversion data changes within the range of -20200 (-10.10V) to 20200 (+10.10V). When D/A conversion data
outside the range is input, it is clipped at max. value 20200 (or min. value -20200).

3-8 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-1 Specification & D/A Conversion

Output range : 0 to 10V

 I/O Characteristic
D/A conversion data[digit]
25000

20200
20000

15000

3
10000

KV-SDA04
5000

-0.1
10.1
Output voltage [V]
-2 -200 0 2 4 6 8 10 12

-5000

 Voltage Conversion Table

.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
+10 20000 20200 - - - - - - - -
+9 18000 18200 18400 18600 18800 19000 19200 19400 19600 19800
+8 16000 16200 16400 16600 16800 17000 17200 17400 17600 17800
+7 14000 14200 14400 14600 14800 15000 15200 15400 15600 15800
+6 12000 12200 12400 12600 12800 13000 13200 13400 13600 13800
+5 10000 10200 10400 10600 10800 11000 11200 11400 11600 11800
+4 8000 8200 8400 8600 8800 9000 9200 9400 9600 9800
+3 6000 6200 6400 6600 6800 7000 7200 7400 7600 7800
+2 4000 4200 4400 4600 4800 5000 5200 5400 5600 5800
+1 2000 2200 2400 2600 2800 3000 3200 3400 3600 3800
+0 0 200 400 600 800 1000 1200 1400 1600 1800
-0 0 -200 - - - - - - - -

* D/A conversion data changes within the range of -200 (-0.10V) to 20200 (+10.10V). When D/A conversion data outside
the range is input, it is clipped at max. value 20200 (or min. value -200).

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-9


3-1 Specification & D/A Conversion

Output range : 0 to 5V

 I/O Characteristic
D/A conversion data[digit]
25000

20200
20000

3
15000

10000
KV-SDA04

5000

-0.05 5.05
Output voltage [V]
-2 -200 0 1 2 3 4 5 6

-5000

 Voltage Conversion Table


.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
+5 20000 - - - - - - - - -
+4 16000 16400 16800 17200 17600 18000 18400 18800 19200 19600
+3 12000 12400 12800 13200 13600 14000 14400 14800 15200 15600
+2 8000 8400 8800 9200 9600 10000 10400 10800 11200 11600
+1 4000 4400 4800 5200 5600 6000 6400 6800 7200 7600
+0 0 400 800 1200 1600 2000 2400 2800 3200 3600
-0 0 - - - - - - - - -
* D/A conversion data changes within the range of -200 (-0.05V) to 20200 (+5.05V). When D/A conversion data outside
the range is input, it is clipped at max. value 20200 (or min. value -200).

Output range : 1 to 5V

 I/O Characteristic
D/A conversion data[digit]
25000

20000

16200
15000

10000

5000

0.95
5.05
Output voltage [V]
-1 -200 0 1 2 3 4 5 6

-5000

 Voltage Conversion Table


.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
+5 16000 - - - - - - - - -
+4 12000 12400 12800 13200 13600 14000 14400 14800 15200 15600
+3 8000 8400 8800 9200 9600 10000 10400 10800 11200 11600
+2 4000 4400 4800 5200 5600 6000 6400 6800 7200 7600
+1 0 400 800 1200 1600 2000 2400 2800 3200 3600
* D/A conversion data changes within the range of -200 (+0.95V) to 16200 (+5.05V). When D/A conversion data outside
the range is input, it is clipped at max. value 16200 (or min. value -200).

3-10 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-1 Specification & D/A Conversion

Output range : 0 to 20mA

 I/O Characteristic
D/A conversion data[digit]
25000

22000
20000

15000

3
10000

KV-SDA04
5000

-0.2 20.2
Output current [mA]
-2 -200 0 2 4 6 8 10 12 14 16 18 20 22

-5000

 Current Conversion Table

.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
20 20000 20100 20200 - - - - - - -
19 19000 19100 19200 19300 19400 19500 19600 19700 19800 19900
18 18000 18100 18200 18300 18400 18500 18600 18700 18800 18900
17 17000 17100 17200 17300 17400 17500 17600 17700 17800 17900
16 16000 16100 16200 16300 16400 16500 16600 16700 16800 16900
15 15000 15100 15200 15300 15400 15500 15600 15700 15800 15900
14 14000 14100 14200 14300 14400 14500 14600 14700 14800 14900
13 13000 13100 13200 13300 13400 13500 13600 13700 13800 13900
12 12000 12100 12200 12300 12400 12500 12600 12700 12800 12900
11 11000 11100 11200 11300 11400 11500 11600 11700 11800 11900
10 10000 10100 10200 10300 10400 10500 10600 10700 10800 10900
9 9000 9100 9200 9300 9400 9500 9600 9700 9800 9900
8 8000 8100 8200 8300 8400 8500 8600 8700 8800 8900
7 7000 7100 7200 7300 7400 7500 7600 7700 7800 7900
6 6000 6100 6200 6300 6400 6500 6600 6700 6800 6900
5 5000 5100 5200 5300 5400 5500 5600 5700 5800 5900
4 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900
3 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900
2 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900
1 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900
0 0 100 200 300 400 500 600 700 800 900
-0 0 -100 -200 - - - - - - -

* D/A conversion data changes within the range of -200 (-0.2mA) to 20200 (+20.2mA). When D/A conversion data
outside the range is input, it is clipped at max. value 20200 (or min. value -200).

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-11


3-1 Specification & D/A Conversion

Output range : 4 to 20mA

 I/O Characteristic
D/A conversion data[digit]
25000

20000

3
16200
15000

10000
KV-SDA04

5000

3.8
20.2
Output current [mA]
-2 -200 0 2 4 6 8 10 12 14 16 18 20 22

-5000

 Current Conversion Table

.00 .10 .20 .30 .40 .50 .60 .70 .80 .90
20 16000 16100 16200 - - - - - - -
19 15000 15100 15200 15300 15400 15500 15600 15700 15800 15900
18 14000 14100 14200 14300 14400 14500 14600 14700 14800 14900
17 13000 13100 13200 13300 13400 13500 13600 13700 13800 13900
16 12000 12100 12200 12300 12400 12500 12600 12700 12800 12900
15 11000 11100 11200 11300 11400 11500 11600 11700 11800 11900
14 10000 10100 10200 10300 10400 10500 10600 10700 10800 10900
13 9000 9100 9200 9300 9400 9500 9600 9700 9800 9900
12 8000 8100 8200 8300 8400 8500 8600 8700 8800 8900
11 7000 7100 7200 7300 7400 7500 7600 7700 7800 7900
10 6000 6100 6200 6300 6400 6500 6600 6700 6800 6900
9 5000 5100 5200 5300 5400 5500 5600 5700 5800 5900
8 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900
7 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900
6 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900
5 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900
4 0 100 200 300 400 500 600 700 800 900
3 - - - - - - - - -200 -100

* D/A conversion data changes within the range of -200 (3.8mA) to 16200 (20.2mA). When D/A conversion data outside
the range is input, it is clipped at max. value 16200 (or min. value -200).

3-12 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions
This section describes KV-SDA04 functions and setting methods.

List of Setting Items on Unit Editor

KV-SDA04 is also set using Unit Editor.


Every function setting item and default as follows.
Change
Function Setting Item Setting Value Ladder See 3
Setting

KV-SDA04
Common Leading DM No. Required to set No
setting Leading relay No. Required to set No
Page 3-24
Disabled Default
Channel skip Channel skip No
Enabled
Inter-unit synchronization Not used Default
Inter-unit No
function Used
synchronization Page 3-43
function Inter-unit synchronization Default
Refresh timing No
Batch <END processing>
-10 to +10V Default
0 to 10V
0 to 5V
Output range Output range No Page 3-25
0 to 20mA
1 to 5V
4 to 20mA
Disabled Default
Scaling No
Enabled
Unit Editor selection Default
Scaling Scaling selection No Page 3-25
DM selection
Scaling upper limit -32000 to 32000 ( Default 32000) Yes
Scaling lower limit -32000 to 32000 ( Default -32000) Yes
Disabled Default
Upper/lower limit alarm No
Enabled
Upper/lower limit alarm Unit Editor selection Default
No
Upper/lower selection DM selection
Page 3-28
limit alarm Upper limit of upper/lower
-32000 to 32000 ( Default 32000) Yes
limit alarm*1
Lower limit of upper/lower
-32000 to 32000 ( Default -32000) Yes
limit alarm*1
OFF Default
Output limit Output limit No Page 3-31
ON
OFF Default
Error hold Error hold No Page 3-32
ON
Output in Clear Default
Output in PROG mode No Page 3-33
PROG mode Output

*1 It fails to set upper limit value of upper/lower limit alarm < upper/lower limit value of upper/lower limit alarm.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-13


3-2 Settings & Various Functions

 What is Unit Editor


Unit Editor is software included in Ladder Support Software KV STUDIO. It is used for configuring PLC
units or setting up KV-SDA04 functions. This setting is always necessary when using KV-SDA04 the
first time. For details on how to start and operate Unit Editor, see "KV STUDIO User's Manual".

 How to Set up with Unit Editor


To describe the procedures to set KV-SDA04 using the Unit Editor.
3 1 Start KV STUDIO (Ver.8 or later), and start Unit Editor.
Select "Tool" -> "Unit Editor" from KV STUDIO menu.
KV-SDA04

Other procedure

• Click button.

For Details, see KV STUDIO User's Manual.

2 Select the unit to be connected from "Select unit (1)" tab, and drag it to the CPU unit.

3 Set the details of the KV-SDA04 on the unit configuration area.


Select [KV-SDA04] and double-click it.
The "KV-SDA04" setting is displayed in the 
"Setup unit" window.

Other procedure

• Press key
• Select "display" -> "Display unit setting".

3-14 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions

4 Click the item whose setting is to be changed, and enter the new set value.
• When entering from textbox, 
display textbox, enter the value.
• When entering from dropdown menu, 
display dropdown menu, select items.

KV-SDA04
5 Press key.
Confirm the settings.

6 Set the details of all connected units following the procedure in steps 3 to 5.

7 Select from menu "File" -> "Close". This saves the system you have created, and returns to the
Editor.

Other procedure

• Click button.
Click button.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-15


3-2 Settings & Various Functions

List of Available Devices

List of relays and DMs occupied by KV-SDA04.

Do not write values in devices with the name "Reserved for system". Otherwise
Point
this may lead to PLC malfunction.

3  Number of occupied devices


Number of relays and DMs used in KV-SDA04 are as follows.
KV-SDA04

Relay : 96 points (6 ch)


Data memory : 40 words

List of Data Memories

Names and contents of DMs occupied by KV-SDA04 are as follows.


( N : leading DM No.)

 Constant read area


KV-SDA04 stores scanning data in this area.
The written values are automatically applied to KV-SDA04 with every refresh.

CH DM No. Designation See


N + 000 Output data Page 3-16
CH0
N + 001 Output data offset Page 3-26
N + 002 Output data Page 3-16
CH1
N + 003 Output data offset Page 3-26
N + 004 Output data Page 3-16
CH2
N + 005 Output data offset Page 3-26
N + 006 Output data Page 3-16
CH3
N + 007 Output data offset Page 3-26
Common N + 008 to 009 Reserved for system -

● Output data
Source data for D/A conversion is stored in memory as output data.
If the scaling function is used, the value processed by scaling is stored in D/A conversion data.
In the scaling function or output data offset function, if the value exceeds the range specified in "D/A
Conversation Table", then the minimum value or maximum value in the range specified in "D/A
Conversation Table" will be stored in D/A conversion data.
"D/A Conversion Table", Page 3-7

Output data will be stored in the following DM.

Ch No. CH0 CH1 CH2 CH3


DM No. N + 000 N + 002 N + 004 N + 006
N : Leading DM No.

3-16 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions

 Normal writing area


KV-SDA04 stores data in this area with every refresh.
In a ladder program, you cannot write data to this area.
CH DM number Name Reference
CH0 N + 010 Analog data
CH1 N + 011 Analog data
N
Page 3-17
CH2 + 012 Analog data

3
CH3 N + 013 Analog data
N + 014 Error code Page A-4
Common
N + 015 to 019 System reserved -

KV-SDA04
● Analog data
D/A conversion data is converted to a voltage/current value and then stored as analog data.
Use the following conversion formula to get analog data.
Analog data = D/A conversion data x resolution
Unit: [1mV] for voltage output; [1µA] for current output.
The value less than 1 "mV/µA" is rejected.
Units displayed in Access Window or Unit Monitor: "V" for output voltage, "mA" for output current.
Analog data will be stored in the following DMs.
Ch No. CH0 CH1 CH2 CH3
DM No. N + 010 N + 011 N + 012 N + 013

N : Leading DM No.

 Setting value communication area


Data can be written into this area using Ladder.
But, the area can be used only when "DM specifying" is set in unit setting for each item.
It can not be used if set to "Unit Editor specifying".
In addition, when power is turned on, CPU unit is switched from PROGRAM mode to RUN mode, setting
update request relay ( N +001) is changed from OFF to ON using Ladder, KV-SDA04 acquires the value
written into the area.
CH DM No. Designation Reference
N + 020 Scaling upper limit
N
Page 3-25
+ 021 Scaling lower limit
CH0 N + 022 Upper limit for upper/lower limit alarm
N
Page 3-28
+ 023 Lower limit for upper/lower limit alarm
N + 024 Scaling upper limit
N
Page 3-25
+ 025 Scaling lower limit
CH1 N + 026 Upper limit for upper/lower limit alarm
N
Page 3-28
+ 027 Lower limit for upper/lower limit alarm
N + 028 Scaling upper limit
N
Page 3-25
+ 029 Scaling lower limit
CH2 N + 030 Upper limit for upper/lower limit alarm
N
Page 3-28
+ 031 Lower limit for upper/lower limit alarm
N + 032 Scaling upper limit
N
Page 3-25
+ 033 Scaling lower limit
CH3 N + 034 Upper limit for upper/lower limit alarm
N
Page 3-28
+ 035 Lower limit for upper/lower limit alarm
N + 036
to
Common Reserved for system -
N + 039

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-17


3-2 Settings & Various Functions

List of Relays

The following describes the names and description of relays occupied by KV-SDA04.
( n : Leading relay No.)

CH Relay No. Designation Reference


n + 000 Reserved for system -
n + 001 Setting update request Page 3-19

3 Common
n

n
+ 002
to Reserved for system -
+ 014
KV-SDA04

n + 015 Error clear Page A-4


n + 100 Upper/lower limit alarm clear Page 3-28
n + 101
CH0 to Reserved for system -
n + 107
n + 108 Upper/lower limit alarm clear Page 3-28
n + 109
CH1 to Reserved for system -
n + 115
n + 200 Upper/lower limit alarm clear Page 3-28
n + 201
CH2 to Reserved for system -
n + 207
n + 208 Upper/lower limit alarm clear Page 3-28
n + 209
CH3 to Reserved for system -
n + 215
n + 300 DA conversion in progress -
n + 301 Setting update complete Page 3-19
n + 302
Common to Reserved for system -
n + 314
n + 315 Error relay Page A-4
n + 400 Upper limit relay for upper/lower limit alarm
n
Page 3-28
+ 401 Lower limit relay for upper/lower limit alarm
n + 402
CH0 to Reserved for system -
n + 406
n + 407 Output in progress relay Page 3-24
n + 408 Upper limit relay for upper/lower limit alarm
n
Page 3-28
+ 409 Lower limit relay for upper/lower limit alarm
n + 410
CH1 to Reserved for system -
n + 414
n + 415 Output in progress relay Page 3-24
n + 500 Upper limit relay for upper/lower limit alarm
n
Page 3-28
+ 501 Lower limit relay for upper/lower limit alarm
n + 502
CH2 to Reserved for system -
n + 506
n + 507 Output in progress relay Page 3-24
n + 508 Upper limit relay for upper/lower limit alarm
n
Page 3-28
+ 509 Lower limit relay for upper/lower limit alarm
n + 510
CH3 to Reserved for system -
n + 514
n + 515 Output in progress relay Page 3-24
3-18 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -
3-2 Settings & Various Functions

Changing Setting Value via Ladder

The following describes how to change setting value of every function via Ladder.

Change setting value by DM selection

It describes how to change the setting value by DM selection.


3
 About DM selection of setting value

KV-SDA04
In "Unit Setup" of Unit Editor, set corresponding selection method to "DM selection".
The items and setting value range assignable in DM as follows.

Function Setting Item Setting Value Reference


Scaling upper limit -32000 to 32000
Scaling Page 3-25
Scaling lower limit -32000 to 32000
*1
Upper/lower limit Upper limit of upper/lower limit alarm -32000 to 32000
Page 3-28
alarm Lower limit of upper/lower limit alarm*1 -32000 to 32000

*1 It fails to set upper limit value of upper/lower limit alarm < upper/lower limit value of upper/lower limit alarm.

 Setting value updating timing during DM selection


KV-SDA04 can read and update the DM value of the item specified by DM in the following period:
(1) When powering ON
(2) When the CPU unit is switched from the PROGRAM mode to the RUN mode
(3) When the setting update request relay ( n +001) changes from OFF to ON

• The item specified by DM can be updated during the period mentioned above.
Point
Only a part of setting items can not be updated.
• For the item not specified by DM (i.e. specified via Unit Editor), its setting value
set with Unit Editor will be remained and not updated, even if the value is stored
in DM of corresponding setting value communication area.
• When the setting is updated, if the DM value is outside the setting range,
KV-SDA04 gives a unit error and D/A conversion cannot be performed (When
this occurs, the error relay ( n +315) becomes ON). To remove the unit error and
perform D/A conversion, change the DM value so that it falls into the setting
range and then perform any one of the (1) to (3) tasks mentioned above.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-19


3-2 Settings & Various Functions

 Detailed descriptions on updating setting value via setting update request relay
(1) (5) (7)
Setting value DM Value within setting range Value out of setting range Value within setting range

(1) (3) (5) (7)


Setting update
request relay
( +001)
3 (2) (4)
Setting update
KV-SDA04

complete relay
( +301)

(6) (8)

Error relay
( +315)

(7)

Error clear relay


( +015)

(1) Ladder Save the setting value to be updated into DM of the item specified by DM, then set
setting update request relay to ON (even if within same scanning period).
(2) KV-SDA04 After completing setting update, setting update complete relay is ON.
(3) Ladder Turn setting update request relay OFF.
(4) KV-SDA04 Turn setting update completion relay OFF.
(5) Ladder Save the value exceeding range of set value, then turn the setting update request
relay ON.
(6) KV-SDA04 Error relay is ON (setting update completion relay is not ON). 
Meanwhile, error code is stored in DM ( N +020).
(7) Ladder Save the value within the range of set value, after setting updating, set the error
clear relay to ON.
(8) KV-SDA04 Turn the error relay to OFF.

3-20 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions

Change Setting Value via unit specific instruction

The following describes how to change setting value via unit specific instruction.

 Unit specific instruction for changing setting value


Setting value can be changed via Ladder by executing unit specific instructions, writing the setting
value into buffer memory of KV-SDA04, setting the setting update request relay to ON.
3
The setting items changeable with unit specific instructions and the range of setting values as follows.

KV-SDA04
Unit specific
Function Setting item Setting value Reference
instruction
Output data 
Output data offset -32768 to 32767 U_WROFST Page 3-26
offset
Scaling upper limit -32000 to 32000
Scaling U_WRSCL Page 3-25
Scaling lower limit -32000 to 32000
Upper limit of upper/lower
-32000 to 32000
Upper/lower limit alarm*1
U_WRLMT Page 3-28
limit alarm Lower limit of upper/lower
-32000 to 32000
limit alarm*1

*1 It fails to set upper limit value of upper/lower limit alarm < upper/lower limit value of upper/lower limit alarm.

To change output data offset value, it is not necessary to set the setting update
Point
request relay to ON after executing unit specific instructions.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-21


3-2 Settings & Various Functions

 Detail contents on setting value updating via unit specific instructions


(1) (5) (7)
KV-SDA04
Value within setting range Value out of setting range Value within setting range
buffer memory

(1) (3) (5) (7)


Setting update
request relay
( +001)
3 (2) (4)
Setting update
KV-SDA04

complete relay
( +301)

(6) (8)

Error relay
( +315)

(7)

Error clear relay


( +015)

(1) Ladder Executing unit specific instruction, write the setting value to buffer memory of
KV-SDA04. Setting update request relay is also ON.
(2) KV-SDA04 After completing setting update, setting update complete relay is ON.
(3) Ladder Turn setting update request relay OFF .
(4) KV-SDA04 Turn setting update complete relay OFF.
(5) Ladder Save the value exceeding range of set value in Ladder, then turn the setting update
request relay ON.
(6) KV-SDA04 Error relay is ON (setting update completion relay is not ON). 
Meanwhile, the error code is stored to DM ( N +014).
(7) Ladder Save the value within the range of Ladder set value, after setting updating, set the
error clear relay to ON.
(8) KV-SDA04 Turn the error relay to OFF.

If using direct I/O "DR" to scan every relay, setting value can be changed within
Point
one scanning.

3-22 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions

KV-SDA04 Functional Block Diagram

KV-SDA04 function processing sequence as follows.

Output data

KV-SDA04
Error hold

Output data
Offset

Upper/lower limit alarm Upper limit relay for upper/lower limit


alarm
+Output limit Lower limit relay for upper/lower limit
alarm

Scaling

D/A conversion data

D/A conversion

Analog data

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-23


3-2 Settings & Various Functions

Setting the Leading Device

3
„ Leading DM No.
KV-SDA04

Sets the leading No. of the data memories occupied by the KV-SDA04.
Data memories of 40 words are occupied by KV-SDA04.
The settable leading No. is as follows.
KV-7500/7300 : DM00000 to DM65494
"List of Available Devices", Page 3-16

„ Leading relay No.


Set the leading channel of the relay occupied by KV-SDA04.
KV-SDA04 occupies 96 (6 channel) relays.
The settable leading No. is as follows.
KV-7500/7300 : 000 (R000) to 1994(R199400)
"List of Available Devices", Page 3-16
*The range becomes 000 to 994 when connected to a KV-7500/7300 whose CPU function version is 2.2 or earlier.

Channel Skip Function

Channel skip function can be set to "enabled" or "disabled".


D/A conversion is performed in case of no channel skip, D/A conversion is not performed in case of channel skip.
0 is stored in analog data of the skipped channel and relay during output is OFF. A ladder program can
check the ON/OFF state of the relay during output of each channel to see if the channel has been
skipped or not.
The output in progress relay is assigned as follows.
Channel No. CH0 CH1 CH2 CH3
Output in progress relay n + 407 n + 415 n + 507 n + 515
n : Leading relay No.
• 0 is stored in analog data of the skipped channel and relay during output is OFF
Point
when power is turned on, the PROGRAM mode is switched to the RUN mode, or
when the setting is updated. If data is written by mistake, this data may
continue to remain there.
• The output in progress relay also turns OFF when a system error occurs, or
when D/A conversion cannot be performed.

According to number of D/A conversion channel and data updating time of D/A conversion as follows.
Update period for D/A conversion data = D/A conversion speed (10µs) x number of CHs used
3-24 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -
3-2 Settings & Various Functions

Setup Output Range

3
Range can be switched according to the level of analog signal output.

KV-SDA04
Output range can be set as per every channel. Optional output range as follows.

Output signal Range


-10 to +10V Default
0 to 10V
Voltage
0 to 5V
1 to 5V
0 to 20mA
Current
4 to 20mA

Scaling Function

Scaling is a function to convert (scale) output data (or internal data after being processed by the output
data offset function) to a value in a range with upper and lower limits.
Scaling unit is stored in "output data" data memory. The scaling upper limit value is set to a value
corresponding to the D/A conversion data's upper limit value "20000" ("16000" if the output range is 1 to
5V or 4 to 20mA), and the scaling lower limit value is set to a value corresponding to the D/A conversion
data's lower limit value "0" ("-20000" if the output range is -10 to +10V).
Scaling upper/lower limit can be set within the range of -30000 to +32000.
Scaling upper/lower limit can be also specified via the following methods in addition to direct specifying
via Unit Editor.
• It is stored to Data Memory in setting value communication area
"List of Available Devices", Page 3-16
• It is stored to buffer memory of KV-SDA04 using unit specific instruction/function " U_WRSCL"
"KV-SDA04 Unit Specific Instructions", Page 3-45
"KV-SDA04 Unit Specific Functions", Page 3-54

Scaling function uses the following formula for data output.


Reference
[Range -10 to +10V]
Scaling limit = Output data x (upper limit - lower limit)/40000 +(upper limit + lower limit)/2
[1 to 5V and 4 to 20mA ranges]
Scaling value = output data x (upper limit value - lower limit value)/16000 + lower limit value
[Others]
Scaling limit = Output data x (upper limit - lower limit)/20000 + lower limit

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-25


3-2 Settings & Various Functions

Example When the output range "1 to 5V", data "0 to 16000" is scaled to "1000 to 5000".
Output range 1 to 5V
Output data 0 to 16000
Scaling limit 1000 to 5000

Scaling

Upper limit -> 5000

3
KV-SDA04

Lower limit ->1000 Output voltage (V)


    

Output signal Scaling limit D/A conversion data


1V 1000 0
2V 2000 4000
3V 3000 8000
4V 4000 12000
5V 5000 16000

Output Data Offset Function

 What is output data offset function?


With output data offset function, KV-SDA04 output data can be stored after adding a specific data offset
value stored in normal communication area.
KV-SDA04 internal data = output data + output data offset value
The function is used to correct output data using DM value.
Output offset function can be separately conducted on every channel.
Output data offset value is assigned to the following DMs.

Ch No. CH0 CH1 CH2 CH3


DM No. N + 001 N + 003 N + 005 N + 007
N : Leading DM No.

Output data offset value is processed as signed 16-bit data. So, it can be set within -32768 to 32767.
The DM value of the output data offset value is automatically applied to KV-SDA04 with every refresh.
So, it is not necessary to operate relay via Ladder.
After offset value is added to the output data, if the output data exceeds the signed 16 bit range, it will
be clipped at the lower limit (-32768) or upper limit (32767).

3-26 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions

Output data offset value can change according to unit specific instruction "U_WROFST".
"U_WROFST command", Page 3-48

KV-SDA04 reads always DM of output data offset value. Output data offset
Point
function can not be disabled. So, please note that once the value other than "0" is
stored to the output data offset value, output data is offset. If output data is not
offset, "0" shall be stored to output data offset value.

 Details of output data offset 3


Example 1 When output range is set to "-10 to +10V" (scaling: "disabled")

KV-SDA04
D/A conversion Output data
Output voltage Output data Graph
data Offset value
0 -20000 to +20000 (1)
5000 -15000 to +25000 -
-10 to +10V -20000 to +20000 20000 0 to +32767 (2)
-5000 -25000 to +15000 -
-20000 -32768 to 0 (3)

Output voltage (V)

10

2 (1)
5

(3)

Output data
0
-32768 -20000 -10000 10000 20000 32767

-5

-10

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-27


3-2 Settings & Various Functions

Example 2 When output range is set to "1 to 5V" (scaling: "disabled")

D/A conversion Output data


Output voltage Output data Graph
data Offset value
0 0 to 16000 (1)
8000 8000 to 24000 -
1 to 5V 0 to 16000 20000 20000 to 32767 (2)
-8000 -8000 to 8000 -

3 -20000 -20000 to -4000 (3)

Output voltage (V)


KV-SDA04

(3) (1) (2)

0
Output data
-32768 -20000 -4000 16000 20000 32767

Upper/Lower Limit Alarm Function

 What is upper/lower limit alarm function?


Upper/lower limit alarm function means that KV-SDA04 compares output data with upper limit value, lower limit
value of upper/lower limit alarm, and sets upper limit relay, lower limit relay of upper/lower limit alarm to ON/OFF.

When the use or non-use of upper/lower limit alarm function, the specifying method of upper/lower limit
alarm value and the upper/lower limit alarm value specifying are set to "Unit Editor specifying", specify
upper limit value, lower limit value of upper/lower limit alarm.
Upper/lower limit alarm function can be separately conducted on every channel.
Upper/lower limit alarm function is conducted against the processing result of output data offset function.
"Output Data Offset Function", Page 3-26

If the upper/lower limit alarm clear relay is set to ON, upper limit relay, lower limit relay of upper/lower
limit alarm shall be forcedly set to OFF.
Upper limit relay, lower limit relay of upper/lower limit alarm and upper/lower limit alarm clear relay are assigned to the next relay.
Ch No. CH0 CH1 CH2 CH3
Upper limit relay for upper/lower limit alarm n + 400 n + 408 n + 500 n + 508
Lower limit relay for upper/lower limit alarm n + 401 n + 409 n + 501 n + 509
Upper/lower limit alarm clear relay n + 100 n + 108 n + 200 n + 208
n : Leading relay No.

3-28 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions

 Details on upper/lower limit alarm function


Upper/lower limit alarm function relay shall be operated as follows.

Output data

Upper limit for


upper/lower limit alarm

3
Lower limit for

KV-SDA04
upper/lower limit alarm

Time

(3) (4)
Upper limit relay for
upper/lower limit alarm

(1)
(2) (5)
Lower limit relay for
upper/lower limit alarm

(1) KV-SDA04 Due to output data less than lower limit value of upper/lower limit alarm, lower limit
of upper/lower limit alarm is changed to ON.
(2) KV-SDA04 Due to output data exceeds lower limit value of upper/lower limit alarm, lower limit of
upper/lower limit alarm is changed to OFF.
(3) KV-SDA04 Due to output data exceeds upper limit value of upper/lower limit alarm, upper limit
of upper/lower limit alarm is changed to ON.
(4) KV-SDA04 Due to output data exceeds lower limit value of upper/lower limit alarm, upper limit of
upper/lower limit alarm is changed to OFF.
(5) KV-SDA04 Because output data is less than the upper lower limit warning lower limit value, the
upper lower limit warning lower limit relay is ON.

When you use DM selection to the upper lower limit warning (lower limit value) to
Point
update the setting, the upper lower limit warning upper limit (lower limit) relay
keeps the ON/OFF state obtained before the setting is updated.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-29


3-2 Settings & Various Functions

 Operation of upper/lower limit alarm reset relay


Upper limit (lower limit) relay of upper/lower limit alarm and upper/lower limit alarm reset relay shall be
operated as follows.

(2) (4)
Upper lower limit warning
upper limit (lower limit) relay When output data
exceeds (is lower than)

3
upper and lower limit
(1) (3) alarm upper limit value
(lower limit value) on level
Reset relay for
KV-SDA04

upper/lower limit alarm


During validity period
of upper and lower
limit alarm reset

(1) Ladder Setting upper/lower limit alarm reset relay to ON.


(2) KV-SDA04 Upper/lower limit alarm upper limit (lower limit) relay is forcedly changed to OFF.
(3) Ladder Setting upper/lower limit alarm reset relay to OFF.
(4) KV-SDA04 When output data exceeds (less than) upper/lower limit alarm upper limit value
(lower limit value), upper/lower limit alarm upper limit (lower limit) relay is changed to
ON. If the output data is not more than (less than) upper limit value (lower limit
value), the upper/lower limit alarm upper limit (lower limit) relay remains OFF.

3-30 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions

Output Limit Function

With "output limit function", KV-SDA04 can output preset value in upper limit value/lower limit value
3
when output data exceeds upper limit value/lower limit value of upper/lower limit alarm. The value

KV-SDA04
currently saved in output data can not be output.
Output limit function can be set only when upper/lower limit alarm function is set.

Upper limit for upper/lower limit alarm storage position

Ch No. CH0 CH1 CH2 CH3


DM No. N + 022 N + 026 N + 030 N + 034
N : Leading DM No.

Lower limit for upper/lower limit alarm storage position

Ch No. CH0 CH1 CH2 CH3


DM No. N + 023 N + 027 N + 031 N + 035
N : Leading DM No.
Example Output data 0 to 20000
Upper limit of upper/lower limit alarm 15000
Lower limit of upper/lower limit alarm 5000

Output data
When restriction function is ON
20000 Output value to DA unit
When restriction function is OFF
Output value to DA unit

Upper limit for 15000


upper/lower limit alarm

10000

Lower limit for


upper/lower limit alarm 5000

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-31


3-2 Settings & Various Functions

Error Hold Function

3
KV-SDA04

During error hold function, when KV-SDA04 changes to unit error status, stopping output to external or
continuing output to external can be set.

Error hold OFF Default : Stop external output.


When output signal range is "-10 to +10V", "0 to 5V", it changes to
"0V".
It is "1V" for "1 to 5V".
It is "0mA" for "0 to 20mA".
It is "4mA" for "4 to 20mA".

Error hold ON : Holding the state before error.


Example External output when 0 to 5V range error is ON/OFF.

Output voltage Error.

5V Output when error hold is OFF


Output when error hold is ON

3-32 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions

Output Function During PROG

KV-SDA04
The PROG output function specifies whether the CPU unit should stop or continue output to an external
device when it enters the PROGRAM mode (ladder program execution stops).

Output cleared during PROG Default : Stop output to external equipment.


When output signal range is "-10 to +10V", "0 to 5V ", it
changes to "0V".
It is "1V" for "1 to 5V".
It is "0mA " for "0 to 20mA".
It is "4mA " for "4 to 20mA".

PROG output, is the same as output : Outputs analog signal in the same way as in the RUN mode.

Unit Interrupt Function


 Unit interrupt function
This function enables you to check the output state of KV-SDA04, and execute a unit interrupt to the CPU unit.
Unit interrupt is performed by using an INT instruction to specify the unit and interrupt condition.
The following interrupt conditions can be used for KV-SDA04 unit interrupt.
Condition No. Interrupt condition
0 Channel 0 upper limit for upper/lower limit alarm ON
1 Channel 0 upper limit for upper/lower limit alarm OFF
2 Channel 0 lower limit for upper/lower limit alarm ON
3 Channel 0 lower limit for upper/lower limit alarm OFF
4 Channel 1 upper limit for upper/lower limit alarm ON
5 Channel 1 upper limit for upper/lower limit alarm OFF
6 Channel 1 lower limit for upper/lower limit alarm ON
7 Channel 1 lower limit for upper/lower limit alarm OFF
8 Channel 2 upper limit for upper/lower limit alarm ON
9 Channel 2 upper limit for upper/lower limit alarm OFF
10 Channel 2 lower limit for upper/lower limit alarm ON
11 Channel 2 lower limit for upper/lower limit alarm OFF
12 Channel 3 upper limit for upper/lower limit alarm ON
13 Channel 3 upper limit for upper/lower limit alarm OFF
14 Channel 3 lower limit for upper/lower limit alarm ON
15 Channel 3 lower limit for upper/lower limit alarm OFF
16 Channel 0 Program output data number match
17 Channel 1 Program output data number match
18 Channel 2 Program output data number match
19 Channel 3 Program output data number match
"Upper/Lower Limit Alarm Function", Page 3-28
"Program output function", Page 3-35
KV-7000 Series User’s Manual "4-7 Interrupt"

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-33


3-2 Settings & Various Functions

 Setting Method
Create an interrupt project between END and ENDH.

CR2008
EI

Main routine program


If EI instruction is not executed in advance, the interrupt program
END
3 cannot be executed.

INT
KV-SDA04

Unit No. Interrupt factor

Interrupt program
 An interrupt program is written between END and ENDH.
RETI

ENDH

 Usage Example
This example shows direct output is performed for relay R35200 when CH0’s upper lower limit warning
upper limit is ON.
;(Mnemonics list)
CR2008
EI LD CR2008
When operation starts 1 EI
Scan ON END
INT #1 #0
END LD CR2002
SET DR35200
RETI
ENDH

INT
Unit No. Interrupt factor
#1 #0
KV-SDA04 CH0 upper
limit for upper/lower
limit alarm ON
CR2002 DR35200
SET
Always ON

RETI

ENDH

Reference To perform direct output, write output relay "R" as "DR".

3-34 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions

Program output function

 What is the program output function?


The program output function sequentially outputs in analog up to 16384 pieces of output data stored in
the KV-SDA04 buffer memory at a maximum speed of 10 µs.
It can output at fast speeds in analog without being affected by scanning time, as it is updated by the
unit's internal control cycle.
3

KV-SDA04
Buffer memory Output
Program output data 0
Program output data 1
Program output data 2

Max. 16384 Output data

Program output data 16381


Program output data 16382
Program output data 16383

• When updated every scan

Output data

Scanning time
Analog signals that fluctuate at a higher speed than scanning time cannot be output.
• When program output is executed

Output data

Program output update cycle

Analog signals that fluctuate at a higher speed than scanning time can be output.

The unit's internal control cycle is the cycle in which D/A conversion occurs on
Point
each channel, and differs according to the number of channels used and whether
there is inter-unit synchronization.
"Program execution cycle setting (CH0: #769, CH1: #801, CH2: #833, CH3: #865)", Page 3-39

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-35


3-2 Settings & Various Functions

 Output example
• Repeated output
A series of waves can be output repeatedly.

Output data

3
• Function generator
KV-SDA04

The output time for output data can be set individually in units of 10 µs minimum.

Output data

The output method is set in the control command in each piece of program output data.
Reference
"Program output data (common for all channels: #8192 to #40959)", Page 3-38

 Using the function


Configure settings using the UWRIT command from a ladder program to write a value in the KV-SDA04
buffer memory. Use the UREAD command to read.
A maximum of 16384 pieces of program output data are stored in the
Program output data setting
buffer memory.
The program output data contains output data and a control command.

Program output function setting At the start the setting values for the whole function, such as the first
program output data to output and the execution cycle, are stored in the
buffer memory.

1 is written to program output enabled in the buffer memory, and


Program output enabled
program output starts.
Program output is executed in order according to the control command.

If any of the following occur program output will stop.


Program output stop
• 0 is written to program output enabled in the buffer memory
• Program output data is executed when the control command is 0

When program output stops, analog output starts at the output data value
Point
assigned to the data memory.

3-36 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions

 Used buffer memory addresses


Attribute
Buffer memory R: Read only
Name Overview
address R/W: Read/write
enabled
#768 CH0 Start data number R/W 0 to 16383
#769 CH0 Program execution cycle setting R/W 1 to 255 (default value: 1)
#770 CH0 Interrupt data number setting R/W 0 to 16383 (default value: 0)
0: Immediate start
#771 CH0 Sync start setting R/W 1: Sync start
(default value: 0) 3
#772 to #793 Reserved for system -

KV-SDA04
0: Stopped
#794 CH0 Program output status monitor R
1: Outputting
#795 CH0 Current data number monitor R 0 to 16383
#796 to #799 Reserved for system -
#800 to #831 CH1 Program output function setting R/W Equivalent to #768 to #799
#832 to #863 CH2 Program output function setting R/W Equivalent to #768 to #799
#864 to #895 CH3 Program output function setting R/W Equivalent to #768 to #799
0: Disabled
#896 CH0 Program output enabled R/W 1: Enabled
(default value: 0)
0: Disabled
#897 CH1 Program output enabled R/W 1: Enabled
(default value: 0)
0: Disabled
#898 CH2 Program output enabled R/W 1: Enabled
(default value: 0)
0: Disabled
#899 CH3 Program output enabled R/W 1: Enabled
(default value: 0)
#900 to #8191 Reserved for system -
Output data
#8192 to #40959 Program output data R/W
and control command
#40960 to #59999 Reserved for system -

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-37


3-2 Settings & Various Functions

 Device
• Program output data (common for all channels: #8192 to #40959)
32 bits of data, including output data (16 bits), control command (2 bits), and supplementary command (14 bits).
16384 pieces of data can be stored, and each piece of data has a data number from 0 to 16383 assigned.
Program output data is common for all channels.

Program output data is stored in the buffer memory as follows.


3 Output data buffer memory address:
#8192 + data number x 2
Control command/supplementary command buffer memory address:
KV-SDA04

#8193 + data number x 2


Buffer Upper 16 bits Lower 16 bits
Data
memory
number 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
address
#8192 to Control
0 Supplementary command Output data
#8193 command
#8194 to Control
1 Supplementary command Output data
#8195 command
#8196 to Control
2 Supplementary command Output data
#8197 command

#40954 to Control
16381 Supplementary command Output data
#40955 command
#40956 to Control
16382 Supplementary command Output data
#40957 command
#40958 to Control
16383 Supplementary command Output data
#40959 command

Output data (-32768 to +32767)


Stores the D/A conversion source data.
"KV-SDA04 Functional Block Diagram", Page 3-23

Control command (0(00) to 2(10)), supplementary command (0 to 16383)


Sets the output method for output data.
0(00): Stop output
Stops program output. Program output data with a control command set to 0 is not executed.
Program output stops, and analog output starts at the output data value assigned to the data memory.
1(01): Specified cycle output
Between the supplementary command value +1 cycle, the output data value is output in
analog. Then, the program output data with the next data number is executed.
If it is the final data number (16383), the first (0) program output data is executed.
Example) If the supplementary command value is 0, 1 cycle is output.
2(10): Jump to specified data number
The output data value is output in analog for 1 cycle. Then program output data is executed for
the data number specified in the supplementary command.

3-38 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions

Example
0(00): Stop output
Output automatically stops when program output data 19 has been output.
Output
Buffer Upper 16 bits Program output data 0
Data Lower
memory
number 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 16 bits Program output data 1
address
#8192 to 1 Output
0 to 19 Supplementary command


#8193 0 1 data

3
#8232 to 0
20 - -
#8233 0 0 Program output data 19
Program output data 20 × stop

KV-SDA04
1(01): Specified cycle output
1 cycle of program output data 0 and 1 is output, and then 5 cycles of program output data 2 is output.
Output
Buffer Upper 16 bits Program output data 0
Data Lower
memory
number 16 bits
address 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Program output data 1

#8192 to 1 0 Output
0
#8193 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 data

#8194 to 1 0 Output Program output data 2


1
#8195 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 data

#8196 to 1 4 Output
2
#8197 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 data Program output data 3


2(10): Jump to specified data number
Jumps to program output data 0 when program output data 20 has been output, and repeats the output.
Output
Buffer Upper 16 bits Program output data 0
Data Lower
memory
number 16 bits
address 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Program output data 1

#8192 to 1 Output
0 to 19 Supplementary command

#8231 0 1 data

#8232 to 2 0 Output
20
#8233 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 data Program output data 19
Program output data 20

Reference Program output data can be rewritten when desired during output.

• Start data number (CH0: #768, CH1: #800, CH2: #832, CH3: #864)
Sets the data number on which to start program output. By specifying the data number you can
execute the program data you want to on each channel. (Range: 0 to 16383 (default value: 0))
Only bits 0 to 13 are used.
If this is changed while the program output function is being executed, it forcibly jumps to the
program output data for the specified data number.
• Program execution cycle setting (CH0: #769, CH1: #801, CH2: #833, CH3: #865)
Sets the program output function update cycle. The update cycle changes as follows according to the
program execution cycle setting value (range: 1 to 255 (default value: 1)).
Program output update cycle = D/A conversion data updating period x Program execution cycle setting
The D/A conversion data updating period changes as follows according to the number of channels on
which D/A conversion is carried out.
"Updating Period for D/A Conversion Data", Page 3-7
D/A conversion data updating period = D/A conversion speed (10 µs) x Number of channels used

If inter-unit synchronous period is used, the program output update cycle may
Point
become longer during the inter-unit synchronous period idle time.
"Operation overview when executing the inter-unit synchronous period", Page 3-44

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-39


3-2 Settings & Various Functions

Example When D/A conversion is used on 2 channels, and updates in 100 ms cycles
Number of channels used 2
Program execution cycle setting 5
Program output update cycle = 10 µs x 2 x 5 = 100 µs
Only bits 0 to 7 are used.
Can be changed while the program output function is being executed.
• Interrupt data number setting (CH0: #770, CH1: #802, CH2: #834, CH3: #866)
A unit interrupt condition is generated when the program output data with the data number specified
3 in the interrupt data number setting is executed. (Range: 0 to 16383 (default value: 0))
"Unit Interrupt Function", Page 3-33
KV-SDA04

Only bits 0 to 13 are used.


Can be changed while the program output function is being executed.
• Sync start setting (CH0: #771, CH1: #803, CH2: #835, CH3: #867)
Sets whether to enable/disable the inter-unit sync start function when using inter-unit synchronous
period.
0: Disabled
1: Enabled
If you set the sync start setting to 1 (enabled), write 1 in program output enabled in the inter-unit
synchronous module.
When the synchronous refresh timeout time has elapsed, program output starts from DA conversion.
This function synchronizes the timing at which program output starts between multiple units.
"Inter-unit synchronous period", Page 3-43
Operation overview of the inter-unit sync start function
Reference
Synchronous Synchronous refresh time Inter-unit synchronous module

CH0 ①
Unit 1 0 1
buffer memory CH1
(program output enabled) 0 1
CH0
Unit 2 0 1
buffer memory CH1
(program output enabled) 0 1

CH0 CH0 CH0 CH0 CH0 CH0


Unit 1 DA conversion CH1 CH1 CH1 CH1 CH1 CH1
CH2 CH2 CH2 CH2 CH2 CH2
CH3 CH3 CH3 CH3 CH3
CH0 CH0 CH0 CH0 CH0 CH0
Unit 2 DA conversion CH1 CH1 CH1 CH1 CH1 CH1
CH2 CH2 CH2 CH2 CH2 CH2
CH3 CH3 D CH3 CH3 CH3

B C ②

A
CH0 ③

Unit 1
analog output
CH1

CH0

Unit 2
analog output CH1

A = Program output update cycle : The time of the number of channels used x D/A conversion
speed (10 µs) x program execution cycle setting.
B = Synchronous refresh timeout time : The time of the inter-unit synchronous period x 0.2.
C = Internal processing time : Time for internal processing, fixed at 10 µs.
D = Idle time : The spare time calculated by dividing the inter-unit synchronous
period by the D/A data updating period. DA conversion stops.
3-40 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -
3-2 Settings & Various Functions

(1) The UWRIT command is used to write 1 to program output enabled in the buffer memory in the
inter-unit synchronous module.
(2) After the sync timing, program output starts after the synchronous refresh timeout time + internal
processing time.
(3) At every program output update cycle, output is updated according to the program output data.

• If program output is stopped by setting the control command to 0 (stop


Point
output) when the sync start setting is 1 (enabled) and program output enabled
is 1 (enabled), program output starts again at the next inter-unit synchronous 3
period.

KV-SDA04
• Set the inter-unit synchronous period to a sufficient length, or write a UWRIT
command in the first inter-unit synchronous module, so the UWRIT command
to write 1 in program output enabled is executed within the synchronous
refresh timeout time.
If the UWRIT command is not executed within the synchronous refresh
timeout time, the program output start time may vary.
• When the program output function is used over multiple inter-unit
synchronous periods, the program output update cycle may become longer
during idle time.

• Program output status monitor (CH0: #794, CH1: #826, CH2: #858, CH3: #890)
Monitors the program output status. Read it using a UREAD command.
0: Stopped
1: Outputting
Only bit 0 is used.
• Current data number monitor (CH0: #795, CH1: #827, CH2: #859, CH3: #891)
When program output enabled is 1 (enabled), the data number being executed is stored.
When program output enabled is 0 (disabled), it is cleared at the start data number value.
Read it using a UREAD command.
• Program output enabled (CH0: #896, CH1: #897, CH2: #898, CH3: #899)
Write 01 to read setting data and start program output.
The program output function can be executed on multiple channels simultaneously.

Point To execute the program output function again, write 0 and then write 1.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-41


3-2 Settings & Various Functions

 Sample program
Rectangular waves with an ON width of 1 ms and an OFF width of 0.5 ms are output at the following settings.
Channel used :CH0 +5000
Number of channels used :1 channel Output data
+0
Program execution cycle setting :1
Start data number :10 1ms 0.5ms

Buffer Buffer
Data Control Output
memory Supplementary command memory
number command data
address address

3 10 #8213 0
1
1 0 0 0 0 0 0 0
99
1 1 0 0 0 1 1 #8212 +5000
4 0 6 3
KV-SDA04

1 48
11 #8215 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 #8214 +0
4 0 3 0
2 10
12 #8217 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 #8216 +0
8 0 0 A

Program output data setting ;<Mnemonic list>


MR000 MR002 MR001 ;Program output data setting
LDP MR000
Output data
setting
Output data setting
complete
Configuring output
data setting
OR MR001
MR001
ANB MR002
OUT MR001
Configuring output LD MR001
data setting
MR001 MOV.S MOV.S +5000 ZF0
+5000 ZF0 MOV $4063 ZF1
Configuring output Data 1_Lower
MOV.S +0 ZF2
data setting MOV $4030 ZF3
MOV MOV.S +0 ZF4
$4063 ZF1
MOV $800A ZF5
Data 1_Upper UWRIT #1 #8212 ZF0 #6
MOV.S
OUT MR002
+0 ZF2
;Program output function setting
LDP MR003
Data 2_Lower
UWRIT #1 #768 #10 #1
MOV UWRIT #1 #769 #1 #1
$4030 ZF3 ;Program output start
Data 2_Upper LDP MR004
MOV.S
UWRIT #1 #896 #1 #1
+0 ZF4
LDP MR005
UWRIT #1 #896 #0 #1
Data 3_Lower

MOV
$800A ZF5

Data 3_Upper

UWRIT
#1 #8212 ZF0 #6

KV-SDA04 Output data for Data 1_Lower


program output
data number 10 MR002

Output data
setting complete

Program output function setting

MR003 UWRIT
#1 #768 #10 #1
Program output
KV-SDA04 ch0 Start
function setting data number
UWRIT
#1 #769 #1 #1

KV-SDA04 ch0 Program


execution cycle setting

Program output start

MR004 UWRIT
#1 #896 #1 #1
Program output start
KV-SDA04 ch0 Program
output enabled
MR005 UWRIT
#1 #896 #0 #1
Program output stop
KV-SDA04 ch0 Program
output enabled

3-42 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-2 Settings & Various Functions

Inter-unit synchronous period

 What does the inter-unit synchronous period?


The inter-unit synchronous period is a function to match the control timing by the signal among multiple
units.
The use of this function enables you to realize the simultaneous sampling, the simultaneous positioning
among the multiple units.
3
Reference For the details of inter-unit synchronization, refer to "KV-7000 Series User's Manual".

KV-SDA04
Designate the absence or presence of using the inter-unit synchronous period.
When set to "Use", designate the refresh timing of the unit.
Refresh timing Inter-unit synchronization: Refresh at a time of the synchronous
refresh immediately after the synchronous timing.
Batch (END processing): Refresh when END processing the main
routine program.

 Unit specification at a time of inter-unit synchronous period

Item Set value


Inter-unit synchronous period 40.0µs∼
Input R 3ch (48 points)
Input DM 5 words
Refresh device Output R 3ch (48 points)
Output DM 24 words
Buffer memory ―

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-43


3-2 Settings & Various Functions

 Operation overview when executing the inter-unit synchronous period


Write timing Example: Change output date

Synchronous Synchronous refresh time Inter-unit synchronous module

CH0 ①
Unit 1 2000 3000 4000
Refresh device

3
CH1
(Output data)
7000 5000 3000
CH0
Unit 2 20000 15000 12000
KV-SDA04

Refresh device CH1


(Output data) 5500 6000 7500
CH0 ②
Unit 1 1000 2000 3000 4000
Buffer memory CH1
(Output data)
9000 7000 5000 3000
CH0
Unit 2 10000 20000 15000 12000
Buffer memory CH1
(Output data)
6500 5500 6000 7500

Unit 1 AD CH0 CH0 CH0 CH0 CH0


CH1 CH1 CH1 CH1 CH1
conversion CH2 CH2 CH2 CH2 CH2
CH3 CH3 CH3 CH3 CH3
CH0 CH0 CH0 CH0 CH0
Unit 2 AD CH1 CH1 CH1 CH1 CH1
CH2 CH2 CH2 CH2 CH2
conversion
CH3 CH3 CH3 CH3 CH3

E D B C

CH0

Unit 1 Analog output


CH1

CH0

Unit 2 Analog output


CH1

A A

A = Inter-unit synchronous period :Set in "Unit Editor".


B = Synchronous refresh timeout time :Is the time of the inter-unit synchronous period x 0.2.
C = Internal processing time :Is the time for 10µs (Fixed), internal processing.
D = D/A data updating period :Is the time of the used CH number x D/A conversion speed (10µs).
E = Idle time :Is the spare time of the inter-unit synchronous period divided by
the D/A data updating period, and stop the DA conversion.
① Changes the device of the output data by the inter-unit synchronous module.
② When the refresh timing of the unit setting is "Inter-unit synchronization", it is transferred to the unit
by the next synchronous refresh timing.
③ The DA conversion is started after the synchronous refresh timeout time + internal processing time
from the synchronous timing.
• When the changed output data is reflected on the ananlog output, it becomes at a time
Point when the DA conversion has been completed at the next synchronous timing between
units, but you can reflect on the output simultaneously between units. 
Example In the case of the inter-unit synchronous period being 100µs, the output data
of CH0 is reflected on the analog output after 40µs from the synchronous timing.
• When data is changed using the direct refresh command in the inter-unit
synchronous module, it is immediately applied to the output.
When direct refresh is carried out, there may be a gap in the timing of output
between units.

3-44 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-3 KV-SDA04 Unit Specific Instructions
This section describes KV-SDA04 Unit Specific Instruction used in Ladder. For using in the script
program, please see "3-4 KV-SDA04 Unit Specific Functions", Page 3-54.

List of KV-SDA04 Unit Specific Instructions

Function Instruction Description See Page

Change D/A conversion


3
U_WRDA Change D/A conversion output data Page 3-46
output data

KV-SDA04
Change output data offset U_WROFST Change output data offset value. Page 3-48

Write scaling setting value U_WRSCL Write scaling setting value to buffer memory. Page 3-50

Write upper/lower limit alarm U_WRLMT Write upper/lower limit alarm value to buffer memory. Page 3-52

The processing independent of scanning time can be conducted by using unit specific
Reference
instruction.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-45


3-3 KV-SDA04 Unit Specific Instructions

U_WRDA U_WRDA(.S) U_WRDA


Change D/A To change D/A
conversion conversion output
@U_WRDA @U_WRDA(.S) U_WRDA output data data

Ladder program Input mode

3 Execution condition U_WRDA.S


n1
KV-SDA04
n2 S U _ W R D A n1 n2 S
KV-SDA04

Execution condition KV-SDA04


n1 n2 S @ U _ W R D A n1 n2 S

Available Devices
Index
Indirect Local modification
Bit device Word devices 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 Note
n1 To specify unit No. (1 to 48). *1
n2 To specify analog output (0 to 3) channel or the device where channel is stored. *2
S To specify D/A conversion output data changed or the device storing the data. *2

*1 $(HEX specifying) can not be used.


*2 If bit devices are specified in n2 and S , continuous 16 bits will be processed. 
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.).

Description of Operation

U_WRDA(.S) When execution condition is ON, read D/A conversion output data of channel
n2 of unit n1 to 1-word BIN value specified in S .

Constant/device No. Buffer memory

S D/A conversion output data

@ U_WRDA(.S) The instruction is performed only at the rising edge of condition.

3-46 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-3 KV-SDA04 Unit Specific Instructions

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
It is ON in any one of the following conditions, otherwise it is OFF.
• When unit No. specified in n1 is 49 above

3
CR2012 • When unit No. specified in n1 is not KV-SDA04
• When channel No. of analog output specified in n2 exceeds 4
• Improper indirect specifying or index modification range

KV-SDA04
* When CR2012 is ON, detailed error information of CM5100 to CM5176 will be stored.
KV-7000 Series User's Manual

Sample Program

When the first connected KV-SIR32XT's IN000 is ON, this program executes the interrupt program, and
changes the second connected KV-SDA04 CH0's D/A conversion output data to +1000.

;(Mnemonics list)
CR2008 LD CR2008
EI EI
When starting operation IEDGE.U #1 #0 #0
1 scan is ON END
INT #1 #0
LD CR2002
IEDGE KV-SIR32XT
U_WRDA.S #2 #0 +1000
Unit No. Input No. Detection condition
#0 RETI
#1 #0
ENDH
KV-SIR32XT

END

INT
Unit No. Interrupt factor
#1 #0
KV-SIR32XT R34000

U_WRDA.S KV-SDA04
CR2002
Unit No. CH No. Output data
#2 #0 +1000
Always ON
KV-SDA04

RETI

ENDH

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-47


3-3 KV-SDA04 Unit Specific Instructions

U_WROFST U_WROFST(.S) U_WROFST


Change output To change output

@U_WROFST @U_WROFST(.S) U_WROFST


data offset data offset value.

Ladder program Input mode

3 Execution condition U_WROFST.S


n1
KV-SDA04
n2 S U _ W R O F S T n1 n2 S
KV-SDA04

Execution condition KV-SDA04


n1 n2 S @ U _ W R O F S T n1 n2 S

Available Devices
Index
Bit device Word devices 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 Note
n1 To specify unit No. (1 to 48). *1
n2 To specify analog output (0 to 3) channel or the device where channel is stored. *2
S To specify output data offset value or the device for storing the value. *2

*1 $(HEX specifying) can not be used.


*2 If bit devices are specified in n2 and S , continuous 16 bits will be processed. 
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.).

If executing U_WROFST instruction, the value specified by S in DM assigned


Point
to output data offset value is stored to device.

Description of Operation

U_WROFST(.S) When execution condition is ON, change the special data offset of channel
n2 of unit n1 to 1-word BIN value specified in S .

Constant/device No. Buffer memory

S Output data offset

@ U_WROFST(.S) The instruction is performed only at the rising edge of condition.

3-48 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-3 KV-SDA04 Unit Specific Instructions

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
It is ON in any one of the following conditions, otherwise it is OFF.
• When unit No. specified in n1 is 49 above

3
CR2012 • When unit No. specified in n1 is not KV-SDA04
• When channel No. of analog output specified in n2 exceeds 4
• Improper indirect specifying or index modification range

KV-SDA04
* When CR2012 is ON, detailed error information of CM5100 to CM5176 will be stored.
KV-7000 Series User's Manual

Sample Program

When MR000 is ON, this program changes the first connected KV-SDA04's CH0 output data offset
value to +100.

;(Mnemonics list)
MR000 U_WROFST.S KV-SDA04
Unit No. CH No. Offset LD MR000
#1 #0 +100 U_WROFST.S #1 #0 +100

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-49


3-3 KV-SDA04 Unit Specific Instructions

U_WRSCL U_WRSCL(.S) U_WRSCL


Write scaling
To write scaling
setting value to
@U_WRSCL @U_WRSCL(.S) U_WRSCL
setting value
buffer memory.

Ladder program Input mode

3 Execution condition U_WRSCL.S


U_WRSCL
n1
KV-SDA04
n2 S U _ W R S C L n1 n2 S
KV-SDA04

Execution condition KV-SDA04


n1 n2 S @ U _ W R S C L n1 n2 S

Available Devices
Index
Bit device Word devices 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 Note
n1 To specify unit No. (1 to 48). *1
n2 To specify analog output (0 to 3) channel or the device where channel is stored. *2
S To specify the leading device for storing scaling setting value . *3*4

*1 $(HEX specifying) can not be used.


*2 If bit devices are specified in n2 , continuous 16 bits will be processed. 
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 When bit devices are specified in S , continuous 16 x 2 bits are processed. 
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.).
*4 When a constant (-32768 to 32767) is specified in S , the same value specified is stored
in the scaling upper limit value/lower limit value of buffer memory.

• Scaling setting value is not changed by only executing U_WRSCL instruction.


Point
Update setting Ladder is required.
"Change Setting Value via unit specific instruction", Page 3-21
• If executing U_WRSCL instruction, the value identical to the value written into
buffer memory is also stored in DM assigned to the scaling setting value.
• In Unit Editor, if the scaling value is set to "Unit Editor selection", when it
switches from the PROGRAM mode to the RUN mode, the scaling setting value
returns to the default value specified by Unit Editor.

3-50 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-3 KV-SDA04 Unit Specific Instructions

Description of Operation

U_WRSCL(.S) When execution condition is ON, write 2-word BIN data starting from S as
the scaling value into buffer memory of channel n2 of unit n1 .

Device No. Buffer memory


S +0 Scaling upper limit
S +1 Scaling lower limit 3

KV-SDA04
@ U_WRSCL(.S) The instruction is performed only at the rising edge of condition.

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
It is ON in any one of the following conditions, otherwise it is OFF.
• When unit No. specified in n1 is 49 above
• When unit No. specified in n1 is not KV-SDA04
CR2012
• When channel No. of analog output specified in n2 exceeds 4
• When 2-word device fails to be guaranteed from the specified device No. in S .
• Improper indirect specifying or index modification range
* When CR2012 is ON, detailed error information of CM5100 to CM5176 will be stored.
KV-7000 Series User's Manual

Sample Program

When MR000 is rising edge, this program changes the first connected KV-SDA04's CH0 scaling upper
limit value to +1000 and scaling lower limit value to +50.
;(Mnemonics list)
MR000 MOV.S
+1000 DM0
LDP MR000
MOV.S +1000 DM0
Scaling upper MOV.S +50 DM1
limit U_WRSCL.S #1 #0 DM0
LDP MR000
MOV.S
OR R34001
+50 DM1 ANB DR34301
Scaling lower
OUT DR34001
limit

U_WRSCL.S KV-SDA04
Unit No. CH No. Scaling setting
#1 #0 DM0
Scaling upper
limit

MR000 DR34301 DR34001

Setting update completed Setting update request

R34001

Setting update request

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-51


3-3 KV-SDA04 Unit Specific Instructions

U_WRLMT U_WRLMT(.S) U_WRLMT


Write upper/lower
To write upper/
lower limit alarm
limit alarm

@U_WRLMT @U_WRLMT(.S) U_WRLMT


value to buffer
memory.

Ladder program Input mode

3 Execution condition U_WRLMT.S


n1
KV-SDA04
n2 S U _ W R L M T n1 n2 S
KV-SDA04

Execution condition KV-SDA04


n1 n2 S @ U _ W R L M T n1 n2 S

Available Devices
Index
Bit device Word devices 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 Note
n1 To specify unit No. (1 to 48). *1
n2 To specify analog output (0 to 3) channel or the device where channel is stored. *2
S To specify leading device of the upper/lower limit alarm value saved. *3*4

*1 $(HEX specifying) can not be used.


*2 If bit device are specified in n2 , continuous 16 bits will be processed. 
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 When bit devices are specified in S , continuous 16 × 2 bits are processed. 
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.).
*4 When constant (-32768 to 32767) is set in S , the same value specified will be stored in
upper limit alarm value, lower limit alarm value of buffer memory.

• U_WRLMT command is only performed and upper/lower limit alarm value are
Point
not changed. Update setting Ladder is required.
"Change Setting Value via unit specific instruction", Page 3-21
• If executing U_WRLMT instruction, the value identical to the value written into
buffer memory is stored in DM assigned to upper/lower limit alarm value.
• In Unit Editor, if the upper lower limit warning value is set to "Unit Editor
selection", when it switches from the PROGRAM mode to the RUN mode, the
comparator setting value returns to the default value specified by Unit Editor.

3-52 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-3 KV-SDA04 Unit Specific Instructions

Description of Operation

U_WRLMT(.S) When execution condition is ON, write 2-word BIN data starting from S as
the upper/lower limit alarm value into buffer memory of channel n2 of unit
n1 .

Device No. Buffer memory


S +0 Upper limit alarm 3
S +1 Lower limit alarm

KV-SDA04
@ U_WRLMT(.S) The instruction is performed only at the rising edge of condition.

Operation flag

CR2009 No change in status


CR2010 No change in status
CR2011 No change in status
It is ON in any one of the following conditions, otherwise it is OFF.
• When unit No. specified in n1 is 49 above
• When unit No. specified in n1 is not KV-SDA04
CR2012
• When channel no. of analog output specified in n2 exceeds 4
• When 2-word device fails to be guaranteed from the specified device No. in S

• Improper indirect specifying or index modification range


* When CR2012 is ON, detailed error information of CM5100 to CM5176 will be stored.
KV-7000 Series User's Manual

Sample Program

When MR000 is rising edge, this program changes the first connected KV-SDA04's CH0 upper limit
warning value to +950 and lower limit warning value to -100.
;(Mnemonics list)
MR000 MOV.S
+950 DM0 LDP MR000
MOV.S +950 DM0
Upper limit alarm MOV.S -100 DM1
U_WRLMT.S #1 #0 DM0
LDP MR000
MOV.S
OR R34001
-100 DM1 ANB DR34301
Lower limit alarm
OUT DR34001

U_WRLMT.S KV-SDA04
Unit No. CH No. Alarming value
#1 #0 DM0
Upper limit alarm

MR000 DR34301 DR34001

Setting update completed Setting update request

R34001

Setting update request

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-53


3-4 KV-SDA04 Unit Specific Functions
This section describes KV-SDA04 unit specific function used in script. For using in the Ladder, please
see "3-3 KV-SDA04 Unit Specific Instructions", Page 3-45.

List of KV-SDA04 Unit Specific Functions

Function Function Description See Page


3 Change D/A conversion
U_WRDA Change D/A conversion output data Page 3-55
output data
KV-SDA04

Change output data offset U_WROFST Change output data offset value. Page 3-56

Write scaling setting value U_WRSCL Write scaling setting value to buffer memory. Page 3-57

Write upper/lower limit alarm U_WRLMT Write upper/lower limit alarm value to buffer memory. Page 3-58

The processing independent of scanning time can be conducted by using specific


Reference
functions.

3-54 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-4 KV-SDA04 Unit Specific Functions

Point function

U_WRDA Change D/A conversion output data

U_WRDA ([Execution condition]*1, unit No., ch No., output data)

Operation type Constant Operation


Argument/Return value Description
.U .S .D .L .F .DF .B .T #/$
Device
formula
3
n1 unit No.*2 Specify unit No. (1 to 48). - - - - - - - - ○ - ○

KV-SDA04
Specify analog output (0 to 3) channel
n2 Ch No.*4 .U .U .U .U - - - - ○ ○ ○
or the device where channel saved.
S Output data Specify output operation data or
*3*4 .S .S .S .S - - - - ○ ○ ○
save the data device.
R Return value None - - - - - - - - - - -

*1 "[ ]" can be omitted. If execution condition is omitted, the command will be always performed
(performed in every scanning).
*2 $ (HEX specifying) can not be used.
*3 T, C, and Z cannot be specified.
*4 If bit device are specified in n2 and S , continuous 16 bits will be processed. 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.).

Description of Operation

When execution condition is ON, read D/A conversion data of channel n2 from the unit n1 and
store into S in BIN format.

For details, see "U_WRDA command" Page 3-46.

● Format example
Programming script U_WRDA (MR000, 1, 0, +1000)
Description of Operation When MR000 is ON, changes the first connected KV-SDA04 CH0's D/A conversion
output data to +1000.
Ladder diagram
MR000 U_WRDA.S KV-SDA04
Unit No. CH No. Output data
#1 #0 +1000

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-55


3-4 KV-SDA04 Unit Specific Functions

Point function

U_WROFST Change output data offset


U_WROFST ([Execution condition]*1, unit No., ch No., output data offset)

Operation type Constant Operation


3 Argument/Return value Description
.U .S .D .L .F .DF .B .T #/$
Device
formula
n1 unit No.*2 Specify unit No. (1 to 48). - - - - - - - - ○ - ○
KV-SDA04

Specify analog output (0 to 3) channel


n2 Ch No.*4 .U .U .U .U - - - - ○ ○ ○
or the device where channel saved.
S Output data Specify output data offset value or the .S .S .S .S - - - - ○ ○ ○
offset*3*4 device storing the value.
R Return value None - - - - - - - - - - -

*1 [ ] can be omitted (When the execution condition has been omitted, the instruction is
executed at all times (at every scan)).
*2 $(HEX specifying) can not be used.
*3 T, C, and Z cannot be specified.
*4 If bit device are specified in n2 and S , continuous 16 bits will be processed. 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.).

Description of Operation

When execution condition is ON, read special data offset value specified in S as 2-word BIN data
from channel n2 of unit n1 .

For details, "U_WROFST command" see Page 3-48.

● Format example
Programming script U_WROFST (MR000, 1, 0, +100)
Description of Operation When MR000 is ON, changes the first connected KV-SDA04's CH0 output data offset
value to +100.
Ladder diagram
MR000 U_WROFST.S KV-SDA04
Unit No. CH No. Offset
#1 #0 +100

3-56 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-4 KV-SDA04 Unit Specific Functions

Point function

U_WRSCL Write scaling setting value

U_WRSCL ([Execution condition]*1, unit No., ch No., leading device No.)

Operation type Constant Operation


Argument/Return value Description
.U .S .D .L .F .DF .B .T #/$
Device
formula
3
n1 unit No.*2 Specify unit No. (1 to 48). - - - - - - - - ○ - ○

KV-SDA04
Specify analog output (0 to 3) channel
n2 Ch No.*4 .U .U .U .U - - - - ○ ○ ○
or the device where channel saved.
S Leading Specify the leading device storing .S .S .S .S - - - - - ○ -
device No.*3*5 scaling setting value/ time data.
R Return value None - - - - - - - - - - -

*1 [ ] can be omitted (When the execution condition has been omitted, the instruction is
executed at all times (at every scan)).
*2 $(HEX specifying) can not be used.
*3 T, C, and Z cannot be specified.
*4 If bit device are specified in n2 , continuous 16 bits will be processed. 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 When bit device are specified in S , continuous 16 x 2 bit are processed. 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.).

Description of Operation

When execution condition is ON, write 2-word BIN value starting from S as the scaling setting
value into buffer memories of channel n2 of unit n1 .

For details, "U_WRSCL command", see (Page 3-50).

Scaling setting value is not changed by only executing U_WRSCL instruction.


Point
Update setting Ladder is required.
"Change Setting Value via unit specific instruction", Page 3-21

● Format example
Programming script U_WRSCL (MR000, 1, 0, DM0)
Description of Operation When MR000 is ON, writes values of DM0 and DM1 as CH0's scaling setting value to
the first connected KV-SDA04's buffer memory.
Ladder diagram
MR000 U_WRSCL.S KV-SDA04
Unit No. CH No. Scaling setting
#1 #0 DM0

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-57


3-4 KV-SDA04 Unit Specific Functions

Point function

U_WRLMT Write upper/lower limit alarm

U_WRLMT ([Execution condition]*1, unit No., ch No., leading device No.)

Operation type Constant Operation


3 Argument/Return value Description
.U .S .D .L .F .DF .B .T #/$
Device
formula
n1 unit No.*2 Specify unit No. (1 to 48). - - - - - - - - ○ - ○
KV-SDA04

Specify analog output (0 to 3) channel


n2 Ch No.*4 .U .U .U .U - - - - ○ ○ ○
or the device where channel saved.
S Leading Specify initial device of the upper/lower .S .S .S .S - - - - - ○ -
device No.*3*5 limit alarm value saved.
R Return value None - - - - - - - - - - -

*1 "[ ]" can be omitted. If execution condition is omitted, the command will be always performed
(performed in every scanning).
*2 $(HEX specifying) can not be used.
*3 T, C, and Z cannot be specified.
*4 If bit device are specified in n2 , continuous 16 bits will be processed. 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 When bit device are specified in S , continuous 16 x 2 bit are processed. 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.).

Description of Operation

When execution condition is ON, write 4-word BIN value starting from S as the comparator setting
value into buffer memories of channel n2 of unit n1 .

For details, "U_WRLMT" see Page 3-52

U_WRLMT command is only performed and upper/lower limit alarm value not
Point
changed.
Update setting Ladder is required.
"Change Setting Value via unit specific instruction", Page 3-21

● Format example
Programming script U_WRLMT (MR000, 1, 0, DM0)
Description of Operation When MR000 is ON, writes the values of DM0 and DM1 as CH0's upper lower limit
warning value to the first connected KV-SDA04's buffer memory.
Ladder diagram
MR000 U_WRLMT.S KV-SDA04
Unit No. CH No. Alarming value
#1 #0 DM0

3-58 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-5 Access Window
This section describes the procedure for monitoring and changing the settings of the KV-SDA04 using
the Access Window of the CPU Unit.

Access Window

KV-SDA04 can be monitored, tested and its settings can be changed using the Access Window on the
CPU Unit.
The following items can be monitored and set on the Access Window. 3
KV-7500

KV-SDA04
REALTIME
Logic Controller
CARD
MENU ENTER

Analog conversion value Scaling upper limit value Output data offset value

.96'$&+ .96'$&+ .96'$&+


࢔ࢼࣟࢢ᥮⟬್ 㺛㺗㺎㺶㺻㺖㺼ୖ㝈್ ฟຊ㺡㺼㺎㺞㺓㺪㺜㺍㺢
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉࠉ>9@ 

.96'$ࠉࠉ&+ .96'$&+ .96'$&+


$QDORJ'DWD 6FDOLQJ+ 2XWSXW2IIVHW
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉࠉ>9@ 

Output data Channel skip Warning upper limit relay

.96'$&+ .96'$&+ .96'$&+


ฟຊࢹ࣮ࢱ &+ࢫ࢟ࢵࣉ ㆙ሗୖ㝈࣮ࣜࣞ
ࠉ ࡋ࡞࠸ ࠉࠉࠉࠉࠉࠉ2))

.96'$&+ .96'$&+ .96'$&+


2XWSXW'DWD &KDQQHO6NLS 8//PW$OP+
ࠉ 'LVDEOH ࠉࠉࠉࠉࠉࠉ2))

Output range Output during PROG Output relay

.96'$&+ .96'$&+ .96'$&+


ฟຊࣞࣥࢪ 352*᫬ฟຊ ฟຊ୰࣮ࣜࣞ
ࠉ㹼>9@ ࠉࠉࠉࠉ౑⏝ࡍࡿ ࠉࠉࠉࠉࠉࠉ21
  

.96'$&+ .96'$&+ .96'$&+


2XWSXW5DQJH 352*0RGH2XWSXW 2XWSXW
WR>9@ ࠉࠉࠉࠉ(QDEOHG ࠉࠉࠉࠉࠉࠉࠉ21
  

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-59


3-5 Access Window

Changing Settings in the Access Window

Though some settings can be changed in the Access Window, basically use Unit Editor to change
settings.

When changing settings in the Access Window, change the CPU unit to PROGRAM
Reference
mode first.

3 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.
KV-SDA04

Menu Structure

The structure of the Access Window is as follows.

Monitor CH0 Analog Data


U/L Lmt Alm H
U/L Lmt Alm L
Monitor CH1 Output
Monitor CH2
Monitor CH3

Setting CH0 Channel Skip Disable Output Range -10 to +10[V]


Enable 0 to 10[V]
0 to 5[V]
0 to 20[mA]
1 to 5[V]
4 to 20[mA]
Output Data

Output Offset

Scaling Disabled
Enabled Scaling H
Scaling L
U/L Lmt Alarm Disabled
Enabled U/L Lmt Alm. H
U/L Lmt Alm. L
Output Limit Disabled
Enabled

Error Hold Disabled


Enabled

PROG Mode Output Disabled


Enabled

Setting CH1
Setting CH2
Setting CH3

The access window does not appear for the following items.
Point
• CH’s setting item with channel skip "Enable"
• Setting values that are set to "DM selection" by Unit Editor
• Function’s setting value and relay set to "Disabled"

3-60 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-5 Access Window

Operating the Access Window

The Access Window can be operated by the Setup key on the KV-700.

Setup key Normal function Setting is changed when


Moves to the normal state without changing
MENU Displays the menu.
the setting.
Select an item.

ENTER
Continuously pressing it for 1 second or more
at the setting screen goes to the setting
Changes settings when pressed for
1 second or longer. 3
change state.

KV-SDA04
Changes the selection or increases the
 Switch page.
amount of change to the setting value.
Changes the selection or decreases the
 Switch page.
amount of change to the setting value.
 Displays the menu.
Selects the digit of the set value to change.
 Select an item.

* The settings can only be changed when the CPU unit is in PROGRAM mode.

Moving to the Menu Screen

The following describes how to move to the menu screen.

1 Press the direct access switch of the KV-SDA04 you want to monitor.
The direct access switch starts blinking, and the monitor Direct access switch
screen for CH0 on the KV-SDA04 you selected is displayed
on the Access Window.
KV-7500 KV-SDA04

.96'$ࠉࠉ&+ .96'$ࠉࠉ&+
࢔ࢼࣟࢢ᥮⟬್ $QDORJ'DWD REALTIME
Logic Controller
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ CARD
V0+
ࠉࠉࠉࠉࠉࠉ>9@ ࠉࠉࠉࠉࠉࠉ>9@ MENU ENTER I0+
CH0
COM
NC
CARD SW V1+
I1+
CH1
COM
USB NC
V2+
I2+
CH2
COM
NC

LINK V3+
I3+
CH3
COM
NC
NS
EtherNet/IP™

2 Press the "MENU" key of the CPU unit.


Menu screen appears.
Select the menu screen by the "/" keys.

㺃タᐃ&+ 㺃6HWWLQJ&+
㺃タᐃ&+ 㺃6HWWLQJ&+ MENU ENTER
㺃ࣔࢽࢱ&+ 㺃0RQLWRU&+
㺃ࣔࢽࢱ&+ 㺃0RQLWRU&+

To return the CPU unit menu screen, either press the "MENU" key again, or press
Point
the direct access switch that is blinking.
For Access Window, see User's Manual of every CPU unit.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-61


3-5 Access Window

Setting Screen

The following describes the procedure for changing the settings of the KV-SDA04 using the Access
Window of the CPU Unit.

Point The settings can only be changed when the CPU unit is in PROGRAM mode.

3
How to Change Settings
KV-SDA04

Some settings of KV-SDA04 can be changed in Access Window.


Change scaling upper limit value in the following sequence.

1 Select "the channel to be set" in the menu screen using the "" and "" keys, and press the
"ENTER" key.
The selected channel's channel skip setting screen appears.

.96'$ࠉࠉ&+ .96'$ࠉࠉ&+
&+ࢫ࢟ࢵࣉ &KDQQHO6NLS MENU ENTER
ࠉࠉࠉࠉࠉࡋ࡞࠸ ࠉࠉࠉࠉ'LVDEOH

2 Use the ""/"" keys to select the scaling upper limit value screen.

.96'$ࠉࠉ&+ .96'$ࠉࠉ&+
㺛㺗㺎㺶㺻㺖㺼ୖ㝈್ 6FDOLQJ+ MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ

3 Continuously press the "ENTER" key for more than 1 second.


The setting item blinks, and the increment/decrement value appears at the bottom right of the screen.

.96'$ࠉࠉ&+ .96'$ࠉࠉ&+
㺛㺗㺎㺶㺻㺖㺼ୖ㝈್ 6FDOLQJ+ MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉࠉࠉ

4 Set the increment/decrement value.


Press the "" and "" keys to change the digit to increment/decrement.

.96'$ࠉࠉ&+ .96'$ࠉࠉ&+
㺛㺗㺎㺶㺻㺖㺼ୖ㝈್ 6FDOLQJ+ MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉࠉࠉ

3-62 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-5 Access Window

5 Each press of the "" key increments the increment/decrement value, while each press of the
"" key decrements the increment/decrement value.

.96'$ࠉࠉ&+ .96'$ࠉࠉ&+
㺛㺗㺎㺶㺻㺖㺼ୖ㝈್ 6FDOLQJ+ MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉࠉࠉ

.96'$ࠉࠉ&+ .96'$ࠉࠉ&+
㺛㺗㺎㺶㺻㺖㺼ୖ㝈್
ࠉࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉࠉࠉ
6FDOLQJ+
ࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉࠉࠉ
MENU ENTER
3

KV-SDA04
6 To apply the setting, hold down the "ENTER" key for at least one second.
Scaling upper limit value has been set.

• Setting change is possible only when the CPU unit is in the PROGRAM mode;
Point
the change is not possible in the RUN mode.
• If the specifying method of setting value is set to "DM selection", it can not be
changed.

Reference Modifiable items and setting range as follows.

Item Set range


Channel Skip Disable, Enable
Voltage : -10 to +10[V], 0 to 10[V], 0 to 5[V], 
Output Range 1 to 5[V]
Current : 0 to 20[mA], 4 to 20[mA]
Scaling Disabled, Enabled
Scaling H -32000 to +32000
Scaling L -32000 to +32000
U/L Lmt Alarm Disabled, Enabled
U/L Lmt Alm. H -32768 to +32767
U/L Lmt Alm. L -32768 to +32767
Output Limit Disabled, Enabled
Error Hold Disabled, Enabled
PROG Mode Output Disabled, Enabled

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-63


3-5 Access Window

Monitor Screen

This following describes the procedure for monitoring the settings of the KV-SDA04 using the Access
Window of the CPU Unit.

How to Monitor the KV-SDA04


3
1 Select "Monitoring channel" in the menu screen using the "" and "" keys, and press the
KV-SDA04

"ENTER" key.
Display the monitor image of analog output data of the selected channel.

.96'$ࠉࠉ&+ .96'$ࠉࠉ&+
࢔ࢼࣟࢢ᥮⟬್ $QDORJ'DWD MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉࠉ>9@ ࠉࠉࠉࠉࠉࠉ>9@

2 Select the display data you want to monitor by the "" or "" keys.

;・Analog conversion value ;・Warning upper limit relay


.96'$ࠉࠉ&+ .96'$ࠉࠉ&+ .96'$ࠉࠉ&+ .96'$ࠉࠉ&+
࢔ࢼࣟࢢ᥮⟬್ $QDORJ'DWD ㆙ሗୖ㝈࣮ࣜࣞ 8//PW$OP+
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉ ࠉࠉࠉࠉࠉࠉ2)) ࠉࠉࠉࠉࠉ2))
ࠉࠉࠉࠉࠉࠉ>9@ ࠉࠉࠉࠉࠉࠉ>9@ ࠉࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉࠉ

;・Warning lower limit relay ;・Relay during output


.96'$ࠉࠉ&+ .96'$ࠉࠉ&+ .96'$ࠉࠉ&+ .96'$ࠉࠉ&+
㆙ሗୗ㝈࣮ࣜࣞ 8//PW$OP/ ฟຊ୰࣮ࣜࣞ 2XWSXW
ࠉࠉࠉࠉࠉࠉ2)) ࠉࠉࠉࠉࠉ2)) ࠉࠉࠉࠉࠉࠉࠉ21 ࠉࠉࠉࠉࠉࠉ21
ࠉࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉࠉ

3-64 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-5 Access Window

Unit Test

The following describes the procedure for testing analog output of the KV-SDA04 using the Access
Window of the CPU Unit.

Point Unit test is possible only when the CPU unit is in the PROGRAM mode.

Checking is also possible even when a project containing unit configuration setting
3
Reference
performed by KV STUDIO is not transferred to the CPU unit.

KV-SDA04
How to Perform Testing

1 Press the "MENU" key.


The CPU unit's menu screen appears. (If another unit is already selected, press the "MENU" key
twice.)

2 Use the ""/"" key to select "3.Unit Test", and then press then "ENTER" key.
The following screen appears.

ᣑᙇࣘࢽࢵࢺࡀ 8QLWZLOO
ືస೵Ṇࡋࡲࡍࠋ VWRSZRUNLQJ MENU ENTER
⥆⾜ࡋࡲࡍ࠿㸽 &RQWLQXH"
ࠉࠉࠉࠉࠉ(17(5 ࠉࠉࠉࠉࠉ(17(5

3 Continuously press the "ENTER" key for more than 1 second.


The unit selection screen appears.

4 Press the direct access switch of KV-SDA04.


KV-SDA04 Unit Test's menu screen appears.

.96'$ .96'$
㺃ࢸࢫࢺ 㺃7HVW
㺃タᐃ 㺃6HWWLQJ
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ

5 Use the ""/"" key to select ". Test", and then press then "ENTER" key.

MENU ENTER

6 Use the ""/"" key to select a channel to test.

.96'$ .96'$
&+ࠉ࢔ࢼࣟࢢ &+$QDORJ MENU ENTER
ࠉࠉࠉࠉࠉࠉ>9@ ࠉࠉࠉࠉࠉࠉ>9@
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-65


3-5 Access Window

7 Continuously press the "ENTER" key for 1 second or more.


The analog output value blinks and the increased/decreased value appears on the 3rd line.

.96'$ࠉࠉ .96'$ࠉࠉ
&+ࠉ࢔ࢼࣟࢢ &+$QDORJ MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ

3 8 Increase or decrease the value.


You can press the ""/"" key to change the digit of the value to increase/decrease.
KV-SDA04

.96'$ࠉࠉ .96'$ࠉࠉ
&+ࠉ࢔ࢼࣟࢢ &+$QDORJ MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ

9 Pressing the "" key increases the value, and pressing the "" key decreases it.

.96'$ࠉࠉ .96'$ࠉࠉ
&+ࠉ࢔ࢼࣟࢢ &+$QDORJ MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ

.96'$ࠉࠉ .96'$ࠉࠉ
&+ࠉ࢔ࢼࣟࢢ &+$QDORJ MENU ENTER
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ
ࠉࠉࠉࠉࠉ ࠉࠉࠉࠉࠉ

10To confirm, continuously press the "ENTER" key for 1 second or more.
The analog output value is set.

MENU ENTER

Reference If you select ". Setting", you can change the output range from "-10 to +10V/0 to 20mA".

Unit Test is possible only when the CPU unit is in the PROGRAM mode; the
Point
change is not possible in the RUN mode.

3-66 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-6 Unit Monitor
Unit Monitor function of Ladder Support Software KV STUDIO is designed to ensure the value of relay
or DM used in the unit to be monitored conforms to the unit, and with optimal display. This section
describes how to view Unit Monitor and how to operate Unit Monitor.

Unit Monitor Overview

Unit Monitor is a window for optimal display of the value of relay or DM used in monitor unit according to
different units. 3
The Unit Monitor has the following functions:

KV-SDA04
• DMs and relays currently assigned to each unit can be displayed in the registering sequence.
• Each unit has provided display formats and layout templates for convenient monitoring.
• The selected unit can be monitored simply by selecting the unit to monitor without having to worry
about relay or DM assignment status.

Point Unit Monitor can only be selected from Monitor or edit menu.

Displaying Unit Monitor Window

The monitor unit is displayed as follows.

1 On the menu, select "Monitor/Simulator" -> "Unit Monitor".


"Unit Monitor selection" dialog box appears.

2 Select the units to be displayed, click the "Display" button.

Other procedure

· Select and double click the unit to be selected in unit


setting of workspace. Besides, select "Unit Monitor"
from the right-click menu.
· On Unit Editor, select the unit to be monitored, on the
right-click menu, select "Unit Monitor". On the menu,
select "View" -> "Unit Monitor".

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-67


3-6 Unit Monitor

KV-SDA04 Unit Monitor

 Brief display
(2) D/A conversion indicator (1) Unit information

(3) Display CH
3 (4) Output range display
KV-SDA04

(5) Display output data


(9) "real-time chart monitor"
button
(6) Display offset

(10) Error message


(7) Display analog data display area

(8)"Details" button

*About "read setting" button, "updating setting" button, please see the next page.

Designation Function Reference


(1) Unit information Display the connection No. and Model of unit. -
(2) D/A conversion ON during D/A conversion OFF when system functions abnormal or
Page 3-18
indicator D/A conversion fails.
(3) Display CH Display CH name. -
(4) Display output range Display set output range. Page 3-25
(5) Output data Displays the output data. Page 3-16
(6) Display offset Displays the offset value of output data. Page 3-26
(7) Display analog Displays the value when D/A conversion data is converted to a
Page 3-17
data voltage/current value.
(8) "Details" button Clicking this button displays the detailed data. -
(9) "Real-time chart
Start real-time timing curve monitor. -
monitor"button
(10) Display error info
Displays error contents when an error occurs. Page A-5
area

3-68 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3-6 Unit Monitor

 Detailed display
Status of every function can be monitored and setting value changed after detailed display.

• If one function is set to "disabled", and "---" will be shown, this function cannot
Point
be monitored or changed.
• If the specifying method is set to "Unit Editor specifying", the background of
the function setting value is grey and cannot be changed (setting updated).
• If its specifying method is set to "DM selection", the background of its function
setting value is white and can be changed (setting updated). 3

KV-SDA04
(1) Scaling

(2) Upper/lower limit alarm

(5) "Update
setting" button

(3) "Hide detail" button (4) "Read setting" button

Designation Function Reference


(1) Scaling Can monitor and change scaling upper limit value, scaling lower limit value. Page 3-25
The upper/lower limit value of upper/lower limit alarm function can
be monitored and changed. In addition, ON/ OFF status of upper
(2) Upper/lower limit alarm Page 3-28
limit alarm relay, lower limit alarm relay can be monitored and
upper/lower limit alarm can be cleared.
(3) "Hide detail" button Close detailed data display. -
Read the value of DM assigned to the setting value specified
(4) "Updating read" button -
by DM from the CPU module.
Forcedly turn the setting update request relay ON/ OFF, update
(5) "Update setting" button the internal setting value of KV-SDA04 (only DM specified Page 3-19
setting value) with the value input to the Unit Monitor.

After "Unit Monitor" is started, setting value (DM selection) updated via Ladder
Point
cannot be mapped in the "Unit Monitor". Please press the "Read setting" button,
updating to the latest message.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - 3-69


3-6 Unit Monitor

MEMO

3
KV-SDA04

3-70 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


APPENDICES
This chapter describes precautions when replacing with other unit as well as
error message list and indexes.

1 Precautions When Replacing with Other Unit •••••••••A-2


2 List of Error Messages •••••••••••••••••••••••••••••••••••••A-4
3 Index•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••A-6

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - A-1


1 Precautions When Replacing with Other Unit
This section describes precautions when replacing with other unit.

Precautions When Replacing with A/D Conversion Unit

This section describes the functional difference between A/D conversion units of KV-SAD04, KV-AD40V,
KV-AM40V, KV-AD40G, and KV-AD40.

Difference between unit built-in functions

Difference between functions built-in A/D conversion unit as follows.


Item KV-SAD04 KV-AD40V KV-AM40V KV-AD40G KV-AD40
Direct refresh/unit specific
Yes*1 Yes*1
APPENDICES

Yes No No
instructions
DM selection of setting value Yes Yes Yes Yes No
Yes Yes*2 Yes*2 Yes*2 Yes*2
Scaling function (-32000 to (-32000 to (-32000 to (-30000 to (-32000 to
32000) 32000) 32000) 30000) 32000)
Special data offset function Yes Yes Yes Yes No
Zero drift function Yes Yes Yes Yes No
Simple averaging Yes Yes Yes Yes Yes
count (2 to 60000) (2 to 60000) (2 to 60000) (3 to 65000) (2 to 62500)
Simple averaging Yes Yes Yes Yes Yes
Averaging time (1 to 1500) (1 to 1500) (1 to 1500) (1 to 3000) (2 to 5000)
function Yes Yes Yes Yes
Moving average No
(2 to 2048) (2 to 64) (2 to 64) (2 to 1000)
First-order lag
No No No Yes No
filtering
Comparator function Yes Yes Yes Yes Yes
Peak/Bottom hold function Yes Yes Yes Yes Yes
Wire break detection function Yes Yes Yes Yes Yes
Buffer function Yes No No Yes*3 Yes
External trigger input No No No Yes Yes
No. of analog input channels 4 4 2 4 4

*1 Direct refresh/unit specific instruction are not supported when connecting with KV-1000/700.

*2 Setting is not possible when scaling upper limit value ≦ scaling lower limit value.
*3 KV-SAD04 and KV-AD40G differ in how they use the buffering function.

A-2 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


1 Precautions When Replacing with Other Unit

Precautions When Replacing with D/A Conversion Unit

This section describes the functional difference between D/A conversion units of KV-SDA04, KV-DA40V,
KV-AM40V, and KV-DA40.

Difference between unit built-in functions

Difference between functions built-in with D/A conversion unit as follows.

Item KV-SDA04 KV-DA40V KV-AM40V KV-DA40


Direct refresh/unit special
Yes Yes*1 Yes*1 No
instructions
DM selection of setting value Yes Yes Yes No

APPENDICES
Yes Yes*2 Yes*2 Yes*2
Scaling function
(-32000 to 32000) (-32000 to 32000) (-32000 to 32000) (-32000 to 32000)
Output data offset function Yes Yes Yes No
Upper/lower limit alarm
Yes Yes Yes Yes
function
Output limit function Yes Yes Yes Yes
Error hold function Yes Yes Yes Yes
Program output function Yes No No No
No. of analog input channels 4 4 2 4

*1 Direct refresh/unit special instruction are not supported when connecting with KV-1000/700.

*2 Setting is not possible when scaling upper limit value ≦ scaling lower limit value.

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - A-3


2 List of Error Messages

List of Error Messages for KV-SAD04

When an error occurs on the KV-SAD04, the direct access switch lights (red). At this time, the error
code can be displayed on the access window of the CPU Unit by pressing the direct access switch on
the KV-SAD04. When error occurs in KV-SAD04, error relay (leading relay No. +315) is ON, and error
code is stored in DM (leading No.+20) in DEC.
In this case, error causes must be remedied and the status of error relay (leading relay No.+15) must
be changed from OFF to ON.
Operation will continue for the non-system error.

Error
Error message Causes Remedy
Code
APPENDICES

Can not read from the internal storage


100 System abnormal
unit (EEPROM)
Consult your nearest agent.
The correcting data saved in internal
110 System abnormal
storage unit (EEPROM) is abnormal.
"Channel skip setting" is set to
330 Without valid channel All channels are set to "Enable".
"disabled" for at least one ch.
Scaling value setting Scaling upper/lower limit are set outside
50x
error of range.
Average constant The average constant is set to a value
52x
setting error out of range.
Comparator setting Comparator upper/lower limit are set
53x
error outside of range. Please carry out setting
Comparator upper/lower limit are set to updating after it is set correctly.
illegal (The relationship "comparator
Comparator setting upper limit ON level >= comparator OFF
54x
error level , comparator lower limit OFF level
>= comparator lower ON level" is not
established).
Please carry out setting
Setting updating is executed without a
550 Setting update error updating after changing to DM
setting item by DM selection.
selection.

x : CH No. with error

A-4 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


2 List of Error Messages

List of Error Messages for KV-SDA04

When an error occurs on the KV-SDA04, the direct access switch lights (red). At this time, the error
code can be displayed on the access window of the CPU Unit by pressing the direct access switch on
the KV-SDA04. When error occurs in KV-SDA04, error relay (leading relay No. +315) is ON, and error
code is stored in DM (leading No.+14) in DEC.
In this case, error causes must be remedied and the status of error relay (leading relay No.+15) must
be changed from OFF to ON.
Operation will continue for the non-system error.

Error
Error message Causes Remedy

APPENDICES
Code
Can not read from the internal storage
100 System abnormal
unit (EEPROM)
Consult your nearest agent.
The correcting data saved in internal
110 System abnormal
storage unit (EEPROM) is abnormal.
"Channel skip setting" is set to
330 Without valid channel All channels are set to "Enable".
"disabled" for at least one ch.
Scaling value setting Scaling upper/lower limit are set outside
50x
error of range.
Upper/lower limit Alarm upper/lower limit are set outside Please carry out setting
53x
alarm setting error of range. updating after it is set correctly.
Alarm upper/lower limit Upper limit < lower limit of upper/lower
54x
setting error limit alarm.
Please carry out setting
Setting updating is executed without a
550 Setting update error updating after changing to DM
setting item by DM selection.
selection.

x : CH No. with error

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - A-5


3 Index
An index of definitions used in this manual. They are arranged in the alphabetical sequence and the sequence of Table of 50 Sounds.

A I

A/D Conversion(SAD04) . . . . . . . . . . . . . . . . . . 2-5 Input wiring of the terminals and internal circuit
A/D conversion data (SAD04) . . . . . . . . . . . . 2-19 diagram (SAD04) . . . . . . . . . . . . . . . . . . . . . .2-3
A/D conversion data updating period (SAD04) . . . . 2-7 Internal circuit diagram(SAD04) . . . . . . . . . . . . .2-5
A/D conversion table (SAD04) . . . . . . . . . . . . . 2-7 Internal circuit diagram (SDA04) . . . . . . . . . . . .3-5
About inspection and maintenance (common) . . . . 1-10 Inter-unit synchronous period . . . . . . . . 2-57, 3-43
Access Window (SAD04) . . . . . . . . . . . . . . . . 2-84
Access Window (SDA04) . . . . . . . . . . . . . . . . 3-59
Analog data(SAD04) . . . . . . . . . . . . . . . . . . . . 2-19 K
Analog data (SDA04) . . . . . . . . . . . . . . . . . . . 3-17
Averaging function (SAD04) . . . . . . . . . . . . . . 2-32 KV-5000/3000 System Configuration 
APPENDICES

(Common) . . . . . . . . . . . . . . . . . . . . . . . . . . .1-4
KV-SAD04 Function Block Diagram . . . . . . . .2-27
B KV-SDA04 Functional Block Diagram . . . . . . .3-23

Buffering Function . . . . . . . . . . . . . . . . . . . . . 2-48


L
C List of Data Memories(SAD04) . . . . . . . . . . . .2-18
List of Data Memories (SDA04) . . . . . . . . . . . .3-16
Channel filtration function (SAD04) . . . . . . . . 2-29 List of Devices Used(SAD04) . . . . . . . . . . . . .2-18
Channel filtration function (SDA04) . . . . . . . . 3-24 List of Devices Used (SDA04) . . . . . . . . . . . . .3-16
Checking the Installation Environment  List of Relays(SAD04) . . . . . . . . . . . . . . . . . . .2-21
(common) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
Comparator function (SAD04) . . . . . . . . . . . . 2-42
Connecting External Devices (common) . . . . . 1-6 M

Maintenance(common) . . . . . . . . . . . . . . . . . .1-10
D
Monitor Screen (SAD04) . . . . . . . . . . . . . . . . .2-89
Monitor Screen (SDA04) . . . . . . . . . . . . . . . . .3-64
D/A Conversion (SDA04) . . . . . . . . . . . . . . . . . 3-5 Mounting onto the CPU Unit (common) . . . . . . .1-9
D/A conversion table (SDA04) . . . . . . . . . . . . . 3-7 Mounting/Removing the Analog I/O Terminal Block
D/A conversion data updating cycle (SDA04) . . . . . 3-7 (Common) . . . . . . . . . . . . . . . . . . . . . . . . . . .1-7
Dimension Diagram(SAD04) . . . . . . . . . . . . . . 2-3
Displaying Unit Monitor Window (SAD04) . . . 2-91
Displaying Unit Monitor Window (SDA04) . . . 3-67 N

Name and function of each part (common) . . . .1-3


E

Error hold function (SDA04) . . . . . . . . . . . . . . 3-32 O


Error Message List (SAD04) . . . . . . . . . . . . . . . A-4
Error Message List (SDA04) . . . . . . . . . . . . . . . A-5 Operations in the PROGRAM Mode(SAD04) . . . . . .2-7
Operations in the PROGRAM Mode (SDA04) . . . . .3-7
Output data (SDA04) . . . . . . . . . . . . . . . . . . . .3-16
H Output data offset function (SDA04) . . . . . . . .3-26
Output function during PROG (SDA04) . . . . . .3-33
How to Utilize mnemonics list (common) . . . . . . . 7 Output limit function (SDA04) . . . . . . . . . . . . .3-31
Output wiring of the terminals and internal circuit
diagram (SDA04) . . . . . . . . . . . . . . . . . . . . . .3-3

A-6 - AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual -


3 Index

Unit special function (SDA04) . . . . . . . . . . . . .3-54


P Unit Test (SAD04) . . . . . . . . . . . . . . . . . . . . . .2-90
Unit Test (SDA04) . . . . . . . . . . . . . . . . . . . . . .3-65
Unpacking (Common) . . . . . . . . . . . . . . . . . . . .1-2
Peak/valley hold function (SAD04) . . . . . . . . . 2-40
Upper/lower limit alarm function (SDA04) . . . .3-28
Precautions when replacing with A/D conversion
U_RDAD (SAD04) . . . . . . . . . . . . . . . . . 2-62, 2-77
unit (common) . . . . . . . . . . . . . . . . . . . . . . . . A-2
U_RDADB (SAD04) . . . . . . . . . . . . . . . . 2-64, 2-78
Precautions when replacing with D/A conversion
U_RDBF (SAD04) . . . . . . . . . . . . . . . . . 2-74, 2-83
unit (common) . . . . . . . . . . . . . . . . . . . . . . . . A-3
U_WRAVG (SAD04) . . . . . . . . . . . . . . . 2-72, 2-82
Precautions when replacing with other unit
U_WRDA (SDA04) . . . . . . . . . . . . . . . . 3-46, 3-55
(common) . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2
U_WRLMT (SAD04) . . . . . . . . . . . . . . . 2-70, 2-81
Program output function (SDA04) . . . . . . . . . 3-35
U_WRLMT (SDA04) . . . . . . . . . . . . . . . 3-52, 3-58
U_WROFST (SAD04) . . . . . . . . . . . . . . 2-66, 2-79
R U_WROFST (SDA04) . . . . . . . . . . . . . . 3-48, 3-56
U_WRSCL (SAD04) . . . . . . . . . . . . . . . 2-68, 2-80

APPENDICES
U_WRSCL (SDA04) . . . . . . . . . . . . . . . 3-50, 3-57
List of Relays (SDA04) . . . . . . . . . . . . . . . . . . 3-18

W
S
Wire break detection function (SAD04) . . . . . .2-45
Scaling function (SAD04) . . . . . . . . . . . . . . . . 2-31 Wiring connector type expansion units . . . . . . .1-8
Scaling function (SDA04) . . . . . . . . . . . . . . . . 3-25
Setting Items list on Unit Editor (SAD04) . . . . 2-15
Setting Items List on Unit Editor (SDA04) . . . 3-13 Y
Setting Screen (SAD04) . . . . . . . . . . . . . . . . . 2-87
Setting Screen (SAD04) . . . . . . . . . . . . . . . . . 3-62
Zero clipper function (SAD04) . . . . . . . . . . . . .2-30
Setting the Leading Device (SAD04) . . . . . . . 2-28
Zero drift function (SAD04) . . . . . . . . . . . . . . .2-38
Setting the Leading Device (SDA04) . . . . . . . 3-24
Setup input range (SAD04) . . . . . . . . . . . . . . 2-29
Setup output range (SDA04) . . . . . . . . . . . . . 3-25
Special data(SAD04) . . . . . . . . . . . . . . . . . . . 2-19
Special data offset function (SAD04) . . . . . . . 2-36
Specification (SAD04) . . . . . . . . . . . . . . . . . . . 2-2
Specification (SDA04) . . . . . . . . . . . . . . . . . . . 3-2
System Configuration (common) . . . . . . . . . . . 1-4

The change of setting value via Ladder 


(SAD04) . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-23
The change of setting value via Ladder 
(SDA04) . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19

Unit Interrupt Function . . . . . . . . . . . . . .2-46, 3-33


Unit Monitor (SAD04) . . . . . . . . . . . . . . . . . . . 2-91
Unit Monitor (SDA04) . . . . . . . . . . . . . . . . . . . 3-67
Unit Monitor Overview (SAD04) . . . . . . . . . . . 2-91
Unit Monitor Overview (SDA04) . . . . . . . . . . . 3-67
Unit special command (SAD04) . . . . . . . . . . . 2-61
Unit special command (SDA04) . . . . . . . . . . . 3-45
Unit special function (SAD04) . . . . . . . . . . . . . 2-76

- AD/DA Conversion Unit KV-SAD04/SDA04 User’s Manual - A-7


Revision History
Printing Date Version Details of Revision

Apr 2015 Initial version


June 2015 2nd Version Inter-unit synchronous function added
Jan 2016 3rd Version Program output function added
Sep 2017 4th Version

- AD/DA Conversion Unit KV-SAD04/SDA04 User's Manual -


WARRANTIES AND DISCLAIMERS
(1) KEYENCE warrants the Products to be free of defects in materials and workmanship for a period of one (1)
year from the date of shipment. If any models or samples were shown to Buyer, such models or samples were
used merely to illustrate the general type and quality of the Products and not to represent that the Products
would necessarily conform to said models or samples. Any Products found to be defective must be shipped to
KEYENCE with all shipping costs paid by Buyer or offered to KEYENCE for inspection and examination. Upon
examination by KEYENCE, KEYENCE, at its sole option, will refund the purchase price of, or repair or replace
at no charge any Products found to be defective. This warranty does not apply to any defects resulting from
any action of Buyer, including but not limited to improper installation, improper interfacing, improper repair,
unauthorized modification, misapplication and mishandling, such as exposure to excessive current, heat,
coldness, moisture, vibration or outdoors air. Components which wear are not warranted.
(2) KEYENCE is pleased to offer suggestions on the use of its various Products. They are only suggestions, and it
is Buyer's responsibility to ascertain the fitness of the Products for Buyer’s intended use. KEYENCE will not be
responsible for any damages that may result from the use of the Products.
(3) The Products and any samples ("Products/Samples") supplied to Buyer are not to be used internally in
humans, for human transportation, as safety devices or fail-safe systems, unless their written specifications
state otherwise. Should any Products/Samples be used in such a manner or misused in any way, KEYENCE
assumes no responsibility, and additionally Buyer will indemnify KEYENCE and hold KEYENCE harmless from
any liability or damage whatsoever arising out of any misuse of the Products/Samples.
(4) OTHER THAN AS STATED HEREIN, THE PRODUCTS/SAMPLES ARE PROVIDED WITH NO OTHER
WARRANTIES WHATSOEVER. ALL EXPRESS, IMPLIED, AND STATUTORY WARRANTIES, INCLUDING,
WITHOUT LIMITATION, THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, AND NON-INFRINGEMENT OF PROPRIETARY RIGHTS, ARE EXPRESSLY DISCLAIMED. IN
NO EVENT SHALL KEYENCE AND ITS AFFILIATED ENTITIES BE LIABLE TO ANY PERSON OR ENTITY
FOR ANY DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, SPECIAL OR CONSEQUENTIAL DAMAGES
(INCLUDING, WITHOUT LIMITATION, ANY DAMAGES RESULTING FROM LOSS OF USE, BUSINESS
INTERRUPTION, LOSS OF INFORMATION, LOSS OR INACCURACY OF DATA, LOSS OF PROFITS,
LOSS OF SAVINGS, THE COST OF PROCUREMENT OF SUBSTITUTED GOODS, SERVICES OR
TECHNOLOGIES, OR FOR ANY MATTER ARISING OUT OF OR IN CONNECTION WITH THE USE OR
INABILITY TO USE THE PRODUCTS, EVEN IF KEYENCE OR ONE OF ITS AFFILIATED ENTITIES WAS
ADVISED OF A POSSIBLE THIRD PARTY’S CLAIM FOR DAMAGES OR ANY OTHER CLAIM AGAINST
BUYER. In some jurisdictions, some of the foregoing warranty disclaimers or damage limitations may not
apply.

BUYER'S TRANSFER OBLIGATIONS:


If the Products/Samples purchased by Buyer are to be resold or delivered to a third party, Buyer must provide
such third party with a copy of this document, all specifications, manuals, catalogs, leaflets and written
information provided to Buyer pertaining to the Products/Samples.

E 1101-3
Copyright (c) 2015 KEYENCE CORPORATION. All rights reserved. 084310E 1097-4 452GB Printed in Japan

You might also like