Author Topic: Newbie programming help  (Read 7017 times)

rossi32s

  • Newbie
  • *
  • Posts: 3
  • I'm a llama!
    • View Profile
Newbie programming help
« on: February 23, 2005, 08:10:31 AM »
I need some assistance:

Hardware:  E10+
Linear slide driven by dcmotor with Hbridge for direction

Input1 switch N/C top of slide
Input2 switch N/C middle of slide
Input3 Switch N/C bottom of slide
Input3 Run Switch N/C
Input4 Enable N/O

Output1 Motor Up
Output2 Motor Down

Scenerio:

On plc power up motor up until it hits input1
when run switch is enabled motor down to input3
then motor up  to input 1
then motordown to input 2
when input 4 is triggered i would like to process to start over.

Can someone guide me on this?

I tried a sequence but it just motor up  to input1 then attempts to goto input3 and then sees input 1 open again and bounces back up imediatly.  I can change the N.state of any input if needed.

Thanks
Scott


 

rossi32s

  • Newbie
  • *
  • Posts: 3
  • I'm a llama!
    • View Profile
Re:Newbie programming help
« Reply #1 on: February 23, 2005, 08:27:41 AM »
FYI:
Output1 Motor Up
Output2 Motor Down

is just an Hbridge,  My hbridge is TTL logic and i am just using 5v regulators to switch the Hbridge for direction depending on which output is energized.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re:Newbie programming help
« Reply #2 on: February 25, 2005, 04:56:16 PM »
While we can't write the program for you - it is the job of consultant such as Albert Martinez - see some of his posts in this forum - I will try to point out some techniques:

To make sure that at a particular sequencer step only the relevant input  matters, then do a logical AND between the sequential step and the input:

e.g.
    In1      STEP1:1
|---| |------| |---------(OUT1)

    In3      STEP1:5
|---| |------| |---------(OUT2)


In the above example, Input #1 will have no effect when the sequencer is not at Step 1.


Email: support@triplc.com
Tel: 1-877-TRI-PLCS