cad

SmartMotor™ User's Guide

SmartMotor™ User's Guide
1 / 126 PagesView full catalog

SmartMotor™ User's Guide

Product catalog summary
SmartMotor Overview
The SmartMotor is an integrated servo control system combining a controller, amplifier, and encoder within a servo motor. It operates using power and either an internal program or external serial commands. Key motion parameters include target position, maximum velocity, and acceleration, managed by a PID filter for precise control.
Motion Control Functions
The motor's controller uses a PID filter to maintain position, updating over 4,000 times per second. It can dynamically adjust position, velocity, and acceleration, follow encoder signals, interpolate positions, and perform complex contours with external coordination.
System Control Functions
The SmartMotor can be programmed in a BASIC-like language, offering flexibility and potentially eliminating the need for a PLC. It supports various I/O functions for interaction with peripherals like sensors and other SmartMotors.
Communication Functions
Standard communication ports include RS-232 and RS-485, with options for networks like CANopen, DeviceNET, and Ethernet. Commands are interpreted from ASCII text, with serial commands taking priority over internal program commands.
I/O Functions
The SmartMotor's I/O ports offer digital and analog capabilities, with each I/O point having a pre-assigned variable name for programming.
Quick Start Guide
To operate the SmartMotor, you need a SmartMotor, a compatible computer, a DC power supply, a data cable, and host software. The SMDEVPACK is recommended for first-time users, including necessary cables and software.
Software Installation
Install the SMI software from a CD-ROM or download from the Animatics website. After installation, restart the computer before running the SMI program.
SmartMotor Interface (SMI)
The SMI software connects SmartMotors to a computer, allowing direct control and monitoring. Users can write and download programs into the SmartMotor's memory.
Learning the SMI Interface
The SMI main screen includes a menu, Configuration Window, Information Window, and Terminal Window. Users can monitor motor status via the "Motor View" tool and redefine limit inputs if necessary.
Initiating Motion
Instructions are provided for setting acceleration, velocity, and position to initiate motor movement. Users can write and save programs using the SMI program editing window, with guidance on transmitting programs to the SmartMotor.
Tuning the Motor
The document explains PID filter tuning to improve motor performance, including adjusting proportional, derivative, and integral gains.
Creating Motion and Program Flow
Detailed commands for creating motion and managing program flow are listed, including setting acceleration, velocity, and position, as well as program execution and subroutine management.
Variables and Reporting Commands
Information on variable storage, EEPROM pointers, and reporting commands is provided, along with encoder and pulse train following instructions.
Inputs and Outputs
The document covers RS-232 port functions, general I/O functions, and the AnaLink port using I2C and RS-485 protocols.
Communications
Communication protocols such as RS-232 and RS-485 are discussed, including daisy chaining and setting motor addresses. Commands like SADDR#, SLEEP, WAKE, and ECHO are explained for managing communication states.
Programming
The programming section includes commands for motion control, such as setting acceleration (A=), velocity (V=), and position (P=). It explains the use of commands like G (Go), S (Stop), and X (Decelerate) for motion execution.
PID Filter and Current Limit Control
The PID filter section discusses tuning for optimal control, while the current limit control section provides commands for managing motor current limits to prevent damage.
Motion Creation
Detailed instructions are provided for creating motion, including setting absolute and relative positions, and using binary data transfer for efficient communication.
Contouring Mode
The contouring mode allows for complex motion profiles using G-Code interfaces. It enables multiple SmartMotors to perform linear, circular, and helical interpolations, facilitating advanced multi-axis motion control.
Key Considerations
The document emphasizes the importance of clearing errors before executing certain commands, the impact of encoder counts on motion parameters, and the need for careful management of motor limits to avoid damage.
SmartMotor Q Command Response
The SmartMotor responds to the Q command with a 249-byte format, providing status, clock, and buffer space information.
Delta Calculations
Position and time data differences, or "deltas," are calculated with time deltas limited to 16 bits and position deltas to 23 bits.
Status Byte Construction
The status byte indicates various conditions such as mode pending, running, invalid deltas, data space errors, and buffer overflows or underflows.
Trajectory Termination
Trajectories terminate on position errors, invalid data, or buffer issues.
Motion Creation Example
Illustrates byte values for constant speed motion segments.
Addressing SmartMotors
Addressing bytes differentiate motors on a network, with a global address option for synchronized data transmission.
Brake Commands
Commands like BRKRLS and BRKENG control brake engagement.
Mode Torque Brake (MTB)
MTB dynamically brakes the motor when off, stopping it abruptly.
Software Limits
Software limits act as virtual switches to interrupt motion if the motor exceeds operational boundaries.
Program Flow Control
Commands like RUN and RUN? manage program execution. GOTO# and C# labels redirect flow, with up to 1000 labels available for program structuring.
Program Execution and Control
The document discusses the use of GOTO and END commands in programming, emphasizing that any program can be structured with a single GOTO for better organization.
Subroutines and Interrupts
Subroutines are managed using GOSUB# and RETURN commands, allowing code reuse and better readability.
Conditional Statements
The document explains the use of IF, ELSE, and ELSEIF commands for conditional testing, with examples provided.
Looping Structures
WHILE and LOOP commands are used for creating loops, with the BREAK command available to exit loops prematurely.
Waiting and Timing
The TWAIT command is used to pause execution during motor movement, while the WAIT command pauses execution for a specified number of sample periods.
Variables and Arrays
Variables in the SmartMotor language are 32-bit signed integers, stored in volatile memory.
Array Variables
The document describes the use of array variables in SmartMotor programming, which can be 8-bit, 16-bit, or 32-bit signed integers.
Buffer Setup
A buffer is used to store data temporarily while the SmartMotor processes it.
Variable Storage
SmartMotors use EEPROM for long-term data storage, which can be accessed using specific commands.
Fixed Variables
The document lists several fixed variables that provide access to SmartMotor functions, such as current position, velocity, and temperature.
Variable Space Restrictions
Certain SmartMotor functions use specific variable spaces, which can impact user programming.
Reporting Commands
A variety of commands are available to report the status and data from the SmartMotor, including position, velocity, and error statuses.
Modes of Operation
The SmartMotor supports several modes of operation, including Follow, Step and Direction, and Cam modes, which allow for advanced control and synchronization with external signals.
SmartMotor Modes and Commands
Mode Follow (MF1, MF2, MF4): Allows the SmartMotor to follow an external encoder with selectable resolutions.
MF0, MS0 Commands
Used to track encoder or step signals without directly following them.
Ratio Commands (MFDIV, MFMUL)
Set the ratio divisor and multiplier for mode follow, allowing for a floating-point ratio calculation.
Encoder and Pulse Train Following
The SM2315D lacks quadrature encoder following capability.
Mode Cam (MC)
Simulates cam motion electronically by programming a cam profile into the SmartMotor.
Cam Mode Commands
CI re-initializes cam parameters at zero crossover, CX provides the current cam index.
Dynamic Cam Reprogramming
Allows changes to cam parameters like Dwell, BASE, and SIZE during operation.
Encoder Select (ENC0, ENC1)
ENC1 uses an external encoder for servoing, while ENC0 defaults to the internal encoder.
System State Flags
Binary values indicating system states, which can be tested and reset using RB and Z commands.
Reset System State Flags
Commands like Za, Zb, and ZS reset specific state flags, ensuring the system does not repeatedly act on the same occurrence.
I/O Points
The SmartMotor provides seven I/O points (UA, UB, UC, etc.) with multiple functions, including digital input/output, analog input, and external encoder inputs.
Specifications
The SmartMotor supports TTL digital inputs/outputs (0 to 5 volts) and 10-bit analog inputs (0 to 1023).
Commands and Functions
The document lists commands for configuring ports, such as setting ports to input or output, reading digital and analog inputs, and controlling motor functions.
Communication Protocols
The document details the use of AniLink (I2C protocol) for expanding digital and analog I/O capabilities.
Interfacing and Expansion
The document discusses interfacing with external devices using AniLink and RS-485, including the use of additional I/O cards and peripheral devices like LCD displays and push-wheel banks for user interfaces.
Best Practices
Recommendations include designing systems such that +5V is OFF and 0V is ON to prevent unintended activation of external devices upon power-up.
Limitations
The document notes that certain features, such as secondary RS-485 and AniLink, are not available on all models.
Printers and Communication
The document provides an example program for transmitting messages between devices, specifically SmartMotors.
PID Filter Control
The document explains the PID (Proportional, Integral, Derivative) filter used in SmartMotors for precise control of brushless D.C. servomotors.
Tuning the PID Filter
Tuning involves increasing the proportional coefficient (KP) for system stiffness, adjusting the derivative coefficient (KD) for stability, and setting the integral coefficient (KI) to compensate for friction.
Current Limit Control
The document discusses setting a current limit to prevent damage to mechanisms by limiting the motor's torque output.
SMI Software
The document outlines the capabilities of the SMI software, which facilitates communication with SmartMotors, program creation, and testing.
Configuration Window
The Configuration Window is crucial for organizing multiple SmartMotor systems.
Program Editor
The SMI Program Editor is used for writing and editing SmartMotor programs.
Information Window
This window displays program status and errors.
Serial Data Analyzer
This tool provides a detailed view of data exchanged between the PC and SmartMotor, useful for debugging communications.
Motor View
The Motor View Window offers real-time monitoring of motor parameters.
Monitor and Chart View
These tools allow users to create custom monitors and graphical representations of data.
Macros
Users can create macros to associate commands with keyboard shortcuts, streamlining development processes.
Tuner
The SMI Tuner simplifies the tuning of SmartMotors by graphically displaying step responses and allowing parameter adjustments to improve motor performance.
SMI Options and Help
The software offers customization options and a comprehensive help facility for accessing detailed information on SMI functions.
Appendix A - ASCII Character Set
This section explains the ASCII character set used for data interchange.
Binary Data Explanation
The document concludes with an explanation of binary data, describing how bits are organized to represent more complex data structures.
Binary Data Representation
A byte consists of 8 bits, each with a value that is double the previous one, starting from 1.
Status Byte Encoding
The status byte in a SmartMotor uses each bit to represent different statuses.
Binary Operators
The document explains the use of binary operators "&" (AND) and "|" (OR) to manipulate binary data.
Code Optimization Examples
Examples are provided to demonstrate how using binary operators can shorten and speed up code execution.
Command Reference
The document includes an extensive list of commands related to SmartMotor operations.
Technical Document Summary
1. Specifications and Commands
This section lists various commands used for controlling and monitoring motor operations.
2. Example Programs
This section provides example programs for various motor operations.
3. Appendices
Appendix C: Detailed list of commands for motor control.
Appendix D: Data variables memory map.
Appendix E: Example programs illustrating various motor control scenarios.
Specifications and Parameters
- KP=200: Increase stiffness from default.
- KD=1000: Increase dampening from default.
- A=100: Set maximum acceleration.
- V=1000000: Set maximum velocity.
- P=1000000: Set final position.
- MP: Set Position Mode.
- F: Activate new tuning parameters.
- UB=1: Preset future output value.
- UBO: Set I/O B to output, high.
Procedures
- Start motion with 'G'.
- Use a loop to continue motion while a condition is met (e.g., @P<250000).
- Stop motion if voltage drops below 18.5 volts.
- Measure command execution time by comparing loop times.
Norms and Recommendations
- Double space indentation within conditional statements or loops for readability.
- Use shadow variables for setting F= commands to avoid clearing other bits.
Example Programs
- SmartMotor motion control with voltage monitoring.
- Command execution time measurement.
- Custom parser with checksum for command differentiation and communication verification.
F= Commands
- F=1: Decelerate to stop on limit trigger.
- F=2: Reverse shaft direction.
- F=4: Redirect prints to channel 1.
- F=8: Clear PID integral term at trajectory end.
- F=16: Use relative positioning in CAM mode.
- F=32: Call subroutine C1 on faults.
- F=64: Trigger subroutine C2 on low transitions of port G.
- F=128: Reset values in Relative Cam Mode.
See more

