Application NotesTechnical Documentation & Guides

Networking

EtherCAT Motion Control with Trio Controllers

Guide to configuring and optimizing EtherCAT networks for multi-axis motion control using Trio Motion Technology controllers.

TM-AN-001Trio Motion EngineeringJanuary 2024

Overview

EtherCAT has become the de facto standard for high-performance motion control networks, offering deterministic communication with cycle times under 1ms. Trio Motion Technology controllers provide native EtherCAT master functionality, enabling seamless integration with EtherCAT servo drives, I/O modules, and other slave devices. This guide covers network design, configuration, and optimization for multi-axis motion systems.

Trio EtherCAT Master Architecture

Trio controllers (MC4N, MC664, Flex-6 Nano) include built-in EtherCAT master ports that scan and configure the network automatically at startup. The controller handles all network management, Distributed Clocks synchronization, and error recovery without additional hardware or software licenses.

  • Automatic network scanning and slave configuration
  • Distributed Clocks synchronization with sub-microsecond accuracy
  • Hot-connect support for dynamic slave addition/removal
  • Built-in network diagnostics and error counters

Network Design Best Practices

EtherCAT uses a line (daisy-chain) topology with up to 100m Cat5e cable between nodes. For multi-axis systems, place drives in the order of their physical location to simplify wiring. Use EtherCAT junction modules for star or tree topologies when linear cabling is impractical.

Cycle Time Optimization

The EtherCAT cycle time determines the motion control update rate. Trio controllers support cycle times from 250µs to 4ms. Shorter cycle times provide better dynamic response but require more processing bandwidth. For most servo applications, a 1ms cycle time provides an excellent balance of performance and stability.

Minimum cycle time ≈ (N × 2.5µs) + 100µs overhead, where N is the number of slaves. A 16-axis system requires approximately 140µs of network time per cycle.

Typical Applications

  • Multi-axis coordinated motion
  • High-speed pick-and-place
  • CNC and laser processing
  • Packaging machinery

Related Products

MC4N • MC664 • Flex-6 Nano

Programming

TrioBASIC Programming for Motion Applications

Introduction to TrioBASIC programming language for creating motion control applications on Trio controllers, including program structure, motion commands, and debugging.

TM-AN-002Trio Motion EngineeringMarch 2024

Overview

TrioBASIC is Trio Motion Technology's proprietary programming language designed specifically for motion control applications. Based on BASIC syntax with powerful motion-specific extensions, TrioBASIC enables rapid development of complex motion programs. Programs run directly on the controller, providing deterministic execution without the need for an external PC.

Program Structure

TrioBASIC programs are organized into processes that can run concurrently on the controller. Each process can control one or more axes independently:

  • Up to 14 concurrent processes (model dependent)
  • Each process runs in its own time slice within the servo cycle
  • Processes can communicate via global variables and TABLE data
  • Priority-based scheduling with deterministic execution
  • AUTORUN capability for automatic program startup

Motion Commands

TrioBASIC provides a comprehensive set of motion commands that abstract the underlying servo drive communication. Commands include MOVE, MOVEABS, MOVECIRC for basic moves, and CAM, CONNECT, and MOVELINK for synchronized motion. All commands are axis-aware and support multi-axis coordination through the BASE and AXIS directives.

Debugging with Motion Perfect

Motion Perfect is Trio's IDE for TrioBASIC development. It provides real-time variable watching, breakpoint debugging, oscilloscope plotting, and program upload/download. The scope feature is particularly valuable for tuning motion profiles—it can capture position, velocity, following error, and current data synchronized to the servo cycle.

Typical Applications

  • Custom machine motion sequences
  • Multi-axis coordinated motion
  • Electronic line shafting
  • Registration and print mark correction

Related Products

All Trio Motion controllers

Motion Control

Multi-Axis Coordination and Path Planning

Advanced techniques for coordinating multiple axes in Trio controllers including interpolated moves, path blending, and electronic cam/gear relationships.

TM-AN-003Trio Motion EngineeringJune 2024

Overview

Modern automation machines often require tight coordination between multiple motion axes to perform complex operations like contouring, synchronized dispensing, or robotic manipulation. Trio controllers provide built-in multi-axis coordination features including linear and circular interpolation, electronic camming and gearing, and path blending for smooth continuous motion.

Linear and Circular Interpolation

Trio controllers support 2D and 3D interpolated motion where multiple axes move along a calculated path. Linear interpolation moves along straight lines, while circular interpolation (MOVECIRC) traces arcs in any plane. The path planner automatically calculates individual axis trajectories to maintain the programmed feedrate along the path.

  • MOVE and MOVEABS for linear interpolation (up to 32 axes)
  • MOVECIRC for circular arcs in 2D
  • MHELICAL for helical interpolation (arc + linear)
  • Programmable feedrate override (0-300%)
  • Automatic acceleration/deceleration at path start/end

Electronic Camming

The CAM command links a follower axis to a master position via a user-defined cam table stored in the controller TABLE memory. Cam tables support up to 65,536 points with cubic spline interpolation for smooth motion at any speed. Cams can be linked, reversed, and phase-shifted during operation.

CAM table resolution: position accuracy = travel / (N-1) where N is the number of cam points. For ±1µm accuracy over 100mm travel, use at least 100,001 points.

Path Blending and Look-Ahead

For continuous motion along a series of moves, path blending eliminates stops between segments. Trio controllers use look-ahead planning that examines upcoming moves and calculates optimal velocity at blend points. This is essential for CNC, laser cutting, and dispensing where stopping between moves creates defects.

Typical Applications

  • CNC machining and routing
  • Laser cutting and welding
  • Dispensing and coating
  • Robotic path planning

Related Products

MC4N • MC664 • Flex-6 Nano