# PCI-8102

# Advanced 2-Axis Servo/Stepper

# Motion Control Card

# User's Manual

Manual Rev. 3.00

Revision Date: Jan. 31, 2012

Part No: 50-11136-1020

![The image displays a black circle containing the white universal recycling symbol. The symbol consists of three arrows chasing each other in a triangular formation, with the tails of the arrows depicted as fading, striped lines to suggest motion.](.pci-8102-50-11136-1020-300-en/d481454f1febc53a41fabd13b101818b009bd5e946431e5183004619ae65ec59.jpg)
Recycled Paper

# Revision History

<table><tr><td>Revision</td><td>Release Date</td><td>Description of Change(s)</td></tr><tr><td>2.01</td><td>Feb 26, 2009</td><td>Initial release</td></tr><tr><td>3.00</td><td>Jan. 31, 2012</td><td>Updated spec for 2012 release</td></tr><tr><td></td><td></td><td></td></tr></table>

# Table of Contents

# Revision History...... ii

# List of Figures ...... vi

# Preface ix

# 1 Introduction ...... 1

1.1 Features.... 4
1.2 Specifications.... 5
1.3 Supported Software 7

Programming Library 7

MotionCreatorPro 7

1.4 Available Terminal Board.... 7

# 2 Installation 9

2.1 Package Contents 9
2.2 PCI-8102 Outline Drawing 10
2.3 PCI-8102 Hardware Installation.... 11

Hardware Configuration 11

PCI Slot Selection 11

Installation Procedures 11

Troubleshooting 12

2.4 Software Driver Installation.... 12
2.5 P1 Pin Assignments: Main connector 13
2.6 P2 Pin Assignment: Digital Inputs / Outputs 15
2.7 K1/K2 Pin Assignments: Simultaneous Start/Stop ...... 17
2.8 Jumper Settings for Pulse Output.... 17
2.9 CMP & EMG Interface Settings 18
2.10 Switch Setting for card index 19

# 3 Signal Connections.... 21

3.1 Pulse Output Signals OUT and DIR 21
3.2 Encoder Feedback Signals EA, EB and EZ.... 23
3.3 EMG Emergency Stop 25
3.4 Origin Signal ORG 26
3.5 End-Limit Signals PEL and MEL 27
3.6 In-Position Signal INP 28
3.7 Alarm Signal ALM 29

3.8 Deviation Counter Clear Signal ERC 29

3.9 General-Purpose Signal SVON 30

3.10 General-Purpose Signal RDY 31

3.11 Position Compare Output pin: CMP 31

3.12 Multi-Functional Input Pin: LTC/SD/PCS/CLR 33

3.13 Simultaneously Start/Stop Signals STA and STP 33

3.14 General Purpose Digital Input/Output 35

Extended DSUB 37-pin Connector 36

# 4 Operations.... 39

4.1 Classifications of Motion Controller.... 39

Voltage Type Motion Control Interface 39

Pulse Type Motion Control Interface 39

Network Type Motion Control Interface 40

Software Real-time Motion Control Kernel 40

DSP Based Motion Control Kernel 41

ASIC Based Motion Control Kernel 41

Compare Table of All Motion Control Types 42

PCI-8102's Motion Controller Type 42

4.2 Motion Control Modes.... 42

Coordinate System 43

Absolute and Relative Position Move 44

Trapezoidal Speed Profile 44

S-Curve and Bell-Curve Speed Profile 46

Velocity Mode 48

One Axis Position Mode 48

Two Axes Linear Interpolation Position Mode 49

Two Axes Circular Interpolation Mode 50

Continuous Motion 52

Home Return Mode 54

Home Search Function 61

Manual Pulser Function 62

Simultaneous Start Function 63

Speed Override Function 63

Position Override Function 64

4.3 Motor Driver Interface 65

Pulse Command Output Interface 65

Pulse Feedback Input Interface 68

In Position Signal 70

Servo Alarm Signal 70

Error Clear Signal 71

Servo ON/OFF Switch 71

Servo Ready Signal 71

Servo Alarm Reset Switch 72

# 4.4 Mechanical Switch Interface 72

Original or Home Signal 72

End-Limit Switch Signal 72

Slow Down Switch 73

Positioning Start switch 73

Counter Clear switch 73

Counter Latch Switch 73

Emergency Stop Input 74

# 4.5 Counters 75

Command Position Counter 75

Feedback Position Counter 75

Command and Feedback Error Counter 76

General Purpose Counter 76

Target Position Recorder 76

# 4.6 Comparators 77

Soft End-Limit Comparators 77

Command and Feedback Error Counter Comparators . 77

General Comparator 78

Trigger Comparator 78

# 4.7 Other Motion Functions 79

Backlash Compensation and Slip Corrections .... 79

Vibration Restriction Function 79

Speed Profile Calculation Function 80

# 4.8 Interrupt Control.... 81

# 4.9 Multiple Card Operation 84

# 5 MotionCreatorPro 85

5.1 Execute MotionCreatorPro 85

5.2 About MotionCreatorPro 85

5.3 MotionCreatorPro Form Introduction 87

Main Menu 87

Select Menu 88

Card Information Menu 89

Configuration Menu 90

Single Axis Operation Menu 96

Two-Axis Operation Menu 103

2D\_Motion Menu 107

Help Menu 113

# 6 Function Library.... 115

6.1 List of Functions.... 115

6.2 C/C++ Programming Library 121

6.3 Initialization 122

6.4 Pulse Input/Output Configuration.... 125

6.5 Velocity mode motion.... 127

6.6 Single Axis Position Mode 130

6.7 Linear Interpolated Motion 134

6.8 Circular Interpolation Motion.... 137

6.9 Home Return Mode.... 140

6.10 Manual Pulser Motion 143

6.11 Motion Status.... 145

6.12 Motion Interface I/O 147

6.13 Interrupt Control 154

6.14 Position Control and Counters 158

6.15 Position Compare and Latch.... 162

6.16 Continuous Motion.... 166

6.17 Multiple Axes Simultaneous Operation 168

6.18 General-Purposed DIO 171

6.19 Soft Limit 173

6.20 Backlash Compensation / Vibration Suppression 175

6.21 Speed Profile Calculation.... 177

6.22 Return Code.... 180

# 7 Connection Example 183

7.1 General Description of Wiring 183

7.2 Wiring with DIN-68M-J3A.... 183

Pin Assignments: 185

Signal Connections of Interface Circuit .... 190

Mechanical Dimensions: 193

# Appendix 195

8.1 Color code of Mitsubishi servo J3A cable 195

# Important Safety Instructions.... 197

# Getting Service 199

# List of Figures

Figure 1-1: PCI-8102 Block Diagram 2

Figure 1-2: Flow Chart for Building an Application.... 3

Figure 2-1: PCB Layout of the PCI-8102 10

This page intentionally left blank.

# Preface

# Copyright 2011 ADLINK Technology Inc.

This document contains proprietary information protected by copyright. All rights are reserved. No part of this manual may be reproduced by any mechanical, electronic, or other means in any form without prior written permission of the manufacturer.

# Disclaimer

The information in this document is subject to change without prior notice in order to improve reliability, design, and function and does not represent a commitment on the part of the manufacturer.

In no event will the manufacturer be liable for direct, indirect, special, incidental, or consequential damages arising out of the use or inability to use the product or documentation, even if advised of the possibility of such damages.

# Environmental Responsibility

ADLINK is committed to fulfill its social responsibility to global environmental preservation through compliance with the European Union's Restriction of Hazardous Substances (RoHS) directive and Waste Electrical and Electronic Equipment (WEEE) directive. Environmental protection is a top priority for ADLINK. We have enforced measures to ensure that our products, manufacturing processes, components, and raw materials have as little impact on the environment as possible. When products are at their end of life, our customers are encouraged to dispose of them in accordance with the product disposal and/or recovery programs prescribed by their nation or company.

# Trademarks

Product names mentioned herein are used for identification purposes only and may be trademarks and/or registered trademarks of their respective companies.

# Conventions

Take note of the following conventions used throughout this manual to make sure that users perform certain tasks and instructions properly.

![The image displays a digital icon featuring a white document with a folded top-right corner and faint horizontal lines. A large red checkmark is prominently centered on the page.](.pci-8102-50-11136-1020-300-en/cd5dab3aad67f3e59f068360c0c0aed6238febc16ab9c7cdeb2e3d762f5121c4.jpg)
NOTE:

Additional information, aids, and tips that help users perform tasks.

![The image displays a standard yellow triangular warning sign with a black border. In the center is a large, black exclamation mark.](.pci-8102-50-11136-1020-300-en/bb8967e682293893c6687a88f276b9f3b401ad729b961a9f1d439b5166961e78.jpg)
CAUTION:

Information to prevent minor physical injury, component damage, data loss, and/or program corruption when trying to complete a task.

![The image shows a standard warning symbol consisting of a red isosceles triangle with a white border. Inside the triangle is a large white exclamation mark (!). The triangle is positioned above a black horizontal line and below a white background area.](.pci-8102-50-11136-1020-300-en/0ade6d0e3c038110cf7ab217e1671ccaea520b8763cd90c895ed56a88398d331.jpg)
WARNING:

Information to prevent serious physical injury, component damage, data loss, and/or program corruption when trying to complete a specific task.

# 1 Introduction

The PCI-8102 is an advanced 2-axis motion controller card with a PCI interface. It can generate high frequency pulses (6.55MHz) to drive stepper or servomotors. As a motion controller, it can provide 2-axis linear and circular interpolation and continuous interpolation for continuous velocity. Also, changing position/speed on the fly is available with a single axis operation.

Multiple PCI-8102 cards can be used in one system. Incremental encoder interface on all four axes provide the ability to correct positioning errors generated by inaccurate mechanical transmissions. PCI-8102 features the position compare and trigger output function which users can put the comparing points with ADLINK library and sending the triggering pulse to other device. In addition, a mechanical sensor interface, servo motor interface, and general-purposed I/O signals are provided for easy system integration.

Figure 1-1 shows the functional block diagram of the PCI-8102 card. The motion control functions include trapezoidal and S-curve acceleration/deceleration, linear and circular interpolation between two axes and continuous motion positioning, and 13 home return modes. All these functions and complex computations are performed internally by the ASIC, thus it can save CPU loading.

The PCI-8102 also offers three user-friendly functions. The PCI-8102 can let users assign the card index with the DIP switch setting. The value is within 0 to 15. It is useful for machine makers to recognize the card index if the whole control system is very huge. The emergency input pin can let users wire the emergency button to trigger this board to stop sending pulse output once there is any emergency situation happened. For security protection design, users can set the 16-bit value into EEPROM. Users' interface program can uses this EEPROM to secure the software and hardware in order to prevent piracy.

![Based on the provided flowchart, here is the accurate and concise description of the blocks and their connections:\n\n**Labeled Blocks:**\n*   PCI Bus\n*   ROM\n*   CPLD\n*   CardID S1\n*   PLX9052\n*   DC/DC\n*   ASIC\n*   16 DI/O P2\n*   STA/STP K1&2\n*   Digital I/O Isolation\n*   SCSI 68 P1\n\n**Connections:**\n*   **PCI Bus:** Connects bidirectionally to **ROM** and **PLX9052**.\n*   **ROM:** Connects bidirectionally to **PLX9052**.\n*   **PLX9052:** Connects bidirectionally to **CPLD**, **ASIC**, **PCI Bus**, and **ROM**.\n*   **CPLD:** Connects bidirectionally to **CardID S1** and **PLX9052**.\n*   **ASIC:** Connects bidirectionally to **PLX9052**, **Digital I/O Isolation**, **16 DI/O P2**, and **STA/STP K1&2** (connection labeled **VCC**).\n*   **DC/DC:** Connects to **Digital I/O Isolation** via a downward arrow labeled **VDD** and an upward arrow labeled **+24V**.\n*   **SCSI 68 P1:** Located at the bottom of the diagram, below **Digital I/O Isolation**.](.pci-8102-50-11136-1020-300-en/6604e6f57c3a5410dce77d5a1d9c28f7b3d03c8364334e6af2e26e78c5724792.jpg)

Figure 1-1: PCI-8102 Block Diagram

MotionCreatorPro is a Windows-based application development software package included with the PCI-8102. MotionCreatorPro is useful for debugging a motion control system during the design phase of a project. An on-screen display lists all installed axes information and I/O signal status of the PCI-8102.

Windows programming libraries are also provided for C++ compiler and Visual Basic. Sample programs are provided to illustrate the operations of the functions.

Figure 1-2 illustrates a flow chart of the recommended process in using this manual in developing an application. Refer to the related chapters for details of each step.

![The flowchart depicts a process for setting up and verifying a system, with references to specific chapters on the right side.\n\n**Blocks (Top to Bottom):**\n1.  **Hardware Installation**\n    **Jumper Setting**\n    **Wiring**\n    *(Text to right: Chapters 2 & 3)*\n2.  **Using *Motion Creator* to Configure a System**\n    *(Text to right: Chapter 5)*\n3.  **Using *Motion Creator* to Verify Operations**\n    *(Text to right: Chapters 4 & 5)*\n4.  **Using the Function Libraries to Develop Applications**\n    *(Text to right: Chapters 4 & 6)*\n5.  **System is OK?** (Diamond shape)\n6.  **END** (Circle shape)\n\n**Connections:**\n*   An arrow points down from the first block to the second block.\n*   An arrow points down from the second block to the third block.\n*   An arrow points down from the third block to the fourth block.\n*   An arrow points down from the fourth block to the diamond ('System is OK?').\n*   From the diamond, a path labeled **'Yes'** points down to the **'END'** circle.\n*   From the diamond, a path labeled **'No'** points to the left and travels up a vertical line on the left side. This line splits into two arrows pointing right: one points back into the second block ('Using *Motion Creator* to Configure a System') and the other points into the fourth block ('Using the Function Libraries to Develop Applications').](.pci-8102-50-11136-1020-300-en/69dff7a3a015ca53365f298515e18e25b048c4afc816737a1669169e3022a980.jpg)

Figure 1-2: Flow Chart for Building an Application

# 1.1 Features

The following list summarizes the main features of the PCI-8102 motion control system.

▶ 32-bit PCI bus Plug and Play
▶ 2 axes of step and direction pulse output for controlling stepping or servomotor
▶ Maximum output frequency of 6.55 MPPS
▶ Pulse output options: OUT/DIR, CW/CCW
▶ Programmable acceleration and deceleration time for all modes
▶ Trapezoidal and S-curve velocity profiles for all modes
▶ 2 axes linear / circular interpolation
▶ Continuous interpolation for contour following motion
▶ Change position and speed on the fly
▶ 13 home return modes with auto searching
▶ Hardware backlash compensator and vibration suppression
▶ 2 software end-limits for each axis
▶ 28-bit up/down counter for incremental encoder feedback
▶ Home switch, index signal (EZ), positive, and negative end limit switches interface on all axes
▶ 2-axis high speed position latch input
▶ 2-axis position compare trigger output
▶ All digital input and output signals are 2500Vrms isolated
▶ Programmable interrupt sources
▶ Simultaneous start/stop motion on multiple axes
▶ Manual pulser input interface
▶ Card index selection
▶ Security protection on EERPOM
▶ Dedicated emergency input pin for wiring
▶ Software supports a maximum of up to 12 PCI-8102 cards operation in one system
▶ Compact PCB design
▶ Includes MotionCreatorPro, a Microsoft Windows-based

application development software

PCI-8102 libraries and utilities for Windows 2000/XP/7

# 1.2 Specifications

▶ Applicable Motors:

Stepping motors
▷ AC or DC servomotors with pulse train input servo drivers

▶ Performance:

▶ Number of controllable axes: 2
▷ Maximum pulse output frequency: 6.55MPPS, linear, trapezoidal, or S-Curve velocity profile drive
▷ Internal reference clock: 19.66 MHz
28-bit up/down counter range: 0-268,435,455 or -134,217,728 to +134,217,727
▷ Position pulse setting range (28-bit): -134,217,728 to +134,217,728
▷ Pulse rate setting range (Pulse Ratio = 1: 65535):

0.1 PPS to 6553.5 PPS. (Multiplier = 0.1)

1 PPS to 65535 PPS. (Multiplier = 1)

# 100 PPS to 6553500 PPS. (Multiplier = 100)

# ▶ I/O Signals:

▷ Input/Output signals for each axis
All I/O signal are optically isolated with 2500Vrms isolation voltage
▷ Command pulse output pins: OUT and DIR
▶ Incremental encoder signals input pins: EA and EB
▷ Encoder index signal input pin: EZ
▶ Mechanical limit/switch signal input pins: ±EL, SD/PCS, and ORG
▷ Servomotor interface I/O pins: INP, ALM, and ERC
▷ Position latch input pin: LTC
▷ Position compare output pin: CMP
▷ General-purposed digital output pin: SVON
▷ General-purposed digital input pin: RDY
▷ Pulse signal input pin: PA and PB (with isolation)
▷ Simultaneous Start/Stop signal: STA and STP
Emergency input signal: EMG

# ▶ General-Purpose Output

▷ 20 digital inputs / 18 digital outputs

# ▶ General Specifications

▷ Connectors: 68-pin SCSI-type connector
▶ Operating Temperature: 0°C - 50°C
Storage Temperature: -20°C - 80°C
▷ Humidity: 5 - 85%, non-condensing

# ▶ Power Consumption

▷ Slot power supply (input): +5V DC ±5%, 900mA max
▷ External power supply (input): +24V DC ±5%, 500mA max
▷ External power supply (output): +5V DC ±5%, 500mA, max

PCI-8102 Dimension (PCB size): 120mm(L) X 100mm(W)

# 1.3 Supported Software

# Programming Library

Windows 2000/XP/7 (32bit/64bit) DLLs are provided for PCI-8102 users. These function libraries are shipped with the board.

# MotionCreatorPro

This Windows-based utility is used to setup cards, motors, and systems. It can also aid in debugging hardware and software problems. It allows users to set I/O logic parameters to be loaded in their own program. This product is also bundled with the card.

Refer to Chapter 5 for more details.

# 1.4 Available Terminal Board

ADLINK provides a variety of specific terminal boards for connection to individual servos, such as Mitsubishi J2S, J3A, Panasonic MINAS A4, Yaskawa Sigma II, III and V, as well as a DIN-68S0 board for general purpose usage. Available terminal boards are available as follows.

<table><tr><td>PCI-1802 Terminal Board</td><td>Corresponding Servo Driver</td><td>Board Appearance</td></tr><tr><td>DIN-68M-J2A0</td><td>Mitsubishi J2S series</td><td>&lt;img src="images/cd3a62c1f7304d583109647b47a8765a2c471c6b0183c6a283fd9c5782875415.jpg"/&gt;</td></tr><tr><td>DIN-68M-J3A0</td><td>Mitsubishi J3A series</td><td>&lt;img src="images/0c667467c375593f6924b07798366578f4ca60909014686304a0704d56f3747a.jpg"/&gt;</td></tr><tr><td>DIN-68P-A40</td><td>Panasonic MINAS A4 and A5 series</td><td>&lt;img src="images/3c2922a2f5abdb97463440bee19c2ca4bcfcfdc0983a3436a4e8a9209705263f.jpg"/&gt;</td></tr><tr><td>DIN-68Y-SGII0</td><td>Yaskawa Sigma II, III and V series</td><td>&lt;img src="images/1073e8f4a40bbb983317853fa314595e092c1c0f33557a93ec2efdc522bb4b94.jpg"/&gt;</td></tr><tr><td>DIN-68S0</td><td>General Purpose</td><td>&lt;img src="images/00944aaf8df367318f0acae831cd7341d977b39afbebe48574a8a37724c9024a.jpg"/&gt;</td></tr></table>

This page intentionally left blank.

# 2 Installation

This chapter describes how to install the PCI-8102 series. Please follow these steps below:

▶ Check what you have (section 2.1)
▶ Check the PCB (section 2.2)
▶ Install the hardware (section 2.3)
▶ Install the software driver (section 2.4)
▶ Understanding the I/O signal connections (chapter 3) and their operation (chapter 4)
▶ Understanding the connector pin assignments (the remaining sections) and wiring the connections

# 2.1 Package Contents

In addition to this User's Guide, the package also includes the following items:

PCI-8102: advanced 2-Axis Servo / Stepper Motion Control Card
▶ Extension cable: DB37FM-IDC44 flat cable
▶ ADLINK All-in-one Compact Disc

If any of these items are missing or damaged, contact the dealer from whom you purchased the product. Save the shipping materials and carton to ship or store the product in the future.

# 2.2 PCI-8102 Outline Drawing

![121.75\n119.91\nP2\nK1\nK2\n128.35\n100.33\nADLINK\nJ13\nJ12\nJ9 J8\nJ10 J11\nJ14\nSW1\n106.66](.pci-8102-50-11136-1020-300-en/dea252f1009d1aca490712110a7b345155f84de2b50c3331624058827a13b959.jpg)

Figure 2-1: PCB Layout of the PCI-8102

P1: Input / Output Signal Connector (68-pin)

P2: 16 Digital Input / Output Signals Connector

K1 / K2: Simultaneous Start / Stop Connector

SW1: DIP switch for card index selection (0-15)

J8-J11: Pulse output selection jumper

J12/J13: CMP output interface selection jumper

J14: EMG input signal setting

# 2.3 PCI-8102 Hardware Installation

# 2.3.1 Hardware Configuration

The PCI-8102 is fully Plug and Play compliant. Hence memory allocation (I/O port locations) and IRQ channel of the PCI card are assigned by the system BIOS. The address assignment is done on a board-by-board basis for all PCI cards in the system.

# 2.3.2 PCI Slot Selection

Your computer system may have both PCI and ISA slots. Do not force the PCI card into a PC/AT slot. The PCI-8102 can be used in any PCI slot.

# 2.3.3 Installation Procedures

1. Read through this manual and setup the jumper according to your application
2. Turn off your computer. Turn off all accessories (printer, modem, monitor, etc.) connected to computer. Remove the cover from your computer.
3. Select a 32-bit PCI/PXI expansion slot. PCI slots are shorter than ISA or EISA slots and are usually white or ivory.
4. Before handling the PCI-8102, discharge any static buildup on your body by touching the metal case of the computer. Hold the edge of the card and do not touch the components.
5. Position the board into the PCI slot you have selected.
6. Secure the card in place at the rear panel of the system unit using screws removed from the slot.

# 2.3.4 Troubleshooting

If your system doesn't boot or if you experience erratic operation with your PCI board in place, it's most likely caused by an interrupt conflict (possibly an incorrect ISA setup). In general, the solution, once determined it is not a simple oversight, is to consult the BIOS documentation that comes with your system.

Check the control panel of the Windows system if the card is listed by the system. If not, check the PCI settings in the BIOS or use another PCI slot.

# 2.4 Software Driver Installation

# PCI-8102:

1. Auto run the ADLINK All-In-One CD. Choose Driver Installation -> Motion Control -> PCI-8102.
2. Follow the procedures of the installer.
3. After setup installation is completed, restart windows.

Suggestion: Please download the latest software from ADLINK website if necessary.

# 2.5 P1 Pin Assignments: Main connector

P1 is the major connector for the motion control I/O signals.

<table><tr><td>No.</td><td>Name</td><td>I/O</td><td>Function Axis 0</td><td>No.</td><td>Name</td><td>I/O</td><td>Function Axis 1</td></tr><tr><td>1</td><td>VPP</td><td>O</td><td>Isolated +5V Output</td><td>35</td><td>VPP</td><td>O</td><td>Isolated +5V Output</td></tr><tr><td>2</td><td>EXGND</td><td>-</td><td>Ext. power ground</td><td>36</td><td>EXGND</td><td>-</td><td>Ext. power ground</td></tr><tr><td>3</td><td>OUT0+</td><td>O</td><td>Pulse signal (+)</td><td>37</td><td>OUT1+</td><td>O</td><td>Pulse signal (+)</td></tr><tr><td>4</td><td>OUT0-</td><td>O</td><td>Pulse signal (-)</td><td>38</td><td>OUT1-</td><td>O</td><td>Pulse signal (-)</td></tr><tr><td>5</td><td>DIR0+</td><td>O</td><td>Dir. signal (+)</td><td>39</td><td>DIR1+</td><td>O</td><td>Dir. signal (+)</td></tr><tr><td>6</td><td>DIR0-</td><td>O</td><td>Dir. signal (-)</td><td>40</td><td>DIR1-</td><td>O</td><td>Dir. signal (-)</td></tr><tr><td>7</td><td>SVON0</td><td>O</td><td>Servo On/Off</td><td>41</td><td>SVON1</td><td>O</td><td>Servo On/Off</td></tr><tr><td>8</td><td>ERC0</td><td>O</td><td>Dev. ctr, clr. signal</td><td>42</td><td>ERC1</td><td>O</td><td>Dev. ctr, clr. Signal</td></tr><tr><td>9</td><td>ALM0</td><td>I</td><td>Alarm signal</td><td>43</td><td>ALM1</td><td>I</td><td>Alarm signal</td></tr><tr><td>10</td><td>INP0</td><td>I</td><td>In-position signal</td><td>44</td><td>INP1</td><td>I</td><td>In-position signal</td></tr><tr><td>11</td><td>RDY0</td><td>I</td><td>Multi-purpose input signal</td><td>45</td><td>RDY1</td><td>I</td><td>Multi-purpose input signal</td></tr><tr><td>12</td><td>EA0+</td><td>I</td><td>Encoder A-phase (+)</td><td>46</td><td>EA1+</td><td>I</td><td>Encoder A-phase (+)</td></tr><tr><td>13</td><td>EA0-</td><td>I</td><td>Encoder A-phase (-)</td><td>47</td><td>EA1-</td><td>I</td><td>Encoder A-phase (-)</td></tr><tr><td>14</td><td>EB0+</td><td>I</td><td>Encoder B-phase (+)</td><td>48</td><td>EB1+</td><td>I</td><td>Encoder B-phase (+)</td></tr><tr><td>15</td><td>EB0-</td><td>I</td><td>Encoder B-phase (-)</td><td>49</td><td>EB1-</td><td>I</td><td>Encoder B-phase (-)</td></tr><tr><td>16</td><td>EZ0+</td><td>I</td><td>Encoder Z-phase (+)</td><td>50</td><td>EZ1+</td><td>I</td><td>Encoder Z-phase (+)</td></tr><tr><td>17</td><td>EZ0-</td><td>I</td><td>Encoder Z-phase (-)</td><td>51</td><td>EZ1-</td><td>I</td><td>Encoder Z-phase (-)</td></tr><tr><td>18</td><td>VPP</td><td>O</td><td>Isolated +5V Output</td><td>52</td><td>VPP</td><td>O</td><td>Isolated +5V Output</td></tr></table>

Table 2-1: P1 Pin Assignment

<table><tr><td>No.</td><td>Name</td><td>I/O</td><td>Function Axis 0</td><td>No.</td><td>Name</td><td>I/O</td><td>Function Axis 1</td></tr><tr><td>19</td><td>N/C</td><td></td><td></td><td>53</td><td>EXGND</td><td>-</td><td>Ext. power ground</td></tr><tr><td>20</td><td>PEL0</td><td>I</td><td>End limit signal (+)</td><td>54</td><td>PEL1</td><td>I</td><td>End limit signal (+)</td></tr><tr><td>21</td><td>MEL0</td><td>I</td><td>End limit signal (-)</td><td>55</td><td>MEL1</td><td>I</td><td>End limit signal (-)</td></tr><tr><td>22</td><td>EXGND</td><td>-</td><td>Ext. power ground</td><td>56</td><td>EXGND</td><td>-</td><td>Ext. power ground</td></tr><tr><td>23</td><td>LTC/SD/PCS0/CLR0</td><td>I</td><td>Composite Funtion (Default: LTC)</td><td>57</td><td>LTC/SD/PCS1/CLR1</td><td>I</td><td>Composite Funtion (Default: LTC)</td></tr><tr><td>24</td><td>ORG0</td><td>I</td><td>Origin signal</td><td>58</td><td>ORG1</td><td>I</td><td>Origin signal</td></tr><tr><td>25</td><td>N/C</td><td></td><td></td><td>59</td><td>EXGND</td><td>-</td><td>Ext. power ground</td></tr><tr><td>26</td><td>PA+_ISO</td><td>I</td><td>Manual Pulser Input A</td><td>60</td><td>EMG</td><td>I</td><td>Emergency Input</td></tr><tr><td>27</td><td>PA-_ISO</td><td>I</td><td>Manual Pulser Input A</td><td>61</td><td>DINO</td><td>I</td><td>Digital Input 0</td></tr><tr><td>28</td><td>PB+_ISO</td><td>I</td><td>Manual Pulser Input B</td><td>62</td><td>DIN1</td><td>I</td><td>Digital Input 1</td></tr><tr><td>29</td><td>PB-_ISO</td><td>I</td><td>Manual Pulser Input B</td><td>63</td><td>DIN2</td><td>I</td><td>Digital Input 2</td></tr><tr><td>30</td><td>CMP0</td><td>O</td><td>TTL Compare Output 0</td><td>64</td><td>DIN3</td><td>I</td><td>Digital Input 3</td></tr><tr><td>31</td><td>CMP1</td><td>O</td><td>TTL Compare Output 1</td><td>65</td><td>DOUT0</td><td>O</td><td>Digital Output 0,SVO RST</td></tr><tr><td>32</td><td>EXGND</td><td>-</td><td>Ext. power ground</td><td>66</td><td>DOUT1</td><td>O</td><td>Digital Output 1,SVO RST</td></tr><tr><td>33</td><td>EXGND</td><td>-</td><td>Ext. power ground</td><td>67</td><td>EXGND</td><td>-</td><td>Ext. power ground</td></tr><tr><td>34</td><td>EX+24V</td><td>I</td><td>+24V isolation power input</td><td>68</td><td>EX+24V</td><td>I</td><td>+24V isolation power input</td></tr></table>

Table 2-1: P1 Pin Assignment

# 2.6 P2 Pin Assignment: Digital Inputs / Outputs

P2 is the second connector for the additional 16 DI/O signals.

<table><tr><td>No.</td><td>Name</td><td>I/O</td><td>Function</td><td>No.</td><td>Name</td><td>I/O</td><td>Function</td></tr><tr><td>1</td><td>EX_GND</td><td>--</td><td>External Power Ground</td><td>2</td><td>EX_GND</td><td>--</td><td>External Power Ground</td></tr><tr><td>3</td><td>DI0</td><td>I</td><td>Discrete Input Channel 0</td><td>4</td><td>DI1</td><td>I</td><td>Discrete Input Channel 1</td></tr><tr><td>5</td><td>DI2</td><td>I</td><td>Discrete Input Channel 2</td><td>6</td><td>DI3</td><td>I</td><td>Discrete Input Channel 3</td></tr><tr><td>7</td><td>DI4</td><td>I</td><td>Discrete Input Channel 4</td><td>8</td><td>DI5</td><td>I</td><td>Discrete Input Channel 5</td></tr><tr><td>9</td><td>VDD</td><td>O</td><td>External +5V Power</td><td>10</td><td>EX_GND</td><td>--</td><td>External Power Ground</td></tr><tr><td>11</td><td>DI6</td><td>I</td><td>Discrete Input Channel 6</td><td>12</td><td>DI7</td><td>I</td><td>Discrete Input Channel 7</td></tr><tr><td>13</td><td>DI8</td><td>I</td><td>Discrete Input Channel 8</td><td>14</td><td>DI9</td><td>I</td><td>Discrete Input Channel 9</td></tr><tr><td>15</td><td>DI10</td><td>I</td><td>Discrete Input Channel 10</td><td>16</td><td>DI11</td><td>I</td><td>Discrete Input Channel 11</td></tr><tr><td>17</td><td>EX_GND</td><td>--</td><td>External Power Ground</td><td>18</td><td>EX_GND</td><td>--</td><td>External Power Ground</td></tr><tr><td>19</td><td>DI12</td><td>I</td><td>Discrete Input Channel 12</td><td>20</td><td>DI13</td><td>I</td><td>Discrete Input Channel 13</td></tr><tr><td>21</td><td>DI14</td><td>I</td><td>Discrete Input Channel 14</td><td>22</td><td>DI15</td><td>I</td><td>Discrete Input Channel 15</td></tr><tr><td>23</td><td>DO0</td><td>O</td><td>Discrete Output Channel 0</td><td>24</td><td>DO1</td><td>O</td><td>Discrete Output Channel 1</td></tr><tr><td>25</td><td>DO2</td><td>O</td><td>Discrete Output Channel 2</td><td>26</td><td>DO3</td><td>O</td><td>Discrete Output Channel 3</td></tr><tr><td>27</td><td>EX_GND</td><td>--</td><td>External Power Ground</td><td>28</td><td>EX_GND</td><td>--</td><td>External Power Ground</td></tr><tr><td>29</td><td>DO4</td><td>O</td><td>Discrete Output Channel 4</td><td>30</td><td>DO5</td><td>O</td><td>Discrete Output Channel 5</td></tr><tr><td>31</td><td>DO6</td><td>O</td><td>Discrete Output Channel 6</td><td>32</td><td>DO7</td><td>O</td><td>Discrete Output Channel 7</td></tr></table>

Table 2-2: P2 Pin Assignment

<table><tr><td>No.</td><td>Name</td><td>I/O</td><td>Function</td><td>No.</td><td>Name</td><td>I/O</td><td>Function</td></tr><tr><td>33</td><td>DO8</td><td>O</td><td>Discrete Output Channel 8</td><td>34</td><td>DO9</td><td>O</td><td>Discrete Output Channel 9</td></tr><tr><td>35</td><td>EX_GND</td><td>--</td><td>External Power Ground</td><td>36</td><td>VDD</td><td>O</td><td>External +5V Power</td></tr><tr><td>37</td><td>DO10</td><td>O</td><td>Discrete Output Channel 10</td><td>38</td><td>DO11</td><td>O</td><td>Discrete Output Channel 11</td></tr><tr><td>39</td><td>DO12</td><td>O</td><td>Discrete Output Channel 12</td><td>40</td><td>DO13</td><td>O</td><td>Discrete Output Channel 13</td></tr><tr><td>41</td><td>DO14</td><td>O</td><td>Discrete Output Channel 14</td><td>42</td><td>DO15</td><td>O</td><td>Discrete Output Channel 15</td></tr><tr><td>43</td><td>EX_GND</td><td>--</td><td>External Power Ground</td><td>44</td><td>EX_GND</td><td>--</td><td>External Power Ground</td></tr></table>

Table 2-2: P2 Pin Assignment

# 2.7 K1/K2 Pin Assignments: Simultaneous Start/Stop

CN4 is for simultaneous start/stop signals for multiple axes or multiple cards.

<table><tr><td>No.</td><td>Name</td><td>Function (Axis)</td></tr><tr><td>1</td><td>+5V</td><td>PCI Bus power Output (VCC)</td></tr><tr><td>2</td><td>STA</td><td>Simultaneous start signal input/output</td></tr><tr><td>3</td><td>STP</td><td>Simultaneous stop signal input/output</td></tr><tr><td>4</td><td>GND</td><td>PCI Bus power ground</td></tr></table>

Note: +5V and GND pins are provided by the PCI Bus power.

# 2.8 Jumper Settings for Pulse Output

J8-J11 are used to set the type of pulse output signals (DIR and OUT). The output signal type can either be differential line driver or open collector output. Refer to section 3.1 for detail jumper settings. The default setting is differential line driver mode. The default setting is differential line driver mode. J8 & J9 are for axis 0; J10 & J11 are for axis 1.

![The image displays a block diagram with four connector blocks arranged horizontally. From left to right, the blocks are labeled **J10**, **J9**, **J11**, and **J8**. Each block contains a schematic symbol with two upper pins and a lower key circle.\n\nTo the left of the **J10** block, there are two text labels with connections:\n*   **Line Driver**: An arrow points from this label to the number **1**.\n*   **Open Collector**: An arrow points from this label to the number **3**.\n\nThe number **2** appears vertically between 1 and 3 but has no connections.](.pci-8102-50-11136-1020-300-en/5cf1f3099acdfd09be0ed9abf03ffef6beca4b8fce28709c43b0866b917fe0d1.jpg)

