Support
0
Cart
Sign In
vention-logo
  • Design
    MachineScope icon
    MachineScope Define project requirements
    MachineBuilder icon
    MachineBuilder Design your machine
    Automate
    MachineLogic icon
    MachineLogic Program code-free
    MachineApps icon
    MachineApps Out-of-the-box software
    Order & Deploy
    MachinePortal icon
    MachinePortal Track orders & collaborate
    MachineCloud icon
    MachineCloud Deploy & monitor remotely
    Watch a demo
    Learn about our platform
    • Applications by Factory Floor
      View Vention designs by factory floor area
    • Applications by Industry
      View Vention designs by industry
    • Why automate with Vention?
      Learn about the proven benefits of automating with Vention.
    Learn more about applications
    Manufacturing
    • Bin Picking
    • Gantry Systems & Path Following
    • Machine Tending
    • Robot 7th Axis
    • Robot Pedestals & Bases
    • Sanding & Surface Finishing
    • Safety Enclosures
    Assembly
    • Jigs & Fixtures
    • Pick & Place
    • Shelves & Racks
    • Timing Belt Conveyors
    • Workstations
    Material Handling
    • AGV Top Modules
    • Conveyors
    • Industrial Carts
    Packaging
    • Box Erecting
    • Cartesian Palletizer
    • Cobot Palletizer
    • Case Packing
    • Industrial Robot Palletizer
    Learn more about applications
    Food & Beverage
    • Box Erecting
    • Case Packing
    • Cobot Palletizer
    • Industrial Robot Palletizer
    Automotive
    • AGV Top Modules
    • Gantry Systems & Path Following
    • Industrial Carts
    • Jigs & Fixtures
    Aerospace & Defense
    • Industrial Carts
    • Jigs & Fixtures
    • Machine Tending
    • Robot 7th Axis
    Medical
    • Machine Tending
    • Pick & Place
    • Robot 7th Axis
    • Timing Belt Conveyors
    Electronics
    • Pick & Place
    • Robot Pedestals & Bases
    • Timing Belt Conveyors
    • Workstations
    Industrial
    • Conveyors
    • Machine Tending
    • Robot Pedestals & Bases
    • Workstations
    Job Shop
    • Machine Tending
    • Robot 7th Axis
    • Robot Pedestals & Bases
    • Sanding & Surface Finishing
    Robotics
    • Bin Picking
    • Robot 7th Axis
    • Robot Pedestals & Bases
    • Safety Enclosures
    Fast ROI

    With Vention productized applications and self-deployment options, eliminate non-recurring cost and accelerate return on investment

    Field Proven

    Vention applications are built with hardware and software technology that have been deployed tens of thousands times

    Dependable

    Gain access to best-in-class automation expertise in one-click with dedicated customer service team and on-demand remote support options

    Future Proof

    With over 100 engineers continuously developing the Vention platform, your application will be supported over the long run

    Why Automate

    Manufacturing automation, simplified

    Scalable automation applications, built on rock-solid foundations Application Overview
  • Designs Library
    All designs
    Explore Official Designs

    Customizable Template

    Find a customizable design for your specific need, designed by Vention experts.
    Explore Official Designs
    Discover Community Designs

    Design Inspiration

    Discover design inspiration, created by Vention community members.
    Discover Community Designs
  • Hardware Technology
    MachineMotion icon
    MachineMotion Plug & play machine control
    MachineFrame icon
    MachineFrame Modular extrusion profiles
    Actuators icon
    Actuators Linear & rotary motion
    Hardware Library
    Browse all parts
    • Structural & Framing
    • Frame Accessories
    • Fixtures & Tooling
    • Panels and Table Tops
    • Robot Mounting
    • Robot End-of-Arm Tools
    • Robots
    • Safety
    • Wheels
    • Linear Motion
    • Rotary Motion
    • Pneumatics
    • Material Handling
    • Controls & Motors
    • Software
    • Cabling
    • Fasteners
    • Consumables
    • Tools
    • Merchandise
  • Resources
    • Resource Center
    • Customer Stories
    • Video Tutorials
    • Webinars
    • Blog
    Tools
    • ROI Calculator
    • Friction Joint Calculator
    • Deflection Calculator
    • Palletizing App
    • Path Following App
    • Factory Acceptance Checklist
    • Site Acceptance Checklist
    Community
    • Community Overview
    • Top Designers
    • Forum
    • Gallery
    Services
    • Support Packages
    • Technical Support
    • FAQ
    Connect
    • About Us
    • Press
    • Contact Us
    • Careers
    • Events
    • Vention Experience Center
    Tutorials
    Navigating MachineBuilder
    Navigating MachineBuilder Take a tour of Vention's Cloud-CAD platform, MachineBuilder
    All tutorials