Catalog excerpts

SmartMotor™ User's Guide-1

The Series 4 User's Guide > Revision 5 size="-1">

 Open the catalog to page 1
SmartMotor™ User's Guide-2

Animatics SmartMotor is patented by US Patent # 5,912,541. ҩ2001, 2002, 2003, 2004, 2005, 2007, 2008 Animatics Corp. All rights reservedAnimatics SmartMotor Series 4 User's Guide, Revision 5.This manual, as well as the software described in it, is furnished under license and may be used or copied only in accordance with the terms of such license. The content of this manual is furnished for informational use only, is subject to change without notice and should not be construed as a commitment by Animatics Corporation. Animatics Corporation assumes no responsibility or liability for any errors...

 Open the catalog to page 2
SmartMotor™ User's Guide-3

Motion Control Functions 7 System Control Functions 7 Communication Functions 8 I/O Functions 8 > PID Filter 79 Software Installation 10 SmartMotor Background 10 A quick look at the SmartMotor Interface 11 > Creating Motion 21 Program Flow 31 Variables 39 Reporting Commands 43 Encoder and Pulse Train Following 47 System State Flags 55 Inputs and Outputs 57 Communications 69 The > SMI Software 85 SMI Projects 85 Terminal Window 85 Configuration Window 86 Program Editor 86 Information Window 87 Serial Data Analyzer 87 Motor View 88 >

 Open the catalog to page 3