# 2.9 CMP & EMG Interface Settings

Jumpers J12 and J13 identify the CMP signal output interface as Pull-Up or OPEN-Collector, with the latter requiring pull up of the CMP signal.

To reduce evaluation and debugging, the PCI-8102 provides the jumper J14 to enable or disable EMG function as the following setting.

12 & J13

1

![The image is a black-and-white line drawing of a vertical traffic light. It features a tall rectangular outline enclosing three circles stacked vertically. The top two circles are solid black, while the bottom circle is hollow.](.pci-8102-50-11136-1020-300-en/2183086ea291939ba5ee704d469581e183d928a71faeefd0f02a6ab3b102a894.jpg)

Pull-up: CMP signal is pulled up to VDD (+5 V)

3

Open-collector

14

1

![The image is a black and white line drawing depicting a vertical rectangular device or sign. Inside the upper portion of the frame, there are two large white circles stacked vertically. In the lower portion, there is a single smaller white circle enclosed within a small rectangular box. The entire device is framed by thick black vertical lines on the left and right sides. There is no text in the image.](.pci-8102-50-11136-1020-300-en/f3ba48cd8f8138c317374bb3c6f512d7ea82010dcda2d46104a36d1dfdf780a4.jpg)

EMG disabled (Debug)

3

EMG enabled (Normal)

# 2.10 Switch Setting for card index

The SW1 switch is used to set the card index. For example, if you turn 1 to ON and others are OFF. It means the card index as 1. The value is from 0 to 15. Refer to the following table for details.

![ON\n1 2 3 4](.pci-8102-50-11136-1020-300-en/67a413eb822246874395c278c2a50e5cd62b499f62e546530ad49a26eb897980.jpg)

<table><tr><td>Card ID</td><td>Switch Setting (ON=1)</td></tr><tr><td>0</td><td>0000</td></tr><tr><td>1</td><td>0001</td></tr><tr><td>2</td><td>0010</td></tr><tr><td>3</td><td>0011</td></tr><tr><td>4</td><td>0100</td></tr><tr><td>5</td><td>0101</td></tr><tr><td>6</td><td>0110</td></tr><tr><td>7</td><td>0111</td></tr><tr><td>8</td><td>1000</td></tr><tr><td>9</td><td>1001</td></tr><tr><td>10</td><td>1010</td></tr><tr><td>11</td><td>1011</td></tr><tr><td>12</td><td>1100</td></tr><tr><td>13</td><td>1101</td></tr><tr><td>14</td><td>1110</td></tr><tr><td>15</td><td>1111</td></tr></table>

This page intentionally left blank.

# 3 Signal Connections

Signal connections of all I/O's are described in this chapter. Refer to the contents of this chapter before wiring any cables between the 8102 and any motor drivers.

# 3.1 Pulse Output Signals OUT and DIR

There are 2 axis pulse output signals on the PCI-8102. For each axis, two pairs of OUT and DIR signals are used to transmit the pulse train and to indicate the direction. The OUT and DIR signals can also be programmed as CW and CCW signal pairs. Refer to section 4.1 for details of the logical characteristics of the OUT and DIR signals. In this section, the electrical characteristics of the OUT and DIR signals are detailed. Each signal consists of a pair of differential signals. For example, OUT0 consists of OUT0+ and OUT0- signals. The following table shows all pulse output signals on P1.

<table><tr><td>P1 Pin No.</td><td>Signal Name</td><td>Description</td><td>Axis #</td></tr><tr><td>3</td><td>OUT0+</td><td>Pulse signals (+)</td><td>1</td></tr><tr><td>4</td><td>OUT0-</td><td>Pulse signals (-)</td><td>1</td></tr><tr><td>5</td><td>DIR0+</td><td>Direction signal (+)</td><td>1</td></tr><tr><td>6</td><td>DIR0-</td><td>Direction signal (-)</td><td>1</td></tr><tr><td>37</td><td>OUT1+</td><td>Pulse signals (+)</td><td>2</td></tr><tr><td>38</td><td>OUT1-</td><td>Pulse signals (-)</td><td>2</td></tr><tr><td>39</td><td>DIR1+</td><td>Direction signal (+)</td><td>2</td></tr><tr><td>40</td><td>DIR1-</td><td>Direction signal (-)</td><td>2</td></tr></table>

The output of the OUT or DIR signals can be configured by jumpers as either differential line drivers or open collector output. Users can select the output mode either by shorting pins 1 and 2 or 2 and 3 of jumpers J8-J11 as follows:

<table><tr><td>Output Signal</td><td>For differential line driver output, short pins 1 and 2 of:</td><td>For open collector output, short pins 2 and 3 of:</td></tr><tr><td>OUT0-</td><td>J8</td><td>J8</td></tr><tr><td>DIR0-</td><td>J9</td><td>J9</td></tr><tr><td>OUT1-</td><td>J10</td><td>J10</td></tr><tr><td>DIR1-</td><td>J11</td><td>J11</td></tr></table>

The default setting of OUT and DIR is set to differential line driver mode. The following wiring diagram is for OUT and DIR signals on the 2 axes.

PCI-8102:
![VCC\n4.7K\n26LS31\nJ8-J11\nVDD\nOUT+/DIR+\nOUT-/DIR-\nEXGND](.pci-8102-50-11136-1020-300-en/b8dda8b1dd37b998a1becfa4383ed62903e6f53e6561efaf6a0805f42498122c.jpg)

NOTE: If the pulse output is set to open collector output mode, OUT- and DIR- are used to transmit OUT signals. The sink current must not exceed 20mA on the OUT- and DIR- pins. The default setting of jumper is 1-2 shorted. The default setting is 1-2 shorted.

Suggest Usage: Jumper 2-3 shorted and connect OUT+/DIR+ to a 470 ohm pulse input interface's COM of driver. See the following figure.

![Inside Motion Card\nVDD (+5V)\nOUT+, DIR+\nOUT-, DIR-\nEXGND\n+5V\nInside Motor Driver\n470 Ohm](.pci-8102-50-11136-1020-300-en/3f94b08cac2b4f257651f3805555b6a0143aaaf57a7b955bcbf2b13a60e20b04.jpg)

Warning: The sink current must not exceed 20mA or the 26LS31 will be damaged.

# 3.2 Encoder Feedback Signals EA, EB and EZ

The encoder feedback signals include EA, EB, and EZ. Every axis has six pins for three differential pairs of phase-A (EA), phase-B (EB), and index (EZ) inputs. EA and EB are used for position counting, and EZ is used for zero position indexing. Its relative signal names, pin numbers, and axis numbers are shown as follows:

<table><tr><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td></tr><tr><td>12</td><td>EA0+</td><td>1</td><td>13</td><td>EA0-</td><td>1</td></tr><tr><td>14</td><td>EB0+</td><td>1</td><td>15</td><td>EB0-</td><td>1</td></tr><tr><td>46</td><td>EA1+</td><td>2</td><td>47</td><td>EA1-</td><td>2</td></tr><tr><td>48</td><td>EA1+</td><td>2</td><td>49</td><td>EA1-</td><td>2</td></tr></table>

<table><tr><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td></tr><tr><td>16</td><td>EZ0+</td><td>1</td><td>17</td><td>EZ0-</td><td>1</td></tr><tr><td>50</td><td>EZ1+</td><td>2</td><td>51</td><td>EZ1-</td><td>2</td></tr></table>

The input circuit of the EA, EB, and EZ signals is shown as follows:

![Inside 8102\nMotion IC\nEA, EB, EZ\nHP0631\nR = 330 Ohm\nC = 100 p\nP1\nEA+, EB+, EZ+\nEA-, EB-\nEZ-](.pci-8102-50-11136-1020-300-en/c97b20eb27b1f515364f68408606ba4e9ed72248c40fcaf7902756ec87fa0577.jpg)

Please note that the voltage across each differential pair of encoder input signals (EA+, EA-), (EB+, EB-), and (EZ+, EZ-) should be at least 3.5V. Therefore, the output current must be observed when connecting to the encoder feedback or motor driver feedback as not to over drive the source. The differential signal pairs are converted to digital signals EA, EB, and EZ; then feed to the motion control ASIC.

Below are examples of connecting the input signals with an external circuit. The input circuit can be connected to an encoder or motor driver if it is equipped with: (1) a differential line driver or (2) an open collector output.

# Connection to Line Driver Output

To drive the PCI-8102 encoder input, the driver output must provide at least 3.5V across the differential pairs with at least 6mA driving capacity. The grounds of both sides must be tied together. The maximum frequency will be 6.5Mhz or more depends on wiring distance and signal conditioning.

![Inside\n8102\nEA+,EB+,EZ+\nEA-, EB-, EZ-\nEGND\nExternal Encoder / Driver\nWith line driver output\nA,B phase signals\nIndex signal\nGND](.pci-8102-50-11136-1020-300-en/775594e5efd6ec92c89200ff4622d76383ef61e8391306c0390992b984b84033.jpg)

# Connection to Open Collector Output

To connect with an open collector output, an external power supply is necessary. Some motor drivers can provide the power source. The connection between the PCI-8102, encoder, and the power supply is shown in the diagram below. Note that an external current limiting resistor R is necessary to protect the PCI-8102 input circuit. The following table lists the suggested resistor values according to the encoder power supply.

<table><tr><td>Encoder Power (V)</td><td>External Resistor R</td></tr><tr><td>+5V</td><td>0Ω(None)</td></tr><tr><td>+12V</td><td>1.8kΩ</td></tr><tr><td>+24V</td><td>4.3kΩ</td></tr></table>

If max power = 6mA

![Inside\nPCI-8102\nEA+, EB+, EZ+\nR\nV\nGND\nExternal Power for Encoder\nMotor Encoder / Driver\nWith Open Collector Output\nEA-, EB-, EZ-\nA, B phase signals\nIndex signal](.pci-8102-50-11136-1020-300-en/55e645eab8af2ad90eebea45d8cafd83779727553c08180d1f045d73d127515d.jpg)

For more operation information on the encoder feedback signals, refer to section 4.4.

# 3.3 EMG Emergency Stop

An emergency stop input channel is provided, as shown. When the EMG signal is active, all motion pulse output command is rejected until the EMG is deactivated. The emergency stop switch is set to B-type (Normal-Closed), requiring normal connection to ground.

<table><tr><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td></tr><tr><td>60</td><td>EMG</td><td>1 &amp; 2</td></tr></table>

![VCC\nInside 8102\nTo motion IC\n2.2K\nI_24V\n1V max\nDGND\nPS2805\nP1\nORG\n← Switch\nEGND](.pci-8102-50-11136-1020-300-en/0adf395b9a59f51258a3f70c40bf6da950f625190a269784a51d0d0a196b885f.jpg)

# 3.4 Origin Signal ORG

The origin signals (ORG0\~ORG1) are used as input signals for the origin of the mechanism. The following table lists signal names, pin numbers, and axis numbers:

<table><tr><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td></tr><tr><td>24</td><td>ORG0</td><td>1</td></tr><tr><td>58</td><td>ORG1</td><td>2</td></tr></table>

The input circuit of the ORG signals is shown below. Usually, a limit switch is used to indicate the origin on one axis. The specifications of the limit switch should have contact capacity of +24V @ 6mA minimum. An internal filter circuit is used to filter out any high frequency spikes, which may cause errors in the operation.

![VCC\nInside 8102\nTo motion IC\n2.2K\nI_24V\n1V max\nDGND\nPS2805\nEGND\nP1\nORG\n← Switch](.pci-8102-50-11136-1020-300-en/cf2c0876dda87b0cf24bf2cf2982e56d864bf1625b23c0046ed9ec6c0fd1e9ae.jpg)

When the motion controller is operated in the home return mode, the ORG signal is used to inhibit the control output signals (OUT and DIR). For detailed operations of the ORG signal, refer to section 4.3.

# 3.5 End-Limit Signals PEL and MEL

There are two end-limit signals PEL and MEL for each axis. PEL indicates the end limit signal is in the plus direction and MEL indicates the end limit signal is in the minus direction. The signal names, pin numbers, and axis numbers are shown in the table below:

<table><tr><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td></tr><tr><td>20</td><td>PEL0</td><td>1</td><td>21</td><td>MEL0</td><td>1</td></tr><tr><td>54</td><td>PEL1</td><td>2</td><td>55</td><td>MEL1</td><td>2</td></tr></table>

A circuit diagram is shown in the diagram below. The external limit switch should have a contact capacity of +24V @ 8mA minimum. Either 'A-type' (normal open) contact or 'B-type' (normal closed) contact switches can be used. To set the active logic of the external limit signal, please refer to the explanation of \_8102\_set\_limit\_logic function.

![To motion IC\nVCC\nInside 8102\nI_24V\n2.2K\n1V Max\nP1\nDGND\nPS2805\nCEL\nMEL\nEGND\nSwitch](.pci-8102-50-11136-1020-300-en/deac190b78c5a1a14c8f12a6aa13cc390becfcbf98ba858305db56fc076e3d80.jpg)

# 3.6 In-Position Signal INP

The in-position signal INP from a servo motor driver indicates its deviation error. If there is no deviation error then the servo's position indicates zero. The signal names, pin numbers, and axis numbers are shown in the table below:

<table><tr><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td></tr><tr><td>10</td><td>INP0</td><td>1</td></tr><tr><td>44</td><td>INP1</td><td>2</td></tr></table>

The input circuit of the INP signals is shown in the diagram below:

![VCC\nTo motion IC\nPS2805\nR = 330 Ohm\nVDD (+5V)\nDGND\n0.5V Max.\nP1\nInP\nInside 8102](.pci-8102-50-11136-1020-300-en/8e4466b4dacb28d6ae6fa5edb95ba33a4ba6cfa4e4501914888a8f92ec110754.jpg)

The in-position signal is usually generated by the servomotor driver and is ordinarily an open collector output signal. An external circuit must provide at least 8mA current sink capabilities to drive the INP signal.

# 3.7 Alarm Signal ALM

The alarm signal ALM is used to indicate the alarm status from the servo driver. The signal names, pin numbers, and axis numbers are shown in the table below:

<table><tr><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td></tr><tr><td>9</td><td>ALM0</td><td>1</td></tr><tr><td>43</td><td>ALM1</td><td>2</td></tr></table>

The input alarm circuit is shown below. The ALM signal usually is generated by the servomotor driver and is ordinarily an open collector output signal. An external circuit must provide at least 8mA current sink capabilities to drive the ALM signal.

![VCC\nInside 8102\nTo motion IC\nPS2805\nR = 330 Ohm\nVDD (+5V)\nDGND\n0.5V Max.\nALM\nP1](.pci-8102-50-11136-1020-300-en/ddc22712f683b4e9d67541757818876d522f6275f8b49d6f38480aca795e7fb7.jpg)

# 3.8 Deviation Counter Clear Signal ERC

The deviation counter clear signal (ERC) is active in the following 4 situations:

1. Home return is complete
2. End-limit switch is active
3. An alarm signal stops OUT and DIR signals
4. An emergency stop command is issued by software (operator)

The signal names, pin numbers, and axis numbers are shown in the table below:

<table><tr><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td></tr><tr><td>8</td><td>ERC0</td><td>1</td></tr><tr><td>42</td><td>ERC1</td><td>2</td></tr></table>

The ERC signal is used to clear the deviation counter of the servo-motor driver. The ERC output circuit is an open collector with a maximum of 35V at 50mA driving capacity.

![VCC\nFrom motion IC\nPS2805\n35V @ 50mA Maximum\nInside 8102\nP1\nERC\nEGND](.pci-8102-50-11136-1020-300-en/e3e28ec5033b43ebc64408952c810cc74e687d6d168987ef77ac29bcf34b7224.jpg)

# 3.9 General-Purpose Signal SVON

The SVON signal can be used as a servomotor-on control or general purpose output signal. The signal names, pin numbers, and its axis numbers are shown as follows:

<table><tr><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td></tr><tr><td>7</td><td>SVON0</td><td>1</td></tr><tr><td>41</td><td>SVON1</td><td>2</td></tr></table>

The output circuit for the SVON signal is shown below:

![VCC\nFrom motion IC\nPS2805\n35V @ 50mA Maximum\nP1\nSVON\nEGND](.pci-8102-50-11136-1020-300-en/da6d0882cd93d7352bfd14ec01ecc234ec36475f1e2c89bb2145a4ec01764b2d.jpg)

# 3.10 General-Purpose Signal RDY

The RDY signals can be used as motor driver ready input or general purpose input signals. The signal names, pin numbers, and axis numbers are shown as follows:

<table><tr><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td></tr><tr><td>11</td><td>RDY0</td><td>1</td></tr><tr><td>45</td><td>RDY1</td><td>2</td></tr></table>

The input circuit of RDY signal is shown in the following diagram:

![VCC\nInside 8102\nTo motion IC\nPS2805\nR = 330 Ohm\nVDD (+5V)\nDGND\n0.5V Max.\nRDY\nP1](.pci-8102-50-11136-1020-300-en/b0c37ed005d653f6c471cabc10957d5cb617bced93ab703d2296e3cb6261d1d0.jpg)

# 3.11 Position Compare Output pin: CMP

The PCI-8102 provides 2 comparison output channels, CMP0 and CMP1, which refer to axes 0 and 1 respectively. The comparison output channel will generate a pulse signal when the encoder counter reaches a pre-set value set by the user.

The CMP channel is located on P1. The signal names, pin numbers, and axis numbers are shown below:

<table><tr><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td></tr><tr><td>30</td><td>CMP0</td><td>1</td></tr><tr><td>31</td><td>CMP1</td><td>2</td></tr></table>

The following wiring diagram is of the CMP on the first 2 axes:

![VCC\nR\nFrom Motion\nASIC\nHP0631\nEGND\nVDD\nR = 4.7K Ohm\nInside 8102\nP1\nCMP](.pci-8102-50-11136-1020-300-en/46b2d255a6f8442bd98569f2bdc5d30c7cd7de0e99e4901861a7964602e13f6f.jpg)

Note: CMP trigger type can be set as normal low (rising edge) or normal high (falling edge). Default setting is normal high.

Refer to function\_8102\_set\_trigger comparator for details.

# 3.12 Multi-Functional Input Pin: LTC/SD/PCS/CLR

The PCI-8102 provides 2 multi-functional input pins. Each of the 2 pins can be configured either as LTC(Latch) or SD(Slow down) or PCS(Target position override) or CLR(Counter clear). To select the pin function, please refer to 6.12. The default value is LTC and the relevant functions are as follows:

I16 \_8102\_select\_pin23\_input(I16 card\_id, U16 Select );

I16 \_8102\_select\_pin57\_input(I16 card\_id, U16 Select );

The multi-functional input pins are on P1. The signal names, pin numbers, and axis numbers are shown as follows:

<table><tr><td>P1 Pin No</td><td>Signal Name</td><td>Axis #</td></tr><tr><td>23</td><td>LTC/SD/PCS/CLR_0</td><td>1</td></tr><tr><td>57</td><td>LTC/SD/PCS/CLR_1</td><td>2</td></tr></table>

The multi-functional input pin wiring diagram is as followed:

![P1\nInside 8102\nEX24V+\nR = 2.2K Ohm\nVCC\nTo CPLD\nMulti-Functional\nInput\nHP0631\nDGND](.pci-8102-50-11136-1020-300-en/b641694ca0ca098f4568f2a953aad85bb977de8ada424fd7f92b5320721cdd40.jpg)

# 3.13 Simultaneously Start/Stop Signals STA and STP

The PCI-8102 provides STA and STP signals, which enable simultaneous start/stop of motions on multiple axes. The STA and STP signals are on K1 and K2.

The diagram below shows the onboard circuit. The STA and STP signals of the two axes are tied together respectively.

![VCC\n10 K\nVCC\n10K\nInside PCI-8102\nK1,K2\nSTP\nSTA\nSTP\nSTA](.pci-8102-50-11136-1020-300-en/41e70a85224a579dd8a43874f22de2e2f464b81716eec1fc6f8c08c16ed7053e.jpg)

The STP and STA signals are both input and output signals. To operate the start and stop action simultaneously, both software control and external control are needed. With software control, the signals can be generated from any one of the PCI-8102. Users can also use an external open collector or switch to drive the STA/STP signals for simultaneous start/stop.

If there are two or more PCI-8102 cards, connect the K2 connector on the previous card to K1 connector on the following card. The K1 and K2 connectors on a same PCI-8102 are connected internally.

User can also use external start and stop signals to issue a cross-card simultaneous motor operation. Just connect external start and stop signals to STA and STP pins on the K1 connector of the first PCI-8102 card.

![The diagram illustrates a connection scheme involving three PCI cards and corresponding blocks.\n\n**Labeled Blocks:**\n*   **Top Row Headers:** 'PCI-8102 #0', 'PCI-8102 #1', 'PCI-8102 #2'\n*   **Top Row Blocks (under each header):** A box labeled 'K2' containing the list:\n    *   'D5V'\n    *   'STA'\n    *   'STP'\n    *   'GND'\n*   **Bottom Row Blocks (aligned under the columns):** Three boxes labeled 'K1', each containing the list:\n    *   'D5V'\n    *   'STA'\n    *   'STP'\n    *   'GND'\n\n**Connections:**\nFour diagonal lines connect each 'K2' block to a 'K1' block in a different column, linking identical terminals:\n*   The 'K2' block under 'PCI-8102 #0' connects to the bottom-right 'K1' block (under 'PCI-8102 #2') via lines for 'D5V', 'STA', 'STP', and 'GND'.\n*   The 'K2' block under 'PCI-8102 #1' connects to the bottom-left 'K1' block (under 'PCI-8102 #0') via lines for 'D5V', 'STA', 'STP', and 'GND'.\n*   The 'K2' block under 'PCI-8102 #2' connects to the bottom-middle 'K1' block (under 'PCI-8102 #1') via lines for 'D5V', 'STA', 'STP', and 'GND'.\n\nA square wave symbol is depicted to the left of the bottom-left 'K1' block.](.pci-8102-50-11136-1020-300-en/e33d00d2c3a71103ec78885122c68808efbb2962fde03202d99868d744d3dfd4.jpg)

# 3.14 General Purpose Digital Input/Output

The PCI-8102 provides 20 isolated digital input channels and 18 isolated digital output channels which were set into P1 and P2 connectors accordingly as following pin assignment table::

<table><tr><td>Pin No.</td><td>Name</td><td>Function</td></tr><tr><td>61</td><td>DINO</td><td>Digital INO</td></tr><tr><td>62</td><td>DIN1</td><td>Digital IN1</td></tr><tr><td>63</td><td>DIN2</td><td>Digital IN2</td></tr><tr><td>64</td><td>DIN3</td><td>Digital IN3</td></tr><tr><td>65</td><td>DOUT0</td><td>Digital Out0</td></tr><tr><td>66</td><td>DOUT1</td><td>Digital Out1</td></tr></table>

# 3.14.1 Extended DSUB 37-pin Connector

16 digital inputs and 16 digital outputs are conveniently connected with the included cable that connects to PCI-8102 P2 connector and DSUB-37p.