vention-logo
Sign In Get Support

Platform

  • MachineScope icon
    MachineScope Define project requirements
  • MachineBuilder icon
    MachineBuilder Design your machine
  • MachineLogic icon
    MachineLogic Program code-free
  • MachineApps icon
    MachineApps Out-of-the-box software
  • MachinePortal icon
    MachinePortal Track orders & collaborate
  • MachineCloud icon
    MachineCloud Deploy & monitor remotely
Sign In Get Support

Application

Applications by Factory Floor

  • Bin Picking
  • Gantry Systems & Path Following
  • Machine Tending
  • Robot 7th Axis
  • Robot Pedestals & Bases
  • Sanding & Surface Finishing
  • Safety Enclosures
  • Jigs & Fixtures
  • Pick & Place
  • Shelves & Racks
  • Timing Belt Conveyors
  • Workstations
  • AGV Top Modules
  • Conveyors
  • Industrial Carts
  • Box Erecting
  • Cartesian Palletizer
  • Cobot Palletizer
  • Case Packing
  • Industrial Robot Palletizer
Sign In Get Support

Applications by Industry

  • Box Erecting
  • Case Packing
  • Cobot Palletizer
  • Industrial Robot Palletizer
  • AGV Top Modules
  • Gantry Systems & Path Following
  • Industrial Carts
  • Jigs & Fixtures
  • Industrial Carts
  • Jigs & Fixtures
  • Machine Tending
  • Robot 7th Axis
  • Machine Tending
  • Pick & Place
  • Robot 7th Axis
  • Timing Belt Conveyors
  • Pick & Place
  • Robot Pedestals & Bases
  • Timing Belt Conveyors
  • Workstations
  • Conveyors
  • Machine Tending
  • Robot Pedestals & Bases
  • Workstations
  • Machine Tending
  • Robot 7th Axis
  • Robot Pedestals & Bases
  • Sanding & Surface Finishing
  • Bin Picking
  • Robot 7th Axis
  • Robot Pedestals & Bases
  • Safety Enclosures
Sign In Get Support
Sign In Get Support

Design

Customizable Template

Find a customizable design for your specific need, designed by Vention experts. Explore Official Designs

Design Inspiration

Discover design inspiration, created by Vention community members. Discover Community Designs
Sign In Get Support

Hardware

  • Browse all parts
  • Structural & Framing
  • Frame Accessories
  • Fixtures & Tooling
  • Panels and Table Tops
  • Robot Mounting
  • Robot End-of-Arm Tools
  • Robots
  • Safety
  • Wheels
  • Linear Motion
  • Rotary Motion
  • Pneumatics
  • Material Handling
  • Controls & Motors
  • Software
  • Cabling
  • Fasteners
  • Consumables
  • Tools
  • Merchandise
  • MachineMotion icon
    MachineMotion Plug & play machine control
  • MachineFrame icon
    MachineFrame Modular extrusion profiles
  • Actuators icon
    Actuators Linear & rotary motion
Sign In Get Support

Learn

  • Resource Center
  • Customer Stories
  • Video Tutorials
  • Webinars
  • Blog
  • ROI Calculator
  • Friction Joint Calculator
  • Deflection Calculator
  • Palletizing App
  • Path Following App
  • Factory Acceptance Checklist
  • Site Acceptance Checklist
  • Community Overview
  • Top Designers
  • Forum
  • Gallery
  • Support Packages
  • Technical Support
  • FAQ
  • About Us
  • Press
  • Contact Us
  • Careers
  • Events
  • Vention Experience Center
Tutorials
All tutorials
Navigating MachineBuilder
Navigating MachineBuilder Take a tour of Vention's Cloud-CAD platform, MachineBuilder
Watch tutorial
Sign In Get Support

Applications by Factory Floor

  • Bin Picking
  • Gantry Systems & Path Following
  • Machine Tending
  • Robot 7th Axis
  • Robot Pedestals & Bases
  • Sanding & Surface Finishing
  • Safety Enclosures
  • Jigs & Fixtures
  • Pick & Place
  • Shelves & Racks
  • Timing Belt Conveyors
  • Workstations
  • AGV Top Modules
  • Conveyors
  • Industrial Carts
  • Box Erecting
  • Cartesian Palletizer
  • Cobot Palletizer
  • Case Packing
  • Industrial Robot Palletizer
Sign In Get Support

