Contec CNT16-8GY, CNT16-8LGY, CNT16-8FITGY, CNT16-8LFITGY User Manual

F&eIT Series
16Bits Isolated Up-Counter Module
12 - 24VDC type
CNT16-8(FIT)GY
5VDC type
CNT16-8L(FIT)GY
CONTEC CO.,LTD.

Check Your Package

Thank you for purchasing the CONTEC product. The product consists of the items listed below. Check, with the following list, t hat your packa ge is complete. If yo u discover dam aged or missi ng items,
contact your retailer.
Product Configuration List
- Module (One of the following) ...1 [CNT16-8(FIT)GY, or CNT16-8 L(FIT)GY]
- First Step Guide …1
- CD-ROM [F&eIT Series Setup Disk] *1 …1
- Interface connector plug ...1
*1 The CD-ROM contains various software and User’s Manual (this manual)
0123
4567
6
7
5
040
Device
4
1
ID
3
2
COM 0
NC
0 1 2 3
COM 1
NC
4 5 6 7
CNT16-8L
Module
Interface connector plug
First step guide
CD-ROM
[F&eIT Series Setup Disk]
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
i

Copyright

Copyright 2004 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 c urre nt t he i n formation contained in this document. The information in this document is subject to change without notice.
All relevant issues hav e be en consid e red in th e prep ar atio n of th is do cu men t. Sh ould yo u no tic e 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 or 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.
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
ii

Table of Contents

Check Your Packag e............................................................................................................................ i
Copyright ............................................................................................................................................ ii
Trademarks .........................................................................................................................................ii
Table of Con tents...............................................................................................................................iii
1. Before Using the Product 1
About the Mo d ule............................................................................................................................... 1
Features........................................................................................................................................ 1
Functions and co n tro l meth o d by co nt ro ll e r co nn e c ted .............................................................. 2
Customer Supp o rt ............................................................................................................................... 4
Web Site....................................................................................................................................... 4
Limited One- Ye ar Wa rr a nt y............................................................................................................... 4
How to Obtain Serv i ce ....................................................................................................................... 4
Liability............................................................................................................................................... 4
Safety Precau t io ns .............................................................................................................................. 5
Safety Infor mat i o n ....................................................................................................................... 5
Handling Pre ca u tio ns................................................................................................................... 5
Environment................................................................................................................................. 7
Inspection..................................................................................................................................... 7
Storage ......................................................................................................................................... 7
Disposal ....................................................................................................................................... 7
2. Module Nomenclature and Settings 9
Nomenclature of Module Components.............................................................................................. 9
Setting a Dev ic e ID............................................................................................................................. 9
Setup Method............................................................................................................................... 9
LED Indicato r ................................................................................................................................... 1 0
3. Connecting to an External Device 11
Interface Con n ec to r .......................................................................................................................... 11
How to Connect an Interface Connector ................................................................................... 11
Signal Layout on the Interface Co nnector................................................................................. 12
External I/O C i r cu it s......................................................................................................................... 13
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
iii
4. Using the I/O Address Map 15
Starting I/O Ad d r es s ......................................................................................................................... 15
List of I/O Add re s s Ma p s .................................................................................................................16
Specificatio ns Co mmo n to F &e IT P ro du c ts..................................................................................... 20
Product Info r mat i on...................................................................................................................20
Bit Assignmen ts f or I/ O Po rts .......................................................................................................... 22
Flow of Count V a lu es .......................................................................................................................22
Operation Co mma n ds .......................................................................................................................23
Description of I np u t Co m man d s....................................................................................................... 24
Reading a Coun t (c o m man d 00 h - 0 7 h ) ..................................................................................... 24
Interrupt mask (co mman d 11h) ................................................................................................. 24
Status (comma nd 1 2h ) ...............................................................................................................25
Count control (C o mma n d 14 h ) ..................................................................................................25
Digital Filter (command 15h).................................................................................................... 25
Description of O u tpu t Co m man d s ....................................................................................................2 6
Initial Count V alu e (c o m man d 00 h - 0 7h ) ................................................................................ 26
Count Data Lat ch i ng (c o m man d 10 h ) .......................................................................................26
Interrupt Ma sk (c o mma n d 1 1h ) ................................................................................................. 26
Status Reset (command 12h) ..................................................................................................... 27
Counter initia li z at ion ( co m ma n d 13h )....................................................................................... 27
Counter contr ol ( command 14h)................................................................................................ 27
Digital Filter (command 15h).................................................................................................... 28
Examples........................................................................................................................................... 30
Pulse Count (no i nt e rru pt s )........................................................................................................ 30
Pulse Count (wi th in t e rru p ts)..................................................................................................... 33
5. Using the Memory Addre ss Ma p 39
Module Infor ma ti o n Are a .......................................................................................................... 40
Module Infor ma ti o n Are a .......................................................................................................... 47
Basic I/O Data Ar ea...................................................................................................................50
Examples........................................................................................................................................... 51
6. System Reference 57
Block Diagra m ..................................................................................................................................57
Specificatio n s.................................................................................................................................... 58
Physical Di men si ons......................................................................................................................... 60
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
iv
1. Before Using the Product

1. Before Using the Product

This chapter provides information you should know before using the product.

About the Module

This product is an expansio n module (device m odule) that up- counts pulse s ignals inpu t from an exter nal device. The product is used i n combinati on with the I/ O controller module < CPU- CAxx(FIT)GY > ( *1) or microcontroller unit < CPU-SBxx(FIT)GY > (*1) in the F&eIT Series.
Each < CNT16-8(FIT)GY > module can count a maximum of eight pulse signals. The pulse signals are input via opto-couplers. The external power supply can be in the range 12 - 24 VDC. The < CNT16-8L(FIT)GY > has the same coun t funct ion as t he < CNT16- 8(FIT )GY > but op erate s on a 5 VDC external power supply.
Please read this manual carefully to create application programs and configure the system, such as setting the switches and connecting it to external devices.
*1 The "x" in a model code represents a single digit (or no digit) indicating different products. (The
same convention applies below).

Features

- Performs a 16-bit up-count for eight channels.
- Isolated from each other by an opto-coupler, offering good noise immunity.
- A digital filter is included to prevent miscounting due to chattering on the input pulses.
- A rotary switch allows you to set device IDs to help you keep track of device numbers.
- Like other F&eIT series products, the module has a 35mm DIN rail mounting mechanism as standard. A connection to a controller module can be effected on a lateral, stack basis in a unique configuration, which perm its a s imple, smar t system con figur ati on wi thout t he nee d for a back plane board.
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
1
1. Before Using the Product

Functions and control method by controller connected

The CNT16-8(FIT)GY and CNT16-8L(FIT)GY can be connected to a variety of controllers.
Supported controllers Microcontroller 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
Check each controller to which the module can be connected as well as the method of controlling the module when conn ec ted to th at co nt ro ll er .
Connections to controllers
Y
Y
G
G
)
)
T
T
I
I
F
F
(
(
x
x
x
B
O: Permitted ×: Not permitted
CNT16-8(FIT)GY ΟΟΟΟ
CNT16-8L(FIT)GY ΟΟΟΟ
Device ID setting range 0 - 7 0 - 7 0 - 7 0 - 7
S
-
U
P
P
C
C
F
x
M
A
C
M
-
-
U
R
V
S
Y
)
G
)
T
I
T
I
F
F
2(
(
F
M
M
-
R
V
S
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
2
1. Before Using the Product
Control method by co n tro lle r co n nec te d
Y
Y
G
G
)
)
T
T
I
I
F
F
(
(
x
x
x
B
S
-
U
P
P
C
Control using the I/O address map Ο
Control using the memory address map Ο
FIT Protocol Ο
Control via the Windows driver *
Control over the web (as set from within the browser)
* 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) Ο
C
x
A
C
-
U
R
V
S
ΟΟ
F
M
M
-
Y
)
G
)
T
I
T
I
F
F
2(
(
F
M
M
-
R
V
S
Control using the I/O address map
When connected to the CPU- SBxx (F IT) GY , th e modul e 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 address map
When connected to the CPU- CAxx ( FI T)G Y, th e mod ule can be accessed from the host computer over the network. The module 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”.
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 web
You can monitor collected data and manage the log over t he w eb. 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.
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
3
1. Before Using the Product

Customer Support

CONTEC provides the following s upport services fo r you to use CONTEC products more efficiently and comfortably.

Web Site

Japanese http://www.contec.co.jp/ English http://www.contec.com/ Chinese http://www.contec.com.cn/
Latest product information CONTEC provides up-to-date information on products.
CONTEC also provides product manuals and various technical documents in the PDF.
Free download You can download updated driver software a nd diff erenti al files as we ll as sample pr ograms available i n
several languages.
Note! For product information Contact your retailer if you have any technical question about a CONTEC product or need its price,
delivery time, or estimate information.

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 char ge only w hen thi s device is ret urned fr eight pr epaid with a c opy of t he origi nal 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 the CONTEC group without the RMA number.

Liability

The obligation of the warrantor is solely to repair or replace the product. In no event will the warrantor be liable for any incidental or consequential damages due to s uch defec t or consequence s that arise from inexperienced usage, misuse, or malfunction of this device.
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
4
1. Before Using the Product

Safety Precautions

Understand the following definitions and precautions to use the product safely.

Safety Information

This document provides safety information u sing the foll owing sym bols to prevent a ccidents res ulting in injury or death and the destruc tion of equi pment and res ources. Under stand the mean ings of these la bels to operate the equipment safely.
DANGER
WAR NI NG
CAUTION
DANGER indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury.
WARNING indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury.
CAUTION indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury or in property damage.

Handling Precautions

CAUTION
- Do not modify the module. CONTEC will bear no responsibility for any problems, 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 cond ens ation )
- 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 genera ting a strong m agnetic 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.
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
5
1. Before Using the Product
- 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.
FCC PART 15 Class 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.
WAR N ING T O USE R
Change or modifications not expressly approved the manufacturer can void the user's authority to operate this equipment.
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
6
1. Before Using the Product

Environment

Use this product in the following environm ent. If used in an u nauthorize d environm ent, the module m ay overheat, malfunction, or cause a failure.
Operating temperature
0 - 50°C
Operating humidity
10 - 90%RH (No condensation)
Corrosive gases
None
Floating dust particles
Not to be excessive

Inspection

Inspect the product periodically as follows to use it safely.
- Check that the ventilation slit has no obstruction and has no dust or foreign matter adh ering.
0123
4567
6
7
5
040
Device
4
1
ID
3
2
COM 0
NC
0 1 2 3
COM 1
NC
4 5 6 7
CNT16-8L

Storage

When storing this product, keep it in its original pa ck ing form. (1) Put the module in the storage bag. (2) Wrap it in the packing material, then put it in the box. (3) Store the package at room temperature at a place free from direct sunlight, moisture, shock,
vibration, magnetism, and static electricity.

Disposal

When disposing of the product, follow the disposal procedures stipulated under the relevant laws and municipal ordinances.
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
7
1. Before Using the Product
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
8

2. Module Nomenclature and Settings

2. Module Nomenclature and Settings Nomenclature of Module Components
Figure 2.1 shows the names of module components. In the figure, the indicated switch settings represent factory settings.
CNT16-8(FIT)GY CNT16-8L(FIT)GY
LED indicator
Input
Device
COM 0
COM 1
NC
NC
0123
4567
6
5
4
ID
3
2
0 1 2 3
4 5 6 7
CNT16-8
7
040
1
Device ID
Input
LED indicator
0123
4567
Device
ID
COM 0
NC
0 1 2
3
COM 1
NC
4 5 6 7
CNT16-8L
6
7
5
040
4
1
3
2
Device ID
Figure 2.1. Names of Module Components

Setting a Device ID

The controller module distinguishes and keeps track of the modules that are c onnecte d to it by ass igning 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 t hat a m a ximum of eight modules can be distinguis hed. The factory setting for the Device ID is [0].

Setup Method

A Device ID can be set by turning the rotary switch that is located on the module face. A Device ID can be assigned by turning the switch.
6
7
5
4
3
040
1
Factory setting:
2
(Device ID = 0)
Device
ID
Figure 2.2. Setting a Device ID
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
9
2. Module Nomenclature and Settings

LED Indicator

Table 2.1. LED Indicator
Name Function LED indicator
ON: Indicates current flowing in the input pin (Counting pulse signal)
OFF: Indicates no current flowing in the input pin (Not counting pulse signal)
Status LED
Input indicator (0 - 7): GREEN
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
10
3. 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. To wire the Module, strip the sheath ab out 9 - 10mm from an end of the wire an d insert the e xposed wire into an opening. Tighten th e sc rew to fas ten th e in se rted wi re. App lic ab le wires a re A WG2 8 - 16.
0123
4567
Device
ID
COM 0
NC
0 1 2 3
COM 1
NC
4
5 6 7
CNT16-8L
Turn the screw to fasten the wire.
6
7
5
040
4
1
3
2
- Connector used:
- Applicable plug (bundled):
9 - 10mm
3.81mm pitch, 12-pin type, 8.0A rated current MC1,5/12-GF-3,81 [made by Phoenix Contact Corp.]
Front screw type with connector stopper flange FRONT-MC 1,5/12-STF-3,81 [made by Phoenix Contact Corp.] Applicable wire: AWG28 - 16
Figure 3.1. Connecting an Interface Connector and Connectors That Can Be Used
CAUTION
Removing the connector plug by grasping the cable can break the wire.
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
11
3. Connecting to an External Device

Signal Layout on the Interface Connector

The Module can be connected to an external device using a 12-pin connector that is provided on the Module face.
COM 0--- +/-COM N.C. 0 --- IN 0 1 --- IN 1
2 --- IN 2 3 --- IN 3 COM 1--- +/-COM
N.C. 4 --- IN 4 5 --- IN 5
6 --- IN 6 7 --- IN 7
Common plus/minus for input port
Pulse input: 4points
Common plus/minus for input port
Pulse input: 4points
Figure 3.2. Signal Layout on the Interface Connector
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
12
3. Connecting to an External Device

External I/O Circuits

Input section Figure 3.3 or 3.4 shows the input equivalent circuit for the interface section.
The signal input section consists o f an opto-i solate d inpu t (com patible wi th both c urre nt sink ou tput a nd current source output). An external power s upp ly is th erefore requ ired to driv e the inpu t section of this module. The power requirement for the < CNT16-8(FIT)GY > is about 8 mA per input channel at 24 VDC (about 4 mA at 12 VDC) and for t he < CNT16- 8L(FIT)GY > i s about 4 m A per i nput cha nnel at 5 VDC.
External circuitModule
Vcc
3kΩ
Optocoupler
Optocoupler
3kΩ
+/-
common
Input
pin
Input
pin
Input contact
point
Input contact
point
External
power supply
12V - 24VDC
Figure 3.3. Input Circuit < CNT16-8(FIT)GY >
External circuitModule
Vcc
1.2kΩ
+/-
common
Input
Optocoupler
1.2kΩ
Optocoupler
pin
Input
pin
Input contact
point
Input contact
point
Figure 3.4. Input Circuit < CNT16-8L(FIT)GY >
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
External
power supply
5VDC
13
3. Connecting to an External Device
External circuitModule
Vcc
3kΩ
Optocoupler
Plus
common
Input
pin
Current sink
output
External
power supply
12V - 24VDC
Figure 3.5. Example of a Connection to Current Sink Output < CNT16-8(FIT)GY >
External circuitModule
Vcc
1.2kΩ
Optocoupler
Plus
common
Input
pin
Current sink
output
External
power supply
5VDC
Figure 3.6. Example of a Connection to Current Sink Output < CNT16-8L(FIT)GY >
External circuitModule
Vcc
3kΩ
Optocoupler
Minus
common
Input
pin
Current
source output
External
power supply
12V - 24VDC
Figure 3.7. Example of a Connection to Current Source Output < CNT16-8(FIT)GY >
External circuitModule
Vcc
1.2kΩ
Optocoupler
Minus
common
Input
pin
Current
source output
External
power supply
5VDC
Figure 3.8. Example of a Connection to Current Source Output < CNT16-8L(FIT)GY >
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
14

4. 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 Module 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 Module.
Because the address bus on which I/O address space is allocated is not fully decoded in 16 bits, four starting I/O addresses exist for each Device ID.
If the Device ID is set to 0h, one of the four addresses (0800h, 0840h, 0880h , or 08C0h ) will be us ed as a starting I/O address.
Table 4.1. List of Starting I/O Addresses
< CNT16-8(FIT)GY, CNT16-8L(FIT)GY >
ID No. Occupied I/O address
0 0800h - 081Fh(recommended) 0840h - 085Fh 0880h - 089Fh 08C0h - 08DFh
1 1800h - 181Fh(recommended) 1840h - 185Fh 1880h - 189Fh 18C0h - 18DFh
2 2800h - 281Fh(recommended) 2840h - 285Fh 2880h - 289Fh 28C0h - 28DFh
3 3800h - 381Fh(recommended) 3840h - 385Fh 3880h - 389Fh 38C0h - 38DFh
4 4800h - 481Fh(recommended) 4840h - 485Fh 4880h - 489Fh 48C0h - 48DFh
5 5800h - 581Fh(recommended) 5840h - 585Fh 5880h - 589Fh 58C0h - 58DFh
6 6800h - 681Fh(recommended) 6840h - 685Fh 6880h - 689Fh 68C0h - 68DFh
7 7800h - 781Fh(recommended) 7840h - 785Fh 7880h - 789Fh 78C0h - 78DFh
For detailed specifications on the I/O space that is managed by the controller module, see the controller module manua l.
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
15
Loading...
+ 46 hidden pages