Application Notes / Trio Motion / TrioBASIC Programming for Motion Applications

Programming

TrioBASIC Programming for Motion Applications

TrioBASIC is Trio's own language for motion control. The syntax is BASIC with motion commands added on top, so you can get a complex motion program running fast without learning a new paradigm.

Bravo Automation Technologies is an authorized distributor of Trio Motion multi-axis motion controllers and serves customers in the Upper Midwest (North Dakota, South Dakota, Iowa, Missouri, Illinois, Minnesota, Indiana, Wisconsin and Michigan). Browse the Trio Motion product page.

TM-AN-002Trio Motion EngineeringMarch 2024

Overview

Programs run on the controller itself, which makes execution deterministic and means you don't need a PC connected once it's deployed.

Program Structure

TrioBASIC programs are split into processes that run concurrently on the controller. Each one can drive one or more axes on its own:

  • 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

The motion commands hide the servo drive communication underneath. MOVE, MOVEABS, and MOVECIRC handle basic moves; CAM, CONNECT, and MOVELINK handle synchronized motion. Every command is axis-aware, and you set which axes it acts on with the BASE and AXIS directives.

Debugging with Motion Perfect

Motion Perfect is Trio's IDE for TrioBASIC. You get live variable watching, breakpoint debugging, oscilloscope plotting, and program upload and download. The scope is the part you'll lean on when tuning motion profiles. It captures position, velocity, following error, and current, all 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. See them on the Trio Motion page or ask us for a quote.

View the original resource

Tell us what you are building

We will help you pick the right Trio Motion part and quote it.