C200H-DA001 [ETC]
SYSMAC C200H-AD001/DA001 Analog I/O Units;型号: | C200H-DA001 |
厂家: | ETC |
描述: | SYSMAC C200H-AD001/DA001 Analog I/O Units |
文件: | 总61页 (文件大小:287K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
SYSMAC
C200H-AD001/DA001
Analog I/O Units
Operation Guide
Revised February 2001
Notice:
OMRON products are manufactured for use according to proper procedures by a qualified operator
and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this manual. Always heed
the information provided with them. Failure to heed precautions can result in injury to people or dam-
age to property.
DANGER
Indicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury.
!
!
!
WARNING
Caution
Indicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury.
Indicates a potentially hazardous situation which, if not avoided, may result in minor or
moderate injury, or property damage.
OMRON Product References
All OMRON products are capitalized in this manual. The word “Unit” is also capitalized when it refers
to an OMRON product, regardless of whether or not it appears in the proper name of the product.
The abbreviation “Ch,” which appears in some displays and on some OMRON products, often means
“word” and is abbreviated “Wd” in documentation in this sense.
The abbreviation “PC” means Programmable Controller and is not used as an abbreviation for any-
thing else.
Visual Aids
The following headings appear in the left column of the manual to help you locate different types of
information.
Note Indicates information of particular interest for efficient and convenient operation
of the product.
Reference Indicates supplementary information on related topics that may be of interest to
the user.
1, 2, 3... 1. Indicates lists of one sort or another, such as procedures, checklists, etc.
OMRON, 1990
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any
form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permis-
sion of OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is
constantly striving to improve its high-quality products, the information contained in this manual is subject to change
without notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no
responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the informa-
tion contained in this publication.
v
TABLE OF CONTENTS
PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xi
1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xii
xii
xii
xiii
xiii
SECTION 1
System Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1-1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3 Basic Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4 Example Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5 System Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
2
3
4
5
SECTION 2
C200H-AD001 Analog Input Unit . . . . . . . . . . . . . . . . . .
7
2-1 Before Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2 Bit and DM Area Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3 Functions and Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-4 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8
15
18
26
SECTION 3
C200H-DA001 Analog Output Units . . . . . . . . . . . . . . . .
29
3-1 Before Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2 Bit and DM Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3 Functions and Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-4 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
36
38
45
Appendices
A Standard Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C Data Memory Coding Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
47
49
53
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
55
57
vii
About this Manual:
This guide describes the installation and operation of the C200H-AD001 Analog Input Unit and the
C200H-DA001 Analog Output Unit and includes the sections described below.
The C200H-AD001 Analog Input Unit and the C200H-DA001 Analog Output Unit are analog-digital and
digital-analog converters designed to work with the C200H or C200HS PC.
The C200H-AD001 can convert up to four analog inputs to digital (12-bit binary) form. The operator can
select from three input ranges: 1 to 5 V and 4 to 20 mA (simultaneous use of voltage and current inputs
possible), or 0 to 10 V (voltage inputs only). Useful functions, such as scaling, mean value, peak value,
and square root, are built-in.
The C200H-DA001 can convert two digital (12-bit binary) signals to analog outputs. The operator can
select from three output ranges: 1 to 5 V, 4 to 20 mA, or 0 to 10 V. Built-in functions include output limit,
output limit alarm, and pulse output.
Please read this manual carefully and be sure you understand the information provided before attempting
to install and operate the C200H-AD001 or the C200H-DA001
Section 1 describes the types of applications in which Analog I/O Units are used.
Section 2 describes the installation and operation of the C200H-AD001 Analog Input Unit, from installa-
tion and wiring through programming and operation.
Section 3 describes the installation and operation of the C200H-DA001 Analog Output Unit, from installa-
tion and wiring through programming and operation.
!
WARNING Failure to read and understand the information provided in this manual may result in
personal injury or death, damage to the product, or product failure. Please read each
section in its entirety and be sure you understand the information provided in the section
and related sections before attempting any of the procedures or operations given.
ix
PRECAUTIONS
This section provides general precautions for using the Programmable Controller (PC) and Analog I/O Units.
The information contained in this section is important for the safe and reliable application of the Analog I/O Units.
You must read this section and understand the information contained before attempting to set up or operate a PC
system and Analog I/O Units.
1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xii
xii
xii
xiii
xiii
xi
Safety Precautions
3
1
Intended Audience
This manual is intended for the following personnel, who must also have knowl-
edge of electrical systems (an electrical engineer or the equivalent).
• Personnel in charge of installing FA systems
• Personnel in charge of designing FA systems
• Personnel in charge of managing FA systems and facilities
2
General Precautions
The user must operate the product according to the performance specifications
described in the operation manuals.
Before using the product under conditions which are not described in the manual
or applying the product to nuclear control systems, railroad systems, aviation
systems, vehicles, combustion systems, medical equipment, amusement
machines, safety equipment, and other systems, machines, and equipment that
may have a serious influence on lives and property if used improperly, consult
your OMRON representative.
Make sure that the ratings and performance characteristics of the product are
sufficient for the systems, machines, and equipment, and be sure to provide the
systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating OMRON Ana-
log I/O Units. Be sure to read this manual before attempting to use the software
and keep this manual close at hand for reference during operation.
WARNING It is extremely important that a PC and all PC Units be used for the specified
purpose and under the specified conditions, especially in applications that can
directly or indirectly affect human life. You must consult with your OMRON
representative before applying a PC System to the above-mentioned
applications.
!
3
Safety Precautions
WARNING Do not attempt to take any Unit apart while power is being supplied. Doing so
!
may result in electric shock.
WARNING Do not touch any of the terminals or terminal blocks while power is being
!
supplied. Doing so may result in electric shock.
xii
Application Precautions
5
4
Operating Environment Precautions
Caution Do not operate the control system in the following places:
!
• Locations subject to direct sunlight.
• Locations subject to temperatures or humidity outside the range specified in
the specifications.
• Locations subject to condensation as the result of severe changes in tempera-
ture.
• Locations subject to corrosive or flammable gases.
• Locations subject to dust (especially iron dust) or salts.
• Locations subject to exposure to water, oil, or chemicals.
• Locations subject to shock or vibration.
Caution Take appropriate and sufficient countermeasures when installing systems in the
!
following locations:
• Locations subject to static electricity or other forms of noise.
• Locations subject to strong electromagnetic fields.
• Locations subject to possible exposure to radioactivity.
• Locations close to power supplies.
Caution The operating environment of the PC System can have a large effect on the lon-
gevity and reliability of the system. Improper operating environments can lead to
malfunction, failure, and other unforeseeable problems with the PC System. Be
sure that the operating environment is within the specified conditions at installa-
tion and remains within the specified conditions during the life of the system.
!
5
Application Precautions
Observe the following precautions when using the PC.
WARNING Always heed these precautions. Failure to abide by the following precautions
!
could lead to serious or possibly fatal injury.
• Always connect to a ground of 100 Ω or less when installing the Units. Not con-
necting to a ground of 100 Ω or less may result in electric shock.
• Always turn off the power supply to the PC before attempting any of the follow-
ing. Not turning off the power supply may result in malfunction or electric
shock.
• Mounting or dismounting I/O Units, CPU Units, Memory Cassettes, or any
other Units.
• Assembling the Units.
• Setting DIP switch or rotary switches.
• Connecting or wiring the cables.
• Connecting or disconnecting the connectors.
Caution Failure to abide by the following precautions could lead to faulty operation of the
PC or the system, or could damage the PC or PC Units. Always heed these pre-
cautions.
!
• Fail-safe measures must be taken by the customer to ensure safety in the
event of incorrect, missing, or abnormal signals caused by broken signal lines,
momentary power interruptions, or other causes.
xiii
Application Precautions
5
• Interlock circuits, limit circuits, and similar safety measures in external circuits
(i.e., not in the Programmable Controller) must be provided by the customer.
• Always use the power supply voltage specified in this manual. An incorrect
voltage may result in malfunction or burning.
• Take appropriate measures to ensure that the specified power with the rated
voltage and frequency is supplied. Be particularly careful in places where the
power supply is unstable. An incorrect power supply may result in malfunction.
• Do not apply voltages to the Input Units in excess of the rated input voltage.
Excess voltages may result in burning.
• Do not apply voltages or connect loads to the Output Units in excess of the
maximum switching capacity. Excess voltage or loads may result in burning.
• Install external breakers and take other safety measures against short-circuit-
ing in external wiring. Insufficient safety measures against short-circuiting may
result in burning.
• Disconnect the functional ground terminal when performing withstand voltage
tests. Not disconnecting the functional ground terminal may result in burning.
• Do not attempt to disassemble, repair, or modify any Units.
• Be sure that all the mounting screws, terminal screws, and cable connector
screws are tightened to the torque specified in the relevant manuals. Incorrect
tightening torque may result in malfunction.
• Leave the label attached to the Unit when wiring. Removing the label may re-
sult in malfunction if foreign matter such as wire cuttings enter the Unit.
• Remove the label after the completion of wiring to ensure proper heat dissipa-
tion. Leaving the label attached may result in malfunction.
• Use crimp terminals for wiring. Do not connect bare stranded wires directly to
terminals. Connection of bare stranded wires may result in burning.
• Double-check all the wiring before turning on the power supply. Incorrect wir-
ing may result in burning.
• Wire all connections correctly.
• Mount the Unit only after checking the terminal block completely.
• Be sure that the terminal blocks, Memory Units, expansion cables, and other
items with locking devices are properly locked into place. Improper locking
may result in malfunction.
• Check the user program for proper execution before actually running it on the
Unit. Not checking the program may result in an unexpected operation.
• Confirm that no adverse effect will occur in the system before attempting any of
the following. Not doing so may result in an unexpected operation.
• Changing the operating mode of the PC.
• Force-setting/force-resetting any bit in memory.
• Changing the present value of any word or any set value in memory.
• Resume operation only after transferring to the new CPU Unit the contents of
the DM Area, HR Area, and other data required for resuming operation. Not
doing so may result in an unexpected operation.
• Do not pull on the cables or bend the cables beyond their natural limit. Doing
either of these may break the cables.
• Do not place objects on top of the cables or other wiring lines. Doing so may
break the cables.
• Before touching the Unit, be sure to first touch a grounded metallic object in
order to discharge any static built-up. Not doing so may result in malfunction or
damage.
• Install the Units properly as specified in the operation manuals. Improper
installation of the Units may result in malfunction.
xiv
SECTION 1
System Design
This section describes the basic uses of Analog I/O Units in a Control System and illustrates the type of applications in which
they might be found.
1-1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3 Basic Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4 Example Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5 System Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
2
3
4
5
1
Safety Precautions
Section 1-2
1-1 Introduction
The C200H-AD001 Analog Input Unit is used to convert the output of analog field
devices, usually sensors, to a digital form (12-bit binary) that the PC can read.
The C200H-DA001 Analog Output Unit converts the digital output of the PC to
analog signals which drive analog field devices.
C200H-AD001
Analog Input Unit
C200H-DA001
Analog Output Unit
1-2 Safety Precautions
• Be sure that you have read this manual carefully and have understood the ex-
planations before attempting any of the procedures described herein. OM-
RON accepts no responsibility for any damage or injury that may result from
carrying out any operation that is not covered in this manual.
• Be sure to turn off the power supply to the PC before carrying out any of the
following operations:
a) Mounting or removing a Unit.
b) Setting switches.
c) Mounting or removing a Terminal Block or connectors.
d) Wiring the System or Units.
• Use twisted-pair cables and keep high-voltage lines and power lines in sepa-
rate ducts to reduce the risk of malfunctions due to electrical noise.
• Before turning on the power supply, check to be sure that the switch settings
and wiring are correct.
• Check to be sure that the user program operates correctly.
2
Basic Configuration
Section 1-3
1-3 Basic Configuration
This diagram shows some of the possible field devices for the Analog I/O
Units. Any I/O device can be used as long as voltage/current requirements
fall within the specified ranges.
The I/O device connected to the Analog I/O Unit will often serve as an inter-
face for another device. For example, a preamplifier may amplify the output
of a pressure gauge to the level required for the Analog Input Unit and a reg-
ulator may interface a heating system to control temperature.
C200H CPU Rack
(Temperature
Analog
Output Unit
Analog
Input Unit
control)
Regulator
Temperature
Pressure
Speed
(Speed control)
M
Preamp
Variable
speed
controller
Flow rate
(Position control)
M
Voltage
Current
Power
Power factor
Servo-
controller
Transducer
Chart recorder
3
Example Configurations
Section 1-4
1-4 Example Configurations
Below are two examples of how Analog I/O Units can be used in control sys-
tems. The first diagram shows a temperature regulating system and the sec-
ond shows a servomotor positioning system.
Analog Input Unit
C200H-AD001
Analog Output Unit
C200H-DA001
Transducer
SYSMAC
C200HS/C200H/C200HX/HG/HE
Temperature sensing
element
Valve
controller
M
Fuel
Sensor
Encoder
Servo
controller
M
Servo motor
Platform
SYSMAC
C200HS/C200H/C200HX/HG/HE
Locating pulse
Analog Output Unit
C200H-DA001
High-speed Counter Unit
C200H-CT001-V1
Analog Input Unit
C200H-AD001
4
System Considerations
Section 1-5
1-5 System Considerations
Number of Units
C200HS/C200H/C200HX/HG/HE Analog I/O Units are classified as Special I/O
Units. A maximum total of ten Special I/O Units (including PC Link Units) can be
mounted to the CPU Rack, Expansion I/O Racks, and Slave Racks of a single
PC. A single C200H-NC211 Position Control Unit counts as two Units.
The Units that belong to the various Special I/O Unit groups are shown in the
following table. Their usage is limited according to the maximum current pro-
vided for the Rack and the amount of current consumed by each Unit. For de-
tails, refer to the C200HS/C200H Installation Guide.
Slave Racks
Certain limitations apply to the number of Special I/O Units that can be mounted
on Slave Racks. The following table shows the maximum number of Group A, B,
C, and D Special I/O Units that can be mounted on a single Slave Rack when
only Units of that group are used.
A
B
C
D
High-speed Counters
Position Control Units
(NC111/112)
Multipoint I/O Units
Temperature Control Units
PID Control Units
Temperature Sensor Units
Voice Units
Position Control Units
(NC211)
ASCII Units
Cam Positioner Units
Analog I/O Units
ID Sensor Units
Fuzzy Logic Units
4 Units
–––
–––
8 Units
–––
–––
–––
–––
–––
–––
6 Units
–––
–––
–––
–––
2 Units
If Units from any of the four groups are to be combined, then both of the following
two equations must be satisfied.
3A + B + 2C + 6D x 12
A + B + C + D x 8
Units can be mounted on other Racks as well, until the maximum total of ten
Units has been reached. Remember, though, that a single C200H-NC2111 Posi-
tion Control Unit counts as two Units. PC Link Units must also be counted among
the total of ten Units.
System Configuration
Considerations
C200HS/C200H Special I/O Units are allocated IR area words according to the
unit number switch settings on their front panels. They do not use the words of
the slots in which they are mounted. For details regarding data area allocations,
refer to 2-2 and 3-2 IR and DM Bit Allocations.
With the C200H, do not mount an Analog I/O Unit in the two slots adjacent to the
CPU. Doing so would block peripheral devices such as the Programming Con-
sole from being connected.
Special I/O Units cannot be used on a C200H Remote I/O Slave Rack if the
Slave Rack is connected to different model PC (i.e., C500, C1000H, or
C2000H).
Precautions
Be sure to turn off the power supply to the PC before installing or disconnecting
Units or connecting lines.
To reduce the risk of malfunctioning due to electrical noise, wire input and output
lines in separate ducts from high-voltage and power lines.
For further wiring precautions, refer to the respective sections on wiring for Ana-
log Input Units and Analog Output Units.
5
SECTION 2
C200H-AD001 Analog Input Unit
This section provides the information required to install and operate a C200H-AD001 Analog Input Unit.
2-1 Before Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-1 Nomenclature and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-2 Switch Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-3 Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2 Bit and DM Area Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3 Functions and Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3-1 Input Signal Range Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3-2 Square Root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3-3 Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3-4 Mean Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3-5 Peak Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3-6 Input Disconnection Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3-7 Data Setting Example and Programming Concepts . . . . . . . . . . . . . . . . . . . . . . . .
2-4 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8
8
10
11
15
18
19
19
20
21
22
23
23
26
7
Before Operation
Section 2-1
2-1 Before Operation
2-1-1 Nomenclature and Functions
Model label
Display
panel
Unit number
setting switc
Function setting DIP switch
Voltage/curren
input terminal
Backplane connector
Indicators
Indicator
Color
Function
RUN
Green
Lit when the Analog Input Unit is operating correctly. If operation is not normal, this
indicator turns OFF and Unit operation is stopped.
BROKEN WIRE
Red
Lit when an input signal wire is disconnected. This indicator operates only when the
input range is set to 1 to 5 V/4 to 20 mA.
Functions
The following table briefly outlines the basic functions of the C200H-AD001.
These functions are covered in more detail in 2-3 Functions and Programming.
Function
Explanation
Input range setting
The input range can be set according to the input signal level that is to be used. The
same input range is used for all of the inputs for a particular Unit. The voltage range of
1 to 5 V and the current range of 4 to 20 mA, however, can be used at the user’s option
for any input.
Square root
Scaling
Converts quadratic data, such as thermocouple input, to linear data.
Converts an analog input signal to a preset range of BCD data for output.
Sums the sampling data and calculates the mean value for output.
Mean value
Peak value
Holds the maximum values for A/D conversion data, scaling data, mean data, and
square root data, and outputs them as output data.
Disconnection detection
The Disconnection Detection Flag is turned ON and the BROKEN WIRE indicator is lit if
the input signal wire becomes disconnected when 1 to 5 V/4 to 20 mA are set.
8
Before Operation
Section 2-1
Block Diagram
The following diagram shows the basic internal configuration of the Unit.
SW
+Voltage
Input
+Current
Input
–Input
CPU
ROM/
RAM
+Voltage
Input
C200H
or
C200HS
PC
Bus
inter-
face
A/D
converter
Photo-
coupler
+Current
Input
I/O bus
Multi-
plexer
–Input
+Voltage
Input
+Current
Input
Range
selector
–Input
+Voltage
Input
Photo-
coupler
+Current
Input
Watchdog
timer
–Input
Common
+5 V
0 V
DC/DC
Analog power supply
converter
Analog 0 V
9
Before Operation
Section 2-1
2-1-2 Switch Settings
There are four settings necessary for this Unit: unit number, number of in-
puts, input range, and data reading mode.
Unit Number
Unit number
setting switch
The switch notch points to the unit number. The
switch in the figure to the left is set to 0. Odd num-
bers, in parentheses here, are not shown on the Unit.
Use a standard screwdriver and set a different unit
number for each Analog I/O Unit. IR area memory is
allocated according to unit number, as shown in the
table below.
Switch setting
Unit number
Unit #0
Unit #1
Unit #2
Unit #3
Unit #4
Unit #5
Unit #6
Unit #7
Unit #8
Unit #9
IR words
DM words
0
1
2
3
4
5
6
7
8
9
IR 100 to 109
IR 110 to 119
IR 120 to 129
IR 130 to 139
IR 140 to 149
IR 150 to 159
IR 160 to 169
IR 170 to 179
IR 180 to 189
IR 190 to 199
DM 1000 to 1099
DM 1100 to 1199
DM 1200 to 1299
DM 1300 to 1399
DM 1400 to 1499
DM 1500 to 1599
DM 1600 to 1699
DM 1700 to 1799
DM 1800 to 1899
DM 1900 to 1999
Note 1. The unit number setting switch is factory set to 0.
2. If two or more Special I/O Units are assigned the same unit number, an I/O
UNIT OVER error will be generated and the PC will not operate.
3. Make the unit number settings with the power turned off to the PC. If the set-
tings are made with the power on, they will not go into effect until either the
power is turned off and then on again or the Special I/O Unit Restart Flag
(AR0100 to AR0109) is turned ON.
Number of Inputs
There can be 1, 2, or 4 inputs depending on the settings of pins 1 and 2, as
shown in the table below.
0: OFF
1: ON
The following table shows the effects of the various pin combinations. If there is
no need to use all of the inputs, processing time can be shortened by setting the
pins so that the smallest possible number of inputs is enabled.
Pin number
Number of inputs
Inputs enabled
1
2
OFF
ON
ON
1
Input 1 only is enabled.
Inputs 1 and 2 only are enabled.
All inputs are enabled.
–––
OFF
OFF
ON
2
4
OFF
ON
Not used.
10
Before Operation
Section 2-1
Input Range
Use pin 3 to set the input range.
Pin number 3
Input range
1 to 5 V
OFF
Voltage input
Current input
Voltage input
4 to 20 mA
0 to 10 V
ON
Note The same input range is used for all of the inputs for a particular Unit. The voltage
range of 1 to 5 V and the current range of 4 to 20 mA, however, can be used at the
user’s option at any input.
Data Reading Mode
In normal mode, the input data is read only once before being converted from
analog to digital. In filter mode, the input data is read three times and then
the average values are converted from analog to digital. This helps to reduce
the effects of electrical noise and so on. Using filter mode, however, results in
longer processing time, as shown in the following table.
Pin number 3
Data reading mode
Normal mode
A/D conversion time
2.5 ms/input max.
4 ms/input
OFF
ON
Filter mode
2-1-3 Wiring
Terminal Allocation
The following illustration shows the function of each terminal.
B0
B1
B2
B3
B4
B5
B6
B7
Voltage input 1 (+)
Current input 1 (+)
Input 1 (–)
A0
A1
Not used.
Voltage input 2 (+)
Current input 2 (+)
Voltage input 3 (+)
Current input 3 (+)
Voltage input 4 (+)
Input 2 (–)
A2
A3
Not used.
Input 3 (–)
A4
A5
Not used.
Input 4 (–)
A6
A7
Current input 4 (+)
Not used.
Not used.
B8
B9
Common (Analog 0 V)
A8
Common (Analog 0 V)
The same input range is used for all of the inputs for a particular Unit. The voltage
range of 1 to 5 V and the current range of 4 to +20 mA, however, can be used at
the user’s option at any input.
Use the DIP switch on the back panel of the Unit to set the input range and the
number of inputs. (For details, refer to 2-1-2 Switch Settings.)
When current input is used, short circuit the voltage input (+) and current input
(+) terminals.
The common terminal is connected to the 0 V of the Analog Input Unit’s analog
circuit. Noise interference can be reduced by using shielded cables for input
lines.
The A8 and B9 terminals are short circuited internally.
11
Before Operation
Section 2-1
Voltage Inputs
The following diagram illustrates the external wiring of voltage inputs for the
C200H-AD001.
C200H-AD001
Input side
Shield
Input 1
0 V
Input 2
0 V
Input 3
0 V
Input 4
0 V
Note Terminals A8 and B9 are analog input ground terminals. They are not frame
grounds and so do not connect them to a ground.
12
Before Operation
Section 2-1
Current Inputs
The following diagram illustrates the external wiring of current inputs for the
C200H-AD001. When current inputs are used, use the short pins provided with
the Unit to short circuit the V+ and I+ terminals as shown in the diagram.
C200H-AD001
Input side
Shield
0 V
(Short pin)
(Short pin)
Input 1
Input 2
+ V
0 V
+ V
0 V
+ V
Input 3
Input 4
(Short pin)
(Short pin)
0 V
+ V
Note Terminals A8 and B9 are analog input ground terminals. They are not frame
grounds and so do not connect them to a ground.
13
Before Operation
Section 2-1
Input Wiring
Considerations
When wiring inputs, apply the following points to avoid noise interference and
optimize Analog Input Unit performance.
• Use shielded twisted-pair cable for external connections and power lines.
• Route input cables separately from the AC cable, and do not run the Unit’s
cables near a main circuit cable, high voltage cable, or a non-PC load cable.
• Be sure to install surge-absorbing diodes or surge absorbers for inductive
loads (relays, solenoids, electromagnetic valves, etc.) They should be
installed right next to relays and solenoids. Use surge-absorbing diodes with a
dielectric strength of at least five times the circuit voltage.
DC Relay
AC Relay
Surge absorber
Surge-absorbing diode
(Example: ERB44-06,
by Fuji Electric)
Solenoid, etc.
Surge absorber
• If there is noise interference from power lines (if, for example, the power supply
is shared with electrical welding devices or electrical discharge machines, or if
there is a high-frequency generation source nearby) install a noise filter at the
power supply input area.
• Use at least a class-3 ground (to 100 Ω or less), with as heavy a wire as pos-
2
sible (i.e., at least 1.25 mm ).
14
Bit and DM Area Allocations
Section 2-2
2-2 Bit and DM Area Allocations
IR Area Allocation
C200H Analog Input Units are allocated ten words each from the portion of the
IR area (IR 100 to IR 199) that is reserved for Special I/O Units. The words that
are allocated a particular Analog Input Unit depend on the setting of the unit
number on the front panel of the Unit. Those ten words are then reserved as an
I/O refresh data area, and the bits that comprise that area are refreshed with ev-
ery I/O refresh scan by the PC.
SYSMAC C200HS/C200H/C200HX/HG/HE PC
(Work area)
IR 100 to 109
C200H-AD001 Analog Input Unit
(I/O refresh data area)
Unit #0
IR n
OUT refresh
IN refresh
IR 110 to 119
IR 120 to 129
IR 130 to 139
IR 140 to 149
IR 150 to 159
IR 160 to 169
IR 170 to 179
IR 180 to 189
IR 190 to 199
Unit #1
Unit #2
Unit #3
Unit #4
Unit #5
Unit #6
Unit #7
Unit #8
Unit #9
IR n + 1
to
IR n +5
At the I/O refresh by the
PC, outputs (PC to Unit)
and inputs (Unit to PC)
are refreshed in order
with every scan.
(n = 100 + 10 x unit number)
The OUT and IN refreshes are as seen from
the PC.
Note The unit number that is set for an Analog Input Unit must not be used for any
other Special I/O Unit. If the same unit number is set more than once, an I/O
UNIT OVER error will be generated and operation will be stopped.
DM Area Allocation
SYSMAC C200HS/C200H/C200HX/HG
(DM area)
(Fixed data area)
DM 1000 to 1011
DM 1100 to 1111
DM 1200 to 1211
DM 1300 to 1311
DM 1400 to 1411
DM 1500 to 1511
DM 1600 to 1611
DM 1700 to 1711
DM 1800 to 1811
DM 1900 to 1911
Unit #0
Unit #1
Unit #2
Unit #3
Unit #4
Unit #5
Unit #6
Unit #7
Unit #8
Unit #9
Scaling data
Automatically transferred
to each unit at power up
or when Special I/O Re-
start Flag is turned ON.
Mean data
(m = 1000 + 100 x unit number)
(For more information regarding DM area allocation, refer to DM
Allocations at the end of this section.)
15
Bit and DM Area Allocations
Section 2-2
IR Allocations
Bit
07
I/O
OUT
IN
Wd
(IR)
15 14 13
12
11
10
09
08
06
05
04
03
02
01
00
n
0
0
0
SQ
PK
0
OA
CP
Mean value processing
Scaling execution
Input 4
Input 3
Input 2
Input 1
Input 4
Input 3
Input 2
Input 1
n+1
n+2
n+3
n+4
n+5
Input 1 A/D conversion data or processing data
Input 2 A/D conversion data or processing data
Input 3 A/D conversion data or processing data
Input 4 A/D conversion data or processing data
0
0
0
0
0
0
0
OD Input pts.
00: 4 pts.
IR
SE
Disconnection detection
01: 2 pts.
Input 4
Input 3
Input 2
Input 1
10: 1 pt.
n+6
to
Not used.
n+9
Note The following abbreviations are used in this table. SQ: square root calculation;
PK: peak value; OA: offset adjustment; CP: A/D conversion prohibited; OD: out-
puts disabled; IR: input range; SE: setting error.
A/D Conversion Data
Processing Data
Input range
Binary data
0 to 10 V, 1 to 5 V, 4 to 20 mA
0000 to 0FA0
When scaling, mean value processing, peak value, or square root calculation is
executed, the resulting data is output.
Note When scaling is executed, it is set in words n+1 through n+4 in BCD.
IR Area Contents: Outputs
Address
Item
Contents
Word
(IR)
Bit
15 to 13
12
–––
Not used. Set each bit to 0 (i.e., OFF).
Square Root ON Bit
Peak Value ON Bit
Mean Value ON Bit
Turn this bit ON (i.e., set it to 1) to execute the square root
calculation. It is used for all inputs.
11
Turn this bit ON (i.e., set it to 1) to execute the peak value
function. It is used for all inputs.
n
10 to 07
Turn these bits ON (i.e., set them to 1) to calculate the mean
values for the respective inputs. Bits 07 to 10 correspond to
inputs 1 to 4.
06
–––
Not used. Set to 0 (i.e., OFF).
05 to 02
Scaling ON Bit
Turn these bits ON (i.e., set them to 1) to execute scaling for the
respective inputs. Bits 02 to 05 correspond to inputs 1 to 4.
01
00
Offset adjustment
Turn this bit ON (i.e., set it to 1) to execute the offset adjustment.
The adjustment is carried out automatically at power up, so this
bit does not normally need to be used.
A/D conversion prohibition
Turn this bit ON (i.e., set it to 1) to prohibit A/D conversion. It is
used for all inputs.
16
Bit and DM Area Allocations
Section 2-2
IR Area Contents: Inputs
Word
(IR)
Bit
Item
Contents
The A/D conversion data (binary) is set here for each input. (The
data is set in BCD for scaling.)
n+1
n+2
n+3
n+4
15 to 00
15 to 00
15 to 00
15 to 00
Input 1 A/D conversion data
or processing data
Input 2 A/D conversion data
or processing data
Input 3 A/D conversion data
or processing data
Input 4 A/D conversion data
or processing data
15 to 09
08
–––
Not used.
Output disabled
Conversion data is unstable at power up, so this bit prohibits A/D
conversion data from being output. It remains ON for
approximately 100 ms after the power is turned on.
07 to 06
Number of inputs
The number of inputs (4, 2, or 1) is determined by the status of
pin numbers 1 and 2 of the DIP switch on the rear panel of the
Analog Input Unit. The status of pin 2 affects bit 07, and the
status of pin 1 affects bit 06.
n+5
05
Input range
The status of this bit reflects the setting of pin 3 of the rear-panel
DIP switch.
04 to 01
Input Disconnect Flag
When an input is disconnected, the corresponding bit is turned
ON (i.e., is set to 1). Bits 01 to 04 correspond to inputs 1 to 4
respectively. (See note 1.)
00
Setting Error Flag
This bit turns ON (i.e., is set to 1) if the data set in the DM area is
wrong. (See note 2.)
Note 1. This bit turns ON under the following conditions:
• An input is 0.5 V or less when set for 1 to 5V.
• An input is 2 mA or less when set for 4 to 20 mA.
• The input does not function when set for 0 to 10 V.
2. The Setting Error Flag turns ON when the scaling upper and lower limits are
not in BCD or when the number of mean processing terms is 0000 or not in
BCD.
3. Even if scaling or mean processing are not executed, and regardless of
whether or not inputs are used, the data described in note 2 will cause the
Setting Error Flag to turn ON. This will have no effect on operation, however.
4. n = 100 + 10 x unit number
DM Allocations
Word
Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
DM (m)
Input 1, scaling lower limit data
DM (m+1)
DM (m+2)
DM (m+3)
DM (m+4)
DM (m+5)
DM (m+6)
DM (m+7)
DM (m+8)
DM (m+9)
DM (m+10)
DM (m+11)
Input 1, scaling upper limit data
Input 2, scaling lower limit data
Input 2, scaling upper limit data
Input 3, scaling lower limit data
Input 3, scaling upper limit data
Input 4, scaling lower limit data
Input 4, scaling upper limit data
Input 1, number of samples for mean processing
Input 2, number of samples for mean processing
Input 3, number of samples for mean processing
Input 4, number of samples for mean processing
17
Functions and Programming
Section 2-3
Note 1. The DM area that is used is a read-only area, so the data cannot be written
from the program. Use the Programming Console to set data by changing
the present value or changing three words together.
2. The range for setting scaling data is 0000 to 9999 (BCD). Make sure that the
lower limit is smaller than the upper limit.
3. The range for setting the number of times that sampling is to be executed for
mean value processing is 0002 to 9999 (BCD).
4. Data that is set in the DM area is transferred either at the time of power up or
when the Special I/O Unit Restart Bit is turned ON. Any data that is set in the
meantime will remain invalid until then.
DM Contents
Words
Bits
Item
Data contents
DM (m) to DM (m+7)
15 to 00 Scaling data
The scaling data (upper and lower limits) is set in
BCD (0000 to 9999), using two words for each
input. Set the lower limit in the rightmost word and
the upper limit in the leftmost word, and make sure
that the lower limit is smaller than the upper limit.
DM (m+8) to DM (m+11)
15 to 00 Number of terms for
calculating mean value
The number of samples to be taken for calculating
the mean value is set in BCD (0002 to 9999) for
each input. DM words m+8 through m+11
correspond to inputs 1 to 4.
2-3 Functions and Programming
The C200H-AD001 Analog Input Unit provides six functions:
• Input signal range setting
• Square root
• Scaling
• Mean value
• Peak value
• Input disconnection detection
These functions are set using Unit switches and Peripheral Devices, such as a
Programming Console. The words allocated to the Unit in the DM Area (DM m to
DM m+11) cannot be written from user program and all data set in these words
must be written from a Peripheral Device.
When inputting data from a Programming Console, use the operations to
change present values. When inputting from the SSS (SYSMAC Support Soft-
ware), use the DM editing operations.
The data set in the DM area is transferred to the Analog Input Unit when either of
the following steps is taken. Be sure to perform one or the other of these steps
whenever new data has been set or data has been changed.
• Turning ON the power to the C200H/C200HS/C200HX/HG/HE CPU.
• Turning ON the Restart Bit allocated to the Unit as a Special I/O Unit (AR 0100
to 0109).
Any or all of the six functions can be used at the same time. Data will be pro-
cessed in the following sequence and the final results will be output to words n+1
to n+4: analog-to-digital conversion → square root → scaling → mean value →
peak value.
18
Functions and Programming
Section 2-3
2-3-1 Input Signal Range Setting
The C200H-AD001 can convert analog input signals in three ranges:
0 to 10 V, 1 to 5 V, or 4 to 20 mA. The range is set on pin 3 of the DIP switch
as shown below
Pin 3
OFF
Input range
1 to 5 V
4 to 20 mA
0 to 10 V
ON
If the 0 to 10 V setting is used, it must be used for all four inputs. The 1 to 5 V
and 4 to 20 mA ranges can be used at the same time for different inputs.
The digital data is in 12-bit binary code (0000 to 0FA0), and resolution is
1/4000 full scale.
Analog Input vs. Digital Output
Decimal equivalent
of binary code
Decimal equivalent of
binary code
4000
(0FA0)
4000
(0FA0)
Analog
input
Analog
input
0
0
0 V
1 V (4 mA)
10 V
5 V (20 mA)
Note An offset error is likely to occur when power is turned on. The full scale of con-
verted data is 4000, and the remaining 95 is used for offset/gain.
2-3-2 Square Root
The square root function is used to convert quadratic data, such as thermocou-
ple inputs, to linear data. The function is activated for all inputs when the Square
Root ON Bit (IR 1n012, where n is the unit number) is turned ON.
The square root function can be used at the same time as the scaling and mean
value functions. If all three functions are used, the square root of the converted
input value is taken first and then scaling and mean value calculations are per-
formed.
The square root function uses an 80-bit floating decimal system. Only the
integer value is kept, the remainder is truncated.
Square root value = √(converted input value (BCD) × 4000)
Note If the Square Root ON Bit (IR 1n012, where n is the unit number) is turned ON,
square root calculations will be performed for all inputs.
19
Functions and Programming
Section 2-3
2-3-3 Scaling
The scaling function automatically converts the analog input signal to a preset
range for use in specific engineering applications. The scaling function is ex-
ecuted for an input when its Scaling Bit is ON, i.e., it can be set separately for
each input. This function can be used at the same time as other functions.
To set this function for an input, turn ON the Scaling Bit corresponding to that
input in word n.
Bit 05
04
03
02
Word n
The high and low limits of the output data range for each input are 4-digit BCD
values preset in the DM area, as shown in the following table (n is the unit num-
ber set on the front panel.) A lower limit must be less than the corresponding up-
per limit.
DM word
Range limit
(BCD)
DM word
Range limit
(BCD)
Bit of IR
1n0
Scaling bit
1n00
1n01
1n02
1n03
Input 1 lower limit
Input 1 upper limit
Input 2 lower limit
Input 2 upper limit
1n04
1n05
1n06
1n07
Input 3 lower limit
Input 3 upper limit
Input 4 lower limit
Input 4 upper limit
02
03
04
05
Input 1
Input 2
Input 3
Input 4
Set the scaling data with the Programming Console, this data cannot be
changed from the user’s program.
Data set in the DM area is transmitted when the Unit is turned on or initial-
ized. If data is modified in the middle of a session, then the modified data
becomes effective the next time the Unit is turned on, or by toggling the ap-
propriate Special I/O Restart Bit in the AR area.
Scaled data is calculated using the formula below. Only the integer value is
kept, the remainder is truncated.
Input data × (upper limit – lower limit)
Scaling data =
+ lower limit
4000
20
Functions and Programming
Section 2-3
Example
An example is shown below.
Input signal range: 0 to 10 V
Lower limit: 1000
Upper limit: 9000
Scaled data
Normal data
0 V
5 V
Input signal
10 V
If a 5-V input is received, it would be converted to 2000 (5/10 x 4000) and then
scaled as shown below.
2000 × (9000 – 1000)
Scaling data =
+ 1000 = 5000
4000
Note 1. Scaling will not be performed and unscaled (normal) data will be output if the
contents of DM words allocated to the Unit is not BCD or if a lower limit is
greater than the corresponding upper limit.
2. The Setting Error Flag (bit 00 in IR 1n5, where n is the unit number) will be
turned ON if the contents of DM m to DM m+7 is not BCD.
3. The Setting Error Flag will turn ON whenever DM area data is not BCD re-
gardless of whether an input is being used and regardless of whether or not
scaling is set. Operation, however, will be normal in these cases.
Resolution
If the difference between an upper limit and the corresponding lower limit (upper
limit – lower limit) is 4000 or greater, the resolution is fixed at 1/4000. If the differ-
ences is less than 4000, the resolution will be reduced proportionately.
For example, if the upper limit minus the lower limit is 2000, the resolution is
1/2000.
2-3-4 Mean Value
The mean value function sums a specified number of terms of converted input
data and divides by the number of terms preset the DM area.
If the Mean ON Bit for an input is ON (bits 07 to 10 of word n), the mean value will
be output to the corresponding word in the PC. The desired number of terms
must be set in the corresponding word in the DM area between DM m+8 and
DM m+11. The setting can be between 0002 and 9999 (BCD).
Bit 10
09
08
07
Word n
21
Functions and Programming
Section 2-3
The mean value functions can be used in combination with any of the other func-
tions.
Set the mean data for each input with the Programming Console. This data
cannot be changed from the user’s program. Set the mean data for all 4 in-
puts even when using only one input. If there is a mistake in the data for
even 1 input, the Setting Error Flag will be activated, though operation will
continue.
The mean value is calculated using the formula below. When the Mean En-
able Bit turns ON, the converted data will read “0000” until the mean value is
calculated for the first time.
Sum of converted input values
Mean value =
Number of terms (mean data)
The maximum mean function conversion time = 2.5 ms × the sum of the
number of terms for all inputs
Note 1. Mean value calculation will not be performed and normal data will be output
if the number of terms set in the DM area is 0000 or is not BCD.
2. The Setting Error Flag (bit 00 in IR 1n5, where n is the unit number) will be
turned ON if the number of terms set in the DM area is 0000 or is not BCD.
3. The Setting Error Flag will turn ON whenever the number of terms set in the
DM area is 0000 or is not BCD regardless of whether an input is being used
and regardless of whether or not scaling is set. Operation, however, will be
normal in these cases.
2-3-5 Peak Value
The peak value function holds the maximum output value for every input. This
function can be used at the same time an any or all of the other functions.
The output value that will be held is one of the following depending on what other
functions are set: converted input value, scaled value, mean value, and square
root. Data will be processed in the following sequence and the maximum value
of the final results will be output to words n+1 to n+4: analog-to-digital conver-
sion → square root → scaling → mean value → peak value.
The peak value function is activated for all 4 inputs when the Peak Value ON Bit
(IR 1n011, where n is the unit number) is turned ON and reset when it is turned
OFF.
Note If the Peak Value ON Bit (IR 1n011, where n is the unit number) is turned ON, the
peak value will be held for all inputs.
22
Functions and Programming
Section 2-3
Mean and Peak Values
Data will be output as illustrated below when both the mean value and the peak
value functions are used. In this example, mean value #2 will be output as the
first peak value even if mean value #1 is larger because the Peak Value ON Bit
was turned ON after mean value #1 was output.
Mean
value
Mean value #1
Mean value #2
Mean value #3
Mean value #4
Mean value #5
Results #1
Results #2
Results #3
Results #4
ON
Peak Value
ON Bit
OFF
Mean value #2
(1st peak value)
Larger of mean
values #2 and #3
Largest of mean
values #2 to #4
Output value
Previous mean value Mean value #1
2-3-6 Input Disconnection Detection
The Input Disconnect Flags will be turned ON when an the input signal level is
less than 0.5 V/2 mA and the input signal range is set at 1 to 5 V/4 to 20 mA.
These flags will not turn ON when the input signal range is set at 0 to 10 V.
The Input Disconnect Flags are contained in in word IR n+5, as shown below.
Bit 04
03
02
01
Word n +5
The BROKEN WIRE indicator on the Analog Input Unit will light whenever any of
the Input Disconnect Flags turn ON.
Note 1. The Input Disconnect Flags will operate only when the Conversion Inhibit Bit
(bit 00 of IR n) is OFF.
2. Input disconnection is detected for all input set on pins 1 and 2 of the back-
panel DIP switch. If an input that is not being used (i.e., not connected) is
specified on the DIP switch, the Input Disconnect Flag will turn ON.
3. The current peak value will be held even if a disconnected input is detected.
2-3-7 Data Setting Example and Programming Concepts
Data Settings
The following settings are used in this example. Data in the DM area is set using
the SSS, a Programming Console, or another Peripheral Device.
Basic Settings
Turn power to the PC off then then back on or turn ON the Special I/O Unit Re-
start Bit allocated to the Unit (AR 0100 to AR 0109) after setting the data so that
the data is read into the Analog Input Unit.
Item
Setting
0 (allocated words: IR 100 to IR 109 and DM 1000 to DM 1011)
Inputs 1 to 4
Unit number
Inputs used
23
Functions and Programming
Section 2-3
Details
Item
Input 4
1 to 5 V
Input 3
4 to 20 mA
0400
Input 2
1 to 5 V
Input 1
1 to 5 V
1000
Input signal range
Scaling
Lower limit –––
Upper limit –––
1000
5000
–––
1000
5000
Number of terms for
–––
50
10
mean value calculation
DM Area Data
DM word
DM 1000
DM 1001
DM 1002
DM 1003
DM 1004
DM 1005
DM 1006
DM 1007
DM 1008
DM 1009
DM 1010
DM 1011
Contents
1000
5000
1000
5000
0400
1000
0000
0000
0010
0000
0050
0000
Data
Input 1 lower limit for scaling
Input 1 upper limit for scaling
Input 2 lower limit for scaling
Input 2 upper limit for scaling
Input 3 lower limit for scaling
Input 3 upper limit for scaling
Input 4 lower limit for scaling
Input 4 upper limit for scaling
Input 1 number of terms for mean value
Input 2 number of terms for mean value
Input 3 number of terms for mean value
Input 4 number of terms for mean value
Programming
The types of programming required to use an Analog Input Unit are described in
this section. Refer to the operation manual for the C200H/C200HS/C200HX/
HG/HE for details on programming.
Reading Output Data
The converted input value (or the results of calculations performed on it) can be
read from the output words IR n+1 to IR n+4, and moved to other words in
memory using MOV(21) and/or XFER(70). MOV(21) is used to move one word
at a time and XFER(70) is used to move more than one word at a time.
Input condition
Moves the output data
MOV(21)
from IR 101 (input 1) to
DM 0001.
101
DM 0001
Input condition
Moves the output
XFER(70)
data from IR 101 to
IR 104 (inputs 1 to
4) to DM 0001 to
#0004
101
DM 0004.
DM 0001
Scaling
Set 4-digit BCD values for the lower and upper limits for scaling in DM m to
DM m+7. These words cannot be written from the program and must be written
using a Peripheral Device, such as a Programming Console.
24
Functions and Programming
Section 2-3
For example, use the following procedure to set scaling between 1000 and 5000
for input 1.
1, 2, 3...
1. Set the lower and upper limits in DM 1000 and DM 1001.
DM word
DM 1000
DM 1001
Contents
1000
Data
Input 1 lower limit for scaling
Input 1 upper limit for scaling
5000
2. Turn ON IR 10002 (Scaling ON Bit for input 1). Scaling will begin for input 1
as soon as this bit is turned ON. This bit can be changed from the program
using the following type of programming.
Input condition
10002
Mean Value
Set the 4-digit BCD value for the number of terms for mean value calculation in
DM m+8 to DM m+11. The number of terms can be between 2 and 9999. These
words cannot be written from the program and must be written using a Peripher-
al Device, such as a Programming Console.
For example, use the following procedure to set mean value calculation for every
10 inputs for input 1.
1, 2, 3...
1. Set the number of terms (10) in DM 1008.
DM word
Contents
Data
DM 1008
0010
Number of terms for mean value calcula-
tion for input 1
2. Turn ON IR 10007 (Mean Value ON Bit for input 1). Mean value calculations
will begin for input 1 as soon as this bit is turned ON. This bit can be changed
from the program using the following type of programming.
Input condition
10007
Peak Value
The peak value function can be used to hold the maximum output value for all
outputs by turn ON the Peak Value ON Bit (IR10011). The peak value will be held
individually for all inputs when this bit is turned ON. This bit can be changed from
the program using the following type of programming.
Input condition
10011
Square Root
The square root function can be used to convert quadratic data to linear data by
turn ON the Square Root ON Bit (IR10012). The square root will be calculated
individually for all inputs when this bit is turned ON. This bit can be changed from
the program using the following type of programming.
Input condition
10012
25
Troubleshooting
Section 2-4
2-4 Troubleshooting
Detection When Errors
Occur
When an error occurs, the contents are output to the SR and HR areas. The fol-
lowing tables show the various errors that may occur, along with their probable
causes and remedies.
Unit error
Probable causes and operations
• Causes of error
Possible remedies
Disconnection error
Check the input signal wires, terminal
block, and input voltage.
• Input signal wire is disconnected.
• Input signal range is set to “1 to 5V” but input is 0.5
V or less.
• Input signal range is set to “4 to 20 mA” but input is
2 mA or less.
• Disconnect indications
• BROKEN WIRE indicator is lit.
• The Input Disconnect Flag (IR n+5, bits 01 to 04)
that corresponds to the erroneous input signal is
turned ON (except when the input range is 0 to
10 V).
Setting error
The data set in the DM area is wrong. In this case,
the Setting Error Flag (IR n+5, bit 00) will be ON.
Check the contents of the data.
Output disabled
The converted data is unstable, as, for example,
when the power is first turned on. In this case, the
Output Disabled Flag (IR n+5, bit 08) will be ON.
–––
RUN indicator not lit
The RUN indicator on the Unit is not lit even though Replace the Unit.
power is turned on to the PC, and none of the errors
described in this table are applicable.
CPU error
Probable causes and operations
• The Special I/O Unit is defective.
• The PC will not run.
Possible remedies
CPU waiting
• Replace the Special I/O Unit.
• The defective Unit should appear as $
signs only in the I/O table read opera-
tion.
Duplicated unit number One number is assigned to more than one Special
I/O Unit. In this case the PC will not run and
SR25415 will turn ON.
Do not assign the same number to more
than one Unit. Use the I/O table read
operation to display unit numbers.
Special I/O Unit error
An error has occurred in the refresh signal between Check AR 0000 to AR 0009 for the unit
the CPU and the Special I/O Unit. In this case, only number of the Unit in error. After
the Special I/O Unit stops. SR 25415 is turned ON.
correcting the error, set restart (OFF
→ON →OFF) in AR 0100 to AR 0109. If
the error does not clear after
initialization, replace the Unit.
Special I/O Unit Error Detection Bit (SR)
Bit
Error
Explanation
Operation status
SR 25415
Duplicated unit number
The same number is assigned to
more than one Special I/O Unit.
PC operation stops.
Special I/O Unit error
An error has occurred in the refresh Operation stops only for the faulty
signal between the CPU and the
Special I/O Unit
Unit.
26
Troubleshooting
Section 2-4
Special I/O Unit Error Flags (AR)
Bit
Item
Function
When one of the CPU errors described above
occurs, the AR bit turns ON for the Unit where the
error occurred.
AR 0000
AR 0001
AR 0002
AR 0003
AR 0004
AR 0005
AR 0006
AR 0007
AR 0008
AR 0009
Unit #0 Error Flag
Unit #1 Error Flag
Unit #2 Error Flag
Unit #3 Error Flag
Unit #4 Error Flag
Unit #5 Error Flag
Unit #6 Error Flag
Unit #7 Error Flag
Unit #8 Error Flag
Unit #9 Error Flag
Special I/O Unit Restart Bits (AR)
Turn ON the Special I/O Unit Restart Bits in the following circumstances:
• After DM data has been set or replaced.
• To restart Unit operation after clearing an error.
The same effect can be achieved by turning off the power to the PC and then turning it on again.
Bit
Item
Function
Special I/O Units can be restarted by turning the
corresponding bits ON.
AR 0100
AR 0101
AR 0102
AR 0103
AR 0104
AR 0105
AR 0106
AR 0107
AR 0108
AR 0109
Unit #0 Restart Bit
Unit #1 Restart Bit
Unit #2 Restart Bit
Unit #3 Restart Bit
Unit #4 Restart Bit
Unit #5 Restart Bit
Unit #6 Restart Bit
Unit #7 Restart Bit
Unit #8 Restart Bit
Unit #9 Restart Bit
27
SECTION 3
C200H-DA001 Analog Output Units
This section provides the information required to install and operate a C200H-DA001 Analog Output Unit.
3-1 Before Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1-1 Nomenclature and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1-2 Switch Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1-3 Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2 Bit and DM Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3 Functions and Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3-1 Output Signal Range Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3-2 Output Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3-3 Output Limit Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3-4 Pulse Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3-5 Data Setting Example and Programming Concepts . . . . . . . . . . . . . . . . . . . . . . . .
3-4 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
30
32
33
36
38
39
39
41
42
43
45
29
Before Operation
Section 3-1
3-1 Before Operation
3-1-1 Nomenclature and Functions
Model label
Unit number
setting switch
Function setting switch
External output
terminal block
connectors
kplane connector
Indicators
Indicator
Color
Green
Function
RUN
Lit when the Analog Output Unit is operating correctly. If operation is not normal, this
indicator turns OFF and Unit operation is stopped.
ALARM
Red
Lit when an alarm is output as a result of the upper or lower limits being exceeded,
Functions
The following table briefly outlines the basic functions of the C200H-DA001.
These functions are covered in more detail in 3-3 Functions and Programming.
Function
Explanation
Output range setting
The output range can be set according to the output signal level that is to be used. The
same output range is used for all of the outputs for a particular Unit. The voltage range
of 1 to 5 V and the current range of 4 to 20 mA, however, can be used at the user’s
option at any output.
Output limit
The output limit function sets upper and lower limits on the output signal. The upper and
lower limits are preset in the DM area. The output remains at the limit level as long as
the output limit function is activated.
Output limit alarm
This function activates an alarm if the output signal is outside of the range defined by
the upper and lower limits preset in the DM area, but it does not alter the output level. It
is possible to include a deadband, which delays the resetting of the alarm. The output
limit alarm turns ON and OFF according to the following conditions.
Pulse output
This function creates a 0 V to 5 V pulse output separate from the analog output.
30
Before Operation
Section 3-1
Block Diagram
The following diagram shows the basic internal configuration of the Analog
Output Unit.
Voltage output 1
current output 1
I/O BUS
Voltage output 2
current output 2
Pulse
output
circuit
Photo-
coupler
Pulse output 1
Pulse output 2
Pulse
output
circuit
Photo-
coupler
Alarm 1 upper limit
Alarm 1 lower limit
Alarm 2 upper limit
Alarm 2 lower limit
COM
Analog
supply
power
+ 5 V
0 V
DC/DC
converter
31
Before Operation
Section 3-1
3-1-2 Switch Settings
There are four settings necessary for this Unit: unit number, output range,
pulse output line, and pulse output ON/OFF.
Unit Number
Unit number
setting switch
The switch notch points to the unit number. The
switch in the figure to the left is set to 0. Odd num-
bers, in parentheses here, are not shown on the Unit.
Use a standard screwdriver to set a different unit
number for each Analog I/O Unit. IR area memory is
allocated according to unit number, as shown in the
table below.
Switch number
Unit number
Unit #0
Unit #1
Unit #2
Unit #3
Unit #4
Unit #5
Unit #6
Unit #7
Unit #8
Unit #9
IR words
DM words
0
1
2
3
4
5
6
7
8
9
IR 100 to 109
IR 110 to 119
IR 120 to 129
IR 130 to 139
IR 140 to 149
IR 150 to 159
IR 160 to 169
IR 170 to 179
IR 180 to 189
IR 190 to 199
DM 1000 to 1099
DM 1100 to 1199
DM 1200 to 1299
DM 1300 to 1399
DM 1400 to 1499
DM 1500 to 1599
DM 1600 to 1699
DM 1700 to 1799
DM 1800 to 1899
DM 1900 to 1999
Note 1. The unit number setting switch is factory set to 0.
2. If two or more Special I/O Units are assigned the same unit number, an I/O
UNIT OVER error will be generated and the PC will not operate.
3. Make the unit number settings with the power turned off to the PC. If the set-
tings are made with the power on, they will not go into effect until either the
power is turned off and then on again or the Special I/O Unit Restart Flag
(AR0100 to AR0109) is turned ON.
DIP Switch Settings
Set pins 1 through 3 before powering up the system. Pin 4 is not used, so
please leave it set to OFF.
0: OFF
1: ON
Output Range
Use pin 1 to set the output range.
Pin number 3
Output range
OFF
Voltage input
Current input
Voltage input
1 to 5 V
4 to 20 mA
0 to 10 V
ON
Note The same output range is used for all of the outputs for a particular Unit. The
voltage range of 1 to 5 V and the current range of 4 to 20 mA, however, can be
used at the user’s option at any output.
32
Before Operation
Section 3-1
Pulse Output Line
Use pin 2 to set the pulse output line.
Pin 2 OFF:
Pin 2 ON:
Output 1
Output 2
Pulse Output ON/OFF
Use pin 3 to set pulse outputs to ON or OFF.
Pin 3 OFF:
Pin 3 ON:
Pulse output OFF
Pulse output ON
3-1-3 Wiring
Terminal Allocation
The following illustration shows the function of each output.
B0
B1
B2
B3
B4
B5
B6
B7
Voltage output 1 (+)
Current output 1 (+)
Pulse output 1 (+)
Voltage output 1 (–)
Current output 1 (–)
A0
A1
Pulse output 1 (–)
Voltage output 2 (–)
Current output 2 (–)
Pulse output 2 (–)
A2
A3
Voltage output 2 (+)
Current output 2 (+)
Pulse output 2 (+)
A4
A5
Not used.
Not used.
A6
A7
Upper limit alarm output 1
Upper limit alarm output 2
Alarm output common
Lower limit alarm output 1
Lower limit alarm output 2
B8
B9
A8
The Analog Output Unit has two built-in output lines, but it is not possible to si-
multaneously use one of them for both voltage and current outputs.
The same output range is used for all of the outputs for a particular Unit. The
voltage range of 1 to 5 V and the current range of 4 to 20 mA, however, can be
used at the user’s option at any output.
Pulse output is possible for either output 1 or output 2, but not for both. Refer to
3-1-2 Switch Settings for details.
33
Before Operation
Section 3-1
Output Wiring
The following diagram shows the external wiring of outputs for the
C200H-DA001.
C200H-DA001
Load
+
Voltage
output
–
B0
B1
B2
B3
B4
B5
1
+
A0
A1
A2
A3
A4
A5
Current
output
1
Output 1
–
Pulse output 1
0 V
+
Voltage
output
2
–
+
Current
output
2
Output 2
–
Pulse output 2
0 V
Shield
100 mA max.
Load
B7
B8
B9
+
Load
5 to 24 VDC
A7
A8
Load
(Note 1.)
–
Load
Note 1. The maximum current capacity for this alarm output (open-collector output)
is 100 mA/circuit.
2. A single output line cannot be used for voltage and current output at the
same time.
34
Before Operation
Section 3-1
Output Wiring
Considerations
When wiring outputs, apply the following points to avoid noise interference and
optimize Analog Output Unit performance.
• Use shielded twisted-pair cable for external connections and power lines.
• Route output cables separately from the AC cable, and do not run the Unit’s
cables near a main circuit cable, high voltage cable, or a non-PC load cable.
• Be sure to install surge-absorbing diodes or surge absorbers for inductive
loads (relays, solenoids, electromagnetic valves, etc.) They should be
installed right next to relays and solenoids. Use surge-absorbing diodes with a
dielectric strength of at least five times the circuit voltage.
DC Relay
AC Relay
Surge absorber
Surge-absorbing diode
(Example: ERB44-06,
by Fuji Electric)
Solenoid, etc.
Surge absorber
• If there is noise interference from power lines (if, for example, the power supply
is shared with electrical welding devices or electrical discharge machines, or if
there is a high-frequency generation source nearby) install a noise filter at the
power supply output area.
• Use at least a class-3 ground (to 100 Ω or less), with as heavy a wire as pos-
2
sible (i.e., at least 1.25 mm ).
Caution When using the C200H-DA001 Analog Output Unit, a voltage (current) may be
output momentarily from the output terminal when the power supply to the PC is
turned ON or OFF.
!
Approximately 10 V will be output for approximately 1 second after the power is
turned ON or OFF.
If this causes a problem, provide countermeasures so that the power supply or
output timing of external devices differs from the ON/OFF timing of the power
supply to the PC.
35
Bit and DM Allocations
Section 3-2
3-2 Bit and DM Allocations
IR Allocations
C200H/C200HS Analog Output Units are allocated ten words each from the por-
tion of the IR area (IR 100 to IR 199) that is reserved for Special I/O Units. The
words that are allocated a particular Analog Output Unit depend on the setting of
the unit number setting switch on the front panel of the Unit. Those ten words are
then reserved as an I/O refresh data area, and the bits that comprise that area
are refreshed with every I/O refresh scan by the PC.
SYSMAC C200HS/C200H/C200HX/HG/HE PC
(Work area)
IR 100 to 109
C200H-DA001 Analog Output Unit
(I/O refresh data area)
Unit #0
Unit #1
Unit #2
Unit #3
Unit #4
Unit #5
Unit #6
Unit #7
Unit #8
Unit #9
IR n to
OUT refresh
IR n +2
IR 110 to 119
IR 120 to 129
IR 130 to 139
IR 140 to 149
IR 150 to 159
IR 160 to 169
IR 170 to 179
IR 180 to 189
IR 190 to 199
At the I/O refresh by
the PC, outputs (PC to
Unit) and inputs (Unit to
PC) are executed in or-
der with every scan.
IR n + 3
IN refresh
(n = 100 + 10 x unit number)
The OUT and IN refreshes are as seen from
the PC.
Note The unit number that is set for an Analog Input Unit must not be used for any
other Special I/O Unit. If overlapping numbers are set, an I/O UNIT OVER error
will be generated and operation will be stopped.
DM Allocations
SYSMAC C200HS/C200H/C200HX/HG/HE PC
(DM area)
C200H-AD001 Analog Input Unit
(Fixed data area)
DM 1000 to 1004
DM 1100 to 1104
DM 1200 to 1204
DM 1300 to 1304
DM 1400 to 1404
DM 1500 to 1504
DM 1600 to 1604
DM 1700 to 1704
DM 1800 to 1804
DM 1900 to 1904
Unit #0
Unit #1
Unit #2
Unit #3
Unit #4
Unit #5
Unit #6
Unit #7
Unit #8
Unit #9
DM m
Output lower limit
DM (m + 1)
DM (m + 2)
DM (m + 3)
DM (m + 4)
Output upper limit
Alarm lower limit
Alarm upper limit
Automatically transferred
to each unit number at
power up or when Spe-
cial I/O Restart Flag is
turned ON.
Alarm dead band
(m = 1000 + 100 x unit number)
(For more information regarding DM address allocation, refer to
the DM Address Allocation Chart at the end of this section.)
36
Bit and DM Allocations
Section 3-2
IR Allocations
Bit
I/O
Wd
(IR)
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
OUT
n
Output 1 setting data (0000 to 0FFF); (Becomes duty ratio data for pulse output.)
n+1 Output 2 setting data (0000 to 0FFF); (Becomes duty ratio data for pulse output.)
n+2
0
0
0
0
OP O2L O1L O2A O1A
0
Pulse cycle
100: 20 s
011: 10 s
010: 5 s
001: 2 s
000: 1 s
IN
n+3
0
0
0
0
SE
Output 2
limit
Output 1
limit
Output 2
alarm
Output 1
alarm
detected
detected
UL
LL
UL
LL
UL
LL
UL
LL
n+4
to
Not used.
n+9
Note The following abbreviations are used in this table. OP: output prohibited; O2L:
output 2 limit; O1L: output 1 limit; UL: upper limit; LL: lower limit; SE: setting error.
IR Area Contents (Outputs)
Address
Item
Contents
Word
(IR)
Bit
n
15 to 00
15 to 00
Output 1 setting data
Output 2 setting data
Sets output 1 data in binary. This becomes duty ratio data when
pulse outputs are set. The range is 0000 to 0FFF.
n+1
n+2
Sets output 2 data in binary. This becomes duty ratio data when
pulse outputs are set. The range is 0000 to 0FFF.
15 to 09
08
–––
Not used. Set all bits to “0.”
Output prohibited
Output 2 limit
Output 1 limit
Output 2 alarm
Output 1 alarm
–––
Turn ON to prohibit outputs. This bit is used for outputs 1 and 2.
Turn ON to execute output 2 limit.
07
06
Turn ON to execute output 1 limit.
05
Turn ON to execute output 2 alarm.
Turn ON to execute output 1 alarm.
Not used. Turn OFF (i.e., set to “0”).
04
03
02 to 00
Pulse cycle
Sets the pulse period.
Pulse period
02
1 s
0
2 s
0
5 s
0
10 s
0
20 s
1
Bit
01
00
0
0
1
1
0
0
1
0
1
0
37
Functions and Programming
Section 3-3
IR Area Contents (Inputs)
Word
(IR)
Bit
Item
Contents
n+3
15 to 09 –––
Not used.
Output 2 limit
detected
08
07
06
05
04
03
02
01
00
Upper limit: Turns ON when output 2 value is greater than the upper limit.
Lower limit: Turns ON when output 2 value is less than the lower limit.
Upper limit: Turns ON when output 1 value is greater than the upper limit.
Lower limit: Turns ON when output 1 value is less than the lower limit.
Upper limit: Turns ON when output 2 value is greater than the alarm upper limit.
Lower limit: Turns ON when output 2 value is less than the alarm lower limit.
Upper limit: Turns ON when output 1 value is greater than the alarm upper limit.
Lower limit: Turns ON when output 1 value is less than the alarm lower limit.
This bit turns ON if the data set in the DM area is wrong. (See note 2.)
Output 1 limit
detected
Output 2 alarm
(See note.)
Output 1 alarm
(See note.)
Setting error
Note When alarm flags turn ON, their status can be read from external connection ter-
minals A7, A8, B7, and B8. (Refer to 3-1-3 Wiring.) At that time the ALARM indi-
cator on the display panel of the Unit will light.
DM Allocations
Word
Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
DM m
Output lower limit (0000 to 0FFF)
DM (m+1)
DM (m+2)
DM (m+3)
DM (m+4)
Output upper limit (0000 to 0FFF)
Alarm lower limit (0000 to 0FFF)
Alarm upper limit (0000 to 0FFF)
Alarm dead band (0000 to 0FFF)
Note 1. The DM area that is used is a read-only area, so the data cannot be written
from the program. Use the Programming Console to set data by changing
the present value or changing three words together.
2. Data that is set in the DM area is transferred either at the time of power up or
when the Special I/O Unit Restart Bit is turned ON. Any data that is set in the
meantime will remain invalid until then.
3. The values set in DM are used for both output lines (i.e., for output 1 and
output 2).
4. m = 1000 + 100 x unit number.
3-3 Functions and Programming
The C200H-DA001 Analog Output Unit provides 4 functions
• Output signal range setting
• Output limit
• Output limit alarm
• Pulse output
These functions are set using Unit switches and Peripheral Devices, such as a
Programming Console. The words allocated to the Unit in the DM Area (DM m to
DM m+4) cannot be written from user program and all data set in these words
must be written from a Peripheral Device.
When inputting data from a Programming Console, use the operations to
change present values. When inputting from the SSS (SYSMAC Support Soft-
ware), use the DM editing operations.
The data set in the DM area is transferred to the Analog Output Unit when either
of the following steps is taken. Be sure to perform one or the other of these steps
whenever new data has been set or data has been changed.
38
Functions and Programming
Section 3-3
• Turning ON the power to the C200H/C200HS CPU.
• Turning ON the Restart Bit allocated to the Unit as a Special I/O Unit (AR 0100
to 0109).
3-3-1 Output Signal Range Setting
The C200H-DA001 converts 12-bit binary data (3-digit hexadecimal) from the
PC to analog output in one of three ranges: 0 to 10 V, 1 to 5 V, or 4 to 20 mA.
The C200H-DA001 can convert analog output signals in three ranges:
0 to 10 V, 1 to 5 V, or 4 to 20 mA. The range is set on pin 1 of the DIP switch
as shown below.
Pin 1
OFF
Input range
1 to 5 V
4 to 20 mA
0 to 10 V
ON
If the 0 to 10 V setting is used, it must be used for all two outputs. The 1 to
5 V and 4 to 20 mA ranges can be used at the same time for different out-
puts.
Digital Output vs. Analog Input
10 V
5 V (20 mA)
Output
Output
1 V (4 mA)
0 V
0
Digital
value
Digital
value
0FFF
(4095)
0
0FFF
(4095)
1 V to 5 V and 4 mA to 20 mA Outputs
(pin 1 OFF)
0 V to 10 V Output
(pin 1 ON)
3-3-2 Output Limits
The output limit function can be used to establish upper and lower limits for the
output signal. The limits can be used to restrict the output for any of a number of
possible reasons, e.g., to prevent unsuitable outputs from occurring even when
incorrect data is set.
This function can be used at the same time as the output limit alarm function.
The upper and lower limits are preset as binary values in the DM area (lower limit
in DM m and upper limit in DM m+1). The output will remain between the upper
and lower limits as long as the output limit function is activated.
39
Functions and Programming
Section 3-3
If the output goes beyond either limit, an Output Limit Flag (bits 05 to 08 in IR
n+3) will turn ON and the output will remain at the limit value
Upper Limit
Flag ON
Output level
Output limit upper level
Lower Limit
Flag ON
Output limit lower level
Time
Output remains at
upper or lower limit
Use the following procedure to set upper and lower limits.
1, 2, 3...
1. Set the lower and upper limits in DM m and DM m+1. The setting range is
between 0000 and 0FFF (binary data). Set the limits from the Programming
Console. This data cannot be changed from the user’s program.
Note Calculations of the desired limit can be made as shown in the follow-
ing example. To set an upper limit of 8 V for a 0 to 10 V range setting,
use the following equation and set the results (0CCC) in DM m+1:
8/10 x 0FFF = 0CCC
2. Turn power to the PC off then then back on or turn ON the Special I/O Unit
Restart Bit allocated to the Unit (AR 0100 to AR 0109).
3. Turn ON the Output Limit ON Bit for the desired output:
Output 1 Limit ON Bit: Bit 06 of IR n+2
Output 2 Limit ON Bit: Bit 07 of IR n+2
40
Functions and Programming
Section 3-3
3-3-3 Output Limit Alarms
This function activates an alarm if the output signal is outside of the range de-
fined by the upper and lower limits preset in the DM area, but it does not alter the
output level. It is possible to include a deadband, which delays the resetting of
the alarm.
ON
Output Upper Limit Alarm Flag
OFF
ON
Output Lower Limit Alarm Flag
OFF
Dead-
band
Output level
Output limit alarm upper limit
Dead-
band
Output limit alarm lower limit
Time
This function can be used at the same time as the output limit function.
The output limit alarms turn ON and OFF according to the following conditions.
Upper limit:
ON:
analog output ≥ output limit alarm upper limit
OFF: analog output < output limit alarm upper limit – deadband width
Lower limit:
ON:
analog output ≤ output limit alarm lower limit
OFF: analog output > output limit alarm lower limit + deadband width
When any of the Output Limit Alarm Flags turn ON, the ALARM indicator on
the Unit will light and signals will be generated on external terminals A7, A8,
B7, and B8 (refer to 3-1-3 Wiring for details).
Use the following procedure to set upper and lower limit alarms.
1, 2, 3...
1. Set the lower and upper alarm limits in DM m+2 to DM m+4. The setting
range is between 0000 and 0FFF (binary data). Set the limits from the Pro-
gramming Console. This data cannot be changed from the user’s program.
Note Calculations of the desired limit can be made as shown in the follow-
ing example. To set an upper limit alarm at 4.75 V for a 1 to 5 V range
setting, use the following equation and set the results (0F00) in
DM m+1:(4.75 – 1)/(5 – 1) x 0FFF = 15/16 x 0FFF = 0F00
2. Turn power to the PC off then then back on or turn ON the Special I/O Unit
Restart Bit allocated to the Unit (AR 0100 to AR 0109).
3. Turn ON the Output Alarm ON Bit for the desired output:
Output 1 Alarm ON Bit: Bit 04 of IR n+2
Output 2 Alarm ON Bit: Bit 05 of IR n+2
41
Functions and Programming
Section 3-3
3-3-4 Pulse Output
The pulse output function can be used to create a 0 to 5 V pulse output for either
output 1 or 2 in addition to the analog output.
The pulse period and duty ratio (ON/OFF ratio) can be set for the pulse output.
These settings can be made from the user program.
Amplitude
ON
OFF
Duty ratio = ON time/pulse period
Pulse
period
Note The resolution of the duty ratio is 1/256.
Use the following procedure to set a pulse output.
1, 2, 3...
1. Turn ON pin 3 of the DIP switch on the back of the Unit to select pulse output.
2. Turn OFF pin 2 to select output 1, or ON to select output 2. Both outputs can-
not be pulse at the same time.
3. Set the pulse period in bits 00 to 02 of IR n+2 as shown below.
Bis in IR n
01
Period
00
02
0
0
0
1
1
0
0
1 s
1
0
1
0
0
0
0
1
2 s
5 s
10 s
20 s
4. Set the duty ratio (ON/OFF ratio) for the pulse output in IR n. Refer to 3-3-5
Data Setting Example and Programming Concepts for setting methods.
Calculating Settings
To set a duty ratio of 80% , set the results of the following calculation (0CCC) in
IR n: 80/100 x 0FFF = 0CCC.
If either the duty ratio or period is changed during operation, the output will not
change until 1 full period has been completed.
Data changed
Pulse output calculation not
changed until this point
42
Functions and Programming
Section 3-3
3-3-5 Data Setting Example and Programming Concepts
Data Settings
The following settings are used in this example. Data in the DM area is set using
the SSS, a Programming Console, or another Peripheral Device. Turn power to
the PC off then then back on or turn ON the Special I/O Unit Restart Bit allocated
to the Unit (AR 0100 to AR 0109) after setting the data so that the data is read into
the Analog Output Unit.
Item
Setting
Unit number
0 (allocated words: IR 100 to IR 109 and DM 1000 to DM 1004)
Item
Output 1
DM 0000
Output 2
DM 0001
DM word for storing output data
Lower limit output bit
IR 00100
IR 00101
–––
–––
–––
A8
Upper limit output bit
Lower limit alarm output terminal
Upper limit alarm output terminal
–––
B8
Details
Item
Output 1
Output 2
Output signal range
Output limit function
Limit alarm function
1 to 5 V
4 to 20 mA
OFF
ON
OFF
ON
Item
Actual value
1.25 V
Setting
Output limits
Alarm limits
Lower limit
Upper limit
Lower limit
Upper limit
Deadband
0100
4.75 V
6 mA
0F00
0200
0F00
0080
19 mA
0.5 mA
DM Area Settings
DM word
DM 1000
DM 1001
DM 1002
DM 1003
DM 1004
Data
Setting
0100
Output limit lower limit
Output limit upper limit
Alarm lower limit
0F00
0200
0F00
0080
Alarm upper limit
Deadband for alarm
Programming
The types of programming required to use an Analog Output Unit are described
in this section. Refer to the operation manual for the C200H/C200HS for details
on programming.
43
Functions and Programming
Section 3-3
Writing Output Data
Output data can be written using instructions like MOV(21) and OUT. The follow-
ing instruction move the binary contents of DM 0000 and DM 0001 to IR 100 and
IR 101, causing the data to be converted to analog signals and to be sent to out-
puts 1 and 2.
Input condition
MOV(21)
Moves the binary contents of DM
0000 to IR 100, causing the data
DM 0000
to be converted to analog signals
and to be sent to output 1.
100
Input condition
Moves the binary contents of DM
MOV(21)
0001 to IR 101, causing the data
to be converted to analog signals
and to be sent to output 2.
DM 0001
101
Limiting Outputs
Monitoring Outputs
44
This example assumes that the data settings given at the beginning of this sec-
tion have already been made.
The output will be limited to between 1.25 and 4.75 V when the following instruc-
tions are executed.
Turns ON the Limit ON Bit for
output 1.
Input condition
Input condition
10206
MOV(21)
Moves the binary contents of
DM 0000 to IR 100, causing the
data to be converted to analog
signals and to be sent to output 1.
DM 0000
100
Lower Limit Flag
10305
Turns ON output bit IR 00100 when
the Lower Limit Flag turns ON.
00100
00101
Upper Limit Flag
10306
Turns ON output bit IR 00101 when
the Upper Limit Flag turns ON.
This example assumes that the data settings given at the beginning of this sec-
tion have already been made.
Upper and lower limit alarms will be output as described below when the follow-
ing instructions are executed.
Upper limit alarm: ON when output reaches 19 mA until it drops to 18.5 mA
Lower limit alarm: ON when output falls below 6 mA until it reaches 6.5 mA
Turns ON the Alarm ON Bit for
output 2.
Input condition
10205
Input condition
MOV(21)
Moves the binary contents of
DM 0001 to IR 101, causing the
data to be converted to analog
signals and to be sent to output 2.
DM 0001
101
The alarm outputs can be wire externally using external terminals A8 and B8.
The ALARM indicator on the Unit will light when any Alarm Flag is ON.
Troubleshooting
Section 3-4
Pulse Output
This example shows how to set pulse outputs on output 1. The pulse output set-
tings are given in the following table.
Item
Duty
Value
Data setting
0CCC in IR 100
Turn ON IR 10200
Pulse output
80%
2 s
Pulse period
5 V
0 V
1.6 s
2 s
0.4 s
Duty = 80% (0CCC)
Pulse period = 2 s
(IR 10200 turned ON)
Turn OFF pin 2 (specifying output 1) and turn ON pin 3 (enabling pulse output) on
the back-panel DIP switch before starting.
Execute the following instructions in the program. Pulse outputs will be made on
output 1.
Input condition
MOV(21)
Sets the duty ratio to 80%.
#0CCC
100
10200
Sets the period at 2 seconds.
3-4 Troubleshooting
Detection When Errors
Occur
When an error occurs, the contents are output to the SR and HR areas. The fol-
lowing tables show the various errors that may occur, along with their probable
causes and remedies.
Unit error
Probable causes and operations
Possible remedies
Setting error
The data set in the DM area is wrong. In this case,
the Setting Error Flag (IR n+3, bit 00) will be ON.
Check the contents of the data.
RUN indicator not lit
The RUN indicator on the Unit is not lit even though Replace the Unit.
power is turned on to the PC, and none of the errors
described in this table are applicable.
CPU error
Probable causes and operations
• The Special I/O Unit is defective.
• The PC will not run.
Possible remedies
CPU waiting
• Replace the Special I/O Unit.
• The defective Unit should appear as $
signs only in the I/O table read opera-
tion.
Duplicated unit number The same number is assigned to more than one
Do not assign the same number to more
Special I/O Unit. In this case the PC will not run and than one Unit. Use the I/O table read
SR25415 will turn ON. operation to display unit numbers.
Special I/O Unit error
An error has occurred in the refresh signal between Check AR 0000 to AR 0009 for the unit
the CPU and the Special I/O Unit. In this case, only number of the Unit in error. After
the Special I/O Unit stops. SR 25415 is turned ON.
correcting the error, turn ON the proper
bit in AR 0100 to AR 0109. If the error
does not clear after initialization, replace
the Unit.
45
Troubleshooting
Section 3-4
Special I/O Unit Error Detection Bit (SR)
Bit
Error
Explanation
Operation status
PC operation stops.
25415
Duplicated unit number
One number is assigned to more
than one Special I/O Unit.
Special I/O Unit error
An error has occurred in the refresh Operation stops only for the faulty
signal between the CPU and the
Special I/O Unit
Unit.
Special I/O Unit Error Flags (AR)
Bit
Item
Function
When one of the CPU errors described above
occurs, the AR bit turns ON for the Unit where the
error occurred.
AR 0000
AR 0001
AR 0002
AR 0003
AR 0004
AR 0005
AR 0006
AR 0007
AR 0008
AR 0009
Unit #0 Error Flag
Unit #1 Error Flag
Unit #2 Error Flag
Unit #3 Error Flag
Unit #4 Error Flag
Unit #5 Error Flag
Unit #6 Error Flag
Unit #7 Error Flag
Unit #8 Error Flag
Unit #9 Error Flag
Special I/O Unit Restart Bits (AR)
Turn ON the Special I/O Unit Restart Bits in the following circumstances:
• After DM data has been set or replaced.
• To restart Unit operation after clearing an error.
The same effect can be achieved by turning off the power to the PC and then turning it on again.
Bit
Item
Function
Special I/O Units can be restarted by turning the
corresponding bits ON.
AR 0100
AR 0101
AR 0102
AR 0103
AR 0104
AR 0105
AR 0106
AR 0107
AR 0108
AR 0109
Unit #0 Restart Bit
Unit #1 Restart Bit
Unit #2 Restart Bit
Unit #3 Restart Bit
Unit #4 Restart Bit
Unit #5 Restart Bit
Unit #6 Restart Bit
Unit #7 Restart Bit
Unit #8 Restart Bit
Unit #9 Restart Bit
46
Appendix A
Standard Models
Analog Output Unit
PC
Model
C200H/C200HS
C200H-DA001
Analog Input Unit
PC
Model
C200H-AD001
C200H/C200HS
47
Appendix B
Specifications
C200H-AD001 Analog Input Unit
General Specifications
All general specifications of the C200H-AD001 Analog Input Unit conform to those of the C Series.
Performance Specifications
Item
Specifications
Number of analog inputs
Input signal range (note 1)
4 max.
Voltage input
1 to 5 V
0 to 10 V
Current input
Voltage input
Current input
Voltage input
Current input
4 to 20 mA
ꢀ15 V
Max. input signal (note 2)
Input impedance
ꢀ30 mA
1 MΩ min.
250 Ω (rated value)
Resolution
1/4000 max. (full scale)
Converted data
Accuracy (note 3)
12-bit binary (0000 to 0FA0)
ꢀ0.5% (full scale, including linearity error)
ꢀ1.0% (full scale, including linearity error)
25°C
0° to 55°C
Conversion time (note 4)
Isolation
2.5 ms max./point
Between input terminals and PC: photocoupler
Between input terminals: none
External connections
Power consumption
Dimensions
19-pin terminal block (removable)
550 mA max. at 5 VDC
34.5 x 130 x 128 (W x H x D) mm (see last page of this appendix)
450 g max.
Weight
Note 1. All points on the same Unit must use the same input range except for the 1 to 5-V and 4 to 20-mA ranges,
which can be specified by point.
2. Operation in ranges beyond the maximum input signals will damage the Unit. Operate within the ranges
listed above.
3. The accuracy is given for full scale (4,000). For example, an accuracy of ꢀ5% means a maximum error
of 20 (BCD).
4. This is the time it takes for a full range input signal to be converted and to be stored in the memory of the
Unit. It takes at least one scan before the converted data is read by the CPU.
49
Specifications
Appendix B
Input Specifications
Converted output data
(Top: Binary
Parentheses: BCD)
0 to 10 V
1 to 5 v/4 to 20 mA
0 V
1 V
(4 mA)
5 V
(20 mA)
10 V
Input signal
Note 1. All points on the same Unit must use the same input range except for the 1 to 5-V and 4 to 20-mA ranges,
which can be specified by point. Refer to 2-1-2 Switch Settings for setting methods.
2. The maximum or minimum output value will be maintained if the input signals goes beyond the maxi-
mum (10 V, 5V, or 20 mA) or minimum (0 V, 1V, or 4 mA).
50
Specifications
Appendix B
C200H-DA001 Analog Output Unit
All general specifications of the C200H-DA001 Analog Output Unit conform to those of the C Series.
Item
Specifications
Number of analog outputs
Output signal range (note 1)
2
Voltage outputs 1 to 5 V
0 to 10 V
Current outputs 4 to 20 mA
Voltage output: 0.5 Ω
Max. output impedance
Max. output current
Max. load resistance
Resolution
Voltage output: 15 mA
Current output: 400 Ω
1/4095 max. (full scale)
12-bit binary (0000 to 0FFF)
Set data
Accuracy (note 2)
±0.5% max. (full scale, including linearity error)
±1.0% max. (full scale, including linearity error)
25°C
0° to 55°C
2.5 ms max./point
Conversion time (note 3)
Isolation
Between output terminals and PC: photocoupler
Between output terminals: none
External connections
Power consumption
Dimensions
19-pin terminal block (removable)
650 mA max. at 5 VDC
34.5 x 130 x 128 (W x H x D) mm (see last page of this appendix)
450 g max.
Weight
Note 1. All points on the same Unit must use the same output range except for the 1 to 5-V and 4 to 20-mA
ranges, which can be specified by point.
2. The accuracy is given for full scale (4,095). For example, an accuracy of ±5% means a maximum error of
20 (BCD).
3. This is the time from after the data has been written to the Unit until an analog output appears. The output
data will not be correct if output data is rewritten faster than it can be output.
51
Specifications
Appendix B
Output Specifications
Output signal
10 V
0 to 10 V
1 to 5 V/4 to 20 mA
5 V
(20 mA)
1 V
(4 mA)
0 V
(Top: Binary
Parentheses: BCD)
Note All points on the same Unit must use the same output range except for the 1 to 5-V and 4 to 20-mA ranges,
which can be specified by point. Refer to 3-1-2 Switch Settings for setting methods.
Dimensions (Unit: mm)
The dimensions are the same for both the C200H-AD001 and C200H-DA001.
52
Appendix C
Data Memory Coding Sheets
C200H-AD001 Analog Input Unit
C200H-AD001
Unit number:
DM1_00 to DM1_11
Usage
DM address Data
(rightmost
digits)
00
01
02
03
04
05
06
07
08
09
10
11
Scaling lower limit for input 1
Scaling upper limit for input 1
Scaling lower limit for input 2
Scaling upper limit for input 2
Scaling lower limit for input 3
Scaling upper limit for input 3
Scaling lower limit for input 3
Scaling upper limit for input 4
Number of terms for mean value for input 1
Number of terms for mean value for input 2
Number of terms for mean value for input 3
Number of terms for mean value for input 4
53
Data Memory Coding Sheets
Appendix C
C200H-DA001 Analog Output Unit
C200H-DA001
Unit number:
DM1_00 to DM1_04
Usage
DM address Data
(rightmost
digits)
00
01
02
03
04
Lower output limit
Upper output limit
Lower alarm limit
Upper alarm limit
Alarm deadband
54
Index
number of inputs, setting, 10
A
A/D conversion data, 16
O
analog input vs. digital output, 19
output limit alarm function, 41
output limit function, 39
B-C
output signal range, setting, 32, 39
outputs, signal range, setting, 32, 39
block diagram
C200H-AD001, 9
C200H-DA001, 31
configurations, system, 4
considerations, 5
P
peak value function, 22
precautions, xi, 2, 5
applications, xiii
general, xii
operating environment, xiii
safety, xii
D-F
data memory coding sheet, 53
data reading mode, setting, 11
digital output vs. analog input, 39
dimensions, 52
programming examples
C200H-AD001, 24
C200H-DA001, 43
disconnection detection, 23
pulse output function, 42
pulse output line, setting, 33
pulse outputs, setting, 33
DM area allocation
C200H-AD001, 15, 17
C200H-DA001, 36, 38
DM area contents, C200H-AD001, 18
field devices, 3
S
scaling function, 20
Slave Racks, 5
I
specifications, 49
square root function, 19
indicators
C200H-AD001, 8
C200H-DA001, 30
switches
C200H-AD001, 10
C200H-DA001, 32
input disconnection detection function, 23
input signal range, setting, 11, 19
inputs
number, setting, 10
signal range, setting, 11, 19
T-W
IR area allocation
C200H-AD001, 15, 16
C200H-DA001, 36, 37
troubleshooting
C200H-AD001, 26
C200H-DA001, 45
IR area contents
C200H-AD001, 16
C200H-DA001, 37
unit number, setting, Analog Input Unit, 10
unit numbers, setting
C200H-AD001, 10
C200H-DA001, 32
Units, number, 5
M-N
wiring
C200H-AD001, 11
C200H-DA001, 33
mean function, 21
models, 47
55
Revision History
A manual revision code appears as a suffix to the catalog number on the front cover of the manual.
Cat. No. W127-E1-4
Revision code
The following table outlines the changes made to the manual during each revision. Page numbers refer to the
previous version.
Revision code
Date
Revised content
3
June 1990
Correction of notation and format. Resource document 29-121D.
Page 16: In the Block Diagram, all “inputs” have been corrected to “outputs.”
Page 25: The last line of the second paragraph has been corrected.
Address change
3A
November 1993
3B
3C
4
May 1995
September 1995
February 2001
The manual was restructured, expanded, and mostly rewritten.
The insert providing precautionary information was moved to page 35. A Precau-
tions section was added. In addition, the following changes were made.
Pages 4, 5, 15, 18, 24, 36: Changes made to model numbers.
Pages 12, 13: Note added.
57
相关型号:
©2020 ICPDF网 联系我们和版权申明