Example Program

Analog speed control

Description

This program demonstrates the use of the analog input in a speed control application.

The program subroutine performs calculations using the user registers R1-R4 and slews the axis bi-directionally based upon the value seen on the analog input.

Hardware requirement: 10kΩ potentiometer connected to the Analog input.

The code shown on the right may be copied and pasted into the program editor window of the Motion Control Programmer application, or a zip file containing the program files may be downloaded below.

Topics

  • MCode OS

Applicable Product

  • Lexium MDrive
  • MDrive Linear Actuator
  • MDrive Plus
  • MForce

Resource Files

Program Example


Lexium MCodeMDrive MCode