Adlink PCI-8158 Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Hardware Adlink PCI-8158. ADLINK PCI-8158 User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir

Resumo do Conteúdo

Página 1 - User’s Manual

Advance Technologies; Automate the World.Manual Rev. 2.00Revision Date: August 5, 2006Part No: 50-11139-1000 PCI-8158High Density & Advanced 8-

Página 2

vi List of FiguresList of FiguresFigure 1-1: Block Diagram of the PCI-8158 ... 2Figure 1-2: Flow chart for building an

Página 3 - Getting Service from ADLINK

90 MotionCreatorPro5.3.4 Configuration Menu In this menu, you can configure ALM, INP, ERC, EL, ORG, andEZ.1. ALM Logic and Response mode: Select logi

Página 4

MotionCreatorPro 915. ORG Logic: Select the logic of the ORG signal. Therelated function call is _8158_set_home_config().6. EZ Logic: Select the logi

Página 5 - Table of Contents

92 MotionCreatorProIn this menu, you can configure LTC, SD, PCS, and Select_Input. 1. LTC Logic: Select the logic of the LTC signal. Therelated functi

Página 6

MotionCreatorPro 93function call is _8158_set_gpio_input_function.7. Buttons: Z Next Card: Change operating card.Z Next Axis: Change operating axis.

Página 7 - Table of Contents iii

94 MotionCreatorProIn this menu, you can configure pulse input/output and move ratioand INT factor. 1. Pulse Output Mode: Select the output mode of th

Página 8

MotionCreatorPro 955.3.5 Single Axis Operation MenuIn this menu, you can change the settings a selected axis, includ-ing velocity mode motion, preset

Página 9 - List of Tables

96 MotionCreatorPro_8158_get_target_pos().2. Position Reset: clicking this button will set all position-ing counters to a specified value. The related

Página 10 - List of Figures

MotionCreatorPro 977. Operation Mode: Select operation mode.Z Absolute Mode: “Position1” and “position2” will be used as absolution target positions

Página 11 - 1 Introduction

98 MotionCreatorProcheck box “ATU” is checked, it will execute auto homing when motion starts. Z ERC Output: Select if the ERC signal will be sent whe

Página 12 - 2Introduction

MotionCreatorPro 99position1<->position2). It is only effective when “RelativeMode” or “Absolute Mode” is selected.11. Vel. Profile: Select the

Página 13 - Introduction 3

Introduction 11 IntroductionThe PCI-8158 is an advanced & high-density 8-axis motion con-troller card with a PCI interface. It can generate high

Página 14 - 4Introduction

100 MotionCreatorPro14.Speed_Profile: Clicking this button will show the SpeedProfile.15.Digital I/O: Display and set Digital I/O. The related func-ti

Página 15 - 1.1 Features

MotionCreatorPro 101Right play button: Clicking this button will cause the 8158start to outlet pulses according to previous setting.Z In “Absolute Mo

Página 16 - 1.2 Specifications

102 MotionCreatorPro5.3.6 Two-Axis Operation Menu In this menu, users can change the settings two selected axis,including velocity mode motion, preset

Página 17 - Introduction 7

MotionCreatorPro 103Z Tacc: Set the acceleration time in units of second.Z Tdec: Set the deceleration time in units of second.Z Sacc: Set the S-curve

Página 18 - 1.4 Available Terminal Board

104 MotionCreatorPro10.Current Position:Z Command: displays the value of the command counter. The related function is _8158_get_position().11. Veloci

Página 19 - 2 Installation

MotionCreatorPro 1055.3.7 2D_Motion MenuPress 2-D button in operating window will enter this window. Thisis for 2-D motion test. It includes the foll

Página 20 - 2.2 PCI-8158 Outline Drawing

106 MotionCreatorProthe faster it runs. When you un-press the button, the axis will stop immediately. Z Incremental Jog: Incremental jog means that wh

Página 21 - 2.3.4 Troubleshooting

MotionCreatorPro 107target positions for motion when “Linear Interpolation Mode” is selected. “Dis EndPos” and “Dis Center” will be used as absolutio

Página 22 - 12 Installation

108 MotionCreatorPro9. Jog Command: Press one directional button to move.10.Velocity: The absolute value of velocity in units of PPS.The related funct

Página 23 - Installation 13

MotionCreatorPro 109After setting these parameters, you can enter the arc centerand degree in “Play Key Frame”. Click Run button to start cir-cular i

Página 24

2Introductionrecognize the card index if the entire control system is verylarge. 2. Emergency InputThe emergency input pin can let users wire the emer

Página 25

110 MotionCreatorProX Stop Button: Clicking this button will cause the 8158 to decelerate and stop. The deceleration time is defined in “Decel. Time.”

Página 26

MotionCreatorPro 1115.3.8 Help MenuIn this menu, users can Click Mouse Right Key to show Help Infor-mation.

Página 28 - 18 Installation