Applications by Industry

  • Box Erecting
  • Case Packing
  • Cobot Palletizer
  • Industrial Robot Palletizer
  • AGV Top Modules
  • Gantry Systems & Path Following
  • Industrial Carts
  • Jigs & Fixtures
  • Industrial Carts
  • Jigs & Fixtures
  • Machine Tending
  • Robot 7th Axis
  • Machine Tending
  • Pick & Place
  • Robot 7th Axis
  • Timing Belt Conveyors
  • Pick & Place
  • Robot Pedestals & Bases
  • Timing Belt Conveyors
  • Workstations
  • Conveyors
  • Machine Tending
  • Robot Pedestals & Bases
  • Workstations
  • Machine Tending
  • Robot 7th Axis
  • Robot Pedestals & Bases
  • Sanding & Surface Finishing
  • Bin Picking
  • Robot 7th Axis
  • Robot Pedestals & Bases
  • Safety Enclosures
Sign In Get Support

  • Resource Library
  • MachineLogic
  • State Machine - MachineLogic
Download doc
Related Resources:
  • 15 - Programming with inline sequences
  • 14 - MachineLogic for robots: Combined moves
  • MachineLogic Python Programming v1.0
  • 13 - Intro to MachineLogic Python Programming
  • 12 - Intro to State Machines
See all MachineLogic Resources
Back to resource library
How to guide Updated: Monday, May 29th 2023

State Machine - MachineLogic

Contents

  • Introduction
  • Definitions
    • State
    • Action
    • Next State
    • Transition Event Type
    • Condition

Introduction

Introducing the State Machine command to MachineLogic. You can now add an instruction that simplifies your program to a set number of states that you have defined. Based on the current state and a given input, the state machine performs state transitions and produces outputs. A simple state machine and the MachineLogic equivalent is shown in Figure 1 and Figure 2 below.

Figure 1: Simple State Machine

Figure 2: Simple State Machine in MachineLogic

Take a deeper dive into MachineLogic State Machines below.

Definitions

State

A State is a description of the status of a machine. A machine can only be in exactly one State at any given time, and is always waiting to transition to a possible next state, following the transitions defined in the list of Next States. A state can optionally define an Action to be executed when entering that state. See Figure 3 below for more details.

Figure 3: State Field

Action

An Action is a Child Sequence to be executed when entering a given state. Please note that although only one State can be active at any given time, several Actions could be executing, as the State Machine does not wait for the Action to complete in order to transition to the Next State. A child sequence can be selected from the Action dropdown, as seen in Figure 4.

Figure 4: Action Dropdown

Next State

Next State lists one or many allowable states the current state can transition to. Each of these next states transition defines an event to wait for, along with an optional condition to be met, in order to trigger the transition to a next state. The modal seen below in Figure 5 defines a next state and the transition criteria.

Figure 5: Next State Modal

Transition Event Type

The event that triggers a transition to the Next State can take two forms:

  • a Topic, which waits for an event to be generated with the exact event topic defined in the Topic field. Events can be generated, for example via the Generate Event command, or a UI Builder button widget. The topic names must match, and any message on this topic will trigger the transition. See Figure 6a for more details.
  • a Digital Input, which waits for a specific digital input to have the defined level in order to transition. See Figure 6b for more details.
Topic Digital Input
Figure 6a: Topic Transition Type Figure 6b: Digital Input Transition Type

Condition

Also known as a guard, a Condition is an expression that must be met in order to allow the transition to the Next State. The Condition field can accept a general expression using variables, arithmetic, and/or Lambda functions. If a condition is not met, the transition will not occur and the state machine will remain in the same state. A condition can be inputted in the Condition field, as seen below in Figure 7.

Figure 7: Condition

Was this information helpful?

Still need help?

Ask the User Forum Contact support
vention-logo
Simplified Machine Design for Everyone.
Book a demo Get support
Email: info@vention.cc
Call: +1-800-940-3617
Platform
  • MachineScope
  • MachineBuilder
  • MachineLogic
  • MachineApps
  • MachinePortal
  • MachineCloud
Hardware Technology
  • MachineFrame
  • MachineMotion
  • Actuators
Applications
  • Browse All Applications
  • Manufacturing
  • Assembly
  • Material Handling
  • Packaging
Hardware Library
  • Browse All Hardware
Designs Library
  • Browse All Designs
Resources
  • Resource Center
  • Customer Stories
  • Video Tutorials
  • Webinars
  • Blog
  • FAQ
Tools
  • Browse Tools
Community
  • Community
  • Top Designer
  • Forum
  • Gallery
Learn & Connect
  • About Us
  • Press
  • Contact Us
  • Careers We're hiring!
Vention 2023
Terms Privacy Security