![#43\n#44\n#1\n#2\n#37\n#19\n#20\n#1](.pci-8102-50-11136-1020-300-en/fe29144b8c5b0640e1d0c56dcbf77195e276a34bb1fae5555af5be76dc15e89c.jpg)

Pin assignment of the DSUB-37p connector is as follows.

<table><tr><td>Pin</td><td>Name</td><td>Function</td><td>Pin</td><td>Name</td><td>Function</td></tr><tr><td>1</td><td>EX_GND</td><td>External Power Ground</td><td>20</td><td>EX_GND</td><td>External Power Ground</td></tr><tr><td>2</td><td>DI0</td><td>Discrete Input Channel 0</td><td>21</td><td>DO0</td><td>Discrete Output Channel 0</td></tr><tr><td>3</td><td>DI1</td><td>Discrete Input Channel 1</td><td>22</td><td>DO1</td><td>Discrete Output Channel 1</td></tr><tr><td>4</td><td>DI2</td><td>Discrete Input Channel 2</td><td>23</td><td>DO2</td><td>Discrete Output Channel 2</td></tr><tr><td>5</td><td>DI3</td><td>Discrete Input Channel 3</td><td>24</td><td>DO3</td><td>Discrete Output Channel 3</td></tr><tr><td>6</td><td>DI4</td><td>Discrete Input Channel 4</td><td>25</td><td>DO4</td><td>Discrete Output Channel 4</td></tr><tr><td>7</td><td>DI5</td><td>Discrete Input Channel 5</td><td>26</td><td>DO5</td><td>Discrete Output Channel 5</td></tr><tr><td>8</td><td>DI6</td><td>Discrete Input Channel 6</td><td>27</td><td>DO6</td><td>Discrete Output Channel 6</td></tr><tr><td>9</td><td>DI7</td><td>Discrete Input Channel 7</td><td>28</td><td>DO7</td><td>Discrete Output Channel 7</td></tr><tr><td>10</td><td>DI8</td><td>Discrete Input Channel 8</td><td>29</td><td>DO8</td><td>Discrete Output Channel 8</td></tr><tr><td>11</td><td>DI9</td><td>Discrete Input Channel 9</td><td>30</td><td>DO9</td><td>Discrete Output Channel 9</td></tr><tr><td>12</td><td>DI10</td><td>Discrete Input Channel 10</td><td>31</td><td>DO10</td><td>Discrete Output Channel 10</td></tr><tr><td>13</td><td>DI11</td><td>Discrete Input Channel 11</td><td>32</td><td>DO11</td><td>Discrete Output Channel 11</td></tr><tr><td>14</td><td>DI12</td><td>Discrete Input Channel 12</td><td>33</td><td>DO12</td><td>Discrete Output Channel 12</td></tr><tr><td>15</td><td>DI13</td><td>Discrete Input Channel 13</td><td>34</td><td>DO13</td><td>Discrete Output Channel 13</td></tr><tr><td>16</td><td>DI14</td><td>Discrete Input Channel 14</td><td>35</td><td>DO14</td><td>Discrete Output Channel 14</td></tr><tr><td>17</td><td>DI15</td><td>Discrete Input Channel 15</td><td>36</td><td>DO15</td><td>Discrete Output Channel 15</td></tr><tr><td>18</td><td>EX_GND</td><td>External Power Ground</td><td>37</td><td>EX_GND</td><td>External Power Ground</td></tr><tr><td>19</td><td>VDD</td><td>External +5V Power</td><td>-</td><td>-</td><td>-</td></tr></table>

# 1. Digital I/O type

-N NPN Sinking Inputt:
![VCC\nInside 8102\nTo CPLD\nDGND\nPS2805\nR = 330\nE5V\n0.5V Max.\nDI\nP2](.pci-8102-50-11136-1020-300-en/95f27e9312df676da17eade376946a180f8cf87aaf693df97eb0f11c1f9acd14.jpg)

-N NPN Sinking Output
![VCC\nInside 8102\nP2\n35V @ 50mA Maximum\nDO\nFrom CPLD\nPS2802\nEGND](.pci-8102-50-11136-1020-300-en/11116a88e37533c42c1b51564c0562b5f078c69aa30a6115a8c7b001e5ef6c61.jpg)

# 4 Operations

This chapter describes the detail operation of the motion controller card.

# 4.1 Classifications of Motion Controller

At the beginning of servo/stepper driver come to the world, people start to talk about motion control widely instead of motor control. They separate motor control into two layers: one is motor control and the other is motion control. Motor control talks much about on the PWM, power stage, closed loop, hall sensors, vector space, and so on. Motion control talks much about on the speed profile generating, trajectory following, multi-axes synchronization, and coordinating.

# 4.1.1 Voltage Type Motion Control Interface

The interfaces between motion and motor control are changing rapidly. From the early years, people use voltage signal as a command to motor controller. The amplitude of the signal means how fast a motor rotating and the time duration of the voltage changes means how fast a motor acceleration from one speed to the other speed. Voltage signal as a command to motor driver is so called “analog” type motion controller. It is much easier to integrate into an analog circuit of motor controller but sometimes noise is a big problem for this type of motion control. Besides, if people want to do positioning control of a motor, the analog type motion controller must have a feedback signal of position information and use a closed loop control algorithm to make it possible. This increased the complexity of motion control and not easy to use for a beginner.

# 4.1.2 Pulse Type Motion Control Interface

The second interface of motion and motor control is pulses train type. As a trend of digital world, pulse trains type represent a new concept to motion control. The counts of pulses show how many steps of a motor rotates and the frequency of pulses show how fast a motor runs. The time duration of frequency changes represent the acceleration rate of a motor. Because of this interface, users can control a servo or stepper motor more easier than analog type for positioning applications. It means that motion and motor control can be separated more easily by this way.

Both of these two interfaces need to take care of gains tuning. For analog type position controller, the control loops are built inside and users must tune the gain from the controller. For pulses type position controller, the control loops are built outside on the motor drivers and users must tune the gains on drivers.

For more than one axes' operation, motion control seems more important than motor control. In industrial applications, reliable is a very important factor. Motor driver vendors make good performance products and a motion controller vendors make powerful and variety motion software. Integrated two products make our machine go into perfect.

# 4.1.3 Network Type Motion Control Interface

Recently, there is a new control interface come into the world. That's network type motion controller. The command between motor driver and motion controller is not analog or pulses signal any more. It is a network packet which contents position information and motor information. This type of controller is more reliable because of digitized and packetized. Because a motion controller must be real-time, the network must have real-time capacity around a cycle time below 1 mini-second. This means that not commercial network can do this job. It must have a specific network like Mitsubishi SSCNET. The network may have opto-fiber type to increase communication reliability.

# 4.1.4 Software Real-time Motion Control Kernel

For motion control kernel, there are three ways to accomplish it. They are DSP-based, ASIC based, and software real-time based.

A motion control system needs an absolutely real-time control cycle and the calculation on controller must provide a control data at the same cycle. If not, the motor will not run smoothly. Many machine makers will use PC's computing power to do this. They can use simply a feedback counter card and a voltage output or pulse output card to make it. This method is very low-end and takes much software effort. For sure their real-time performance, they will use a real-time software on the system. It increases the complexity of the system too. But this method is the most flexible way for a professional motion control designers. Most of these methods are on NC machines.

# 4.1.5 DSP Based Motion Control Kernel

A DSP-based motion controller kernel solves real-time software problem on computer. DSP is a micro-processor itself and all motion control calculations can be done on it. There is no real-time software problem because DSP has its own OS to arrange all the procedures. There is no interruption from other inputs or context switching problem like Windows based computer. Although it has such a perfect performance on real-time requirements, its calculation speed is not as fast as PC's CPU at this age. Besides, the software interfacing between DSP based controller's vendors and users are not easy to use. Some controller vendors provide some kind of assembly languages for users to learn and some controller vendors provide only a handshake documents for users to use. Both ways are not easy to use. DSP-based controllers provide a better way than software kernel for machine makers to build they applications.

# 4.1.6 ASIC Based Motion Control Kernel

An ASIC-base motion control kernel is a fair way between software kernel and DSP kernel. It has no real-time problem because all motion functions are done via ASIC. Users or controller's vendors just need to set some parameters which ASIC requires and the motion control will be done easily. This kind of motion control separates all system integration problems into 4 parts: Motor driver's performance, ASIC outputting profile, vendor's software parameters to ASIC, and users' command to vendors' software. It makes motion controller co-operated more smoothly between devices.

# 4.1.7 Compare Table of All Motion Control Types

<table><tr><td></td><td>Software</td><td>ASIC</td><td>DSP</td></tr><tr><td>Price</td><td>Fair</td><td>Cheap</td><td>Expensive</td></tr><tr><td>Functionality</td><td>Highest</td><td>Low</td><td>Normal</td></tr><tr><td>Maintenance</td><td>Hard</td><td>Easy</td><td>Fair</td></tr></table>

<table><tr><td></td><td>Analog</td><td>Pulses</td><td>Network</td></tr><tr><td>Price</td><td>High</td><td>Low</td><td>Normal</td></tr><tr><td>Signal Quality</td><td>Fair</td><td>Good</td><td>Reliable</td></tr><tr><td>Maintenance</td><td>Hard</td><td>Easy</td><td>Easy</td></tr></table>

# 4.1.8 PCI-8102's Motion Controller Type

The PCI-8102 is an ASIC based, pulse type motion controller. We make this card into three blocks: motion ASIC, PCI card, software motion library. Users can access motion ASIC via our software motion library under Windows 2000/XP/7, Linux, and RTX driver. Our software motion library provides one-stop-function for controlling motors. All the speed parameters' calculations are done via our library.

For example, if users want to perform a one-axis point to point motion with a trapezoidal speed profile, they just only fill the target position, speed, and acceleration time in one function. Then the motor will run as the profile. It takes no CPU's resource because every control cycle's pulses generation is done by ASIC. The precision of target position depends on motor drivers' closed loop control performance and mechanical parts, not on motion controller's command because the motion controller is only responsible for sending correct pulses counts via a desired speed profile. So it is much easier for programmers, mechanical or electrical engineers to find out problems.

# 4.2 Motion Control Modes

Not like motor control is only for positive or negative moving, motion control make the motors run according to a specific speed profile, path trajectory and synchronous condition with other axes.

The following sections describe the motion control modes of this motion controller could be performed.

# 4.2.1 Coordinate System

We use Cartesian coordinate and pulses for the unit of length. The physical length depends on mechanical parts and motor's resolution. For example, if users install a motor on a screw ball. The pitch of screw ball is 10mm and the pulses needed for a round of motor are 10,000 pulses. We can say that one pulse's physical unit is equal to 10mm/10,000p = 1 micro-meter.

Just set a command with 15,000 pulses for motion controller if we want to move 15mm. How about if we want to move 15.0001mmΔ Don't worry about that, the motion controller will keep the residue value less than 1 pulse and add it to next command.

![Simple 2D coordinate system with X and Y axes, no data points or labels](.pci-8102-50-11136-1020-300-en/ec41df35fd08507cad9ae0564646bb3f3dc7e6d6b44fe3a454722af175680f8d.jpg)

The motion controller sends incremental pulses to motor drivers. It means that we can only send relative command to motor driver. But we can solve this problem by calculating the difference between current position and target position first. Then send the differences to motor driver. For example, if current position is 1000. We want to move a motor to 9000. User can use an absolute command to set a target position of 9000. Inside the motion controller, it will get current position 1000 first then calculate the difference from target position. It gets a result of +8000. So, the motion controller will send 8000 pulses to motor driver to move the position of 9000.

Sometimes, users need to install a linear scale or external encoder to check machine's position. But how do you to build this coordinate system $\Delta$ If the resolution of external encoder is 10,000 pulses per 1mm and the motor will move 1mm if the motion controller send 1,000 pulses, It means that when we want to move 1 mm, we need to send 1,000 pulses to motor driver then we will get the encoder feedback value of 10,000 pulses. If we want to use an absolute command to move a motor to 10,000 pulses position and current position read from encoder is 3500 pulses, how many pulses will it send to motor driver $\Delta$ . The answer is (10000 – 3500) / (10,000 / 1,000)=650 pulses. The motion controller will calculate it automatically if users set “move ratio” already. The “move ratio” means the (feedback resolution/command resolution).

![Based on the provided image, here is the description of the flowchart and block diagram:\n\n**Labeled Blocks and Components:**\n*   **Controller**: A rectangular block on the far left. Above it is the text '**Pulses Cmd**'.\n*   **Driver**: A vertical rectangular block to the right of the Controller.\n*   **Motor**: A rectangular block to the right of the Driver.\n*   **Screw ball & guider**: A long, horizontal threaded shaft connected to the Motor. An arrow points to this shaft with the label '**Screw ball & guider**'.\n*   **Moving**: A square block situated on the shaft with horizontal double-headed arrows above it, labeled '**Moving**'.\n*   **Encoder**: An arrow pointing upward from below the shaft, labeled '**Encoder**'.\n\n**Connections and Flow:**\n*   **Controller to Driver**: A solid arrow points from the right side of the **Controller** to the **Driver**.\n*   **Driver to Motor**: A solid arrow points from the bottom-right side of the **Driver** to the left side of the **Motor**.\n*   **Motor to Screw**: The **Motor** is connected to the left end of the **Screw ball & guider**, indicating it drives the shaft.\n*   **Feedback Loop (Pulses F/B)**: A line originates from the bottom of the mechanical assembly (near the Encoder/Moving section), runs horizontally to the left, and points upward into the bottom of the **Controller**. This feedback path is labeled '**Pulses F/B**'.](.pci-8102-50-11136-1020-300-en/65f90b443581b32c7ff884139bef0bae11b052f286442cbbae1660db532a1092.jpg)

# 4.2.2 Absolute and Relative Position Move

In the coordinate system, we have two kinds command for users to locate the target position. One is absolute and the other is relative. Absolute command means that user give the motion controller a position, then the motion controller will move a motor to that position from current position. Relative command means that user give the motion controller a distance, then the motion controller will move motor by the distance from current position. During the movement, users can specify the speed profile. It means user can define how fast and at what speed to reach the position.

# 4.2.3 Trapezoidal Speed Profile

Trapezoidal speed profile means the acceleration/deceleration area follows a 1st order linear velocity profile (constant acceleration rate). The profile chart is shown as below:

![| Time (second) | Velocity (s) |\n| ------------- | ------------ |\n| Tacc          | 0            |\n| Tdec          | 0            |\n| MaxVel        | 1            |\n| StrVel        | 0            |](.pci-8102-50-11136-1020-300-en/63587311ffeacd1263f507821ed53fc3492efc84344d36a28a1d69700eb2eaab.jpg)

The area of the velocity profile represents the distance of this motion. Sometimes, the profile looks like a triangle because the desired distance from user is smaller than the area of given speed parameters. When this situation happens, the motion controller will lower the maximum velocity but keep the acceleration rate to meet user's distance requirement. The chart of this situation is shown as below:

![| Time (second) | Velocity (ps) |\n| ------------- | ------------- |\n| Tacc          | 0             |\n| Tdec          | 0             |\n| MaxVel        | 100           |](.pci-8102-50-11136-1020-300-en/9817a8743c1c29e4dec12d309e67d287aa227d245fa3824c14f53e819adaf9c2.jpg)

This kind of speed profile could be applied on velocity mode, position mode in one axis or multi-axes linear interpolation and two axes circular interpolation modes.

# 4.2.4 S-Curve and Bell-Curve Speed Profile

S-curve means the speed profile in accelerate/decelerate area follows a 2nd order curve. It can reduce vibration at the beginning of motor start and stop. In order to speed up the acceleration/deceleration during motion, we need to insert a linear part into these areas. We call this shape as “Bell” curve. It adds a linear curve between the upper side of s-curve and lower side of s-curve. This shape improves the speed of acceleration and also reduces the vibration of acceleration.

For a bell curve, we define its shape's parameter as below:

![| Time (Second) | Velocity (PPS) |\n| ------------- | -------------- |\n| Tacc          | MaxVel         |\n| Tdec          | MaxVel         |\n| VSacc         | MaxVel         |\n| VSdec         | MaxVel         |](.pci-8102-50-11136-1020-300-en/da4c6cf37c843faa4d12fbf595f395efad29a9ce53ccfd264af6ee7653d10f21.jpg)

▶ Tacc: Acceleration time in second
▶ Tdec: Deceleration time in second
▶ StrVel: Starting velocity in PPS
▶ MaxVel: Maximum velocity in PPS
▶ VSacc: S-curve part of a bell curve in deceleration in PPS
▶ VSdec: S-curve part of a bell curve in deceleration in PPS

If VSacc or VSdec=0, it means acceleration or deceleration use pure S-curve without linear part. The Acceleration chart of bell curve is shown below:

![| Time (Second) | Acc. (PPS/S) |\n| ------------- | ------------ |\n| Start         | 0            |\n| Tacc          | 0            |\n| Tdec          | 0            |](.pci-8102-50-11136-1020-300-en/fb19514717e440ff235ec4f7e423f7cbc0d67f293d4fa5024fae5f2407cf38d8.jpg)

The S-curve profile motion functions are designed to always produce smooth motion. If the time for acceleration parameters combined with the final position don't allow an axis to reach the maximum velocity (i.e. the moving distance is too small to reach MaxVel), then the maximum velocity is automatically lowered (see the following Figure).

The rule is to lower the value of MaxVel and the Tacc, Tdec, VSacc, VSdec automatically, and keep StrVel, acceleration, and jerk unchanged. This is also applicable to Trapezoidal profile motion.

This kind of speed profile could be applied on velocity mode, position mode in one axis or multi-axes linear interpolation and two axes circular interpolation modes.

![| Time (sec) | Velocity (Curve 1) | Velocity (Curve 2) | Velocity (Curve 3) | Velocity (Curve 4) |\n| ---------- | ------------------ | ------------------ | ------------------ | ------------------ |\n| 0          | 0                  | 0                  | 0                  | 0                  |\n| 1          | 0.5                | 0.3                | 0.7                | 0.2                |\n| 2          | 1.0                | 0.8                | 1.2                | 0.5                |\n| 3          | 1.5                | 1.2                | 1.6                | 0.8                |\n| 4          | 1.8                | 1.5                | 1.9                | 1.0                |\n| 5          | 1.9                | 1.6                | 1.95               | 1.2                |\n| 6          | 1.8                | 1.5                | 1.9                | 1.0                |\n| 7          | 1.5                | 1.2                | 1.6                | 0.8                |\n| 8          | 1.0                | 0.8                | 1.2                | 0.5                |\n| 9          | 0.5                | 0.3                | 0.7                | 0.2                |\n| 10         | 0                  | 0                  | 0                  | 0                  |](.pci-8102-50-11136-1020-300-en/b00b96e66b1893c3e0d8e6a5f35da295369f71738ff82df9cbce6f00007abb38.jpg)

# 4.2.5 Velocity Mode

Velocity mode means the pulse command is continuously output until a stop command is issued. The motor will run without a target position or desired distance unless it is stopped by other reasons. The output pulse accelerates from a starting velocity to a specified maximum velocity. It can be follow a linear or S-curve acceleration shape. The pulse output rate is kept at maximum velocity until another velocity command is set or a stop command is issued. The velocity could be overridden by a new speed setting. Notice that the new speed could not be a reversed speed of original running speed. The speed profile of this kind of motion is shown as below:

![| Time (Second) | Velocity (PPS) |\n| ------------- | -------------- |\n| Start         | 0              |\n| Speed Override| High           |\n| Stop Function| Low            |](.pci-8102-50-11136-1020-300-en/653703cf1d832d3e00104e457b4a9e0083aa75c11936782607e153993e356030.jpg)

# 4.2.6 One Axis Position Mode

Position mode means the motion controller will output a specific amount of pulses which is equal to users' desired position or distance. The unit of distance or position is pulse internally on the motion controller. The minimum length of distance is one pulse. But in PCI-8102, we provide a floating point function for users to transform a physical length to pulses. Inside our software library, we will keep those distance less than one pulse in register and apply them to the next motion function. Besides positioning via pulse counts, our motion controller provides three types of speed profile to accomplish positioning. There are 1st order trapezoidal, 2nd order S-curve, and mixed bell curve. Users can call respective functions to perform that. The following char shows the relationship between distance and speed profile. We use trapezoidal shape to show it.

![| Time (second) | Velocity (pVel) |\n| ------------- | --------------- |\n| Tacc          | 0               |\n| Tdec          | 1               |\n| MaxVel        | 1               |\n| StrVel        | 0               |](.pci-8102-50-11136-1020-300-en/0752a14642885430f86ce30e61086fdffd760282d6d3771f01f5a6df146f0879.jpg)

The distance is the area of the V-t diagram of this profile.

# 4.2.7 Two Axes Linear Interpolation Position Mode

“Interpolation between multi-axes” means these axes start simultaneously, and reach their ending points at the same time. Linear means the ratio of speed of every axis is a constant value. Assume that we run a motion from $(0,0)$ to $(10,4)$ . The linear interpolation results are shown as below.

![| X (Master axis) | Y (Slave axis) |\n| --------------- | -------------- |\n| 0               | 0              |\n| 2               | 1              |\n| 4               | 2              |\n| 6               | 3              |\n| 8               | 4              |\n| 10              | 4              |](.pci-8102-50-11136-1020-300-en/9000a5e7272a3c18a2a92b835ffddbc77fec6ce07a2730ed67af8a836e0d66fd.jpg)

The pulses output from X or Y axis remains 1/2 pulse difference according to a perfect linear line. The precision of linear interpolation is shown as below:

![| X (Master axis) | Y (Slave axis) |\n| --------------- | -------------- |\n| 0               | 0              |\n| 2               | 1              |\n| 4               | 2              |\n| 6               | 3              |\n| 8               | 4              |\n| 10              | 4              |](.pci-8102-50-11136-1020-300-en/42abc45da12816e0f575d0a445a8301680cb0cae66916119c157826a02f8702f.jpg)

If users want to stop an interpolation group, just call a stop function on first axis of the group.

As in the diagram below, 2-axis linear interpolation means to move the XY position from P0 to P1. The 2 axes start and stop simultaneously, and the path is a straight line.

The speed ratio along X-axis and Y-axis is ( $\Delta X: \Delta Y$ ), respectively, and the vector speed is:

![| Point | X-Axis | Y-Axis |\n|---|---|---|\n| P0 (X0,Y0) | 0 | 0 |\n| P1 (X1,Y1) | 1 | 0 |\n| ΔY | 1 | 0 |\n| ΔX | 2 | 0 |\nThe formula represents the derivative of the power of ΔP/Δt. The formula is calculated as: (ΔX/Δt)² + (ΔY/Δt)².](.pci-8102-50-11136-1020-300-en/1976e0adae24163365aaa3a38565eadd8eeee7c3e308e39a9d270e19262cc5ca.jpg)

When calling 2-axis linear interpolation functions, the vector speed needs to define the start velocity, StrVel, and maximum velocity, MaxVel.

# 4.2.8 Two Axes Circular Interpolation Mode

Circular interpolation means XY axes simultaneously start from initial point, (0,0) and stop at end point,(1800,600). The path between them is an arc, and the MaxVel is the tangential speed. Notice that if the end point of arc is not at a proper position, it will move circularly without stopping.

![| Point | X     | Y     |\n|-------|-------|-------|\n| Center| 1000  | 0     |\n| Right End | 1800  | 600   |](.pci-8102-50-11136-1020-300-en/2accc67783d9de782f5301bad6d3ab211e70590e1002e1125638dd578a7d2d80.jpg)

The motion controller will move to the final point user desired even this point is not on the path of arc. But if the final point is not at the location of the shadow area of the following graph, it will run circularly without stopping.

![B (100, 100)\n2nd phase\nA (0, 0)\nStart point (0,0)\n3rd phase\nCenter (100, 0)\n1st phase\nC (200, 0)\n4th phase\nD (100, -100)](.pci-8102-50-11136-1020-300-en/04e0669991536312a6578d46a269681c4219e4c933b2501d61815e3138ae4369.jpg)

The command precision of circular interpolation is shown below. The precision range is at radius $\pm1/2$ pulse.

![Y\nX\n● : Interpolation track\nSolid line : A circle of radius 11\nDotted line : A circle of radius 11±0.5](.pci-8102-50-11136-1020-300-en/3cc6e020488f5a2a7e21747e72a7744aa8ab0a924625f0f2b9543894d5880d14.jpg)

# 4.2.9 Continuous Motion

Continuous motion means a series of motion command or position can be run continuously. Users can set a new command right after previous one without interrupting it. The motion controller can make it possible because there are three command buffers (pre-registers) inside.

When first command is executing, users can set second command into first buffer and third command into second buffer. Once the first command is finished, the motion controller will push the second command to the executing register and the third command to first buffer. Now, the second buffer is empty and user can set the 4th command into 2nd buffer. Normally, if users have enough time to set a new command into 2nd buffer before executing register is finished, the motion can run endlessly. The following diagram shows this architecture of continuous motion.

![This flowchart depicts a sequential data processing pipeline with an associated status flag.\n\n**Labeled Blocks:**\n*   Motion Command\n*   2nd buffer\n*   1st buffer\n*   Executing register\n*   Pulse Command\n*   Empty Flag\n\n**Connections:**\n1.  An arrow connects **Motion Command** to the **2nd buffer**.\n2.  An arrow connects the **2nd buffer** to the **1st buffer**.\n3.  An arrow connects the **1st buffer** to the **Executing register**.\n4.  An arrow connects the **Executing register** to **Pulse Command**.\n5.  An arrow originates from the **Empty Flag** block and points upward to the connection line between **Motion Command** and the **2nd buffer**.](.pci-8102-50-11136-1020-300-en/37563a17353799ea2f843c4b2edb5e360e5450a0059a7121d531d390846be649.jpg)

Besides position command, the speed command should be set correctly to perform a speed continuous profile. For the following example, there are three motion command of this continuous motion. The second one has high speed than the others. The interconnection of speed between these three motion functions should be set as the following diagram:

![| Time | Velocity |\n|------|----------|\n| 1    | (1)      |\n| 2    | (2)      |\n| 3    | (3)      |](.pci-8102-50-11136-1020-300-en/3396e45fbc2861481aaf747b746efa5f4ff64f55f77c41bcaca02a9f06b53ca4.jpg)

$1^{st}$ command's Tdec=0

$2^{\text{nd}}$ command's StrVel = $1^{\text{st}}$ command's MaxVel

$3^{rd}$ command's Tacc=0

$3^{\text{rd}}$ command's MaxVel= $2^{\text{nd}}$ command's StrVel

If the 2nd command's speed value is lower than the others, the settings would be like as following diagram:

![| Time | Velocity |\n|------|----------|\n| 0    | 0        |\n| Tdec | 0        |\n| 2    | 0        |\n| 3    | 0        |](.pci-8102-50-11136-1020-300-en/df59807d2fe82ce2047ca376042e480d892a2b057e1f980e9f43f2c1944deb4d.jpg)

2 $^{nd}$ command's Taccc=0

2 $^{nd}$ command's Tdec=0

$2^{\text{nd}}$ command's MaxVel = $1^{\text{st}}$ command's StrVel

$2^{\text{nd}}$ command's MaxVel = $2^{\text{nd}}$ command's StrVel

For 2-axis continuous arc interpolation is the same concept. User can set the speed matched between two command's speed setting.

![| X Range       | Y Range       | Velocity (pps) |\n| ------------- | ------------- | -------------- |\n| (0,0)         | (0,0)         | -              |\n| (1000,1000)   | (1000,1000)   | 1000           |\n| (2100,1000)   | (2100,1000)   | 1000           |\n| (2500,600)    | (2500,600)    | 600            |\n| (2500,-600)   | (2500,-600)   | 600            |\n| (1000,-1000)  | (1000,-1000)  | 1000           |\n| (2100,-1000)  | (2100,-1000)  | 1000           |](.pci-8102-50-11136-1020-300-en/1eed30e41f33072c33bbc9864a3c435a035721e4514e08a2173760ad5fdd1a47.jpg)

If the INP checking is enabled, the motion will have some delayed between each command in buffers. INP check enabled make the desired point be reached but reduce the smoothing between each command. If users don't need this delay and meed the smoothing, please turn INP checking off.

# 4.2.10 Home Return Mode

Home return means searching a zero position point on the coordinate. Sometimes, users use a ORG, EZ or EL pin as a zero position on the coordinate. At the beginning of machine power on, the program needs to find a zero point of this machine. Our motion controller provides a home return mode to make it.

We have many home modes and each mode contents many control phases. All of these phases are done by ASIC. No software efforts or CPU loading will be taken. After home return is finished, the target counter will be reset to zero at the desired condition of home mode. For example, a raising edge when ORG input. Sometimes, the motion controller will still output pulses to make machine show down after resetting the counter. When the motor stops, the counter may not be at zero point but the home return procedure is finished. The counter value you see is a reference position from machine's zero point already.

The following figures show the various home modes: R means counter reset (command and position counter). E means ERC signal output.

Home mode=0: ( ORG Turn ON then reset counter )
![Based on the provided image, here is the description of the flowchart/block diagram:\n\n**Labeled Blocks and Text:**\n*   'When SD is not installed' (top left)\n*   'ORG'\n*   'EL'\n*   'Case 1'\n*   'Case 2'\n*   'Case 3'\n*   'R' (inside a box)\n*   'E' (inside a box)\n\n**Connections:**\n*   A thick black arrow on the **Case 1** line points to the right, leading to a junction point.\n*   From this junction point, a line branches upwards and points to the block labeled **R**.\n*   From the same junction point, a vertical line extends upwards to the **ORG** line.\n*   From the same junction point, a line branches to the right and points to the block labeled **E**.\n*   On the far right side, a vertical line drops down from the **ORG** line.\n*   On the far right side, a vertical line drops down from the **EL** line.\n*   A thick black arrow on the **Case 2** line points to the right, aligning with the vertical line descending from **ORG**.\n*   A thick black arrow on the **Case 3** line points to the right, aligning with the vertical line descending from **EL**.](.pci-8102-50-11136-1020-300-en/5c4d1110d61c1e3f99f81067a64d8813cd6dea2f9c83495532591d83c73dcf13.jpg)

![| Case   | Time Segment                     |\n|--------|---------------------------------|\n| Case 1 | When SD is installed and SD is not latched |\n| Case 2 | When SD is installed and SD is not latched |\n| Case 3 | When SD is installed and SD is not latched |\n| Case 4 | When SD is installed and SD is not latched |](.pci-8102-50-11136-1020-300-en/f2fe7f82c7d442894cb25085c87a1307459e65c6601daaa226a4aeba2a82a294.jpg)

Home mode=1: (Twice ORG turn ON then reset counter)
![The diagram displays horizontal tracks intersected by vertical lines.\n\n**Labeled Blocks:**\n*   ORG\n*   EL\n*   Case 1\n*   Case 2\n*   Case 3\n*   FA Speed\n*   R&E\n\n**Connections and Structure:**\n*   The diagram is organized into horizontal rows labeled **ORG**, **EL**, **Case 1**, **Case 2**, and **Case 3** on the left side.\n*   In the **Case 1** row, a long horizontal shape is labeled **FA Speed**.\n*   A box labeled **R&E** points an arrow toward the **FA Speed** shape.\n*   In the **Case 2** and **Case 3** rows, shorter horizontal shapes are positioned further to the right.](.pci-8102-50-11136-1020-300-en/ee26a6f03436d540772d51aaa267d80151fdb6e7987e058b4f5cf93b108e4fb3.jpg)

Home mode=2: (ORG ON then Slow down to count EZ numbers and reset counter)
![ORG\nEZ\nEL\nCase 1\nR&E\n(EZ_Count = 1)\nCase 2\n(EZ_Count = 2)\nCase 3\nR&E\nCase 4](.pci-8102-50-11136-1020-300-en/567f5fd5f2b29ad2b804c29f908541967a70a990f76baa57e79d047d8dc75195.jpg)

Home mode=3: (ORG ON then count EZ numbers and reset counter)
![Based on the provided diagram, here is the accurate and concise description of the labeled blocks and their connections:\n\n**Labeled Blocks:**\n*   **R** (appears twice)\n*   **E** (appears twice)\n\n**Connections:**\n*   **Upper Cluster:**\n    *   An arrow connects the upper **R** block to the falling edge (end) of the **Case 1** signal line.\n    *   An arrow connects the upper **E** block to the falling edge (end) of the **Case 1** signal line.\n    *   Annotation: **(EZ_Count = 1)** is located near these connections.\n*   **Lower Cluster:**\n    *   An arrow connects the lower **R** block to the falling edge (end) of the **Case 2** signal line.\n    *   An arrow connects the lower **E** block to the falling edge (end) of the **Case 2** signal line.\n    *   Annotation: **(EZ_Count = 2)** is located near these connections.\n*   **Signal Sequences:**\n    *   A line connects the falling edge of the **Case 2** signal line to the rising edge (start) of the **Case 3** signal line.\n    *   A line connects the falling edge of the **Case 3** signal line to the rising edge (start) of the **Case 4** signal line.](.pci-8102-50-11136-1020-300-en/f1b5801c1e2d0bd83dcc2376d06c4264e0dce420c8cb8ca99def5c9f87d31e62.jpg)

Home mode=4: (ORG On then reverse to count EZ number and reset counter)
![Based on the provided image, here is an accurate and concise description of the flowchart/diagram:\n\n**Top Signals:**\nThree signal lines are labeled **ORG**, **EZ**, and **EL**.\n\n**Rows and Labeled Blocks:**\n*   **Case 1:** Contains a grey box labeled **R&E**. An arrow points from this box to a rectangular logic shape. Next to the shape is the text **(EZ_Count = 1)**. Below the shape is the text **FA Speed**.\n*   **Case 2:** Contains a rectangular logic shape with an arrow pointing right (top edge) and an arrow pointing left (bottom edge). Next to the shape is the text **(EZ_Count = 0)**.\n*   **Case 3:** Contains two rectangular logic shapes. The left shape is positioned under the Case 2 row. The right shape is further to the right and contains an arrow pointing right.\n*   **Case 4:** Contains a grey box labeled **R&E** on the left and a small rectangular logic shape on the right containing an arrow pointing right.\n\n**Central Text:**\nThe text **FA Speed** appears centrally between Case 2 and Case 3.\n\n**Connections:**\n*   **R&E (Case 1):** An arrow connects the **R&E** block to the adjacent logic shape.\n*   **R&E (Case 4):** Two arrows extend diagonally from the **R&E** block upwards to the left logic shape in Case 3.\n*   **FA Speed (Central):** Two arrows extend from the central **FA Speed** text: one points up-right to the Case 2 shape, and the other points up-left to the left logic shape in Case 3.\n*   **Vertical Flow:** A vertical line drops from the right side of the Case 2 shape to the left side of the right logic shape in Case 3. Another vertical line drops from the right side of the Case 3 right shape to the logic shape in Case 4.](.pci-8102-50-11136-1020-300-en/f8614982b599e2f0af2c95874f77f4eb332a6d47ed8d21df10362e8f9ed95a73.jpg)

Home mode=5: (ORG On then reverse to count EZ number and reset counter, not using FA Speed)
![Based on the provided image, here is an accurate and concise description of the flowchart/timing diagram:\n\n**Signal Lines (Top Section):**\n*   **ORG**: A single high pulse.\n*   **EZ**: A series of clock-like pulses.\n*   **EL**: A signal that goes high after the ORG pulse ends.\n\n**Blocks and Connections:**\n*   **Block R**: A grey square labeled 'R' points to the third pulse of the **EZ** signal.\n*   **Block E**: A grey square labeled 'E' points to the start of the path in **Case 1**.\n*   **Block E**: Another grey square labeled 'E' points to the start of the path in **Case 3**.\n*   **Block R**: Another grey square labeled 'R' points to the branching point in **Case 3**.\n\n**Case Rows:**\n*   **Case 1**: Displays a looped arrow path (right then back left). Text label: `(EZ_Count = 1)`.\n*   **Case 2**: Displays a looped arrow path (right then back left). Text label: `(EZ_Count = 0)`.\n*   **Case 3**: Displays a branching path. An arrow goes right, then splits; one branch loops back left, and another continues to the right.\n*   **Case 4**: Displays a simple arrow path continuing to the right.](.pci-8102-50-11136-1020-300-en/384c2b6b8c0c98513256882f8dd25424ce1b194f1037a7d5c8e0785938cffaed.jpg)

Home mode=6: (EL On then reverse to leave EL and reset counter)

![EL\nCase 1\nFA Speed\nR&E](.pci-8102-50-11136-1020-300-en/5581e65e8a9b6b48e120a86cdb6ef4c7ded12a5e0c0d138943e18a02968adf37.jpg)

Home mode=7: (EL On then reverse to count EZ number and reset counter)

![EZ\nEL\nCase 1\n(EZ_Count = 1)\nFA Speed\nR&E](.pci-8102-50-11136-1020-300-en/af4597234e48375bc0d7bc416aa699841268e6e1d0ac7316497ac4bd30b35ede.jpg)

Home mode=8: (EL On then reverse to count EZ number and reset counter, not using FA Speed)

![EZ\nEL\nCase 1\nE\n(EZ_Count = 1)\nR](.pci-8102-50-11136-1020-300-en/96c79f1d463a09889ec7c6c99e796d851e44045d428a5f655b35bfb188f6bb37.jpg)

Home mode=9: (ORG On then reverse to zero position, an extension from mode 0)
![**Labeled Blocks:**\n*   ORG\n*   EL\n*   Case 1\n*   Case 2\n*   Case 3\n*   R (inside a square box)\n*   E (inside a square box)\n\n**Connections:**\n*   On the **Case 1** track, a thick black line moves horizontally to the right, then turns downwards.\n*   The box labeled **R** connects to the upper part of this downward vertical segment.\n*   The box labeled **E** connects to the lower part of this vertical segment.\n*   On the **Case 2** track, a thick black line originates from the bottom of this vertical segment and moves horizontally to the right.\n*   Further to the right on the **Case 2** track, a thick black line moves horizontally, then turns downwards.\n*   On the **Case 3** track, a thick black line moves horizontally to the right and connects to the bottom of the vertical segment from the **Case 2** track.\n*   At this junction on the **Case 3** track, there are arrows pointing both up and down.](.pci-8102-50-11136-1020-300-en/51cb83c5f92346386a2a5278911849322aaae7637b3786a7718c8da54e2b830b.jpg)

Home mode=10: (ORG On then counter EZ and reverse to zero position, an extension from mode 3)
![ORG\nEZ\nEL\nCase 1\n(EZ_Count = 1)\nCase 2\nCase 3](.pci-8102-50-11136-1020-300-en/66475e242ce047aff3abd05226565304090cfb151cb69e7b215ba11d19c59157.jpg)

Home mode=11: (ORG On then reverse to counter EZ and reverse to zero position, an extension from mode 5)
![Based on the provided image, here is an accurate and concise description of the timing diagram:\n\n**Labeled Blocks and Rows:**\n*   **ORG**: A square wave signal at the top.\n*   **EZ**: A pulse train signal below ORG.\n*   **EL**: A signal that goes high after ORG goes low.\n*   **Case 1**: A row showing a waveform and an annotation.\n*   **Case 2**: A row showing a waveform and annotations.\n*   **Case 3**: A row showing a waveform.\n*   **Case 4**: A row showing a waveform.\n*   **E**: A grey block label appearing twice.\n*   **R**: A grey block label appearing twice.\n*   **(EZ Count = 1)**: Text annotation next to Case 1.\n*   **(EZ Count = 0)**: Text annotation next to Case 2.\n\n**Connections (Arrows):**\n*   An arrow from the block **E** (in Case 1) points to the vertical timing line marking the falling edge of the **ORG** signal.\n*   An arrow from the block **R** (in Case 2) points to the rising edge of the first pulse in the **Case 2** waveform.\n*   An arrow from the block **E** (in Case 2) points to the same vertical timing line marking the falling edge of the **ORG** signal.\n*   An arrow from the block **R** (in Case 3) points to the rising edge of the pulse in the **Case 3** waveform.](.pci-8102-50-11136-1020-300-en/fb99f8f22e2c73501c35896d5086c387edd15279de014e9301347a4d616a35d4.jpg)

Home mode=12: (EL On then reverse to count EZ number and reverse to zero position, an extension from mode 8)
![EZ\nEL\nCase 1\n(EZ_Count = 1)\nE\nR](.pci-8102-50-11136-1020-300-en/fbbd1d14b130a5cc7a23bc0dc74f26f1431385673766e7604185a04cefefc005.jpg)

# 4.2.11 Home Search Function

This mode is used to add auto searching function on normal home return mode described in previous section no matter which position the axis is. The following diagram is shown the example for home mode 2 via home search function. The ORG offset can't be zero. Suggested value is the double length of ORG area.

![The diagram displays three scenarios labeled 'Case 1', 'Case 2', and 'Case 3', along with vertical reference lines at the top labeled 'ORG' and 'EL'.\n\n**Case 1:**\n*   **Blocks:** 'FA Speed', 'R&E' (appears twice, once upper and once lower), and a square block containing a curved arrow.\n*   **Connections:** An arrow points from the upper 'R&E' block to the square block. An arrow points from the 'FA Speed' block to the square block.\n\n**Case 2:**\n*   **Blocks:** 'FA Speed', 'R&E', and a square block containing a curved arrow.\n*   **Labels:** A bracket labeled 'ORG Offset'.\n*   **Connections:** An arrow points from the 'R&E' block to the square block. An arrow points from the 'FA Speed' block to the square block.\n\n**Case 3:**\n*   **Blocks:** 'FA Speed' (a hexagon containing the square block with the curved arrow), 'R&E', and an unlabeled hexagonal shape.\n*   **Labels:** A bracket labeled 'ORG Offset'.\n*   **Connections:** An arrow points from the 'R&E' block to the square block inside 'FA Speed'. A line connects the 'FA Speed' block to the unlabeled shape to its right.](.pci-8102-50-11136-1020-300-en/d72073b8e28110c3a4fff4d07a251f23298873e1c6d4a8061cede92cf2354b60.jpg)

# 4.2.12 Manual Pulser Function

Manual pulser is a device to generate pulse trains by hand. The pulses are sent to motion controller and re-directed to pulse output pins. The input pulses could be multiplied or divided before sending out.

The motion controller receives two kinds of pulse trains from manual pulser device: CW/CCW and AB phase. If the AB phase input mode is selected, the multiplier has additional selection of 1, 2, or 4.

The following figure shows pulser ratio block diagram.

![This flowchart depicts a three-stage signal processing flow moving from left to right.\n\n**Blocks:**\n1.  **First Block:** Labeled 'CW/CCW, 1x, 2x, 4x AB'. Below it is the text 'Input mode setting'.\n2.  **Second Block:** Labeled '1x to 32x'. Below it is the text 'PMG setting'.\n3.  **Third Block:** Labeled '1 to 1/2048'. Below it is the text 'PDV setting'.\n\n**Inputs and Connections:**\n*   Two inputs, **PA** and **PB**, enter the first block from the left.\n*   Two arrows connect the first block to the second block: an upper arrow labeled **UP1** and a lower arrow labeled **DOWN1**.\n*   Two arrows connect the second block to the third block: an upper arrow labeled **UP2** and a lower arrow labeled **DOWN2**.\n*   Two arrows connect the third block to the final output: an upper arrow labeled **UP3** and a lower arrow labeled **DOWN3**.\n\n**Final Output:**\nThe arrows point toward the text '**To internal control circuit**'.](.pci-8102-50-11136-1020-300-en/2d659ed5a11ad6e9a5d4eda454ec35e666b769f4ac44ab7847386d69acea7135.jpg)

# 4.2.13 Simultaneous Start Function

Simultaneous motion means more than one axis can be started by a Simultaneous signal which could be external or internal signals. For external signal, users must set move parameters first for all axes then these axes will wait an extern start/stop command to start or stop. For internal signal, the start command could be from a software start function. Once it is issued, all axes which are in waiting synchronous mode will start at the same time.

![The diagram illustrates a signal splitting into two axis controls and their corresponding motion profiles.\n\n**Labeled Blocks:**\n*   Start/Stop Signal\n*   Axis0\n*   Axis1\n\n**Connections and Layout:**\n*   A line originates from 'Start/Stop Signal' and splits into two branches.\n*   The top branch connects to the left side of the 'Axis0' block.\n*   The bottom branch connects to the left side of the 'Axis1' block.\n*   To the right of a vertical dashed line, two graphs are displayed.\n    *   The top graph (aligned with Axis0) shows a trapezoidal profile with a right-pointing arrow above it.\n    *   The bottom graph (aligned with Axis1) shows a smaller trapezoidal profile with a right-pointing arrow above it.](.pci-8102-50-11136-1020-300-en/7f88148512da651c5572eb2795f18fbfc0144631cb2e0f8fbe09dc8ea1702d81.jpg)

# 4.2.14 Speed Override Function

Speed override means that users can change command's speed during the operation of motion. The change parameter is a percentage of original defined speed. Users can define a 100% speed value then change the speed by percentage of original speed when motion is running. If users didn't define the 100% speed value. The default 100% speed is the latest motion command's maximum speed. This function can be applied on any motion function. If the running motion is S-curve or bell curve, the speed override will be a pure s-curve. If the running motion is t-curve, the speed override will be a t-curve.

![| Time (Second) | Speed (PPS) |\n| ------------- | ----------- |\n| 0             | 0           |\n| 50            | 50%         |\n| 100           | 50%         |](.pci-8102-50-11136-1020-300-en/f3af4b8b344a5b354a5aeb4bc5926ee17c0dc51a02dfeec0b5b819774a12cd63.jpg)

# 4.2.15 Position Override Function

Position override means that when users issue a positioning command and want to change its target position during this operation. If the new target position is behind current position when override command is issued, the motor will slow down then reverse to new target position. If the new target position is far away from current position on the same direction, the motion will remain its speed and run to new target position. If the override timing is on the deceleration of current motion and the target position is far away from current position on the same direction, it will accelerate to original speed and run to new target position. The operation examples are shown as below. Notice that if the new target position's relative pulses are smaller than original slow down pulses, this function can't work properly.

![The image displays three separate graphs, each plotting 'Speed' on the vertical axis against 'Time' on the horizontal axis. Each graph illustrates a different scenario involving an 'Override' and a 'New Pos.' (New Position).\n\n**Top Left Graph:**\n*   **Solid Line:** A profile that ramps up, holds a constant speed, then drops sharply into negative speed values, holds that negative speed, and finally rises back to zero.\n*   **Dashed Line:** A trapezoidal profile (ramping up, holding, and ramping down to zero) that appears to be interrupted or modified by the solid line.\n*   **Labels:** An arrow labeled 'Override' points to the top plateau of the solid line where the sharp drop begins. An arrow labeled 'New Pos.' points to the end of the solid line on the time axis.\n\n**Top Right Graph:**\n*   **Solid Line:** A standard trapezoidal profile (ramping up, holding, and ramping down to zero).\n*   **Dashed Line:** A line starting at the top plateau (marked 'Override') that runs horizontally to the right before dropping down.\n*   **Labels:** An arrow labeled 'Override' points to the top plateau of the trapezoid. An arrow labeled 'New Pos.' points to the end of the solid trapezoidal line.\n\n**Bottom Left Graph:**\n*   **Solid Line:** A standard trapezoidal profile (ramping up, holding, and ramping down to zero).\n*   **Dashed Line:** A line starting on the downward slope (marked 'Override') that drops straight down vertically to the time axis.\n*   **Labels:** An arrow labeled 'Override' points to the downward slope of the trapezoid. An arrow labeled 'New Pos.' points to the end of the solid trapezoidal line.](.pci-8102-50-11136-1020-300-en/ad2f083c5f9b5dc8f19192dc32d27ab789d84b48d96cd3e88379f3d79c293684.jpg)

# 4.3 Motor Driver Interface

We provide several dedicated I/Os which can be connected to motor driver directly and have their own functions. Motor drivers have many kinds of I/O pins for external motion controller to use. We classify them to two groups. One is pulse I/O signals including pulse command and encoder interface. The other is digital I/O signals including servo ON, alarm, INP, servo ready, alarm reset and emergency stop inputs. The following sections will describe the functions these I/O pins.

# 4.3.1 Pulse Command Output Interface

The motion controller uses pulse command to control servo/stepper motors via motor drivers. Please set the drivers to position mode which can accept pulse trains as position command. The pulse command consists of two signal pairs. It is defined as OUT and DIR pins on connector. Each signal has two pins as a pair for differential output. There are two signal modes for pulse output command: (1) single pulse output mode (OUT/DIR), and (2) dual pulse output mode (CW/CCW type pulse output). The mode must be the same as motor driver. The modes vs. signal type of OUT and DIR pins are listed in the table below:

<table><tr><td>Mode</td><td>Output of OUT pin</td><td>Output of DIR pin</td></tr><tr><td>Dual pulse output (CW/CCW)</td><td>Pulse signal in plus (or CW) direction</td><td>Pulse signal in minus (or CCW) direction</td></tr><tr><td>Single pulse output (OUT/DIR)</td><td>Pulse signal</td><td>Direction signal (level)</td></tr></table>

# Single Pulse Output Mode (OUT/DIR Mode)

In this mode, the OUT pin is for outputting command pulse chain. The numbers of OUT pulse represent distance in pulse. The frequency of the OUT pulse represents speed in pulse per second. The DIR signal represents command direction of positive (+) or negative (-). The diagrams below show the output waveform. It is possible to set the polarity of the pulse chain.

Pulse mode = 0: ( OUT pin normally high )
![OUT\nDIR (+) (-)](.pci-8102-50-11136-1020-300-en/7dcd93500c8c8abd922219d36b68cd21e65767bdd42bf94a74b60626ce69a8c1.jpg)

Pulse mode = 1: (OUT pin normally low)
![OUT\nDIR (+) (-)](.pci-8102-50-11136-1020-300-en/1b669f1e78aecc3c84a7f1351230e222b9b8f7dae3b148ba24c1099135292336.jpg)

Pulse mode = 2: (OUT pin normally high)
![OUT\nDIR (+) (-)](.pci-8102-50-11136-1020-300-en/c2e73e711624daeb3f00ebac7089f2fa236599ade3de396f0f1cf25985dd3af3.jpg)

Pulse mode = 3: (OUT pin normally low)
![OUT\nDIR (+) (-)](.pci-8102-50-11136-1020-300-en/1e776734b3787385da302e82bfc2c3f9e81c6d365c41a36f0068fcacde22f7c5.jpg)

# Dual Pulse Output Mode (CW/CCW Mode)

In this mode, the waveform of the OUT and DIR pins represent CW (clockwise) and CCW (counter clockwise) pulse output respectively. The numbers of pulse represent distance in pulse. The frequency of the pulse represents speed in pulse per second. Pulses output from the CW pin makes the motor move in positive direction, whereas pulse output from the CCW pin makes the motor move in negative direction. The following diagram shows the output waveform of positive (+) commands and negative (-) commands.

Pulse outmode = 4: (Pulse is normally high)
![OUT\nDIR\n(+)          (-)\nCW\nCCW](.pci-8102-50-11136-1020-300-en/39f5aa6fd9ba8bbe46fe1da9204f85689a9a5214e2ffbdc18d5432cf284c72b5.jpg)

Pulse outmode = 5: (Pulse is normally low)

![OUT\n(+)    (-)\nDIR\nCW\nCCW](.pci-8102-50-11136-1020-300-en/067736b2a188c2fa0a16cb3960350dba44a61130eb81cb4513177421b6c10f5c.jpg)

The command pulses are counted by a 28-bit command counter. The command counter can store a value of total pulses outputting from controller.

# 4.3.2 Pulse Feedback Input Interface

Our motion controller provides one 28-bit up/down counter of each axis for pulse feedback counting. This counter is called position counter. The position counter counts pulses from the EA and EB signal which have plus and minus pins on connector for differential signal inputs. It accepts two kinds of pulse types. One is dual pulses input (CW/CCW mode) and the other is AB phase input. The AB phase input can be multiplied by 1, 2 or 4. Multiply by 4 AB phase mode is the most commonly used in incremental encoder inputs.

For example, if a rotary encoder has 2000 pulses per rotation, then the counter value read from the position counter will be 8000 pulses per rotation when the AB phase is multiplied by four.

If users don't use encoder for motion controller, the feedback source for this counter must be set as pulse command output or the counter value will always be zero. If it is set as pulse command output, users can get the position counter value from pulse command output counter because the feedback pulses are internal counted from command output pulses.

The following diagrams show these two types of pulse feedback signal.

Plus and Minus Pulses Input Mode (CW/CCW Mode)
![EA\n(+)          (-)\nEB\nCCW\nCCW](.pci-8102-50-11136-1020-300-en/2e60e707be940f3e1657c4ea044dac6077b55cf61b8043694b5b2e7bcba79d0e.jpg)

The pattern of pulses in this mode is the same as the Dual Pulse Output Mode in the Pulse Command Output section except that the input pins are EA and EB.

In this mode, pulses from EA pin cause the counter to count up, whereas EB pin caused the counter to count down.

90° phase difference signals Input Mode (AB phase Mode)

In this mode, the EA signal is a $90^{\circ}$ phase leading or lagging in comparison with the EB signal. “Lead” or “lag” of phase difference between two signals is caused by the turning direction of the motor. The up/down counter counts up when the phase of EA signal leads the phase of EB signal.

The following diagram shows the waveform.

![EA\nEB\n(+)\nEA\nEB\n(-)](.pci-8102-50-11136-1020-300-en/d751e2b7e6cf97905859326d75b6df2c6223b04053d03f3d026e14720a694f05.jpg)

The index input (EZ) signal is as the zero reference in linear or rotary encoder. The EZ can be used to define the mechanical zero position of the mechanism. The logic of signal must also be set correctly to get correct result.

# 4.3.3 In Position Signal

The in-position signal is an output signal from motor driver. It tells motion controllers a motor has been reached a position within a predefined error. The predefined error value is in-position value. Most motor drivers call it as INP value. After motion controller issues a positioning command, the motion busy status will keep true until the INP signal is ON. Users can disable INP check for motion busy flag. If it is disabled, the motion busy will be FALSE when the pulses command is all sent.

![| Time | Position Errors | INP Signal |\n|------|-----------------|----------|\n| 0    | 0               | 0        |\n| 50   | ~0.8            | ~0.2     |\n| 100  | ~0.6            | ~0.1     |\n| 150  | ~0.4            | ~0.05    |\n| 200  | ~0.2            | ~0.02    |\n| 250  | ~0.1            | ~0.01    |\n| 300  | ~0.05           | ~0.005   |\n| 350  | ~0.02           | ~0.002   |\n| 400  | ~0.01           | ~0.001   |\n| 450  | ~0.005          | ~0.0005  |\n| 500  | ~0.002          | ~0.0002  |\n| 550  | ~0.001          | ~0.0001  |\n| 600  | ~0.0005         | ~0.00005 |\n| 650  | ~0.0002         | ~0.00002 |\n| 700  | ~0.0001         | ~0.00001 |\n| 750  | ~0.00005        | ~0.000005|\n| 800  | ~0.00002        | ~0.000002|\n| 850  | ~0.00001        | ~0.000001|\n| 900  | ~0.0             | ~0.0     |\n| 950  | ~0.0            | ~0.0     |\n| 1000 | ~0.0            | ~0.0     |](.pci-8102-50-11136-1020-300-en/69db7db4a3ed7cd184492f6d45ba8ea433ab500479359227acbfa1db6772362c.jpg)

# 4.3.4 Servo Alarm Signal

The alarm signal is an output signal from motor driver. It tells motion controller that there has something error inside servo motor or driver. Once the motion controller receives this signal, the pulses command will stop sending and the status of ALM signal will be ON. The reasons of alarm could be servo motor's over speed, over current, over loaded and so on. Please check motor driver's manual about the details.

The logic of alarm signal must be set correctly. If the alarm logic's setting is not the same as motor driver's setting, the ALM status will be always ON and the pulse command can never be outputted.

# 4.3.5 Error Clear Signal

The ERC signal is an output from the motion controller. It tells motor driver to clear the error counter. The error counter is counted from the difference of command pulses and feedback pulses. The feedback position will always have a delay from the command position. It results in pulse differences between these two positions at any moment. The differences are shown in error counter. Motor driver uses the error counter as a basic control index. The large the error counter value is, the faster the motor speed command will be set. If the error counter is zero, it means that zero motor speed command will be set.

At following four situations, the ERC signal will be outputted automatically from motion controller to motor driver in order to clear error counter at the same time.

1. Home return is complete
2. The end-limit switch is touched
3. An alarm signal is active
4. An emergency stop command is issued

# 4.3.6 Servo ON/OFF Switch

The servo on/off switch is a general digital output signal on motion controller. We define it as SVON pin on the connector. It can be used for switching motor driver's controlling state. Once it is turned on, the motor will be held because the control loop of driver is active. Be careful that when the axis is vertically installed and the servo signal is turned off, the axis will be in uncontrolled state. Some situations like servo alarm and emergency signal ON will result in the same trouble.

# 4.3.7 Servo Ready Signal

The servo ready signal is a general digital input on motion controller. It has no relative purpose to motion controller. Users can connect this signal to motor driver's RDY signal to check if the motor driver is in ready state. It lets users to check something like the motor driver's power has been input or not. Or users can connect this pin as a general input for other purpose. It doesn't affect motion control.

# 4.3.8 Servo Alarm Reset Switch

The servo driver will raise an alarm signal if there is something wrong inside the servo driver. Some alarm situations like servo motor over current, over speed, over loading and so on. Power reset can clear the alarm status but users usually don't want to power off the servo motor when operating. There is one pin from servo driver for users to reset the alarm status. Our motion controller provides one general output pin for each axis. Users can use this pin for resetting servo alarm status.

# 4.4 Mechanical Switch Interface

We provide some dedicated input pins for mechanical switches like original switch (ORG), plus and minus end-limit switch ( $\pm$ EL), slow down switch (SD), positioning start switch (PCS), counter latch switch (LTC), emergency stop input (EMG) and counter clear switch (CLR). These switches' response time is very short, only a few ASIC clock times. There is no real-time problem when using these signals. All functions are done by motion ASIC. The software can just do nothing and only need to wait the results.

# 4.4.1 Original or Home Signal

Our controller provides one original or home signal for each axis. This signal is used for defining zero position of this axis. The logic of this signal must be set properly before doing home procedure. Please refer to home mode section for details.

# 4.4.2 End-Limit Switch Signal

The end-limit switches are usually installed on both ending sides of one axis. We must install plus EL at the positive position of the axis and minus EL at the negative position of the axis. These two signals are for safety reason. If they are installed reversely, the protection will be invalid. Once the motor's moving part touches one of the end-limit signal, the motion controller will stop sending pulses and output an ERC signal. It can prevent machine crash when miss operation.

# 4.4.3 Slow Down Switch

The slow down signals are used to force the command pulse to decelerate to the starting velocity when it is active. This signal is used to protect a mechanical moving part under high speed movement toward the mechanism's limit. The SD signal is effective for both plus and minus directions.

# 4.4.4 Positioning Start switch

The positioning start switch is used to move a specific position when it is turned on. The function is shown as below.

![PCS\nVelocity\nstart_tr_move and enable PCS\n(Distance = 1000)\nArea = 1000 pulse\nTime](.pci-8102-50-11136-1020-300-en/c8b008c02fb8ab7808f9afb701cf9faa698dedd24162f35d8287786668562660.jpg)

# 4.4.5 Counter Clear switch

The counter clear switch is an input signal which makes the counters of motion controller to reset. If users need to reset a counter according to external command, use this pin as controlling source.

# 4.4.6 Counter Latch Switch

The counter latch switch is an input signal which makes counter value to be kept into a register when this input active. If users need to know counter value at the active moment of one input, they can connect this pin to catch that.

# 4.4.7 Emergency Stop Input

Our motion controller provides a global digital input for emergency situation. Once the input is turned on, our motion controller will stop all axes' motion immediately to prevent machine's damage. Usually, users can connect an emergency stop button to this input on their machine. We suggest this input as normal closed type for safety.

# 4.5 Counters

There are four counters for each axis of this motion controller. They are described in this section.

Command position counter: counts the number of output pulses

Feedback position counter: counts the number of input pulses

Position error counter: counts the error between command and feedback pulse numbers.

General purpose counter: The source can be configured as command position, feedback position, manual pulser, or half of ASIC clock.

Target position recorder: A software-maintained target position value of latest motion command.

# 4.5.1 Command Position Counter

The command position counter is a 28-bit binary up/down counter. Its input source is the output pulses from the motion controller. It provides the information of the current command position. It is useful for debugging the motion system.

Our motion system is an open loop type. The motor driver receives pulses from motion controller and drive the motor to move. When the driver is not moving, we can check this command counter and see if there is an update value on it. If it is, it means that the pulses have seen sent and the problem could be on the motor driver. Try to check motor driver's pulse receiving counter when this situation is happened.

The unit of command counter is in pulse. The counter value could be reset by a counter clear signal or home function completion. Users can also use a software command counter setting function to reset it.

# 4.5.2 Feedback Position Counter

The feedback position counter is a 28-bit binary up/down counter. Its input source is the input pulses from the EA/EB pins. It counts the motor position from motor's encoder output. This counter could be set from a source of command position for an option when no external encoder inputs.

The command output pulses and feedback input pulses will not always be the same ratio in mini-meters. Users must set the ratio if these two pulses are not 1:1.

Because our motion controller is not a closed-loop type, the feedback position counter is just for reference after motion is moving. The position closed-loop is done by servo motor driver. If the servo driver is well tuned and the mechanical parts are well assembled, the total position error will remain in acceptable range after motion command is finished.

# 4.5.3 Command and Feedback Error Counter

The command and feedback error counter is used to calculate the error between the command position and the feedback position. The value is calculated from command subtracting feedback position.

If the ratio between command and feedback is not 1:1, the error counter is meaningless.

This counter is a 16-bit binary up/down counter.

# 4.5.4 General Purpose Counter

The source of general purpose counter could be any of the following:

1. Command position output - the same as a command position counter
2. Feedback position input – the same as a feedback position counter
3. Manual Pulser input – Default setting
4. Clock Ticks – Counter from a timer about 9.8 MHz

# 4.5.5 Target Position Recorder

The target position recorder is used for providing target position information. It is used in continuous motion because motion controller need to know the previous motion command's target position and current motion command's target position in order to calculate relative pulses of current command then send results into pre-register. Please check if the target position is the same with current command position before continuous motion. Especially after the home function and stop function.

# 4.6 Comparators

There are 5 counter comparators of each axis. Each comparator has dedicated functions. They are:

1. Positive soft end-limit comparator to command counter
2. Negative soft end-limit comparator to command counter
3. Command and feedback error counter comparator
4. General comparator for all counters
5. Trigger comparator for all command and feedback counters

# 4.6.1 Soft End-Limit Comparators

There are two comparators for end-limit function of each axis. We call them for the soft end-limit comparators. One is for plus or positive end-limit and the other is for minus or negative end-limit. The end-limit is to prevent machine crash when over traveling. We can use the soft limit instead of a real end-limit switch. Notice that these two comparators only compare the command position counter. Once the command position is over the limited set inside the positive or negative comparators, it will stop moving as it touches the end-limit switch.

# 4.6.2 Command and Feedback Error Counter Comparators

This comparator is only for command and feedback counter error. Users can use this comparator to check if the error is too big. It can be set a action when this condition is met. The actions include generating interrupt, immediately stop, and deceleration to stop.

# 4.6.3 General Comparator

The general comparator let users to choose the source to compare. It could be chosen from command, feedback position counter, error counter or general counter. The compare methods could be chosen by equal, greater than or less than with directional or directionless. Also the action when condition is met can be chosen from generating interrupt, stop motion or others.

# 4.6.4 Trigger Comparator

The trigger comparator is much like general comparator. It has an additional function, generating a trigger pulse when condition is met. Once the condition is met, the CMP pin on the connector will output a pulse for specific purpose like triggering a camera to catch picture. Not all of axes have this function. It depends on the existence of CMP pin of the axis. The following diagram shows the application of triggering.

![v\nt\n1 2 3 4 5 6\nCCD\nCamera\nTrigger Output](.pci-8102-50-11136-1020-300-en/006fdf43e6de5c0385d394249b702e1336247d054afe297f254c51eeb88f5344.jpg)

In this application, the table is controlled by the motion command, and the CCD Camera is controlled by CMP pin. When the comparing position is reached, the pulse will be outputted and the image is captured. This is an on-the-fly image capture. If users want to get more images during the motion path, try to set a new comparing point right after previous image is captured. It can achieve continuous image capturing by this method.

# 4.7 Other Motion Functions

We provide many other functions on the motion controller. Such as backlash compensation, slip correction, vibration restriction, speed profile calculation and so on. The following sections will describe these functions.

# 4.7.1 Backlash Compensation and Slip Corrections

The motion controller has backlash and slip correction functions. These functions output the number of command pulses in FA speed. The backlash compensation is performed each time when the direction changes on operation. The slip correction function is performed before a motion command, regardless of the direction. The correction amount of pulses can be set by function library.

# 4.7.2 Vibration Restriction Function

The method of vibration restriction of the motion controller is by adding one pulse of reverse direction and then one pulse of forward direction shortly after completing a motion command. The timing of these two dummy pulses are shown below: (RT indicates reverse time and FT forward time)

![(+) Direction\n(-) Direction\nFinal Pulse\nRT/2\nFT/2\nRT\nFT](.pci-8102-50-11136-1020-300-en/09fe5b90a19ce7be9258d7c4744837085109ac6ffb25db1ebb2697c92124d523.jpg)

# 4.7.3 Speed Profile Calculation Function

Our motion function needs several speed parameters from users. Some parameters are conflict in speed profile. For example, if users input a very fast speed profile and a very short distance to motion function, the speed profile is not exist for these parameters. At this situation, motion library will keep the acceleration and deceleration rate. It tries to lower the maximum speed from users automatically to reform a speed profile feasible. The following diagram shows this concept.

![| Time (second) | StrVel (ps) | NewMaxVel (ps) |\n| ------------- | ----------- | -------------- |\n| 0             | 0           | 0              |\n| Tacc          | Low         | Low            |\n| Tdec          | High        | High           |\n| 1             | Low         | Low            |\n| 2             | High        | High           |\n| 3             | Low         | Low            |\n| 4             | High        | High           |\n| 5             | Low         | Low            |\n| 6             | High        | High           |\n| 7             | Low         | Low            |\n| 8             | High        | High           |\n| 9             | Low         | Low            |\n| 10            | High        | High           |\n| 11            | Low         | Low            |\n| 12            | High        | High           |\n| 13            | Low         | Low            |\n| 14            | High        | High           |\n| 15            | Low         | Low            |\n| 16            | High        | High           |\n| 17            | Low         | Low            |\n| 18            | High        | High           |\n| 19            | Low         | Low            |\n| 20            | High        | High           |\n| 21            | Low         | Low            |\n| 22            | High        | High           |\n| 23            | Low         | Low            |\n| 24            | High        | High           |\n| 25            | Low         | Low            |\n| 26            | High        | High           |\n| 27            | Low         | Low            |\n| 28            | High        | High           |\n| 29            | Low         | Low            |\n| 30            | High        | High           |\n| 31            | Low         | Low            |\n| 32            | High        | High           |\n| 33            | Low         | Low            |\n| 34            | High        | High           |\n| 35            | Low         | Low            |\n| 36            | High        | High           |\n| 37            | Low         | Low            |\n| 38            | High        | High           |\n| 39            | Low         | Low            |\n| 40            | High        | High           |\n| 41            | Low         | Low            |\n| 42            | High        | High           |\n| 43            | Low         | Low            |\n| 44            | High        | High           |\n| 45            | Low         | Low            |\n| 46            | High        | High           |\n| 47            | Low         | Low            |\n| 48            | High        | High           |\n| 49            | Low         | Low            |\n| 50            | High        | High           |\n| 51            | Low         | Low            |\n| 52            | High        | High           |\n| 53            | Low         | Low            |\n| 54            | High        | High           |\n| 55            | Low         | Low            |\n| 56            | High        | High           |\n| 57            | Low         | Low            |\n| 58            | High        | High           |\n| 59            | Low         | Low            |\n| 60            | High        | High           |\n| 61            | Low         | Low            |\n| 62            | High        | High           |\n| 63            | Low         | Low            |\n| 64            | High        | High           |\n| 65            | Low         | Low            |\n| 66            | High        | High           |\n| 67            | Low         | Low            |\n| 68            | High        | High           |\n| 69            | Low         | Low            |\n| 70            | High        | High           |\n| 71            | Low         | Low            |\n| 72            | High        | High           |\n| 73            | Low         | Low            |\n| 74            | High        | High           |\n| 75            | Low         | Low            |\n| 76            | High        | High           |\n| 77            | Low         | Low            |\n| 78            | High        | High           |\n| 79            | Low         | Low            |\n| 80            | High        | High           |\n| 81            | Low         | Low            |\n| 82            | High        | High           |\n| 83            | Low         | Low            |\n| 84            | High        | High           |\n| 85            | Low         | Low            |\n| 86            | High        | High           |\n| 87            | Low         | Low            |\n| 88            | High        | High           |\n| 89            | Low         | Low            |\n| 90            | High        | High           |\n| 91            | Low         | Low            |\n| 92            | High        | High           |\n| 93            | Low         | Low            |\n| 94            | High        | High           |\n| 95            | Low         | Low            |\n| 96            | High        | High           |\n| 97            | Low         | Low            |\n| 98            | High        | High           |\n| 99            | Low         | Low            |\n| 100           | High        | High           |\n| Tacc          | Medium      | Medium         |\n| Tdec          | Medium      | Medium         |\n| Time (second) 1     (at Tacc)   (at Tdec)    (at Time (second))   (at Time (second))   (at Time (second))   (at Time (second))   (at Time (second))   (at Time (second))   (at Time (second))   (at Time (second))   (at Time (second))   (at Time (second))   (at Time (second))   (at Time (second))   (at Time (second))   (at Time (second))   (at Time (second))   (from Tacc to NewMaxVel)   (at NewMaxVel)   (at NewTacc)    (at NewTdec)    (at NewMaxVel)   (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (from Tacc to NewMaxVel)   (at NewMaxVel)   (at NewMaxVel)   (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (from Tacc to NewMaxVel)   (at NewMaxVel)   (at NewMaxVel)   (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (at NewTdec)    (at NewTacc)    (from Tacc to NewMaxVel)   (at NewMaxVel)   (at NewMaxVel)   (at NewTacc)    (at NewTdec)|](.pci-8102-50-11136-1020-300-en/538b02acbec656666bddfdea39be8d27db9c2ca062829b8b36662866188a63d1.jpg)

Our motion library has a series of functions to know the actual speed profile of the command from users.

# 4.8 Interrupt Control

The motion controller can generate an interrupt signal to the host PC. It is much useful for event-driven software application. Users can use this function \_8102\_int\_control() to enable ir disable the interrupt service.

There are three kinds of interrupt sources on PCI-8102. One is motion interrupt source and the other is error interrupt source and another is GPIO interrupt sources. Motion and GPIO interrupt sources can be maskable but error interrupt sources can't. Motion interrupt sources can be maskable by \_8102\_set\_motion\_int\_factor(). Its mask bits are shown as following table:

Motion Interrupt Source Bit Settings

<table><tr><td>Bit</td><td>Description</td></tr><tr><td>0</td><td>Normally Stop</td></tr><tr><td>1</td><td>Next command in buffer starts</td></tr><tr><td>2</td><td>Command pre-register 2 is empty and allow new command to write</td></tr><tr><td>3</td><td>0</td></tr><tr><td>4</td><td>Acceleration Start</td></tr><tr><td>5</td><td>Acceleration End</td></tr><tr><td>6</td><td>Deceleration Start</td></tr><tr><td>7</td><td>Deceleration End</td></tr><tr><td>8</td><td>+Soft limit or comparator 1 is ON</td></tr><tr><td>9</td><td>-Soft limit or comparator 2 is ON</td></tr><tr><td>10</td><td>Error comparator or comparator 3 is ON</td></tr><tr><td>11</td><td>General comparator or comparator 4 is ON</td></tr><tr><td>12</td><td>Trigger comparator or comparator 5 is ON</td></tr><tr><td>13</td><td>Counter is reset by CLR input</td></tr><tr><td>14</td><td>Counter is latched by LTC input</td></tr><tr><td>15</td><td>Counter is latched by ORG Input</td></tr><tr><td>16</td><td>SD input turns on</td></tr><tr><td>17</td><td>0</td></tr><tr><td>18</td><td>0</td></tr><tr><td>19</td><td>CSTA input or _8102_start_move_all() turns on</td></tr><tr><td>20~31</td><td>0</td></tr></table>

The error interrupt sources are non-maskable but the error number of situation could be get from \_8102\_wait\_error\_interrupt()’s return code if it is not timeout.

Error Interrupt return codes

<table><tr><td>Value</td><td>Description</td></tr><tr><td>0</td><td>+Soft Limit is ON and axis is stopped</td></tr><tr><td>1</td><td>-Soft Limit is ON and axis is stopped</td></tr><tr><td>2</td><td>Comparator 3 is ON and axis is stopped</td></tr><tr><td>3</td><td>General Comparator or comparator 4 is ON and axis is stopped</td></tr><tr><td>4</td><td>Trigger Comparator or comparator 5 is ON and axis is stopped</td></tr><tr><td>5</td><td>+End Limit is on and axis is stopped</td></tr><tr><td>6</td><td>-End Limit is on and axis is stopped</td></tr><tr><td>7</td><td>ALM is happened and axis is stop</td></tr><tr><td>8</td><td>CSTP is ON or _8102_stop_move_all is on and axis is stopped</td></tr><tr><td>9</td><td>CEMG is on and axis is stopped</td></tr><tr><td>10</td><td>SD input is on and axis is slowed down to stop</td></tr><tr><td>11</td><td>0</td></tr><tr><td>12</td><td>Interpolation operation error and stop</td></tr><tr><td>13</td><td>axis is stopped from other axis&#x27;s error stop</td></tr><tr><td>14</td><td>Pulse input buffer overflow and stop</td></tr><tr><td>15</td><td>Interpolation counter overflow</td></tr><tr><td>16</td><td>Encoder input signal error but axis is not stopped</td></tr><tr><td>17</td><td>Pulse input signal error but axis is not stopped</td></tr><tr><td>11~31</td><td>0</td></tr></table>

The GPIO interrupt sources are maskable. The mask bits table is shown below:

GPIO Interrupt Source Bit Settings (1=Enable,0=Disable)

<table><tr><td>Bit</td><td>Description</td></tr><tr><td>0</td><td>DI0 falling edge</td></tr><tr><td>1</td><td>DI1 falling edge</td></tr><tr><td>2</td><td>DI2 falling edge</td></tr><tr><td>3</td><td>DI3 falling edge</td></tr><tr><td>4</td><td>DI0 raising edge</td></tr><tr><td>5</td><td>DI1 raising edge</td></tr><tr><td>6</td><td>DI2 raising edge</td></tr><tr><td>7</td><td>DI3 raising edge</td></tr><tr><td>8</td><td>Pin23 input interrupt</td></tr><tr><td>9</td><td>Pin57 input interrupt</td></tr><tr><td>10</td><td>Pin23/57 interrupt mode selection (0=falling, 1=raising)</td></tr><tr><td>11~14</td><td>0</td></tr><tr><td>15</td><td>GPIO interrupt switch (Always=1)</td></tr></table>

The steps for using interrupts:

1. Use \_8102\_int\_control(CARD\_ID, Enable=1/Disable=0);
2. Set interrupt sources for Event or GPIO interrupts.
3. \_8102\_set\_motion\_int\_facor(AXIS0, 0x01); // Axis0 normally stop
4. \_8102\_set\_gpio\_int\_factor(CARD0, 0x01); // DI0 falling edge
5. \_8102\_wait\_motion\_interrupt(AXISO, 0x01, 1000) // Wait 1000ms for normally stop interrupt
6. \_8102\_wait\_gpio\_interrupt(CARD0, 0x01, 1000) // Wait 1000ms for DI0 falling edge interrupt
7. I16 ErrNo=\_8102\_wait\_error\_interrupt(AXISO, 2000); // Wait 2000ms for error interrupts

# 4.9 Multiple Card Operation

The motion controller allows more than one card in one system. Since the motion controller is plug-and-play compatible, the base address and IRQ setting of the card are automatically assigned by the PCI BIOS at the beginning of system booting. Users don't need and can't change the resource settings.

When multiple cards are applied to a system, the number of card must be noted. The card number depends on the card ID switch setting on the board. The axis number is depends on the card ID. For example, if three motion controller cards are plugged in to PCI slots, and the corresponding card ID is set, then the axis number on each card will be:

<table><tr><td>card_id.</td><td>Physical Axis</td><td>Axis No</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>5</td></tr><tr><td>X</td><td>0</td><td>X</td></tr></table>

Notice that if there has the same card ID on multiple cards, the function will not work correctly.

# 5 MotionCreatorPro

After installing the hardware (Chapters 2 and 3), it is necessary to correctly configure all cards and double check the system before running. This chapter gives guidelines for establishing a control system and manually testing the PCI-8102 cards to verify correct operation. The MotionCreatorPro software provides a simple yet powerful means to setup, configure, test, and debug a motion control system that uses PCI-8102 cards.

Note that MotionCreatorPro is only available for Windows 2000/XP/7 with a screen resolution higher than 1024x768. It does not run under a DOS environment.

# 5.1 Execute MotionCreatorPro

After installing the software drivers for the 8102 in Windows 2000/XP/7, the MotionCreatorPro program can be located at &lt;chosen path &gt;\PCI-Motion\MotionCreatorPro. To execute the program, double click on the executable file or use Start>Program Files>PCI-Motion>MotionCreatorPro.

# 5.2 About MotionCreatorPro

Before Running MotionCreatorPro, the following issues should be kept in mind.

1. MotionCreatorPro is a program written in VB.NET 2003, and is available only for Windows 2000/XP/7 with a screen resolution higher than 1024x768. It cannot be run under DOS.

2. MotionCreatorPro allows users to save settings and configurations for PCI-8102 cards. Saved configurations will be automatically loaded the next time MotionCreatorPro is executed. Two files, 8102.ini and 8102MC.ini, in the windows root directory are used to save all settings and configurations.

3. To duplicate configurations from one system to another, copy 8102.ini and 8102MC.ini into the windows root directory.
4. If multiple PCI-8102 cards use the same MotionCreator-Pro saved configuration files, the DLL function call \_8102\_config\_from\_file() can be invoked within a user developed program. This function is available in a DOS environment as well.

# 5.3 MotionCreatorPro Form Introduction

# 5.3.1 Main Menu

The main menu appears after running MotionCreatorPro. It is used to:

![Reload all Menu\nOpen Help menus (refer to section 5.3.8)\nExit MotionCreatorPro\nExit\nIraTreeView\nFile: ADLINK\nFile: Motors\nPCI-6002\nHardware\nCust 0\nAxis 1\nPractors\n1-Axis Operate\n2-Axis Operate\n2D-Motion\nCard Information\nBase Address (HDQ) 0\nIRQ Level 0\nVersion Information\nHardware version: 1001\nLibrary version: 3\nDriver version: 2](.pci-8102-50-11136-1020-300-en/5768a3b82202eeac0329a0e589e740fc89fed8ad14d603dc1632da7d436ca60e.jpg)

# 5.3.2 Select Menu

The select menu appears after running MotionCreatorPro. It is used to:

- Select operating card and axis
- Open Card Information Menu (refer to section 5.3.3)
- Open Configuration Menu (refer to section 5.3.4)
- Open Single Axis Operation Menu (refer to section 5.3.5)
- Open Two-Axis Operation Menu (refer to section 5.3.6)
- Open 2D\_Motion Menu (refer to section 5.3.7)
- Show card information. Related function are : \_8102\_get\_version 0,
- Version Information

![frmTreeView\nADLINK\nMotion\nPCI-8102\nHardware\nCard 0\nAxis 0\nAxis 1\nFunctions\n1-Axes Operate\n2-Axes Operate\n2D-Motion\nCard Information :\nBase Address (HEX) : 0\nIRQ Level : 0\nVersion Information :\nHardware version : 1001\nLibrary version : 3\nDriver version : 2](.pci-8102-50-11136-1020-300-en/4e8f689ef5e4f7f615bd9bac3e10c3abcb5f5d6a0ab6eeec9f99cf49166d4bd8.jpg)

# 5.3.3 Card Information Menu

In this menu, it shows some Information about this card.

![Green PCI2506 card with various electronic components and connectors (no readable text or symbols)](.pci-8102-50-11136-1020-300-en/f5aab4417fd88963aeedade74fd23c35193f0d858f1b40ba5ed0431f9470e26b.jpg)

# 5.3.4 Configuration Menu

In this menu, users can configure ALM, INP, ERC, EL, ORG, and EZ.

![Configuration\nPCI-8102 Card no : Card 0 Axis no : Axis 0\nIO_Config_1 | IO_Config_2 | Pulse & INT_Config |\nServo Motor Signal\nALM\nLogic\nActive Low\nActive High\nResponse Mode\nStop immediately\nDec. to Stop\nINP\nLogic\nActive Low\nActive High\nEnable/Disable\nDisable INP\nEnable INP\nERC\nLogic\nActive Lo\nActive High\nActive Timing\n12 us\n102 us\n409 us\n1.6 us\n13 us\n52 us\n104 us\nMech Signal\nEL\nEnable/Disable\nDisable EL Enable EL\nAction\nInterrupt only if INT factor is set\nStop immediately\nSlow then stop\nChange Operation Data to pre-regiate\nResponse Mode\nStop immediate Dec. to Stop\nSoft_limit\nPLUS_Limit = 0\nNEO_Limit = 0\nORG\nLogic\nActive Low 5 Active High\nE7\nLogic\nActive Low 6 Active High\nNext Card\nNext Axis\n7 Save Config\nClose](.pci-8102-50-11136-1020-300-en/234142b6bb03d078c3e67a73f3e91ee57ae080af0747fad696ca22bca499b911.jpg)

1. ALM Logic and Response mode: Select logic and response modes of ALM signal. The related function call is \_8102\_set\_alm().
2. INP Logic and Enable/Disable selection: Select logic, and Enable/ Disable the INP signal. The related function call is \_8102\_set\_inp()
3. ERC Logic and Active timing: Select the Logic and Active timing of the ERC signal. The related function call is \_8102\_set\_erc().
4. EL Response mode: Select the response mode of the EL signal. The related function call is \_8102\_set\_limit\_logic().
5. ORG Logic: Select the logic of the ORG signal. The related function call is \_8102\_set\_home\_config().
6. EZ Logic: Select the logic of the EZ signal. The related function call is \_8102\_set\_home\_config().
7. Buttons:

▷ Next Card: Change operating card.
▷ Next Axis: Change operating axis.
▷ Save Config: Save current configuration to 8102.ini And 8102MC.ini.
▷ Close: Close the menu.

In this menu, users can configure LTC, SD, PCS, and Select\_Input.

![Configuration\nPCI-8102 Card no Card 0 Axis no : Axis 1\nIO_Config_1 IO_Config_2 | Pulse & INT_Config |\nMech Signal\nLTC\nLogic\nActive Low 1 Active High\nLatch_source 2 Active High\nSD\nEnable/Disable Logic\nDisable SD Active Low\nEnable SD Active High\nResponse Mode SD Latch\nSlow Down On Active Low\nSlow Down Then Stop Active High\nPCS\nLogic\nActive Low 4 Active High\nSelect_Input\npin23_SelectAxisX\n0 CLR 5 2 SD\n1 LTC 3 PCS\npin57_SelectAxisY\n0 CLR 6 2 SD\n1 LTC 3 PCS\nNext Card\nNext Axis\nSave Config\nClose](.pci-8102-50-11136-1020-300-en/e2829d40cc002788832112eb08e56305e2b50c8fc556d406975d8cf9588fe998.jpg)

1. LTC Logic: Select the logic of the LTC signal. The related function call is \_8102\_set\_ltc\_logic().
2. LTC latch\_source: Select the logic of the latch\_source signal. The related function call is \_8102\_set\_latch\_source().
3. SD Configuration: Configure the SD signal. The related function call is \_8102\_set\_sd().
4. PCS Logic: Select the logic of the SelectNo signal. The related function call is \_8102\_set\_pcs\_logic().
5. pin23\_Select Axis X: Select the configurations of the Axis X. The related function call is \_8102\_select\_pin23\_input.
6. pin57\_Select Axis Y: Select the configurations of the Axis Y. The related function call is \_8102\_select\_pin57\_input.
7. Buttons:

▷ Next Card: Change operating card.

▷ Next Axis: Change operating axis.

▷ Save Config: Save current configuration to 8102.ini And 8102MC.ini.

▷ Close: Close the menu.

In this menu, users can configure pulse input/output and move ratio and INT factor.

![Configuration\nPCI-8102 Card no : Card 0 Axis no : Axis 1\nIO_Config_1 | IO_Config_2 Pulse & INT_Config\nPulse Output Setting\nOUT/DIR -- OUT is falling edge, DIR+ is high level\nOUT/DIR -- OUT is rising edge, DIR+ is high level\nOUT/DIR -- OUT is falling edge, DIR+ is low level\nOUT/DIR -- OUT is rising edge, DIR+ is low level\nCW/CCW Falling edge\nCW/CCW Rising edge\nINT Factor\nBit 0 Normal Stop\nBit 1 Next Command Continued\nBit 2 Continuous Pre-register\nin Empty\nBit 4 Acceleration Start\nBit 5 Acceleration End\nBit 6 Deceleration Start\nBit 7 Deceleration End\nBit 10 Position Error Occur\nBit 11 General Comparator\nCompared\nBit 12 Compare Trigger for\nAxis 0.1\nBit 14 Latch for Axis 2.3\nBit 15 ORO On\nBit 16 SD On\nPulse Input Setting\nSource\nEncoder (External) Pulse Output (Internal)\nMove Ratio (Feedback/Command) = 1\nMode\n1X A/B Phase 4X A/B Phase\n2X A/B Phase CW/CCW\nLogic\nDo Not Inverse Direction Inverse the Direction\nNext Card\nNext Axis\nSave Config\nClose](.pci-8102-50-11136-1020-300-en/55a01ecd27c9db891b8c2487d31bd2846944685b1d3635f6ee3b935ba5d57944.jpg)

1. Pulse Output Mode: Select the output mode of the pulse signal (OUT/ DIR). The related function call is \_8102\_set\_pls\_outmode().
2. Pulse Input: Sets the configurations of the Pulse input signal(EA/EB). The related function calls are \_8102\_set\_pls\_iptmode(), \_8102\_set\_feedback\_src().
3. INT Factor: Select factors to initiate the event int. The related function call is \_8102\_set\_int\_factor().
4. Buttons:

▷ Next Card: Change operating card.
▷ Next Axis: Change operating axis.
▷ Save Config: Save current configuration to 8102.ini And 8102MC.ini.
▷ Close: Close the menu.

# 5.3.5 Single Axis Operation Menu

In this menu, users can change the settings a selected axis, including velocity mode motion, preset relative/absolute motion, manual pulse move, and home return.

![Single Axis Operation\nPCI-8102 Card no : Card 0 Axis no : Axis 0\nPosition Status\nCommand 1\nFeedback = 0\nPos Error = 0\nTarget Pos= 0\nSet Position\nPosition: 0 2 Set Position\nOperation Mode\nAbsolute Mode Relative Mode Cont. Move Manual Home Mode 7\nPosition1 8 Distance 9 Repeat Mode 10 ATU set Speed FA Speed 12\nPosition2 0 Vel Profile Trapezoid S-curve 11\nAxis Status Motion status 3\nNormal stopped condition\nINT Status\nSet Factor bit No= 0 Set\nMotion INT Nothing\nNormal 4\nError GPIO\nVelocity 0 5 (PPS)\nShow Curve 6\nSpeed Parameter\nStart Velocity(pps): 0\nMaximum Velocity(pps): 0\nAccel. Time(sec): 0\nDecel. Time(sec): 0\nMove Delay (sec): 0\nPlay key Servo On 16 High\nMove to Position1 Move to Position2 STOP 17 18\nDigital I/O P1 15 Digital I/O P2 I/O Status RDY ALM +EL -EL ORG EMG PCS ERC EZ CLR LTC SD INP SVON Next Card 20 Next Axis Save Config](.pci-8102-50-11136-1020-300-en/3afb86def6fbc0e29016ba0f3e2cd2b5cc911c357ce50db116c4ff88629ff068.jpg)

# 1. Position:

Command: displays the value of the command counter. The related function is \_8102\_get\_command().
▷ Feedback: displays the value of the feedback position counter. The related function is \_8102\_get\_position()
▷ Pos Error: displays the value of the position error counter. The related function is \_8102\_get\_error\_counter().
▷ Target Pos: displays the value of the target position recorder. The related function is \_8102\_get\_target\_pos().

2. Position Reset: clicking this button will set all positioning counters to a specified value. The related functions are:

▷ \_8102\_set\_position()
▷ \_8102\_set\_command()
▷ \_8102\_reset\_error\_counter()
▷ \_8102\_reset\_target\_pos()

3. Motion Status: Displays the returned value of the \_8102\_motion\_done function. The related function is \_8102\_motion\_done().

4. INT Status:

▷ int\_factor bit no: Set int\_factor bit.
Normal INT: display of Normal INT status. The related function is \_8102\_wait\_motion\_interrupt ().
$\triangleright$ Error INT: display of Error INT status. The related function is \_8102\_wait\_error\_interrupt ().
▷ GPIO INT: display of GPIO INT status. The related function is \_8102\_wait\_gpio\_interrupt ().

5. Velocity: The absolute value of velocity in units of PPS. The related function is \_8102\_get\_current\_speed().

6. Show Velocity Curve Button: Clicking this button will open a window showing a velocity vs. time curve. In this curve, every 100ms, a new velocity data point will be added. To close it, click the same button again. To clear data, click on the curve.

![| x    | y      |\n| ---- | ------ |\n| 0    | 0      |\n| 100  | -5000  |\n| 200  | 0      |\n| 300  | 3750   |\n| 400  | 5000   |\n| 500  | 5000   |](.pci-8102-50-11136-1020-300-en/4f80959a0d40c11dfd2f35cd5162f286942e9b794dcc9fb33d595d112c9fd794.jpg)

# 7. Operation Mode: Select operation mode.

Absolute Mode: "Position1" and "position2" will be used as absolution target positions for motion. The related functions are \_8102\_start\_ta\_move(), \_8102\_start\_sa\_move().
▷ Relative Mode: "Distance" will be used as relative displacement for motion. The related function is \_8102\_start\_tr\_move(), \_8102\_start\_sr\_move().
Cont. Move: Velocity motion mode. The related function is \_8102\_tv\_move(), \_8102\_start\_sv\_move().
Manual Pulser Move: Manual Pulse motion. Clicking this button will invoke the manual pulse configuration window.

![To Set the Pulse\ninput mode\nTo Set the Pulse\ninput logic\nManual Pulse Configuration\nMode:\n1X A/B Phase  4X A/B Phase\n2X A/B Phase  CW / CDW\nLogic:\nInverse the Direction  Do Not Inverse Direction\nClose](.pci-8102-50-11136-1020-300-en/bcb10b2f041f9be0765c41d8fd2563fa760bdfd39cb1b0e6059eca79ac1cd08d.jpg)

Home Mode: Home return motion. Clicking this button will invoke the home move configuration window. The related function is \_8102\_set\_home\_config(). If the

check box "ATU" is checked, it will execute auto homing when motion starts.

![Home Move Configurations\nERC Output\nOutput when finished\nNot Output\nEZ Count\nCount = 0\nMode\n0 1 2 3 4 5 6 7 8 9 10 11 12\nFigure\nhome_mode=0: ORO → Slow down → Stop\n● When SD(Ramp-down signal) is inactive.\nORO\nEL\nCase 1\nCase 2\nCase 3\nReset\n● When SD(Ramp-down signal) is active.\nORO\nSO\nEL\nCase 1\nCase 2\nCase 3\nReset\nORG Distance 10000 Close](.pci-8102-50-11136-1020-300-en/e1d071fe7d422807684c6db0340acbd52a283b01a3feccb17f767278d555d5bd.jpg)

▷ ERC Output: Select if the ERC signal will be sent when home move completes.
▷ EZ Count: Set the EZ count number, which is effective on certain home return modes.
▶ Mode: Select the home return mode. There are 13 modes available.
Home Mode figure: The figure shown explains the actions of the individual home modes.
▷ Close: Click this button close this window.

8. Position: Set the absolute position for "Absolute Mode." It is only effective when "Absolute Mode" is selected.

9. Distance: Set the relative distance for "Relative Mode." It is only effective when "Relative Mode" is selected.

10. Repeat Mode: When “On” is selected, the motion will become repeat mode (forward&lt;-&gt;backward or position1&lt;-&gt;position2). It is only effective when “Relative Mode” or “Absolute Mode” is selected.

11. Vel. Profile: Select the velocity profile. Both Trapezoidal and S-Curve are available for “Absolute Mode,” “Relative Mode,” and “Cont. Move.”
12. FA Speed/ATU: Sets the configurations of the FA Speed. The related function calls are \_8102\_set\_fa\_speed(). If the check box "ATU" is checked, it will execute auto homing when motion starts.
13. Motion Parameters: Set the parameters for single axis motion. This parameter is meaningless if “Manual Pulser Move” is selected, since the velocity and moving distance is decided by pulse input.

▷ Start Velocity: Set the start velocity of motion in units of PPS. In “Absolute Mode” or “Relative Mode,” only the value is effective. For example, -100.0 is the same as 100.0. In “Cont. Move,” both the value and sign are effective. -100.0 means 100.0 in the minus direction.
▷ Maximum Velocity: Set the maximum velocity of motion in units of PPS. In “Absolute Mode” or “Relative Mode,” only the value is effective. For example, -5000.0 is the same as 5000.0. In “Cont. Move,” both the value and sing is effective. -5000.0 means 5000.0 in the minus direction.
▶ Accel. Time: Set the acceleration time in units of second.
▷ Decel. Time: Set the deceleration time in units of second.
▷ SVacc: Set the S-curve range during acceleration in units of PPS.
▷ SVdec: Set the S-curve range during deceleration in units of PPS.
Move Delay: This setting is effective only when repeat mode is set "On." It will cause the 8102 to delay for a specified time before it continues to the next motion.

14. Speed\_Profile: Clicking this button will show the Speed Profile.

![| Parameter | Value     |\n| --------- | --------- |\n| Model     | v1        |\n| Vuser     | 19999     |\n| Vbox      | 100       |\n| V2nd      | 6008      |\n| Tsc       | 0.90773012|\n| Tls       | 1.94977273|\n| Distance  | 40000     |\n| X:        | 1.94977273 |\n| Y:        | 1.4800    |](.pci-8102-50-11136-1020-300-en/4e01883d0ed256018b250a161fca8da6fd9cbb23412b402bb16b305dc68c28f1.jpg)

15. Digital I/O: Display and set Digital I/O. The related function is \_8102\_get\_gpio\_output(), \_8102\_get\_gpio\_input(), \_8102\_set\_gpio\_output().
16. Servo On: Set the SVON signal output status. The related function is \_8102\_set\_servo().
17. Play Key:

Left play button: Clicking this button will cause the 8102 start to outlet pulses according to previous setting.

In "Absolute Mode," it causes the axis to move to position1.
▷ In “Relative Mode,” it causes the axis to move forward.
In “Cont. Move,” it causes the axis to start to move according to the velocity setting.
In “Manual Pulser Move,” it causes the axis to go into pulse move. The speed limit is the value set by “Maximum Velocity.”

Right play button: Clicking this button will cause the 8102 start to outlet pulses according to previous setting.

In "Absolute Mode," it causes the axis to move to position.
In "Relative Mode," it causes the axis to move backwards.
In “Cont. Move,” it causes the axis to start to move according to the velocity setting, but in the opposite direction.
In “Manual Pulser Move,” it causes the axis to go into pulse move. The speed limit is the value set by “Maximum Velocity.”

18. Stop Button: Clicking this button will cause the 8102 to decelerate and stop. The deceleration time is defined in "Decel. Time." The related function is \_8102\_sd\_stop().

19.I/O Status: The status of motion I/O. Light-On means Active, while Light-Off indicates inactive. The related function is \_8102\_get\_io\_status().

20. Buttons:

▷ Next Card: Change operating card.
▷ Next Axis: Change operating axis.
▷ Save Config: Save current configuration to 8102.ini And 8102MC.ini.
▷ Close: Close the menu.

21. P2 Additional I/O: Control and respond digital I/O on P2 connector. The related functions are:

▷ \_8102\_set\_gpio\_output2 (), \_8102\_get\_gpio\_output2 (),

▷ \_8102\_get\_gpio\_input2 ()

# 5.3.6 Two-Axis Operation Menu

In this menu, users can change the settings two selected axis, including velocity mode motion, preset relative/absolute motion.

![8102 Two-Axis Operation\nCard 0 Axis 0\nStart Velocity(RPM) : 100\nMaximum Velocity(RPM) : 20000\nMove Delay (sec) : 0\nTacc(sec) : 1 Sacc(pps) : 4000\nTdec(sec) : 2 Sdec(pps) : 6000\nRepeat Mode\nOff ON\nOn On\nT3 S\nNext Card\nPosition1: 10000 Position2: 20000\nDrive Status\nRDY ALM =EL -EL ORG DIR EMG PCS ERC EZ CLR LTC SD INP SVON\nCard 0 Axis 0 Motion status: Normal stopped condition\nCard 0 Axis 1\nStart Velocity(RPM) : 100\nMaximum Velocity(RPM) : 25000\nMove Delay (sec) : 0\nTacc(sec) : 3.5 Sacc(pps) : 5000\nTdec(sec) : 1.5 Sdec(pps) : 3000\nMode\nRelative Distance : 20000\nPosition1: 30000 Position2: 40000\nDriver Status\nRDY ALM =EL -EL ORG DIR EMG PCS ERC EZ CLR LTC SD INP SVON\nCard 0 Axis 1 Motion status: Accelerating\nOperate\nRPM Velocity Profile Axis 0: Axis 1:\n25000\n18750\n12500\n6250\n0\n-6250\n-12500\n-18750\n-25000\n260 280 300 320 340\nAxis 0\nCurrent Position 11\n40%\n(( + STOP - ))\nAxis 1\nCurrent Position Velocity\n32 288.5496183206\n(( + STOP - ))\nClearPlots\nSave Cang\nClose](.pci-8102-50-11136-1020-300-en/1722555562b81dd74770bdefc192cddce98c41c1a0f0be5fdd10da6d70e34375.jpg)

1. Motion Parameters: Set the parameters for single axis motion. This parameter is meaningless if “Manual Pulser Move” is selected, since the velocity and moving distance is decided by pulse input.

▷ Start Velocity: Set the start velocity of motion in units of PPS. In “Absolute Mode” or “Relative Mode,” only the value is effective. For example, -100.0 is the same as 100.0.
▷ Maximum Velocity: Set the maximum velocity of motion in units of PPS. In “Absolute Mode” or “Relative Mode,” only the value is effective. For example, -5000.0 is the same as 5000.0.
▷ Tacc: Set the acceleration time in units of second.
▷ Tdec: Set the deceleration time in units of second.
▷ Sacc: Set the S-curve range during acceleration in units of PPS.
▷ Sdec: Set the S-curve range during deceleration in units of PPS.

2. Repeat Mode: When “On” is selected, the motion will become repeat mode (forwardΔΔbackward or position1ΔΔposition2). It is only effective when “Relative Mode” or “Absolute Mode” is selected.

3. Vel. Profile: Select the velocity profile. Both Trapezoidal and S-Curve are available for "Absolute Mode," "Relative Mode," and "Cont. Move."

4. Operation Mode: Select operation mode.

Absolute Mode: "Position1" and "position2" will be used as absolution target positions for motion. The related functions are \_8102\_start\_ta\_move(), \_8102\_start\_sa\_move().
▷ Relative Mode: "Distance" will be used as relative displacement for motion. The related function is \_8102\_start\_tr\_move(), \_8102\_start\_sr\_move().

5. Distance: Set the relative distance for "Relative Mode." It is only effective when "Relative Mode" is selected.

6. Position: Set the absolute position for "Absolute Mode." It is only effective when "Absolute Mode" is selected.
7. Buttons:

▷ Next Card: Change operating card.
▷ Next Axis: Change operating axis.

8. I/O Status: The status of motion I/O. Light-On means Active, while Light-Off indicates inactive. The related function is \_8102\_get\_io\_status().
9. Motion status: Displays the returned value of the \_8102\_motion\_done function. The related function is \_8102\_motion\_done().
10. Current Position:

Command: displays the value of the command counter. The related function is \_8102\_get\_position().

11. Velocity: The absolute value of velocity in units of PPS. The related function is \_8102\_get\_current\_speed().
12.Play Key:

Left play button: Clicking this button will cause the 8102 start to outlet pulses according to previous setting.

In "Absolute Mode," it causes the axis to move to position1.
In “Relative Mode,” it causes the axis to move forward.

Right play button: Clicking this button will cause the 8102 start to outlet pulses according to previous setting.

In "Absolute Mode," it causes the axis to move to position2.
In "Relative Mode," it causes the axis to move backwards.

Stop Button: Clicking this button will cause the 8102 to decelerate and stop. The deceleration time is defined in "Decel. Time." The related function is \_8102\_sd\_stop().

13. Buttons:

▶ ClearPlots: Clear the Motion Graph.

▷ Save Config: Save current configuration to 8102.ini And 8102MC.ini.
▷ Close: Close the menu.

# 5.3.7 2D\_Motion Menu

Press 2-D button in operating window will enter this window. This is for 2-D motion test. It includes the following topics:

▶ Linear Interpolation
▶ Circular Interpolation
▶ Incremental Jog
▶ Continuous Jog
▶ Other Control Objects

![) Card 0 : Axis 0 (X) , Axis 1 (Y)\nSetting | Motion Graph |\nJog Type\nIncremental Continuous\nOperation Mode\nRelative\nJog Setting\nStart Speed 100\nMax Speed 5000\nAcc. Time 0.1\nDIR\nCW CCW\nVel. Profile\nT S\nSpeed Parameters\nStart Speed (pps) 1000 Max Speed (pps) 2000\nTacc Time (sec) 2 acc(pps) 2\nTdec Time (sec) 3 Sdec(pps) 1\nSet Distance/End Pos\nDis EndPos X 2000\nDis EndPos 7 2000\nSet Center\nDis Center X 2000\nDis Center Y 0\nCurrent Position\nX 40000\nY 16947\nClear Conn.\nPlay key\nStop\nNext Card\nSave Config\nClose\nGraph Range\nXRang\nYRang\nOrigin Position\nX Org. Shift\nY Org. Shift\nLock\nLock\nHome\nX Forward\nY Backward\n13\n9 X+\nX-\nY-\nSpeed\nx10 0\nY 0\nMotion status\nX Normal stopped condition\nY Normal stopped condition\nCommand\nX 40000\nY 16947\nClear Conn.\nCurrent Position\nX 40000\nY 16947\nClear Pos.](.pci-8102-50-11136-1020-300-en/044d4cc986da948d2f09e157bec7a85bbfbf00413c5ca3a9b6e12d459a9a4a3b.jpg)

# 1. Jog Type:

Continuous Jog

![Jog Command\nY+\nX-\nX+\nY-](.pci-8102-50-11136-1020-300-en/5371586d2b3c70bf1f828b2797fe8ac7bba0e2ca503dbbc392b18d2e7fa7c86a.jpg)

Continuous Jog means that when you press one directional button, the axis will continuously move with an increasing speed. The longer you press, the faster it runs. When you unpress the button, the axis will stop immediately.

Incremental Jog

![The image displays a section of a graphical user interface with a light gray background. On the left side, the words '**Step**' and '**Size**' are written in black text, stacked vertically. To the right of the text is a white rectangular input field containing the number '**5**' aligned to the right side of the box.](.pci-8102-50-11136-1020-300-en/d56ea8e8fc047b630e4a01e3890eed300cc08db846fd0a3af9e08980e2a7f1ae.jpg)

Incremental jog means that when you click one directional button, the axis will step a distance according to the Step-Size's setting.

2. Jog Setting: Set the parameters for single axis motion.

This parameter is meaningless if “Jog Mode” is selected, since the velocity and moving distance is decided by pulse input.

▷ Start Velocity: Set the start velocity of motion in units of PPS.
▷ Maximum Velocity: Set the maximum velocity of motion in units of PPS.
▷ Tacc: Set the acceleration time in units of second.

3. Operation Mode: Select operation mode.

$\triangleright$ Absolute Mode: "Position" will be used as absolution target positions for motion when "Linear Interpolation

Mode" is selected. "ABS EndPos" and "ABS Center" will be used as absolution target positions for motion when "Circular Interpolation Mode" is selected. The related functions are \_8102\_start\_ta\_move(), \_8102\_start\_sa\_move().

$\triangleright$ Relative Mode: "Distance" will be used as absolution target positions for motion when "Linear Interpolation Mode" is selected. "Dis EndPos" and "Dis Center" will be used as absolution target positions for motion when "Circular Interpolation Mode" is selected. The related function is \_8102\_start\_tr\_move(), \_8102\_start\_sr\_move().

4. DIR: Specified direction of arc, CW/CCW, It is only effective when "Circular Interpolation Mode" is selected.
5. Vel. Profile: Select the velocity profile. Both Trapezoidal and S-Curve are available for "Linear Interpolation Mode" and "Circular Interpolation Mode".
6. 6.Speed Parameters: Set the parameters for single axis motion. This parameter is meaningless if "Linear Interpolation Mode" or "Circular Interpolation Mode" is selected, since the velocity and moving distance is decided by pulse input.

▷ Start Velocity: Set the start velocity of motion in units of PPS.
▷ Maximum Velocity: Set the maximum velocity of motion in units of PPS.
▶ Accel. Time: Set the acceleration time in units of second.
▷ Decel. Time: Set the deceleration time in units of second.
▷ SVacc: Set the S-curve range during acceleration in units of PPS.
▷ SVdec: Set the S-curve range during deceleration in units of PPS.

7. Set Distance/End Pos: Set the absolution target positions or relative distance for "Linear Interpolation Mode". Set the position end of arc for "Circular Interpolation

Mode". It is available for "Linear Interpolation Mode" and "Circular Interpolation Mode".

8. Set Center: Set the position of center for “Circular Interpolation Mode”. It is only effective when “Circular Interpolation Mode” is selected.
9. Jog Command: Press one directional button to move.

![Jog Command\nY+\nX-\nX+\nY-](.pci-8102-50-11136-1020-300-en/ba0223e024262e0dcc94b2ead388ae72fe83f1ff5fba61c8e5d2879e8eb05ac4.jpg)

10. Velocity: The absolute value of velocity in units of PPS. The related function is \_8102\_get\_current\_speed().
11. Interpolation Command:

Command: displays the value of the command counter. The related function is \_8102\_get\_command().

12. Current Position:
▷ Feedback: displays the value of the feedback position counter. The related function is \_8102\_get\_position().
13. Home Mode: Home return motion. Clicking this button will invoke the home move configuration window. The related function is \_8102\_set\_home\_config(). There are two home return buttons at the left-down corner of this window. It is useful when user need to return to the origin.
14. Mode:

Linear Interpolation: After setting motion parameters correctly in "Motion Parameters Setting Frame", you can enter the destination in this frame. Then click Run button to start linear interpolation motion.

Circular Interpolation: The setting for circular interpolation mode has three additional parameters in "Motion Parameters Setting Frame". They are arc degree, division axis and optimize option. Please refer to section 6.7, 6.8 to set them.

After setting these parameters, you can enter the arc center and degree in "Play Key Frame". Click Run button to start circular interpolation motion.

Jog Type:

Continuous Jog: Continuous Jog means that when you press one directional button, the axis will continuously move with an increasing speed. The longer you press, the faster it runs. When you un-press the button, the axis will stop immediately.

![Jog Command\nY+\nX-\nX+\nY-](.pci-8102-50-11136-1020-300-en/2fe1d3b5de932efba05991308145c34267dd57ace409c3e6640db1b5d489efe0.jpg)

Incremental Jog: Incremental jog means that when you click one directional button, the axis will step a distance according to the Step-Size's setting.

![The image displays a small interface element featuring the text 'Step' on the top line and 'Size' on the line below it. To the right of this text is a white rectangular input box containing the number '5' aligned to the right side.](.pci-8102-50-11136-1020-300-en/b61f509b0478cfd7da4d0e8eff2bbe103407fb79942b7f66ad0e270528a2705c.jpg)

15. Motion status: Displays the returned value of the \_8102\_motion\_done function. The related function is \_8102\_motion\_done().

16. Play Key:

Play button: Clicking this button will cause the 8102 start to outlet pulses according to previous setting.

In "Linear Mode," it causes the axis to move to Distance. The related function is \_8102\_start\_tr\_move\_xy, \_8102\_start\_sr\_move\_xy.
In "Circular Mode," it causes the axis to move to Distance(By Pos/Dist(pulse)). The related function is \_8102\_start\_tr\_arc\_xy, \_8102\_start\_sr\_arc\_xy.

Stop Button: Clicking this button will cause the 8102 to decelerate and stop. The deceleration time is defined in "Decel. Time." The related function is \_8102\_sd\_stop().

# 17. Buttons:

▷ Next Card: Change operating card.
▷ Save Config: Save current configuration to 8102.ini And 8102MC.ini.
▷ Close: Close the menu.

![) Card 0 : Axis 0 (X) , Axis 1 (Y)\nSetting Motion Graph\n10\n9\n8\n7\n6\n5\n4\n3\n2\n1\n0\n-1\n-2\n-3\n-4\n-5\n-6\n-7\n-8\n-9\n-10\nx1000\nJog Command\nHome\n○ X Forward\n○ Y Backward\nMode\n○ Linear\n○ Circular Step\n○ Size\n○ Jog 50\nSpeed\nX 0\nY 0\nMotion status\nX Normal stopped condition\nY Normal stopped condition\nCommand\nX 4000\nY 4000\nClear Conn.\nPlay key\nRun\nStop\nCurrent Position\nX 4000\nY 4000\nClear Pos.\nNext Card\nSave Config\nClose\nClear\n18\nCenter\nGraph Range\nXRang 19\nYRang Lock\nOrigin Position\nX Org. Shn 20\nY Org. Shn Lock](.pci-8102-50-11136-1020-300-en/ef6004614dd5799c67b87c358ac181f8e191cc6502ba04b267efda84845bf4fa.jpg)

18. Graph Range Frame:

▷ Clear: Clear the Motion Graph.
▷ Center: Display the Motion Graph in center position.

19. Graph Range: controls X or Y axis's display range.

20. Origin Position: let user to pan the display location.

# 5.3.8 Help Menu

In this menu, users can Click Mouse Right Key to show Help Information.

This page intentionally left blank.

# 6 Function Library

This chapter describes the supporting software for the PCI-8102 card. User can use these functions to develop programs in C, C++, or Visual Basic. If Delphi is used as the programming environment, it is necessary to transform the header files, pci\_8102.h manually.

# 6.1 List of Functions

Initialization Section 6.3

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_initial</td><td>Card initialization</td></tr><tr><td>_8102_close</td><td>Card Close</td></tr><tr><td>_8102_get_version</td><td>Check the hardware and software version</td></tr><tr><td>_8102_set_user_code</td><td>Set codes into EEPROM</td></tr><tr><td>_8102_get_user_code</td><td>Get codes from EEPROM</td></tr><tr><td>_8102_config_from_file</td><td>Config PCI-8102 setting from file</td></tr></table>

Pulse Input/Output Configuration Section 6.4

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_set_pls_outmode</td><td>Set pulse command output mode</td></tr><tr><td>_8102_set_pls_iptmode</td><td>Set encoder input mode</td></tr><tr><td>_8102_set_feedback_src</td><td>Set counter input source</td></tr></table>

Velocity mode motion Section 6.5

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_tv_move</td><td>Accelerate an axis to a constant velocity with trapezoidal profile</td></tr><tr><td>_8102_sv_move</td><td>Accelerate an axis to a constant velocity with S-curve profile</td></tr><tr><td>_8102_sd_stop</td><td>Decelerate to stop</td></tr><tr><td>_8102_emg_stop</td><td>Immediately stop</td></tr><tr><td>_8102_get_current_speed</td><td>Get current speed(pulse/sec)</td></tr><tr><td>_8102_speed_override</td><td>Change speed on the fly</td></tr><tr><td>_8102_set_max_override_speed</td><td>Set the maximum orerride speed</td></tr></table>

Single Axis Position Mode Section 6.6

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_start_tr_move</td><td>Begin a relative trapezoidal profile move</td></tr><tr><td>_8102_start_ta_move</td><td>Begin an absolute trapezoidal profile move</td></tr><tr><td>_8102_start_sr_move</td><td>Begin a relative S-curve profile move</td></tr><tr><td>_8102_start_sa_move</td><td>Begin an absolute S-curve profile move</td></tr><tr><td>_8102_set_move_ratio</td><td>Set the ratio of command pulse and feedback pulse.</td></tr><tr><td>_8102_position_override</td><td>Change position on the fly</td></tr></table>

Linear Interpolated Motion Section 6.7

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_start_tr_move_xy</td><td>Begin a relative 2-axis linear interpolation for X &amp; Y, with trapezoidal profile</td></tr><tr><td>_8102_start_ta_move_xy</td><td>Begin an absolute 2-axis linear interpolation for X &amp; Y, with trapezoidal profile</td></tr><tr><td>_8102_start_sr_move_xy</td><td>Begin a relative 2-axis linear interpolation for X &amp; Y, with S-curve profile</td></tr><tr><td>_8102_start_sa_move_xy</td><td>Begin an absolute 2-axis linear interpolation for X &amp; Y, with S-curve profile</td></tr></table>

Circular Interpolation Motion Section 6.8

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_start_tr_arc_xy</td><td>Begin a t-curve relative circular interpolation for X &amp; Y</td></tr><tr><td>_8102_start_ta_arc_xy</td><td>Begin a t-curve absolute circular interpolation for X &amp; Y</td></tr><tr><td>_8102_start_sr_arc_xy</td><td>Begin a s-curve relative circular interpolation for X &amp; Y</td></tr><tr><td>_8102_start_sa_arc_xy</td><td>Begin a s-curve absolute circular interpolation for X &amp; Y</td></tr></table>

Home Return Mode Section 6.9

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_set_home_config</td><td>Set the home/index logic configuration</td></tr><tr><td>_8102_home_move</td><td>Begin a home return action</td></tr><tr><td>_8102_home_search</td><td>Auto-Search Home Switch</td></tr></table>

Manual Pulser Motion Section 6.10

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_set_pulser_iptmode</td><td>Set pulser input mode</td></tr><tr><td>_8102_disable_pulser_input</td><td>Disable the pulser input</td></tr><tr><td>_8102_pulser_vmove</td><td>Start pulser v move</td></tr><tr><td>_8102_pulser_pmove</td><td>Start pulser p move</td></tr><tr><td>_8102_set_pulser_ratio</td><td>Set manual pulser ratio for actual output pulse rate</td></tr></table>

Motion Status Section 6.11

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_motion_done</td><td>Return the motion status</td></tr></table>

Motion Interface I/O Section 6.12

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_set_servo</td><td>Set On-Off state of SVON signal</td></tr><tr><td>_8102_set_pcs_logic</td><td>Set PCS signal&#x27;s logic</td></tr><tr><td>_8102_set_clr_mode</td><td>Set CLR signal&#x27;s mode</td></tr><tr><td>_8102_set_inp</td><td>Set INP signal&#x27;s logic and operating mode</td></tr><tr><td>_8102_set_alm</td><td>Set ALM signal&#x27;s logic and operating mode</td></tr><tr><td>_8102_set_erc</td><td>Set ERC signal&#x27;s logic and timing</td></tr><tr><td>_8102_set_sd</td><td>Set SD signal&#x27;s logic and operating mode</td></tr><tr><td>_8102_enable_sd</td><td>Enable SD signal</td></tr><tr><td>_8102_set_limit_logic</td><td>Set EL signal&#x27;s logic</td></tr><tr><td>_8102_set_limit_mode</td><td>Set EL operating mode</td></tr><tr><td>_8102_get_io_status</td><td>Get all the motion I/O status of 8102</td></tr></table>

Interrupt Control Section 6.13

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_int_control</td><td>Enable/Disable INT service</td></tr><tr><td>_8102_wait_error_interrupt</td><td>Wait error related interrupts</td></tr><tr><td>_8102_wait_motion_interrupt</td><td>Wait motion related interrupts</td></tr><tr><td>_8102_set_motion_int_factor</td><td>Set the factors of motion related interrupts</td></tr><tr><td>_8102_wait_gpio_interrupt</td><td>Waiting GPIO interrupts</td></tr><tr><td>_8102_set_gpio_int_factor</td><td>Set the factors of general purpose IO related interrupt</td></tr></table>

Position Control and Counters Section 6.14

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_get_position</td><td>Get the value of the feedback position counter</td></tr><tr><td>_8102_set_position</td><td>Set the feedback position counter</td></tr><tr><td>_8102_get_command</td><td>Get the value of the command position counter</td></tr><tr><td>_8102_set_command</td><td>Set the command position counter</td></tr><tr><td>_8102_get_error_counter</td><td>Get the value of the position error counter</td></tr><tr><td>_8102_reset_error_counter</td><td>Reset the position error counter</td></tr><tr><td>_8102_get_general_counter</td><td>Get the value of the general counter</td></tr><tr><td>_8102_set_general_counter</td><td>Set the general counter</td></tr><tr><td>_8102_get_target_pos</td><td>Get the value of the target position recorder</td></tr><tr><td>_8102_reset_target_pos</td><td>Reset target position recorder</td></tr><tr><td>_8102_get_res_distance</td><td>Get remaining pulses accumulated from motions</td></tr><tr><td>_8102_set_res_distance</td><td>Set remaining pulses record</td></tr></table>

Position Compare and Latch Section 6.15

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_set_trigger_logic</td><td>Set CMP signal logic</td></tr><tr><td>_8102_set_error comparator</td><td>Set the error comparator</td></tr><tr><td>_8102_set_general comparator</td><td>Set the general comparator</td></tr><tr><td>_8102_set_trigger comparator</td><td>Set the trigger comparator</td></tr><tr><td>_8102_set_latch_source</td><td>Set the latch timing for a counter</td></tr><tr><td>_8102_set_ltc_logic</td><td>Set the LTC signal&#x27;s logic</td></tr><tr><td>_8102_get_latch_data</td><td>Get the latch data</td></tr></table>

# Continuous Motion Section 6.16

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_set_continuous_move</td><td>Enable continuous motion for absolute motion</td></tr><tr><td>_8102_check_continuous_buffer</td><td>Check if the buffer is empty</td></tr><tr><td>_8102_dwell_move</td><td></td></tr></table>

# Multiple Axes Simultaneous Operation Section 6.17

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_set_tr_move_all</td><td>Multi-axis simultaneous operation setup</td></tr><tr><td>_8102_set_ta_move_all</td><td>Multi-axis simultaneous operation setup</td></tr><tr><td>_8102_set_sr_move_all</td><td>Multi-axis simultaneous operation setup</td></tr><tr><td>_8102_set_sa_move_all</td><td>Multi-axis simultaneous operation setup</td></tr><tr><td>_8102_start_move_all</td><td>Begin a multi-axis trapezoidal profile motion</td></tr><tr><td>_8102_stop_move_all</td><td>Simultaneously stop multi-axis motion</td></tr></table>

# General-purposed Input/Output Section 6.18

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_set_gpio_output</td><td>Set digital output</td></tr><tr><td>_8102_get_gpio_output</td><td>Get digital output</td></tr><tr><td>_8102_get_gpio_input</td><td>Get digital input</td></tr><tr><td>_8102_set_gpio_output2</td><td>Set digital output to P2</td></tr><tr><td>_8102_set_gpio_output2</td><td>Get digital output form P2</td></tr><tr><td>_8102_get_gpio_input2</td><td>Get digital input form P2</td></tr></table>

# Soft Limit Section 6.19

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_disable_soft_limit</td><td>Disable soft limit function</td></tr><tr><td>_8102_enable soft_limit</td><td>Enable soft limit function</td></tr><tr><td>_8102_set_soft_limit</td><td>Set the soft limits</td></tr></table>

Backlash Compensation / Vibration Suppression Section 6.20

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_backlash_comp</td><td>Set backlash corrective pulse for compensation</td></tr><tr><td>_8102_suppress_vibration</td><td>Set suppress vibration idle pulse counts</td></tr><tr><td>_8102_set_fa_speed</td><td>Set FA speed for home mode</td></tr></table>

Speed Profile Calculation Section 6.21

<table><tr><td>Function Name</td><td>Description</td></tr><tr><td>_8102_get_tr_move_profile</td><td>Get relative trapezoidal speed profile</td></tr><tr><td>_8102_get_ta_move_profile</td><td>Get absolute trapezoidal speed profile</td></tr><tr><td>_8102_get_sr_move_profile</td><td>Get relative S-curve speed profile</td></tr><tr><td>_8102_get_sa_move_profile</td><td>Get absolute S-curve speed profile</td></tr></table>

# 6.2 C/C++ Programming Library

This section details all the functions. The function prototypes and some common data types are declared in PCI-8102.H. We suggest you use these data types in your application programs. The following table shows the data type names and their range.

<table><tr><td>Type Name</td><td>Description</td><td>Range</td></tr><tr><td>U8</td><td>8-bit ASCII character</td><td>0 to 255</td></tr><tr><td>I16</td><td>16-bit signed integer</td><td>-32768 to 32767</td></tr><tr><td>U16</td><td>16-bit unsigned integer</td><td>0 to 65535</td></tr><tr><td>I32</td><td>32-bit signed long integer</td><td>-2147483648 to 2147483647</td></tr><tr><td>U32</td><td>32-bit unsigned long integer</td><td>0 to 4294967295</td></tr><tr><td>F32</td><td>32-bit single-precision floating-point</td><td>-3.402823E38 to 3.402823E38</td></tr><tr><td>F64</td><td>64-bit double-precision floating-point</td><td>-1.797683134862315E308 to1.797683134862315E309</td></tr><tr><td>Boolean</td><td>Boolean logic value</td><td>TRUE, FALSE</td></tr></table>

The functions of the 8102's software drivers use full-names to represent the functions real meaning. The naming convention rules are:

In a ‘C’ programming environment:

\_{hardware\_model}\_{action\_name}. e.g. \_8102\_Initial().

In order to recognize the difference between a C library and a VB library, a capital "B" is placed at the beginning of each function name e.g. B\_8102\_Initial().

# 6.3 Initialization

# @ Name

```c
_8102_initial - Card initialization
_8102_close - Card close
_8102_get_version - Check hardware and software version information
_8102_set_user_code - Set codes into EEPROM
_8102_get_user_code - Get codes into EEPROM
_8102_config_from_file Config - PCI-8102 setting from file
```

# @ Description

\_8102\_initial:

This function is used to initialize an 8102 card without assigning the hardware resources. All 8102 cards must be initialized by this function before calling other functions in your applications. By setting the parameter "Manual\_ID", user can choose the type that the card's ID is assigned manually or automatically.

\_8102\_close:

This function is used to close 8102 card and release its resources, which should be called at the end of your applications.

\_8102\_get\_version:

Lets users read back the firmware's, driver's and DLL's version information.

\_8102\_set\_user\_code:

Set your own codes into EEPROM. It can secure users' application to avoid plagiarism.

\_8102\_get\_user\_code:

Get codes that you set by the function “\_8102\_set\_user\_code” from EEPROM.

\_8102\_config\_from\_file:

This function is used to load the configuration of the PCI-8102 according to specified file. By using Motion Creater, user could test and configure the 8102 correctly. After saving the configuration, the file would be existed in user's system directory as 8102.ini.

When this function is executed, all 8102 cards in the system will be configured as the following functions were called according to parameters recorded in 8102.ini.

```txt
_8102_set_limit_logic
_8102_set_pcs_logic
_8102_set_ltc_logic
_8102_set_inp
_8102_set_erc
_8102_set_alm
_8102_set_pls_iptmode
_8102_set_pls_outmode
_8102_set_move_ratio
_8102_set_latch_source
_8102_set_feedback_src
_8102_set_home_config
_8102_set_soft_limit
_8102_set_fa_speed
_8102_set_sd
```

# @ Syntax

C/C++(Windows 2000/XP/7)
```rust
I16 _8102_initial(U16 *CardID_InBit, I16 Manual_ID);
I16 _8102_close(void);
I16 _8102_get_version(I16 card_id, I16 *firmware_ver, I32 *driver_ver, I32 *dll_ver);
I16 _8102_set_user_code(I16 card_id, I16 Length, U16 *sec_code);
I16 _8102_get_user_code(I16 card_id, I16 Length, U16 *sec_code);
I16 _8102_config_from_file();
```
Visual Basic 6(Windows 2000/XP/7)

```txt
B_8102_initial(CardID_InBit As Integer, ByVal Manual_ID As Integer) As Integer
B_8102_close() As Integer
B_8102_get_version(ByVal card_id As Integer, firmware_ver As Integer, driver_ver As Long, dll_ver As Long) As Integer
B_8102_set_user_code(ByVal card_id As Integer, ByVal Length As Integer, sec_code As Integer) As Integer
B_8102_get_user_code(ByVal card_id As Integer, ByVal Length As Integer, sec_code As Integer) As Integer
B_8102_config_from_file() As Integer
```

# @ Argument

CardID\_InBit: Use Hex number to show ID occupation status in the controller. For example, if user has two boards and one is set to 1(DIP switch) and the other one is set to 3(DIP switch), you will read back the value as 0x000A because the bit 1 and bit 3 are 1 (Card ID exists) and other bits are OFF.

Manual\_ID: Enable the on-board dip switch (SW1) to decide the Card ID

Value meaning:

The CardID could be decided by :

0: the sequence of PCI slot.

1: on board DIP switch (SW1).

card\_id: Specify the PCI-8102 card index. The card\_id could be decided by DIP switch (SW1) or depend on slot sequence.Please refer to \_8102\_initial().

firmware\_ver: The current firmware version.

driver\_ver: The current device driver version.

dll\_ver: The current DLL library version.

Length: Array size. Length = 1\~12

\*sec\_code: A numerical array, the array size would be set between 1 and 12.

# 6.4 Pulse Input/Output Configuration

# @ Name

```txt
_8102_set_pls_iptmode - Set the configuration for feedback pulse input.
_8102_set_pls_outmode - Set the configuration for pulse command output.
_8102_set_feedback_src - Enable/Disable the external feedback pulse input
```

# @ Description

\_8102\_set\_pls\_iptmode:

Configure the input modes of external feedback pulses. There are four types for feedback pulse input. Note that this function makes sense only when the Src parameter in \_8102\_set\_feedback\_src() function is enabled.

\_8102\_set\_pls\_outmode:

Configure the output modes of command pulses. There are 6 modes for command pulse output.

\_8102\_set\_feedback\_src:

If external encoder feedback is available in the system, set the Src parameter in this function to an Enabled state. Then, the internal 28-bit up/down counter will count according to the configuration of the \_8102\_set\_pls\_iptmode() function. Else, the counter will count the command pulse output.

# @ Syntax

# C/C++ (DOS, Windows 95/NT)

```c
I16 _8102_set_pls_iptmode(I16 AxisNo, I16 pls_iptmode, I16 pls_logic);
I16 _8102_set_pls_outmode(I16 AxisNo, I16 pls_outmode);
I16 _8102_set_feedback_src(I16 AxisNo, I16 Src);
```

# Visual Basic (Windows 95/NT)

```txt
B_8102_set_pls_iptmode (ByVal AxisNo As Integer, ByVal pls_iptmode As Integer, ByVal pls_logic As Integer) As Integer
B_8102_set_pls_outmode (ByVal AxisNo As Integer, ByVal pls_outmode As Integer) As Integer
B_8102_set_feedback_src (ByVal AxisNo As Integer, ByVal Src As Integer) As Integer
```

# @ Argument

AxisNo: Axis number designated to configure the pulse input/output. It varied according to users' ID setting. The following is an example:

<table><tr><td>card_id</td><td>Physical axis</td><td>Axis No</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

pls\_iptmode: Encoder feedback pulse input mode setting (EA/EB signals).

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>1X A/B</td></tr><tr><td>1</td><td>2X A/B</td></tr><tr><td>2</td><td>4X A/B</td></tr><tr><td>3</td><td>CW/CCW</td></tr></table>

pls\_logic: Logic of encoder feedback pulse.

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Not inverse direction</td></tr><tr><td>1</td><td>inverse direction</td></tr></table>

pls\_outmode: Setting of command pulse output mode.

<table><tr><td></td><td></td><td colspan="5">Positive Direction</td><td colspan="5">Negative Direction</td></tr><tr><td>0</td><td>OUT/DIR</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>1</td><td>OUT/DIR</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>2</td><td>OUT/DIR</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>3</td><td>OUT/DIR</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>4</td><td>CW/CCW</td><td></td><td></td><td></td><td></td><td></td><td colspan="3"></td><td></td><td></td></tr><tr><td>5</td><td>CW/CCW</td><td></td><td></td><td></td><td></td><td></td><td colspan="3"></td><td></td><td></td></tr></table>

Src: Counter source

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>External signal feedback</td></tr><tr><td>1</td><td>Command pulse</td></tr></table>

# @ Return Code

ERR\_NoError

# 6.5 Velocity mode motion

# @ Name

\_8102\_tv\_move - Accelerate an axis to a constant velocity with trapezoidal profile

```txt
_8102_sv_move - Accelerate an axis to a constant velocity with S-curve profile
_8102_emg_stop - Immediately stop
_8102_sd_stop - Decelerate to stop
_8102_get_current_speed - Get current speed
_8102_speed_override - Change speed on the fly
_8102_set_max_override_speed - Set the maximum orerride speed
```

# @ Description

\_8102\_tv\_move:

This function is to accelerate an axis to the specified constant velocity with a trapezoidal profile. The axis will continue to travel at a constant velocity until the velocity is changed or the axis is commanded to stop. The direction is determined by the sign of the velocity parameter.

\_8102\_sv\_move:

This function is to accelerate an axis to the specified constant velocity with a S-curve profile. The axis will continue to travel at a constant velocity until the velocity is changed or the axis is commanded to stop. The direction is determined by the sign of velocity parameter.

\_8102\_emg\_stop:

This function is used to immediately stop an axis. This function is also useful when a preset move (both trapezoidal and S-curve motion), manual move, or home return function is performed.

\_8102\_sd\_stop:

This function is used to decelerate an axis to stop with a trapezoidal or S-curve profile. This function is also useful when a preset move (both trapezoidal and S-curve motion), manual move, or home return function is performed. Note: The velocity profile is decided by original motion profile.

\_8102\_get\_current\_speed:

This function is used to read the current pulse output rate (pulse/sec) of a specified axis. It is applicable in any time in any operation mode.

\_8102\_speed\_override:

This function is used to change motion speed on the fly. The over-rided speed cannot higher than maximum motion speed. On the other hand, Users also can use the function “\_8102\_set\_max\_override\_speed” to set the maximum override speed which may higher or lower than maximum motion speed before motion.

\_8102\_set\_max\_override\_speed:

This function is used to set the max orerrided speed. This function is used before velocity motion.

# @ Syntax

# C/C++(Windows 2000/XP/7)

```c
I16 _8102_tv_move(I16 AxisNo, F64 StrVel, F64 MaxVel, F64 Tacc);
I16 _8102_sv_move(I16 AxisNo, F64 StrVel, F64 MaxVel, F64 Tacc, F64 SVacc);
I16 _8102_emg_stop(I16 AxisNo);
I16 _8102_sd_stop(I16 AxisNo, F64 Tdec);
I16 _8102_get_current_speed(I16 AxisNo, F64 *speed)
I16 _8102_speed_override(I16 CAxisNo, F64 NewVelPercent, F64 Time);
I16 _8102_set_max_override_speed(I16 AxisNo, F64 OvrdSpeed, I16 Enable);
```

# Visual Basic6 (Windows 2000/XP/7)

```txt
B_8102_tv_move(ByVal AxisNo As Integer, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double) As Integer
B_8102_sv_move(ByVal AxisNo As Integer, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal SVacc As Double) As Integer
B_8102_emg_stop(ByVal AxisNo As Integer) As Integer
B_8102_sd_stop(ByVal AxisNo As Integer, ByVal Tdec As Double) As Integer
B_8102_get_current_speed(ByVal AxisNo As Integer, ByVal Ref Speed As Double) As Integer
```

```c
B_8102_speed_override(ByVal CaxisNo As Integer, ByVal NewVelPercent as Double, ByVal Time As Integer);
B_8102_set_max_override_speed(ByVal AxisNo As Integer, ByVal OvrdSpeed As Double, ByVal Enable As Integer);
```

# @ Argument

AxisNo: Axis number designated to move or stop.

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

StrVel: Starting velocity in units of pulse per second

MaxVel: Maximum velocity in units of pulse per second

Tacc: Specified acceleration time in units of second

SVacc: Specified velocity interval in which S-curve acceleration is performed.

Note: SVacc = 0, for pure S-Curve

Tdec: specified deceleration time in units of second

\*Speed: Variable to get current speed (pulse/sec).

# 6.6 Single Axis Position Mode

# @ Name

```txt
_8102_start_tr_move - Begin a relative trapezoidal profile move
_8102_start_ta_move - Begin an absolute trapezoidal profile move
_8102_start_sr_move - Begin a relative S-curve profile move
```

```txt
_8102_start_sa_move - Begin an absolute S-curve profile move
_8102_set_move_ratio - Set the ration of command pulse and feedback pulse
_8102_position_override - Change position on the fly
```

# @ Description

# General:

The moving direction is determined by the sign of the Pos or Dist parameter. If the moving distance is too short to reach the specified velocity, the controller will automatically lower the MaxVel, and the Tacc, Tdec, VSacc, and VSdec will also become shorter while dV/dt(acceleration / deceleration) and d(dV/dt)/dt (jerk) are keep unchanged.

\_8102\_start\_tr\_move:

This function causes the axis to accelerate form a starting velocity (StrVel), rotate at constant velocity (MaxVel), and decelerate to stop at the relative distance with trapezoidal profile. The acceleration (Tacc) and deceleration (Tdec) time is specified independently—it does not let the program wait for motion completion but immediately returns control to the program.

\_8102\_start\_ta\_move:

This function causes the axis to accelerate from a starting velocity (StrVel), rotate at constant velocity (MaxVel), and decelerates to stop at the specified absolute position with trapezoidal profile. The acceleration (Tacc) and deceleration (Tdec) time is specified independently. This command does not let the program wait for motion completion, but immediately returns control to the program.

\_8102\_start\_sr\_move:

This function causes the axis to accelerate from a starting velocity (StrVel), rotate at constant velocity (MaxVel), and decelerates to stop at the relative distance with S-curve profile. The acceleration (Tacc) and deceleration (Tdec) time is specified independently. This command does not let the program wait for motion completion, but immediately returns control to the program.

\_8102\_start\_sa\_move:

This function causes the axis to accelerate from a starting velocity (StrVel), rotate at constant velocity, and decelerates to stop at the specified absolute position with S-curve profile. The acceleration and deceleration time is specified independently. This command does not let the program wait for motion completion but immediately returns control to the program.

\_8102\_set\_move\_ratio:

This function configures scale factors for the specified axis. Usually, the axes only need scale factors if their mechanical resolutions are different. For example, if the resolution of feedback sensors is two times resolution of command pulse, then the parameter "move\_ratio" could be set as 2.

\_8102\_position\_override:

This function is used to change target position on the fly. There are some limitations on this function. Please refer to section 4.2.15 before use it.

# @ Syntax

# C/C++(Windows 2000/XP/7)

```c
I16 _8102_start_tr_move(I16 AxisNo, F64 Dist, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec);
I16 _8102_start_ta_move(I16 AxisNo, F64 Pos, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec);
I16 _8102_start_sr_move(I16 AxisNo, F64 Dist, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64 SVacc, F64 SVdec);
I16 _8102_start_sa_move(I16 AxisNo, F64 Pos, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64 SVacc, F64 SVdec);
I16 _8102_set_move_ratio(I16 AxisNo, F64 move_ratio);
I16 _8102_position_override(I16 AxisNo, F64 NewPos);
```

# Visual Basic6 (Windows 2000/XP/7)

```txt
B_8102_start_tr_move(ByVal AxisNo As Integer, ByVal Dist As Double, ByVal StrVel As
```

```txt
Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double) As Integer B_8102_start_ta_move(ByVal AxisNo As Integer, ByVal Pos As Double, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double) As Integer B_8102_start_sr_move(ByVal AxisNo As Integer, ByVal Dist As Double, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double, ByVal SVacc As Double, ByVal SVdec As Double) As Integer B_8102_start_sa_move(ByVal AxisNo As Integer, ByVal Pos As Double, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double, ByVal SVacc As Double, ByVal SVdec As Double) As Integer B_8102_set_move_ratio(ByVal AxisNo As Integer, ByVal move_ratio As Double) As Integer B_8102_position_override(ByVal AxisNo As Integer, ByVal NewPos As Double) As Integer
```

# @ Argument

AxisNo: Axis number designated to move or change position.

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

Dist: Specified relative distance to move (unit: pulse)

Pos: Specified absolute position to move (unit: pulse)

StrVel: Starting velocity of a velocity profile in units of pulse per second

MaxVel: Maximum velocity in units of pulse per second

Tacc: Specified acceleration time in units of seconds

Tdec: Specified deceleration time in units of seconds

SVacc: Specified velocity interval in which S-curve acceleration is performed.

Note: SVacc = 0, for pure S-Curve. For more details, see section 4.2.4

SVdec: specified velocity interval in which S-curve deceleration is performed.

Note: SVdec = 0, for pure S-Curve. For more details, see section 4.2.4

Move\_ratio: ratio of (feedback resolution)/(command resolution), should not be 0

NewPos: specified new absolute position to move

# 6.7 Linear Interpolated Motion

# @ Name

```txt
_8102_start_tr_move_xy - Begin a relative 2-axis linear interpolation with trapezoidal profile
_8102_start_ta_move_xy - Begin an absolute 2-axis linear interpolation for with trapezoidal profile
_8102_start_sr_move_xy -Begin a relative 2-axis linear interpolation for with S-curve profile
_8102_start_sa_move_xy -Begin an absolute 2-axis linear interpolation for with S-curve profile
```

# @ Description

These functions perform linear interpolation motion with different profile. Detail Comparisons of those functions are described by follow table.

<table><tr><td>Function</td><td>Total axes</td><td>Velocity profile</td><td>Relative / Absolute</td><td>Target axes</td></tr><tr><td>_8102_start_tr_move_xy</td><td>2</td><td>T</td><td>R</td><td>Axes 0 &amp; 1</td></tr><tr><td>_8102_start_ta_move_xy</td><td>2</td><td>T</td><td>A</td><td>Axes 0 &amp; 1</td></tr><tr><td>_8102_start_sr_move_xy</td><td>2</td><td>S</td><td>R</td><td>Axes 0 &amp; 1</td></tr><tr><td>_8102_start_sa_move_xy</td><td>2</td><td>S</td><td>A</td><td>Axes 0 &amp; 1</td></tr></table>

Velocity profile :

T : trapezoidal profile

S : s curve profile

Relative / Absolute:

R: Relative distance

A: Absolute position

# @ Syntax

# C/C++(Windows 2000/XP/7)

```txt
I16 _8102_start_tr_move_xy(I16 Card_id, F64 DistX, F64 DistY, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec);
I16 _8102_start_ta_move_xy(I16 Card_id, F64 PosX, F64 PosY, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec);
I16 _8102_start_sr_move_xy(I16 Card_id, F64 DistX, F64 DistY, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64 SVacc, F64 SVdec);
I16 _8102_start_sa_move_xy(I16 Card_id, F64 PosX, F64 PosY, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64 SVacc, F64 SVdec);
```

# Visual Basic6 (Windows 2000/XP/7)

```txt
B_8102_start_tr_move_xy(ByVal CardNo As Integer, ByVal DistX As Double, ByVal DistY As Double, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double) As Integer
B_8102_start_ta_move_xy(ByVal CardNo As Integer, ByVal PosX As Double, ByVal PosY As Double, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double) As Integer
```

B\_8102\_start\_sr\_move\_xy(ByVal CardNo As Integer, ByVal DistX As Double, ByVal DistY As Double, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double, ByVal SVacc As Double, ByVal SVdec As Double) As Integer

B\_8102\_start\_sa\_move\_xy(ByVal CardNo As Integer, ByVal PosX As Double, ByVal PosY As Double, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double, ByVal SVacc As Double, ByVal SVdec As Double) As Integer

# @ Argument

AxisNo: Axis number designated to move or change position.

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

DistX: specified relative distance of axis 0 to move (unit: pulse).

DistY: specified relative distance of axis 1 to move (unit: pulse).

PosX: specified absolute position of axis 0 to move (unit: pulse).

PosY: specified absolute position of axis 1 to move (unit: pulse).

StrVel: Starting velocity of a velocity profile in units of pulse per second.

MaxVel: Maximum velocity in units of pulse per second.

Tacc: Specified acceleration time in units of seconds.

Tdec: Specified deceleration time in units of seconds.

SVacc: Specified velocity interval in which S-curve acceleration is performed.

Note: SVacc = 0, for pure S-Curve. For more details, see

section 4.2.4

SVdec: specified velocity interval in which S-curve deceleration is performed.

Note: SVdec = 0, for pure S-Curve. For more details, see section 4.2.4

# 6.8 Circular Interpolation Motion

# @ Name

```txt
_8102_start_tr_arc_xy - Begin a T-curve relative circular interpolation
_8102_start_ta_arc_xy - Begin a T-curve absolute circular interpolation
_8102_start_sr_arc_xy - Begin a S-curve relative circular interpolation
_8102_start_sa_arc_xy - Begin a S-curve absolute circular interpolation
```

# @ Description

Those functions perform Circular interpolation motion with different profile. Detail Comparisons of those functions are described by follow table.

<table><tr><td>Function</td><td>Total axes</td><td>Velocity Profile</td><td>Relative/ Absolute</td><td>Target Axes</td></tr><tr><td>_8102_start_tr_arc_xy</td><td>2</td><td>trapezoidal</td><td>R</td><td>Axes 0 &amp; 1</td></tr><tr><td>_8102_start_ta_arc_xy</td><td>2</td><td>trapezoidal</td><td>A</td><td>Axes 0 &amp; 1</td></tr><tr><td>_8102_start_sr_arc_xy</td><td>2</td><td>S-curve</td><td>R</td><td>Axes 0 &amp; 1</td></tr><tr><td>_8102_start_sa_arc_xy</td><td>2</td><td>S-curve</td><td>A</td><td>Axes 0 &amp; 1</td></tr></table>

# @ Syntax

# C/C++(Windows 2000/XP/7)

```rust
I16 _8102_start_tr_arc_xy(I16 Card_id, F64 OffsetCx, F64 OffsetCy, F64 OffsetEx, F64 OffsetEy, I16 DIR, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec);
I16 _8102_start_ta_arc_xy(I16 Card_id, F64 Cx, F64 Cy, F64 Ex, F64 Ey, I16 DIR, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec);
I16 _8102_start_sr_arc_xy(I16 Card_id, F64 OffsetCx, F64 OffsetCy, F64 OffsetEx, F64 OffsetEy, I16 DIR, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64 SVacc, F64 SVdec);
I16 _8102_start_sa_arc_xy(I16 Card_id, F64 Cx, F64 Cy, F64 Ex, F64 Ey, I16 DIR, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64 SVacc, F64 SVdec);
```

# Visual Basic6 (Windows 2000/XP/7)

```txt
B_8102_start_tr_arc_xy(ByVal CardNo As Integer, ByVal OffsetCx As Double, ByVal OffsetCy As Double, ByVal OffsetEx As Double, ByVal OffsetEy As Double, ByVal CW_CCW As Integer, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double) As Integer

B_8102_start_ta_arc_xy(ByVal CardNo As Integer, ByVal Cx As Double, ByVal Cy As Double, ByVal Ex As Double, ByVal Ey As Double, ByVal CW_CCW As Integer, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double) As Integer

B_8102_start_sr_arc_xy(ByVal CardNo As Integer, ByVal OffsetCx As Double, ByVal OffsetCy As Double, ByVal OffsetEx As Double, ByVal OffsetEy As Double, ByVal CW_CCW As Integer, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double, ByVal SVacc As Double, ByVal SVdec As Double) As Integer

B_8102_start_sa_arc_xy(ByVal CardNo As Integer, ByVal Cx As Double, ByVal Cy As Double, ByVal Ex As Double, ByVal Ey As Double,
```

ByVal CW\_CCW As Integer, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double, ByVal SVacc As Double, ByVal SVdec As Double) As Integer

# @ Argument

AxisNo: Axis number designated to move or change position.

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

OffsetCx: X-axis offset to center

OffsetCy: Y-axis offset to center

OffsetEx: X-axis offset to end of arc

OffsetEy: Y-axis offset to end of arc

DIR: Specified direction of arc

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Clockwise (cw)</td></tr><tr><td>1</td><td>Counterclockwise (ccw)</td></tr></table>

StrVel: Starting velocity of a velocity profile in units of pulse per second.

MaxVel: Maximum velocity in units of pulse per second.

Tacc: Specified acceleration time in units of seconds.

Tdec: Specified deceleration time in units of seconds.

SVacc: Specified velocity interval in which S-curve acceleration is performed.

Note: SVacc = 0, for pure S-Curve. For more details, see section 4.2.4

SVdec: specified velocity interval in which S-curve deceleration is performed.

Note: SVdec = 0, for pure S-Curve. For more details, see section 4.2.4

# 6.9 Home Return Mode

# @ Name

```txt
_8102_set_home_config - Set the configuration for home return.
_8102_home_move - Perform a home return move.
_8102_home_search - Perform auto home search
```

# @ Description

\_8102\_set\_home\_config:

Configures the home return mode, origin & index signal(EZ) logic, EZ count, and ERC output options for the home\_move() function. Refer to Section 4.1.8 for the setting of home\_mode control.

\_8102\_home\_move:

This function will cause the axis to perform a home return move according to the \_8102\_set\_home\_config() function settings. The direction of movement is determined by the sign of velocity parameter (svel, mvel). Since the stopping condition of this function is determined by the home\_mode setting, users should take care in selecting the initial moving direction. Users should also take care to handle conditions when the limit switch is touched or other conditions that are possible causing the axis to stop. Executing v\_stop() function during home\_move() can also cause the axis to stop.

\_8102\_home\_search:

This function is used to start home searching no matter the location of axis. The ORGoffset must be set to non-zero to previous miss operation.

# @ Syntax

# C/C++ (DOS, Windows 95/NT)

```c
I16 _8102_set_home_config(I16 AxisNo, I16 home_mode, I16 org_logic, I16 ez_logic, I16 ez_count, I16 erc_out);
I16 _8102_home_move(I16 AxisNo, F64 StrVel, F64 MaxVel, F64 Tacc);
I16 _8102_home_search(I16 AxisNo, F64 StrVel, F64 MaxVel, F64 Tacc, F64 ORGOffset);
```

# Visual Basic (Windows 95/NT)

```txt
B_8102_set_home_config (ByVal AxisNo As Integer, ByVal home_mode As Integer, ByVal org_logic As Integer, ByVal ez_logic As Integer, ByVal ez_count As Integer, ByVal erc_out As Integer) As Integer
B_8102_home_move (ByVal AxisNo As Integer, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double) As Integer
B_8102_home_search (ByVal AxisNo As Integer, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal ORGOffset As Double) As Integer
```

# @ Argument

AxisNo: Axis number designated to move or change position.

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

home\_mode: Stopping modes for home return, This value is between 0 to 12. Please see Section 4.2.10

org\_logic: Action logic configuration for ORG

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Active low</td></tr><tr><td>1</td><td>Active high</td></tr></table>

ez\_logic: Action logic configuration for EZ

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Active low</td></tr><tr><td>1</td><td>Active high</td></tr></table>

ez\_count: 0\~15 (Please refer to see Section 4.2.10)

erc\_out: Set ERC output options.

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>no ERC out</td></tr><tr><td>1</td><td>ERC signal out when home-move is complete</td></tr></table>

StrVel: Starting velocity of a velocity profile. (unit: pulse/sec)

MaxVel: Maximum velocity. (unit: pulse/sec)

Tacc: Specified acceleration time (Unit: sec)

ORGOffset: The escape pulse amounts when home search touches the ORG singal (Unit: pulse)

@ Return Code

ERR\_NoError

# 6.10 Manual Pulser Motion

# @ Name

```txt
_8102_disable_pulser_input - Disable the pulser input
_8102_pulser_pmove - Manual pulser p_move
_8102_pulser_vmove - Manual pulser v_move
_8102_set_pulser_ratio - Set manual pulser ratio for actual output pulse rate
_8102_set_pulser_iptmode - Set the input signal modes of pulser
```

# @ Description

\_8102\_disable\_pulser\_input

This function is used to set the pulser input disable or enable.

\_8102\_pulser\_pmove

With this command, the axis begins to move according to the manual pulse input. The axis will output one pulse when it receives one manual pulse, until the \_8102\_disable\_pulser\_input function disables the pulser or the output pulse number reaches the distance.

\_8102\_pulser\_vmove

With this command, the axis begins to move according to the manual pulse input. The axis will output one pulse when it receives one manual pulse, until the \_8102\_disable\_pulser\_input function disables the pulser.

\_8102\_set\_pulser\_ratio

Set manual pulse ratio for actual output pulse rate. The formula for manual pulse output rate is:

Output Pulse Count = Input Pulser Count × 4 (MultiF +1) × (DivF +1) / 2048

The DivF = 0\~2047 Divide Factor

The MultiF= 0\~31 Multiplication Factor

\_8102\_set\_pulser\_iptmode

This function is used to configure the input mode of manual pulser.

# @ Syntax

# C/C++(Windows 2000/XP/7)

```c
I16 _8102_disable_pulser_input(I16 AxisNo, U16 Disable);
I16 _8102_pulser_pmove(I16 AxisNo, F64 Dist, F64 SpeedLimit);
I16 _8102_pulser_vmove(I16 AxisNo, F64 SpeedLimit);
I16 _8102_set_pulser_ratio(I16 AxisNo, I16 DivF, I16 MultiF);
I16 _8102_set_pulser_iptmode(I16 AxisNo, I16 InputMode, I16 Inverse);
```

# Visual Basic (Windows 2000/XP/7)

```txt
B_8102_disable_pulser_input(ByVal AxisNo As Integer, ByVal Disable As Integer) As Integer
B_8102_pulser_pmove(ByVal AxisNo As Integer, ByVal Dist As Double, ByVal SpeedLimit As Double) As Integer
B_8102_pulser_vmove(ByVal AxisNo As Integer, ByVal SpeedLimit As Double) As Integer
B_8102_set_pulser_ratio(ByVal AxisNo As Integer, ByVal DivF As Integer, ByVal MultiF As Integer) As Integer
B_8102_set_pulser_iptmode(ByVal AxisNo As Integer, ByVal InputMode As Integer, ByVal Inverse As Integer) As Integer
```

# @ Argument

AxisNo: Axis number designated to move or change position.

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

Disable: Disable pulser input.

▶ Disable = 1, disable pulser
▶ Disable = 0, enable pulser

Dist: Specified relative distance to move (unit: pulse)

For example, if SpeedLimit is set to be 100pps, then the axis can move at fastest 100pps, even the input pulser signal rate is more then 100pps.

DivF: Divide factor (0\~2047)

MultiF: Multiplication factor (0\~31)

InputMode: Setting of manual pulse input mode from the PA and PB pins

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>1X AB phase type pulse input</td></tr><tr><td>1</td><td>2X AB phase type pulse input</td></tr><tr><td>2</td><td>4X AB phase type pulse input</td></tr><tr><td>3</td><td>CW/CCW type pulse input</td></tr></table>

Inverse: Reverse the moving direction from pulse direction

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>no inverse</td></tr><tr><td>1</td><td>Reverse moving direction</td></tr></table>

# 6.11 Motion Status

@ Name

\_8102\_motion\_done - Return the motion status

@ Description

\_8102\_motion\_done:

Return the motion status of the 8102. The return code show as below:

<table><tr><td>0</td><td>Normal stopped condition</td></tr><tr><td>1</td><td>Waiting for DR</td></tr><tr><td>2</td><td>Waiting for CSTA input</td></tr><tr><td>3</td><td>Waiting for an internal synchronous signal</td></tr><tr><td>4</td><td>Waiting for another axis to stop</td></tr><tr><td>5</td><td>Waiting for a completion of ERC timer</td></tr><tr><td>6</td><td>Waiting for a completion of direction change timer</td></tr><tr><td>7</td><td>Correcting backlash</td></tr><tr><td>8</td><td>Wait PA/PB</td></tr><tr><td>9</td><td>At FA speed</td></tr><tr><td>10</td><td>At FL Speed</td></tr><tr><td>11</td><td>Accelerating</td></tr><tr><td>12</td><td>At FH Speed</td></tr><tr><td>13</td><td>Decelerating</td></tr><tr><td>14</td><td>Wait INP</td></tr><tr><td>15</td><td>Others (Controlling Start)</td></tr><tr><td>16</td><td>SALM</td></tr><tr><td>17</td><td>SPEL</td></tr><tr><td>18</td><td>SMEL</td></tr><tr><td>19</td><td>SEMG</td></tr><tr><td>20</td><td>SSTP</td></tr><tr><td>21</td><td>SERC</td></tr></table>

# @ Syntax

C/C++ (DOS, Windows 95/NT)

I16 \_8102\_motion\_done(I16 AxisNo);

Visual Basic (Windows 95/NT)

B\_8102\_motion\_done (ByVal AxisNo As Integer) As Integer

# @ Argument

AxisNo: Axis number designated to start manual move

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

# 6.12 Motion Interface I/O

# @ Name

```txt
_8102_set_servo - Set the ON-OFF state of the SVON signal
_8102_set_pcs_logic - Set the logic of PCS signal
_8102_set_lcr_mode - Set the mode of CLR signal
_8102_set_inp - Set the logic of INP signal and operating mode
_8102_set_alm - Set the logic of ALM signal and operating mode
_8102_set_erc - Set the logic of ERC signal and operating mode
_8102_set_sd - Set the logic SD signal and operating mode
_8102_enable_sd - Enable SD signal
_8102_set_limit_logic - Set the logic of PEL/MEL signal
_8102_set_limit_mode - Set PEL/MEL operating mode
_8102_select_pin23_input - set pin NO.23 signal source
_8102_select_pin57_input - set pin No.57 signal source
_8102_get_io_status - Get all the motion I/O statuses of each 8102
```

# @ Description

\_8102\_set\_servo:

You can set the ON-OFF state of the SVON signal with this function. The default value is 1(OFF), which means the SVON is open to GND.

\_8102\_set\_pcs\_logic:

Set the active logic of the PCS signal input

\_8102\_set\_lcr\_mode

CLR inputed signal can reset specified counters from counter 1 to 4. The reset action could be set by this function. The reset action mode has 4 types. For details refer to argument.

\_8102\_set\_inp:

Set the active logic of the In-Position signal input from the servo driver. Users can select whether they want to enable this function. It is disabled by default.

\_8102\_set\_alm:

Set the active logic of the ALARM signal input from the servo driver. Two reaction modes are available when the ALARM signal is active.

\_8102\_set\_erc:

You can set the logic and on time of the ERC with this function. It also can set the pulser width of ERC signal.

\_8102\_set\_sd:

Set the active logic, latch control, and operating mode of the SD signal input from a mechanical system. Users can select whether they want to enable this function by \_8102\_enable\_sd. It is disabled by default

\_8102\_enable\_sd:

Enable the SD signal input. Default setting is default.

\_8102\_set\_limit\_logic:

Set the EL logic, normal open or normal closed.

\_8102\_set\_limit\_mode:

Set the reaction modes of the EL signal.

\_8102\_select\_pin23\_input:

Set the pin 23 to the input signal SD1, LTC1 or PCS1.

\_8102\_select\_pin57\_input:

Set the pin 57 to the input signal SD2, LTC2 or PCS2

\_8102\_get\_io\_status:

Get all the I/O statuses for each axis. The definition for each bit is as follows:

<table><tr><td>Bit</td><td>Name</td><td>Description</td></tr><tr><td>0</td><td>RDY</td><td>RDY pin input</td></tr><tr><td>1</td><td>ALM</td><td>Alarm Signal</td></tr><tr><td>2</td><td>+EL</td><td>Positive Limit Switch</td></tr><tr><td>3</td><td>-EL</td><td>Negative Limit Switch</td></tr><tr><td>4</td><td>ORG</td><td>Origin Switch</td></tr><tr><td>5</td><td>DIR</td><td>DIR output</td></tr><tr><td>6</td><td>EMG</td><td>EMG status</td></tr><tr><td>7</td><td>PCS</td><td>PCS signal input</td></tr><tr><td>8</td><td>ERC</td><td>ERC pin output</td></tr><tr><td>9</td><td>EZ</td><td>Index signal</td></tr><tr><td>10</td><td>CLR</td><td>Clear signal</td></tr><tr><td>11</td><td>LTC</td><td>Latch signal input</td></tr><tr><td>12</td><td>SD</td><td>Slow Down signal input</td></tr><tr><td>13</td><td>INP</td><td>In-Position signal input</td></tr><tr><td>14</td><td>SVON</td><td>Servo-ON output status</td></tr></table>

# @ Syntax

# C/C++(Windows 2000/XP/7)

```c
I16 _8102_set_servo(I16 AxisNo, I16 on_off);
I16 _8102_set_pcs_logic(I16 AxisNo, I16 pcs_logic);
I16 _8102_set_clr_mode(I16 AxisNo, I16 clr_mode);
I16 _8102_set_inp(I16 AxisNo, I16 inp_enable, I16 inp_logic);
I16 _8102_set_alm(I16 AxisNo, I16 alm_logic, I16 alm_mode);
I16 _8102_set_erc(I16 AxisNo, I16 erc_logic, I16 erc_pulse_width);
```

```c
I16 _8102_set_sd(I16 AxisNo, I16 sd_logic, I16 sd_latch, I16 sd_mode);
I16 _8102_enable_sd(I16 AxisNo, I16 enable);
I16 _8102_set_limit_logic(I16 AxisNo, U16 Logic);
I16 _8102_set_limit_mode(I16 AxisNo, I16 limit_mode);
I16 _8102_select_pin23_input(I16 card_id, U16 Select);
I16 _8102_select_pin57_input(I16 card_id, U16 Select);
```
Visual Basic (Windows 2000/XP/7)

```csv
B_8102_set_servo(ByVal AxisNo As Integer, ByVal on_off As Integer) As Integer
B_8102_set_pcs_logic(ByVal AxisNo As Integer, ByVal pcs_logic As Integer) As Integer
B_8102_set_clr_mode(ByVal AxisNo As Integer, ByVal clr_mode As Integer) As Integer
B_8102_set_inp(ByVal AxisNo As Integer, ByVal inp_enable As Integer, ByVal inp_logic As Integer) As Integer
B_8102_set_alm(ByVal AxisNo As Integer, ByVal alm_logic As Integer, ByVal alm_mode As Integer) As Integer
B_8102_set_erc(ByVal AxisNo As Integer, ByVal erc_logic As Integer, ByVal erc_pulse_width As Integer) As Integer
B_8102_set_sd(ByVal AxisNo As Integer, ByVal sd_logic As Integer, ByVal sd_latch As Integer, ByVal sd_mode As Integer) As Integer
B_8102_enable_sd(ByVal AxisNo As Integer, ByVal Enable As Integer) As Integer
B_8102_set_limit_logic(ByVal AxisNo As Integer, ByVal Logic As Integer) As Integer
B_8102_set_limit_mode(ByVal AxisNo As Integer, ByVal limit_mode As Integer) As Integer
B_8102_select_pin23_input(ByVal card_id As Integer, ByVal SelectNo As Integer) As Integer
B_8102_select_pin57_input(ByVal card_id As Integer, ByVal SelectNo As Integer) As Integer
```

# @ Argument

AxisNo: Axis number of Target Axis.card\_idPhysical axisAxisNo

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

on\_off: ON-OFF state of SVON signal

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>ON</td></tr><tr><td>1</td><td>OFF</td></tr></table>

pcs\_logic: PCS signal input logic

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Negative logic</td></tr><tr><td>1</td><td>Positive logic</td></tr></table>

clr\_mode: Clear action mode.

▶ clr\_mode = 0, Clear on the falling edge (default)
▶ clr\_mode = 1, Clear on the rising edge
▶ clr\_mode = 2, Clear on a LOW level
▶ clr\_mode = 3, Clear on a HIGH level

inp\_enable: INP function enabled/disabled

▶ inp\_enable = 0, Disabled (default)
▶ inp\_enable = 1, Enabled

inp\_logic: Set the active logic for the INP signal

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Negative logic</td></tr><tr><td>1</td><td>Positive logic</td></tr></table>

alm\_logic: Setting of active logic for ALARM signals

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Negative logic</td></tr><tr><td>1</td><td>Positive logic</td></tr></table>

alm\_mode: reaction modes when receiving an ALARM signal.

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>motor immediately stops (default)</td></tr><tr><td>1</td><td>motor decelerates then stops</td></tr></table>

erc\_logic: Set the active logic for the ERC signal

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Negative logic</td></tr><tr><td>1</td><td>Positive logic</td></tr></table>

erc\_pulse\_width: Set the pulse width of the ERC signal

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>12 us</td></tr><tr><td>1</td><td>102 us</td></tr><tr><td>2</td><td>409 us</td></tr><tr><td>3</td><td>1.6 ms</td></tr><tr><td>4</td><td>13 ms</td></tr><tr><td>5</td><td>52 ms</td></tr><tr><td>6</td><td>104 ms</td></tr><tr><td>7</td><td>Level output</td></tr></table>

sd\_logic:

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Negative logic</td></tr><tr><td>1</td><td>Positive logic</td></tr></table>

sd\_latch: Set the latch control for the SD signal

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Do not latch</td></tr><tr><td>1</td><td>latch</td></tr></table>

sd\_mode: Set the reaction mode of the SD signal

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>slow down only</td></tr><tr><td>1</td><td>slow down then stop</td></tr></table>

enable: Set the ramping-down point for high speed feed.

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Automatic setting</td></tr><tr><td>1</td><td>Manual setting (default)</td></tr></table>

Logic: Set the PEL/MEL logic.

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Normal low (normal open)</td></tr><tr><td>1</td><td>Normal high (normal close)</td></tr></table>

limit\_mode:

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Stop immediately</td></tr><tr><td>1</td><td>Slow down then stop</td></tr></table>

Select: select the corresponding signal to specified pin

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>CLR pin</td></tr><tr><td>1</td><td>LTC pin</td></tr><tr><td>2</td><td>SD pin</td></tr><tr><td>3</td><td>PCS pin</td></tr></table>

# 6.13 Interrupt Control

@ Name
```txt
_8102_int_control - Enable/Disable INT service
_8102_set_motion_int_factor - Set the factors of motion related interrupts
_8102_set_gpio_int_factor - Set the factors of general purpose IO related interrupts
_8102_wait_error_interrupt - Wait error related interrupts
_8102_wait_motion_interrupt - Wait motion related interrupts
_8102_wait_gpio_interrupt - Waiting GPIO interrupts
```

# @ Description

\_8102\_int\_control:

This function is used to enable the Windows interrupt event to host PC.

\_8102\_set\_motion\_int\_factor:

This function allows users to select motion related factors to initiate the event int. The error can never be masked once the interrupt service is turned on by \_8102\_int\_control(). Once the Interrupt function is enabled, you can use \_8102\_wait\_motion\_interrupt() to wait event.

\_8102\_set\_gpio\_int\_factor:

This function allows users to select GPIO related factors to initiate the event int. The error can never be masked once the interrupt service is turned on by \_8102\_int\_control(). Once the Interrupt function is enabled, you can use \_8102\_wait\_gpio\_interrupt() to wait event.

\_8102\_wait\_error\_interrupt:

When user enabled the Interrupt function by \_8102\_int\_control(). He could use this function to wait the error interrupts.

\_8102\_wait\_motion\_interrupt:

When user enabled the Interrupt function by \_8102\_int\_control() and set the interrupt factors by \_8102\_set\_motion\_int\_factor(). User could use this function to wait the specific interrupt. When this function was running, the process would never stop until evens were triggered or the function was time out.

\_8102\_wait\_gpio\_interrupt:

When user enabled the Interrupt function by \_8102\_int\_control() and set the interrupt factors by \_8102\_set\_gpio\_int\_factor(). User could use this function to wait the specific interrupt. When this function was running, the process would never stop until evens were triggered or the function was time out.

# @ Syntax

# C/C++(Windows 2000/XP/7)

```c
I16 _8102_int_control(I16 card_id, I16 intFlag);
I16 _8102_set_motion_int_factor(I16 AxisNo, U32 int_factor);
I16 _8102_set_gpio_int_factor(I16 card_id, U16 int_factor);
I16 _8102_wait_error_interrupt(I16 AxisNo, I32 TimeOut_ms);
I16 _8102_wait_motion_interrupt(I16 AxisNo, I16 IntFactorBitNo, I32 TimeOut_ms);
I16 _8102_wait_gpio_interrupt(I16 card_id, I16 IntFactorBitNo, I32 TimeOut_ms);
```

# Visual Basic (Windows 2000/XP/7)

```c
B_8102_int_control(ByVal card_id As Integer, ByVal intFlag As Integer) As Integer
B_8102_wait_error_interrupt(ByVal AxisNo As Integer, ByVal TimeOut_ms As Long) As Integer
B_8102_wait_motion_interrupt(ByVal AxisNo As Integer, ByVal IntFactorBitNo As Integer, ByVal TimeOut_ms As Long) As Integer
```

B\_8102\_set\_motion\_int\_factor(ByVal AxisNo As Integer, ByVal int\_factor As Long) As Integer
B\_8102\_wait\_gpio\_interrupt(ByVal card\_id As Integer, ByVal IntFactorBitNo As Integer, ByVal TimeOut\_ms As Long) As Integer
B\_8102\_set\_gpio\_int\_factor(ByVal card\_id As Integer, ByVal int\_factor As Integer) As Integer

# @ Argument

card\_id: Specify the index of target PCI-8102 card. The card\_id could be decided by DIP switch (SW1) or depend on slot sequence.Please refer to \_8102\_initial().

AxisNo: Axis number of Target Axis.

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

int\_factor: interrupt factor

motion INT factors

<table><tr><td colspan="2">Value meaning (0: Disable, 1:Enable)</td></tr><tr><td>Bit</td><td>Description</td></tr><tr><td>0</td><td>Normal stop</td></tr><tr><td>1</td><td>Starting the next operation continuously</td></tr><tr><td>2</td><td>Writing to the 2nd pre-register</td></tr><tr><td>3</td><td>Writing to the 2nd pre-register for trigger comparator</td></tr><tr><td>4</td><td>Start acceleration</td></tr><tr><td>5</td><td>Acceleration end</td></tr><tr><td>6</td><td>Start deceleration</td></tr></table>

<table><tr><td colspan="2">Value meaning (0: Disable, 1:Enable)</td></tr><tr><td>Bit</td><td>Description</td></tr><tr><td>7</td><td>Deceleration end</td></tr><tr><td>8</td><td>When soft limit turn on (positive direction)</td></tr><tr><td>9</td><td>When soft limit turn on (negetive direction)</td></tr><tr><td>10</td><td>When error comparator conditions are met</td></tr><tr><td>11</td><td>When general comparator conditions are met</td></tr><tr><td>12</td><td>When trigger comparator conditions are met</td></tr><tr><td>13</td><td>When resetting the count value with a CLR signal input</td></tr><tr><td>14</td><td>When Latching the count value with a LTC signal input</td></tr><tr><td>15</td><td>When Latching the count value with an ORG signal input</td></tr><tr><td>16</td><td>When the SD input is ON</td></tr><tr><td>17</td><td>When the +/-DR input is changed</td></tr><tr><td>18</td><td>When the CSTA input is ON</td></tr><tr><td>19~31</td><td>Not define (Always set to 0)</td></tr></table>

GPIO INT factors

<table><tr><td colspan="2">Value meaning (0: Disable, 1:Enable)</td></tr><tr><td>Bit</td><td>Description</td></tr><tr><td>0</td><td>Digital Input 0 falling dege</td></tr><tr><td>1</td><td>Digital Input 1 falling dege</td></tr><tr><td>2</td><td>Digital Input 2 falling dege</td></tr><tr><td>3</td><td>Digital Input 3 falling dege</td></tr><tr><td>4</td><td>Digital Input 0 rising dege</td></tr><tr><td>5</td><td>Digital Input 1 rising dege</td></tr><tr><td>6</td><td>Digital Input 2 rising dege</td></tr><tr><td>7</td><td>Digital Input 3 rising dege</td></tr><tr><td>8</td><td>CLR/LTC/SD/PCS input 0 Interrupt enable</td></tr><tr><td>9</td><td>CLR/LTC/SD/PCS input 1 Interrupt enable</td></tr><tr><td>10</td><td>CLR/LTC/SD/PCS mode (0: falling edge, 1: rising edge)</td></tr><tr><td>11~15</td><td>Not define (Always set to 0)</td></tr></table>

TimeOut\_ms: Specifies the time-out interval, in milliseconds.

IntFactorBitNo: Specifies the bit number of the INT factor

# 6.14 Position Control and Counters

@ Name
```txt
_8102_get_position - Get the value of feedback position counter
_8102_set_position - Set the feedback position counter
_8102_get_command - Get the value of command position counter
_8102_set_command - Set the command position counter
_8102_get_error_counter - Get the value of position error counter
_8102_reset_error_counter - Reset the position error counter
_8102_get_general_counter - get the value of general counter
_8102_set_general_counter - Set the general counter
_8102_get_target_pos - Get the value of target position recorder
_8102_reset_target_pos - Reset target position recorder
_8102_get_res_distance - Get remaining pulses accumulated from motions
_8102_set_res_distance - Set remaining pulses record
```

# @ Description

\_8102\_get\_position:

This function is used to read the feedback position counter value. Note that this value has already been processed by the move ratio setting by \_8102\_set\_move\_ratio(). If the move ratio is 0.5, than the value of position will be twice. The source of the feedback counter is selectable by the function \_8102\_set\_feedback\_src() to be external EA/EB or internal pulse output of 8102.

\_8102\_set\_position:

This function is used to change the feedback position counter to the specified value. Note that the value to be set will be processed by the move ratio. If move ratio is 0.5, then the set value will be twice as given value.

\_8102\_get\_command:

This function is used to read the value of the command position counter. The source of the command position counter is the pulse output of the 8102.

\_8102\_set\_command:

This function is used to change the value of the command position counter.

\_8102\_get\_error\_counter:

This function is used to read the value of the position error counter.

\_8102\_reset\_error\_counter:

This function is used to clear the position error counter.

\_8102\_get\_general\_counter:

This function is used to read the value of the general counter.

\_8102\_set\_general\_counter:

This function is used to set the counting source of and change the value of general counter (By default, the source is pulser input).

\_8102\_get\_target\_pos:

This function is used to read the value of the target position recorder. The target position recorder is maintained by the 8102 software driver. It records the position to settle down for current running motion.

\_8102\_reset\_target\_pos:

This function is used to set new value for the target position recorder. It is necessary to call this function when home return completes, or when a new feedback counter value is set by function \_8102\_set\_position().

\_8102\_get\_res\_distance:

This function is used to read the value of the residue distance recorder. The target position recorder is maintained by the 8102 software driver. It records the position to settle down for current running motion.

\_8102\_set\_res\_distance:

This function is used to change the value of the residue distance counter

# @ Syntax

C/C++(Windows 2000/XP/7)
```c
I16 _8102_get_position(I16 AxisNo, F64 *Pos);
I16 _8102_set_position(I16 AxisNo, F64 Pos);
I16 _8102_get_command(I16 AxisNo, I32 *Command);
I16 _8102_set_command(I16 AxisNo, I32 Command);
I16 _8102_get_error_counter(I16 AxisNo, I16 *error);
I16 _8102_reset_error_counter(I16 AxisNo);
I16 _8102_get_general_counter(I16 AxisNo, F64 *CntValue);
I16 _8102_set_general_counter(I16 AxisNo, I16 CntSrc, F64 CntValue);
I16 _8102_get_target_pos(I16 AxisNo, F64 *T_pos);
I16 _8102_reset_target_pos(I16 AxisNo, F64 T_pos);
I16 _8102_get_res_distance(I16 AxisNo, F64 *Res_Distance);
I16 _8102_set_res_distance(I16 AxisNo, F64 Res_Distance);
```
Visual Basic (Windows 2000/XP/7)

```c
B_8102_get_position(ByVal AxisNo As Integer, Pos As Double) As Integer
B_8102_set_position(ByVal AxisNo As Integer, ByVal Pos As Double) As Integer
B_8102_get_command(ByVal AxisNo As Integer, Cmd As Long) As Integer
B_8102_set_command(ByVal AxisNo As Integer, ByVal Cmd As Long) As Integer
B_8102_get_error_counter(ByVal AxisNo As Integer, ByRef error As Integer) As Integer
B_8102_reset_error_counter(ByVal AxisNo As Integer) As Integer
```

```txt
B_8102_set_general_counter(ByVal AxisNo As Integer, ByVal CntSrc As Integer, ByVal CntValue As Double) As Integer
B_8102_get_general_counter(ByVal AxisNo As Integer, ByVal Pos As Double) As Integer
B_8102_reset_target_pos(ByVal AxisNo As Integer, ByVal Pos As Double) As Integer
B_8102_get_target_pos(ByVal AxisNo As Integer, ByVal Pos As Double) As Integer
B_8102_set_res_distance(ByVal AxisNo As Integer, ByVal Res_Distance As Double) As Integer
B_8102_get_res_distance(ByVal AxisNo As Integer, ByVal Res_Distance As Double) As Integer
```

@ Argument

AxisNo: Axis number of Target Axis.

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

Pos, \*Pos: Feedback position counter value, (\_8102\_get/set\_position)

range: -134217728\~134217727

command, \*command: Command position counter value,

range: -134217728\~134217727

\*error: Position error counter value,

range: -32768\~32767

CntSrc: general counter source

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Command pulse</td></tr><tr><td>1</td><td>EA/EB</td></tr><tr><td>2</td><td>Pulser input</td></tr><tr><td>3</td><td>System clock÷2</td></tr></table>

CntValue, \* CntValue: the counter value

T\_pos, \*T\_pos: Target position recorder value,

range: -134217728\~134217727

Res\_Distance, \* Res\_Distance: residue distance

# 6.15 Position Compare and Latch

# @ Name

```txt
_8102_set_trigger_logic - Set the CMP signal's logic
_8102_set_trigger comparator - Set the trigger comparator
_8102_set_error comparator - Set the error comparator
_8102_set_general comparator - Set the general comparator
_8102_set_latch_source - Set the latch timing for a counter
_8102_set_ltc_logic - Set the logic of LTC signal
_8102_get_latch_data - Get the latch datas from counter
```

# @ Description

\_8102\_set\_trigger\_logic:

This function is used to set the logic of CMP single.

\_8102\_set\_error comparator:

This function is used to set the comparison method and value for the error comparator. When the position error counter's value reaches the comparing value, the 8102 will generate an interrupt to the host PC. Also see section 6.14 "Interrupt control".

\_8102\_set\_general comparator:

This function is used to set the comparing source counter, comparison method and value for the general comparator. When the comparison conditions are met, there is one of the 4 reactions will be done. The detail setting, see the argument discription.

\_8102\_set\_trigger comparator:

This function is used to set the comparing source counter, comparison method and value for the trigger comparator. When the comparison source counter's value reaches the comparing value, the 8102 will generate a pulse output via CMP and an interrupt (event\_int\_status, bit 12) will also be sent to host PC.

\_8102\_set\_latch\_source:

There are 4 latch triggering source. By using this function, user can choose the event source to latch counters' data.

\_8102\_set\_ltc\_logic:

This function is used to set the logic of the latch input.

\_8102\_get\_latch\_data:

After the latch signal arrived, the function is used to read the latched value of counters.

# @ Syntax

C/C++(Windows 2000/XP/7)
```c
I16 _8102_set_trigger_logic(I16 AxisNo, I16 Logic);
I16 _8102_set_error comparator(I16 AxisNo, I16 CmpSrc, I16 CmpMethod,
I32 Data);
I16 _8102_set_general comparator(I16 AxisNo, I16 CmpSrc, I16 CmpMethod,
I16 CmpAction, I32 Data);
I16 _8102_set_trigger comparator(I16 AxisNo, I16 CmpSrc, I16 CmpMethod,
I32 Data);
I16 _8102_set_latch_source(I16 AxisNo, I16 ltc_src);
I16 _8102_set_ltc_logic(I16 AxisNo, I16 ltc_logic);
```

I16 \_8102\_get\_latch\_data(I16 AxisNo, I16 CounterNo, F64 \*Pos);

# Visual Basic (Windows 2000/XP/7)

B\_8102\_set\_trigger\_logic(ByVal AxisNo As Integer, ByVal Logic As Integer) As Integer
B\_8102\_set\_error comparator(ByVal AxisNo As Integer, ByVal CmpSrc As Integer, ByVal CmpMethod As Integer, ByVal Data As Long) As Integer
B\_8102\_set\_general comparator(ByVal AxisNo As Integer, ByVal CmpSrc As Integer, ByVal CmpMethod As Integer, ByVal CmpAction As Integer, ByVal Data As Long) As Integer
B\_8102\_set\_trigger comparator(ByVal AxisNo As Integer, ByVal CmpSrc As Integer, ByVal CmpMethod As Integer, ByVal Data As Long) As Integer
B\_8102\_set\_latch\_source(ByVal AxisNo As Integer, ByVal ltc\_src As Integer) As Integer
B\_8102\_set\_ltc\_logic(ByVal AxisNo As Integer, ByVal ltc\_logic As Integer) As Integer
B\_8102\_get\_latch\_data(ByVal AxisNo As Integer, ByVal CounterNo As Integer, Pos As Double) As Integer

# @ Argument

AxisNo: Axis number of Target Axis.

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

Logic: logic of comparing trigger

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Negative logic</td></tr><tr><td>1</td><td>Positive logic</td></tr></table>

CmpSrc: The comparing source counters

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Command counter</td></tr><tr><td>1</td><td>Feedback counter</td></tr><tr><td>2</td><td>Error counter</td></tr><tr><td>3</td><td>General counter</td></tr></table>

CmpMethod: The comparison methods

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>1</td><td>Data = Source counter (direction independent)</td></tr><tr><td>2</td><td>Data = Source counter (Count up only)</td></tr><tr><td>3</td><td>Data = Source counter (Count down only)</td></tr><tr><td>4</td><td>Data &gt; Source counter</td></tr><tr><td>5</td><td>Data &lt; Source counter</td></tr></table>

Data: comparing value

CmpAction:

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>No action</td></tr><tr><td>1</td><td>Stop immediately</td></tr><tr><td>2</td><td>Slow down then stop</td></tr></table>

ltc\_src:

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>LTC pin input</td></tr><tr><td>1</td><td>ORG pin input</td></tr><tr><td>2</td><td>general comparator conditions are met</td></tr><tr><td>3</td><td>trigger comparator conditions are met</td></tr></table>

Itc\_logic: LTC signal operation edge

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Negative logic</td></tr><tr><td>1</td><td>Positive logic</td></tr></table>

CounterNo: Specified the counter to latch

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Command counter</td></tr><tr><td>1</td><td>Feedback counter</td></tr><tr><td>2</td><td>Error counter</td></tr><tr><td>3</td><td>General counter</td></tr></table>

\*Pos: Latch data

# 6.16 Continuous Motion

# @ Name

```txt
_8102_set_continuous_move - toggle continuous motion sequence flags
_8102_check_continuous_buffer - check if the command register buffer is empty
_8102_dwell_move - Set a dwell move
```

# @ Description

\_8102\_set\_continuous\_move():

This function is necessary before and after continuous motion command sequences.

\_8102\_check\_continuous\_buffer():

This function is used to detect if the command pre-register is empty or not. Once the command pre-register is empty, users may write the next motion command into it. Otherwise, the new command will overwrite the previous command in the 2nd command pre-register.

\_8102\_dwell\_move:

This function is used to start a dwell move that means the move does not cause real motion for a specific time.

Following example is shown how does the user

```c
_8102_set_continuous_move( 2, 1 ); // start continuous move
_8102_start_tr_move( 2, 20000.0, 10.0, 10000.0, 0.1, 0.1);
_8102_dwell_move( 2, 2000 ); //dwell move for 2 sec.
_8102_start_sr_move( 2, 20000.0, 10.0, 10000.0, 0.1, 0.1, 0, 0 );
_8102_set_continuous_move( 2, 0 ); //end continuous move
```

# @ Syntax

# C/C++ (DOS, Windows 95/NT)

```c
I16 _8102_set_continuous_move(I16 AxisNo, I16 conti_flag);
I16 _8102_check_continuous_buffer(I16 AxisNo);
I16 _8102_dwell_move(I16 AxisNo, F64 miniSecond);
```

# Visual Basic (Windows 95/NT)

```txt
B_8102_set_continuous_move (ByVal AxisNo As Integer, ByVal conti_flag As Integer) As Integer
B_8102_check_continuous_buffer (ByVal AxisNo As Integer) As Integer
B_8102_dwell_move(ByVal AxisNo As Integer, ByVal miniSecond As Double) As Integer
```

# @ Argument

AxisNo: axis number Target Axis

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

conti\_logic: continuous motion logic

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>continuous motion sequence is finished</td></tr><tr><td>1</td><td>continuous motion sequence is started</td></tr></table>

miniSecond: Time of dwell move, the unit is in ms

# 6.17 Multiple Axes Simultaneous Operation

# @ Name

```txt
_8102_set_tr_move_all - Multi-axis simultaneous operation setup
_8102_set_ta_move_all - Multi-axis simultaneous operation setup
_8102_set_sr_move_all - Multi-axis simultaneous operation setup
_8102_set_sa_move_all - Multi-axis simultaneous operation setup
_8102_start_move_all - Begin a multi-axis trapezoidal profile motion
_8102_stop_move_all - Simultaneously stop Multi-axis motion
```

# @ Description

Theses functions are related to simultaneous operations of multi-axes, even in different cards. The simultaneous multi-axis operation means to start or stop moving specified axes at the same time. The axes moved are specified by the parameter "AxisArray," and the number of axes are defined by parameter "TotalAxes" in \_8102\_set\_tr\_move\_all().

When properly setup with \_8102\_set\_xx\_move\_all(), the function \_8102\_start\_move\_all() will cause all specified axes to begin a trapezoidal relative movement, and \_8102\_stop\_move\_all() will stop them. Both functions guarantee that motion Starting/Stopping on all specified axes are at the same time. Note that it is necessary to make connections according to Section 3.13 if these two functions are needed.

The following code demos how to utilize these functions. This code moves axis 0 and axis 1 to distance 80000.0 and 120000.0 respectively. If we choose velocities and accelerations that are proportional to the ratio of distances, then the axes will arrive at their endpoints at the same time.

[Example]
```c
I16 axes[2] = {0, 1};
F64 dist[2] = {80000.0, 120000.0},
F64 str_vel[2] = {0.0, 0.0},
F64 max_vel[2] = {4000.0, 6000.0},
F64 Tacc[2] = {0.1, 0.6},
F64 Tdec[2] = {0.1, 0.6};

_8102_set_tr_move_all(2, axes, dist, str_vel, max_vel, Tacc, Tdec);
_8102_start_move_all(axes[0]);
```

# @ Syntax

# C/C++(Windows 2000/XP/7)

```txt
I16 _8102_set_tr_move_all(I16 TotalAxes, I16 *AxisArray, F64 *DistA, F64 *StrVelA, F64 *MaxVelA, F64 *TaccA, F64 *TdecA);
I16 _8102_set_ta_move_all(I16 TotalAx, I16 *AxisArray, F64 *PosA, F64 *StrVelA, F64 *MaxVelA, F64 *TaccA, F64 *TdecA);
I16 _8102_set_sr_move_all(I16 TotalAx, I16 *AxisArray, F64 *DistA, F64 *StrVelA, F64
```

```txt
*MaxVelA, F64 *TaccA, F64 *TdecA, F64
*SVaccA, F64 *SVdecA);
I16 _8102_set_sa_move_all(I16 TotalAx, I16
*AxisArray, F64 *PosA, F64 *StrVelA, F64
*MaxVelA, F64 *TaccA, F64 *TdecA, F64
*SVaccA, F64 *SVdecA);
I16 _8102_start_move_all(I16 FirstAxisNo);
I16 _8102_stop_move_all(I16 FirstAxisNo);
```
Visual Basic (Windows 2000/XP/7)

```csv
B_8102_set_tr_move_all(ByVal TotalAxes As Integer, ByRef AxisArray As Integer, ByRef DistA As Double, ByRef StrVelA As Double, ByRef MaxVelA As Double, ByRef TaccA As Double, ByRef TdecA As Double) As Integer
B_8102_set_sa_move_all(ByVal TotalAxes As Integer, ByRef AxisArray As Integer, ByRef PosA As Double, ByRef StrVelA As Double, ByRef MaxVelA As Double, ByRef TaccA As Double, ByRef TdecA As Double, ByRef SVaccA As Double, ByRef SVdecA As Double) As Integer
B_8102_set_ta_move_all(ByVal TotalAxes As Integer, ByRef AxisArray As Integer, ByRef PosA As Double, ByRef StrVelA As Double, ByRef MaxVelA As Double, ByRef TaccA As Double, ByRef TdecA As Double) As Integer
B_8102_set_sr_move_all(ByVal TotalAxes As Integer, ByRef AxisArray As Integer, ByRef DistA As Double, ByRef StrVelA As Double, ByRef MaxVelA As Double, ByRef TaccA As Double, ByRef TdecA As Double, ByRef SVaccA As Double, ByRef SVdecA As Double) As Integer
B_8102_start_move_all(ByVal FirstAxisNo As Integer) As Integer
B_8102_stop_move_all(ByVal FirstAxisNo As Integer) As Integer
```

# @ Argument

TotalAxes: Number of axes for simultaneous motion

\*AxisArray: Specified axes number array designated to move.

\*DistA: Specified distance array in units of pulse
\*StrVelA: Starting velocity array in units of pulse per second
\*MaxVelA: Maximum velocity array in units of pulse per second
\*TaccA: Acceleration time array in units of seconds
\*TdecA: Deceleration time array in units of seconds
\*PosA: Specified position array in units of pulse
\*SvaccA: Specified velocity interval array in which S-curve acceleration is performed.
\*SvdecA: Specified velocity interval array in which S-curve deceleration is performed.
FirstAxisNo: The first element in AxisArray.

# 6.18 General-Purposed DIO

@ Name
```txt
_8102_set_gpio_output - Set digital output
_8102_get_gpio_output - Get digital output
_8102_get_gpio_input - Get digital input
_8102_set_gpio_output2 - Set digital output to P2
_8102_get_gpio_output2 - Get digital output form P2
_8102_get_gpio_input2 - Get digital input form P2
```

# @ Description

\_8102\_set\_gpio\_output:

The PCI-8102 has 2 digital output channels. By this function, user could

control the digital outputs.

\_8102\_get\_gpio\_output:

This function is used to get the digitl output status.

\_8102\_get\_gpio\_input:

PCI-8102 has 4 digital input channels. By this function, user can get the

digital input status.

\_8102\_set\_gpio\_output2:

The PCI-8102 has 16 digital output channels on P2. By this function, user could control the

digital outputs.

\_8102\_get\_gpio\_output2:

This function is used to get the digital output status.

\_8102\_get\_gpio\_input2:

PCI-8102 has 16 digital input channels on P2. By this function, user can get the digital input

status.

# @ Syntax

# C/C++(Windows 2000/XP/7)

```c
I16 _8102_set_gpio_output(I16 card_id, U16 do_value);
I16 _8102_get_gpio_output(I16 card_id, U16 *do_status);
I16 _8102_get_gpio_input(I16 card_id, U16 *di_status);
I16 _8102_set_gpio_output2(I16 card_id, U16 do_value);
I16 _8102_get_gpio_output2(I16 card_id, U16 *do_status);
I16 _8102_get_gpio_input2(I16 card_id, U16 *di_status_2);
```

# Visual Basic (Windows 2000/XP/7)

```txt
B_8102_set_gpio_output Lib "8102.dll" Alias "_8102_set_gpio_output"
(ByVal card_id As Integer, ByVal do_value As Integer) As Integer
```

```txt
B _8102_get_gpio_output Lib "8102.dll" Alias "_8102_get_gpio_output"
(ByVal card_id As Integer, do_status As Integer) As Integer
B _8102_get_gpio_input Lib "8102.dll" Alias "_8102_get_gpio_input" (ByVal card_id As Integer, di_status As Integer) As Integer
B _8102_set_gpio_output2 (ByVal card_id As Integer, ByVal do_value As Integer) As Integer
B _8102_get_gpio_output2 (ByVal card_id As Integer, do_status As Integer) As Integer
B _8102_get_gpio_input2 (ByVal card_id As Integer, di_status_2 As Integer) As Integer
```

# @ Argument

card\_id: Specify the PCI-8102 card index. The card\_id could be decided by

DIP switch (SW1) or depend on slot sequence. Please refer to\_8102\_initial().

do\_value: Unsigned 16 bits value. Bit 0: D\_out0, Bit 1: D\_out1

\*do\_status: Digital output status. Bit 0: D\_out0, Bit 1: D\_out1

\*di\_status: Digital input status, Bit0\~3: D\_in0\~3

\*di\_status\_2: Digital input status, Bit0\~15: D\_in0\~15

# 6.19 Soft Limit

@ Name

```txt
_8102_disable_soft_limit - Disable soft limit function
_8102_enable_soft_limit - Enable soft limit function
_8102_set_soft_limit - Set soft limit
```

# @ Description

\_8102\_disable\_soft\_limit:

This function is used to disable the soft limit function.

\_8102\_enable\_soft\_limit:

This function is used to enable the soft limit function. Once enabled, the action of soft limit will be exactly the same as physical limit.

\_8102\_set\_soft\_limit:

This function is used to set the soft limit value.

# @ Syntax

# C/C++(Windows 2000/XP/7)

```c
I16 _8102_disable_soft_limit(I16 AxisNo);
I16 _8102_enable_soft_limit(I16 AxisNo, I16 Action);
I16 _8102_set_soft_limit(I16 AxisNo, I32 Plus_Limit, I32 Neg_Limit);
```

# Visual Basic (Windows 2000/XP/7)

```txt
B_8102_disable_soft_limit(ByVal AxisNo As Integer) As Integer
B_8102_enable_soft_limit(ByVal AxisNo As Integer, ByVal Action As Integer) As Integer
B_8102_set_soft_limit(ByVal AxisNo As Integer, ByVal Plus_Limit As Long, ByVal Neg_Limit As Long) As Integer
```

# @ Argument

AxisNo: Axis number of Target Axis.

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

Action: The reacting method of soft limit

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>INT only</td></tr><tr><td>1</td><td>Immediately stop</td></tr><tr><td>2</td><td>slow down then stop</td></tr></table>

Plus\_Limit: Soft limit value, positive direction

Neg\_Limit: Soft limit value, negative direction

# 6.20 Backlash Compensation / Vibration Suppression

# @ Name

```txt
_8102_backlash_comp - Set backlash corrective pulse for compensation
_8102_suppress_vibration - Set vibration suppressing timing
_8102_set_fa_speed - Set the FA speed
```

# @ Description

\_8102\_backlash\_comp:

Whenever direction change occurs, the 8102 outputs backlash corrective pulses before sending commands. This function is used to set the compensation pulse numbers.

\_8102\_suppress\_vibration:

This function is used to suppress vibration of mechanical systems by outputting a single pulse for negative direction and the single pulse for positive direction right after completion of command movement.

\_8102\_set\_fa\_speed:

This function is used to specify the low speed for backlash correction or slip correction. It also used as a reverse low speed for home return operation.

# @ Syntax

# C/C++(Windows 2000/XP/7)

```c
I16 _8102_backlash_comp(I16 AxisNo, I16 CompPulse, I16 Mode);
I16 _8102_suppress_vibration(I16 AxisNo, U16 ReverseTime,
U16 ForwardTime);
I16 _8102_set_fa_speed(I16 AxisNo, F64 FA_Speed);
```

# Visual Basic (Windows 2000/XP/7)

```txt
B_8102_backlash_comp Lib "8102.dll" Alias "_8102_backlash_comp" (ByVal AxisNo As Integer, ByVal CompPulse As Integer, ByVal Mode As Integer) As Integer
B_8102_suppress_vibration(ByVal AxisNo As Integer, ByVal ReverseTime As Integer, ByVal ForwardTime As Integer) As Integer
B_8102_set_fa_speed(ByVal AxisNo As Integer, ByVal FA_Speed As Double) As Integer
```

# @ Argument

AxisNo: Axis number of Target Axis.

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

CompPulse: Specified number of corrective pulses, 12 bit

Mode:

<table><tr><td>Value</td><td>Meaning</td></tr><tr><td>0</td><td>Turns off</td></tr><tr><td>1</td><td>enable backlash compensation</td></tr><tr><td>2</td><td>Slip correction</td></tr></table>

ReverseTime: Specified Reverse Time, 0 \~ 65535, unit 1.6 us

ForwardTime: Specified Forward Time, 0 \~ 65535, unit 1.6 us

FA\_Speed: fa speed (unit: pulse/sec)

# 6.21 Speed Profile Calculation

# @ Name

```txt
_8102_get_tr_move_profile - Get the relative trapezoidal speed profile
_8102_get_ta_move_profile - Get the absolute trapezoidal speed profile
_8102_get_sr_move_profile - Get the relative S-curve speed profile
_8102_get_sa_move_profile - Get the absolute S-curve speed profile
```

# @ Description

\_8102\_get\_tr\_move\_profile:

This function is used to get the relative trapezoidal speed profiles. By this function, user can get the actual speed profile before running.

\_8102\_get\_ta\_move\_profile:

This function is used to get the absolute trapezoidal speed profiles. By this function, user can get the actual speed profile before running.

\_8102\_get\_sr\_move\_profile:

This function is used to get the relative S-curve speed profiles. By this function, user can get the actual speed profile before running.

\_8102\_get\_sa\_move\_profile:

This function is used to get the absolute S-curve speed profiles. By this function user can get the actual speed profile before running.

# @ Syntax

# C/C++(Windows 2000/XP/7)

```txt
I16 _8102_get_tr_move_profile(I16 AxisNo, F64 Dist, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64 *pStrVel, F64 *pMaxVel, F64 *pTacc, F64 *pTdec, F64 *pTconst);
I16 _8102_get_ta_move_profile(I16 AxisNo, F64 Pos, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64 *pStrVel, F64 *pMaxVel, F64 *pTacc, F64 *pTdec, F64 *pTconst);
I16 _8102_get_sr_move_profile(I16 AxisNo, F64 Dist, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64 SVacc, F64 SVdec, F64 *pStrVel, F64 *pMaxVel, F64 *pTacc, F64 *pTdec, F64 *pSVacc, F64 *pSVdec, F64 *pTconst);
I16 _8102_get_sa_move_profile(I16 AxisNo, F64 Pos, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64 SVacc, F64 SVdec, F64 *pStrVel, F64 *pMaxVel, F64 *pTacc, F64 *pTdec, F64 *pSVacc, F64 *pSVdec, F64 *pTconst);
```

# Visual Basic (Windows 2000/XP/7)

```csv
B_8102_get_tr_move_profile(ByVal AxisNo As Integer, ByVal Dist As Double, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double, ByRef pStrVel As Double, ByRef pMaxVel As Double, ByRef pTacc As Double, ByRef pTdec As Double, ByRef pTconst As Double) As Integer
B_8102_get_ta_move_profile(ByVal AxisNo As Integer, ByVal Pos As Double, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double, ByRef pStrVel As Double, ByRef pMaxVel As Double, ByRef pTacc As Double, ByRef pTdec As Double, ByRef pTconst As Double) As Integer
B_8102_get_sr_move_profile(ByVal AxisNo As Integer, ByVal Dist As Double, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal
```

Tacc As Double, ByVal Tdec As Double, ByVal SVacc As Double, ByVal SVdec As Double, ByVal pStrVel As Double, ByVal pMaxVel As Double, ByVal pTacc As Double, ByVal pTdec As Double, ByVal pSVacc As Double, ByVal pSVdec As Double, ByVal pTconst As Double) As Integer
B\_8102\_get\_sa\_move\_profile(ByVal AxisNo As Integer, ByVal Pos As Double, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As Double, ByVal Tdec As Double, ByVal SVacc As Double, ByVal SVdec As Double, ByVal pStrVel As Double, ByVal pMaxVel As Double, ByVal pTacc As Double, ByVal pTdec As Double, ByVal pSVacc As Double, ByVal pSVdec As Double, ByVal pTconst As Double) As Integer

# @ Argument

AxisNo: Axis number of Target Axis.

<table><tr><td>card_id</td><td>Physical axis</td><td>AxisNo</td></tr><tr><td rowspan="2">0</td><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr><tr><td rowspan="2">1</td><td>0</td><td>2</td></tr><tr><td>1</td><td>3</td></tr><tr><td rowspan="2">2</td><td>0</td><td>4</td></tr><tr><td>1</td><td>...</td></tr></table>

Dist: Specified relative distance (unit: pulse)

Pos: Specified absolute position (unit: pulse)

StrVel: Starting velocity (unit: pulse/sec)

MaxVel: Maximum velocity (unit: pulse/sec)

Tacc: time for acceleration (unit: sec)

Tdec: time for deceleration (unit: sec)

SVacc: S-curve region during acceleration (unit: pulse/sec)

Note: SVacc = 0, for pure S-Curve. For more details, section

# 4.2.4

SVdec: S-curve region during deceleration (unit: pulse/sec)

Note: SVdec = 0, for pure S-Curve. For more details, section 4.2.4

\*pStrVel: Starting velocity by calculation

\*pMaxVel: Maximum velocity by calculation

\*pTacc: Acceleration time by calculation

\*pTdec: Deceleration time by calculation

\*pSVacc: S-curve region during acceleration by calculation

