How do I stop HPWM


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2012
    Posts
    14

    Red face How do I stop HPWM

    Hi you all, I do have a very naive question, but i have been looking on the PBP reference manual an on the web and I can’t find anything that helps.
    I wrote a code for a little machine I’m making and everything works fine except for the HPWM command, that I use to drive a L297 IC which drives a unipolar stepper motor, well it does work but I don’t know how to make the HPWM to stop what I mean is that the program continues to work normally but the motor keeps going on, again any help will be greatly apreciate this is the part of the code that drives the motor


    avance: ' routine to advance roll to desired setting
    av1=0
    portd.0= encoder
    while av1< medida
    hpwm 1,127,1000
    if encoder <> portd.0 then
    av1= av1+1
    portd.0= encoder
    endif
    wend
    rollo= rollo+Av1
    goto rutpal

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: How do I stop HPWM

    hpwm 1,0,1000
    Should be stopped.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Apr 2012
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: How do I stop HPWM

    Thank's mackrackit, I knew it had to be very simple, but i was not able to figure it out, i'll try that out.

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts