working with engine

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
brunosilva
Posts: 14
Joined: Sun Feb 24, 2013 4:02 am
Contact:

working with engine

Post by brunosilva »

Hello

I wonder how do I work with motor.

I am using an engine, most can not make it rotate right.

The sequence it would appear that it would be

    1000
    0100
    0010
    0001

or

0001
0010
0100
1000

I am sending the code to help

thank you
Attachments
motor.fcf
(7 KiB) Downloaded 258 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: working with engine

Post by medelec35 »

Hi brunosilva,
Not sure what your asking?
I have modified your flowchart so you can alter direction and speed.
Attachments
motor 2.fcf
(10 KiB) Downloaded 245 times
Martin

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: working with engine

Post by dazz »

Hi
I would create 2 macros called left and right, and add your code to call each macro in turn, i've wrote a simple flowchart for you, to give you an idea, simulate it then click the switches on/off in turn

Sorry martin posted as i was replying, you now have a couple of different ways of doing things
Regards
Dazz
Attachments
motor2.fcf
(13.23 KiB) Downloaded 248 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

brunosilva
Posts: 14
Joined: Sun Feb 24, 2013 4:02 am
Contact:

Re: working with engine

Post by brunosilva »

Hi the code did not work with my engine he from one side to the other and does not spin.

when I'm configuring the engine appears
Phase Patterns
and a sequence
0001
0100
0010
1000

my engine and I need to rotate the

Phase Patterns

is
0001
0010
0100
1000
a red square appears in front I can configure to show me that kind of Phase Patterns
So it works as I do it utizando engine.

the model of my engine is 1.8 Stepper Motor SM-GP-B1N Torque: 70 oz

brunosilva
Posts: 14
Joined: Sun Feb 24, 2013 4:02 am
Contact:

Re: working with engine

Post by brunosilva »

got it

thank you

Post Reply