Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 05:36:43 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
| |-+  Fanuc Robot Forum (Moderators: Sven Weyer, Jim Tyrer, Lerak, Napierian)
| | |-+  Output on until Input is off
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: 1 [2] Print
Author Topic: Output on until Input is off  (Read 1317 times)
tony gast
Hero Member
*****
Offline Offline

Gender: Male
Posts: 711


Can I barrow a cup of robots?


« Reply #15 on: September 16, 2010, 06:27:16 PM »

If you have a PLC make it the master of the universe.....making a robot wait.....that means money lost in cycle time
Put ALL logic in the PLC......Programmable LOGIC Controller
A PLC can latch a Pulse from the robot and remember.......you wont loose any signals unless the plc code is bad
The robot should only Wait for OK to go at any pick or entry points and
PULSE I am done...at drop and exit points....
I have done it many ways on many robot.....And to me.....That is the best, safest, easiest to debug....
why chase logic around in multiple machines.....


« Last Edit: September 16, 2010, 06:30:18 PM by tony gast » Logged

Oh, well
flatcurve
Sr. Member
****
Offline Offline

Posts: 358


« Reply #16 on: September 16, 2010, 06:45:27 PM »

I agree. But like I said, my PLC guy is stuck in his ways, be they right or wrong.
Logged
flatcurve
Sr. Member
****
Offline Offline

Posts: 358


« Reply #17 on: September 16, 2010, 07:48:11 PM »


I can't tell it to turn off an output once an input is off, or false in other words. Unless there's an elegant way around this that I just haven't seen yet. Ideas?


wait, I think I figured this out...

1: R[1]=1
2: IF (DI[1]), R[1]=(0)
3: IF (R[1]), DO[1]=(OFF)

That should work, right?


This doesn't work. Syntax error. Variable type mismatch.  

Trying again with flags instead of registers.
« Last Edit: September 16, 2010, 07:56:57 PM by flatcurve » Logged
flatcurve
Sr. Member
****
Offline Offline

Posts: 358


« Reply #18 on: September 16, 2010, 08:14:55 PM »

Okay, flags work. This is the solution to my original problem:

1: F[1]=(ON)
2: IF (DI[1]), F[1]=(OFF)
3: IF (F[1]), DO[1]=(OFF)

however it would appear that BG logic programs don't support Multi-lng remarks... Bummer.
Logged
Pages: 1 [2] 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!