This application example helps you getting started to command a Triamec drive.
Offline (default): Run the application without a connected drive using a simulation.
Connected: Connect and move a real axis with a Triamec drive.
No hardware is needed when running the application as Offline.
To command a real axis, you need a Triamec drive with a motor and encoder connected and configured with a stable position controller. Connect the drive by Tria-Link, USB or Ethernet.
This project is made and built with Microsoft Visual Studio.
In addition you need TAM Software installation.
For the Offline mode, simply clone the repository, open the solution and hit run.
Connected mode:
- The Hardware needs to be configured correctly and needs to be connected.
- Make sure the TAM System Explorer is not connected to the drive, or simply close it.
- Open the solution and hit run.
This application is a command-line tool that guides the user through the setup and control of a TAM (Triamec Advanced Motion) system using a state machine. The user can choose between running the application in simulation mode or with connected hardware. The application walks the user through the following steps:
- AddTopology: Initializes the system topology, either in simulation or with real hardware.
- ChoseStation: Detects all available stations and prompts the user to select one.
- ChoseAxis: Lists all axes of the selected station and lets the user choose an axis to control.
- ReceiveCommands: User can execute various commands depending on whether the axis is enabled or disabled:
- Enable Axis, Disable Axis, Change Distance, Change Speed, Change Axis, Restart System, Move Left and Move Right
All user interactions and state transitions are managed by a state machine, ensuring a clear and guided workflow for configuring and controlling the TAM system.