SmartMotor Proposition
The Animatics SmartMotor is an integrated motor system that combines programmability, networking, I/O, and servo performance to control entire machines. It offers advantages such as reduced development time, lower production costs, and simplified machine design compared to traditional systems.
SmartMotor Theory of Operation
The SmartMotor integrates a controller, amplifier, and encoder within a servo motor. It operates using power and either an internal program or external serial commands. Key functions include motion control, system control, and communication, supporting protocols like RS-232, RS-485, CANopen, and DeviceNet.
Motion Control Functions
The controller manages position, velocity, and acceleration, updating the PID filter up to 16,000 times per second for precise motion control.
System Control Functions
SmartMotors can be programmed in a BASIC-like language, interacting with I/O, sensors, and peripherals, often eliminating the need for a PLC.
Communication Functions
Standard communication ports include RS-232 and RS-485, with options for other networks. Commands are interpreted from ASCII text, allowing for networked configurations.
I/O Functions
The I/O ports offer digital and analog capabilities, with programmable options for isolated 24V I/O, enhancing flexibility.
Design Tricks to Leverage SmartMotor Value
SmartMotors reduce development time, lower production costs, and simplify machine design, enabling faster time-to-market and reduced expenses.
Overview of SmartMotor Capabilities
SmartMotors enhance machine efficiency with real-time monitoring and diagnostics, self-monitoring voltage, current, and temperature, facilitating quick troubleshooting.
Standardization and Maintenance
SmartMotors are interchangeable, simplifying maintenance and minimizing downtime and costs.
Requirements for OperationNecessary components include a SmartMotor, a computer with MS Windows, a DC
power supply, a data cable, and SMI software. The Animatics SMDEVPACK-D is recommended for first-time users.
Power Supply Considerations
Different power supplies are available based on motor class, with higher voltages providing more torque and speed. Special care is needed in applications that can back-drive the motor.
Software Installation and Interface
The SMI software allows control and monitoring of SmartMotors, providing a user-friendly interface for programming and monitoring motor status.
Programming and Motion Control
SmartMotors execute motion commands through parameters like acceleration, velocity, and position, with real-time adjustments facilitated by the SMI software.
Tuning and Performance
The all-digital design allows stable performance across a wide range of parameters, with tuning refined using the PID filter and software utilities.
Command Structure
Commands allow detailed control over motor operations, enabling precise trajectory and performance control.
Specifications and Commands
Includes formulas for converting acceleration and velocity, target velocity and position settings, motion commands, modes of operation, brake commands, and commutation modes.
Commutation Modes
Includes MDE, MDS, and MDC modes, each requiring angle match for activation.
Synchronized Motion
Combitronic capability allows synchronized motion using CAN network, with commands for multi-axis moves.
Program Flow Control
Commands like RUN, GOTO, and GOSUB manage program flow, with best practices for organizing code.
Subroutines and Conditional Statements
Subroutines enhance code readability and structure, while conditional statements and looping constructs provide flexible program execution paths.
Switch-Case Structure
Offers a cleaner alternative to multiple ELSEIF statements, directing program flow based on variable states.
Program Flow Control
Commands like TWAIT and WAIT synchronize program execution with motor actions.
Stack Management and Interrupt Programming
Stack commands manage subroutine nesting, while interrupts allow immediate response to status changes.
Error Handling
Interrupt routines handle errors effectively, with mechanisms for global actions in multi-axis applications.
Pause and Resume
PAUSE and RESUME commands control program execution without affecting interrupt handling.
Variable Management
Variables are 32-bit signed integers stored in volatile memory, with options for non-volatile storage.
Variables and Mathematical Operations
Details integer and floating-point operations, array management, EEPROM usage, and system status management.
Specifications and Procedures
Outlines functionalities of a Class 5 SmartMotor, focusing on programmable limit switch capabilities and I/O port functions.
Motion Mode Status
Supports various motion modes, with commands for reporting active modes.
Functions of I/O Ports
Highly flexible, allowing control beyond motion to manage entire machines.
I/O Expansion and Communication
Discusses I2C I/O expansion capabilities and communication methods.
Key Parameters and Limitations
Specifies voltage levels, current capacities, and configuration options for I/O ports.
Recommendations and Best Practices
Use appropriate commands for configuring I/O ports and be aware of specific functions and limitations.
Connector Specifications
Outlines specifications for various connectors, including I/O and CAN connectors.
Communication Methods
Includes I/O, I2C, RS-485, RS-232, and CAN protocols.
Connecting to a Host
Default communication mode is RS-232, with options for RS-485.
Daisy Chaining and Addressing
Multiple SmartMotors can be daisy-chained, with unique addresses set using the ADDR= command.
RS-485 Communication
Allows multiple SmartMotors to connect to a single host port, with proper biasing required for extensive networks.
Data Handling
Handles data in Command or Data Mode, with a FIFO buffer for incoming data.
Programming and Error Handling
Includes examples of programming sequences for communication and error handling.
Applications
SmartMotor can interface with various devices, with example programs for motion control.
ASCII Code Handling
Explains ASCII code usage for converting characters into numbers.
CAN Communications
Supports various protocols over the CAN port, with configuration commands.
Combitronic Technology
Allows SmartMotors to communicate and share resources over a CAN network.
I2C Communications
Highlights I2C capabilities with examples of communication with devices like EEPROMs.
PID Control System
Explains the PID control system used in SmartMotors for accurate position control.
PID Control Overview
Details PID control parameters and their roles in maintaining system stability and performance.
Proportional Parameter (KP)
Crucial for system stiffness and control, adjusted for stability.
Derivative Parameter (KD)
Dampens system instability, requiring careful tuning.
Integral Parameter (KI)
Compensates for friction, ensuring target position is reached.
Additional Parameters
Includes Gravity Offset, Velocity Feed Forward, and Acceleration Feed Forward.
PID Rate and Current Limit Control
Adjustable PID update rate and current limits to prevent damage.
Follow Mode (Electronic Gearing)
Allows a motor to follow an external encoder signal or internal clock.
Advanced Motion Control
Includes commands for managing dwell times and repeat gearing profiles.
Motion Control Overview
Instructions on configuring and operating motion profiles using a Class 5 SmartMotor.
Specifications and Commands
Includes MFSDC command, cam mode, and advanced motion features.
Limits and Fault Handling
Commands for setting position error limits, velocity limits, and fault handling.
Example Program
Demonstrates setting up a cam table and executing motion commands in Cam Mode.
SMI Projects
Organizing elements as a Project is beneficial for applications involving multiple SmartMotors.
Terminal Window
Real-time interface with the SmartMotor for command input and data retrieval.
Configuration Window
Displays current configuration and provides access to specific ports and motors.
Program Editor
SmartMotor programs are written in the SMI Program Editor, highlighting recognized commands.
Information Window
Displays program status and errors, which can be corrected directly in the Program Editor.
Serial Data Analyzer
Provides a detailed view of data exchanged between the PC and SmartMotor.
Motor View
Allows real-time monitoring of motor parameters.
Monitor Window
Enables creation of customized monitors for specific items.
Chart View
Allows for graphical data monitoring and visual representation of motion parameters.
Macros
Allows association of commands with shortcut keys.
Tuner
Simplifies tuning of SmartMotors by graphically displaying step responses.
SMI Options
Customization options include firmware version selection.
SMI Help
Offers extensive help resources accessible via the main toolbar.
SMI Trace Functions
Allows for program tracing, providing insights into program execution and motor status.
Program Control and Execution
Outlines controls for program execution within a software environment.
Trace and Step Modes
Different trace modes capture program execution data.
ASCII and Binary Data
Explains ASCII as a standard for character encoding and binary data operations.
Command Descriptions
Comprehensive list of commands detailing their functions.
Binary Operations and Efficiency
Examples demonstrate how binary operations optimize code execution.
Appendices
Includes ASCII character set, binary data operations, and a detailed command list.
Specifications
Commands for obtaining and setting hardware index positions, PID settings, and communication channel configurations.
Procedures
Commands for initiating program downloads, enabling/disabling interrupts, and controlling motor operations.
Norms and Standards
Specifies IEEE 32-bit format for floating-point values and memory map for data variables.
Recommendations
Best practices for setting PID parameters and configuring communication channels.
Data and Tables
Includes a memory map table for integer array memory.
Program Examples
Includes example programs demonstrating SmartMotor functionalities.
Moving Back and Forth
Describes a basic program for motor movement with TWAIT commands.
Homing Procedures
Details two homing methods using the motor's power levels and position errors.
Analog Velocity Control
Example program for tracking analog input with a dead-band feature.
Long Term Variable Storage
Explains EEPROM usage for data storage with memory limitations.
Error Handling
Subroutine example for detecting and printing error status bits.
Status Words
Includes tables of status words for system diagnostics.
Critical Information
Includes memory limitations, error monitoring, and system diagnostics.
Appendix F: Status Words Overview
Details indicators for multiple trajectory support, cam support, user bits, and I/O status.