Check, with the following list, that your package is complete. If you discover damaged
or missing items, contact your retailer.
Product Configuration List
- Module …1
- First Step Guide …1
- CD-ROM [F&eIT Series Setup Disk] *1…1
- Interface connector plugs …2
- Warranty Certificate …1
- Serial number label …1
*1 The CD-ROM contains various software and User’s Manual (this manual)
RUN STATUS
6
7
5
040
Device
4
1
ID
3
2
+
CH0
AG
+
CH1
AG
+
CH2
AG
+
CH3
AG
+
CH4
AG
+
CH5
AG
+
CH6
AG
+
CH7
AG
ADI12-8
ADI12-8(FIT)GY
Interface connector plugsModule
Warr ant y
Certificate
Warranty Certificate
First step guide
XXXXXXXXXXXXX
XXXXXXXXXXXXX
Serial number label
CD-ROM
[F&eIT Series Setup Disk]
i
Copyright
Copyright 2001 CONTEC CO., LTD. ALL RIGHTS RESERVED
No part of this document may be copied or reproduced in any form by any means
without prior written consent of CONTEC CO., LTD.
CONTEC CO., LTD. makes no commitment to update or keep current the information
contained in this document.
The information in this document is subject to change without notice.
All relevant issues have been considered in the preparation of this document. Should
you notice an omission or any questionable item in this document, please feel free to
notify CONTEC CO., LTD.
Regardless of the foregoing statement, CONTEC assumes no responsibility for any
errors that may appear in this document nor for results obtained by the user as a result of
using this product.
Trademarks
F&eIT is a registered trademark or trademark of CONTEC CO., LTD. Other company
and product names that are referred to in this manual are generally trademarks or
registered trade trademark.
ii
ADI12-8(FIT)GY
Table of Contents
Check Your Package ..........................................................i
Congratulations on your recent purchase of an Insulator Digital Input Module.
By converting external analog voltage signals into digital data, the ADI12-8(FIT)GY
can process them inside the F&eIT series controller module < CPU-CAxx(FIT)GYGY,
CPU-SBxx(FIT)GY etc >.
The insulation between external signals and the Controller Module permits the use of
the Controller Module without compromising the communications features of the latter.
Please read this manual carefully to create application programs and configure the
system, such as setting the switches and connecting it to external devices.
Features
- The input range is common to different channels, and can be selected from four input
ranges, including unipolar and bipolar ranges.
- The ability to accommodate differential input permits the accurate measurement of
voltage values over long distances from the signal source and even under a
considerable potential difference.
- A rotary switch allows you to set device IDs to help you keep track of device
numbers.
- The system incorporates a screwless connector plug that allows you to easily attach
and detach wires without using any special tools.
- Similar to other F&eIT series products, the system, in the m odule itsel f, incor porates
a 35-mm DIN rail mounting mechanism as a standard item. A connection to a
controller module can be effected on a lateral, stack basis in a unique configuration,
which permits a simple, smart system configuration without the need for a backplane
board.
ADI12-8(FIT)GY
1
Introduction
g
Functions and control method by controller connected
The ADI12-8(FIT)GY can be connected to a variety of controllers.
Micro Controller Unit : CPU-SBxx(FIT)GY
I/O Controller Module : CPU-CAxx(FIT)GY
Monitoring & Control Server Unit : SVR-MMF2(FIT)
Monitoring & Control Server Unit : SVR-MMF(FIT)GY
Isolated Analog Input Module for USB : ADI12-8(USB)GY
I/O Controller Module with USB : CPU-CA10(USB)GY
The functions and control of the ADI12-8(FIT)GY vary with t he controller to which the
ADI12-8(FIT)GY is connected.
Functions available with each controller connected
Y
Y
G
)
T
I
F
(
x
x
A
B
C
S
-
U
U
P
P
C
Software input range setting
A/D conversion with software command
Continuous A/D conversion based on internal samplin
*1 For the function available, refer to the reference manual for the SVR-MMF2(FIT),
SVR-MMF(FIT)GY.
*2 Sampling timer setting: 10 to 1,073,741,824 μsec.
*3 Using the sampling timer built in the ADI12-8(USB)GY.
The setting range is from 1000 to 1,073,741,000 μsec.
C
οοοο
οοοο
o*2o*3
ο
)
G
)
T
I
T
I
F
F
(
x
x
R
V
S
F
2(
(
F
F
M
M
M
M
-
-
R
V
S
*1*1
*1*1
2
ADI12-8(FIT)GY
Y
G
)
T
I
S
U
8(
-
2
1
I
D
Y
G
)
Y
B
G
)
S
B
U
(
10
A
C
-
U
P
C
Introduction
Control method by controller connected
Y
Control using the I/O address map
Control using the memory address map
FIT Protocol
Control via the Windows driver *
Control over the web
* The API-SBP(W32) is included in the development kit
DTK-SBxx(FIT)GY; the other drivers are bundled with each controller.
API-CAP(W32)
API-SBP(W32)
API-USBP(WDM)
Y
G
G
)
)
T
T
I
I
F
F
(
(
x
x
x
B
S
-
U
P
C
C
F
x
M
A
C
M
-
-
U
R
P
V
S
ο
ο
ο
ο
ο
οο
)
T
I
F
2(
Y
G
)
T
I
F
(
F
M
M
-
R
V
S
οο
Control using the I/O address map
When connected to the CPU-SBxx(FIT)GY, the ADI12-8(FIT)GY can receive I/O
instructions directly from the controller module. For details, see Chapter 4 “Using the
I/O Address Map”.
Control using the memory addre ss map
When connected to the CPU-CAxx(FIT)GY, the ADI12-8(FIT)GY can be accessed
from the host computer over the network.
The ADI12-8(FIT)GY is assigned with its device ID in the memory managed by the
controller module. The application running on the host computer controls the module
by reading/writing the memory managed by the controller module. For details, see
Chapter 5 “Using the Memory Address Map”.
Y
G
)
Y
B
G
)
S
B
U
(
S
U
10
8(
A
C
2
-
1
I
U
D
P
C
ADI12-8(FIT)GY
Control via the Windows driver
For the functions and settings available when using the Windows driver, refer to the
reference manual and online help for each module.
Control over the we b
You can monitor collected data and manage the log over the web. You can use your
familiar browser to easily make various settings. For details, refer to the reference
manual for the SVR-MMF2(FIT), SVR-MMF(FIT)GY.
3
Introduction
Limited One-Year Warranty
CONTEC products are warranted by CONTEC CO., LTD. to be free from defects in
material and workmanship for up to one year from the date of purchase by the original
purchaser.
Repair will be free of charge only when this product is returned freight prepaid with a
copy of the original invoice and a Return Merchandise Authorization to the distributor
or the CONTEC group office, from which it was purchased.
This warranty is not applicable for scratches or normal wear, but only for the electronic
circuitry and original products. The warranty is not applicable if the device has been
tampered with or damaged through abuse, mistreatment, neglect, or unreasonable use,
or if the original invoice is not included, in which case repairs will be considered
beyond the warranty policy.
How to Obtain Service
For replacement or repair, return the device freight prepaid, with a copy of the original
invoice. Please obtain a Return Merchandise Authorization Number (RMA) from the
CONTEC group office where you purchased before returning any product.
* No product will be accepted by CONTEC group without the RMA number.
Liability
The obligation of the warrantor is solely t o repair or replace t he product. In no e vent will the
warrantor be liable for any incide ntal or conse quent ial dam ages due to suc h defect or
consequences that arise from inexperien ced usa ge, mi suse, or mal funct ion of this de vice.
4
ADI12-8(FIT)GY
Introduction
Handling Precautions
Take the following precautions when handling this module.
-Do not modify the module. CONTEC will bear no responsibility for any pro blems, etc.,
resulting from modifying this module.
- Do not use or store the equipment in a hot or cold place, or in a place that is subject to
severe temperature changes. (Operating temperature range: 0 - 50°C)
- Do not use or store the equipment in a place subject to direct sunlight or near a heating
device, such as a stove.
- Do not use or store the equipment in a dusty or humid place. (Operating humidity
range: 10 - 90%RH, No condensation)
- As this product contains precision electronic components, do not use or store in
environments subject to shock or vibration.
- Do not use or store the product near equipment generating a strong magnetic field or
radio waves.
- If you notice any strange odor or overheating, please unplug the power cord
immediately.
- In the event of an abnormal condition or malfunction, please consult the dealer from
whom the equipment was purchased.
- To avoid electric shock, please do not touch the system with a wet hand.
- Do not open the module casing. CONTEC will disclaim any responsibility for
equipment whose casing has been opened.
- To prevent damage, please do not subject the module to impact or bend it.
- To prevent contact malfunction, please do not touch the metallic pins on the external
module connector.
- The module contains switches that need to be properly set. Before using the module,
please check its switch settings.
- To avoid malfunction, please do not change the module switch settings in an
unauthorized manner.
- "Do not operate the device module when the power for the Controller Module is on.
To avoid malfunction, please be sure to turn off the power for the Controller
Module".
- If you use this product in a noisy environment, attach ferrite cores to the IO cable to
stabilize the operation.
ADI12-8(FIT)GY
5
Introduction
FCC PART 15Class A Notice
NOTE
This equipment has been tested and found to comply with the limits for a Class A digital
device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable
protection against harmful interference when the equipment is operated in commercial
environment.
This equipment generates, uses, and can radiate radio frequency energy and, if not installed
and used in accordance with the instruction manual, may cause harmful interference to radio
communications. Operation of this equipment in a residential area is likely to cause harmful
interference at his own expense.
WARNING TO USER
Change or modifications not expressly approved the manufacturer can void the user's
authority to operate this equipment.
About the Manual
This manual consists of the following chapters:
Chapter 1 Introduction
Chapter 2 Module Nomenclature and Settings
Explains the nomenclature of the components of the I/O Controller
Module and their operations.
Chapter 3 Connecting to an External Device
Explains interface connectors and external I/O circuits.
Chapter 4 Functioning as a CPU-SBxx(FIT)GY Module
Chapter 5 Functioning as a CPU-CAxx(FIT)GY Module
Chapter 6 System Reference
Explains I/O port bit assignements and the definitions of the bits whe n
the Module is used as a
CPU-SBxx(FIT)GY module.
Explains the module settings area, the information area, and the I/O
data area when the Module is used as a CPU-CAxx(FIT)GY module.
Explains module specifications and circuit diagrams.
6
ADI12-8(FIT)GY
Module Nomenclature and Settings
2. Module Nomenclature and Settings
Nomenclature of Module Components
Figure 2.1. shows the names of m odule c omponent s. In t he figure , the indicate d switch
settings represent factory settings.
LED Indicator
Device ID
Interface connector
RUNSTATUS
6
7
5
040
Device
4
1
3
ID
2
CH0
CH1
CH2
CH3
CH4
CH5
CH6
CH7
ADI12-8
+
AG
+
AG
+
AG
+
AG
+
AG
+
AG
+
AG
+
AG
Figure 2.1. Names of module components
ADI12-8(FIT)GY
7
Module Nomenclature and Settings
Setting a Device ID
The controller module distinguishes and keeps track of the modules that are connected
to it by assigning device IDs to them. Each module, therefore, should be assigned a
unique ID.
A Device ID can be assigned in a 0 - 7 range, so that a maximum of eight modules can
be distinguished.
To connect the ADI12-8(FIT)GY to the ADI12-8(USB)GY, assign a device ID between
1 and 3.
The factory setting for the Device ID is [0].
Setup Method
A device ID can be set by turning the rotary switch on the device face.
To set a device ID, turn the switch knob.
6
7
5
4
1
3
2
040
Factory settings:
(Device ID = 0)
Device
ID
Figure 2.2. Setting a Device ID
LED Indicator
RUN: Indicates that the ADI12-8(FIT)GY can be controlled from the
Controller Module. (green)
STATUS: This light comes on when an A/D conversion error occurs. (red)
8
ADI12-8(FIT)GY
Connecting to an External Device
3. Connecting to an External Device
Interface Connector
How to Connect an Interface Connector
When connecting the Module to an external device, you can use the supplied connector
plug. When wiring the Module, strip of f appr oxim ately 7 - 8 mm of the coveri ng for the
cable, and insert the bare wire by pressing the orange button on the connector plug.
Releasing the orange button after the wire is inserted to fix the cable. Compatible wires
are AWG 28 - 20.
Note!
RUNSTATUS
5
Device
4
3
ID
CH0
CH1
CH2
CH3
CH4
CH5
CH6
CH7
ADI12-8
Press this section to insert the
6
7
040
wire material.
1
2
+
- Connector used:
AG
+
2.5-mm pitch, 12-pin type, 4.0A nominal current MC0.5/12-G-2.5
AG
connector (made by Phoenix Contact Corp.)
+
AG
- Applicable plug:
+
Front-operable spring gauge type FK-MC 0,5/12-ST-2,5 plug
AG
(made by Phoenix Contact Corp.)
+
AG
Applicable wire: AWG 28 - 20
+
AG
+
AG
+
AG
7 - 8mm
Figure 3.1. Connecting an interface connector and connectors that can be
used
Removing the connector plug by grasping the cable can break the wire.
ADI12-8(FIT)GY
9
Connecting to an External Device
Signal Layout on the Interface Connector
The Module can be connected to an external device using a 12-pin (1 group) connector
that is provided on the Module face.
CH0
CH1
CH2
CH3
CH4
CH5
CH6
CH7
12
CH0 [+]
11
CH0 [
10
AG
9
CH1 [+]
8
CH1 [
7
AG
6
CH2 [+]
5
CH2 [
4
AG
3
CH3 [+]
2
CH3 [
1
AG
12
CH4 [+]
11
CH4 [
10
AG
9
CH5 [+]
8
CH5 [
7
AG
6
CH6 [+]
5
CH6 [
4
AG
3
CH7 [+]
2
CH7 [
1
AG
Analog Input 0ch [+]
Analog Input 0ch [
-
]
Analog Ground
Analog Input 1ch [+]
Analog Input 1ch [
-
]
Analog Ground
Analog Input 2ch [+]
Analog Input 2ch [
-
]
Analog Ground
Analog Input 3ch [+]
Analog Input 3ch [
-
]
Analog Ground
Analog Input 4ch [+]
Analog Input 4ch [
-
]
Analog Ground
Analog Input 5ch [+]
Analog Input 5ch [
-
]
Analog Ground
Analog Input 6ch [+]
Analog Input 6ch [
-
]
Analog Ground
Analog Input 7ch [+]
Analog Input 7ch [
-
]
Analog Ground
-
]
-
]
-
]
-
]
-
]
-
]
-
]
-
]
Figure 3.2. Signal layout on the interface connector
10
ADI12-8(FIT)GY
Connecting to an External Device
Example of connecting a current input
To measur e a current using t he ADI12-8(FI T)GY, you need to convert the current into a
voltage using a resistor.
By connecting a 250Ω resistor between the [+] and [-] inputs, the ADI12-8(FIT)GY can
measure currents from a 0 - 20mA current output de vice in a voltage input range fr om 0
to 5 V. Note that, if the inserted resistor has a considerable error, it adversely affects
converted data, preventing accurate measurement. You should therefore use a precision
resistor (±0.1 %) on the connector side.
Note also that, when there are more than one current source, no potential difference
must exist between their respective GND points.
The ADI12-8(FIT)GY is insulated between its internal CPU and the e xternal de vice but
not between the analog input channels and thus uses a common analog ground.
If an affecting potential difference exists between the channels, insert an insulator such
as an insulating transducer between the channels.
Module
Analog Input 0[+]...7[+]
Analog Input 0[-]...7[-]
Analog Ground
Figure 3.5. Current input connection
Notes!
- Converted data is undefined with no analog ground connected.
- If the connection cable is affected by noise, the analog input can be inaccurate.
- The analog signal input to the [+] and [-] inputs must not exceed the maximum
- Converted data is undefined when either of the [+] and [-] input terminals is left
Connector
CableSignal Source
I
Route the connection cable apart from noise sources.
input voltage with reference to the analog ground of the module. Exceeding the
input voltage can damage the module.
unconnected. Connect both of the [+] and [-] input terminals of the channel not
connected to the signal source to the analog ground.
ADI12-8(FIT)GY
11
Connecting to an External Device
12
ADI12-8(FIT)GY
Using the I/O Address Map
4. Using the I/O Address Map
Starting I/O Address
When connected to a CPU-SBxx(FIT)GY, the ADI12-8(FIT)GY can directly receive
I/O commands from the controller module. Depending on how the Device ID is set, the
I/O addresses indicated below will be used exclusively by the ADI12-8(FIT)GY.
Because the address bus on which the I/O address space is specified is not fully decoded
in continued 16 bits, four starting I/O addresses exist in each Device ID.
If the Device ID is set to 0h, one of the four addresses (0800h, 0840h, 08 80h, or 08C0h)
will be used as a starting I/O address.
*ADR is the starting I/O address for the ADI12-8(FIT)GY.
16
ADI12-8(FIT)GY
Using the I/O Address Map
Interrupt Status
This is a common port on which the interrupt status requested by the Module can be
verified. Although in this example values are assigned centered on the status
concerning interrupt levels, information on interrupt sources varies from module to
module.
Starting I/O
address
input
+2
(02h)
D7D6D5D4D3D2D1D0
Interrupt Status
EnableStatus000IRQ9IRQ7IRQ5
Figure 4.4. Interrupt status
- Enable [D7]:
This verifies the interrupt source enabled/disabled status.
The value "1" indicates that a hardware interrupt on the controller m odule is enabled.
This bit indicates an interrupt request status in the module.
When IRQ5, IRQ7, or IRQ9 is "1", this bit will also be "1".
- IRQ* [D2 - D0]:
These bits allow you to verify the interrupt level that is currently set. The current
interrupt level is indicated as "1".
Following are examples of the initialization that is performed in high-level languages:
- Enable [D7]:
This bit enables an interrupt source.
- IRQ* [D2 - D0]:
The interrupt level used by the module is set in these bits.
Following are examples of initialization settings that can be effected in high-level
languages:
The interrupt level to be used is assigned to IRQ5.
Microsoft C
Microsoft QBASIC
outp( ADR+2, 0x81 ); OUT ADR+2, &H81
18
ADI12-8(FIT)GY
Using the I/O Address Map
Overview of the Sampling Function
When a start-sampling command is issued, analog input signals are converted into
12-bit digital data at a maximum rate of 10μsec/ch + 20μsec under pre-set sampling
conditions.
Two sampling modes are supported:
- Software mode: Stores data from a channel specified by a data-fetch
command into an internal read buffer.
- Clock mode: Stores data from a specified channel into an internal read
buffer in synchronization with a programmable timer.
Two channel specification methods are supported:
- Single channel: Can read data from a specified channel.
- Multi-channel: Can read data from multiple channel, beginning with channel
sampling start
0, up to a specified channel.
input channel
a. Software mode - Single channel mode
sampling start
input channel
b. Software mode - Multi-channel mode
sampling start
sampling clock
input channel
c. Clock mode - Single channel mode
sampling start
sampling clock
input channel
d. Clock mode - Multi-channel mode
3ch1ch
3ch2ch1ch0ch3ch2ch1ch0ch
1ch1ch
Figure 4.6. Basic analog input operation
3ch2ch1ch0ch3ch2ch1ch0ch
ADI12-8(FIT)GY
19
Using the I/O Address Map
The sampling operation can be checked by monitoring the
status.
An interrupt can also be generated as the status changes.
Figure 4.7. illustrates the analog input procedure.
The initialization must be performed prior to any sampling.
In the next step, sampling conditions (operating mode, input
range, and so forth) must be set.
In the final step, the start command is issued, and the
conversion data is input.
Initialization
This step initializes the analog input function.
Figure 4.7. Analog input
procedure
This command clears all settings and status, and returns the module to the "initialized
state", which is the same as when the power is turned on and the RESET button is
pressed.
During the initialization, the control port assumes the following state:
Starting I/O
address
output
+24
(18h)
D7D6D5D4D3D2D1D0
Command
00000000
Start
Initialize
Set sampling
conditions
Set input range
Start sampling
Input data
End
Figure 4.8. Initialization
Following are examples of the initialization that is effected in high-level languages:
Microsoft C
Microsoft QBASIC
outp( ADR+24, 0x0 ); OUT ADR+24, &H0
20
ADI12-8(FIT)GY
Using the I/O Address Map
Setting sampling conditions
This step sets sampling conditions.
In terms of procedures, a sampling condition setup command is issued, and then
settings data is output.
Starting I/O
address
output
+24
(18h)
output
+28
(1Ch)
D7
00000010
D7D6D5D4D3D2D1D0
00000
D6D5D4D3D2D1D0
Figure 4.9. Setting sampling conditions
- Channel mode [D2]:
Set the mode in which the sampling is to be performed.
Select either the "single-channel mode", in which only one channel is specified, or
the "multi-channel mode", in which two or more channels are specified.
Channel Mode [0]: Single *Initialized state
[1]: Multi
- Sampling clock [D1]:
This option should be set when the clock mode is selected in the specification of a
sampling mode.
Sampling Clock [0]: Internal Clock * Initialized state
[1]: Reserved
- Sampling mode [D0]:
This step sets the conversion operation.
Specify either the "software mode", in which a specified channel is sampled once, or
the "clock mode", in which sampling is performed periodically according to clock
signals.
Sampling Mode [0]: Software Command * Initialized state
[1]: Clock
Command
Sampling Setting
Channel
Mode
Sampling
Clock
Sampling
Mode
ADI12-8(FIT)GY
Following are examples in which sampling conditions are specified in high-level
languages:
Microsoft C
outp( ADR+24, 0x2 ); OUT ADR+24, &H2
outp( ADR+28, ConditionData ); OUT ADR+28, ConditionData
Microsoft QBASIC
21
Using the I/O Address Map
Input range-setting
The input range refers to the voltage range in which analog signals are input.
All channels are set on a common basis, and the input data is converted into digital
signals with a 12-bit resolution.
The input range-setting control port assumes the following state:
Starting I/O
address
output
+24
(18h)
output
+28
(1Ch)
D7
00000011
D7D6D5D4D3D2D1D0
Range
Data7
D6D5D4D3D2D1D0
Range
Data6
Range
Data5
Command
Range Setting
Range
Data4
Range
Data3
Range
Data2
Figure 4.10. Setting an input range
Table 4.3. Input range and settings data
RangeInput range
00h±10 V
01h±5 V
02h - 7FhNot decied
80h0 - 10 V
81h0 - 5 V
82h and aboveNot decied
Following are examples in which an input range is set in high-level languages:
The input range is se t to 0 - 10V:
Microsoft C
outp( ADR+24, 0x3 ); OUT ADR+24, &H3
outp( ADR+28, 0x80 ); OUT ADR+28, &H80
Microsoft QBASIC
Range
Data1
Range
Data0
22
ADI12-8(FIT)GY
Using the I/O Address Map
k
Setting an Internal Sampling Clock
When either the "clock mode" or the "internal sampling clock" is selected as a sampling
condition, this option allows you to set a sampling cycle (clock data). In the initial state,
the clock data is undefined. Clock data must be set when an internal sampling clock is
used.
Clock data is set in 250-nsec increments. The allowable range is
10, 000nsec - 1, 0 73, 74 1, 82 4, 00 0n se c ( ap pr ox im a tel y 1 7 m in ut es an d 5 4 seconds), which
corresponds to the setting data 39 - 4, 294, 967, 295.
The relationship between a clock cycle and setting data can be expressed as follows:
Clock data
=
250
-1
Sampling clock
where the sampling clock is specified in units of nsec.
Sampling clock values must satisfy the following expression:
Sampling cloc
10000nsec × Number of specified channels +
≥
(10μsec)
20μsec
Sampling in accurate cycles cannot be performed if the speci fied value is short er than the
conversion time for a specified number of channels.
The control port for setting an internal sampling clock assumes the following state:
Starting I/O
address
output
+24
(18h)
output
+28
(1Ch)
+29
(1Dh)
+30
(1Eh)
+31
(1Fh)
D7
00000100
D7D6D5D4D3D2D1D0
Timer
Data07
Timer
Data15
Timer
Data23
Timer
Data31
D6D5D4D3D2D1D0
Timer
Data06
Timer
Data14
Timer
Data22
Timer
Data30
Timer
Data05
Timer
Data13
Timer
Data21
Timer
Data29
Command
Timer Data 0
Timer
Data04
Timer Data 1
Timer
Data12
Timer Data 2
Timer
Data20
Timer Data 3
Timer
Data28
Timer
Data03
Timer
Data11
Timer
Data19
Timer
Data27
Timer
Data02
Timer
Data10
Timer
Data18
Timer
Data26
Timer
Data01
Timer
Data09
Timer
Data17
Timer
Data25
Timer
Data00
Timer
Data08
Timer
Data16
Timer
Data24
Figure 4.11. Setting an internal sampling clock
Following are examples in which an internal sampling clock is set in high-level
languages:
ADI12-8(FIT)GY
Microsoft C
outp( ADR+24, 0x4 ); OUT ADR+24, &H4
outp( ADR+28, ClockData0 ); OUT ADR+28, ClockData0
outp( ADR+29, ClockData1 ); OUT ADR+29, ClockData1
outp( ADR+30, ClockData2 ); OUT ADR+30, ClockData2
outp( ADR+31, ClockData3 ); OUT ADR+31, ClockData3
Microsoft QBASIC
23
Using the I/O Address Map
Starting a sampling process
If the sampling mode is the single-channel mode, specify the channel through which data
is to be converted.
In the case of the multi-channel mode, specify the upper limit (1 or greater) on the
channels through which data is to be converted.
Example: Specifying "4ch" results in the sampling of channels 0 - 4ch.
The control port for commencing a sampling process assumes the following state:
Starting I/O
address
output
+18
(12h)
D7D6D5D4D3D2D1D0
N/AN/AN/AN/AN/A
Channel Data
Channel
Data2
Channel
Data1
Channel
Data0
Figure 4.12. Starting the sampling process
If the sampling mode is the software command, the specified channel is sampled only
once.
In the case of an internal sampling clock, the internal sampling clock starts simultaneously
with the commencement of the first sampling.
If a sampling process is started with the sampling mode set to the clock mode, and then the
sampling process is restarted, any conversion data that has accumulated up to that point
and the analog input status are reset, and a new sampling operation is started.
The sampling stops when the module initialization command or the sampling
condition-setting command is executed.
Following are examples in which a sampling process is started in high-level languages:
Microsoft C
Microsoft QBASIC
outp( ADR+18, 0x4 ); OUT ADR+18, &H4
24
ADI12-8(FIT)GY
Using the I/O Address Map
Input of conversion data
Conversion data should be input only after a verification is made that conversio n data is
stored in a register.
Conversion data cannot be input from a register during a
Start
conversion operation.
The figure on the right shows procedur es by which c onversion
Analog input status
data is input.
Conversion data is in the offset binary form. The relationship
between conversion data and input voltages is indicated by the
following expression:
Data
(Voltage + Offset )
=
Span
×2
12
Check DRE
status?
Yes
Input data
End
Table 4.4. Input range
Input range Offset Span Input range Offset Span
-10V - +10V10200V - +10V010
-5V - +5V5100V - +5V05
Figure 4.13. Conversion
data input procedures
Table 4.5. Example of conversion data for a ±10V range
Input voltage 12-bit conversion data
(+/-10V range)Offset binary
+9.995V0FFF h
::
0.005V0801 h
0.000V0800 h
-0.005V07FF h
::
-10.000V0000 h
ADI12-8(FIT)GY
25
Using the I/O Address Map
The control port by which conversion data is input assumes the following state:
Starting I/O
address
input
+22
(16h)
input
+16
(10h)
+17
(11h)
D7
0
D7D6D5D4D3D2D1D0
Conversion
Data7
0000
D6D5D4D3D2D1D0
00
Clock Error Clock Input
Conversion
Data6
Conversion
Data5
Interrupt Status
SamplingSampling
Analog Input Data (Lower)
Conversion
Analog Input Data (Upper)
Data4
Conversion
Data3
Conversion
Data11
(MSB)
Data Over
Write Err or
Conversion
Data2
Conversion
Data10
1
Conversion
Data1
Conversion
Data9
Data Read
Enable
Conversion
(LSB)
Data0
Conversion
Data8
Figure 4.14. Input control port for conversion data
Details on analog input and the interrupt status will be described in the following
section.
Following are examples in which a sampling process is started in high-level lan guages:
Following are examples in which conversion data is input in high-level languages.
The analog input status shows the status of an A/D conversion operation.
Starting I/O
address
input
+22
(16h)
D7D6D5D4D3D2D1D0
00
Sampling
Clock Er ror
Figure 4.15. Analog input status
- Data Read Enabled Status (DRE) [D0]:
This indicates that conversion data is available that can be read.
If the c hannel m o d e is the s ingle-c h annel mo d e, when a ny readable conversion data is
stored, this status is set to [1]. In the case of the multi-channel mode, this status i s set
to [1] when conversion data equal to the number of specified channels is available.
When readable conversion data is depleted, this status is cleared. *
- Data Overwrite Error Status (DOWE) [D2]:
When this status is set to [1], it indicates that the data input interval is greater than the
sampling clock interval during a clock-mode operation, and therefore the readable
conversion data is being overwritten. If this status is detected, you need to either
increase the sampling clock interval or reduce the READ processing time.
This status is cleared when there is no longer data to be overwritten.*
Sampling Busy
Data Read Enable
Data Over Write Error
Read Status
Data Read
(1)
(1)
a. Normal timing
Analog Input Status
Sampling
Clock Input
(3)(2)
(2)
(3)
0
Data Over
Write Error
0
Data Read
Enable
ADI12-8(FIT)GY
Lost dataOverwritten data
Sampling Busy
Data Read Enable
Data Over Write Error
Read Status
Data Read
(2)
(1)
(1)
b. With "Data Overwrite Error" set
(4)(5)
(3)
(5)(3)
Figure 4.16. Set/reset timing for the data overwrite error status
- Sampling Clock Input Status (SCI) [D4]:
This status is set to [1] when a sampling clock is entered after a start-sampling
command is issued in the clock mode. The status is cleared when it is reset. *
27
Using the I/O Address Map
- Sampling Clock Error Status (SCE) [D5]:
This status is set to [1] when a sampling clock in entered duri ng a sam pling operation
in the clock mode. The status is cleared when it is reset, and any sampling clocks that
are entered during the sampling operation will be ignored. *
* The various status indicators are also cleared to [0] under the following conditions:
-When the initialization command is issued
-When a sampling-condition-setting command is issued
-When a start-sampling command is issued (except when the status is the "busy
sampling status")
Details on Resetting the Status
This step clears the analog input status.
Starting I/O
address
output
+22
(16h)
D7D6D5D4D3D2D1D0
00
Sampling
Clock Error
Status Reset
Sampling
Clock Input
Data Over
00
Write Error
Figure 4.17. Status reset
- Data Read Error Status Clear (DRE) [D0]:
Setting the value [1] clears the data read error status.
- Data Over Write Error Status Clear (DOWE) [D2]:
Setting the value [1] clears the data over write error status.
- Sampling Clock Input Status Clear (SCI) [D4]:
Setting the value [1] clears the sampling clock input status.
- Sampling Clock Error Status Clear (SCE) [D5]:
Setting the value [1] clears the sampling clock error status.
Interrupt Function
This option allows you to use the hardware interrupt function. For interrupt levels, a
level that is set by the Module will be used. When using the interrupt function, you can
pre-select one of the following status conditions as an interrupt source (multiple
settings allowed):
Table 4.6. Interrupt function
Status Explanation
Data Read EnableData Read Enable status set
Data Overwrite Error Data Overwrite Error status set
Sampling Clock Input Sampling clock is input (internally)
Sampling Clock Error Sampling Clock Error status set
* More on this status later
An interrupt request sig nal is generated simultaneously w ith t he setting of the status that is
specified as an interrupt source. If two or more interrupt sources are specified, you can
specify a specific interrupt signal generation source by enteri ng a stat us in the inter ru pt
handler.
28
ADI12-8(FIT)GY
Using the I/O Address Map
Setting an Interrupt Source
This option allows you to specify an interrupt signal generation source.
The control port that sets an interrupt source assumes the following state:
Starting I/O
address
output
+24
(18h)
output
+28
(1Ch)
D7
00000001
D7D6D5D4D3D2D1D0
1
D6D5D4D3D2D1D0
Sampling
1
Clock Error
Command
Interrupt Source
Sampling
Clock Input
Data Over
11
Write Error
Data Read
Enable
Figure 4.18. Interrupt sources
When the value [1] is output as an interrupt source, the control port is masked; when the
value [0] is output, the port is set as an interrupt source.
[1] Masked * Initialized state
[0] Interrupt Request Enable
Following are examples in which a timer cycle is set in high-level languages:
Microsoft C
outp( ADR+24, 0x1 ); OUT ADR+24, &H1
outp( ADR+28, InterruptFactor ); OUT ADR+28,InterruptFactor
Microsoft QBASIC
ADI12-8(FIT)GY
29
Using the I/O Address Map
List of Commands
Following is a list of ADI12-8(FIT)GY commands that are issued to "Output port +24":
Table 4.7. List of commands
FunctionData lengthHEXNo.
000Initialization0-bit
011Interrupt source mask8-bit
022Sampling settings8-bit
033Input range 8-bit
044Internal sampling clock32-bit
055Timer start 0-bit
066Timer stop0-bit
30
ADI12-8(FIT)GY
Using the I/O Address Map
Examples
Software Mode
Flowchart
Start
Initialization command
Set sampling conditions
Set input range
Start comman d
Read data?
Input data
Final channel?
Yes
Number of set
data points?
Yes
End
No
Yes
No
No
Figure 4.19. Software mode
Initialization
A/D conversion
ADI12-8(FIT)GY
31
Using the I/O Address Map
Sample program
/*=======================================================
Sample program 1
DEVICE ID: 0
Mode: Software Mode, Multi-Channel
Channel: 0 to 7ch
Range: -10 to 10V
Internal Clock: N/A
Interrupt: N/A
/* -------------------------------------- End of file --- */
ADI12-8(FIT)GY
39
Using the I/O Address Map
40
ADI12-8(FIT)GY
Using the Memory Address Map
5. Using the Memory Address Map
When connected to a CPU-CAxx(FIT)GY, the ADI12-8(FIT)GY can be accessed by a
host computer through a network. In addition, the Module can be allocated to the
memory controlled by the Controller Module according to a given Device ID.
Applications running on the host computer control the I/O modules by reading/writing
the memory that is controlled by the Controller Module.
For detailed specifications on the memory controlled by the Controller Module, see the
Controller Module manual.
Following is an explanation of the memory areas necessary for the use of the
ADI12-8(FIT)GY: the "module settings area", the "module information area", and the
"basic input data area".
Module Settings Area
This area controls the settings and how the module is started.
The module becomes available when the necessary settings are written into this area
and the module activation option is set in the [module startup register].
Module Information Area
The current module settings are stored in this area.
ADI12-8(FIT)GY
When the Module is started, the contents of the Module Settings Area are copied to the
Module Information Area. By reading this area, you can verify the current module
settings.
Basic Input Data Area
Basic input data is read in this area.
41
Using the Memory Address Map
Module Settings Area
A module settings area, which is a 128-by te (80h) area beginning with address 3010 00h
and corresponding to a given Device ID, is where the settings for the given device are
written.
The starting address can be determined according to the following expression:
Starting address = 301000h + 80h x (Device ID)
Table 5.1. Starting address
Access
Address (h) Area Item Size
Starting address+00 Module type (category) 1 R 02
Starting address+01 Module type (serial No.) 1 R 00
Starting address+02 System-reserved (revision No.) 1 R None
Starting address+03 Supported functions 1 R 01 Basic Input
Starting address+04 Number of basic input channels 1 R 08 8 channels
Starting address+05 Basic input data size 1 R 02 2 bytes
Starting address+06 Number of basic output channels 1 R 00 0 channel
Starting address+07 Basic output data size 1 R 00 0 byte
Starting address+08 Input channel settings address 1 R 20 20h
Starting address+09 Input channel settings data size 1 R 06 6 bytes
Starting address+0A Output channel settings address 1 R 50 50h
Starting address+0B Output channel settings data size1 R 06 6 bytes
Starting address+0C
to Starting address+0F
Starting address+10 Module startup register 1 R/W 00
Starting address+11 Error status 1 R 00
Starting address+12 Analog input resolution 1 R 10 12-bit Analog
Starting address+13 Analog input range 1 R/W 00 -10V - +10V
Starting address+14
to Starting address+1F
Starting address+20
to Starting address+7F
Module-
specific
information
Common to
channels
Channel
settings
Reserved 4 R None
Reserved 12 R None
Reserved 96 R None
type
Initial
value (h)
Initial
settings
ADI12-8(FIT)GY
input resolution
42
ADI12-8(FIT)GY
Using the Memory Address Map
Module-specific information
- Module type (category)
The ADI12-8(FIT)GY belongs to the analog module (02h) category.
- Module type (serial No.)
The ADI12-8(FIT)GY is an analog module with a serial No. 0 (00h).
- Supported functions
The ADI12-8(FIT)GY supports the basic input function (01h).
The basic input data takes analog input values.
- Number of basic input channels
The number of basic input channels for the ADI12-8(FIT)GY is 8 (08h).
Eight analog input channels are provided.
- Basic input data size
The basic input data size for the ADI12-8(FIT)GY is 2 (02h) bytes.
This is a 16-bit data area, of which 12 bits are used by the ADI12-8(FIT)GY.
- Number of basic output channels
The ADI12-8(FIT)GY does not take basic output data (00h).
- Basic input data size
The ADI12-8(FIT)GY does not take basic output data (00h).
- Input channel settings address
The ADI12-8(FIT)GY does not have channel-specific settings.
This field is provided for compatibility with other device modules.
- Input channel settings data size
The ADI12-8(FIT)GY does not have channel-specific settings.
This field is provided for compatibility with other device modules.
- Output channel settings address
The ADI12-8(FIT)GY does not have channel-specific settings.
This field is provided for compatibility with other device modules.
- Output channel settings data size
The ADI12-8(FIT)GY does not have channel-specific settings.
This field is provided for compatibility with other device modules.
ADI12-8(FIT)GY
43
Using the Memory Address Map
Items Common to Modules
- Module startup register
Setting the module startup option (01h) causes the device module to be started.
Setting the module startup option when the module is being started causes the
module to be restarted.
00h: No operation 01h: Module startup
- Error status
The error status bits, which are not reflected in the module settings area, always
remain [00h].
The error status on a module is stored in the module information area.
- Analog input resolution
The analog input resolution capacity of the ADI12-8(FIT)GY is fixed at 12 bits
(0Ch).
- Analog input range
This field sets an analog input range.
Table 5.2. Analog input range
Setting value of analog
input range (h)
00-10V - +10V
01-5V - +5V
320V - +10V
330V - +5V
Analog input range
Channel Settings
The ADI12-8(FIT)GY does not have channel-specific settings.
This field is provided for compatibility with other device modules.
44
ADI12-8(FIT)GY
Using the Memory Address Map
Module Information Area
The module information area is a 128-byte (80h) area beginning with address 300000h
and corresponding to a given Device ID.
The starting address can be determined according to the following expression:
Starting address = 300000h + 80h x (Device ID)
Table 5.3. Module information area
Address (h) Area Item Size
Starting address + 00 Module type (category) 1 R 02
Starting address + 01 Module type (serial No.) 1 R 00
Starting address + 02 System-reserved (revision No.) 1 R None
Starting address + 03 Supported functions 1 R 01
Starting address + 04 Number of basic input channels 1 R 08
Starting address + 05 Basic input data size 1 R 02
Starting address + 06 Number of basic output channels 1 R 00
Starting address + 07 Basic output data size 1 R 00
Starting address + 08 Input channel settings address 1 R 20
Starting address + 09 Input channel settings data size 1 R 06
Starting address + 0A Output channel settings address 1 R 50
Starting address + 0B Output channel settings data size1 R 06
Starting address + 0C
to Starting address + 0F
Starting address + 10 Module startup register 1 R/W 00
Starting address + 11 Error status 1 R 00
Starting address + 12 Analog input resolution 1 R 10
Starting address + 13 Analog input range 1 R/W 00
Starting address + 14
to Starting address + 1F
Starting address + 20
to Starting address + 7F
Module-
specific
information
Common to
channels
Channel
settings
Reserved 4 R None
Reserved 12 R None
Reserved 96 R None
Access
type
Initial
value (h)
ADI12-8(FIT)GY
45
Using the Memory Address Map
When the module is started, the contents of the module setting area are stored in the
module information area, with the exception of the [Module Startup Register] and the
[Error Status].
- Module startup register
This register holds the module operating status.
Therefore, the fact that the module is shut down sim ply in dicates that the module has
not been started.
00h : Module shutdown
01h : Module operating
- Error status
This register stores the error status of the module.
The error status register is reset when the module is restarted.
00h : Normal status
21h : Module timeout
The module timeout status (21h) is an error status that does not usually occur, and
indicates that an error occurred during an A/D conversion process. This status will
be reset when the module is restarted. When the module timeout status is on, the
integrity of analog input values cannot be guaranteed.
46
ADI12-8(FIT)GY
Using the Memory Address Map
Basic Input Data Area
The basic input data area, which is a 128-byte (80h) area beginning with address
304000h, corresponds to a given Device ID.
The starting address can be determined according to the following expression:
Starting address = 304000h + 80h x (Device ID)
Table 5.4. Basic input data area
Address (h) Area Item Size Access type
Starting address+00
- Starting address+01
Starting address+02
- Starting address+03
Starting address+04
- Starting address+05
Starting address+06
- Starting address+07
Starting address+08
- Starting address+09
Starting address+0A
- Starting address+0B
Starting address+0C
- Starting address+0D
Starting address+0E
- Starting address+0F
Starting address+10
- Starting address+7F
CH0 Analog input value2 R
CH1 Analog input value2 R
CH2 Analog input value2 R
CH3 Analog input value2 R
CH4 Analog input value2 R
CH5 Analog input value2 R
CH6 Analog input value2 R
CH7 Analog input value2 R
Reserved 112 R
Analog input value
Analog input values are stored as Little Endians.
Table 5.5. Analog input value
D7 D6 D5 D4 D3 D2 D1 D0
+00h A7 A6 A5 A4 A3 A2 A1A0
+01h 0 0 0 0 A11 A10 A9A8
The A/D conversion is performed on a channel-by-channel basis, with a timing that
reads analog input values; the results are stored two bytes at a time. For this reason
although there is data compatibility between the high and low bytes, there is no
synchronization between channels.
Conversion formula:
input voltage (V) = analog input value x span / 2
ADI12-8(FIT)GY
12
– offset
47
Using the Memory Address Map
Table 5.6. Conversion coefficients
Analog input valueOffsetSpan
-10V - +10V1020
-5V - +5V510
0V - +10V010
0V - +5V05
Table 5.7. Analog input range: an example of a conversion in the -10V - +10V
range
Input voltage (V)Analog input value (h)
+9.9950FFF
::
0.0050801
0.0000800
-0.0057FF
::
-10.0000000
Notes!
- Analog input values contain data that is valid during the operation of the module.
When the module is shut down, the analog input values are undefined.
- An analog input value is 2 bytes per channel. In order to maintain compatibility
between the high and low bytes, the data should be loaded in a single READ
operation.
48
ADI12-8(FIT)GY
Using the Memory Address Map
Examples
Flowchart
Following is an example in which the ADI12-8(FIT)GY is installed at Device ID :0:
Start
Open processing
Opened successfully?
Yes
Analog module type?
Yes
Set analog input range
Set Module Startup in
module startup regist er
Get analog input data
Show analog input data
Check error status
Closing processing
End
No
Determine category by reading address:301000h.
No
For analog-type module, category is "02h".
Set analog input range.
Analog input range is written to address: 301013h.
Default is "00h" (Analog input range: -10V - +10V).
This value need not be written when the default is used.
Module is started by writing "01h" to address: 301010h.
When started, the module can get valid analog input data.
By reading 2 bytes from address: 304000h,
the module can get analog input data from CH0.
In subsequent operations, the module can get analog
input data with 2 bytes at a time, up to CH7.
Error status can be checked by reading address: 300011h.
Figure 5.1. Installed at Device ID:0
ADI12-8(FIT)GY
49
Using the Memory Address Map
Sample program
/*=======================================================
F&eIT I/F Sample Program
FIT_ERROR_STATUS, 1, &byErrorStatus);
if (wStatus != 0) {
printf("Error! FIT_Read = %04X(H)\n", wStatus);
}
if (byErrorStatus != 0x00) {
printf("Error! Error Status = %02X(H)\n",
byErrorStatus);
}
/* Close */
FIT_Close(hHandle);
return 0;
}
52
ADI12-8(FIT)GY
System Reference
6. System Reference
Block Diagram
Interface Connector CH0 - CH3
8-channel
Multiplexer
with Voltage
Protection
Instrument
Amplifier
A/D Converter
DC/DC
Converter
Isolator
Stack Connector
Figure 6.1. Circuit block diagram
Interface Connector CH4 - CH7
Device ID
Control Circuit
ADI12-8(FIT)GY
53
System Reference
Specifications
Table 6.1. Specifications
Analog input section
Input format Bus-isolated voltage input
Input range Bipolar ±10V, ±5V Unipolar 0 - 10V, 0 - 5V
Maximum input voltage ±20V
Input impedance 1MΩ (Min.)
Input channel Differential input, 8 channels
Resolution 12-bit
Non-linear error *1 ±3LSB
Conversion rate Number of conversion channels x 10μsec + 20μsec
Data buffer 8-Word
Interrupt Either IRQ5 or IRQ7 or IRQ9 *2
Internal sampling timer 10
Common section
Internal power consumption 5VDC±5% 350mA (Max.)
Maximum distance of
signal extension
External dimensions (mm) 25.2 (W) x 64.7 (D) x 94.0 (H) (exclusive of protrusions)
Weight (module itself) 100g
Module connection method Stack connection by the connector that is provided with the side of
Module installation method One-touch connection to 35mm DIN rails
Applicable wire AWG 28 - 20
Applicable plug FK- MC 0,5/12-ST-2,5 (made by Phoenix Contact Corp.)
*1 When the environment temperature is near 0ºC or 50ºC, the non-linearity error may become larger.
*2 Available only when the ADI12-8(FIT)GY is connected to the CPU-SBxx(FIT)GY.
*3 When the ADI12-8(FIT)GY is connected to the ADI12-8(USB)GY, the sampling timer built
in the ADI12-8(USB)GY is used. The setting range is from 1,000 - 1,073,741,824
Item Specifications
μsec - 1,073,741,824μsec *3
1.5m
module
(standard connection mechanism provided in the system)
μsec.
Notes!
- When connecting one of the modules to a controller module, the internal power
consumption should be taken into account. If the total current exceeds the capacity
of the power supply unit, the integrity of the operation cannot be guaranteed. For
further details, please see the Controller Module manual.
- Depending upon the specific controller module that is used, some of the functions
are not supported.
54
ADI12-8(FIT)GY
System Reference
Table 6.2. Installation Environment Requirements
Parameter Requirement description
Operating temperature 0 - 50°C
Storage temperature -10 - 60°C
Humidity 10 - 90% RH (No condensation)
Floating dust particles Not to be excessive
Corrosive gases None
resistance
Vibration
resistance
Impact resistance 15G, half-sine shock for 11ms in X, Y, and Z directions
Line-noise AC line/2kV, Signal line/1kV (IEC1000-4-4Level 3, EN61000-4-4Level 3) Line-Noise
80minutes each in X, Y, and Z directions (JIS C0040-compliant,
IEC68-2-6-compliant)
(JIS C004-compliant, IEC68-2-27-compliant)
ADI12-8(FIT)GY
55
System Reference
External Dimensions
RUN STATUS
6
7
5
040
Device
4
1
3
ID
2
CH0
CH1
CH2
CH3
CH4
CH5
CH6
CH7
ADI12-
(1.2)
14.035.045.0
+
AG
+
AG
+
AG
+
94.0
AG
+
AG
+
AG
+
AG
+
AG
(1.2)
14.0
31.5
25.264.74.03.5
[mm]
Figure 6.2. External dimensions
56
ADI12-8(FIT)GY
ADI12-8(FIT)GY
User’s Manual
CONTEC CO., LTD.September 2012 Edition
3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan
Japanese http://www.contec.co.jp/
English http://www.contec.com/
Chinese http://www.contec.com.cn/
No part of this document may be copied or reproduced in any form by any means without prior written
consent of CONTEC CO., LTD. [09102012]
[08062001] Management No. A-40-606
[09102012_rev9] Parts No. LZU3844
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.