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.
Trademark
Product names mentioned herein are used for identification
purposes only and may be trademarks and/or registered
trademarks of their respective companies.
Preface iii
Conventions
Take note of the following conventions used throughout this
reference to make sure that users perform certain tasks and
instructions properly.
Additional information, aids, and tips that help users perform
tasks.
NOTE
NOTE
Information to prevent minor physical injury, component
damage, data loss, and/or program corruption when trying to
CAUTION
WARNING
complete a task.
Information to prevent serious physical injury, component
damage, data loss, and/or program corruption when trying to
complete a specific task.
ivPreface
PCI-8254 / PCI-8258
Table of Contents
Revision History...................................................................... ii
Preface .................................................................................... iii
List of Figures ........................................................................ ix
List of Tables........................................................................ xiii
Figure 2-1:Exterior of your PCI-8254 ......................................... 12
Figure 2-2:Exterior of your PCI-8258 ......................................... 13
Figure 2-3:Exterior of DIN-825-GP4 .......................................... 27
Figure 2-4:Exterior of DIN-825-GP4 .......................................... 28
Figure 3-1:Connection example of differential analog output signal
43
Figure 3-2:Line Driver type pulse control command signal connec-
tion example45
Figure 3-3:Open-Collector type pulse control command signal con-
nection example46
Figure 3-4:Line driver type encoder input signal connection example
48
Figure 3-5:Emergency stop signal connection example ............ 49
Figure 3-6:Mechanical limit switch signal connection example.. 51
Figure 3-7:Original position switch signal connection example . 52
Figure 3-8:Place / zero speed detection signal connection example
53
Figure 3-9:Servo alarm signal connection example................... 54
Figure 3-10:Servo-on signal connection example........................ 55
Figure 3-11:Analog input signal connection example .................. 56
Figure 3-12:Line Driver type compare trigger signal connection exam-
ple57
Figure 3-13:Open-Collector type compare trigger signal connection
example58
Figure 3-14:General purpose digital I/O signal connection example
60
Figure 3-15:General purpose digital I/O signal connection example
63
Figure 4-1:Format of pulse signal .............................................. 67
Figure 4-2:Illustration of analog command output...................... 68
Table 4-5:Motion kernel signal table ............................................ 179
Table 4-6:Closed circuit control signal table ................................ 180
List of Tables xiii
xivList of Tables
PCI-8254 / PCI-8258
1Introduction
The PCI-8254/PCI-8258, is a fully in-house developed DSP-based
advanced motion control card from ADLINK. It supports 4/8 axis
pulse type or Analog type signal commands, provides Open-loop
and closed-loop circuit control options, and supports
position/speed/torque commands for several different servo
drivers.
The PCI-8254/PCI-8258 exchanges data with operating system
through high speed PCI bus including motion control command,
feedback data, parameter, etc. Used with the ADLINK exclusive
Softmove kernel, it offers scores of move control functions
including T/S speed profile planning, point-to-point movement,
multi-dimension interpolation, and master/slave motion.
To enable absolute real time motion control, ADLINK's multi-tasks
download function helps users to program with AMC code
(ADLINK Motion Code), a programming language similar to C, for
downloading to PCI-8254/58 embedded processors for execution.
It supports up to eight different programs for concurrent download
and execution.
With up to 20MHz high speed encoder feedback support and 4/8
axes independent hardware PID control plus Feed-forward gain
design, it ensures precision control and reduce following errors in
tandem with high speed motion feedback. The programmable
servo update rate allows excellent control performance because
different PID parameter adjustments can be made for individual
applications.
The PCI-8254/58, see Figure 1 below for its system functions,
uses one digital signal processor (DSP) from Texas Instrument
(TI) as its main computing unit and integrates high speed large
volume Field Programmable Gate Array (FPGA) to provide 4/8
independent PID control, high speed encoder output unit, 2/4 high
speed position compare and trigger output, move & general
purposed I/O and logic control. It separates isolation circuit into
exclusive terminal board DIN-825-GP4 to prevent the burning out
of PCI-8254/58 from incorrect wiring. Thanks to full range of
flexing resistant wires from ADLINK, it connects with market
available popular servo drives easily.
Introduction 1
FPGA
Flash ROM
DPRAM
SDRAM
PCIBus
PCI Bus
PCI
Bridge
Misc.
functions
DSP
A/D
circuitry
D/A
circuitry
Encoder
Input
SCSI 100P
EA
EB
EZ
DIN-825-GP4
Isolation
CMP & TRG
4/8 PID Controllers
Motion
I/Os
GPIO
TRG
Output
TTL I/Os
PEL
MEL
ORG
DIO
DSUB 37P
Figure 1-1: PCI-8254/58 system block diagram
Graphical motion control interface – MotionCreatorPro 2 is a
Windows-based motion control software development tool for
motion control and I/O status monitoring. You may employ this
development tool for axis, PID, and feed-forward gain setup as
well as analysis on motion variation curve and data. Embedded
Setup Wizard can guide you throughout the process of hardware
installation and wiring, close circuit PID parameter adjustments
and single axis operation for reduced development time and costs.
The Windows Programming Libraries supports Windows coding
environment including: Visual Studio C++ 6.0, Microsoft .NET
framework based VB.NET and C++, and Borland's C++ Builder.
There are sample programs available in the installation folders.
2Introduction
PCI-8254 / PCI-8258
The flow chart below will guide you in using this manual as well as
help you to locate any required information effectively.
Hardware installation
Wiring and jumper setup
Set up card and adjust axis parameters
with MotionCreatorPro 2
Control axis with MotionCreatorPro 2
Develop application with APS library
No
Is the system running
successfully?
Yes
Chapter II and III
MotionCreatorPro 2
User's Manual
Chapter IV
Chapter II and III
MotionCreatorPro 2
User's Manual
APS and ADCNC
library
End
Figure 1-2: System installation flow chart
Introduction 3
1.1Product Specifications
ItemDescription
Bus informationPCI Rev. 2.2, 33MHz
System
DSP
Board-to-board
interface
Closed circuit
control
PCI bus width32-bit
PCI bus voltage3.3V, 5V
PCI bus IRQ settingsAssigned by PCI controller
ModelTI 375MHz floating DSP
Memory
(for program and data)
Connector
Number of axes supported 4/8 axes for PCI-8254/8
Analog command output
1x SCSI-II 100P for PCI-8254
1x Dual SCSI VHDCI 100P
for PCI-8258
±10 volts, resolution: 16 bit
Difference / single end
output
50us-500us
(programmable)
0 to 32,767
0 to 32,767
32 bit
32 bit
CW/CCW,
1x/2x/4x AB Phase
Biquad filter & low-pass filter
4Introduction
I/O interface
Analog input
Analog output
General
purpose digital
I/O
Motion control
function
PCI-8254 / PCI-8258
ItemDescription
Motion control relevant I/O
Drive relevant I/O
Max. input channel4/8, single ended input
Input voltage range±10 V
Sampling frequency100 kHz
Resolution12 bits, no missing codes
Accuracy±1.5mV for ±10V input
Overload voltage±15 V
Max. output channel
Output voltage range±10V
Output current±50mA (Typ.)
Resolution16 bits, no missing codes
Accuracy±1.2mV for ±10V output
Protection circuit
Settling Time15us, full-scale step
General purpose I/O
Speed Profile Planning
Trajectory Planing
Linear interpolation:
2-6 axes
Home Return
Plus/Minus end limitsignal
Zero-position for each axis
Servo ON
In-position signal /
PCI-8254/PCI-8258 supports Windows XP/7 32/64 bit operating
system and provides a complete function library and DLL files for
easy application development by users.
1.2.2MotionCreatorPro 2
MotionCreatorPro 2 is a user interface exclusively developed for
ADLINK motion control products in common Windows
environment. You may easily set up card and axis parameters with
the help of MotionCreatorPro 2. The Setup Wizard enables users
to complete hardware installation, signal configuration,
close-circuit PID gaining auto tuning and single-axis manipulation
to reduce application development time. MotionCreatorPro 2 not
only effectively reduces your development time but also enables
you to concurrently validate the overall mechanism and electric
design with all its single axis and interpolation motion operation
pages.
1.3Terminal Board
The PCI-8254/58 exclusive terminal board "DIN-825-GP4" can
connect with several market available servo drives with special
cables including the Mitsubishi) J3A and the Yaskawa Sigma V
series or link with servo or stepper drives of other brands with
single ended open cables. Brands with exclusive cables support
are listed below:
8Introduction
PCI-8254 / PCI-8258
Pulse command:
CableSupported brands
HSL-4XMO-DM Mitsubishi J2S series
4XMO-DM-J3Mitsubishi J3A series
HSL-4XMO-DPPanasonic A4 and A5 series
HSL-4XMO-DYYaskawa Sigma V series
4XMO-DADelta A2 series
4XMO-OPENGeneral purpose
Table 1-1: Cross-reference table of exclusive cables for pulse servo drive
Analog commands:
CableSupported brands
ACL-DM-J3Mitsubishi J3A series
ACL-DYYaskawa Sigma V series
ACL-DPPanasonic MINAS A5/A4 series
4XMO-OPENGeneral purpose
Table 1-2: Cross-reference table of exclusive cables for analog servo drive
Introduction 9
10Introduction
PCI-8254 / PCI-8258
2Getting Start with The Installation
This chapter teaches you how to install PCI-8254/PCI-8258
hardware and software as well as its I/O wiring.
• Package Contents
• Hardware Installation
• Software Installation
• I/O Wiring
2.1Package Contents
In addition to this manual you shall find the following item in the
product package box:
• PCI-8254 or PCI-8258 card X 1
• IDE 44p – DSUB 37p flat cable x 1
• Product warranty card X 1
Should there be any item missed or damaged, please consult with
your dealer immediately. Please keep the product along with items
included in its package for easy replacement or repair.
Getting Start with The Installation 11
2.2PCI-8254/PCI-8258 Exterior Profile Diagram
S1
SW2
P1
P2
Dimension in unit of millimeter (mm).
NOTE
NOTE
Figure 2-1: Exterior of your PCI-8254
P1: for Motion control command, Position feedback, and Servo I/O
feedback. (with SCSI 100-PINS connector)
P2: for 16 channel digital TTL input and 16 channel digital TTL
output.
SW2: Card ID setup (0-15)
S1: Analog command mode selection (differential mode /
single-ended mode)
12Getting Start with The Installation
PCI-8254 / PCI-8258
S1
P1
SW2
P2
Figure 2-2: Exterior of your PCI-8258
P1: for Motion control command, Position feedback, and Servo I/O
feedback. (with SCSI-VHDCI 200-PINS connector)
P2: for 16 channel digital TTL I/O. (with DSUB 37-PINS
connector)
SW2: Card ID setup (0-15)
S1: Analog command mode selection (differential / single-end
mode)
Getting Start with The Installation 13
2.3Hardware Installation
2.3.1Hardware Configuration
PCI-8254/58 employs PCI Rev. 2.2 bus. System BIOS can auto
configure memory and IRQ channel.
Exclusive terminal board DIN-825-GP4 provides isolation circuit
and indicator lights for easy connection to varieties of servo drive
and stepper drive.
2.3.2Installation Procedures
1. Please read this manual carefully and set up signal I/O in
proper mode.
2. Turn off computer power and relevant power on all
terminal boards then connect PCI-8254/58 to 32-bit PCI
slot in your computer. (The slot is usually in white color.)
(Please make sure you have proper ESD (Electrostatic
discharge) protection.)
3. Connect PCI-8254/58 and DIN-825-GP4 with SCSI 100p
cable
4. Set up motion control relevant limit switch on
DIN-825-GP4 board, servo signal and general purpose
digital signal wiring
5. Set up servo or stepper drive connection
6. Turn on system power including computer power,
terminal board relevant powers, and 24Vdc power
7. Verify all I/O signal and servo operation correctness with
MotionCreatorPro 2
Please ground the shielding end of the power terminal to the
earth to reduce risk of electric shock and ensure product
CAUTION
CAUTION
14Getting Start with The Installation
operation of your electric appliances.
Please disconnect the motor drive from its load before using
the card for the first time to protect your safety. Do not connect
the motor drive to any mechanical devices before the
completion of the installation and fine tuning of the control
system. Connect the system only after the board is adjusted
and the drive parameters can control the motor. Serious
damage may be resulted in otherwise.
PCI-8254 / PCI-8258
2.3.3Troubleshooting
If the computer cannot power on normally or the motion control
system operates abnormally after system installation, please
follow steps described below for troubleshooting. If the problem
persists after you have taken steps described, please consult the
dealer where your product is purchased for technical services.
Abnormalities you encounteredPotential causes
Please turn off your computer,
The card does not show up in
Windows Device Manager after its
driver has been installed
MotionCreatorPro2 cannot open
after installing driver in computer
The without signal indicator on
MotionCreatorPro2 lights up after
the motor is connected and the
motor does not work.
When using the MotionCreatorPro2,
all the control indicators of the drive
light correctly but the drive warns
Value of output command differ from
the feedback value from encoder
If motion control, the motor moves
only in one direction rather than back
and forth two way movement
The motor bursts after executing
Servo On command in speed control
operation
The motor makes loud noise after
executing Servo On command in
speed control operation
ensure the card is properly in PCI
slot and the driver is properly
installed by checking its proper
installation in Windows Control
Panel's "Add remove programs"
Ensure .NET framework v3.5 or later
version has been installed in your
system
Please ensure a 24Vdc power is
connected to the terminal board
Please ensure correctness of the
axis parameter setup, alarm logic
(ALM) and the EMG loop
configuration
Please ensure feedback signal
(CW/CCW, 1xAB, 2xAB, 4xAB)
settings comply with that of the drive
Please ensure setting of signal
pattern (CW/CCW, OUT/DIR)
comply with that of the motor drive
Please ensure that the control
direction of encoder and speed
controller comply with each other
Please make sure the actuator is
correctly adjusted and set up, reset
all the "I" and "D" values of PID
parameters, readjust PID gain
Getting Start with The Installation 15
2.4Software Installation Procedure
Windows driver installation procedure:
Step 1. Execute PCI-8254/PCI-8258 WDM file and run installation
procedure automatically.
Step 2. Click "Next" as prompted to complete the installation
process.
16Getting Start with The Installation
PCI-8254 / PCI-8258
Step 3. Restart your computer after installation is completed.
Step 4. Ensure the Windows Device Manager identify your
PCI-8254/PCI-8258 correctly.
Note: Recommendations: Please download latest installation
software from ADLINK official website to maintain the optimum
operation environment.
(http://www.adlinktech.com/Motion-Control/index.php
)
Getting Start with The Installation 17
2.5Definitions to Key Connector Signal
2.5.1PCI-8254:
Connector
•P1
No. NameI/O Function of AxisNo. NameI/O Function of Axis
1DGND--Digital ground51IEMG|Emergency stop input
2DGND--Digital ground52Rsv.--Reserved
3AGND--Analog ground53AGND--Analog ground
4AGND--Analog ground54AGND--Analog ground
5AOUT1+ c Analog output (+),(1)55AOUT3+ c Analog output (+),(3)
6AOUT1-c Analog output (-),(1)56AOUT3-c Analog output (-),(3)
7AOUT2+ c Analog output (+),(2)57AOUT4+ c Analog output (+),(4)
8AOUT2-c Analog output (-),(2)58AOUT4-c Analog output (-),(4)
This switch is used for switching analog command output modes
with default settings at differential type output. In general, you
adjust according to individual servo drive interface. The PCI-8254
model uses switches 1-4 only.
differential mode
single-end mode
24Getting Start with The Installation
PCI-8254 / PCI-8258
2.6.2SW2: Card ID Switch
This switch is used for adjusting card ID for easy identification in
user application programs. Take example. If you set card ID to
”0-0-0-1” (OFF-OFF-OFF-ON) then the card ID is ”1” and the ID
table should be set up as described below:
Card IDSwitch Setting (ON=1)
00000
10001
20010
30011
40100
50101
60110
70 111
81000
91001
101010
111011
121100
131101
14111 0
151111 ( de fault )
Getting Start with The Installation 25
2.7IDE 44p – DSUB 37p Bus
This card include one IDE cable from IDE 44 pin to DSUB 37 pin.
It is used for PCI-8254 / PCI-8258 P2 extension 16 channel digital
input and 16 channel digital output.
26Getting Start with The Installation
PCI-8254 / PCI-8258
2.8Exclusive Board - DIN-825-GP4
The DIN-825-GP4 terminal board is designed for
PCI-8254/PCI-8258 and AMP-204C/AMP-208C exclusively. It
connects with market available servo drives with special cables
including the Mitsubishi's J3A and the Yaskawa Sigma V series or
other servo or stepper drives with single end open cables.
The DIN-825-GP4 board supports both PCI-8254/PCI-8258
and AMP-204C/AMP-208C. DO NOT connect it to other
CAUTION
ADLINK's motion controller or it may be damaged.
Main connector
(to PCI board)
Brake signal
Motion I/O signals
Analog commands
(Torque Control)
Analog input signals
Power &
EMG signal
Pulse commands
(Position Control)
Additional 16 Digital
output signals
Additional 16 Digital
Laser control signals
Figure 2-3: Exterior of DIN-825-GP4
I/O connector
(to PCI board)
input signals
Getting Start with The Installation 27
2.8.1Definitions to Connector
1. P1: This is one SCSI
100-PINS connector for
motion control signals.
2. CMA1–4: These are four
26-PINS connector for
connecting to servo
drive to do S/T mode
control and analog
CMA1
J4
CMA2
CMA3
CMA4
P1
control commands
output.
3. CMP1–4: These are four
26-PINS connectors for
connecting to servo
drive to do P mode
control or stepper drive
to output pulse control
commands. It may be
CMP1
CMP2
J3
CMP3
CMP4
CN1
S1
S2
J6
connected to Mitsubishi
J3A series, Yaskawa
Sigma II, III & V series,
IOIF2
IOIF3
and Panasonic MINAS
A4&A5 with exclusive
cables.
4. J1–J3: These are three
IOIF1
IOIF4
sets of 10-pins screw
lock connectors
(screwed series, Delta
P2
A2 series, or connection
to other servo or stepper
drives with single end
open cables). It may be
connected to any analog
Figure 2-4: Exterior of DIN-825-GP4
input signal, comparing
trigger signal, plus/minus limit switch and homing signal '.
5. J4: This is one 8-PINS connector for connecting to Brake
Signal.
6. J5: This is one 5-PINS connector for connecting to
terminal board main power and emergency stop signals.
J2 J1
J5
28Getting Start with The Installation
PCI-8254 / PCI-8258
7. J6: This is one 5-PINS connector for connecting to four
isolation digital output channel.
8. P2: This is one DSUB 37-PINS connector for connecting
to 16 channel digital input signal and 16 channel digital
output signal in the controller (TTL).
9. IOIF1-IOIF4: These are four 9-PINS connectors for
connecting to 16 channel digital input signal and 16
channel digital output signal for common uses.
10.Newly added CN1: This is one 9-pin connector for laser
control.
Getting Start with The Installation 29
2.8.2Connector: For Connecting to
PCI-8254/PCI-8258/AMP-204C/AMP-208C
•P1:
No. NameI/O Function of AxisNo. NameI/O Function of Axis
1DGND--Digital ground51 IEMG|Emergency stop input
2DGND--Digital ground52 Rsv.--Reserved
3AGND--Analog ground53 AGND--Analog ground
4AGND--Analog ground54 AGND--Analog ground
5AOUT1+ c Analog output (+),(1)55 AOUT3+ c Analog output (+),(3)
6AOUT1-c Analog output (-),(1)56 AOUT3-c Analog output (-),(3)
7AOUT2+ c Analog output (+),(2)57 AOUT4+ c Analog output (+),(4)
8AOUT2-c Analog output (-),(2)58 AOUT4-c Analog output (-),(4)
ALM_RST / DO: You may set this signal to general purpose
digital output signal (EDO) or alarm clearance function
NOTE
NOTE
(ALM_RST) by switch S1 or S2.
38Getting Start with The Installation
PCI-8254 / PCI-8258
2.8.3S1, S2: EDO/ALM_RST Selection Switch
DIN-825-GP4 is equipped with 4 servo drive reset signals. You
may set up CMA1~CMA4 PIN 10 and CMP1~CMP4 PIN 10 for
servo drive rest or J6 connector DO.1~DO.4 by switch S1 and S2.
Getting Start with The Installation 39
40Getting Start with The Installation
PCI-8254 / PCI-8258
3Signal Connection
PCI-8254/PCI-8258 must connect to servo or stepper motor drive
with exclusive terminal board DIN-825-GP4. All optical isolation
circuit of mechanical relevant I/O and servo relevant I/O are set to
DIN-825-GP4 to prevent damages to primary controller
PCI-8254/PCI-8258 from any invalid signal connection to it. This
may effectively reduce difficulties and times required in replacing
controller relevant products when doing customer service
maintenance tasks. See sections below for detailed descriptions
on precautions required to connect to various mechanical I/O and
servo I/O signals. Contents:
Section 3.1: Analog Command Signal
Section 3.2: Pulse Command Signal
Section 3.3: Encoder Input Signal
Section 3.4: Emergency Stop Signal
Section 3.5: Mechanical Limit Switch Signal
Section 3.6: Original Position Switch Signal
Section 3.7: In-position/Zero Speed Signal
Section 3.8: Servo Alarm Signal
Section 3.9: Servo On Signal
Section 3.10: Analog Input Signal
Section 3.11: Comparing Trigger Signal
Section 3.12: General Purpose Digital Input and Output Signal
Signal Connection 41
3.1Analog Control Command Signal
3.1.1Single-ended Type Signal: AOUT+
PCI-8254/PCI-8258 provides 4/8 analog control command
channels respectively. Each analog command supports 16-bit
resolution and provides ±10V output range at accuracy smaller
than ± 1mV. Each analog control command can be set to single
ended or differential output mode by adjusting switch S1 to be
used by market available Japanese/Taiwanese and American/EU
servo motor drives. In general, a servo drive can be set to P/S/T
(position/speed/torque) mode. When control mode is set to S/T the
positioning function can be exercised by controlling motor speed
or torque with analog commands. When servo drive is set to P
mode, then pulse command of PCI-8254/PCI-8258 will be used for
open-loop control (see Section 3.2). This analog channel is then
defined as general purpose output one.
See below for corresponding pins of analog command output to
DIN-825-GP4:
CMAx Pin No
(x=1~4)
6AOUT+Analog Out Signal, (+) (n)1~8
NOTE
NOTE
Signal Name
PCI-8258 need two DIN-825-GP4 for eight axes motion control
functions
# 1 controls axes 1 ~ 4 and #2 controls axes 5 ~ 8
Description
(n=1~8)
Axis #
3.1.2Single-ended Type Signal: AOUT+, AOUT-
4/8 analog control commands of PCI-8254/PCI-8258 can be set to
single ended or differential output mode by adjusting switch S1 to
be used by market available Japanese/Taiwanese and
American/EU servo motor drives. See below for corresponding
pins of analog command output pins against differential analog
signals to DIN-825-GP4:
42Signal Connection
PCI-8254 / PCI-8258
CMAx Pin No
(x=1~4)
6AOUT+Analog Out Signal, (+) (n)1~8
5AOUT-Analog Out Signal, (-) (n)1~8
Signal Name
Description
(n=1~8)
PCI-8258 need two DIN-825-GP4 for eight axes motion control
functions
Figure 3-1: Connection example of differential analog output signal
Signal Connection 43
3.2Pulse Command
In addition to the analog command outputs described in Section
3.1, PCI-8254/PCI-8258 provides 4/8 pulse control command
channel. Each pulse control command can support up to 6.5MHZ
output frequency.
In general, a servo drive can be set to P/S/T (position/speed/
torque) mode. When control mode is set to P mode, then the pulse
command control of PCI-8254/PCI-8258 will be used for
open-loop control.
In addition to servo drive, the Stepper drive also employs pulse
command interface as the primary control input commands. See
below for corresponding pins of pulse command output against
differential pulse signals to DIN-825-GP4:
CMAx Pin No
(x=1~4)
6OUT+Pulse signal, (+) (n)1~8
5OUT-Pulse signal, (-) (n)1~8
24DIR+Dir. Signal, (+) (n)1~8
23DIR-Dir. Signal, (-) (n)1~8
Signal Name
Description
(n=1~8)
PCI-8258 need two DIN-825-GP4 for eight axes
motion control functions
Either servo motor drive or stepper motor drive employs one of the
two input interfaces described below:
1. Line Driver input interface provides better anti noise-resistant
and longer wiring length.
• Signal connection diagram:
Figure 3-2: Line Driver type pulse control command signal connection
example
2. Open-Collector input interface can increase passing
current capacity of signal by adjusting pull-up resistance
value at the shorter wiring length.
Signal Connection 45
• Signal connection diagram:
Figure 3-3: Open-Collector type pulse control command signal connection
example
To avoid damages to Line Driver components on controller
caused by invalid wiring please connect the OUT-, DIR- pins of
CAUTION
controller to OUT, DIR pins of motor drive.
The controller employs Line Driver component -26LS31 with
maximum Sink Current at 20mA. Do not use it at current above
CAUTION
this value, the component may be damaged otherwise.
46Signal Connection
PCI-8254 / PCI-8258
3.3Encoder Input, EA & EB & EZ
PCI-8254/PCI-8258 provides 4/8 encoder input channels
respectively which accept single end input frequency up to 5MHz
with each channel containing EA, EB, and EZ signal. Each group
of EA, EB, and EZ signal contains a pair of differential signal, e.g.
the EA signal contains EA+ and EA-. See Section 4.1.1.4 for how
to use the encoder. See below for corresponding pins of encoder
input on DIN-825-GP4
CMAx Pin No
(x=1~4)
8EA+Encoder A-phase (+),(n)1~8
7EA-Encoder A-phase (-),(n)1~8
17EB+Encoder B-phase (+),(n)1~8
16EB-Encoder B-phase (-),(n)1~8
26EZ+Encoder Z-phase (+),(n)1~8
25EZ-Encoder Z-phase (-),(n)1~8
Signal Name
Description
(n=1~8)
PCI-8258 need two DIN-825-GP4 for eight axes motion control
functions
The controller employs Line Receiver component -26LS32 with
maximum Sink Current at 20mA@5V. Do not use it at current
CAUTION
above this value, the component may be damaged otherwise.
Axis #
Signal Connection 47
• Signal connection diagram:
Figure 3-4: Line driver type encoder input signal connection example
48Signal Connection
PCI-8254 / PCI-8258
3.4Emergency Stop Input
PCI-8254/PCI-8258 provides one hardware input emergency stop
signal (EMG). If the external emergency stop signal is triggered, all
motion control commands will be stopped immediately. In addition, the
DIN-825-GP4 is designed to transmit external emergency stop signal
to servo/stepper motor drive to stop operation of every motor
immediately. See below for corresponding pins of emergency stop
signal input on DIN-825-GP4
J5 Pin NoSignal NameDescriptionAxis #
5EEMG
:
External emergency stop input
(external input)
-
CMPx / CMAx
Pin No (x=1~4)
19EMG(n)Emergency stop (output to drive)1~8
Signal Name
(n=1~8)
DescriptionAxis #
PCI-8258 need two DIN-825-GP4 for eight axes motion control
functions
Figure 3-5: Emergency stop signal connection example
Signal Connection 49
3.5PEL/MEL Input
PCI-8254/PCI-8258 provides 4/8 End-limited switch input
channels. The Plus Limited Switch (PEL) is used as the
mechanical protection switch for movement in the positive
direction. When this switch is triggered, the PCI-8254/PCI-8258
stops its positive direction movement immediately. The Minus
Limited Switch (MEL) is used as the mechanical protection switch
for movement in the negative direction. When this switch is
triggered, the PCI-8254/PCI-8258 stops its negative direction
movement immediately. See below for corresponding pins of
mechanical limit switch signal input on DIN-825-GP4:
Figure 3-6: Mechanical limit switch signal connection example
Signal Connection 51
3.6ORG Input
PCI-8254/PCI-8258 provides 4/8 original position switch input
channels. Working together with the home movement described in
Section 4.3, this function returns the body to its original position
(also known as the zero position). See below for corresponding
pins of original position switch signal input on DIN-825-GP4:
J1/J2 Pin NoSignal NameDescriptionAxis #
4ORG(3) / ORG(1) Original position switch input (3) / (1)3 / 1
8ORG(4) / ORG(2) Original position switch input (4) / (2)4 / 2
PCI-8258 need two DIN-825-GP4 for eight axes motion control
functions
Figure 3-7: Original position switch signal connection example
52Signal Connection
PCI-8254 / PCI-8258
3.7INP / ZSP Input
PCI-8254/PCI-8258 provides 4/8 In-position (INP) or zero speed
detection (Zero-speed (ZSP)) input channel. Working with function
described in Section 4.8, it can be used as the trigger source for
in-position events of individual motion. In general, when servo
drive is set to position mode (P mode), the servo issues a (INP)
pulse signal to controller when movement get into position. When
servo drive is set at speed/torque (S/T mode), the actuator sends
a (ZSP) pulse signal to controller when motor speed is zero. See
below for corresponding pins of in-position or zero speed detection
signal input on DIN-825-GP4:
CMAx
Pin No (x=1~4)
2ZSP(n)Zero speed detection signal1~4
2INP(n)
Signal Name
(n=1~4)
DescriptionAxis #
In-position Input
(for pulse output mode only)
PCI-8258 need two DIN-825-GP4 for eight axes motion control
functions
Figure 3-8: Place / zero speed detection signal connection example
Signal Connection 53
3.8ALM Input
PCI-8254/PCI-8258 provides 4/8 servo alarm input channels.
Working with function described in Section 4.11 it can be used as
the trigger source for motion interrupt event. In general, when
abnormality is encountered during servo drive movement, it issues
an (ALM) pulse signal to controller for abnormality occurrence.
See below for corresponding pins of servo alarm signal input on
DIN-825-GP4:
CMAx / CMPx
Pin No (x=1~4)
11ALM(n)Servo alarm input1~4
Signal Name
(n=1~4)
DescriptionAxis #
PCI-8258 need two DIN-825-GP4 for eight axes motion control
functions
PCI-8254/PCI-8258 provides 4/8 servo-on output channels and
utilize the servo-on signal to enable servo drive for pulse or analog
commands input. If there is abnormality encountered during
movement, the PCI-8254/PCI-8258 turns off this signal
automatically and stops all motion control commands. See below
for corresponding pins of servo-on signal output on DIN-825-GP4:
CMAx / CMPx
Pin No (x=1~4)
1SVON(n)Servo-on output1~4
Signal Name
(n=1~4)
DescriptionAxis #
PCI-8258 need two DIN-825-GP4 for eight axes motion control
functions
PCI-8254/PCI-8258 provides 4/8 analog input channels with 12-bit
resolution and 100KHz sampling rate. You may use these analog
input channels to get values from voltage sensor. See below for
corresponding pins of analog input signals on DIN-825-GP4:
J3 Pin NoSignal NameDescription
10AIN1Analog input
9AIN2Analog input
8AIN3Analog input
7AIN4Analog input
Your PCI-8258 must come with two DIN-825-GP4 to get eight
analog input signals where the first gets AIN1~AIN4 and the
NOTE
NOTE
• Signal connection diagram:
second ANI5~AIN8.
Figure 3-11: Analog input signal connection example
56Signal Connection
PCI-8254 / PCI-8258
3.11 Compare & Trigger Output
PCI-8254/PCI-8258 provides 2/4 comparing trigger pulse output
channels. Each comparing trigger channel can output pulse
commands up to 1 MHZ. See Section 4.9.2 for its detail and how
to use it. See below for corresponding pins of pulse command
output against differential pulse signals to DIN-825-GP4:
J3 Pin NoSignal NameDescription
2TRG2-/TRG4-Trigger output (-), (2)/(4)
3TRG2+ / TGR4+Trigger output (+), (2)/(4)
4TRG1-/TRG3-Trigger output (-), (1)/(3)
5TRG1+/TRG3+Trigger output (+), (1)/(3)
The compare trigger pulse output channel of
PCI-8254/PCI-8258 employs line driver output interface for
NOTE
NOTE
• Signal connection diagram:
better noise signal resistance and wiring length where trigger
output (3) & (4) require #2 DIN-825-GP4 for wiring.
1. Line Driver interface:
Figure 3-12: Line Driver type compare trigger signal connection example
Signal Connection 57
2. Open-Collector interface:
Figure 3-13: Open-Collector type compare trigger signal connection
example
58Signal Connection
PCI-8254 / PCI-8258
3.12 Digital Output/Input
PCI-8254/PCI-8258 provides 20/24 digital output/input channels.
See below for corresponding pins of general purpose digital input
and output signals on DIN-825-GP4:
J1/J2 Pin No.Signal NameDescription
2EDI(3) / EDI (1) General purpose digital input signal (3), (1)
6EDI(4) / EDI (2) General purpose digital input signal (4), (2)
J6 Pin No.Signal NameDescription
1EDO(1)General purpose digital output signal (1)
2EDO(2)General purpose digital output signal (2)
3EDO(3)General purpose digital output signal (3)
4EDO(4)General purpose digital output signal (4)
PCI-8258 need two DIN-825-GP4 for eight axes motion control
functions
1. Please connect DICOM to external power supply
(24VDC in general) if possible.
2. Please connect DOCOM to ground (GND) of
external power supply if possible.
Signal Connection 59
• Signal connection diagram:
Figure 3-14: General purpose digital I/O signal connection example
60Signal Connection
PCI-8254 / PCI-8258
IOIF1 Pin No.Signal NameDescription
1~8DI(1)~(8)General purpose IOIF2 digital input signal (1)~(8)
IOIF2 Pin No.Signal NameDescription
1~8DI(9)~(16)General purpose digital input signal (9)~(16)
IOIF3 Pin No.Signal NameDescriptionAxis #
※1~5
DO(1)~(5)General purpose digital output signal (1)~(5)-
※The digital output current may reach 250mA
NOTE
NOTE
IOIF3 Pin No.Signal NameDescriptionAxis #
6~8DO(6)~(8)General purpose digital output signal (6)~(8)-
IOIF4 Pin No.Signal NameDescriptionAxis #
1~8DO(9)~(16)General purpose digital output signal (9)~(16)-
1. Please connect DICOM to external power supply
(24VDC in general) if possible.
NOTE
NOTE
2. Please connect DOCOM to ground (GND) of
external power supply if possible.
Signal Connection 61
• Signal connection diagram:
DIN-825-GP4
TDI
PCI-8254/PCI-8258
TDO 1~5
P2
P2
PS2805
DIN-825-GP4
IOIF1
IOIF2
DICOM2
DI
IOIF3
IOIF4
DICOM2
DO 1~5
Switch
Type
BJT
Type
DOCOM
PCI-8254/PCI-8258
PS2802
DOCOM2
DOCOM2
62Signal Connection
PCI-8254 / PCI-8258
DIN-825-GP4
IOIF3
IOIF4
TDO 6~16
PCI-8254/PCI-8258
P2
PS2802
DICOM2
DO 6~16
DOCOM2
Figure 3-15: General purpose digital I/O signal connection example
Signal Connection 63
64Signal Connection
PCI-8254 / PCI-8258
4Motion Control Theory
This chapter introduces you the motion control function of
PCI-8254 / PCI-8258 as well as relevant precautions in using
them. Contents:
Section 4.1: Motion Control Mode and Interface Overview
Section 4.2: Closed-loop Control
Section 4.3: Motion Control Operations
Section 4.4: Home Move
Section 4.5: Velocity Move
Section 4.6: Jog Move
Section 4.7: Point-to-Point Move
Section 4.8: Interpolation
Section 4.9: Motion Status Monitoring
Section 4.10: Application Functions
Section 4.11: Safety Protection
Section 4.12: Host Interrupt
Motion Control Theory 65
4.1Motion Control Mode and Interface Overview
This section describes basic setups of "PCI-8254" and "PCI-8258"
before doing motion control and fundamental concepts of its core
operations.
4.1.1Motion Control Interface
4.1.1.1Control Mode and Output Interface
You may use the MotionCreatorPro2 application program to set
up these two output interface and save your desired setting in
non-volatile memory, the so-called ROM, of the controller for
automatic loading when the controller power on. You may use API
listed below to retrieve current settings to ensure their correctness.
APS_get_eep_curr_drv_ctrl_mode ()
4.1.1.2Pulse Type
You can use this control mode to control stepper motor or set it to
P control mode to control servo motor with pulse format signal
input. The output interface of controller is OUT / DIR [1..8] pins.
(Please refer Chapter 3 for detail.)
This is the so called open-loop or semi closed-loop control model
where the upper controller output position command in digital
pulse format signal to lower stepper motor or servo motor to form
a close-loop control in servo drive. In this mode, number of pulses
indicates actual distance traveled by the machine (vary with the
relation between mechanical shift and pulse) while the pulse
output frequency indicates speed of the machine traveling at (in
unit of pulse per second, PPS).
66Motion Control Theory
PCI-8254 / PCI-8258
In this mode users must pay special attention to pulse signal
format acceptable to the motor to be driven. The motor works
normally only when being driven by correct pulse format signal,
otherwise the motor may fail to work in erroneous direction or with
abnormal shaking. Users must correctly set up the controller
before any motion control after the software is initialized. This
controller provides two pulse signal output format:
• OUT / DIR signal format: At this mode, the OUT signal indicates
frequency and amount of output pulses where DIR indicates
direction of machine movement.
• CW / CCW signal format: At this mode the CW/CCW signal
indicates both machine movement direction and pulse output
frequency and amount
Counter:
Figure 4-1: Format of pulse signal
The signal format can be set up in axis parameters:
Param. No.Define symbolDescription
81h (129)PRA_PULSE_OUT_MODEPulse output format setup
Motion Control Theory 67
4.1.1.3Analog Type
The analog control mode is used to control servo motor in velocity
mode or torque mode that accepts signals in analog voltage.
In this mode the closed-loop function will be initiated automatically.
See figure below for closed-loop illustration. See Chapter 2: Close
loop control for relevant PID close loop function. Adjustments
CommandPID filterAOUT
Eoncoder
Figure 4-2: Illustration of analog command output
Set up input/output interface correctly before controlling with close
loop PID controller:
1. Make sure the AOUT voltage control level and logic
ailing with the receiving end of servo motor.
See Section 4.2 Close loop control for its setup.
2. How to set up Decoding method used by the encoder.
Please refer to the Encoder setup in next Section.
For axis with motion control interface set to analog output its
analog output channle will be controlled by the controller itself
NOTE
NOTE
68Motion Control Theory
rather than by operators. For axis with motion control interface
set to pulse control interface, its output control is released by
the controller to the users for controlling the analog output
channel by programs.
PCI-8254 / PCI-8258
4.1.1.4Encoder
The position encoder of this controller supports 9 kinds of digital
signal input formats as described below.
Please set up the position encoder before doing motion control.
This is especially true for analog output type closed-loop control
CAUTION
NOTE
NOTE
as invalid setup may lead to motor burst.
You may set up and test your controller with MotionCreatoPro
2 software. You can check this by manually spinning the motor
(or move the workbench) and verify the encoder signal from
motor or linear scale to the controller.
No
Decode
Mode
OUT/DIR (1)
CW/CCW (1)
1X AB
2x AB
4x AB
OUT/DIR (2)
OUT/DIR (3)
OUT/DIR (4)
Positive directionNegative direction
EAEBEAEB
High
Low
High
Low
Low
Low
Low
Low
High
High
CW/CCW (2)
High
High
Table 4-1: Encoder input format
Motion Control Theory 69
• Axis parameter setup:
Param. No.Define symbolDescription
80h (128)PRA_ENCODER_MODEEncoder input signal format
85h (133)PRA_ENCODER_DIREncoder counting direction setup
Table 4-2: Encoder input format
• Axis parameter setup API:
APS_set_axis_param (); // write in axis parameter
APS_set_axis_param (); // read out axis parameter
70Motion Control Theory
PCI-8254 / PCI-8258
4.1.1.5Motion Control I/O
Some motion control I/O signal of this controller definition are
summarized in table below:
Param.
0ALMInputServo alarm
1PELInputPlus end limit
2MELInputMinus end limit
3ORGInputHome input
4EMGInputEmergency stop input
5EZInputServo index input
6INPInputIn-Position input
7SVONOutputServo ON output status
Defined
Symbol
Typ eDescription
Here ALM, EZ and INP are signals sent by servo drive and SVON
(Servo on) signal is the receiving signal of servo drive for driving
the servo motor.
And PEL, MEL, ORG and EMG are mechanical I/O signals. Safety
relevant signals, e.g. EMG, PEL and MEL are used to work
together with motion control. Take example, the home movement
will use ORG, PEL, MEL, EZ and other signals.
You may use following API functions to get I/O status with each bit
of the parameter representing status of the axis motion control I/O.
I32 APS_set_servo_on (I32 Axis_ID, I32 Servo_on);
I32 APS_motion_status (I32 Axis_ID);
Motion Control Theory 71
• Signal direction
These signal logic may be inverted by software. Relevant axis
parameters are listed below:
• Board parameter
Param. No.Define symbolDescription
00h (0)PRA_EL_LOGICPEL/MEL input logic
01h (1)PRA_ORG_LOGICORG input logic
04h (4)PRA_ALM_LOGICSet ALM logic
05h (5)
06h (6)PRA_EZ_LOGICSet EZ logic
PRA_ZSP_LOGIC /
PRA_INP_LOGIC
Set INP logic
• Board parameter
Param. No.Define symbolDescriptionVal ueDefault
00h (0)PRS_EMG_LOGICEMG input logic 0 : Not inverse
1 : Inverse
• Filter
This controller features filters to screening out High-Frequency
Noise against motion control I/O to prevent abnormal motion
control action caused by external noise. The filter is defaulted
at ON status.
72Motion Control Theory
PCI-8254 / PCI-8258
4.1.2Control Cycle
The controller features three control cycle for different works. They
are:
1. Servo control cycle
2. Motion control cycle
3. Host control cycle
4.1.2.1Servo Control Cycle
The servo control cycle is the time required to complete one close
loop control. Servo control cycle of this controller can be up to
20KHz, that is 50 microsecond for each cycle. In each control
cycle, the controller finish various servo control relevant jobs
including PID compensation and filter compensation.
4.1.2.2Motion Control Cycle
Default motion control cycle is set at 1KHz, i.e. 1 millisecond for
each cycle. Varieties of peripheral hardware components controls,
including host communication, trajectory calculation, AMC
program execution and data sampling, are finished in it.
4.1.2.3Host Control Cycle
Default host control cycle is 0.5 KHz. That is, it takes 2 millisecond
to finish jobs in one control cycle including communications
between hosts, watch dog, kernel update, parameter management
and other non-realtime jobs.
The servo control cycle runs independently while the motion
control and host control cycle are done in the same processor. The
controller completes scheduled jobs automatically with the motion
control ones has higher priority than the host control one.
Motion Control Theory 73
間
XXXX
運動控制占用時間
XXXX
系統工作占用時間
Motion
運動控制週期
control cycle
Time
時
Host Control Cycle
系統工作週期
Figure 4-3: Control cycle
The motion program is executed in motion control cycle to control
jobs to be executed in each motion control cycle directly for more
precise completion of realtime jobs. Please pay attention to DSP
loading when doing this.
Loading of CPU in controller is hard to predict as the controller is
affected by many factors, e.g. external signals, user operations,
and algorithm process during its operations. In most cases, please
try to keep CPU utilization rate to below 70% and reserve 30% of
CPU capacity to the processing of system jobs and momentary
work loads.
Overloading (work loads exceed control cycle) may lead to
unpredictable results. This controller provides you with some
functions and tools to monitor processor utilization rate and adjust
control procedures. In case of any processor overloading, the
controller logs and warns (interrupt, please refer to section of
interrupt) that you may take for proper responses in your program.
How to use API:
get_motion_control_timing () // get usage amount of current motion
control cycle
get_max_ motion_control_timing ()// get maximum usage amount
of motion control cycle
get_motion_control_timing () // get usage amount of current host
control cycle
get_motion_control_timing () // get maximum usage amount of host
control cycle
The close-loop control system works like this: after a command is
sent, a group of sensors get system output signals during motion
process and returned to the controller, a error signal then can
derived by comparing the original command against the feedback
signal which is then returned to controller. As the controller
structure is designed on the basis of pre-defined System Dynamic,
the deviation signal received by the controller will be combined
into a brake signal and feed into the brake to reduce deviations
and external interruptions and noises such that system output may
comply with given commands gradually.
In general, commonly adopted controllers by the manufacturing
industries are of PID controller on account of its simple structure
and its capabilities in meeting most industrial control requirements.
Thanks to its PID+ velocity and acceleration feed forward design,
this controller provides much improved overall control
performance with servo update rate up to 20KHz.
Below we first discuss the PID controller, a continuous-time
standard PID controller mathematical form
where is the combined control amount of Proportional
control, Integral control, and Derivative control, the gain,
the integral time constant, and the derivative time constant.
Impact of each control item on system performance is described
below.
a
Proportional Control
As Time-domain is concerned, more Proportional gain may speed
up responses as the system bandwidth increases with that of
Frequency-domain at the expense of Stability. This makes the
system prone to vibration as Gain margin decreases. Another
important function of proportional control is to reduce Steady-state
error.
Motion Control Theory 75
)(tu
K
c
T
d
T
i
b Integral Control
Integral control can reduce Steady-state error and suppress noise
at the expense of system Response time.
Derivative Control
c
The derivative control improves Temporary response time and
relative steadiness but helps little in reducing noise and steady
state error.
d
PI-Control
In terms of frequency domain, the PI controller increases system
low frequency range for reduced steady state error at the expense
of poorer system response speed caused by phase lag.
PD-Control
e
In addition, phases of increased high frequency range may speed
up system responses of PD controller. However, this may lead to
more Noise impact as a result of high frequency gain.
PID-Control
f
A PID controller is a PI and PD combined controller. The PID
controller combines advantages of both PI and PD controllers to
improve steady state error without sacrificing system response
speed.
See Figure 4-4 of the close loop control system structure of this
controller, see Table 1 for descriptions on all the close loop control
relevant axis parameters. For actual application, the controller
must realize the transformation, reference to above descriptions,
from continuous time standard pattern to discrete time pattern as
described in mathematical equation illustrated below
76Motion Control Theory
PCI-8254 / PCI-8258
Here represents a position command,
represents position feedback, represents speed
command and represents acceleration command. The
PID
control plus velocity / acceleration command feedforward control
are added here to reduce tracking error of position command and
improve control performance. The
signal after processed by controller. Its physical meanings may be
velocity command or torque command determined by settings of
actuator.
On the other hand, after servo update speed of PID controller is
changed, user must regulate controller gain at the same. You may
change servo update speed in the Setup Wizard page in range of
50us~2000us. The DSP reboots after setup. The default update
speed is 250us. As the controller's gaining value is limited, the
working range of gaining value can be adjusted with the gain shift
function as shown in the gain-shift figure below. The gain shift
function double enlarges or reduces the gaining value. Take
example. You can set KP gain to 100, KP shift to 2, and PID shift
to 3 to get a equivalent KP of 100×22×23=3200. In general, the
gain shift value should be changed only when its range is short of
required control power. The auto servo parameter fine-tuning
program described in next chapter may can help you in selecting
proper initial gain shift value.
In addition to changes in all gain values of controller, the Integral
situation, output voltage limit, output voltage offset, and output
voltage inverse can be set up by users. To suppress mechanical
vibration effectively, two Biquad filters are connected in series to the
rear of the controller for Low pass filter and Notch filter. Users may
design their own biquad filters for their own signal processing
purposes. This will be discussed in detail in following chapters.
)(kCmdPos)(kFbkPos
)(kCmdVel
)(kCmdAcc
Plant
in control shall receive voltage
Motion Control Theory 77
Figure 4-4: PCI-8254/PCI-8258 close loop control structure diagram
Figure 4-5: Gain and Gain shiftrelationship diagram
Velocity feedforward gain shift;
Enlarge or contract 2
n
folds
n
folds
n
folds
n
folds
Acceleration feedforward gain
shit; Enlarge or contract 2
folds
PID control shift;
Enlarge or contract 2
Output voltage offset
(UOM: Volt)
n
folds
n
31 ~ -31-5
31 ~ -31-15
31 ~ -310
31 ~ -310
31 ~ -310
31 ~ -31-5
0~100
123hPRA_SERVO_V_LIMITOutput voltage limit (UOM: volt)0~1010
125hPRA_SERVO_V_INVERSE
Output voltage inverse ;
1: Yes 0: No
12BhPRA_INTEGRAL_LIMITIntegral limits
0~10
0~2147483647
2147483647
Motion Control Theory 79
4.2.2Auto Servo Tuning
The auto tuning function is aimed at designing stable and of good
performance PID controller in fast pace to provide for common
users. For advanced users, extra Manual tuning can be applied by
referencing to the auto tuning results to come out controllers more
specifically meeting special needs.
Please set up proper position encoder and aligned output
command and move direction especially for control mode in
CAUTION
Fine tuning steps:
Step 1: Set up offset limit values
This is a safety mechanism where there will be error message
displayed in status bar at bottom of page and the fine tuning
process stops and the motor turns off in case the deviation amount
of position command against position feedback exceed given limit.
In general, when running the fine tuning process for the first time
the Deviation limit value should be set at low level in the beginning
process.
closed-loop control of analog output. Improper setup may lead to
servo motor bursting.
Step 2:
Select axis number
Select the axis to be fine tuned in selection menu. You can fine
tune one axis at a time.
Step 3: Set up vibration amplitude
The fine tuning process calculate gain value of proportional
control, integral control, and derivative control through the back
and forth motion of motor. The settings of Amplitude determines
the final result. When running for the first time, set up vibration
amplitude at lower level at the beginning of fine tuning process.
Please note that too small a value of vibration amplitude may fail
the calculation of valid control gain.
Step 4: Advanced setup
Steps described above are basic setting. Most common users may
skip to Step 5 directly.
Certain advanced setting are provided to improve success rate
including: Data length, Hysteresis and sampling time.
80Motion Control Theory
PCI-8254 / PCI-8258
(1) Data length :You may set up data length to determine number
of PID controller's gain value to be calculated by the program.
Gain values come out of PID controllers differ from each other as
a result of varied measurements and errors cause by other factors
despite they are of the same system and algorithm. A quantified
index is provided to validate the calculation results. Here the
average of PID controller gain values is displayed in the final value
window of MCP2 while its standard deviation is shown in MCP2's
Fluctuation window as the criteria for determining successful
calculation. Take example. If data length is set at 200, then the
program will calculate average and standard deviation (or change
rate) of 200 PID gain values. The calculation is set to be
completed with relative correctness in case the standard deviation
(or change rate) is smaller than 10%.
(2) Hysteresis :This setup is aimed at reducing the standard
deviation described earlier to unify outcome from each calculation
as consistent as possible. Take example. As shown in table below
the value of standard deviation declines with increasing Hysteresis
range. On the contrary, a PID controller with larger Hysteresis
ranges may lead to smaller system band and slower system
response as shown in table below. In either case it is ensured that
the controller can keep the system in specific performance range
as shown in table below where phase margin is equal to 60
degree.
Hysteresis
1505.1237.8872.3782260
2504.0876.3831.84518.860
3502.7184.3131.18317.760
4503.0564.8801.27716.560
KP gains
Standard
deviation (%)
KI gains
Standard
deviation (%)
KD gains
Standard
deviation (%)
Band width
(Hz)
Phase margin
(degree)
(3) Sampling time : Set up sampling time of the encoder and may
affect the calculation outcome. Results of different sampling time
are given in table below where system bands are roughly the
same while the standard deviations are reduced and Phase
margin of 60 degrees remains complaint with system specification.
Sampling
time
5004.9187.6342.2982260
3003.5625.5801.57423.860
2002.5523.9701.15423.860
1001.0871.7070.47823.860
KP gains
standard
deviation (%)
KI gains
Standard
deviation (%)
KD gains
Standard
deviation (%)
Band
width (Hz)
Phase
margin
(degree)
Motion Control Theory 81
In case the auto regulation failed we may try to increase
Hysteresis range for better success rate at the expense of overall
system band. System band and phase margin can be measured
with the Bode plot provided by this control card. See later chapters
for detail.
Step 5: Start up the auto fine tuning procedure
Press the Start tuning bottom to begin the auto fine tuning
procedure and the motor starts vibrating. You may press the
Tuning stop bottom to interrupt the process in case any problem is
encountered in the tuning process.
Step 6: end of the auto fin tuning procedure
Once the auto fin tuning procedure is completed, you may find the
final values and their corresponding fluctuations of proportion,
integral and differential gains calculated by the said procedure in
the Result field. Ideally the smaller the fluctuation is the better the
final convergence will be. You may find out the best combination of
vibration amplitude and fluctuation by trial and error. Press the Set
final bottom to set PID control gain to the control card. Please note
the feedforward control gain and filter stop working after you do
this.
Step 7: PID controller performance test
To be on the safer side, please adjust PRA_ERR_POS_LEVEL to
lower level before testing the results derived from auto fine tuning
to prevent damages to the machine caused by position error.
• Why the auto fine tuning process stops
a The process is stopped as the Tuning stop bottom is
pressed by user.
b The limit signal (PEL/MEL), warning (ALM) or emer-
gency stop signal (EMG) is triggered.
c The position deviation amount exceed offset limit set-
tings. You may avoid this by set the limit to greater value.
d The program stops automatically in case the fluctuation
value (standard deviation) is greater than 10%. You may
increase the Hysteresis range for better success rate.
82Motion Control Theory
PCI-8254 / PCI-8258
Figure 4-6: The auto fine tuning setup page in MCP2
Table 4-3: PCI-8254/8 Auto-Tuning setup
SetupDescriptionsSetup rangeDefault
Offset limit
Deviation Limit
AmplitudeSet up vibration amplitude of
AxisDesignate axis for running
Data length
Data Length
HysteresisHysteresis range
Sampling time
(Cycle Time)
The maximum difference
between position command
and feedback. The program
stops when this value is
exceeded and ignored it if it is
set to zero.
(UOM: pulse)
output signal
(UOM: Volt)
auto fine tuning procedure
Calculate required hysteresis
range
(UOM: pulse)
Encoder sampling time
(UOM: micro-second)
>=02000
0~101
0~70
>0200
>050
100~1000500
Motion Control Theory 83
4.2.3Manual Servo Tuning
Manual fine tuning is still necessary for satisfying different needs.
You may change three controller parameters manually:
Proportional gain, KP, Integral gain, KI and Derivative gain, KD.
You may change velocity or acceleration feedforward gain as
required. The manual fine tuning procedure can be executed in
the PID setup page of signal sampling function in
MotionCreatorPro 2. The manual fine tuning procedure can be
executed in steps described below:
Step 1:
Set up KI to zero and KP and KD with initial values, e.g. set value
of KP to 1 and KD to 100. Start motor motion, adjust KD to greater
value and observe the error position signal, in case of vibration
decrease KD value until vibration situation disappears.
Step 2:
Increase KP value gradually to bring down the position error
signal. Similarly vibration situation may appear when KP value is
getting too high. If this happens, bring down the KP value until
vibration situation disappears. You may encounter the overshoot
phenomenon. Increase KD value until overshoot situation
disappears then you can increase KP value. In general, for
actuator in torque control mode the KP value is one fourth of that
of the KD one.
Step 3:
Before adjusting KI value, please note watch carefully the integral
limit settings as this will affect the effect of integral control.
Increase KI value gradually to being down the ready state error to
zero step by step. When there is vibration encountered, decrease
KI value until there is no vibration any more.
Step 4:
Eventually you may increase velocity /acceleration feedforward
gain step by step to higher up response speed furthermore.
Please note that this may lead to overshoot phenomenon. After
manual final tuning you may use filters to improve high frequency
noise encountered when turning off the motor. For design and use
of filter, please refer to Section 4.2.4.
84Motion Control Theory
PCI-8254 / PCI-8258
4.2.4Filter
A filter is designed to pass signal of certain band and attenuate all
signals outside of this band. This controller supports two general
purpose Biquad filter for each axis as shown in Figure 4-6 while
the table below indicates corresponding axis parameters against
biquad filter. Mathematical formula for biquad filter is shown below
Here and is the input and output of biquad filter 0,
and and is the input and output of biquad filter 1.
Commonly available filters are low pass filter and notch filter and
will be reviewed in later sections. You may design filters of
combinations of various coefficients to meet requirements of
different signal processings.
Motion Control Theory 85
)(kR)(kX
)(kY)(kR
Figure 4-7: Structure of PCI-8254/8 biquad filters in serial connection
Relevant axis parameters can be found in table below: