Author Topic: control speed stepp motor  (Read 10631 times)

GuillaumeB

  • Newbie
  • Posts: 2
  • I'm a lezard!
    • View Profile
control speed stepp motor
« on: October 27, 2011, 04:24:27 AM »
Hello,

To begin, I apologize in advance for my English language.

I need help to programming a stepper motor with controler nano10 then driver M880A.
I control this motor with  2 command buttons (backward / forward) By means of stepspeed and stepmove program.

I would like to add analog input control  for  modify motor  speed .
When i change the pps to DM
  • in stepspeed (DM
  • is my speed value in pps), an error message occurs:


 (Error:Illegal Pulse Rate for STEPMOVE!
   Program has been Halted!)

i' m a  recent  user of plc nano-10 and i-Trilogi i   would  like  to  find  someone  with  solutions to help me

Thanks.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:control speed stepp motor
« Reply #1 on: October 27, 2011, 09:29:26 AM »
Is it because your DM is currently at 0? stepper pulse rate cannot be zero and it will therefore report an error. I tried the following and it compiled and simulated successfully:

DM[10] = 1000
DM[11] = 10

STEPSPEED 1, DM[10], DM[11]
STEPMOVE 1, 2000,5

P.S. Your English is very good! No problem understanding your question at all.  :)
« Last Edit: October 27, 2011, 09:30:28 AM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

GuillaumeB

  • Newbie
  • Posts: 2
  • I'm a lezard!
    • View Profile
Re:control speed stepp motor
« Reply #2 on: October 28, 2011, 06:09:42 AM »
Thank you for your answer!
That do not resolve the probleme directly but i found it with your help.

The probleme is: i don't compiled any program. >.>

one more time thank you master of plc :)
i going sleeping less silly tonight.