The reader should consult National Instruments if errors are suspected. In no event shall National Instruments be liable for any damages arising out of or related to this document or the information contained in it.
Page 4
These classes are known as Class A (for use in industrial-commercial locations only) or Class B (for use in residential or commercial locations). All National Instruments (NI) products are FCC Class A products. Depending on where it is operated, this Class A product could be subject to restrictions in the FCC rules. (In Canada, the Department of Communications (DOC), of Industry Canada, regulates wireless interference in much the same way.) Digital...
About the 7340 Controller ...1-1 Features...1-1 Hardware ...1-1 RTSI ...1-2 What You Need to Get Started ...1-2 Software Programming Choices ...1-3 National Instruments Application Software ...1-3 Optional Equipment ...1-3 Motion I/O Connections ...1-4 Chapter 2 Configuration and Installation Software Installation ...2-1 Controller Configuration...2-1...
Page 6
Contents Onboard Programs and Buffers ... 4-5 Host Communications ... 4-5 Chapter 5 Signal Connections Motion I/O Connector ... 5-1 Motion Axis Signals... 5-4 Limit and Home Inputs ... 5-5 Wiring Concerns... 5-6 Limit and Home Input Circuit ... 5-6 Encoder Signals...
About This Manual Related Documentation The following documents contain information you might find helpful as you read this manual: • • • NI 7340 User Manual NI-Motion User Manual NI-Motion C Reference Help NI-Motion VI Reference Help viii ni.com...
Additionally, the 7340 analog inputs can provide feedback for loop closure. RTSI The 7340 supports the National Instruments Real-Time System Integration (RTSI) bus. The RTSI bus provides high-speed connectivity between National Instruments products, including image acquisition (IMAQ) and data acquisition (DAQ) products.
C code for custom data acquisition, test, and measurement and automation solutions. NI-Motion includes a series of sample programs for using LabWindows/CVI with National Instruments motion control hardware. Optional Equipment National Instruments offers a variety of products for use with the 7340 controller, including the following accessories: • •...
Chapter 1 Introduction For more specific information about these products, refer to the National Instruments catalog, the National Instruments Web site at ni.com Motion I/O Connections The external motion and digital I/O connectors on the 7340 are high-density, 68-pin female VHDCI connectors.
Page 14
Configuration and Installation not use it until service-trained personnel can check its safety. If necessary, return the device to National Instruments for repair. Keep away from live circuits. Do not remove equipment covers or shields unless you are trained to do so. If signal wires are connected to the device, hazardous voltages can exist even when the equipment is turned off.
Page 15
Remove power from signal lines before connection to or disconnection from the device. Caution National Instruments measurement products may be classified as either Installation Category I or II. Operate products at or below the Installation Category level specified in the hardware specifications.
Chapter 2 Configuration and Installation Hardware Installation Install the 7340 in any open compatible expansion slot in the PXI or PCI system. Appendix A, Specifications, lists the typical power required for each controller. The following instructions are for general installation. Consult the computer user manual or technical reference manual for specific instructions and warnings.
Page 19
Chapter 3 Hardware Overview 1 Identification Number Used in Australia 2 Symbol Indicating FFC Compliance 1 RTSI Connector 2 Serial Number Label 3 Symbol to Alert User to Read the Manual 4 Symbol Indicating FFC Compliance 5 Identification Number Used in Australia NI 7340 User Manual 3 Symbol to Alert User to Read the Manual Figure 3-2.
I/O connector. The PCI-7340 RTSI connector provides up to eight triggers to facilitate synchronization between multiple National Instruments products. The PXI-7340 RTSI-enabled connection provides up to eight triggers and one PXI star trigger to facilitate synchronization between multiple National Instruments PXI-enabled products.
Chapter 4 Functional Overview Embedded Real-Time Operating System (RTOS) The embedded firmware is based on an embedded RTOS kernel and provides optimum system performance in varying motion applications. Motion tasks are prioritized. Task execution order depends on the priority of each task, the state of the entire motion system, I/O or other system events, and the real-time clock.
Chapter 4 Functional Overview øA 32-Bit Encoder øB Interface Index Trajectory Generator øA 32-Bit Encoder Optional Interface Index The 7340 supports axes with secondary output resources, such as DACs for servo axes or stepper outputs. Defining two output resources is useful when controlling axes with multiple motors, such as gantry systems in which two DAC outputs can be configured with different torque limits and/or offsets.
Page 26
Chapter 4 Functional Overview The communications status register (CSR) provides bits for communications handshaking as well as real-time error reporting and general status feedback to the host PC. The move complete status (MCS) register provides instantaneous motion status of all axes. NI 7340 User Manual ni.com...
Chapter 5 Signal Connections Motion Axis Signals The following signals control the servo amplifier or stepper driver. • • • Do not connect these outputs to anything other than a +5 V circuit. The output Caution buffers will fail if subjected to voltages in excess of +5.5 V. NI 7340 User Manual Analog Output <1..4>—These 16-bit DAC outputs are typically the servo command outputs for each axis.
Limit and home inputs are a per axis enhancement on the 7340 and are not required for basic motion control. These inputs are part of a system solution for complete motion control. National Instruments recommends using limits for personal safety, as well as to Caution protect the motion system.
Encoder Signals The 7340 offers four channels of single-ended quadrature encoder inputs. All National Instruments power drives and UMI accessories provide built-in circuitry that converts differential encoder signals to single-ended encoder signals. Each channel consists of a Phase A, Phase B, and Index input, as described in the following sections.
Chapter 5 Signal Connections of the relative signal phases provide distinct pulse edges that cause count up or count down pulses in the direction determined by the leading phase. A typical encoder with a specification of N (N = number) lines per unit of measure (revolutions or linear distance) produces 4 ×...
3.05 m (10 ft). Shielded, 24 AWG wire is the minimum recommended size for the encoder cable. Cables with twisted pairs and an overall shield are recommended for optimized noise immunity. All National Instruments power drives and UMI accessories provide built-in circuitry that converts differential encoder signals to single-ended encoder signals.
Chapter 5 Signal Connections 3.3 kΩ From the external connector encoder input pins Trigger Inputs, Shutdown Input, and Breakpoint Outputs The 7340 offers additional high-performance features in the encoder FPGA. The encoder channels have high-speed position capture trigger inputs and breakpoint outputs. These signals are useful for high-speed synchronization of motion with actuators, sensors, and other parts of the complete motion system: •...
Chapter 5 Signal Connections From the external connector shutdown pin Analog Inputs The 7340 has the following ADC input signals: • NI 7340 User Manual 3.3 kΩ 1 kΩ 1/8 W Figure 5-6. Shutdown Input Circuit 3.3 kΩ To the external connector breakpoint pins Figure 5-7.
Chapter 5 Signal Connections Other Motion I/O Connection The 7340 provides Host +5 V, which is the internal +5 V supply of the host computer. It is typically used to detect when the host computer is powered and to shut down external motion system components when the host computer is turned off or disconnected from the motion accessory.
Chapter 5 Signal Connections The 32-bit digital I/O port is configured in hardware as four 8-bit digital I/O ports. The bits in a port are typically controlled and read with byte-wide bitmapped commands. All digital I/O lines have programmable direction and polarity. Each output circuit can sink and source 24 mA.
Page 45
Appendix A Specifications Servo command analog outputs Stepper Performance Trajectory update rate range ...62.5 to 500 µs/sample Multi-axis synchronization ...<1 update sample Position accuracy Double-buffered trajectory parameters Stepper outputs Assumes a PID update rate of 250 µs and a 2,000-count encoder. NI 7340 User Manual Voltage range...±10 V Resolution...16 bits (0.000305 V/LSB)
Page 47
Appendix A Specifications Trigger inputs Breakpoint outputs Inhibit/enable output NI 7340 User Manual Minimum pulse width...1 ms with filter enabled; Control...Individual enable/disable, stop on Number of inputs...4 (Encoders 1 through 4) Voltage range...0 to 5 V Input low voltage...0.8 V Input high voltage...2 V Polarity ...Programmable, active-high Minimum pulse width...100 ns...
Page 49
Appendix A Specifications RTSI Trigger lines...8 Maximum Power Requirements +5 V (±3%)...1 A +12 V (±3%)...30 mA –12 V (±3%) ...30 mA Power consumption ...5.7 W Physical Dimensions (Not Including Connectors) PXI-7340 ...16 × 10 cm (6.3 × 3.9 in.) PCI-7340...17.5 ×...
Appendix A Specifications Electromagnetic Compatibility Emissions...EN 55011 Class A at 10 m Immunity ...EN 61326:1997 + A2:2001, EMC/EMI ...CE, C-Tick, and FCC Part 15 Note For EMC compliance, you must operate this device with shielded cabling. CE Compliance This product meets the essential requirements of applicable European Directives, as amended for CE marking, as follows: Low-Voltage Directive (safety)...73/23/EEC Electromagnetic Compatibility...
Page 55
Appendix C Technical Support and Professional Services If you searched your local office or NI corporate headquarters. Phone numbers for our worldwide offices are listed at the front of this manual. You also can visit the Worldwide Offices section of office Web sites, which provide up-to-date contact information, support phone numbers, email addresses, and current events.
Page 57
16-bit DAC voltage output application programming interface axis unit that controls a motor or any similar motion or control device Axis <1..4> Forward axis 1 through 4 forward/clockwise limit switch Limit Input Axis <1..4> Home axis 1 through 4 home input Input Axis <1..4>...
Page 59
Glossary encoder device that translates mechanical motion into electrical signals; used for monitoring position or velocity in a closed-loop system encoder resolution number of encoder lines between consecutive encoder indexes (marker or Z-bit). If the encoder does not have an index output, the encoder resolution can be referred to as lines per revolution.
Page 60
(limit switch, home switch, and so on) in active state. If these switches are active-low they are said to have inverting polarity. interrupt request kilo—the standard metric prefix for 1,000, or 10 measure such as volts, hertz, and meters kilo—the prefix for 1,024, or 2...
Page 61
Noise corrupts signals you are trying to send or receive. noninverting polarity of a switch (limit switch, home switch, and so on) in active state. If these switches are active-high, they are said to have non-inverting polarity.
Page 63
Glossary relative position destination or target position for motion specified with respect to the current location regardless of its value relative position mode position relative to current position ribbon cable flat cable in which the conductors are side by side revolutions per minute—units for velocity RPSPS or RPS/S revolutions per second squared—units for acceleration and deceleration...