BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 12:16 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Hservo
PostPosted: Fri May 28, 2010 3:00 pm 
Offline
Guru

Joined: Fri Nov 13, 2009 10:28 am
Posts: 82
Location: Reno, Nevada
Are the hser functions and commands operational for the nano chips? I am using 1.0.0.14

_________________
Harley


Top
 Profile  
 
 Post subject: Re: Hser
PostPosted: Fri May 28, 2010 4:00 pm 
Offline
Guru

Joined: Fri Nov 13, 2009 10:28 am
Posts: 82
Location: Reno, Nevada
I made a mistake in the subject of this post-I need to know if the hservo functions and commands are operational in version 1.0.0.14 and above?

_________________
Harley


Top
 Profile  
 
 Post subject: Re: Hservo
PostPosted: Sat May 29, 2010 10:19 am 
Offline
Guru

Joined: Fri Nov 13, 2009 10:28 am
Posts: 82
Location: Reno, Nevada
When programming a simple hservo routine that I found on the forums, I get the below errors when building in th nano 28 mode. If I build this routine in the AtomPro mode it builds without errors. For the application I am developing I definitely need the hservo capabilities. The atom pro footprint etc. becomes a problem so the smaller nano footprint and cost are required.

'Test hservo usage

pause 500
temp var word
enablehservo
baud con i9600

main:
if in9=1 then goto loop
goto main

loop:
hservo[p1\0] 'send servo to home pos-no spd value in first hservo
for temp=4000 to 20000 step 4000
hservo [p1\(temp)\500] 'pin,postion,speed
hservowait[p1] 'waits for servo to finish last move
hservo[p1\temp\500]
hservowait[p1] 'waits for servo to finish last move
next
goto main

Error: FILE C:\PROGRAM FILES\BASICMICRO\HSERVOTEST.BAS(LINE 16) : [TOKEN P1] : Expected variable

_________________
Harley


Top
 Profile  
 
 Post subject: Re: Hservo
PostPosted: Mon May 31, 2010 1:14 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
Sorry, but the hservo system is only for AtomPro processors. Atom and Nano do not support hservo.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO