Shop OBEX P1 Docs P2 Docs Learn Events
Timer control for solenoid valves — Parallax Forums

Timer control for solenoid valves

ArchiverArchiver Posts: 46,084
edited 2000-03-25 19:23 in General Discussion
Dear friends,

I would like to achieve the following

My industrial project using a BS2 consists of 8 solenoids controlling
vinyl injection into a mold.

The injection time is controlled using a pause statement

How can I change this pause time with user entry

I am also using the Memkey and a 4X4 Matrix keypad

I have to change values for each solenoid

Regards

Dan Christadoss

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-03-23 04:21
    Well, did you try putting a word into the pause statement
    Like:

    pause x

    then have and input statement before it using the "get button" command (I think), i am just starting this but have programmed a lot, i think that should work...did you want to be able to change the amount of time the stamp pauses or do you want the user to be able to push a button or enter a code to start it???· let me know and I will try and help out...Good Luck!!!

    -Matt/Vid
  • ArchiverArchiver Posts: 46,084
    edited 2000-03-23 11:05
    Thanks Matt,

    We want the operator to vary the timings of the various solenoids to
    control the shot size.
    You have given me an elegant way to do it.
    NOW I will use a pause x statement and make the user enter the timings
    from solenoid 1 to 8.
    I would also like to give a choice to operator of whether he wanted to
    change the timing or not, as well as enter other choices for auto or maNual
    modes as well as enter codes for running various parts.

    I earlier did a similar project using the parallel port of a pc and
    programming in qbasic, but needed to know how we accomplish data entry in a
    stamp.

    Could this be done with a thumbwheel switch? (BCD)

    Thanks

    Dan
  • ArchiverArchiver Posts: 46,084
    edited 2000-03-23 19:05
    HI you could do it with old fashioned pots. I like pots 'cause you can have a
    knob that has a scale on it.. it is also
    more intuative as to when you are increasing or decreasing the time..
    all you'd need is one ADC0838 and a simple SHIFTIN command ( about $4.50 )
    A/D coverter and 8 pots. ( I can email the code if you need it )
    BTW I have some high Q pots in my parts surplus list that you can have almost
    for a song!
    http://www.members.home.net/rdoctors/clearall.html

    From: DANCHAND@a...
    Date sent: Thu, 23 Mar 2000 06:05:32 EST
    To: basicstamps@egroups.com
    Send reply to: basicstamps@egroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: Timer control for solenoid valves

    >
    > Thanks Matt,
    >
    > We want the operator to vary the timings of the various solenoids to
    > control the shot size.
    > You have given me an elegant way to do it.
    > NOW I will use a pause x statement and make the user enter the timings
    > from solenoid 1 to 8.
    > I would also like to give a choice to operator of whether he wanted to
    > change the timing or not, as well as enter other choices for auto or maNual
    > modes as well as enter codes for running various parts.
    >
    > I earlier did a similar project using the parallel port of a pc and
    > programming in qbasic, but needed to know how we accomplish data entry in a
    > stamp.
    >
    > Could this be done with a thumbwheel switch? (BCD)
    >
    > Thanks
    >
    > Dan
    >
    >
    >
    >
    > -- Check out your group's private Chat room
    > -- http://www.egroups.com/ChatPage?listName=basicstamps&m=1
    >
    >


    ron... the motor man...
    Ronald Doctors
    http://www.members.home.net/rdoctors
  • ArchiverArchiver Posts: 46,084
    edited 2000-03-24 00:22
    In a message dated 3/23/00 2:03:19 PM US Eastern Standard Time,
    rdoctors@h... writes:

    << HI you could do it with old fashioned pots. I like pots 'cause you can
    have a knob that has a scale on it.. it is also
    more intuative as to when you are increasing or decreasing the time..
    all you'd need is one ADC0838 and a simple SHIFTIN command ( about $4.50 )
    A/D coverter and 8 pots. ( I can email the code if you need it )
    BTW I have some high Q pots in my parts surplus list that you can have
    almost for a song! >>

    I think that is a good way to do it.
    Let me wait and see all the suggestions that come in so I can take a final
    decision.
    Dan Christadoss
  • ArchiverArchiver Posts: 46,084
    edited 2000-03-24 17:43
    Hi Dan,

    Would independent adjustable timing relays with interlocks to your stamp
    work? By adjusting the timing relay knobs a stamp digital input could time
    the on and off relay times and display and conditional logic those values
    without operator data entry. If the on and off times are acceptable then
    the stamp turn on a master control relay for your process. Adjustable
    timing relays can be pricey or you could make your own. Hope this helps.

    Sincerely,

    Dave

    Original Message
    From: <DANCHAND@a...>
    To: <basicstamps@egroups.com>
    Sent: Wednesday, March 22, 2000 9:15 PM
    Subject: [noparse][[/noparse]basicstamps] Timer control for solenoid valves


    >
    > Dear friends,
    >
    > I would like to achieve the following
    >
    > My industrial project using a BS2 consists of 8 solenoids controlling
    > vinyl injection into a mold.
    >
    > The injection time is controlled using a pause statement
    >
    > How can I change this pause time with user entry
    >
    > I am also using the Memkey and a 4X4 Matrix keypad
    >
    > I have to change values for each solenoid
    >
    > Regards
    >
    > Dan Christadoss
    >
    >
    >
    > eGroups.com home: http://www.egroups.com/group/basicstamps
    > http://www.egroups.com - Simplifying group communications
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-03-25 19:23
    In a message dated 3/24/00 12:39:46 PM US Eastern Standard Time,
    dsheridan@a... writes:

    << Would independent adjustable timing relays with interlocks to your stamp
    work? By adjusting the timing relay knobs a stamp digital input could time
    the on and off relay times and display and conditional logic those values
    without operator data entry. If the on and off times are acceptable then
    the stamp turn on a master control relay for your process. Adjustable
    timing relays can be pricey or you could make your own. Hope this helps.

    Sincerely, >>
    Dave
    I would have done this if I only had a few solenoids, but since I had 8 sort
    of backed away from it. It is ofcourse a very good solution and very easy to
    do too and I may use it still in another project.
    Thanks
    Dan
Sign In or Register to comment.