Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2012, 04:58:54 AM
Home Help Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question / Answer to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Industrial Robot Help and Discussion Center
| |-+  ABB Robot Forum (Moderators: Werner Hampel, Sven Weyer, Jim Tyrer, Napierian)
| | |-+  Feeder with 4 Stocks
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Feeder with 4 Stocks  (Read 177 times)
paulofutre10
Newbie
*
Offline Offline

Posts: 12


« on: January 28, 2012, 10:58:20 PM »

Hello

I have an IRB 1400 S4.

I have a feeder with 4 parts stocks. (Each stock has a sensor input).

I wanted to create a program where the robot goes:

If you have parts in stock 1 - Fetching the stock 1 - leads to the machine
If you do not have parts in stock 1 - Fetching the stock 2 - leads to the machine
If you do not have parts in stock 2 - Fetching the stock 3 - leads to the machine
If you do not have parts in stock 3 - Fetching the stock 4 - leads to the machine
If you do not have parts in stock 4 - go to home position

Can you help me ?

Thanks
Logged
prnuk2003
Sr. Member
****
Offline Offline

Gender: Male
Posts: 339


Customer Service Engineer


« Reply #1 on: January 29, 2012, 09:46:22 PM »

Lots of ways to do this, every programmer  will have a different way!

One simple example and maybe there will be many suggestions:

PROC Main()
    ! Ready at the home position
    Home_Pos;
    ! Set the Bool data flag to TRUE
    bPick=TRUE;
    ! Start watching the four inputs while bPick is TRUE
    WHILE bPick=TRUE DO
      IF diStock1=1 THEN
        ! Goto stock 1
        Pick_Stock1;
        ! Set bool flag to FALSE to exit the while loop
        bPick=FALSE;
      ELSEIF diStock2=1 THEN
        Pick_Stock2;
        bPick=FALSE;
      ELSEIF diStock3=1 THEN
        Pick_Stock3;
        bPick=FALSE;
      ELSEIF diStock4=1 THEN
        Pick_Stock4;
        bPick=FALSE;
      ENDIF
    ENDWHILE
    ! place the parts somewhere
    Goto_Place;
    !PP will go bak to the top and start again.
ENDPROC

This assumes that you don't have any preference for any stock so 'stock1' will always be checked first.
Logged

BR
prnuk2003
paulofutre10
Newbie
*
Offline Offline

Posts: 12


« Reply #2 on: January 29, 2012, 11:48:18 PM »

Hi

thank you
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!