SmartMotor™ User's Guide-4

Continued from preceding page Monitor Window 88 Chart View 89 Macros 89 Tuner 90 SMI Options 92 SMI Help 92 > Commands 101 Changing speed upon digital input 116 Pulse output upon a given position 117 > Data Variables Memory Map 111 > Example Programs 113 Moving back and forth 113 Moving back and forth with watch 113 Homing against a hard stop 114 Homing to the index 114 Analog Velocity 115 Long term variable storage 116 Look for errors and print them 116 >

 Open the catalog to page 4
SmartMotor™ User's Guide-5

Stop motion if voltage drops 117 Measuring command execution time 118 Custom parser with checksum 1 19 >

 Open the catalog to page 5
SmartMotor™ User's Guide-6

This page has been intentionally left blank. 6 >

 Open the catalog to page 6
SmartMotor™ User's Guide-7

SmartMotor is an entire servo control system built inside of a servo motor. It includes a controller, an amplifier and an encoder. All that is required for it to operate is power, and either an internal program, or serial commands from outside (or both). To make the SmartMotor move, the program or serial host must state a target position, a maximum velocity at which to travel to that target, and a maximum acceleration. Once these three parameters are set, a "Go" signal, or statement will start the motion profile. > The controller portion of the SmartMotor performs many functions. When the motor...

 Open the catalog to page 7