\*pSVdec: S-curve region during deceleration by calculation

\*pTconst: constant speed time(maximum speed)

# 6.22 Return Code

The return error code is defined in "8102\_err.h". The meaning is described in following table.

<table><tr><td>Code</td><td>Meaning</td></tr><tr><td>0</td><td>No error</td></tr><tr><td>-10000</td><td>Error Card number</td></tr><tr><td>-10001</td><td>Error operation system version</td></tr><tr><td>-10002</td><td>Error card's ID conflict</td></tr><tr><td>-10200</td><td>Error other process exist</td></tr><tr><td>-10201</td><td>Error card not found</td></tr><tr><td>-10202</td><td>Error Open driver failed</td></tr><tr><td>-10203</td><td>Error ID mapping failed</td></tr><tr><td>-10204</td><td>Error trigger channel</td></tr><tr><td>-10205</td><td>Error trigger type</td></tr><tr><td>-10206</td><td>Error event already enabled</td></tr><tr><td>-10207</td><td>Error event not enable yet</td></tr><tr><td>-10208</td><td>Error on board FIFO full</td></tr><tr><td>-10209</td><td>Error unknown command type</td></tr><tr><td>-10210</td><td>Error unknown chip type</td></tr><tr><td>-10211</td><td>Error card not initial</td></tr><tr><td>-10212</td><td>Error position out of range</td></tr><tr><td>-10213</td><td>Error motion busy</td></tr><tr><td>-10214</td><td>Error speed error</td></tr><tr><td>-10215</td><td>Error slow down point</td></tr><tr><td>-10216</td><td>Error axis range error</td></tr><tr><td>-10217</td><td>Error compare parameter error</td></tr><tr><td>-10218</td><td>Error compare method</td></tr><tr><td>-10219</td><td>Error axis already stop</td></tr><tr><td>-10220</td><td>Error axis INT wait failed</td></tr><tr><td>-10221</td><td>Error user code write failed</td></tr><tr><td>-10222</td><td>Error array size exceed</td></tr><tr><td>-10223</td><td>Error factor number</td></tr><tr><td>-10224</td><td>Error enable range</td></tr><tr><td>-10225</td><td>Error auto accelerate time</td></tr><tr><td>-10226</td><td>Error dwell time</td></tr><tr><td>-10227</td><td>Error dwell distance</td></tr><tr><td>-10228</td><td>Error new position</td></tr><tr><td>-10229</td><td>Error motion not in running</td></tr><tr><td>-10230</td><td>Error velocity change time</td></tr><tr><td>-10231</td><td>Error speed target</td></tr><tr><td>-10232</td><td>Error velocity percent</td></tr><tr><td>-10233</td><td>Error postion change backward</td></tr><tr><td>-10234</td><td>Error counter number</td></tr></table>

This page intentionally left blank.

# 7 Connection Example

This chapter shows some connection examples between the PCI-8102 and servo drivers and stepping drivers.

# 7.1 General Description of Wiring

Main connection between the PCI-8102 and the pulse input servo driver or stepping driver. The following figure illustrates how to integrate the PCI-8102 and DIN-68M-J3A

![**Labeled Blocks:**\n*   Mitsubishi J3A\n*   PCI-8102\n*   MRJ3CN1 Cable\n*   X-Y Table\n*   DIN-68M-J3A\n*   MEL\n*   ORG\n*   PEL\n\n**Connections:**\n*   A red arrow points from the **MRJ3CN1 Cable** to the **Mitsubishi J3A** unit.\n*   A red arrow points from the **MRJ3CN1 Cable** to the **DIN-68M-J3A** board.\n*   A red arrow points from the **DIN-68M-J3A** board to the **PCI-8102** board.\n*   A red arrow points downwards from the **PCI-8102** board to a white rectangular device.\n*   A dashed black line connects the **DIN-68M-J3A** board to the lights labeled **MEL**, **ORG**, and **PEL** beneath the **X-Y Table**.](.pci-8102-50-11136-1020-300-en/f17ac24e4d3866eeccf105dd8a6d3f0e6d9b1460c469c8b849f6dc101ae90358.jpg)

# 7.2 Wiring with DIN-68M-J3A

Notice: The DIN-68M-J3A is used for wiring between Mitsubishi J3A series servo drivers / stepper with pulse trains input driver and ADLINK cPCI-8168, PCI-8102 motion controller card ONLY. Never use this terminal board with any other servo driver or cards.

![CN1F1, CN1F2:\nTo Mitsubishi eno J3A\namplifier\nConnect to motion\ncontroller\n72\nIOIF2:\nMulti-purpose I/O\nPWC1:\n24Vdc input\nSJ2:\nTo stepper amplifier\nFuse\nSJ1:\nTo stepper amplifier\nIOIF1:\nMulti-purpose I/O](.pci-8102-50-11136-1020-300-en/8484ab66540338860a82ea260366dcedf914b6840b80b695049acd13986aab91.jpg)

# Notes:

1. Servo & Stepper: The DIN-68M-J3A provides 2 connection methods for each axis: CN1F1 & CN1F2 connectors for Mitsubishi J3A series servo drivers, and a SJ connector for stepping drivers. DO NOT use both connectors at the same time.
2. CN1F1 or CN1F2 cables: One pin-to-pin 50-PIN cables are required for connection between the CF1F1(CN1F2) and the Mitsubishi J3A driver. It is available from ADLINK, or users may contact the local dealer or distributor to get cable information.
3. JP1: Fuse selection. Pin 1-2 short means the board is protected by fuse. Pin 2-3 short means the board is not protected by fuse.
4. Fuse: The fuse protects from damaging internal circuit. This fuse can sustain 2A current. Users can buy it in local area when the fuse is burnt out.

