Motion Out


MotionOut is used to control a Stepper Output. It’s a background task that once executed, will continue to send signals to motor until it’s reached it’s programmed destination.

While MotionOut will create the logical signals for your motor, you’ll need a driver to interface between your PLC and the motor.

To enable MotionOut, Press the ‘Setup Hardware’ button. It’s on the upper left of vBuilder. Your ‘Setup Hardware’ button may look a little different from the one on the left, depending on whether you’ve setup your hardware and on the specific hardware you’re using.

The last page of the Setup Hardware lets you set MotionOut (Stepper Output) options.

Shown below is what the setup page look like. (Step Out 1, Step Out 2, Step Out 3)

Above shows 1 device setup for MotionOut. You can set up a MotionOut for all ACE PLC.

You’ll need to specify 2 Digital Output Pins. One to control the Step signal and the other for the Direction Signal. Make sure you don’t select the same pin for both signals.

Placing a MotionOut block is simple. Below is the MotionOut Dialog box.

MotionOut needs to know:

  • Move motor to: Your desired destination.
    • MotionOut will move the Motor from where ever it starts to this destination. Maybe your motor’s current location is 200 and you’d like to move to a destination of 300. This would require the MotionOut to Move the Motor 100 steps. Use a number or I32 Tag for this.
  • at a rate of: Speed to travel (pulses per second).
    • Use a number or Tag(I16, UI16 or I32) for this.
  • with a soft start and soft length of: Soft start length (optional, but typically a good idea).
    • Motors often need to be brought up to speed over a period of time. This enables that.
    • Just tell it how long you’d like it to take (in milliseconds) to go from stand still to speed.
    • This will be applied to both ramp up and ramp down.
  • store current location: What I32 Tag you want to store the motor’s current location in.


Capturing a Transition During a Move

An advanced feature found in ACE PLC MotionOut functions is the ability to capture the exact step that a digital input transition occurs on.

That is a very important feature for application where a material is being moved through a machine and operations on that material are required at precise distances from the leading edge.

In that type of application, typically and optical sensor is used to sense the leading edge and the PLC program captures it.

To use the transition capture feature:

  • Select the “Store location when digital input transitions” check box in the dialog box.
  • Select the Digital Input that you want to use.
    • You can set to capture on either a rising edge – rises – or falling edge – falls.
  • Next, you must enter a i32 tag named variable for the PLC to place the sensed position.
  • Finally, select a tag bit to use to indicate that the transition has been captured.


In Ladder: How to execute tasks only once at startup?

Useful for defining the starting value of certain tags or for background tasks.

Note: Since some tools are background tasks, it is not necessary to run them every PLC cycle. If you run it every cycle, the tool will not work properly because you are constantly configuring it.

Just add a "BIT" that will be turned ON right after.

All your lines that only need to start once at startup :

  • must be behind the normally closed "ColdStart" contact.
  • before the line where the "ColdStart" coil is set to 1.

Note: You can use any name for the ColdStart bit.