SmartMotor™ User's Guide-8

programs can define interactions between the I/O, the SmartMotor's shaft motion and also other peripherals like Sensors, Light Curtains, Bar Code Readers, etc., even other SmartMotors. RP ", for example, the current position is output in the form of ASCII text to the main channel, regardless of whether the request was made over the main channel serial network, or by internal program. If a request for data arrives from the secondary serial channel, or other serial network, however, the data is reported to that channel. The SmartMotor uses both Spaces and Carriage Returns as delimiters. > SmartMotors...

 Open the catalog to page 8
SmartMotor™ User's Guide-9

In order to make the SmartMotor run, the following will be needed at a minimum:1. A SmartMotor 2. A computer running MS Windows 95/98, 2000, NT or XP 3. A DC power supply for those SmartMotors that requre DC voltage. 4. A data cable to connect the SmartMotor to the computer's serial port or serial adapter.5. Host level software to communicate with the SmartMotorThe rst time user of the SM1700 through SM3400 series motors should purchase the Animatics SMDEVPACK. It includes the CBLSM1-10 data and power cable, the SMI software, the manual and a connector kit.The CBLSM1-10 cable (right) is also...

 Open the catalog to page 9
SmartMotor™ User's Guide-10

Connecting a SM2320D SmartMotor using a CBLSM1-10 cable assembly and PS24V8A power supply > Follow standard procedures for software installation using either the Animatics SMI CD-ROM or les downloaded from the Animatics Website at www.animatics.com.After the software is installed, be sure to reset your computer before running the SMI program.With the SMI Software loaded and your SmartMotor connected as shown above, you are ready to start making motion. Turn the SmartMotor's power on and start the SMI Program. > The SmartMotor is an entire Servo Control System in a single component. Of course,...

 Open the catalog to page 10