# 7.2.1 Pin Assignments:

# CN1F1/CN1F2 (Mitsubishi AC Servo Driver J3A)

<table><tr><td>No.</td><td>Name</td><td>I/O</td><td>Function</td><td>No.</td><td>Name</td><td>I/O</td><td>Function</td></tr><tr><td>1</td><td>P15R</td><td>--</td><td>15VDC power supply</td><td>2</td><td>VLA</td><td>O</td><td>Analog speed limit</td></tr><tr><td>3</td><td>EXGND</td><td>--</td><td>Ext. power ground</td><td>4</td><td>EA+</td><td>I</td><td>Encoder A-phase (+)</td></tr><tr><td>5</td><td>EA-</td><td>I</td><td>Encoder A-phase (-)</td><td>6</td><td>EB+</td><td>I</td><td>Encoder B-phase (+)</td></tr><tr><td>7</td><td>EB-</td><td>I</td><td>Encoder B-phase (-)</td><td>8</td><td>EZ+</td><td>I</td><td>Encoder Z-phase (+)</td></tr><tr><td>9</td><td>EZ-</td><td>I</td><td>Encoder Z-phase (-)</td><td>10</td><td>OUT+</td><td>O</td><td>Pulse signal (+)</td></tr><tr><td>11</td><td>OUT-</td><td>O</td><td>Pulse signal (-)</td><td>12</td><td>(Empty)</td><td>N.C.</td><td></td></tr><tr><td>13</td><td>(Empty)</td><td>N.C.</td><td></td><td>14</td><td>(Empty)</td><td>N.C.</td><td></td></tr><tr><td>15</td><td>SERVO ON</td><td>O</td><td>Servo On signal</td><td>16</td><td>SP2</td><td>O</td><td>Speed selection 2</td></tr><tr><td>17</td><td>ABSM</td><td>O</td><td>ABS transfer</td><td>18</td><td>ABSR</td><td>O</td><td>ABS request</td></tr><tr><td>19</td><td>RES</td><td>O</td><td>Reset</td><td>20</td><td>EX+24V</td><td>I</td><td>Ext. power supply, +24V</td></tr><tr><td>21</td><td>EX+24V</td><td>I</td><td>Ext. power supply, +24V</td><td>22</td><td>ABSB0</td><td>I</td><td>ABS transmission data bit 0</td></tr><tr><td>23</td><td>ZSP</td><td>I</td><td>Zero speed</td><td>24</td><td>INP</td><td>I</td><td>Servo In Position signal</td></tr><tr><td>25</td><td>TLC</td><td>I</td><td>Limiting torque</td><td>26</td><td>(Empty)</td><td>N.C.</td><td></td></tr><tr><td>27</td><td>TC</td><td>O</td><td>Analog torque command</td><td>28</td><td>EXGND</td><td>--</td><td>Ext. power ground</td></tr><tr><td>29</td><td>(Empty)</td><td>N.C.</td><td></td><td>30</td><td>(Empty)</td><td>N.C.</td><td></td></tr><tr><td>31</td><td>(Empty)</td><td>N.C.</td><td></td><td>32</td><td>(Empty)</td><td>N.C.</td><td></td></tr><tr><td>33</td><td>(Empty)</td><td>N.C.</td><td></td><td>34</td><td>EXGND</td><td>--</td><td>Ext. power ground</td></tr><tr><td>35</td><td>DIR+</td><td>O</td><td>Direction Signal (+)</td><td>36</td><td>DIR-</td><td>O</td><td>Direction Signal (-)</td></tr><tr><td>37</td><td>(Empty)</td><td>N.C.</td><td></td><td>38</td><td>(Empty)</td><td>N.C.</td><td></td></tr><tr><td>39</td><td>(Empty)</td><td>N.C.</td><td></td><td>40</td><td>(Empty)</td><td>N.C.</td><td></td></tr><tr><td rowspan="2">41</td><td>ERC</td><td>O</td><td>Dev. ctr, clr. Signal</td><td rowspan="2">42</td><td rowspan="2">EMG</td><td rowspan="2">I</td><td rowspan="2">External EMG Signal</td></tr><tr><td>SP1</td><td>O</td><td>Speed selection 1</td></tr><tr><td>43</td><td>EXGND</td><td>--</td><td>Ext. power ground</td><td>44</td><td>EXGND</td><td>--</td><td>Ext. power ground</td></tr><tr><td>45</td><td>LOP</td><td>O</td><td>Control change</td><td>46</td><td>EXGND</td><td>--</td><td>Ext. power ground</td></tr><tr><td>47</td><td>EXGND</td><td>--</td><td>Ext. power ground</td><td>48</td><td>ALM</td><td>I</td><td>Servo Alarm</td></tr><tr><td>49</td><td>RDY</td><td>I</td><td>Servo Ready</td><td>50</td><td>(Empty)</td><td>N.C.</td><td></td></tr></table>

IOIF1/IOIF2 (External Motion Input Signal Interface)

<table><tr><td>No.</td><td>Name</td><td>I/O</td><td>Function</td><td>No.</td><td>Name</td><td>I/O</td><td>Function</td></tr><tr><td>1</td><td>EXG ND</td><td>--</td><td>Ext. power ground</td><td>19</td><td>EX+24 V</td><td>I</td><td>Ext. power supply, +24V</td></tr><tr><td>2</td><td>EXG ND</td><td>--</td><td>Ext. power ground</td><td>20</td><td>EX+24 V</td><td>I</td><td>Ext. power supply, +24V</td></tr><tr><td>3</td><td>EXG ND</td><td>--</td><td>Ext. power ground</td><td>21</td><td>EX+24 V</td><td>I</td><td>Ext. power supply, +24V</td></tr><tr><td>4</td><td>EXG ND</td><td>--</td><td>Ext. power ground</td><td>22</td><td>EX+24 V</td><td>I</td><td>Ext. power supply, +24V</td></tr><tr><td>5</td><td>EXG ND</td><td>--</td><td>Ext. power ground</td><td>23</td><td>EX+24 V</td><td>I</td><td>Ext. power supply, +24V</td></tr><tr><td rowspan="2">6</td><td>SD</td><td>I</td><td>Slow Down signal</td><td rowspan="2">24</td><td rowspan="2">MEL</td><td rowspan="2">I</td><td rowspan="2">Negative Limit (-)</td></tr><tr><td>EXG ND</td><td>--</td><td>Ext. power ground</td></tr><tr><td>7</td><td>CMP</td><td>O</td><td>Compare Trigger Output</td><td rowspan="2">25</td><td rowspan="2">PEL</td><td rowspan="2">I</td><td rowspan="2">Positive Limit (+)</td></tr><tr><td></td><td>EXG ND</td><td>--</td><td>Ext. power ground</td></tr><tr><td>8</td><td>RES</td><td>O</td><td>Reset</td><td>26</td><td>ORG</td><td>I</td><td>Origin signal</td></tr><tr><td>9</td><td>DOU T</td><td>O</td><td>Digital Output</td><td>27</td><td>DO_C OM</td><td>I</td><td>Digital Output COM</td></tr><tr><td rowspan="2">10</td><td>HSO UT</td><td rowspan="2">O</td><td>High Speed DO</td><td rowspan="2">28</td><td>HO_C OM</td><td>I</td><td>Common of HSOUT</td></tr><tr><td>AO</td><td>Analog Output</td><td>AGND</td><td>--</td><td>Analog Ground</td></tr><tr><td>11</td><td>DIN</td><td>I</td><td>Digital Input</td><td>29</td><td>DI_COM</td><td>I</td><td>Digital Input COM</td></tr><tr><td rowspan="2">12</td><td rowspan="2">EMG</td><td rowspan="2">I</td><td rowspan="2">External EMG Signal</td><td rowspan="2">30</td><td>HSIN</td><td>I</td><td>High Speed DI</td></tr><tr><td>AIN</td><td></td><td>Analog Input</td></tr><tr><td>13</td><td>ABSB 0</td><td>I</td><td>ABS transmission data bit 0</td><td>31</td><td>P15R</td><td>--</td><td>15VDC power supply</td></tr><tr><td rowspan="2">14</td><td rowspan="2">ABS M</td><td rowspan="2">O</td><td rowspan="2">ABS transfer</td><td rowspan="2">32</td><td>ERC</td><td>O</td><td>Dev. ctr, clr. Signal</td></tr><tr><td>SP1</td><td>O</td><td>Speed selection 1</td></tr><tr><td>15</td><td>VLA</td><td>O</td><td>Analog speed limit</td><td>33</td><td>SP2</td><td>O</td><td>Speed selection 2</td></tr><tr><td>16</td><td>ABSR</td><td>O</td><td>ABS request</td><td>34</td><td>TC</td><td>O</td><td>Analog torque command</td></tr><tr><td>17</td><td>ZSP</td><td>I</td><td>Zero speed</td><td>35</td><td>TLC</td><td>I</td><td>Limiting torque</td></tr><tr><td>18</td><td>EXG ND</td><td>--</td><td>Ext. power ground</td><td>36</td><td>LOP</td><td>O</td><td>Control change</td></tr></table>

# SJ1/SJ2 (Stepping Motor Control Interface)

<table><tr><td>No.</td><td>Name</td><td>I/O</td><td>Function</td></tr><tr><td>1</td><td>OUT+</td><td>O</td><td>Pulse Signal (+)</td></tr><tr><td>2</td><td>OUT-</td><td>O</td><td>Pulse Signal (-)</td></tr><tr><td>3</td><td>DIR+</td><td>O</td><td>Direction Signal (+)</td></tr><tr><td>4</td><td>DIR-</td><td>O</td><td>Direction Signal (-)</td></tr><tr><td>5</td><td>EZ+</td><td>I</td><td>Index Signal</td></tr><tr><td>6</td><td>ALM</td><td>I</td><td>Servo Alarm</td></tr><tr><td>7</td><td>+5V</td><td>O</td><td>Voltage output</td></tr><tr><td>8</td><td>Servo ON</td><td>O</td><td>Servo On</td></tr><tr><td>9</td><td>+5V</td><td>O</td><td>Voltage output</td></tr><tr><td>10</td><td>EXGND</td><td>--</td><td>Ext. power ground</td></tr></table>

# PWC1 (External +24VDC Input Connector)

<table><tr><td>No.</td><td>Name</td><td>I/O</td><td>Function</td></tr><tr><td>1</td><td>EXGND</td><td>--</td><td>External Power Supply Ground</td></tr><tr><td>2</td><td>EX+24V</td><td>I</td><td>External Power Supply Input (+24V DC ± 5%)</td></tr></table>

# JP1 (Setting for fuse)

![The image displays a schematic symbol. At the top, the text 'JP1' is visible. Below this, to the left of a rectangular outline, the numbers '1', '2', and '3' are stacked vertically. Inside the rectangular outline, aligned with each number, are specific shapes: a black rectangular shape next to '1', a black rectangular shape next to '2', and a small circle next to '3'.](.pci-8102-50-11136-1020-300-en/3ffb8baad09e32fc40a71dc9c4e63a58a1f09fcde54261877b9fa04f0a571e3b.jpg)
With fuse

![The image displays a schematic symbol. At the top right, the text 'JP1' is visible. To the left of the symbol, the numbers '1', '2', and '3' are stacked vertically. The symbol itself consists of a black rectangular outline. Inside, there is a smaller white square at the top containing a black dot, and a larger white rectangle below it containing a black dot.](.pci-8102-50-11136-1020-300-en/90b1a8a308fad0274730b6201cd27046abde0cdbbcfef4f99144b5789f83fc52.jpg)
Without fuse(default)

# 7.2.2 Signal Connections of Interface Circuit

1. PEL, MEL, ORG, INP, ALM, RDY

![4.7K\nEx+24V\nIr=6mA Max.\nEXGND\nSwitch](.pci-8102-50-11136-1020-300-en/1cb28c7c8bd7e8840cee0fc3f2081b6b57e59376106a6eb1332787a1ee147c18.jpg)

2. CMP

![VCC\nPulse\nEX+5V\n1k\nOhm\nCMP\nEXGND](.pci-8102-50-11136-1020-300-en/8f0ace054de5007adbe66240bf60c9bb287ecce2f8ce868143cd5ead45d8b52e.jpg)

3. ERC, SVON

![35V 50mA Maximum\nERC\nSVON\nEXGND](.pci-8102-50-11136-1020-300-en/519865086afeac86b5a44e055832d56e3edbe666a6998ad26c3ce0cc0a730f14.jpg)

4. EA+, EB+, EZ+, EA-, EB-, EZ-

![EA+, EB+\nEZ+\nEA-, EB-\nEZ-](.pci-8102-50-11136-1020-300-en/0934f93212e8753a8831e76fcc0235d1e7a30082e7f41a2d2da5775dd6539a5c.jpg)

# 5. DIN, DI\_COM

![Photocoupler\nIsolation\n4.7K ohm 1/2W\nDI COM+\nDGND\nInside cPCI-8168\nDI\nSwitch\nEXGND](.pci-8102-50-11136-1020-300-en/7d3e658bcdc94b0cd78d34926f1838e551024462474889fa6ed9939e5ced5658.jpg)

# 6. DOUT, DO\_COM

![The diagram illustrates a circuit with an input isolation stage and an output stage contained within a specific component.\n\n**Labeled Blocks and Terminals:**\n*   **DOx**: An input arrow pointing into the first block.\n*   **PhotoCouple Isolation**: A rectangular block receiving the DOx input.\n*   **DGND**: A ground symbol connected to the bottom of the isolation block.\n*   **TD6203**: A label for a dashed box enclosing the transistor and diode.\n*   **EXGND**: A ground symbol connected to the transistor emitter.\n*   **DOOut**: An output terminal connected to the transistor collector node.\n*   **DO COM+**: A terminal connected to the top of the diode.\n\n**Connections:**\n1.  **DOx** connects to the left side of the **PhotoCouple Isolation** block.\n2.  The bottom of the **PhotoCouple Isolation** block connects to **DGND**.\n3.  A line exits the right side of the **PhotoCouple Isolation** block and connects to the base of an NPN transistor.\n4.  The transistor and a diode are enclosed within the dashed box labeled **TD6203**.\n5.  The emitter of the transistor points downward and connects to **EXGND**.\n6.  The collector of the transistor connects upward to a junction point.\n7.  From this junction point, a line extends to the right to the terminal **DOOut**.\n8.  From the same junction point, a line extends upward to the anode (bottom) of a diode.\n9.  The cathode (top) of the diode connects to a horizontal line leading to the terminal **DO COM+**.](.pci-8102-50-11136-1020-300-en/32285f7b27d2ff47c960494db9374aa15da17afa24e752ad944d46c4a233b681.jpg)

# 7. DIR+, OUT+, DIR-, OUT-

![VCC\nR\nOUT\nDIR\nOUT+, DIR+\nOUT-, DIR-](.pci-8102-50-11136-1020-300-en/f8edbe7d0a8d774d41ae048c41cec655fe78b434a02628a41a091cde4eda0553.jpg)

# 8. HSIN

![HP0631\nPhotocoupler\nIsolation\nVPP =5V\n470 ohm\nDI\nDGND\nInside cPCI-8168\nHSIN\nSwitch\nEXGND](.pci-8102-50-11136-1020-300-en/30f8d63dc4f8a62e0e68d7d2c225c973a79e3a57e0da7bc21c27ac69050e7dd2.jpg)

# 9. HSOUT, HO\_COM

![This page intentionally left blank.\nHP0631\nPhotoCouple\nIsolation\nRD051L\nIRF7303\nDGND\nEXGND\nHO_COM\nHSOUT](.pci-8102-50-11136-1020-300-en/6615b36a37037af79ee15408ecd00a5a1c7152e3fc0fafdba8a9fc55681dd3e0.jpg)

# 7.2.3 Mechanical Dimensions:

NOTE: All dimensions are in mm.

![72\n100-](.pci-8102-50-11136-1020-300-en/cc8946697c51a6bb32119264defbf85f9f916e4f67c1fd5f8b1c32bd54071226.jpg)

This page intentionally left blank.

# Appendix

# 8.1 Color code of Mitsubishi servo J3A cable

Note: (MRJ3CN1 xM-OPEN)

![The image displays a technical diagram of a connector and a corresponding pin assignment table.\n\n**Diagrams:**\n*   **Top Left:** A front view of a rectangular connector showing pin numbers 1, 26, 25, and 50 at the corners.\n*   **Top Right:** A side profile view of the connector block with a cable extending to the right.\n\n**Table:**\nThe table is titled 'PIN ASSIGNMENT'. It lists pin numbers 1 through 50 and their corresponding wire colors. Below the header 'CNT' are the Chinese characters '电缆'.\n\n**Row 1 (Colors):**\n1: BROWN\n2: BROWN/WHITE\n3: RED\n4: RED/WHITE\n5: RED/BLUE\n6: ORANGE\n7: ORANGE/WHITE\n8: YELLOW\n9: YELLOW/RED\n10: GREEN\n11: GREEN/WHITE\n12: BLUE\n13: PURPLE\n14: PURPLE/WHITE\n15: GRAY\n16: GRAY/RED\n17: WHITE\n18: PINK\n19: PINK/RED\n20: PINK/BLUE\n21: LIGHT GREEN\n22: LIGHT GREEN/RED\n23: LIGHT BLUE\n24: LIGHT BLUE/RED\n25: BLACK\n26: BROWN/BLACK\n27: BROWN/GREEN\n28: RED/BLACK\n29: RED/GREEN\n30: ORANGE/BLUE\n31: ORANGE/GREEN\n32: YELLOW/BLACK\n33: YELLOW/GREEN\n34: GREEN/BLACK\n35: GREEN/BLUE\n36: BLUE/BLACK\n37: BLUE/GREEN\n38: PURPLE/BLACK\n39: PURPLE/RED\n40: PINK/BLACK\n41: PINK/GREEN\n42: LIGHT GREEN/BLACK\n43: LIGHT GREEN/BLUE\n44: LIGHT GREEN/GREEN\n45: LIGHT GREEN/RED\n46: LIGHT BLUE/BLACK\n47: LIGHT BLUE/BLUE\n48: LIGHT BLUE/GREEN\n49: LIGHT BLUE/RED\n50: WHITE/RED](.pci-8102-50-11136-1020-300-en/bcb964b46dd59b4b682771440f175756fc9ae1b99f349388cf56cc5fd7d41a7a.jpg)

This page intentionally left blank.

# Important Safety Instructions

For user safety, please read and follow all instructions, WARNINGS, CAUTIONS, and NOTES marked in this manual and on the associated equipment before handling/operating the equipment.

▶ Read these safety instructions carefully.
- Keep this user’s manual for future reference.
▶ Read the specifications section of this manual for detailed information on the operating environment of this equipment.
- When installing/mounting or uninstalling/removing equipment:

▷ Turn off power and unplug any power cords/cables.

▶ To avoid electrical shock and/or damage to equipment:

▷ Keep equipment away from water or liquid sources;
▷ Keep equipment away from high heat or high humidity;
▷ Keep equipment properly ventilated (do not block or cover ventilation openings);

▶ Make sure to use recommended voltage and power source settings;

▶ Always install and operate equipment near an easily accessible electrical socket-outlet;

▷ Secure the power cord (do not place any object on/over the power cord);

▶ Only install/attach and operate equipment on stable surfaces and/or recommended mountings; and,

▷ If the equipment will not be used for long periods of time, turn off and unplug the equipment from its power source.

▶ Never attempt to fix the equipment. Equipment should only be serviced by qualified personnel.

A Lithium-type battery may be provided for uninterrupted, backup or emergency power.

![The image displays a standard warning symbol. It consists of a red triangle with a white exclamation point in the center. Below the triangle, the word 'WARNING:' is printed in black, uppercase letters.](.pci-8102-50-11136-1020-300-en/48781a03dda4b89618ee7e6610b018e2baecf046e4009e1178583f742a7f09c3.jpg)

Risk of explosion if battery is replaced with one of an incorrect type. Dispose of used batteries appropriately.

▶ Equipment must be serviced by authorized technicians when:

▷ The power cord or plug is damaged;
▷ Liquid has penetrated the equipment;
▷ It has been exposed to high humidity/moisture;
$\triangleright$ It is not functioning or does not function according to the user's manual;
▷ It has been dropped and/or damaged; and/or,
▷ It has an obvious sign of breakage.

# Getting Service

Contact us should you require any service or assistance.

# ADLINK Technology, Inc.

Address: 9F, No.166 Jian Yi Road, Zhonghe District
New Taipei City 235, Taiwan
新北市中和區建一路 166 號 9 樓

Tel: +886-2-8226-5877

Fax: +886-2-8226-5717

Email: service@adlinktech.com

# Ampro ADLINK Technology, Inc.

Address: 5215 Hellyer Avenue, #110, San Jose, CA 95138, USA

Tel: +1-408-360-0200

Toll Free: +1-800-966-5200 (USA only)

Fax: +1-408-360-0222

Email: info@adlinktech.com

# ADLINK Technology (China) Co., Ltd.

Address: 上海市浦东新区张江高科技园区芳春路 300 号 (201203)
300 Fang Chun Rd., Zhangjiang Hi-Tech Park,
Pudong New Area, Shanghai, 201203 China

Tel: +86-21-5132-8988

Fax: +86-21-5132-3588

Email: market@adlinktech.com

# ADLINK Technology Beijing

Address: 北京市海淀区上地东路 1 号盈创动力大厦 E 座 801 室(100085)
Rm. 801, Power Creative E, No. 1, B/D
Shang Di East Rd., Beijing, 100085 China

Tel: +86-10-5885-8666

Fax: +86-10-5885-8625

Email: market@adlinktech.com

# ADLINK Technology Shenzhen

Address: 深圳市南山区科技园南区高新南七道 数字技术园
A1 栋 2 楼 C 区 (518057)
2F, C Block, Bldg. A1, Cyber-Tech Zone, Gao Xin Ave. Sec. 7,
High-Tech Industrial Park S., Shenzhen, 518054 China

Tel: +86-755-2643-4858

Fax: +86-755-2664-6353

Email: market@adlinktech.com

# ADLINK Technology, Inc. (French Liaison Office)

Address: 15 rue Emile Baudot, 91300 Massy CEDEX, France

Tel: +33 (0) 1 60 12 35 66

Fax: +33 (0) 1 60 12 35 66

Email: france@adlinktech.com

# ADLINK Technology Japan Corporation

Address: 〒101-0045 東京都千代田区神田鍛冶町 3-7-4
神田 374 ビル 4F
KANDA374 Bldg. 4F, 3-7-4 Kanda Kajicho,
Chiyoda-ku, Tokyo 101-0045, Japan

Tel: +81-3-4455-3722

Fax: +81-3-5209-6013

Email: japan@adlinktech.com

# ADLINK Technology, Inc. (Korean Liaison Office)

Address: 서울시 서초구 서초동 1675-12 모인터빌딩 8 층 8F Mointer B/D,1675-12, Seocho-Dong, Seocho-Gu, Seoul 137-070, Korea

Tel: +82-2-2057-0565

Fax: +82-2-2057-0563

Email: korea@adlinktech.com

# ADLINK Technology Singapore Pte. Ltd.

Address: 84 Genting Lane #07-02A, Cityneon Design Centre, Singapore 349584

Tel: +65-6844-2261

Fax: +65-6844-2263

Email: singapore@adlinktech.com

# ADLINK Technology Singapore Pte. Ltd. (Indian Liaison Office)

Address: 1st Floor, #50-56 (Between 16th/17th Cross) Margosa Plaza, Margosa Main Road, Malleswaram, Bangalore-560055, India

Tel: +91-80-65605817, +91-80-42246107

Fax: +91-80-23464606

Email: india@adlinktech.com

# ADLINK Technology, Inc. (Israeli Liaison Office)

Address: 6 Hasadna St., Kfar Saba 44424, Israel

Tel: +972-9-7446541

Fax: +972-9-7446542

Email: israel@adlinktech.com
[🔗 Link to the original document](.pci-8102-50-11136-1020-300-en/pci-8102-50-11136-1020-300-en.pdf)
