stepper output

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
moxy
Posts: 14
Joined: Thu Nov 20, 2008 4:42 pm
Contact:

stepper output

Post by moxy »

Hi All, When using the stepper component do you have to tell flowcode to output to the specified pins? When stepping through the code the icon shows the correct movement but the pins on the pic icon do nothing, I also am getting no output on these pins.(portB pins 0,1,2 and 3)
many thanks
Les

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

Re: stepper output

Post by Benj »

Hello Les

Have you enabled the motor? You must do this before the output pins will be activated.

You do not have to tell Flowcode to perform the output.

Which type of stepper motor are you using?

Is your hardware doing anything could it be a configuration problem?

moxy
Posts: 14
Joined: Thu Nov 20, 2008 4:42 pm
Contact:

Re: stepper output

Post by moxy »

Hi Benj, Sorry about all the missing info! :oops: My stepper is a bipolar 3 amp model. I have an enable at the beginning of the code and have configured the oscillator as HS (external crystal of 8meg with PLL) The code runs perfectly in forward and reverse and responsds to the step input pin (I have configured a switch for this function) and the icon shows the stepper movement but the pic pins remain blue. Should they be flashing red ad blue?
Many thanks
Les

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

Re: stepper output

Post by Benj »

Hello Les

Ah ok I see yes the pins do not currently simulate on the stepper component. I have added it as a request on the system.

Post Reply