Function Library 1136 Function LibraryThis chapter describes the supporting software for the PCI-8158card. User can use these functions to develop pr

Página 29 - 3 Signal Connections

114 Function Library6.1 List of FunctionsSystem & Initialization Section 6.3Pulse Input/Output Configuration Section 6.4Velocity mode motion Secti

Página 30

Function Library 115Single Axis Position Mode Section 6.6Linear Interpolated Motion Section 6.7Function Name Description_8158_start_tr_move Begin a r

Página 31

116 Function Library_8158_start_tr_move_cdBegin a relative 2-axis linear interpolation for C & D, with trapezoidal profile_8158_start_ta_move_cdBe

Página 32

Function Library 117Circular Interpolation Motion Section 6.8Function Name Description_8158_start_tr_arc_xyBegin a t-curve relative circular interpol

Página 33

118 Function LibraryHome Return Mode Section 6.9Manual Pulse Motion Section 6.10Motion Status Section 6.11Motion Interface I/O Section 6.12_8158_start

Página 34

Function Library 119Interrupt Control Section 6.13Position Control and Counters Section 6.14_8158_set_alm Set ALM signal’s logic and operating mode_8

Página 35 - Signal Connections 25

Introduction 3MotionCreatorPro is a Windows-based application develop-ment software package included with the PCI-8158. Motion-CreatorPro is useful f

Página 36

120 Function LibraryPosition Compare and Latch Section 6.15Continuous Motion Section 6.16Multiple Axes Simultaneous Operation Section 6.17General-purp

Página 37 - 3.3 Origin Signal ORG

Function Library 121Soft Limit 6.19Backlash Compensation / Vibration Suppression 6.20Speed Profile Calculation 6.21Function Name Description_8158_dis

Página 38

122 Function Library6.2 C/C++ Programming LibraryThis section details all the functions. The function prototypes andsome common data types are declare

Página 39 - 3.5 In-position Signal INP

Function Library 1236.3 System & Initialization@ Name_8158_initial – Card initialization_8158_close – Card close_8158_get_version – Check hardwar

Página 40 - 3.6 Alarm Signal ALM

124 Function LibraryThis function is used to verify the security code which the userset by the function “_8158_set_security_key”.See also: _8158_set_s

Página 41

