Page 1
PCI-1240 4-Axis PCI Stepping/Pulse-type Servo Motor Control Card PCI-1240U 4-Axis Universal PCI Stepping/ Pulse-type Servo Motor Control Card User Manual...
Page 2
Acknowledgments PC-LabCard is a trademark of Advantech Co., Ltd. IBM and PC are trademarks of International Business Machines Corporation. MS-DOS, ®...
Page 3
Product Warranty (2 years) Advantech warrants to you, the original purchaser, that each of its prod- ucts will be free from defects in materials and workmanship for two years from the date of purchase. This warranty does not apply to any products which have been repaired or...
Page 4
Step 1. Visit the Advantech web site at www.advantech.com/support where you can find the latest information about the product. Step 2. Contact your distributor, sales representative, or Advantech's cus- tomer service center for technical support if you need additional assistance. Please have the following information ready before...
Page 8
Figure E.1:Wiring Diagram with Mitsubishi MR-J2S Se- ries Motor Driver 60 Figure E.2:Wiring Diagram with Oriental LIMO EZMC Series Motor Driver 61 Figure E.3:Wiring Diagram with Panasonic MINAS-A Series Motor Driver 62 Figure E.4:Wiring Diagram with Yaskawa SGDM Series Motor Driver 63 PCI-1240/PCI-1240U User Manual viii...
Page 9
Introduction This chapter introduces PCI-1240 and PCI-1240U and lists their features and detailed specifications.
For advanced applications, we supply Windows DLL drivers and user-friendly examples to decrease your pro- gramming load. Moreover, through a free bundled PCI-1240 motion util- ity, you can complete configuration and diagnosis easily. 1.1 Features...
Page 11
• "Go home” functions (PCI-1240U only) • Universal PCI Bus for both 3.3 and 5 V PCI slots (PCI-1240U only) The Advantech PCI-1240/PCI-1240U offers the following main features: Individual Control for 4 Axes Each of the four axes has identical function capabilities, and is controlled by the same method of operation with constant speed, trapezoidal or S-curve driving.
Page 12
Each axis has two 32-bit compare registers for logical position counter and real position counter. The comparison result can be read from the sta- tus registers. The comparison result can be notified by an interrupt signal. These registers can be also functioned as software limits. PCI-1240/PCI-1240U User Manual...
Driving by External Signal It is possible to control each axis by external signals. The +/- direction fixed pulse driving and continuous driving can be also performed through the external signals. This function is used for JOG or teaching modes, and will share the CPU load.
1.3 Installation Guide Before you install your PCI-1240/PCI-1240U card, please make sure you have the following necessary components: • PCI-1240 or PCI-1240U DAS card • PCI-1240/PCI-1240U’s User Manual • Driver Software Advantech PCI-1240/PCI-1240U DLL drivers (Included in the com- panion CD-ROM) •...
Page 15
Installation This chapter gives users a package item checklist, proper instructions about unpacking and step-by-step procedures for both driver and card installation.
Chapter 2 Installation 2.1 Unpacking After receiving your PCI-1240/PCI-1240U package, please inspect its contents first. The package should contain the following items: PCI-1240/PCI-1240U card Companion CD-ROM (DLL driver included) User’s Manual The PCI-1240/PCI-1240U card harbors certain electronic components vulnerable to electrostatic discharge (ESD). ESD could easily damage the integrated circuits and certain components if preventive measures are not carefully paid attention to.
2.2 Driver Installation We recommend you to install the driver before you install the PCI-1240/PCI-1240U card into your system, since this will guarantee a smooth installation process. The 32-bit DLL driver Setup program for the card is included on the companion CD-ROM that is shipped with your DAS card package.
Figure 2.1: The Setup Screen of Advantech Automation Software Step 3: Select the PCI-1240/PCI-1240U DLL Drivers option. Step 4: Select the proper Windows OS option according to your operating system. Just follow the installation instructions step by step to complete your DLL driver setup.
Figure 2.2: Different options for Driver Setup Step 5: Then setup the PCI-1240/PCI-1240U Motion Utility automati- cally. For further information on driver-related issues, an online version of Software Manual is available by accessing the following path: Start\Advantech Automation\Motion\PCI-1240\ The example source codes could be found under the corresponding instal-...
Step 4: Touch the metal part on the surface of your computer to neutralize the static electricity that might be on your body. Step 5: Insert the PCI-1240/PCI-1240U card into a PCI slot. Hold the card only by its edges and carefully align it with the slot. Insert the card firmly into place.
Page 21
Signal Connections This chapter provides useful informa- tion about how to connect input and output signals to the PCI-1240/PCI- 1240U via the I/O connector.
BoardID setting is useful for identifying each card’s unique device number. We set the BoardID switch of PCI-1240/PCI-1240U to 0 at the factory. If you need to adjust it to another number, set SW1 by referring to Table 3.3.
Page 24
Table 3.1: PCI-1240/PCI-1240U I/O Connector Signal Description (part 1) Signal Name Reference Direction Description Input External Power (12~24VDC) Input Emergency Stop (for all axes) XLMT+ Input + Direction Limit at X axis XLMT- Input - Direction Limit at X axis...
Table 3.1: PCI-1240/PCI-1240U I/O Connector Signal Description (part 2) Signal Name Reference Direction Description XOUT6 Output General Output at X axis (Server on) XOUT7 Output General Output at X axis (Reset) XP+P Output Output pulse CW/Pulse+ of X-axis XP+N Output...
Table 3.1: PCI-1240/PCI-1240U I/O Connector Signal Description (part 3) Signal Name Reference Direction Description UALARM Input Servo Error at U axis UECAP Input Encoder Phase A at U axis UECAN Input Encoder Phase A at U axis UECBP Input Encoder Phase B at U axis...
Figure 3.2: Location of Jumpers and DIP switch on PCI-1240/PCI-1240U Table 3.2: BoardID register Board ID register Base Add.+12h Abbreviation BDID3 BDID2 BDID1 BDID ID0: the least significant bit (LSB) of Board ID ID3: the most significant bit (MSB) of Board ID Table 3.3: BoardID setting...
3.3 Output Pulse Definition (nP+P, nP+N, nP-P, nP-N) The output pulse command of PCI-1240/PCI-1240U is from MCX314/ MCX314AS chip. The pulse command has two types. One is in Up/Down mode and another is in Pulse/Direction mode. While nP+P is differential from nP+N and nP-P is differential from nP-N.
The following figure 3-4 and 3-5 show the examples of input circuitry connection for both photo coupler and motor driver respectively. Figure 3.4: Photo Coupler Input Interface Figure 3.5: Line Driver Input Interface Chapter 3...
VEX DC12~24V will source the photo cou- pler, and then the nLMTP in MCX314/MCX314AS will be low level. This enables the over traveling function if the desired level of nLMTP is set to low. Figure 3.7: Circuit Diagram for Movement Limit Input Signals PCI-1240/PCI-1240U User Manual...
The response time of this circuit should take about 0.2 ~ 0.4 msec because of the delay of photo coupled and RC filter. The following figure 3-8 is an example of photo sensor used in the case of over traveling limit switch input.
When servo drives have an abnormal condition, they active this signal to note PCI-1240/PCI-1240U to stop output pulses. When enable the nALARM function of PCI-1240/PCI-1240U, the D14 bit of RR2 will set to 1 after nALARM active. If PCI-1240/PCI-1240U is driving pulses out- put, the output pulses will stop immediately when nALARM active.
Figure 3.11: Circuit Diagram of Encoder Feedback From the circuit diagram above, PCI-1240/PCI-1240U use high speed photo coupler for isolation. The encoder output can be differential mode or open-collector mode. When n***P is high and n***N is low, the real feedback signal (n***) to MCX314/MCX314AS is low.
Figure 3.12: Example of Connection Diagram for Differential-output Line Driver The following figure is an example of connection for the encoder with open-collector output. Figure 3.13: Example of Connection for Open Collector Output Encoder PCI-1240/PCI-1240U User Manual...
3.9 External Pulse Control Input (nEXOP+, nEXOP-) The pulses output function of MCX314/MCX314AS chip is controlled by register setting or by external pulse command input (nEXOP+, nEXOP-). There are two output pulse mode for the external control pin. One is fixed pulse output mode, and the other is continuous output mode.
3.11 External Power Input (VEX) External power is necessary for all input signals of each axis. Please apply DC12~24V voltage as your need. Current consumption of each point for input signal is DC12V = 3.3 mA, DC24V = 7 mA. PCI-1240/PCI-1240U User Manual...
When the interrupt occurs from MCX314/MCX314AS, the interrupt sig- nal of MCX314/MCX314AS will be changed from high to low. Because the PCI bus interrupt is high level sensitive, the PCI-1240/PCI-1240U inverse the signal and latch the signal to adapt the PCI bus INTA. The Fig- 3.17 shows the interrupt structure of the PCI-1240/PCI-1240U.
3.13 Connection Examples for Motor Drivers 3.13.1 Connection to Step Motor Drivers The following figure is an example of PCI-1240/PCI-1240U connected to 5-phase micro-step motor drives, KR515M manufactured by TECHNO company. Figure 3.18: Example of Connecting to KR515M Drive Note...
Page 39
The following figure is an example of PCI-1240/PCI-1240U connected to UPK step drive manufactured by ORIENTAL company. Figure 3.19: Example of Connecting to UPK Step Drive Note The differential pulse output of PCI-1240/PCI- 1240U is connected to CW/CCW input of UPK drive.
3.13.2 Connection to Servo Motor Drivers The figure shown below is an example of PCI-1240/PCI-1240U con- nected to MINAS X series AC servo motor drive. Figure 3.20: Example of MINAS X series AC servo Motor Drive Note The servo drive must be set in pulse-control drive mode and the type of pulse input is CW/CCW mode.
3.14 Field Wiring Considerations When you use the PCI-1240/PCI-1240U to acquire data from outside, noises in the environment might significantly affect the accuracy of your measurements if due cautions are not taken. The following measures will helpful to reduce possible interference running signal wires between sig- nal sources and the PCI-1240/PCI-1240U.
• Output pulses (nP ± P, nP ± N) for drive control and general purpose output signals (nOUT4 ~ 7) for I/O control will be determined after 250 nsec from power on reset. • User can access PCI-1240/PCI-1240U only after 500 nsec from power- on reset. 3.15.2 Individual Axis Driving Figure 3.22: Timing diagram of Individual Axis Driving...
3.15.3 Interpolation Driving Figure 3.23: Timing diagram of Interpolation Driving • After interpolation command is enable, the first pulse will be outputted in 775 nsec. • If using pulse/direction mode, direction signal (nP-P) is valid in ± 125 nsec of high-level pulse signal. 3.15.4 Input Pulse Timing Quadrature Pulse of Encoder Input Figure 3.24: Timing diagram of Quadrature Pulse of Encoder Input...
µ SEC + 2 pulses will be output, and then stopped. Deceleration/Stop Instruction Figure 3.29: Timing diagram of Deceleration/Stop Instruction • When the Deceleration/Stop instruction is issued during driving, at most two pulses will be output, and then stopped. PCI-1240/PCI-1240U User Manual...
(PCI-1240U only) This is a special design for the customers who can use the position com- pare output to synchronize with other vision devices. For PCI-1240, the position compare output channels are nOUT4 and nOUT5, and it is open- collector type output. In which the nOUT4 and nOUT5 represent the different direction of position compare separately.
A.2 Digital Input/Output Input Signals Over Travel- nLMT+ and nLMT- ing Limit Switch Input* External nIN1 ~ 3 Deceleration/ Instantaneous Stop Signal Input Signal for nALARM (servo alarm); nINPOS (position Servo Motor command completed) Drives* Emergency EMG - one emergency stop input Stop Max.
Cycle Max. Input Frequency 1 MHz Input Voltage 2 V DC max. High Min.: PCI-1240: 10 V DC PCI-1240U: 5 V DC Max. 30 V DC Protection 2,500 V DC Isolation Protection A.4 External Signals Driving Input Signal nEXOP+, nEXPO- Max.
A.5 Other Functions Position Range of Command -2,147,438,648 ~ Counter Position Counter (for +2,147,438,647 output pulse) Range of Actual Posi- -2,147,438,648 ~ tion Counter (for input +2,147,438,647 pulse) Comparison COMP+ Register Range -2,147,438,648 ~ Register +2,147,438,647 COMP- Register Range -2,147,438,648 ~ +2,147,438,647 Can be used for software over traveling limit Interrupt Func-...
Appendix C Register Structure and Format C.1 Overview The PCI-1240/PCI-1240U is delivered with an easy-to-use 32-bit DLL driver for user programming under Windows operating system. We advise users to program the PCI-1240/PCI-1240U using 32-bit DLL driver provided by Advantech to avoid the complexity of low-level programming by register.
Table C.1: PCI-1240/PCI-1240U WRITE register function Write Address (Hex.) Symbol Register Name Content Command Register Settings for axis assignment and command XWR1 X Axis Mode Register 1 Enable/disable deceleration and set YWR1 Y Axis Mode Register 1 deceleration level. Z Axis Mode Register 1 ZWR1 Enable/disable interrupt for each axis.
Page 58
Table C.2: PCI-1240/PCI-1240U WRITE register format Base Add. D15 D14 D13 D12 D11 D10 D9 Command Register: WR0 RESET Axis Assignments Command Code Mode Register 1: WR1 ≥ ≥ D-END C-STA C-END P C+ P < C+ P < C- P...
Page 59
Table C.3: PCI-1240/PCI-1240U READ register function Read Address (Hex.) Symbol Register Name Content Limit switch status, driving status, ready Main status register for interpolation, quadrant for circle interpolation, and the stack of BP XRR1 X Axis Status Register 1 YRR1...
Page 60
Table C.4: PCI-1240/PCI-1240U READ register format Base Add. 15 Main Status Register: RR0 BPSC1 BPSC0 ZONE2 ZONE1ZONE0CNEXT I-DRV U-ERR Z-ERR Y-ERR X-ERR U-DRV Z-DRV Y-DRV Z-DRV Error Status of Each Axis Driving Status of Each Axis Status Register 1: RR1...
C.3 MCX314/MCX314AS WRITE Registers: WR0 ~ WR7 The PCI-1240/PCI-1240U registers from WR0 (Base Add. + 0) to WR7 (Base Add. + E) are the same as mapping registers on MCX314/ MCX314AS chip, and please refer to MCX314/MCX314AS user’s man- ual Section 4.3 ~ Section 4.9 for detailed information.
A/B phase pulse input The following table indicates the external signal routing path. The external signals generate the pulses to drive the motor are connected to the pins nEXOP+ and nEXOP- (Please refer to the pin assignment). PCI-1240/PCI-1240U User Manual...
U-axis C.6 MCX314/MCX314AS READ Registers: RR0 ~ RR7 The PCI-1240/PCI-1240U registers from RR0 (Base Add. + 0) to RR7 (Base Add. + E) are the same as mapping registers on MCX314/ MCX314AS chip, and please refer to MCX314/MCX314AS user’s man- ual Section 4.10 ~ Section 4.15 for detailed information.
This bit indicates whether interrupt occurred or not. 1 means that an interrupt has occurred. C.8 Board ID Register: BDID BDID shows the Board ID of the PCI-1240/PCI-1240U. Table C.11: Board ID Register: BDID - Read BASE +12 Base Add. 15...
Appendix E Wiring with Third-Party Motor Drivers Figure E.1: Wiring Diagram with Mitsubishi MR-J2S Series Motor Driver PCI-1240/PCI-1240U User Manual...
Need help?
Do you have a question about the PCI-1240 and is the answer not in the manual?
Questions and answers