Home > Resources > Example Programs

Example Programs

Example MCode programs to aid in fully using SEM motion control products.
Product
Example Programs

This program demonstrates the use of high speed inputs to allow for electronic gearing operations.

This program demonstrates the use of High Speed Trip Capture Input.

This program is a very basic motion sample which makes a basic point-to-point relative move.

This program demonstrates the use of inputs to initiate a point-to-point move.

This program demonstrates the use of the On Error (OE) handler function.

This program demonstrates the use of one momentary input to toggle between different functions.

This program demonstrates the use of Boolean operators with input switches. Requirements:

  1. Compatible product
  2. DC power supply
  3. Communications/Network
  4. I/O points 1-4 connected to switches

This program demonstrates the use of a position trip to reset the encoder counter (C2) every 100000 encoder counts. Requirements:

  1. Compatible product
  2. DC power supply
  3. Communications/Network
  4. Switches connected to I/O points 1 & 2

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

This program demonstrates the use of integer math functions. Required:

  1. Compatible product
  2. DC power supply
  3. Communications/Network
Previous
Next

When it comes to your form, fit and function requirements, don’t settle. Get precisely what you need working with us. We know motion.

Contact us with any questions about how we can help you with your motion application or for assistance with your SEM products.

Browse our resource section and find the most useful tools and documents for all our products.