Vention's Tech Docs

How To Guide

Programming from the 3D MachineBuilder

This how-to-guide covers the use of Vention’s MachineLogic, an easy-to-use visual sequence editor that can be accessed directly from MachineBuilder.

Programming from the 3D MachineBuilder main image.

Introduction

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 simulate custom motion and control applications on MachineBuilder.

Basic Control

Note that there must be a MachineMotion controller in your design to access MachineLogic. Select the MachineLogic icon on the right panel of MachineBuilder to open the visual editor.

Modify the configuration settings so that each axis is linked to the correct motors and sensors. Control components are highlighted when you select them (see Figure 2).



Figure 2: Adding and configuring an axis


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 (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

Comments (0)