HPACT Actuators training panel example code?

Forum for problems or queries regarding other Flowcode Components. Eg LEDs, Switches, LCD, Gfx LCD etc

Moderators: Benj, Mods

dtstrgt
Posts: 4
Joined: Thu Jan 15, 2009 12:20 pm
Location: UK
Contact:

HPACT Actuators training panel example code?

Postby dtstrgt » Thu Jan 15, 2009 12:33 pm

Hi,

Where can I find the "Free worksheets (code TEFWS)" for this board, or any flowcode examples code for it?

There was a mini CD with it but that didn't seem to contain anything to do with it.

For that matter how do I even find the board on the web site other than searching for HPACT. Under Products the only mention of it that I can find is in one of the brochures, where I think it is classed as an accessory.

Thanks.

User avatar
Benj
Matrix Staff
Posts: 13980
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4244 times
Been thanked: 4006 times
Contact:

Re: HPACT Actuators training panel example code?

Postby Benj » Thu Jan 15, 2009 12:47 pm

Hello

You can find the HPACT board by clicking Products -> Eblock Accessories.
Attachments
TEFWS.pdf
(469.03 KiB) Downloaded 276 times
Test RoutineD.FCF
(9.68 KiB) Downloaded 228 times
Test RoutineB.FCF
(9.68 KiB) Downloaded 221 times

dtstrgt
Posts: 4
Joined: Thu Jan 15, 2009 12:20 pm
Location: UK
Contact:

Re: HPACT Actuators training panel example code?

Postby dtstrgt » Thu Jan 15, 2009 1:32 pm

Thanks.

I was looking on the Home page and selecting subsections of products, where E-block accessories aren't listed, rather than selecting Products which lists a few more subsections. Question over webpage design?

Still not sure where I was supposed to get the TEFWS and example code other than by having to ask for it.

I haven't test it yet, as the code is for an 877 and the only ones we have are 877-04's which probably aren't going to run with the default 19.6608MHz Xtal. I'll have to move parts of the code to the supplied 88. OK some I could use an RC clock for the stepper and DC motor but I'd guess the servo won't work if the timing is way off. Shame the Xtal isn't in a plugin socket so it can be changed.
Last edited by dtstrgt on Thu Jan 15, 2009 5:10 pm, edited 1 time in total.

User avatar
Steve
Matrix Staff
Posts: 3071
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 87 times
Been thanked: 386 times
Contact:

Re: HPACT Actuators training panel example code?

Postby Steve » Thu Jan 15, 2009 3:04 pm

The crystal is socketted on our EB-006 and HP-488 boards.

dtstrgt
Posts: 4
Joined: Thu Jan 15, 2009 12:20 pm
Location: UK
Contact:

Re: HPACT Actuators training panel example code?

Postby dtstrgt » Thu Jan 15, 2009 3:39 pm

steve wrote:The crystal is socketted on our EB-006 and HP-488 boards.


Appologies, so it is, it's so flush mounting I didn't see it.

However I'm still puzzled by the example code.

Stepper & DC motor are OK.

Is the servo code designed to work at a particular frequency, if so what?

As it seems to use TMR0 overflow to generate the servo period, which is noramally 20ms, and the code had a 64 prescaler that would give Tcs = 20 ms / (256*64), F = 3.2768MHz which is very odd so maybe I got something wrong?

I've previously written ASM code running at 4MHz to drive servos, no problems, but I'm very new to flowcode.

Is there any documentation regards using the servo on the HPACT in flowcode?
Last edited by dtstrgt on Thu Jan 15, 2009 5:09 pm, edited 1 time in total.

User avatar
Steve
Matrix Staff
Posts: 3071
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 87 times
Been thanked: 386 times
Contact:

Re: HPACT Actuators training panel example code?

Postby Steve » Thu Jan 15, 2009 3:48 pm

I believe there is an article int he "Articles" section of the forum that may help. I also know that my colleague, Sean, has rewritten the HPACT sample program and he'll post it here sometime soon.

Hopefully these will help...

dtstrgt
Posts: 4
Joined: Thu Jan 15, 2009 12:20 pm
Location: UK
Contact:

Re: HPACT Actuators training panel example code?

Postby dtstrgt » Thu Jan 15, 2009 4:16 pm

dtstrgt wrote:F = 3.2768KHz


Err make that 3.2768MHz, which at least exists.

:oops:


Which has now been corrected.

:lol: Great I can edit all my errors in previous posts. If only I'd know that before I pointed one out to people.
Last edited by dtstrgt on Thu Jan 15, 2009 5:18 pm, edited 2 times in total.

User avatar
Steve
Matrix Staff
Posts: 3071
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 87 times
Been thanked: 386 times
Contact:

Re: HPACT Actuators training panel example code?

Postby Steve » Thu Jan 15, 2009 4:36 pm

You also mentioned a "19.6608GHz" crystal in a previous post, but I let that one pass too!!

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8236
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2358 times
Been thanked: 3347 times
Contact:

Re: HPACT Actuators training panel example code?

Postby medelec35 » Fri Jun 17, 2011 1:16 pm

Hi, Ben,

Code: Select all

Test RoutineB.FCF

&

Code: Select all

TEFWS.doc
attachment’s are corrupt.
Would you mind reposting please?
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
Benj
Matrix Staff
Posts: 13980
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4244 times
Been thanked: 4006 times
Contact:

Re: HPACT Actuators training panel example code?

Postby Benj » Fri Jun 17, 2011 2:38 pm

Cheers Martin,

I have reloaded the files and they should open correctly now.
These users thanked the author Benj for the post:
medelec35 (Fri Jun 17, 2011 2:50 pm)
Rating: 5.88%
 

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8236
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2358 times
Been thanked: 3347 times
Contact:

Re: HPACT Actuators training panel example code?

Postby medelec35 » Fri Jun 17, 2011 2:50 pm

Thanks Ben.
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.