Check, with the following list, that your package is complete. If you discover damaged or missing items,
contact your retailer.
Product Configuration List
- Board (One of the following)
[SMC-4DL-PCI or SMC-8DL-PCI] …1
- First step guide …1
*1 The CD-ROM contains the driver software and User’s Guide (this guide)
Board
SMC-4DL-PCI, SMC-8DL-PCI
First step guide
CD-ROM
[API-PAC(W32)]
i
Page 3
Copyright
Copyright 2006 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 or for results obtained by the user as a result of using this product.
Trademarks
MS, Microsoft and Windows are trademarks of Microsoft Corporation. Other brand and product names
are trademarks of their respective holder.
ii
SMC-4DL-PCI, SMC-8DL-PCI
Page 4
Table of Contents
Check Your Package............................................................................................................................ i
Copyright ............................................................................................................................................ ii
Trademarks ......................................................................................................................................... ii
Table of Contents............................................................................................................................... iii
1.BEFORE USING THE PRODUCT1
About the Board.................................................................................................................................. 1
Features ........................................................................................................................................ 1
Support Software ......................................................................................................................... 2
This chapter provides information you should know before using the product.
About the Board
This product is a PCI bus-standard motion control board that can position a stepping motor or
(a pulse-train input type of) servomotor.
This product has the functions for positioning, origin return, linear interpolation, and for S-curve
acceleration and deceleration, capable of multi-axial linear interpolation and speed/position overriding.
This product covers a wide range of applications including semiconductor equipment, test instruments,
multi-axis robots, and X-Y robots.
The < SMC-4DL-PCI > can control up to four axes alone.
The < SMC-8DL-PCI > can control up to eight axes alone.
Using the bundled driver library [API-PAC(W32)], you can create Windows application software for
this board in your favorite programming language supporting Win32 API functions, such as Visual Basic
or Visual C++.
Features
Capable of easily controlling the stepping motor and servomotor using software under Windows
Controlling a larger number of axes
SMC-4DL-PCI : can control up to four axes
SMC-8DL-PCI : can control up to eight axes
Capable of controlling the jogging at fixed speed or by linear/S-curve acceleration and deceleration,
positioning, and origin returning
Carrying a motor control IC in the PCL6100 series from Nippon Pulse Motor Co., Ltd., capable of
controlling jogging, positioning, origin returning, and linear interpolation
Capable of using an encoder supporting differential output, TTL level output, open-collector output
Capable of pulse output of up to 9.8 Mpps
Capable of pulse output of up to 9.8 Mpps. Offering a choice of motor control command pulses
selectable from among common, 2, and 90-degree phase-shifted pulses
Capable of speed and position overriding
Capable of changing the speed and target position during operation
Comparator circuits allowing the set value and counter value to be compared
A pair of comparator circuits are provided for each axis, allowing the set value and counter value to be
compared with each other. They also allow signals to be output while comparator conditions are met.
Provided with seven general-purpose input pins per axis and three general-purpose output pins
Seven general-purpose inputs are provided for each axis, five of which are also available as alarm,
positioning completion, deceleration stop, counter latch, and positioning start inputs. Logic can be
changed by software.
Three output pins are provided for each axis. The output signals can be selected from among the
deviation counter clear, comparator condition satisfied state, level signal, and one-shot pulse signals.
Logic can be changed by software.
Dedicated terminal strip CCB-SMC2 (option) available focusing on the ease of use for wiring
SMC-4DL-PCI, SMC-8DL-PCI
1
Page 9
1. Before Using the Product
Support Software
You should use CONTEC support software according to your purpose and development environment.
Driver Library
API-PAC(W32) is the library software that provides the commands for CONTEC hardware products in the form of
Windows standard Win32 API functions (DLL). It makes it easy to create high-speed application software taking
advantage of the CONTEC hardware using various programming languages that support Win32 API functions, such as
Visual Basic and Visual C++.
It can also be used by the installed diagnosis program to check hardware operations.
CONTEC provides download services (at http://www.contec.com/apipac/) to supply the updated drivers and
differential files.
For details, read Help on the bundled CD-ROM or visit the CONTEC’s Web site.
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 and differential files as well as sample programs available in
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 Three-Years Warranty
CONTEC products are warranted by CONTEC CO., LTD. to be free from defects in material and
workmanship for up to three years from the date of purchase by the original purchaser.
Repair will be free of charge only when this device 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 to repair or replace the product. In no event will the warrantor
be liable for any incidental or consequential damages due to such defect or consequences that arise from
inexperienced usage, misuse, or malfunction of this device.
SMC-4DL-PCI, SMC-8DL-PCI
3
Page 11
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 using the following symbols to prevent accidents resulting in
injury or death and the destruction of equipment and resources. Understand the meanings of these labels
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.
4
SMC-4DL-PCI, SMC-8DL-PCI
Page 12
1. Before Using the Product
Handling Precautions
DANGER
Do not use the product where it is exposed to flammable or corrosive gas. Doing so may result in an
explosion, fire, electric shock, or failure.
CAUTION
-There are switches and jumpers on this product that need to be set in advance.
Be sure to check these before installing this product.
-Only set the switches and jumpers on this product to the specified settings.
Otherwise, this product may malfunction, overheat, or cause a failure.
-Do not strike or bend this product.
Otherwise, this product may malfunction, overheat, cause a failure or breakage.
-Do not touch this product’s metal plated terminals (edge connector) with your hands.
Otherwise, this product may malfunction, overheat, or cause a failure.
If the terminals are touched by someone's hands, clean the terminals with industrial alcohol.
-Do not install or remove this product to or from the extension slot while the computer's power is
turned on. And also do not connect this product and external device while the power is turned on.
Otherwise, this product may malfunction, overheat, or cause a failure.
Be sure that the personal computer or the I/O extension unit power is turned off.
-Do not connect or remove a cable with or from this product while the computer's power is turned on.
And also do not connect this product and external device while the power is turned on.
Otherwise, this product may malfunction, overheat, or cause a failure.
Be sure that the personal computer or the I/O extension unit power is turned off.
-Make sure that your PC or expansion unit can supply ample power to all the products installed.
Insufficiently energized products could malfunction, overheat, or cause a failure.
-The specifications of this product are subject to change without notice for enhancement and quality
improvement.
Even when using this product continuously, be sure to read the manual and understand the contents.
-Do not modify this product. CONTEC will bear no responsibility for any problems, etc., resulting
from modifying this product.
-Regardless of the foregoing statements, CONTEC is not liable for any damages whatsoever
(including damages for loss of business profits) arising out of the use or inability to use this
CONTEC product or the information contained herein.
SMC-4DL-PCI, SMC-8DL-PCI
5
Page 13
1. Before Using the Product
Environment
Use this product in the following environment. If used in an unauthorized environment, the board may
overheat, malfunction, or cause a failure.
Operating temperature
0 - 50ºC
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 bus connector
of the board and its cable have
been plugged correctly.
- Check that the board has
no dust or foreign matter adhering.
- The gold-plated leads of the bus connector
have no stain or corrosion.
Storage
When storing this product, keep it in its original packing form.
(1) Put this product 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.
6
SMC-4DL-PCI, SMC-8DL-PCI
Page 14
2. Setup
2. Setup
This chapter explains how to set up this product.
What is Setup?
Setup means a series of steps to take before the product can be used.
Different steps are required for software and hardware.
The setup procedure varies with the OS and applications used.
Using the Board under Windows
Using the Driver library API-PAC(W32)
This section describes the setup procedure to be performed before you can start developing application
programs for the board using the bundled CD-ROM “Driver library API-PAC(W32)”.
Taking the following steps sets up the software and hardware. You can use the diagnosis program later
to check whether the software and hardware function normally.
Step 1 Installing the Software
Step 2 Setting the Hardware
Step 3 Installing the Hardware
Step 4 Initializing the Software
Step 5 Checking Operations with the Diagnosis Program
If Setup fails to be performed normally, see the “Setup Troubleshooting” section at the end of this
chapter.
Using the Board under Window
Using Software Other than the Driver libr a r y API -PAC(W32)
For setting up software other than API-PAC(W32), refer to the manual for that software. See also the
following parts of this manual as required.
This chapter Step 2 Setting the Hardware
This chapter Step 3 Installing the Hardware
Chapter 3 External Connection
Chapter 6 About Hardware
SMC-4DL-PCI, SMC-8DL-PCI
7
Page 15
2. Setup
Using the Board under an OS Other than Windows
For using the board under an OS other than Windows, see the following parts of this manual.
This chapter Step 2 Setting the Hardware
Chapter 3 External Connection
Chapter 6 About Hardware
8
SMC-4DL-PCI, SMC-8DL-PCI
Page 16
2. Setup
Step 1 Installing the Software
This section describes how to install the API function libraries.
Before installing the hardware on your PC, install the API driver libraries from the bundled
API-PAC(W32) CD-ROM.
The following description assumes the operating system as Windows XP. Although some user
interfaces are different depending on the OS used, the basic procedure is the same.
Starting the Install Program
(1)
Load the CD-ROM [API-PAC(W32)] on your PC.
(2)
The API-PAC(W32) Installer window appears automatically.
If the panel does not appear, run (CD-ROM drive letter):\AUTORUN.exe.
(3)
Click on the [Install Development or Execution Environment] button.
CAUTION
Before installing the software in Windows XP, Server 2003, 2000, log in as a user with
administrator privileges.
SMC-4DL-PCI, SMC-8DL-PCI
9
Page 17
2. Setup
Selecting API-SMC(WDM)
(1)
The following dialog box appears to select “Driver Type” and “Install Ty pe”.
(2)
Select the "High Functionality WDM Motor Control dri ver".
(3)
Click on the [Install] button.
Executing the Installation
(1) Follow the on-screen instructions to proceed to install.
(2) After finishing installing, Readme file is displayed.
You have now finished installing the software.
10
SMC-4DL-PCI, SMC-8DL-PCI
Page 18
2. Setup
Step 2 Setting the Hardware
This section describes how to set this product and plug it on your PC.
This product has some switches and jumper to be preset.
Check the on-product switches and jumpers before plugging this product into an expansion slot.
This product can be set up even with the factory defaults untouched. You can change this product
settings later.
Parts of this product and Factory Defaults
Figure 2.1. - 2.2. shows the names of major parts on this product.
Note that the switch setting shown below is the factory default.
- Terminator setting
SW
(SW2 - SW5)
SW2
SW2
SW3
SW4
SW5
CNACNB
SW3
SW4
SW5
ON
ON
ON
ON
12345678
12345678
12345678
12345678
CN1
- Interface connector
(CNA, CNB)
Figure 2.1. Component Locations < SMC-8DL-PCI >
SW1
BOARD ID
- Board ID setting
switch
SW1
BOARD ID
8
9
A
7
6
B
5
C
4
D
3
E
2
F
1
0
SMC-4DL-PCI, SMC-8DL-PCI
11
Page 19
2. Setup
- Terminator setting
SW
(SW2 - SW3)
SW2
ON
SW3
SW1
CN1
BOARD ID
SW2
12345678
SW3
ON
12345678
- Interface connector- Board ID setting
Figure 2.2. Component Locations < SMC-4DL-PCI>
switch
BOARD ID
SW1
7
6
5
4
3
2
8
9
A
B
C
D
E
F
1
0
12
SMC-4DL-PCI, SMC-8DL-PCI
Page 20
2. Setup
Setting the Board ID
If you install two or more boards on one personal computer, assign a different ID value to each of the
boards to distinguish them.
The board IDs can be set from 0 - Fh to identify up to sixteen boards.
If only one board is used, the original factory setting (Board ID = 0) should be used.
Setting Procedure
To set the board ID, use the rotary switch on the board. Turn the SW1 knob to set the board ID as shown
below.
SW1
BOARD ID
8
9
A
7
6
B
5
C
4
D
3
E
Factory setting:
2
F
0
1
(Board ID = 0)
Figure 2.3. Board ID Settings (SW1)
Setting the Terminating Registor
You can select whether to insert a terminator (terminal resistor) in the differential input section.
Select whether to insert the terminator depending on the system to be used.
Setup Method
To select whether to insert the terminator, use the DIP switches (SMC-4DL-PCI : SW2 and SW3,
SMC-8DL-PCI : SW2 - SW5) on the board.
Set SW2 and SW3 according to the figure shown below.
SW2
ON
SW3
ON
SW4
ON
SW5
ON
12345678
Axis6
SMC-8DL-PCI :
SMC-4DL-PCI :
Input
Bit
signal
1Phaze-AONOFF
2Phaze-BONOFF
3Phaze-ZONOFF
4N.C.--------
5Phaze-AONOFF
6Phaze-BONOFF
7Phaze-ZONOFF
8N.C.--------
Axis7
Axis0
Axis1
Insert the terminalNot insert the terminal
12345678
Axis4
Axis2
Axis5
Axis3
Figure 2.4. Terminator Setup Switches and Settings
SMC-4DL-PCI, SMC-8DL-PCI
12345678
Axis2Axis3
12345678
Axis0Axis1
Factory setting : All is ON
13
Page 21
2. Setup
Plugging the Board
(1) Before plugging the board, shut down the system, unplug the power code of your PC.
(2) Remove the cover from the PC so that the board can be mounted.
(3) Plug the board into an expansion slot.
(4) Put the cover back into place.
Applicable PCI bus slots
PCI bus slots used in PCs have keys to prevent 5V and 3.3V PCI bus boards from being accidentally
plugged into wrong bus slots. This board can be plugged into both of the 5V and 3.3V PCI bus slots.
<PCI bus slot><PCI bus board>
5-V PCI bus slot
3.3-V PCI bus slot
3.3V key
CAUTION
5V key
A :
Slit for 5-V PCI bu s slot
B :
Slit for 3.3-V PCI bus slot
AB
-Do not touch the board's metal plated terminals (edge connector) with your hands.
Otherwise, the board may malfunction, overheat, or cause a failure.
If the terminals are touched by someone's hands, clean the terminals with industrial alcohol.
-Do not install or remove the board to or from the slot while the computer's power is turned on.
Otherwise, the board may malfunction, overheat, or cause a failure.
Doing so could cause trouble. Be sure that the personal computer or the I/O expansion unit power is
turned off.
- Make sure that your PC or expansion unit can supply ample power to all the boards installed.
Insufficiently energized boards could malfunction, overheat, or cause a failure.
-Power supply from the PCI bus slot at +5V is required.
14
SMC-4DL-PCI, SMC-8DL-PCI
Page 22
2. Setup
Step 3 Installing the Hardware
For using an expansion board under Windows, you have to let the OS detect the I/O addresses and IRQ to
be used by the board. The process is referred to as installing the hardware.
In the case of using two or more boards, make sure you install one by one with the Add New Hardware
Wizard.
Turning on the PC
Turn on the power to your PC.
CAUTION
-The board cannot be properly installed unless the resources (I/O addresses and interrupt level) for
the board can be allocated. Before attempting to install the board, first determine what PC resources
are free to use.
-The resources used by each board do not depend on the location of the slot or the board itself. If you
remove two or more boards that have already been installed and then remount one of them on the
computer, it is unknown that which one of the sets of resources previously assigned to the two boards is
assigned to the remounted board. In this case, you must check the resource settings.
When Using API-SMC(WDM)
(1) The “Found New Hardware Wizard” will be started.
Select “Install from a list or specific location[Advanced]”, then click on the [Next] button.
SMC-4DL-PCI, SMC-8DL-PCI
15
Page 23
2. Setup
(2) Specify that folder on the CD-ROM which contains the setup information (INF) file to register the
board.
* The name of the board
you have just added is
displayed.
- SMC-4DL-PCI
- SMC-8DL-PCI
Source folder
The setup information (INF) file is contained in the following folder on the bundled CD-ROM.
\INF\WDM\SMC
\INF\WDM\SMC
You have now finished installing the hardware.
16
SMC-4DL-PCI, SMC-8DL-PCI
Page 24
2. Setup
Step 4 Initializing the Software
The API function library requires the initial setting to recognize the execution environment. It is called
the initialization of the API function library.
Setting the device name
(1) Run Device Manager. From [My Computer] - [Control Panel], select [System] and then select the
[Device Manager] tab.
(You can also open Device Manager by right clicking on My Computer and selecting Properties.)
* The name of the board
you have just added is
displayed.
- SMC-4DL-PCI
- SMC-8DL-PCI
(2) The installed hardware appears under the CONTEC Devices node. Open the CONTEC Devices
node and select the device you want to setup (the device name should appear highlighted). Click
[Properties].
SMC-4DL-PCI, SMC-8DL-PCI
17
Page 25
2. Setup
(3) The property page for the device opens.
Enter the device name in the common settings tab page and then click [OK].
The device name you set here is used later when programming.
* The name of the board
you have just added is
displayed.
- SMC-4DL-PCI
- SMC-8DL-PCI
*The initial device name that appears is a default value. You can use this default name if you wish.
*Make sure that you do not use the same name for more than one device.
You have now finished installing the initial setting of Software.
18
SMC-4DL-PCI, SMC-8DL-PCI
Page 26
2. Setup
Step 5 Checking Operations with the Diagnosis
Program
Use the diagnosis program to check that the board and driver software work normally, thereby you can
confirm that they have been set up correctly.
What is the Diagnosis Program?
The diagnosis program diagnoses the states of the board and driver software.
For Quick Check, the program checks the board resources for validity. The resources include the I/O
addresses, interrupt level (IRQ), board ID, and sync signal.
For Detail Check, the program checks the connections of the motor control board, driver unit, and limit
sensor for validity. The program inputs/outputs signals in interactive mode to check for validity. Check
items are Limit Signals Input, Control Signals Input/Output and Pulse Signals Output.
Check method
Perform the input/output test and check the execution environment with the driver unit connected.
The dedicated screw terminal CCB-SMC2 will come in handy when you check the board.
The board should be checked with the factory defaults.
For direct connection to the board, see Chapter 3 “External Connection”.
Connection diagram
The following connection diagrams show connections using the dedicated screw terminal CCB-SMC2.
<Pulse output>
CCB-SMC2
CW+
CW-
CCW+
CCW-
Figure 2.5. Connection diagram < 1 / 2 >
SMC-4DL-PCI, SMC-8DL-PCI
CW+
CW-
CCW+
CCW-
Driver Unit
CW
CCW
19
Page 27
2. Setup
<Limit input>
CCB-SMC2
ORGORG
GND
+LIM+LIM
GND
-LIM-LIM
GND
+
-
+
-
ORG
+LIM
-LIM
+12V
- +24VDC
Figure 2.5. Connection diagram < 2 / 2 >
20
SMC-4DL-PCI, SMC-8DL-PCI
Page 28
2. Setup
Using the Diagnosis Program
Starting the Diagnosis Program
Click the [Diagnosis] button on the device property page to start the diagnosis program.
* The name of the board
you have just added is
displayed.
- SMC-4DL-PCI
- SMC-8DL-PCI
Checking for motor control
(1) Select the name of the axis you want to diagnose, then click on the [Execute Initial Setup Utility]
button to execute Quick Check.
SMC-4DL-PCI, SMC-8DL-PCI
21
Page 29
2. Setup
To execute Detail Check, click on the [Next] button. Otherwise, click on the [Back] or [Cancel]
button.
(2) Check/mask each signal.
When the alarm (ALM/ES) is ON or each limit (+LIM, -LIM) is ON, the motor does not operate in
that direction. In this case, check the connection of the signal or mask it.
22
SMC-4DL-PCI, SMC-8DL-PCI
Page 30
(3) Simple operation is performed.
2. Setup
SMC-4DL-PCI, SMC-8DL-PCI
23
Page 31
2. Setup
Setup Troubleshooting
Symptoms and Actions
Data input or output does not operate correctly
-Run the diagnosis program to check that the device is registered and whether any initialization errors
have occurred.
-Is there a problem with the device settings, wiring, or similar? Check the I/O setting of motor driver
unit and limit sensor for validity.
The diagnostic program works correctly but the application program does not.
The diagnostic program uses the API-TOOL functions. If the diagnostic program works correctly, other
applications should work correctly also. If you have a problem, recheck your program taking note of the
following points.
-Check the return values of the API functions.
-Refer to the source code for the sample programs.
The OS does not boot correctly or does not detect the device correctly.
Refer to the "Troubleshooting" section of API-SMC(WDM) HELP.
If your problem cannot be resolved
Contact your retailer.
24
SMC-4DL-PCI, SMC-8DL-PCI
Page 32
3. External Connection
3. External Connection
This chapter describes the interface connectors on the board and the external I/O circuits.
Check the information available here when connecting an external device.
How to connect the connectors
Connector shape
< SMC-8DL-PCI >
The on-board interface connector (CAN, CNB) is used when connecting this product and the external
devices.
Figure 3.4. Pin Assignments of Interface Connector < SMC-4DL-PCI >
3. External Connection
SMC-4DL-PCI, SMC-8DL-PCI
31
Page 39
3. External Connection
Connecting Output Signals
Pulse output circuit (CW, CCW)
Pulse output circuit on this product is illustrated below. The signal output is a differential line-driver
output.
Connection with the differential input
Board
AM26LS31 or equivalence to it
CW
CCW
CW+
CW-
CCW+
CCW-
Driver Unit
Figure 3.5. Pulse output circuit (Connection with the differential input)
Connection with the opto-coupler input (When the driver unit guarantees the connection with the
differential output)
Board
AM26LS31 or equivalence to it
CW
CCW
CW+
CW-
CCW+
CCW-
Driver Unit
CW
CCW
Figure 3.6. Pulse output circuit (connection with the opto-coupler input)
32
SMC-4DL-PCI, SMC-8DL-PCI
Page 40
Connection with the opto-coupler input
Board
AM26LS31 or equivalence to it
CW
CCW
CW+
CW-
CCW+
CCW-
GND
Driver Unit
CW
CCW
Figure 3.7. Pulse output circuit (connection with the opto-coupler input)
Connection with TTL level input
Board
AM26LS31 or equivalence to it
CW
CCW
CW+
CW-
CCW+
CCW-
GND
Driver Unit
VccVcc
Vcc
Vcc
CW
CCW
3. External Connection
Figure 3.8. Pulse output circuit (connection with the TTL level input)
CAUTION
-When connecting with the photo-coupler input or the TTL level input, check the specification for the
driver unit beforehand.
-To prevent the circuit from malfunctioning due to noise, wire it as far away from other signal lines
and noise sources as possible.
SMC-4DL-PCI, SMC-8DL-PCI
33
Page 41
3. External Connection
Control signal/general-purpose signal output circuit
(OUT1 - OUT3, ERC, CP1, CP2)
Output circuit of each output signal on this product is illustrated below. The signal output is an
open-collector output. A ground wire must therefore be connected for driving.
BoardDriver Unit
OUT1 - OUT3
GND
-
+
+12 - +24VDC
Figure 3.9. Output circuit
34
SMC-4DL-PCI, SMC-8DL-PCI
Page 42
3. External Connection
Connecting Input Signals
Encoder input circuit
Encoder input circuit on this product is illustrated below. The signal input is a differential input capable
of connecting a line driver output, TTL level output and open-collector output.
Connection with the differential output
BoardDriver Unit
Vcc
Vcc
AM26LS31 or
equivalence to it
A+
Phase A+
Vcc
Vcc
AM26LS31 or
equivalence to it
Vcc
Vcc
AM26LS31 or
equivalence to it
Figure 3.10.Encoder input circuit
GND
A-
B+
Phase A-
Phase B+
B-
Z+
Z-
Phase B-
Phase Z+
Phase Z-
GND
SMC-4DL-PCI, SMC-8DL-PCI
35
Page 43
3. External Connection
Connection with the TTL level output
BoardDriver Unit
Vcc
Vcc
AM26LS31 or
equivalence to it
Vcc
Vcc
AM26LS31 or
equivalence to it
A+
A-
B+
Vcc
TTL level
Vcc
output
TTL level
output
Phase A+
Phase B+
B-
Vcc
TTL level
output
AM26LS31 or
equivalence to it
Vcc
Vcc
GND
Z+
Z-
Phase Z+
GND
Figure 3.11.Encoder input circuit
36
SMC-4DL-PCI, SMC-8DL-PCI
Page 44
Connection with the open-collector output
BoardDriver Unit
Vcc
Vcc
AM26LS31 or
equivalence to it
A+
A-
Phase A+
Vcc
3. External Connection
Output
(open-collector)
Vcc
Vcc
Output
(open-collector)
Output
(open-collector)
AM26LS31 or
equivalence to it
AM26LS31 or
equivalence to it
Vcc
Vcc
Vcc
Vcc
GND
B+
Phase B+
B-
Z+
Z-
Phase Z+
GND
Figure 3.12.Encoder input circuit
CAUTION
-Do not insert a terminator when you connect TTL level output signals or open-collector output
signals. Otherwise, this product may malfunction, overheat, or cause a failure.
-Restrict the use of cables to 10m for the line driver output, 3m for the open-collector output, and
1.5m for the TTL level output.
-To prevent the circuit from malfunctioning due to noise, wire it as far away from other signal lines
and noise sources as possible.
SMC-4DL-PCI, SMC-8DL-PCI
37
Page 45
3. External Connection
Limit input/general-purpo se i n put /c o nt ro l input circuit
(IN1 - IN7, +LIM, -LIM, ORG)
The limit input/general-purpose input/control input circuit on this board is illustrated below.
The signal input is an opto-isolated, current driven input (sink type). To drive the limit input/
general-purpose input/control input block, therefore, an external power supply is required
at +12 - +24 V.
Given below are practical examples of connection of this product that outputs pulses by the independent
pulsing method to motor drivers. These examples show the connections through axis0.
Example of Connection to driver unit (Σ II Series) for Servo motor
Figure 3.14.Example of Connection to driver unit (Σ II Series) for Servo motor
SMC-4DL-PCI, SMC-8DL-PCI
39
Page 47
3. External Connection
Surge Voltage Countermeasures
When connecting a load that generates surge voltages and inrush currents, such as an induction load
(relay coil) or an incandescent light bulb, to the digital output, appropriate protection must be provided
in order to prevent damage to the output stage or a malfunction due to noise. The rapid shutoff of a coil,
such as a relay, generates a sudden high-voltage pulse. If this voltage exceeds the voltage tolerance level
of the output transistor, it can cause the transistor to gradually deteriorate, or even completely damage
the transistor. Therefore, when driving an induction load, such as a relay coil, you should always
connect a surge-absorbing device. The following illustrates a surge voltage countermeasure that can be
employed:
Examples of use of relay coil
Board
Board
OUT 1 - 3
Diode
GND
Examples of use of lump
Board
OUT 1 - 3
GND
Relay
coil
Surge current
prevention
resistor
External
Power Supply
+12 - +24VDC
External
Power Supply
+12 - +24VDC
Relay
OUT 1 - 3
GND
External power voltage < Zener diode voltage
Board
OUT 1 - 3
GND
coil
Zener
diode
Resistor
External
Power Supply
+12 - +24VDC
External
Power Supply
+12 - +24VDC
Figure 3.15.Surge Voltage Countermeasure
CAUTION
In order for a protection circuit to operate effectively, it must be connected within 50 cm of a load
and a contact point.
40
SMC-4DL-PCI, SMC-8DL-PCI
Page 48
4. Functions
4. Functions
This chapter describes the functions of this product.
You can easily set up and execute each of the functions using the bundled driver library.
For more information on this product, plerase refer to the “API-SMC HELP” after installing.
About each motor control operation
PTP operation function
This function moves the motor from one point to another (Point To Point motion).
Use the function for simple position control.
JOG operation function
This function moves the motor without specifying the travel distance.
Use the function to manually position the motor.
ORG operation function
This function moves the motor to the origin.
Linear interpolation
This product supports multi-axial linear interpolation. Linear interpolation causes linear motion to the
specified position.
S-curve acceleration/deceleration function
This product has the S-curve acceleration/deceleration function in addition to the linear
acceleration/deceleration function. The S-curve acceleration/deceleration function reduces acceleration
when starting and stopping accelerating/decelerating the motor, thereby suppressing the vibration
generated at the start and end of motion.
SMC-4DL-PCI, SMC-8DL-PCI
41
Page 49
4. Functions
Meanings of signals
Limit input signals
Limits switches are used to detect the position of the carrier in a positioning system using a stepping
motor to stop the motor when the carrier has reached the target position (final destination). This product
is also provided with the slow-down stop input to slow down the high-speed rotation at acceleration or
deceleration. The mounting position of each limit switch is shown below.
Pulse motorcarrier
Connection
part
-LIMORGSDSD
Negative
(CCW)
Positive
(CW)
+LIM
Figure 4.1. The attachment position relation of a limit switch
+LIM (Positive-direction end limit input), -LIM (Negative-direction end limit input)
Place +LIM at the end position when the stepping motor rotates clockwise (CW) and -LIM at the end
position when the stepping motor rotates counterclockwise (CCW). When the carrier reaches either
position (the limit input is turned on), the motor stops immediately unconditionally. Even when a
subsequent operation directive (instruction) for moving in the same direction is issued, the carrier won’t
move forward beyond the limit position as long as the limit has been applied. The motor restarts
operation (rotation) in response to an operation directive for moving in the opposite direction.
The logical direction can be set by software.
SD (deceleration (decelerated stop) input)
SD is a limit input to detect the position at which to start deceleration during high-speed rotation
(accelerating/decelerating operation). The carrier operating (moving) at high speed starts deceleration at
that position and stops after slowing down to the initial speed. The logical direction can be set by
software.
ORG (origin input)
ORG is the switch input to detect the origin to be set as the base point for each operation. The logical
direction can be set by software.
42
SMC-4DL-PCI, SMC-8DL-PCI
Page 50
4. Functions
Encoder input signal
Phases A, B and Z are available to this product for encoder input. The signals that can be connected are
those in the following output forms: the line driver output form, the TTL level output form, and the
open-collector output form.
The specifications for the input pulse that can be set are as follows:
-2-phase Input, Multiply by 1
-2-phase Input, Multiply by 2
-2-phase Input, Multiply by 4
-Single-phase Input, Multiply by 1
2-phase Input
Two-phase input is a pulse input consisting of two phases between which there is a phase difference of
90° : Phase A (leading signal) and Phase B (trailing signal). The minimum phase difference between
Phase A and Phase B should be set to 0.2µ sec for line driver output connection, to 0.34µ sec for TTL
level output connection or to 1µ sec for open-collector output connection.
A
B
Multiply by 1
Multiply by 2
Multiply by 4
U
U
U
U
-
-
U
-
-
U
U
U
U
U
U
-
-
U
-
-
U
U
U
U
U
A
B
Multiply by 1
Multiply by 2
Multiply by 4
D
D
D
D
-
-
D
-
-
D
D
D
D
D
D
-
-
D
-
-
D
D
D
D
D
U : Up Count
D : Down Count
Figure 4.2. Sample Count for Two-phase Input Setting
Single-phase input
In single-phase input, the counter counts up at the rising edge of Phase A (UP) pulse and counts down at
the rising edge of Phase B (DOWN) pulse.
A count cannot be performed properly, if Phase A (UP) pulse and Phase B (DOWN) pulse are generated
at the same time.
A
B
UU
A
B
DD
U : Up Count
D : Down Count
Figure 4.3. Sample Count for Single-phase Input Setting
SMC-4DL-PCI, SMC-8DL-PCI
43
Page 51
4. Functions
Pulse output signal
Apart from the independent pulse (CW, CCW), this product can also generate the following pulses :
common pulse (pulse output, direction output), 90°-phase-different pulse (leading pulse output, trailing
pulse output). This allows you to use (or select) the most suitable one in accordance with the pulse motor
drive unit to be used (or connected). As these pulse outputs are line driver outputs, check the
specifications of the motor driver unit to be used before connecting them.
CAUTION
This product cannot directly drive the stepping motor. These pulse output signals must therefore be
connected to the motor driver unit prepared for the stepping motor.
CW (forward pulse output) is the pulse output signal to rotate (operate) the stepping motor clockwise
(CW). CCW (backward pulse output) rotates the motor counterclockwise. These signals are
independent of each other. When a command for rotation is executed, the pulse signal for the specified
direction outputs the preset number of operation pulses.
When positive direction operatesWhen negative direction operates
CW
CCW
Figure 4.4. Specification for Output Pulse in Independent Pulsing Method
OUT (Pulse output), DIR (Direction output)
OUT (pulse output) is the serial pulse output that carries the above CW and CCW signals on a single line.
The CW and CCW directions are indicated by the signal status of DIR (direction output). Note that the
DIR signal is valid only when the OUT signal is active.
When positive direction operatesWhen negative direction operates
OUT
DIR
Figure 4.5. Specification for Output Pulse in Common Pulsing Method
44
SMC-4DL-PCI, SMC-8DL-PCI
Page 52
4. Functions
OUT (leading pulse output) and DIR (trailing pulse output)
The OUT (leading pulse output) signal and the DIR (trailing pulse output) signal are generated.
The motor is operated (rotated) in the positive direction (clockwise), when there is a phase difference of
+90° between DIR (trailing pulse output) and OUT (leading pulse output). On the other hand, the motor
is operated (rotated) in the negative direction (counterclockwise), when there is a phase difference
of -90° between DIR (trailing pulse output) and OUT (leading pulse output).
When positive direction operatesWhen negative direction operates
OUT
DIR
Figure 4.6. Specification for Output Pulse in 90°-phase-different Pulsing Method
General-purpose input signals
This product has general-purpose input signals (IN1 - IN7) in addition to limit input and encoder input
signals.
IN1 - IN7 (General-purpose input signals)
IN1 - IN7 (general-purpose input signals) can be used to read data from I/O ports. Since these are
independent of motor control, they do not affect pulse output even during motor operation. As seven
signals are provided for each axis, they can be used to input the alarm signal or positioning completion
signal from the motor driver unit. IN1 - IN5 can be switched to serve as the alarm input, positioning
completion input, deceleration (decelerated stop) input, counter latch input and positioning control start
input respectively. The input logic can also be changed by software.
ALM (Alarm input signal)
ALM is the input signal to detect the alarm signal from the motor driver. The input logic can be changed
by software.
INP (positioning completion signal)
INP is the signal to detect the positioning completion signal from the motor driver unit. The input logic
can be changed by software.
SD (deceleration (decelerated stop) input)
SD is a signal to detect the position at which to start deceleration. The input logic can be changed by
software.
SMC-4DL-PCI, SMC-8DL-PCI
45
Page 53
4. Functions
LTC (counter latch input)
Signal to latch with the counter value, allowing the counter value to be cleared immediately after
latching or an interrupt request to be generated upon latching. The input logic can be changed by
software.
PCS (positioning control start input)
Signal for overriding (replacing) the target position, allowing positioning to be performed by the set
amount of shifting from the input-ON timing. The input logic can be changed by software.
General-purpose output signals
This product has general-purpose output signals (OUT1 - OUT3) in addition to pulse output signal.
OUT1 - OUT3 (General-purpose output signals)
OUT1 - OUT3 (general-purpose output signals) can be used to write data to I/O ports. Since these are
independent of motor control, they do not affect pulse output even during motor operation. As three
signals are provided for each axis, they can be used to output the level output signal for the servo-on and
hold-off to the motor driver unit, one-shot pulse signal for each clear signal and the comparator output
signal. The output logic can also be changed by software.
ALMCLR and ERC are signals to output clear one-shot pulses to the alarm clear and deviation counter
clear inputs of the motor driver unit. The width of one-shot pulses (output logic changeable) can be
selected from among 12 µsec, 102µsec, 408µsec, 1.6 msec, 13 msec, 52 msec, 104 msec.
CP1, CP2 (comparator output)
CP1 and CP2 are signals for comparing the counter value to the set comparator value. The output logic
can also be changed by software.
P.COM (Plus common)
P.COM is the plus common signal for limit input signals (+LIM, -LIM, SD, ORG) and general-purpose
input/output signals (IN1 - IN7, OUT1 - OUT3).
GND (Ground)
GND is the ground line for the general-purpose output signals (OUT1 - OUT3).
46
SMC-4DL-PCI, SMC-8DL-PCI
Page 54
Motion control system
System configuration
Stepping motor
Servo motor
Limit sensor
4. Functions
Driver unit Conversion cable
CCB-SMC2 PCB-100PS
+12V +24VDC
DC Power Supply
SMC-4DL-PCI
SMC-8DL-PCI
Figure 4.7. System configuration
Table 4.1. Component features
ItemDescription
SMC-4DL-PCI
SMC-8DL-PCI
(Main board)
PCB-100PS (Option)This cable connects the board to the CCB-SMC2.
CCB-SMC2 (Option)
Conversion cable (User)
Driver unit (Motor maker)
Stepping motor Servo motor
(Motor maker)
Limit sensor (Switch maker)
DC Power supply
(Power supply maker)
When installed on the PC, this board generates pulses required for position control.
This screw terminal is used to efficiently connect the devices (the board, driver unit,
DC power supply, limit sensor) required for position control. The screw terminal
can connect a four-axis motion control system alone.
The shape of the control connector of each driver unit is largely different depending
on the manufacturer and type. A conversion cable must be prepared to connect each
driver unit to the CCB-SMC2.
Motor and driver unit to be subject to motion control.
Available in various types by motor capacity, power-supply voltage, and motor
shape. Select the ones that best fit your needs.
This sensor is installed at the forward/backward limit and origin detection
positions. When a table is used in the system, the sensor is bundled with the table.
For a self-made system, use commercially available switches.
Power supply to the CCB-SMC2. Use a 12 - 24-VDC power supply.
SMC-4DL-PCI, SMC-8DL-PCI
47
Page 55
4. Functions
48
SMC-4DL-PCI, SMC-8DL-PCI
Page 56
5. About Software
CD-ROM Directory Structure
\
|– Autorun.exeInstaller Main Window
| Readmej.htmlVersion information on each driver (Japanese)
| Readmeu.htmlVersion information on each driver (English)
The bundled CD-ROM “API Function Library Package API-PAC(W32)” contains the functions that
provide the following features:
-Function to easily set and control the position of the stepping motor or servomotor
-Function to set and execute basic motor operations such as PTP and JOG operations
-Capable of digital input/output of specified axes
For details, refer to the help file. The help file provides various items of information such as “Function
Reference”, “Sample Programs”, and “Q&A”. Use them for program development and troubleshooting.
Accessing the Help File
(1) Click on the [Start] button on the Windows taskbar.
(2) From the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” - “SMC” - “API-SMC-D
HELP” to display help information.
50
SMC-4DL-PCI, SMC-8DL-PCI
Page 58
5. About Software
Uninstalling the Driver library
To uninstall API-PAC(W32), follow the procedure below.
(1) Click on the [Start] button on the Windows taskbar. From the Start Menu, select “Settings” –
“Control Panel”.
(2) Double-click on “Add/Remove Programs” in the Control Panel.
(3) Double-click on “Add or Remove Programs” in the Control Panel.
Select “CONTEC API-SMC(WDM) driver” from the application list displayed, then click on the
[Change/Remove] button. Follow the on-screen instructions to uninstall the function libraries.
SMC-4DL-PCI, SMC-8DL-PCI
51
Page 59
5. About Software
52
SMC-4DL-PCI, SMC-8DL-PCI
Page 60
6. About Hardware
6. About Hardware
This chapter provides hardware specifications and hardware-related supplementary information.
For detailed technical information
For further detailed technical information (“Technical Reference” including the information such as an
I/O map, configuration register, etc.), visit the Contec's web site (http://www.contec.com/support/) to
call for it.
Hardware specification
Tables 6.1 - 6.6 list the hardware specifications of the board.
Table 6.1. Common Section
Item
Control targetStepping motor or servo motor driver unit(pulse train input type)
Number of axes to control
Device used
Interrupt1 ch
Interrupt factorAt the time of stop by positive-direction end limit input ON
I/O addressAny 128 ports boundary
Current consumption (Max.) 5VDC 700mA5VDC 1200mA
Operating condition0 - 50°C, 10 - 90% (No condensation)
PCI bus specification32-bit, 33MHz, Universal key shapes supported *1
Dimension (mm)
Connector used
Weight100g120g
*1 This board requires power supply at +5 V from an expansion slot (it does not work on a machine with a +3.3V power
supply alone).
SMC-4DL-PCISMC-8DL-PCI
4axis8axis
PCL6143 (Nippon Pulse Motor CO., LTD.) or equivalence to it
At the time of stop by negative-direction end limit input ON
At the time of stop by alarm input on
At the time of stop by simultaneous stop operation
At the time of stop by deceleration (decelerated stop) input on
At the time of occurring the encoder input error
The other event (setting by the software)
176.41(L) x 106.68(H)
HDRA-EC100LFDT+
[made by HONDA TSUSHIN
KOGYO CO., LTD.] or equivalence
to it
Specification
HDRA-E100W1LFDT1EC-SL+
[made by HONDA TSUSHIN
KOGYO CO., LTD.] or equivalence
to it
SMC-4DL-PCI, SMC-8DL-PCI
53
Page 61
6. About Hardware
Table 6.2. Encoder Input Section
ItemSpecification
Encode typeIncremental
Maximum counter value
Input signal type
Supported output type
Device usedAM26LS32(T.I) or equivalence to it
Terminal resistor150Ω (Separatable with SW)
Receiver input sensitivity±200mV
In-phase input voltage range ±7V
Distance in which signal can
be extended
Response frequency
8000000h - 7FFFFFFh(-134,217,728 - 134,217,727), 28 bit
10m (Depending on the time of connecting the differential output,
wiring environment and input frequency)
3m (Depending on the time of connecting the open-collector output,
wiring environment and input frequency)
1.5m (Depending on the time of connecting the TTL level output,
wiring environment and input frequency)
5MHz duty 50% (differential output),
3MHz duty 50% (TTL level output), 1MHz duty 50% (open-collector
output)
Table 6.3. Limit Input Section
ItemSpecification
Signal channel
Input signal name
Input logic
Input type
Response time (Max.)
Input resistance
Input ON current
Input OFF current
External circuit power supply
3ch/axis (original point, Forward limit, reserve limit)
ORG : origin input
+LIM : positive direction end limit input
-LIM : negative direction end limit input
Enables selecting the positive/negative logic by using the Software
Opto-isolated input (corresponding to current sink output)
(Enables selecting the positive/negative logic by using the Software)
50VDC
6. About Hardware
SMC-4DL-PCI, SMC-8DL-PCI
55
Page 63
6. About Hardware
Block Diagram
Driver
Receiver
Photo-coupler
Motor controller
PCL6143
Control circuit
FPGA
PCI Bus*
Motor controller
PCL6143
-
-
-
-
Driver
Receiver
Photo-coupler
Driver
Receiver
Photo-coupler
-
-
-
-
Driver
Receiver
Photo-coupler
Pulse output
Encoder input
Limit input
-
-
-
-
Pulse output
Encoder input
Limit input
Pulse output
Encoder input
Limit input
-
-
-
-
Pulse output
Encoder input
Limit input
Axis0
-
-
-
-
Axis3
Axis4
Axis7
* Only SMC-8DL-PCI
General-purpose
output
(Each axis 3ch)
General-purpose
input
(Each axis 7ch)
SMC-4DL-PCI
SMC-8DL-PCI
Transistor
Photo-coupler
Figure 6.1. Block Diagram
56
SMC-4DL-PCI, SMC-8DL-PCI
Page 64
SMC-4DL-PCI
SMC-8DL-PCI
User’s Guide
CONTEC CO.,LTD.October 2006 Edition
3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan
Japanese http://www.contec.co.jp/
Englishhttp://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. [10172006]