Author Topic: Stepper Motor Demo Code  (Read 951 times)

garysdickinson

  • Expert Member
  • Posts: 462
  • Old PLC Coder
    • View Profile
Stepper Motor Demo Code
« on: May 02, 2018, 03:10:38 PM »
I have attached the PLC program StepperTest V2_01.PC6 to this post.

This is a test program that I wrote about 3 years ago to test a stepper motor-controlled valve.  This is a simplified version of that test code.  

If you are thinking about use the PLC for stepper control, this is an excellent starting point as all of the code can be used and extended for your purposes.

Best regards,

Gary D*ckinson

garysdickinson

  • Expert Member
  • Posts: 462
  • Old PLC Coder
    • View Profile
Re:Stepper Motor Demo Code
« Reply #1 on: May 02, 2018, 03:13:21 PM »
The stepper motor demo code does not need a user interface.

But, I added one to make this into a stand-alone test system.

I used a Weintek 7" HMI for the user interface.  The attached code will work on any of the Weintek HMIs. You can re-edit it to work on the smaller 4.3" displays.

garysdickinson

  • Expert Member
  • Posts: 462
  • Old PLC Coder
    • View Profile
Re:Stepper Motor Demo Code
« Reply #2 on: May 02, 2018, 03:40:10 PM »
This post adds the documentation.  I had to do some ugly compression to get this under the forum 200K file size limit.

Gary D*ckinson

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3112
    • View Profile
    • Internet Programmable PLCs
Re:Stepper Motor Demo Code
« Reply #3 on: May 03, 2018, 01:22:19 PM »
Dear Gary,

Our team at TRi greatly appreciate all your contributions to this forum!

The well-documented examples that you provided for the other forumers are invaluable tools to help both the new comers as well as experienced hands make the best use of our PLC's capabilities.

Thank you very much!

The Tech Support team,
Triangle Research International, Inc.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS