Vention's Tech Docs

How To Guide

Using MachineLogic to Program Your Machine

This how-to-guide covers the use of Vention’s MachineLogic, an easy-to-use visual sequence editor for MachineMotion automation applications.

Using MachineLogic to Program Your Machine main image.


This guide covers the setup and use of Vention’s MachineLogic. MachineLogic is a visual programming and simulation tool dedicated to the creation of MachineMotion applications. It provides a simplified programming experience and is compatible with Vention's plug-and-play automation components.

After reading this guide, you will be ready to deploy custom motion and control applications using Vention’s MachineLogic controller. We recommended reading the MachineMotion Quick Start Guide to get familiar with the technology before you proceed.

Connectivity Setup

MachineMotion has two communication ports. Both use IP connectivity and have their own distinct IP addresses:

  • USB (static IP for Windows, for Mac/Linux)

Use the USB port for direct computer-to-MachineMotion connectivity (see Figure 1).

Figure 1: MachineMotion front panel.

Accessing MachineLogic from your MachineMotion controller

MachineLogic can be accessed directly from a web browser—no installation necessary. Note that MachineLogic can also be accessed directly from MachineBuilder.

To access MachineLogic:

  1. Connect your MachineMotion controller to a 90–120 V alternating current (AC) power source
  2. Flip the main power switch to power-on the unit
  3. Connect the MachineMotion USB cable to your computer
  4. Open a web browser (we recommend Google Chrome for guaranteed compatibility)
  5. Wait 90 seconds
  6. Go to MachineLogic (

Basic Control

To modify configurations so that commands sent to the controller are accurately translated into physical motion, add an axis and change the parameters in Configuration (see Figure 2).

Figure 2: Adding and configuring an axis

  • Configuration settings
    • Gain: Defines how much linear travel occurs for a single motor shaft rotation.
      • Timing-belt actuator: 150 mm/turn
      • Ballscrew actuator: 10 mm/turn
      • Rotary indexer: 85 degrees/turn
    • Motors: Defines which direction the motor turns. Select counterclockwise to change the direction of motion
    • Micro Steps: Defines "step" of stepper motor when rotating. Micro-stepping is a technique that improves the positional accuracy and controls vibrations.
      • Default micro-stepping value: 8

For each axis in your MachineLogic, you can add an Application for each unique routine. Each application can have one or more subroutines called Sequences. The sequences in each application can be triggered individually or they can be called within a sequence at a specified step.

Select Add application to create a new MachineMotion application, and select the type of the first sequence (see Figure 3).

Figure 3: Creating a new application in MachineLogic

  • Sequence types
    • Sequence: Sequence is executed once
    • Loop: Sequence is executed a specified number of times
    • Forever: Sequence is executed in a loop, indefinitely

Select Add sequence and add instructions to be executed sequentially by the MachineMotion controller (see Figure 4).

Figure 4: MachineLogic new sequence

There are several types of movement instructions that you can add to your sequence:

  • Movement operations
    • Home: Moves the carriage of the corresponding axis to its home location
    • Stop All Motion: Stops motion along all axes
    • Move Absolute: Sets all position commands with respect to the home location
    • Move Relative: Sets position commands relative to the current position of the linear axis
    • Set Speed: Configures coasting speed of the linear axis
    • Set Acceleration: Configures acceleration of the linear axis
    • Set Indexer Angle: Configures angle of rotation of indexer

A list of all the MachineLogic instructions that can be added is shown in Figure 5.

Figure 5: MachineLogic instructions

Within an application, you can add other sequences that are called in your main sequence, like I/O triggers (see Figure 6).

Figure 6: Adding an I/O trigger sequence

When you have completed your sequence, there are several execution and deployment options (see Figure 7).

Figure 7: MachineLogic execution and deployment options

Once you are prepared to run your sequence, press the Play button. While your sequence runs, green indicates an active operation and red indicates a paused operation (see Figure 8).

Figure 8: MachineLogic execution


Figure 9 shows an example of steps performed along with the appropriate instruction input to MachineLogic.

Figure 9: MachineLogic example

Comments (0)