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

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

HPACT Actuators training panel example code?

Post by dtstrgt »

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: 14865
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: HPACT Actuators training panel example code?

Post by Benj »

Hello

You can find the HPACT board by clicking Products -> Eblock Accessories.
Attachments
TEFWS.pdf
(467.43 KiB) Downloaded 331 times
Test RoutineD.FCF
(9.67 KiB) Downloaded 269 times
Test RoutineB.FCF
(9.67 KiB) Downloaded 265 times

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

Re: HPACT Actuators training panel example code?

Post by dtstrgt »

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: 3183
Joined: Tue Jan 03, 2006 3:59 pm
Contact:

Re: HPACT Actuators training panel example code?

Post by Steve »

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?

Post by dtstrgt »

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: 3183
Joined: Tue Jan 03, 2006 3:59 pm
Contact:

Re: HPACT Actuators training panel example code?

Post by Steve »

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?

Post by dtstrgt »

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: 3183
Joined: Tue Jan 03, 2006 3:59 pm
Contact:

Re: HPACT Actuators training panel example code?

Post by Steve »

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: 8924
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: HPACT Actuators training panel example code?

Post by medelec35 »

Hi, Ben,

Code: Select all

Test RoutineB.FCF
&

Code: Select all

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

User avatar
Benj
Matrix Staff
Posts: 14865
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: HPACT Actuators training panel example code?

Post by Benj »

Cheers Martin,

I have reloaded the files and they should open correctly now.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8924
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: HPACT Actuators training panel example code?

Post by medelec35 »

Thanks Ben.
Martin

Post Reply