If-Then Sample

Example Program

If-Then Sample


This program demonstrates the use of the program branch function to perform if-then logic operations using inputs. Requirements:

  1. Compatible product
  2. DC power supply
  3. Communications/Network
  4. Switch connected to I/O point 1
  5. Motor, if using an MForce


  • MCode OS
  • Programmable I/O

Applicable Product

  • MDrive Linear Actuator
  • MDrive Plus
  • MForce

Resource Files

[wpdm_package id=8482 template=[wpdm_package id=2520 template=

Program Example