Function Library 125@ SyntaxC/C++(Windows 2000/XP)I16 _8158_initial(I16 *CardID_InBit, I16 Manual_ID);I16 _8158_close(void);I16 _8158_get_version(I16

Página 42

126 Function Library1: on board DIP switch (SW1).card_id: Specify the PCI-8158 card index. The card_id could bedecided by DIP switch (SW1) or depend o

Página 43

Function Library 1276.4 Pulse Input/Output Configuration@ Name_8158_set_pls_iptmode – Set the configuration for feedbackpulse input._8158_set_pls_out

Página 44

128 Function LibraryVisual Basic6 (Windows 2000/XP)B_8158_set_pls_iptmode(ByVal AxisNo As Integer, ByVal pls_iptmode As Integer, ByVal pls_logic As In

Página 45

Function Library 129pls_outmode: Setting of command pulse output mode. Src: Counter sourceValue Meaning0 External Feedback1 Command pulse

Página 46 - 4 PB+ 0-7 5 PB- 0-7

4IntroductionFigure 1-2 illustrates a flow chart of the recommended processin using this manual in developing an application. Refer to therelated chap

Página 47 - Signal Connections 37

130 Function Library6.5 Velocity mode motion@ Name_8158_tv_move – Accelerate an axis to a constant velocity withtrapezoidal profile_8158_sv_move – Acc

Página 48 - 38 Signal Connections

Function Library 131This function is used to decelerate an axis to stop with a trape-zoidal or S-curve profile. This function is also useful when apr

Página 49 - Signal Connections 39

132 Function LibraryVisual Basic6 (Windows 2000/XP)B_8158_tv_move(ByVal AxisNo As Integer, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc

Página 50 - 40 Signal Connections

Function Library 133NewVelPercent: The Percentage of maximum override speed(100% speed)Time: The duration time of current speed to override speed. Un

Página 51 - 4 Operation Theory

134 Function Library6.6 Single Axis Position Mode@ Name_8158_start_tr_move – Begin a relative trapezoidal profilemove_8158_start_ta_move – Begin an ab

Página 52 - 42 Operation Theory

Function Library 135ezoidal profile. The acceleration (Tacc) and deceleration (Tdec)time is specified independently. This command does not let thepro

Página 53 - Operation Theory 43

136 Function LibraryI16 _8158_start_sr_move(I16 AxisNo, F64 Dist, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64 SVacc, F64 SVdec);I16 _8158_start_sa

Página 54

Function Library 137@ ArgumentAxisNo: Axis number designated to move or change position. Dist: Specified relative distance to move (unit: pulse)Pos:

Página 55 - 4.2 Motion Control Modes

138 Function Library6.7 Linear Interpolated Motion@ Name_8158_start_tr_move_xy – Begin a relative 2-axis linearinterpolation for X & Y axis with t

Página 56 - 46 Operation Theory

Function Library 139_8158_start_sa_move_cd – Begin an absolute 2-axis linearinterpolation for C & D axis with S-curve profile_8158_start_tr_line2

Página 57 - Operation Theory 47

Introduction 51.1 Features The following list summarizes the main features of the PCI-8158 motion control system.X 32-bit PCI bus Plug and Play (Univ

Página 58 - 48 Operation Theory

140 Function Library Note: The target two axes of linear interpolation are the 2 of former 0-3 axes or later 4-7 axes on a card. It can not cross ove

Página 59 - 4.2.5 Velocity mode

Function Library 141Note: The target 4 axes of linear interpolation are the 4 of former 4 axes or later 4 axes on a card. It can not cross over thos

Página 60 - 4.2.6 One axis position mode

142 Function LibraryI16 _8158_start_sr_move_zu(I16 Card_id, F64 DistX, F64 DistY, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64 SVacc, F64 SVdec);I1

Página 61 - Operation Theory 51

Function Library 143I16 _8158_start_tr_line3(I16 *AxisArray, F64 *DistArray, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec);I16 _8158_start_ta_line3(I16

Página 62 - ∆X: ∆Y), respectively

144 Function LibraryB_8158_start_sa_move_xy(ByVal Card_id As Integer, ByVal PosX As Double, ByVal PosY As Double, ByVal StrVel As Double, ByVal MaxVel

Página 63 - 4.2.9 Continuous motion

Function Library 145As Double, ByVal SVacc As Double, ByVal SVdec As Double) As IntegerB_8158_start_sa_move_ab(ByVal Card_id As Integer, ByVal PosX A

Página 64 - 54 Operation Theory

146 Function LibraryB_8158_start_sa_line2(AxisArray() As Integer, PosArray() As Double, ByVal StrVel As Double, ByVal MaxVel As Double, ByVal Tacc As

Página 65 - 4.2.10 Home Return Mode

Function Library 147@ Argumentcard_id: Specify the PCI-8158 card index. The card_id could bedecided by DIP switch (SW1) or depend on slot sequence. P

Página 66 - 56 Operation Theory

148 Function LibraryExample: I16 AxisArray[2] = {0, 3}; //axis 0, & axis 3 (correct)I16 AxisArray[3] = {0,2, 3}; //axis 0, 2 & 3 (correct)I

Página 67 - Operation Theory 57

Function Library 1496.8 Circular Interpolation Motion@ Name_8158_start_tr_arc_xy – Begin a T-curve relative circularinterpolation for X & Y axis_

Página 68 - 58 Operation Theory

6Introductionoperation in one systemX Compact PCB designX Includes MotionCreatorPro, a Microsoft Windows-based application development softwareX PCI-8

Página 69 - Operation Theory 59

150 Function Library_8158_start_sa_arc_cd –Begin a S-curve absolute circularinterpolation for C & D axis_8158_start_tr_arc2 – Begin a T-curve rela

Página 70 - 60 Operation Theory

Function Library 151Note: The target two axes of linear interpolation are the 2 of former 4 axes (0-3) or later 4 axes (4-7) on a card. It can not c

Página 71 - Operation Theory 61

152 Function LibraryI16 _8158_start_sa_arc_zu(I16 card_id, F64 Cx, F64 Cy, F64 Ex, F64 Ey, I16 CW_CCW, F64 StrVel,F64 MaxVel,F64 Tacc,F64 Tdec,F64 SVa

Página 72 - 62 Operation Theory

Function Library 153I16 _8158_start_sr_arc2(I16 *AxisArray, F64 *OffsetCenter, F64 *OffsetEnd, I16 CW_CCW, F64 StrVel,F64 MaxVel,F64 Tacc,F64 Tdec, F

Página 73 - 4.2.11 Home Search Function

154 Function LibraryDouble, ByVal Tacc As Double, ByVal Tdec As Double);B_8158_start_ta_arc_zu(ByVal card_id As Integer, ByVal Cx As Double, ByVal Cy

Página 74 - 4.2.12 Manual Pulse Function

Function Library 155Double, ByVal Svacc As Double, ByVal Svdec As Double) As IntegerB_8158_start_sa_arc_ab(ByVal card_id As Integer, ByVal Cx As Doub

Página 75 - Operation Theory 65

156 Function LibraryB_8158_start_ta_arc2(AxisArray() As Integer, CenterPos() As Double, EndPos() As Double, Byval CW_CCW As Integer, ByVal StrVel As D

Página 76 - 66 Operation Theory

Function Library 157Cx : X-axis (first axis of target axes) absolute position of center ofarcCy: Y-axis (second axis of target axes) absolute positio

Página 77

158 Function Library*OffsetEnd: Array of the offset to end of arc (relative to the startposition)Example: F64 OffsetEnd[2] = {4000.0, 0.0}; //offset f

Página 78 - 68 Operation Theory

Function Library 1596.9 Home Return Mode@ Name_8158_set_home_config – Set the configuration for homereturn move motion_8158_home_move – Perform a hom

Página 79 - Operation Theory 69

Introduction 7100 PPS to 6553500 PPS. (Multiplier = 100)X I/O Signales:Z Input/Output signals for each axisZ All I/O signal are optically isolated wi

Página 80 - 4.3.3 In position signal

160 Function Library@ SyntaxC/C++(Windows 2000/XP)I16 _8158_set_home_config(I16 AxisNo, I16 home_mode, I16 org_logic, I16 ez_logic, I16 ez_count, I16

Página 81 - 4.3.6 Servo ON/OFF switch

Function Library 161org_logic: Action logic configuration for ORG ez_logic: Action logic configuration for EZ ez_count: 0-15 (Please refer to see Se

Página 82 - 4.3.7 Servo Ready Signal

162 Function Library6.10 Manual Pulser Motion@ Name_8158_disable_pulser_input – Disable the pulse input_8158_pulser_pmove – Manual pulse p_move_8158_p

Página 83 - 4.4.3 Slow down switch

Function Library 163_8158_set_pulser_iptmodeThis function is used to configure the input mode of manualpulse.@ SyntaxC/C++(Windows 2000/XP)I16 _8158_

Página 84 - 4.5 The Counters

164 Function Library@ ArgumentAxisNo: Axis number designated to move or change position.Disable: Disable pulse input. Disable = 1, disable pulse Disab

Página 85 - Operation Theory 75

Function Library 1656.11 Motion Status@ Name_8102_motion_done – Return the motion status@ Description_8102_motion_done:Return the motion status of th

Página 86 - 4.5.4 General purpose counter

166 Function Library@ SyntaxC/C++(Windows 2000/XP)I16 _8102_motion_done(I16 AxisNo)Visual Basic (Windows 2000/XP)B_8102_motion_done(ByVal AxisNo As In

Página 87 - 4.6 The Comparators

Function Library 1676.12 Motion Interface I/O@ Name_8158_set_servo – Set the ON-OFF state of the SVON signal_8158_set_pcs_logic – Set the logic of PC

Página 88 - 4.7 Other Motion Functions

168 Function LibraryEnable the position override when input signal PCS is turn ON.The PCS terminal status can be monitored by“_8158_get_io_status” fun

Página 89 - Operation Theory 79

Function Library 169Set the EL logic, normal open or normal closed._8158_set_limit_mode:Set the reacting modes of the EL signal._8158_get_io_status:G

Página 90 - 4.8 Interrupt Control

8Introduction1.3 Supported Software 1.3.1 Programming Library Windows 2000/XP DLLs are provided for the PCI-8158 users.These function libraries are sh

Página 91

170 Function LibraryI16 _8158_set_alm(I16 AxisNo, I16 alm_logic, I16 alm_mode);I16 _8158_set_erc(I16 AxisNo, I16 erc_logic, I16 erc_pulse_width, I16 e

Página 92 - Error Interrupt return codes

Function Library 171B_8158_enable_sd(ByVal AxisNo As Integer, ByVal Enable As Integer) As IntegerB_8158_set_limit_logic(ByVal AxisNo As Integer, ByVa

Página 93

172 Function Libraryclr_mode = 0 , Clear on the falling edge (default)clr_mode = 1 , Clear on the rising edgeclr_mode = 2 , Clear on a LOW levelclr_mo

Página 94 - 4.9 Multiple Card Operation

Function Library 173erc_logic: Set the active logic for the ERC signalerc_pulse_width: Set the pulse width of the ERC signalerc_mode:sd_logic:sd_latc

Página 95 - 5 MotionCreatorPro

174 Function Librarysd_mode: Set the reacting mode of the SD signalenable: Set the ramping-down point for high speed feed.Logic: Set the PEL/MEL logic

Página 96 - 5.2 About MotionCreatorPro

Function Library 1756.13 Interrupt Control@Name_8158_int_control – Enable/Disable INT service_8158_set_motion_int_factor – Set the factors of motionr

Página 97 - 5.3.1 Main Menu

176 Function Library@ SyntaxC/C++(Windows 2000/XP)I16 _8158_int_control(I16 card_id, I16 intFlag);I16 _8158_set_motion_int_factor(I16 AxisNo, U32 int_

Página 98 - 5.3.2 Select Menu

Function Library 177AxisNo: Axis number of Target Axis.int_factor: interrupt factormotion INT factorscard_id Physical axis AxisNo00011……7710819……Valu

Página 99 - 5.3.3 Card Information Menu

178 Function LibraryTimeOut_ms: Specifies the time-out interval, in milliseconds. IfTimeOut_ms is zero, the function tests the states of the specified

Página 100 - 5.3.4 Configuration Menu

Function Library 1796.14 Position Control and Counters@ Name_8158_get_position – Get the value of feedback positioncounter_8158_set_position – Set th

Página 101 - MotionCreatorPro 91

Installation 92 Installation This chapter describes how to install the PCI-8158. Please followthese steps below: X Check what you have (Section 2.1)X

Página 102 - 92 MotionCreatorPro

180 Function LibraryThis function is used to change the feedback position counterto the specified value. Note that the value to be set will be pro-ces

Página 103 - MotionCreatorPro 93

Function Library 181_8158_get_res_distance:This function is used to read the value of the residue distancerecorder. The target position recorder is m

Página 104 - 94 MotionCreatorPro

182 Function LibraryB_8158_get_error_counter(ByVal AxisNo As Integer, ByRef error As Integer) As IntegerB_8158_reset_error_counter(ByVal AxisNo As Int

Página 105 - MotionCreatorPro 95

Function Library 183CntSrc: general counter sourceCntValue, *CntValue: the counter valueTargetPos, *TargetPos: Target position recorder value, range:

Página 106 - 96 MotionCreatorPro

184 Function Library6.15 Position Compare and Latch@ Name_8158_set_trigger_logic – Set the CMP signal’s logic_8158_set_trigger_comparator – Set the tr

Página 107 - MotionCreatorPro 97

Function Library 185_8158_set_latch_source:There are 4 latch triggering source. By using this function, usercan choose the event source to latch coun

Página 108 - 98 MotionCreatorPro

186 Function LibraryB_8158_set_trigger_comparator(ByVal AxisNo As Integer, ByVal CmpSrc As Integer, ByVal CmpMethod As Integer, ByVal Data As Long) As

Página 109 - MotionCreatorPro 99

Function Library 187CmpMethod: The comparing methodsData: Comparing value (Position)CmpAction:ltc_src:ltc_logic: LTC signal operation edgeCounterNo:

Página 110 - 100 MotionCreatorPro

188 Function Library*Pos: Latch data (Position)

Página 111 - MotionCreatorPro 101

Function Library 1896.16 Continuous motion@ Name_8158_set_continuous_move – Enable continuous motion forabsolute motion_8158_check_continuous_buffer

Página 112 - 102 MotionCreatorPro

Copyright 2006 ADLINK TECHNOLOGY INC.All Rights Reserved. The information in this document is subject to change without priornotice in order to improv

Página 113 - MotionCreatorPro 103

10 Installation2.2 PCI-8158 Outline DrawingFigure 2-1: PCB Layout of the PCI-8158X P1 / P2: Input / Output Signal Connector (100-pin)X K1 / K2: Simult

Página 114 - _8158_reset_target_pos()

190 Function Library@ SyntaxC/C++(Windows 2000/XP)I16 _8158_set_continuous_move(I16 AxisNo, I16 Enable);I16 _8158_check_continuous_buffer(I16 AxisNo);

Página 115 - 5.3.7 2D_Motion Menu

Function Library 1916.17 Multiple Axes Simultaneous Operation@ Name_8158_set_tr_move_all – Multi-axis simultaneous operationsetup_8158_set_ta_move_al

Página 116 - 106 MotionCreatorPro

192 Function LibraryI16 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] =

Página 117 - MotionCreatorPro 107

Function Library 193As Double, ByRef SVdecA As Double) As IntegerB_8158_set_ta_move_all(ByVal TotalAxes As Integer, ByRef AxisArray As Integer, ByRef

Página 118 - 108 MotionCreatorPro

194 Function Library6.18 General-purpose DIO@ Name_8158_set_gpio_output – Set digital output_8158_get_gpio_output – Get digital output_8158_get_gpio_i

Página 119 - MotionCreatorPro 109

Function Library 195Visual Basic (Windows 2000/XP)B_8158_set_gpio_output(ByVal card_id As Integer, ByVal DoValue As Integer) As IntegerB_8158_get_gpi

Página 120 - 110 MotionCreatorPro

196 Function Library6.19 Soft Limit@ Name_8158_disable_soft_limit – Disable soft limit function_8158_enable_soft_limit – Enable soft limit function_81

Página 121 - 5.3.8 Help Menu

Function Library 197@ ArgumentAxisNo: Axis number of Target Axis.Action: The reacting method of soft limitPlusLimit: Soft limit value, positive direc

Página 122 - 112 MotionCreatorPro

198 Function Library6.20 Backlash Compensation / Vibration Suppression@ Name_8158_backlash_comp – Set backlash corrective pulse forcompensation_8158_s

Página 123 - 6 Function Library

Function Library 199Visual Basic (Windows 2000/XP)B_8158_backlash_comps (ByVal AxisNo As Integer, ByVal CompPulse As Integer, ByVal Mode As Integer)

Página 124 - 6.1 List of Functions

Installation 112.3.2 PCI slot selectionYour computer system may have both PCI and ISA slots. Do notforce the PCI card into a PC/AT slot. The PCI-8158

Página 125

200 Function Library6.21 Speed Profile Calculation@ Name_8158_get_tr_move_profile – Get the relative trapezoidalspeed profile_8158_get_ta_move_profile

Página 126

Function Library 201@ SyntaxC/C++(Windows 2000/XP)I16 _8158_get_tr_move_profile(I16 AxisNo, F64 Dist, F64 StrVel, F64 MaxVel, F64 Tacc, F64 Tdec, F64

Página 127

202 Function LibraryDouble, ByRef pTacc As Double, ByRef pTdec As Double, ByRef pSVacc As Double, ByRef pSVdec As Double, ByRef pTconst As Double) As

Página 128 - Motion Status Section 6.11

Function Library 203SVdec: S-curve region during deceleration (unit: pulse/sec)Note: SVdec = 0, for pure S-Curve. For more details, see sec-tion 4.2.

Página 129

204 Function Library6.22 Return CodeThe return error code is defined in “8158_err.h”. The meaning isdescribed in following table.Code Meaning0 No erro

Página 130

Function Library 205 -10330 Error velocity change time-10331 Error speed target-10332 Error velocity percent-10333 Error position change backward-103

Página 131 - Soft Limit 6.19

206 Function Library

Página 132 - 6.2 C/C++ Programming Library

Connection Example 2077 Connection ExampleThis chapter shows some connection examples between the PCI-8158 and servo drivers and stepping drivers. 7.

Página 133 - @ Description

208 Connection Example

Página 134

Warranty Policy 209Warranty PolicyThank you for choosing ADLINK. To understand your rights andenjoy all the after-sales services we offer, please rea

Página 135 - @ Argument

12 Installation2.4 Software Driver Installation 1. Auto run the ADLINK All-In-One CD. Choose DriverInstallation -> Motion Control -> PCI-81582.

Página 136 - 126 Function Library

210 Warranty Policy3. Our repair service is not covered by ADLINK's guaranteein the following situations:X Damage caused by not following instruc

Página 137

Installation 132.5 P1/P2 Pin Assignments: Main ConnectorP1 / P2 are the main connectors for the motion control I/O signals.No. Name I/O Function No.

Página 138

14 InstallationX P1 is for Axis 0 to 3 control and P2 is for Axis 4 to 7 control.2.6 K1/K2 Pin Assignments: Simultaneous Start/Stop K1 and K2 are for

Página 139 - Src: Counter source

Installation 152.7 J1 to J16 Jumper Settings for Pulse Output J1-J16 are used to set the type of pulse output signals (DIR andOUT). The output signal

Página 140 - 6.5 Velocity mode motion

16 Installation2.8 S1 Switch Settings for Card IndexThe S1 switch is used to set the card index. For example, if youturn 1 to ON and others are OFF. I

Página 141

Installation 172.9 P3 Manual PulseThe signals on P3 are for manual pulse input.Note: The +5V and GND pins are directly given by the PCI-bus power. T

Página 142

18 Installation

Página 143 - Function Library 133

Signal Connections 193 Signal ConnectionsSignal connections of all I/O’s are described in this chapter. Referto the contents of this chapter before w

Página 144 - 6.6 Single Axis Position Mode

Getting Service from ADLINKCustomer Satisfaction is top priority for ADLINK Technology Inc.Please contact us should you require any service or assista

Página 145

20 Signal Connections3.1 Pulse Output Signals OUT and DIR There are 8 axis pulse output signals on the PCI-8158. For eachaxis, two pairs of OUT and DI

Página 146

Signal Connections 21Table 3-2: Pulse Output Signals OUT (P2)The output of the OUT or DIR signals can be configured by jump-ers as either differenti

Página 147

22 Signal ConnectionsTable 3-3: Output SignalThe default setting of OUT and DIR is set to differential line drivermode. The following wiring diagram

Página 148 - 138 Function Library

Signal Connections 23Suggest Usage: Jumper 2-3 shorted and connect OUT-/DIR- to a470 ohm pulse input interface’s COM of driver. See the followingfigu

Página 149

24 Signal ConnectionsThe input circuit of the EA, EB, and EZ signals is shown as fol-lows:P2 Pin No Signal Name Axis # P2 Pin No Signal Name Axis #13

Página 150 - 140 Function Library

Signal Connections 25Please note that the voltage across each differential pair ofencoder input signals (EA+, EA-), (EB+, EB-), and (EZ+, EZ-)should

Página 151

26 Signal ConnectionsIf = 8mA For more operation information on the encoder feedback signals,refer to Section 4.4.Encoder Power (V) External Resistor

Página 152

Signal Connections 273.3 Origin Signal ORG The origin signals (ORG0-ORG7) are used as input signals for theorigin of the mechanism. The following tab

Página 153

28 Signal Connections3.4 End-Limit Signals PEL and MELThere are two end-limit signals PEL and MEL for each axis. PELindicates the end limit signal is

Página 154

Signal Connections 293.5 In-position Signal INPThe in-position signal INP from a servo motor driver indicates itsdeviation error. If there is no devi

Página 156

30 Signal Connections3.6 Alarm Signal ALMThe alarm signal ALM is used to indicate the alarm status from theservo driver. The signal names, pin numbers

Página 157

Signal Connections 313.7 Deviation Counter Clear Signal ERCThe deviation counter clear signal (ERC) is active in the following4 situations:1. Home re

Página 158 - 148 Function Library

32 Signal Connections3.8 General-purpose Signal SVONThe SVON signal can be used as a servomotor-on control or gen-eral purpose output signal. The sign

Página 159 - Function Library 149

Signal Connections 333.9 General-purpose Signal RDYThe RDY signals can be used as motor driver ready input or gen-eral purpose input signals. The sig

Página 160

34 Signal Connections3.10 Multi-Functional output pin: DO/CMPThe PCI-8158 provides 8 multi-functional output channels: DO/CMP0 to DO/CMP7 corresponds

Página 161

Signal Connections 353.11 Multi-Functional input pin: DI/LTC/SD/PCS/CLR/EMGThe PCI-8158 provides 8 multi-functional input pins. Each of the 8pins can

Página 162

36 Signal Connections3.12 Pulse Input Signals PA and PB (PCI-8158)The PCI-8158 can accept differential pulse input signals throughthe pins of PN1 list

Página 163

Signal Connections 373.13 Simultaneously Start/Stop Signals STA and STPThe PCI-8158 provides STA and STP signals, which enable simul-taneous start/st

Página 164

38 Signal ConnectionsYou can also use external start and stop signals to issue a cross-card simultaneous motor operation. Just connect external starta

Página 165

Signal Connections 39

Página 166

Table of Contents iTable of ContentsTable of Contents... iList of Tables...

Página 168 - 158 Function Library

Operation Theory 414 Operation TheoryThis chapter describes the detail operation of the motion controllercard. Contents of the following sections are

Página 169 - 6.9 Home Return Mode

42 Operation Theory4.1.2 Pulse type motion control InterfaceThe second motion and motor control interface type of is pulsestrain. As a trend of digita

Página 170

Operation Theory 43A motion control system needs an absolutely real-time controlcycle and the calculation on controller must provide a control dataat

Página 171

44 Operation Theory4.1.7 Compare Table of all motion control types* Real-time OS included** DSP or software real-time OS is needed4.1.8 PCI-8158’s mot

Página 172 - 6.10 Manual Pulser Motion

Operation Theory 454.2 Motion Control ModesMotor control is not only for positive or negative moving, motioncontrol can make the motors run according

Página 173

46 Operation Theorypulses per 1mm and the motor will move 1mm if the motion con-troller send 1,000 pulses, It means that when we want to move 1mm, we

Página 174

Operation Theory 474.2.3 Trapezoidal speed profileA trapezoidal speed profile means the acceleration/decelerationarea follows a first-order linear ve

Página 175 - 6.11 Motion Status

48 Operation Theorythese areas. We call this shape as “bell” curve. It adds a linearcurve between the upper side of s-curve and lower side of s-curve.

Página 176

Operation Theory 49The S-curve profile motion functions are designed to always pro-duce smooth motion. If the time for acceleration parameters com-bi

Página 177 - 6.12 Motion Interface I/O

ii Table of Contents3.7 Deviation Counter Clear Signal ERC ... 313.8 General-purpose Signal SVON...

Página 178 - 168 Function Library

50 Operation Theory4.2.6 One axis position modePosition mode means the motion controller will output a specificamount of pulses which is equal to the

Página 179

Operation Theory 514.2.7 Two axes linear interpolation position mode“Interpolation between multi-axes” means these axes start simul-taneously, and re

Página 180

52 Operation TheoryThe speed ratio along X-axis and Y-axis is (∆X: ∆Y), respectively,and the vector speed is: When calling 8-axis linear interpolation

Página 181

Operation Theory 53The command precision of circular interpolation is shown below.The precision range is at radius ±1/2 pulse.4.2.9 Continuous motion

Página 182

54 Operation Theorythe fourth command into second buffer. Normally, if users haveenough time to set a new command into second buffer before exe-cuting

Página 183

Operation Theory 55If the speed value of the second command is less than the others,the settings would be like the following diagram:For 8-axis conti

Página 184 - Logic: Set the PEL/MEL logic

56 Operation Theoryneeds to find a zero point of this machine. Our motion controllerprovides a home return mode to make it.We have many home modes and

Página 186

58 Operation Theory

Página 187

Operation Theory 59

Página 188 - 178 Function Library

Table of Contents iiiServo ON/OFF switch ... 71Servo Ready Signal ...

Página 189

60 Operation Theory

Página 191

62 Operation Theory

Página 192

Operation Theory 634.2.11 Home Search FunctionThis mode is used to add auto searching function on normal homereturn mode described in previous sectio

Página 193

64 Operation Theory4.2.12 Manual Pulse FunctionThe manual pulse is a device to generate pulse trains by hand.The pulses are sent to motion controller

Página 194

Operation Theory 654.2.14 Speed Override FunctionSpeed override means that you can change speed of the com-mand during the operation of motion. The c

Página 195

66 Operation Theoryrelative pulses are smaller than original slow down pulses, thisfunction can’t work properly.4.3 The motor driver interfaceWe provi

Página 196

Operation Theory 67Single Pulse Output Mode (OUT/DIR Mode)In this mode, the OUT pin is for outputting command pulse chain.The numbers of OUT pulse re

Página 197

68 Operation Theoryrespectively. The numbers of pulse represent distance in pulse.The frequency of the pulse represents speed in pulse per second.Pul

Página 198 - *Pos: Latch data (Position)

Operation Theory 69If you don’t use encoder for motion controller, the feedback sourcefor this counter must be set as pulse command output or thecoun

Página 199 - 6.16 Continuous motion

iv Table of ContentsHelp Menu ... 1116 Function Library...

Página 200

70 Operation TheoryThe following diagram shows the waveform. The index input (EZ) signal is as the zero reference in linear orrotary encoder. The EZ

Página 201

Operation Theory 714.3.4 Servo alarm signalThe alarm signal is an output signal from motor driver. It tellsmotion controller that there has something

Página 202

72 Operation Theoryon, the motor will be held because the control loop of driver isactive. Be careful that when the axis is vertically installed and t

Página 203

Operation Theory 734.4.1 Original or home signalOur controller provides one original or home signal for each axis.This signal is used for defining th

Página 204 - 6.18 General-purpose DIO

74 Operation Theory4.4.5 Counter Clear switchThe counter clear switch is an input signal which makes thecounters of motion controller to reset. If you

Página 205

Operation Theory 754.5.1 Command position counterThe command position counter is a 28-bit binary up/down counter.Its input source is the output pulse

Página 206 - 6.19 Soft Limit

76 Operation TheoryThe value is calculated from command subtracting feedback posi-tion.If the ratio between command and feedback is not 1:1, the error

Página 207

Operation Theory 774.6 The ComparatorsThere are 5 counter comparators of each axis. Each comparatorhas dedicated functions. They are:1. Positive soft

Página 208

78 Operation Theory4.6.4 Trigger comparatorThe trigger comparator is much like general comparator. It has anadditional function, generating a trigger

Página 209

Operation Theory 794.7.1 Backlash compensation and slip correctionsThe motion controller has backlash and slip correction functions.These functions o

Página 210

List of Tables vList of TablesTable 1-1: Available Terminal Boards ... 8Table 2-1: P1/P2 Pin Assignments ...

Página 211

80 Operation TheoryOur motion library has a series of functions to know the actualspeed profile of the command from users.4.8 Interrupt Control The mo

Página 212

Operation Theory 81Motion Interrupt Source Bit SettingsThe error interrupt sources are non-maskable but the error num-ber of situation could be get f

Página 213 - Function Library 203

82 Operation TheoryError Interrupt return codesThe GPIO interrupt sources are maskable. The mask bits table isshown below:Value Description0 +Soft Lim

Página 214 - 6.22 Return Code

Operation Theory 83GPIO Interrupt Source Bit Settings (1=Enable,0=Disable)The steps for using interrupts:1. Use _8158_int_control(CARD_ID, Enable=1/D

Página 215 - Function Library 205

84 Operation Theory4.9 Multiple Card OperationThe motion controller allows more than one card in one system.Since the motion controller is plug-and-pl

Página 216 - 206 Function Library

MotionCreatorPro 855 MotionCreatorPro After installing the hardware (Chapters 2 and 3), it is necessary tocorrectly configure all cards and double ch

Página 217 - 7 Connection Example

86 MotionCreatorPro5.2 About MotionCreatorProBefore Running MotionCreatorPro, the following issues should bekept in mind.1. MotionCreatorPro is a prog

Página 218 - 208 Connection Example

MotionCreatorPro 875.3 MotionCreatorPro Form Introducing5.3.1 Main MenuThe main menu appears after running MotionCreatorPro. It is usedto:

Página 219 - Warranty Policy

88 MotionCreatorPro5.3.2 Select MenuThe select menu appears after running MotionCreatorPro. It isused to:

Página 220 - 210 Warranty Policy

MotionCreatorPro 895.3.3 Card Information Menu This menu shows Information about this card.

Comentários a estes Manuais

Sem comentários