SmartMotor™ User's Guide-11

Every SmartMotor has an ASCII interpreter built in. It is not necessary to use > The SmartMotor Playground allows the user to immediately begin making motion without having to know anything about the programming. The SMI software connects a SmartMotor, or a series of SmartMotors to a com-puter or workstation and gives a user the capability to control and monitor the status of the motors directly from a standard computer. SMI also allows the user the ability to write programs and download them into the SmartMotors long- term memory.For the bene t of the rst-time user, the SMI software starts with...

 Open the catalog to page 11
SmartMotor™ User's Guide-12

MotorView gives you a window into the status of a SmartMotor > "Close" button at the bottom and launch the SMI development software. > The SMI main screen shows a menu section accross the top, a Configuration Window on the left, an Information Window and a Terminal Window in the center colored blue.With your motor connected and on, click on the purple Information Window. If the motor is not found, check your connections and make sure the serial port on your PC is operational. located mid way on the toolbar. If everything is connected and working properly, the motor should be identified in the...

 Open the catalog to page 12
SmartMotor™ User's Guide-13

To get the motor to make a trajectory, enter the following into the Terminal . A=100 sets the Acceleration V=1000000 ёsets the maximum Velocity P=300000 sets the target Absolute Position G ёGo, initiates motor movement After the nal G command has been entered, the SmartMotor will accelerate up to speed, slew and then decelerate to a stop at the absolute target position. The progress can be seen in the MotorView . > In addition to taking commands over the serial interface, SmartMotors can run programs. To begin writing a program, press the 1000000 Scaled Counts/Sample= about 1860 RPM for SM2300...

 Open the catalog to page 13

All Moog GmbH - Niederlassung Memmingen catalogs and technical brochures

  1. product catalog

    52  Pages

  2. M6S

    1  Page

  3. PSC

    1  Page

  4. SL17406D

    2  Pages

  5. SM23216MH

    5  Pages

  6. SM23166MT

    5  Pages

  7. SM23305D

    2  Pages

  8. SM23165DT

    2  Pages

  9. SM23165MT-IP

    2  Pages

  10. SM23205D

    2  Pages

  11. SM23375D

    2  Pages

  12. SM23405D

    2  Pages

  13. SM23375DT

    2  Pages

  14. SM34165D

    2  Pages

  15. SM34205D

    2  Pages

  16. SM34165DT

    2  Pages

  17. SM34165MT-IP

    2  Pages

  18. SM34305D

    2  Pages

  19. SM34405D

    2  Pages

  20. SM34505D

    2  Pages

Archived catalogs

*Prices are pre-tax. They exclude delivery charges and customs duties and do not include additional charges for installation or activation options. Prices are indicative only and may vary by country, with changes to the cost of raw materials and exchange rates.